@pagopa/io-react-native-wallet 1.7.1 → 1.8.1
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/client/generated/wallet-provider.js +37 -11
- package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
- package/lib/commonjs/credential/issuance/02-get-issuer-config.js +69 -3
- package/lib/commonjs/credential/issuance/02-get-issuer-config.js.map +1 -1
- package/lib/commonjs/credential/issuance/03-start-user-authorization.js +5 -7
- package/lib/commonjs/credential/issuance/03-start-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/06-obtain-credential.js +27 -10
- package/lib/commonjs/credential/issuance/06-obtain-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js +50 -46
- package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/README.md +1 -1
- package/lib/commonjs/credential/issuance/const.js +1 -1
- package/lib/commonjs/credential/issuance/const.js.map +1 -1
- package/lib/commonjs/credential/issuance/index.js +6 -0
- package/lib/commonjs/credential/issuance/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/types.js +19 -10
- package/lib/commonjs/credential/issuance/types.js.map +1 -1
- package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js +10 -3
- package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js.map +1 -1
- package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js +11 -4
- package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js.map +1 -1
- package/lib/commonjs/credential/presentation/08-send-authorization-response.js +3 -3
- package/lib/commonjs/credential/presentation/08-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credential/presentation/types.js.map +1 -1
- package/lib/commonjs/entity/openid-connect/issuer/types.js +2 -2
- package/lib/commonjs/entity/openid-connect/issuer/types.js.map +1 -1
- package/lib/commonjs/entity/trust/types.js +19 -30
- package/lib/commonjs/entity/trust/types.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mdoc/index.js +3 -3
- package/lib/commonjs/mdoc/index.js.map +1 -1
- package/lib/commonjs/sd-jwt/index.js +2 -2
- package/lib/commonjs/sd-jwt/index.js.map +1 -1
- package/lib/commonjs/sd-jwt/types.js +1 -1
- package/lib/commonjs/sd-jwt/types.js.map +1 -1
- package/lib/commonjs/utils/credential/issuance/07-verify-and-parse-credentials-utils.js +3 -2
- package/lib/commonjs/utils/credential/issuance/07-verify-and-parse-credentials-utils.js.map +1 -1
- package/lib/commonjs/utils/misc.js +23 -1
- package/lib/commonjs/utils/misc.js.map +1 -1
- package/lib/commonjs/utils/pop.js +1 -1
- package/lib/commonjs/utils/pop.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/issuing.js +11 -7
- package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/types.js +14 -19
- package/lib/commonjs/wallet-instance-attestation/types.js.map +1 -1
- package/lib/module/client/generated/wallet-provider.js +29 -7
- package/lib/module/client/generated/wallet-provider.js.map +1 -1
- package/lib/module/credential/issuance/02-get-issuer-config.js +66 -1
- package/lib/module/credential/issuance/02-get-issuer-config.js.map +1 -1
- package/lib/module/credential/issuance/03-start-user-authorization.js +5 -7
- package/lib/module/credential/issuance/03-start-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/06-obtain-credential.js +28 -11
- package/lib/module/credential/issuance/06-obtain-credential.js.map +1 -1
- package/lib/module/credential/issuance/07-verify-and-parse-credential.js +50 -46
- package/lib/module/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
- package/lib/module/credential/issuance/README.md +1 -1
- package/lib/module/credential/issuance/const.js +1 -1
- package/lib/module/credential/issuance/const.js.map +1 -1
- package/lib/module/credential/issuance/index.js +2 -2
- package/lib/module/credential/issuance/index.js.map +1 -1
- package/lib/module/credential/issuance/types.js +15 -8
- package/lib/module/credential/issuance/types.js.map +1 -1
- package/lib/module/credential/presentation/07-evaluate-dcql-query.js +10 -3
- package/lib/module/credential/presentation/07-evaluate-dcql-query.js.map +1 -1
- package/lib/module/credential/presentation/07-evaluate-input-descriptor.js +11 -4
- package/lib/module/credential/presentation/07-evaluate-input-descriptor.js.map +1 -1
- package/lib/module/credential/presentation/08-send-authorization-response.js +3 -3
- package/lib/module/credential/presentation/08-send-authorization-response.js.map +1 -1
- package/lib/module/credential/presentation/types.js.map +1 -1
- package/lib/module/entity/openid-connect/issuer/types.js +2 -2
- package/lib/module/entity/openid-connect/issuer/types.js.map +1 -1
- package/lib/module/entity/trust/types.js +19 -30
- package/lib/module/entity/trust/types.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/mdoc/index.js +3 -3
- package/lib/module/mdoc/index.js.map +1 -1
- package/lib/module/sd-jwt/index.js +2 -2
- package/lib/module/sd-jwt/index.js.map +1 -1
- package/lib/module/sd-jwt/types.js +1 -1
- package/lib/module/sd-jwt/types.js.map +1 -1
- package/lib/module/utils/credential/issuance/07-verify-and-parse-credentials-utils.js +3 -2
- package/lib/module/utils/credential/issuance/07-verify-and-parse-credentials-utils.js.map +1 -1
- package/lib/module/utils/misc.js +20 -0
- package/lib/module/utils/misc.js.map +1 -1
- package/lib/module/utils/pop.js +1 -1
- package/lib/module/utils/pop.js.map +1 -1
- package/lib/module/wallet-instance-attestation/issuing.js +13 -9
- package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/module/wallet-instance-attestation/types.js +12 -17
- package/lib/module/wallet-instance-attestation/types.js.map +1 -1
- package/lib/typescript/client/generated/wallet-provider.d.ts +146 -17
- package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/02-get-issuer-config.d.ts +16 -1
- package/lib/typescript/credential/issuance/02-get-issuer-config.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/06-obtain-credential.d.ts +7 -2
- package/lib/typescript/credential/issuance/06-obtain-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/const.d.ts +1 -1
- package/lib/typescript/credential/issuance/const.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/index.d.ts +2 -2
- package/lib/typescript/credential/issuance/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/types.d.ts +52 -21
- package/lib/typescript/credential/issuance/types.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/07-evaluate-dcql-query.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/07-evaluate-input-descriptor.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts +1 -1
- package/lib/typescript/credential/presentation/types.d.ts +4 -2
- package/lib/typescript/credential/presentation/types.d.ts.map +1 -1
- package/lib/typescript/entity/openid-connect/issuer/types.d.ts +17 -17
- package/lib/typescript/entity/openid-connect/issuer/types.d.ts.map +1 -1
- package/lib/typescript/entity/trust/index.d.ts +150 -140
- package/lib/typescript/entity/trust/index.d.ts.map +1 -1
- package/lib/typescript/entity/trust/types.d.ts +540 -344
- package/lib/typescript/entity/trust/types.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/pid/sd-jwt/types.d.ts +2 -2
- package/lib/typescript/sd-jwt/index.d.ts +12 -12
- package/lib/typescript/sd-jwt/types.d.ts +14 -14
- package/lib/typescript/utils/credential/issuance/07-verify-and-parse-credentials-utils.d.ts.map +1 -1
- package/lib/typescript/utils/misc.d.ts +8 -0
- package/lib/typescript/utils/misc.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/types.d.ts +50 -102
- package/lib/typescript/wallet-instance-attestation/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/generated/wallet-provider.ts +39 -7
- package/src/credential/issuance/02-get-issuer-config.ts +98 -1
- package/src/credential/issuance/03-start-user-authorization.ts +7 -8
- package/src/credential/issuance/06-obtain-credential.ts +41 -14
- package/src/credential/issuance/07-verify-and-parse-credential.ts +7 -3
- package/src/credential/issuance/README.md +1 -1
- package/src/credential/issuance/const.ts +1 -0
- package/src/credential/issuance/index.ts +6 -1
- package/src/credential/issuance/types.ts +21 -8
- package/src/credential/presentation/07-evaluate-dcql-query.ts +15 -5
- package/src/credential/presentation/07-evaluate-input-descriptor.ts +21 -4
- package/src/credential/presentation/08-send-authorization-response.ts +3 -3
- package/src/credential/presentation/types.ts +3 -0
- package/src/entity/openid-connect/issuer/types.ts +2 -1
- package/src/entity/trust/types.ts +22 -20
- package/src/index.ts +2 -0
- package/src/mdoc/index.ts +3 -3
- package/src/sd-jwt/index.ts +2 -2
- package/src/sd-jwt/types.ts +1 -1
- package/src/utils/credential/issuance/07-verify-and-parse-credentials-utils.ts +3 -2
- package/src/utils/misc.ts +24 -0
- package/src/utils/pop.ts +1 -1
- package/src/wallet-instance-attestation/issuing.ts +14 -8
- package/src/wallet-instance-attestation/types.ts +16 -22
@@ -1,4 +1,15 @@
|
|
1
1
|
import z from "zod";
|
2
|
+
export type ApplicationInfo = z.infer<typeof ApplicationInfo>;
|
3
|
+
export declare const ApplicationInfo: z.ZodObject<{
|
4
|
+
name: z.ZodString;
|
5
|
+
version: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
name: string;
|
8
|
+
version: string;
|
9
|
+
}, {
|
10
|
+
name: string;
|
11
|
+
version: string;
|
12
|
+
}>;
|
2
13
|
export type NonceDetailView = z.infer<typeof NonceDetailView>;
|
3
14
|
export declare const NonceDetailView: z.ZodObject<{
|
4
15
|
nonce: z.ZodString;
|
@@ -15,6 +26,29 @@ export declare const WalletAttestationView: z.ZodObject<{
|
|
15
26
|
}, {
|
16
27
|
wallet_attestation: string;
|
17
28
|
}>;
|
29
|
+
export type WalletAttestationsView = z.infer<typeof WalletAttestationsView>;
|
30
|
+
export declare const WalletAttestationsView: z.ZodObject<{
|
31
|
+
wallet_attestations: z.ZodArray<z.ZodObject<{
|
32
|
+
format: z.ZodUnion<[z.ZodLiteral<"jwt">, z.ZodLiteral<"dc+sd-jwt">]>;
|
33
|
+
wallet_attestation: z.ZodString;
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
35
|
+
wallet_attestation: string;
|
36
|
+
format: "jwt" | "dc+sd-jwt";
|
37
|
+
}, {
|
38
|
+
wallet_attestation: string;
|
39
|
+
format: "jwt" | "dc+sd-jwt";
|
40
|
+
}>, "many">;
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
42
|
+
wallet_attestations: {
|
43
|
+
wallet_attestation: string;
|
44
|
+
format: "jwt" | "dc+sd-jwt";
|
45
|
+
}[];
|
46
|
+
}, {
|
47
|
+
wallet_attestations: {
|
48
|
+
wallet_attestation: string;
|
49
|
+
format: "jwt" | "dc+sd-jwt";
|
50
|
+
}[];
|
51
|
+
}>;
|
18
52
|
export type CreateWalletInstanceBody = z.infer<typeof CreateWalletInstanceBody>;
|
19
53
|
export declare const CreateWalletInstanceBody: z.ZodObject<{
|
20
54
|
challenge: z.ZodString;
|
@@ -40,25 +74,13 @@ export declare const CreateWalletAttestationBody: z.ZodObject<{
|
|
40
74
|
grant_type: "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
41
75
|
assertion: string;
|
42
76
|
}>;
|
43
|
-
export type
|
44
|
-
export declare const
|
45
|
-
|
46
|
-
title: z.ZodOptional<z.ZodString>;
|
47
|
-
status: z.ZodOptional<z.ZodNumber>;
|
48
|
-
detail: z.ZodOptional<z.ZodString>;
|
49
|
-
instance: z.ZodOptional<z.ZodString>;
|
77
|
+
export type CreateWalletAttestationV2Body = z.infer<typeof CreateWalletAttestationV2Body>;
|
78
|
+
export declare const CreateWalletAttestationV2Body: z.ZodObject<{
|
79
|
+
assertion: z.ZodString;
|
50
80
|
}, "strip", z.ZodTypeAny, {
|
51
|
-
|
52
|
-
title?: string | undefined;
|
53
|
-
status?: number | undefined;
|
54
|
-
detail?: string | undefined;
|
55
|
-
instance?: string | undefined;
|
81
|
+
assertion: string;
|
56
82
|
}, {
|
57
|
-
|
58
|
-
title?: string | undefined;
|
59
|
-
status?: number | undefined;
|
60
|
-
detail?: string | undefined;
|
61
|
-
instance?: string | undefined;
|
83
|
+
assertion: string;
|
62
84
|
}>;
|
63
85
|
export type SetWalletInstanceStatusBody = z.infer<typeof SetWalletInstanceStatusBody>;
|
64
86
|
export declare const SetWalletInstanceStatusBody: z.ZodObject<{
|
@@ -84,6 +106,26 @@ export declare const WalletInstanceData: z.ZodObject<{
|
|
84
106
|
is_revoked: boolean;
|
85
107
|
revocation_reason?: "CERTIFICATE_REVOKED_BY_ISSUER" | "NEW_WALLET_INSTANCE_CREATED" | "REVOKED_BY_USER" | undefined;
|
86
108
|
}>;
|
109
|
+
export type ProblemDetail = z.infer<typeof ProblemDetail>;
|
110
|
+
export declare const ProblemDetail: z.ZodObject<{
|
111
|
+
type: z.ZodOptional<z.ZodString>;
|
112
|
+
title: z.ZodOptional<z.ZodString>;
|
113
|
+
status: z.ZodOptional<z.ZodNumber>;
|
114
|
+
detail: z.ZodOptional<z.ZodString>;
|
115
|
+
instance: z.ZodOptional<z.ZodString>;
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
117
|
+
type?: string | undefined;
|
118
|
+
title?: string | undefined;
|
119
|
+
status?: number | undefined;
|
120
|
+
detail?: string | undefined;
|
121
|
+
instance?: string | undefined;
|
122
|
+
}, {
|
123
|
+
type?: string | undefined;
|
124
|
+
title?: string | undefined;
|
125
|
+
status?: number | undefined;
|
126
|
+
detail?: string | undefined;
|
127
|
+
instance?: string | undefined;
|
128
|
+
}>;
|
87
129
|
export type get_GetNonce = typeof get_GetNonce;
|
88
130
|
export declare const get_GetNonce: {
|
89
131
|
method: z.ZodLiteral<"GET">;
|
@@ -235,6 +277,50 @@ export declare const post_CreateWalletAttestation: {
|
|
235
277
|
wallet_attestation: string;
|
236
278
|
}>;
|
237
279
|
};
|
280
|
+
export type post_CreateWalletAttestationV2 = typeof post_CreateWalletAttestationV2;
|
281
|
+
export declare const post_CreateWalletAttestationV2: {
|
282
|
+
method: z.ZodLiteral<"POST">;
|
283
|
+
path: z.ZodLiteral<"/wallet-attestations">;
|
284
|
+
parameters: z.ZodObject<{
|
285
|
+
body: z.ZodObject<{
|
286
|
+
assertion: z.ZodString;
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
288
|
+
assertion: string;
|
289
|
+
}, {
|
290
|
+
assertion: string;
|
291
|
+
}>;
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
293
|
+
body: {
|
294
|
+
assertion: string;
|
295
|
+
};
|
296
|
+
}, {
|
297
|
+
body: {
|
298
|
+
assertion: string;
|
299
|
+
};
|
300
|
+
}>;
|
301
|
+
response: z.ZodObject<{
|
302
|
+
wallet_attestations: z.ZodArray<z.ZodObject<{
|
303
|
+
format: z.ZodUnion<[z.ZodLiteral<"jwt">, z.ZodLiteral<"dc+sd-jwt">]>;
|
304
|
+
wallet_attestation: z.ZodString;
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
306
|
+
wallet_attestation: string;
|
307
|
+
format: "jwt" | "dc+sd-jwt";
|
308
|
+
}, {
|
309
|
+
wallet_attestation: string;
|
310
|
+
format: "jwt" | "dc+sd-jwt";
|
311
|
+
}>, "many">;
|
312
|
+
}, "strip", z.ZodTypeAny, {
|
313
|
+
wallet_attestations: {
|
314
|
+
wallet_attestation: string;
|
315
|
+
format: "jwt" | "dc+sd-jwt";
|
316
|
+
}[];
|
317
|
+
}, {
|
318
|
+
wallet_attestations: {
|
319
|
+
wallet_attestation: string;
|
320
|
+
format: "jwt" | "dc+sd-jwt";
|
321
|
+
}[];
|
322
|
+
}>;
|
323
|
+
};
|
238
324
|
export declare const EndpointByMethod: {
|
239
325
|
get: {
|
240
326
|
"/nonce": {
|
@@ -350,6 +436,49 @@ export declare const EndpointByMethod: {
|
|
350
436
|
wallet_attestation: string;
|
351
437
|
}>;
|
352
438
|
};
|
439
|
+
"/wallet-attestations": {
|
440
|
+
method: z.ZodLiteral<"POST">;
|
441
|
+
path: z.ZodLiteral<"/wallet-attestations">;
|
442
|
+
parameters: z.ZodObject<{
|
443
|
+
body: z.ZodObject<{
|
444
|
+
assertion: z.ZodString;
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
446
|
+
assertion: string;
|
447
|
+
}, {
|
448
|
+
assertion: string;
|
449
|
+
}>;
|
450
|
+
}, "strip", z.ZodTypeAny, {
|
451
|
+
body: {
|
452
|
+
assertion: string;
|
453
|
+
};
|
454
|
+
}, {
|
455
|
+
body: {
|
456
|
+
assertion: string;
|
457
|
+
};
|
458
|
+
}>;
|
459
|
+
response: z.ZodObject<{
|
460
|
+
wallet_attestations: z.ZodArray<z.ZodObject<{
|
461
|
+
format: z.ZodUnion<[z.ZodLiteral<"jwt">, z.ZodLiteral<"dc+sd-jwt">]>;
|
462
|
+
wallet_attestation: z.ZodString;
|
463
|
+
}, "strip", z.ZodTypeAny, {
|
464
|
+
wallet_attestation: string;
|
465
|
+
format: "jwt" | "dc+sd-jwt";
|
466
|
+
}, {
|
467
|
+
wallet_attestation: string;
|
468
|
+
format: "jwt" | "dc+sd-jwt";
|
469
|
+
}>, "many">;
|
470
|
+
}, "strip", z.ZodTypeAny, {
|
471
|
+
wallet_attestations: {
|
472
|
+
wallet_attestation: string;
|
473
|
+
format: "jwt" | "dc+sd-jwt";
|
474
|
+
}[];
|
475
|
+
}, {
|
476
|
+
wallet_attestations: {
|
477
|
+
wallet_attestation: string;
|
478
|
+
format: "jwt" | "dc+sd-jwt";
|
479
|
+
}[];
|
480
|
+
}>;
|
481
|
+
};
|
353
482
|
};
|
354
483
|
put: {
|
355
484
|
"/wallet-instances/{id}/status": {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"wallet-provider.d.ts","sourceRoot":"","sources":["../../../../src/client/generated/wallet-provider.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,eAAO,MAAM,eAAe;;;;;;EAE1B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACtF,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AAEH,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"wallet-provider.d.ts","sourceRoot":"","sources":["../../../../src/client/generated/wallet-provider.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,eAAO,MAAM,eAAe;;;;;;EAE1B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC5E,eAAO,MAAM,sBAAsB;;;;;;;;;;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
import type
|
2
|
+
import { type Out } from "../../utils/misc";
|
3
3
|
import type { JWK } from "src/utils/jwk";
|
4
4
|
import type { CredentialConfigurationSupported } from "../../entity/openid-connect/issuer/types";
|
5
5
|
export type GetIssuerConfig = (issuerUrl: Out<StartFlow>["issuerUrl"], context?: {
|
@@ -17,11 +17,15 @@ export type IssuerConfig = {
|
|
17
17
|
pushed_authorization_request_endpoint: string;
|
18
18
|
authorization_endpoint: string;
|
19
19
|
token_endpoint: string;
|
20
|
+
nonce_endpoint?: string;
|
20
21
|
credential_endpoint: string;
|
22
|
+
issuer: string;
|
21
23
|
keys: Array<JWK>;
|
22
24
|
};
|
23
25
|
/**
|
24
26
|
* WARNING: This function must be called after {@link startFlow}. The next function to be called is {@link startUserAuthorization}.
|
27
|
+
* WARNING: This function extracts the {@link IssuerConfig} from the OpenID Connect endpoint. For the OpenID Federation variant, use {@link getIssuerConfigOIDFED}.
|
28
|
+
* WARNING: The variants should not be used in conjunction.
|
25
29
|
* Get the Issuer's configuration from the Issuer's metadata.
|
26
30
|
* Currently it only supports a mixed configuration based on OpenID Connect partial implementation.
|
27
31
|
* @param issuerUrl The base url of the Issuer returned by {@link startFlow}
|
@@ -29,4 +33,15 @@ export type IssuerConfig = {
|
|
29
33
|
* @returns The Issuer's configuration
|
30
34
|
*/
|
31
35
|
export declare const getIssuerConfig: GetIssuerConfig;
|
36
|
+
/**
|
37
|
+
* WARNING: This function must be called after {@link startFlow}. The next function to be called is {@link startUserAuthorization}.
|
38
|
+
* WARNING: This function extracts the {@link IssuerConfig} from the OpenID Federation EC. For the OpenID Connect variant, use {@link getIssuerConfig}.
|
39
|
+
* WARNING: The variants should not be used in conjunction.
|
40
|
+
* Get the Issuer's configuration from the Issuer's metadata fetched from the OpenID Federation system.
|
41
|
+
* Currently it only supports a mixed configuration based on OpenID Federation partial implementation.
|
42
|
+
* @param issuerUrl The base url of the Issuer returned by {@link startFlow}
|
43
|
+
* @param context.appFetch (optional) fetch api implementation. Default: built-in fetch
|
44
|
+
* @returns The Issuer's configuration
|
45
|
+
*/
|
46
|
+
export declare const getIssuerConfigOIDFED: GetIssuerConfig;
|
32
47
|
//# sourceMappingURL=02-get-issuer-config.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"02-get-issuer-config.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/02-get-issuer-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"02-get-issuer-config.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/02-get-issuer-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAc,KAAK,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAGjG,MAAM,MAAM,eAAe,GAAG,CAC5B,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,EACtC,OAAO,CAAC,EAAE;IACR,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,KACE,OAAO,CAAC;IAAE,UAAU,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC;AAE3C;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,mCAAmC,EAAE,gCAAgC,CAAC;IACtE,qCAAqC,EAAE,MAAM,CAAC;IAC9C,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CAClB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,eAS7B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,EAAE,eASnC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"03-start-user-authorization.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/03-start-user-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAoC,KAAK,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAkB,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG,CACnC,UAAU,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,EAC9C,cAAc,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,EAChD,OAAO,EAAE;IACP,gBAAgB,EAAE,aAAa,CAAC;IAChC,yBAAyB,EAAE,MAAM,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,KACE,OAAO,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,mBAAmB,CAAC;CAC3C,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"03-start-user-authorization.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/03-start-user-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAoC,KAAK,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAkB,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG,CACnC,UAAU,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,EAC9C,cAAc,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,EAChD,OAAO,EAAE;IACP,gBAAgB,EAAE,aAAa,CAAC;IAChC,yBAAyB,EAAE,MAAM,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,KACE,OAAO,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,mBAAmB,CAAC;CAC3C,CAAC,CAAC;AAmDH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sBAAsB,EAAE,sBAoCpC,CAAC"}
|
@@ -4,11 +4,16 @@ import type { GetIssuerConfig } from "./02-get-issuer-config";
|
|
4
4
|
import { type Out } from "../../utils/misc";
|
5
5
|
import type { StartUserAuthorization } from "./03-start-user-authorization";
|
6
6
|
import { CredentialResponse } from "./types";
|
7
|
-
export type ObtainCredential = (issuerConf: Out<GetIssuerConfig>["issuerConf"], accessToken: Out<AuthorizeAccess>["accessToken"], clientId: Out<StartUserAuthorization>["clientId"], credentialDefinition:
|
7
|
+
export type ObtainCredential = (issuerConf: Out<GetIssuerConfig>["issuerConf"], accessToken: Out<AuthorizeAccess>["accessToken"], clientId: Out<StartUserAuthorization>["clientId"], credentialDefinition: {
|
8
|
+
credential_configuration_id: string;
|
9
|
+
credential_identifier?: string;
|
10
|
+
}, context: {
|
8
11
|
dPopCryptoContext: CryptoContext;
|
9
12
|
credentialCryptoContext: CryptoContext;
|
10
13
|
appFetch?: GlobalFetch["fetch"];
|
11
|
-
}) => Promise<CredentialResponse
|
14
|
+
}) => Promise<CredentialResponse["credentials"][number] & {
|
15
|
+
format: string;
|
16
|
+
}>;
|
12
17
|
export declare const createNonceProof: (nonce: string, issuer: string, audience: string, ctx: CryptoContext) => Promise<string>;
|
13
18
|
/**
|
14
19
|
* Obtains the credential from the issuer.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"06-obtain-credential.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/06-obtain-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAoB,KAAK,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAQ5E,OAAO,EAAE,kBAAkB,
|
1
|
+
{"version":3,"file":"06-obtain-credential.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/06-obtain-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAoB,KAAK,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAQ5E,OAAO,EAAE,kBAAkB,EAAiB,MAAM,SAAS,CAAC;AAI5D,MAAM,MAAM,gBAAgB,GAAG,CAC7B,UAAU,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,EAC9C,WAAW,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC,aAAa,CAAC,EAChD,QAAQ,EAAE,GAAG,CAAC,sBAAsB,CAAC,CAAC,UAAU,CAAC,EACjD,oBAAoB,EAAE;IACpB,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,EACD,OAAO,EAAE;IACP,iBAAiB,EAAE,aAAa,CAAC;IACjC,uBAAuB,EAAE,aAAa,CAAC;IACvC,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,KACE,OAAO,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE7E,eAAO,MAAM,gBAAgB,UACpB,MAAM,UACL,MAAM,YACJ,MAAM,OACX,aAAa,KACjB,QAAQ,MAAM,CAehB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAiI9B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"07-verify-and-parse-credential.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/07-verify-and-parse-credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,YAAY,CAAC;AA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file":"07-verify-and-parse-credential.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/07-verify-and-parse-credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAO/D,MAAM,MAAM,wBAAwB,GAAG,CACrC,UAAU,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,EAC9C,UAAU,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC,YAAY,CAAC,EAC/C,MAAM,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,EACvC,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE;IACP,uBAAuB,EAAE,aAAa,CAAC;IACvC;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,KACE,OAAO,CAAC;IACX,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,UAAU,EAAE,IAAI,CAAC;IACjB,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;CAC5B,CAAC,CAAC;AAGH,KAAK,gBAAgB,GAAG,MAAM;AAC5B,oBAAoB;AACpB,MAAM,EACN;IACE,2CAA2C;IAC3C,IAAI,EACA,yBAAyB,CAAC,MAAM,CAC9B,MAAM,EACN,MAAM,CACP,GACD,4BAA4B,CAAC,MAAM,GACnC,SAAS,CAAC;IACd,wCAAwC;IACxC,KAAK,EAAE,OAAO,CAAC;CAChB,CACF,CAAC;AAGF,KAAK,sBAAsB,GAAG,GAAG,CAAC,OAAO,WAAW,CAAC,GAAG;IACtD,KAAK,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF,KAAK,qBAAqB,GAAG,GAAG,CAAC,OAAO,UAAU,CAAC,GAAG;IACpD,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;CACjC,CAAC;AAGF,eAAO,MAAM,oBAAoB,0BAER,IAAI,eAAe,CAAC,CAAC,YAAY,CAAC,CAAC,qCAAqC,CAAC,0BACxE,sBAAsB,4BACrB,OAAO,+BACJ,OAAO,KAClC,gBAwFF,CAAC;AAGF,eAAO,MAAM,mBAAmB,0BAEP,IAAI,eAAe,CAAC,CAAC,YAAY,CAAC,CAAC,qCAAqC,CAAC,mBAC/E,MAAM,oBACL,qBAAqB,4BACd,OAAO,+BACJ,OAAO,KAClC,gBAwHF,CAAC;AAoLF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,EAAE,wBA2BtC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as z from "zod";
|
2
2
|
export declare const ASSERTION_TYPE = "urn:ietf:params:oauth:client-assertion-type:jwt-client-attestation";
|
3
3
|
export type SupportedCredentialFormat = z.infer<typeof SupportedCredentialFormat>;
|
4
|
-
export declare const SupportedCredentialFormat: z.ZodUnion<[z.ZodLiteral<"vc+sd-jwt">, z.ZodLiteral<"mso_mdoc">]>;
|
4
|
+
export declare const SupportedCredentialFormat: z.ZodUnion<[z.ZodLiteral<"vc+sd-jwt">, z.ZodLiteral<"dc+sd-jwt">, z.ZodLiteral<"mso_mdoc">]>;
|
5
5
|
//# sourceMappingURL=const.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,cAAc,uEAC2C,CAAC;AAEvE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAC;AACF,eAAO,MAAM,yBAAyB,
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,cAAc,uEAC2C,CAAC;AAEvE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAC;AACF,eAAO,MAAM,yBAAyB,8FAIpC,CAAC"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { type StartFlow } from "./01-start-flow";
|
2
|
-
import { getIssuerConfig, type GetIssuerConfig } from "./02-get-issuer-config";
|
2
|
+
import { getIssuerConfig, getIssuerConfigOIDFED, type GetIssuerConfig } from "./02-get-issuer-config";
|
3
3
|
import { startUserAuthorization, type StartUserAuthorization } from "./03-start-user-authorization";
|
4
4
|
import { completeUserAuthorizationWithQueryMode, completeUserAuthorizationWithFormPostJwtMode, parseAuthorizationResponse, buildAuthorizationUrl, type CompleteUserAuthorizationWithQueryMode, type CompleteUserAuthorizationWithFormPostJwtMode, type GetRequestedCredentialToBePresented, type BuildAuthorizationUrl, getRequestedCredentialToBePresented } from "./04-complete-user-authorization";
|
5
5
|
import { authorizeAccess, type AuthorizeAccess } from "./05-authorize-access";
|
6
6
|
import { obtainCredential, type ObtainCredential } from "./06-obtain-credential";
|
7
7
|
import { verifyAndParseCredential, type VerifyAndParseCredential } from "./07-verify-and-parse-credential";
|
8
8
|
import * as Errors from "./errors";
|
9
|
-
export { getIssuerConfig, startUserAuthorization, buildAuthorizationUrl, completeUserAuthorizationWithQueryMode, getRequestedCredentialToBePresented, completeUserAuthorizationWithFormPostJwtMode, authorizeAccess, obtainCredential, verifyAndParseCredential, parseAuthorizationResponse, Errors, };
|
9
|
+
export { getIssuerConfig, getIssuerConfigOIDFED, startUserAuthorization, buildAuthorizationUrl, completeUserAuthorizationWithQueryMode, getRequestedCredentialToBePresented, completeUserAuthorizationWithFormPostJwtMode, authorizeAccess, obtainCredential, verifyAndParseCredential, parseAuthorizationResponse, Errors, };
|
10
10
|
export type { StartFlow, GetIssuerConfig, StartUserAuthorization, BuildAuthorizationUrl, CompleteUserAuthorizationWithQueryMode, GetRequestedCredentialToBePresented, CompleteUserAuthorizationWithFormPostJwtMode, AuthorizeAccess, ObtainCredential, VerifyAndParseCredential, };
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,KAAK,eAAe,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,sBAAsB,EACtB,KAAK,sBAAsB,EAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,sCAAsC,EACtC,4CAA4C,EAC5C,0BAA0B,EAC1B,qBAAqB,EACrB,KAAK,sCAAsC,EAC3C,KAAK,4CAA4C,EACjD,KAAK,mCAAmC,EACxC,KAAK,qBAAqB,EAC1B,mCAAmC,EACpC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EACL,gBAAgB,EAChB,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,wBAAwB,EACxB,KAAK,wBAAwB,EAC9B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,sCAAsC,EACtC,mCAAmC,EACnC,4CAA4C,EAC5C,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,0BAA0B,EAC1B,MAAM,GACP,CAAC;AACF,YAAY,EACV,SAAS,EACT,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,sCAAsC,EACtC,mCAAmC,EACnC,4CAA4C,EAC5C,eAAe,EACf,gBAAgB,EAChB,wBAAwB,GACzB,CAAC"}
|
@@ -1,58 +1,81 @@
|
|
1
1
|
import * as z from "zod";
|
2
|
+
export type AuthorizationDetail = z.infer<typeof AuthorizationDetail>;
|
3
|
+
export declare const AuthorizationDetail: z.ZodObject<{
|
4
|
+
type: z.ZodLiteral<"openid_credential">;
|
5
|
+
credential_configuration_id: z.ZodString;
|
6
|
+
credential_identifiers: z.ZodArray<z.ZodString, "many">;
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
8
|
+
type: "openid_credential";
|
9
|
+
credential_configuration_id: string;
|
10
|
+
credential_identifiers: string[];
|
11
|
+
}, {
|
12
|
+
type: "openid_credential";
|
13
|
+
credential_configuration_id: string;
|
14
|
+
credential_identifiers: string[];
|
15
|
+
}>;
|
2
16
|
export type TokenResponse = z.infer<typeof TokenResponse>;
|
3
17
|
export declare const TokenResponse: z.ZodObject<{
|
4
18
|
access_token: z.ZodString;
|
5
19
|
authorization_details: z.ZodArray<z.ZodObject<{
|
6
|
-
credential_configuration_id: z.ZodString;
|
7
20
|
type: z.ZodLiteral<"openid_credential">;
|
21
|
+
credential_configuration_id: z.ZodString;
|
22
|
+
credential_identifiers: z.ZodArray<z.ZodString, "many">;
|
8
23
|
}, "strip", z.ZodTypeAny, {
|
9
24
|
type: "openid_credential";
|
10
25
|
credential_configuration_id: string;
|
26
|
+
credential_identifiers: string[];
|
11
27
|
}, {
|
12
28
|
type: "openid_credential";
|
13
29
|
credential_configuration_id: string;
|
30
|
+
credential_identifiers: string[];
|
14
31
|
}>, "many">;
|
15
|
-
c_nonce: z.ZodString
|
16
|
-
c_nonce_expires_in: z.ZodNumber
|
32
|
+
c_nonce: z.ZodOptional<z.ZodString>;
|
33
|
+
c_nonce_expires_in: z.ZodOptional<z.ZodNumber>;
|
17
34
|
expires_in: z.ZodNumber;
|
18
35
|
token_type: z.ZodString;
|
19
36
|
}, "strip", z.ZodTypeAny, {
|
37
|
+
access_token: string;
|
20
38
|
authorization_details: {
|
21
39
|
type: "openid_credential";
|
22
40
|
credential_configuration_id: string;
|
41
|
+
credential_identifiers: string[];
|
23
42
|
}[];
|
24
|
-
access_token: string;
|
25
|
-
c_nonce: string;
|
26
|
-
c_nonce_expires_in: number;
|
27
43
|
expires_in: number;
|
28
44
|
token_type: string;
|
45
|
+
c_nonce?: string | undefined;
|
46
|
+
c_nonce_expires_in?: number | undefined;
|
29
47
|
}, {
|
48
|
+
access_token: string;
|
30
49
|
authorization_details: {
|
31
50
|
type: "openid_credential";
|
32
51
|
credential_configuration_id: string;
|
52
|
+
credential_identifiers: string[];
|
33
53
|
}[];
|
34
|
-
access_token: string;
|
35
|
-
c_nonce: string;
|
36
|
-
c_nonce_expires_in: number;
|
37
54
|
expires_in: number;
|
38
55
|
token_type: string;
|
56
|
+
c_nonce?: string | undefined;
|
57
|
+
c_nonce_expires_in?: number | undefined;
|
39
58
|
}>;
|
40
59
|
export type CredentialResponse = z.infer<typeof CredentialResponse>;
|
41
60
|
export declare const CredentialResponse: z.ZodObject<{
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
61
|
+
credentials: z.ZodArray<z.ZodObject<{
|
62
|
+
credential: z.ZodString;
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
64
|
+
credential: string;
|
65
|
+
}, {
|
66
|
+
credential: string;
|
67
|
+
}>, "many">;
|
68
|
+
notification_id: z.ZodOptional<z.ZodString>;
|
46
69
|
}, "strip", z.ZodTypeAny, {
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
70
|
+
credentials: {
|
71
|
+
credential: string;
|
72
|
+
}[];
|
73
|
+
notification_id?: string | undefined;
|
51
74
|
}, {
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
75
|
+
credentials: {
|
76
|
+
credential: string;
|
77
|
+
}[];
|
78
|
+
notification_id?: string | undefined;
|
56
79
|
}>;
|
57
80
|
/**
|
58
81
|
* Shape from parsing a response given by a request uri during the EAA credential issuance flow with response mode "form_post.jwt".
|
@@ -65,4 +88,12 @@ export declare const ResponseUriResultShape: z.ZodObject<{
|
|
65
88
|
redirect_uri: string;
|
66
89
|
}>;
|
67
90
|
export type ResponseMode = "query" | "form_post.jwt";
|
91
|
+
export type NonceResponse = z.infer<typeof NonceResponse>;
|
92
|
+
export declare const NonceResponse: z.ZodObject<{
|
93
|
+
c_nonce: z.ZodString;
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
95
|
+
c_nonce: string;
|
96
|
+
}, {
|
97
|
+
c_nonce: string;
|
98
|
+
}>;
|
68
99
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/types.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/credential/issuance/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;EAEjC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,eAAe,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;EAExB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"07-evaluate-dcql-query.d.ts","sourceRoot":"","sources":["../../../../src/credential/presentation/07-evaluate-dcql-query.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAKV,MAAM,MAAM,CAAC;AAMd,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"07-evaluate-dcql-query.d.ts","sourceRoot":"","sources":["../../../../src/credential/presentation/07-evaluate-dcql-query.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAKV,MAAM,MAAM,CAAC;AAMd,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAIrE;;GAEG;AACH,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAC9B,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,gBAAgB,EAAE;IAChB,MAAM;IACN,MAAM;IACN,MAAM;CACP,EAAE,EACH,eAAe,EAAE;IACf,MAAM;IACN,MAAM;IACN,MAAM;CACP,EAAE,KACA,OAAO,CACV,CAAC;IACC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;IAC3C,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B,GAAG,gBAAgB,CAAC,EAAE,CACxB,CAAC;AAkFF,eAAO,MAAM,iBAAiB,EAAE,iBA+G/B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"07-evaluate-input-descriptor.d.ts","sourceRoot":"","sources":["../../../../src/credential/presentation/07-evaluate-input-descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEpE,OAAO,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAI1E,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"07-evaluate-input-descriptor.d.ts","sourceRoot":"","sources":["../../../../src/credential/presentation/07-evaluate-input-descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEpE,OAAO,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAI1E,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAKpD,KAAK,oBAAoB,GAAG;IAC1B,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;IAC3C,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;CAC5C,CAAC;AAEF,KAAK,+BAA+B,GAAG,CACrC,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,QAAQ,CAAC,SAAS,CAAC,EACtC,WAAW,EAAE,qBAAqB,EAAE,KACjC,oBAAoB,CAAC;A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,eAAe,0BACR,qBAAqB,EAAE,KAC9C;IACD,iBAAiB,EAAE,oBAAoB,CAAC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;CAuB3B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,EAAE,wBA2EtC,CAAC"}
|
@@ -98,7 +98,7 @@ export declare const sendAuthorizationResponseDcql: SendAuthorizationResponseDcq
|
|
98
98
|
* Prepares remote presentations for a set of credentials.
|
99
99
|
*
|
100
100
|
* For each credential, this function:
|
101
|
-
* - Validates the credential format (currently supports 'mso_mdoc'
|
101
|
+
* - Validates the credential format (currently supports 'mso_mdoc', 'vc+sd-jwt' or 'dc+sd-jwt').
|
102
102
|
* - Generates a verifiable presentation token (vpToken) using the appropriate method.
|
103
103
|
* - For ISO 18013-7, generates a special nonce with minimum entropy of 16.
|
104
104
|
*
|
@@ -7,6 +7,8 @@ export type EvaluatedDisclosure = {
|
|
7
7
|
};
|
8
8
|
export type CredentialFormat = {
|
9
9
|
format: "vc+sd-jwt";
|
10
|
+
} | {
|
11
|
+
format: "dc+sd-jwt";
|
10
12
|
} | {
|
11
13
|
format: "mso_mdoc";
|
12
14
|
doctype: string;
|
@@ -773,9 +775,9 @@ export declare const RequestObject: z.ZodObject<{
|
|
773
775
|
}>>;
|
774
776
|
}, "strip", z.ZodTypeAny, {
|
775
777
|
nonce: string;
|
778
|
+
client_id: string;
|
776
779
|
response_type: "vp_token";
|
777
780
|
response_mode: "direct_post.jwt" | "direct_post";
|
778
|
-
client_id: string;
|
779
781
|
response_uri: string;
|
780
782
|
iss?: string | undefined;
|
781
783
|
iat?: number | undefined;
|
@@ -854,9 +856,9 @@ export declare const RequestObject: z.ZodObject<{
|
|
854
856
|
} | undefined;
|
855
857
|
}, {
|
856
858
|
nonce: string;
|
859
|
+
client_id: string;
|
857
860
|
response_type: "vp_token";
|
858
861
|
response_mode: "direct_post.jwt" | "direct_post";
|
859
|
-
client_id: string;
|
860
862
|
response_uri: string;
|
861
863
|
iss?: string | undefined;
|
862
864
|
iat?: number | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/credential/presentation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACxB;IACE,MAAM,EAAE,WAAW,CAAC;CACrB,GACD;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACO,MAAM;IACzB,mBAAmB,EAAE;IACyB,aAAa;CACzE,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE;QACb,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;IACJ,cAAc,CAAC,EAAE,MAAM,CAAyD;CACjF,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,CACvC,WAAW,EAAE,CAAC;IACZ,eAAe,EAAE,mBAAmB,EAAE,CAAC;IACvC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,gBAAgB,CAAC,EAAE,EACvB,iBAAiB,EAAE;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,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