@pagopa/io-react-native-wallet 0.2.7 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. package/lib/commonjs/rp/__test__/index.test.js +145 -0
  2. package/lib/commonjs/rp/__test__/index.test.js.map +1 -1
  3. package/lib/commonjs/rp/index.js +33 -41
  4. package/lib/commonjs/rp/index.js.map +1 -1
  5. package/lib/commonjs/rp/types.js +11 -9
  6. package/lib/commonjs/rp/types.js.map +1 -1
  7. package/lib/commonjs/utils/jwk.js +35 -0
  8. package/lib/commonjs/utils/jwk.js.map +1 -1
  9. package/lib/commonjs/wallet-instance-attestation/issuing.js +1 -1
  10. package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
  11. package/lib/commonjs/wallet-instance-attestation/types.js +6 -2
  12. package/lib/commonjs/wallet-instance-attestation/types.js.map +1 -1
  13. package/lib/module/rp/__test__/index.test.js +145 -0
  14. package/lib/module/rp/__test__/index.test.js.map +1 -1
  15. package/lib/module/rp/index.js +33 -41
  16. package/lib/module/rp/index.js.map +1 -1
  17. package/lib/module/rp/types.js +11 -9
  18. package/lib/module/rp/types.js.map +1 -1
  19. package/lib/module/utils/jwk.js +34 -0
  20. package/lib/module/utils/jwk.js.map +1 -1
  21. package/lib/module/wallet-instance-attestation/issuing.js +2 -2
  22. package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
  23. package/lib/module/wallet-instance-attestation/types.js +6 -2
  24. package/lib/module/wallet-instance-attestation/types.js.map +1 -1
  25. package/lib/typescript/index.d.ts.map +1 -0
  26. package/lib/typescript/pid/index.d.ts.map +1 -0
  27. package/lib/typescript/pid/issuing.d.ts.map +1 -0
  28. package/lib/typescript/{src/pid → pid}/metadata.d.ts.map +1 -1
  29. package/lib/typescript/pid/sd-jwt/converters.d.ts.map +1 -0
  30. package/lib/typescript/pid/sd-jwt/index.d.ts.map +1 -0
  31. package/lib/typescript/pid/sd-jwt/types.d.ts.map +1 -0
  32. package/lib/typescript/rp/__test__/index.test.d.ts.map +1 -0
  33. package/lib/typescript/{src/rp → rp}/index.d.ts +8 -8
  34. package/lib/typescript/rp/index.d.ts.map +1 -0
  35. package/lib/typescript/rp/types.d.ts +735 -0
  36. package/lib/typescript/{src/rp → rp}/types.d.ts.map +1 -1
  37. package/lib/typescript/sd-jwt/__test__/converters.test.d.ts.map +1 -0
  38. package/lib/typescript/sd-jwt/__test__/index.test.d.ts.map +1 -0
  39. package/lib/typescript/sd-jwt/__test__/types.test.d.ts.map +1 -0
  40. package/lib/typescript/sd-jwt/converters.d.ts.map +1 -0
  41. package/lib/typescript/sd-jwt/index.d.ts.map +1 -0
  42. package/lib/typescript/sd-jwt/types.d.ts.map +1 -0
  43. package/lib/typescript/sd-jwt/verifier.d.ts.map +1 -0
  44. package/lib/typescript/utils/dpop.d.ts.map +1 -0
  45. package/lib/typescript/utils/errors.d.ts.map +1 -0
  46. package/lib/typescript/{src/utils → utils}/jwk.d.ts +9 -0
  47. package/lib/typescript/utils/jwk.d.ts.map +1 -0
  48. package/lib/typescript/wallet-instance-attestation/index.d.ts.map +1 -0
  49. package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -0
  50. package/lib/typescript/{src/wallet-instance-attestation → wallet-instance-attestation}/types.d.ts +40 -4
  51. package/lib/typescript/{src/wallet-instance-attestation → wallet-instance-attestation}/types.d.ts.map +1 -1
  52. package/package.json +2 -2
  53. package/src/rp/__test__/index.test.ts +222 -0
  54. package/src/rp/index.ts +44 -54
  55. package/src/rp/types.ts +8 -7
  56. package/src/utils/jwk.ts +21 -0
  57. package/src/wallet-instance-attestation/issuing.ts +3 -2
  58. package/src/wallet-instance-attestation/types.ts +6 -2
  59. package/lib/typescript/src/index.d.ts.map +0 -1
  60. package/lib/typescript/src/pid/index.d.ts.map +0 -1
  61. package/lib/typescript/src/pid/issuing.d.ts.map +0 -1
  62. package/lib/typescript/src/pid/sd-jwt/converters.d.ts.map +0 -1
  63. package/lib/typescript/src/pid/sd-jwt/index.d.ts.map +0 -1
  64. package/lib/typescript/src/pid/sd-jwt/types.d.ts.map +0 -1
  65. package/lib/typescript/src/rp/__test__/index.test.d.ts.map +0 -1
  66. package/lib/typescript/src/rp/index.d.ts.map +0 -1
  67. package/lib/typescript/src/rp/types.d.ts +0 -864
  68. package/lib/typescript/src/sd-jwt/__test__/converters.test.d.ts.map +0 -1
  69. package/lib/typescript/src/sd-jwt/__test__/index.test.d.ts.map +0 -1
  70. package/lib/typescript/src/sd-jwt/__test__/types.test.d.ts.map +0 -1
  71. package/lib/typescript/src/sd-jwt/converters.d.ts.map +0 -1
  72. package/lib/typescript/src/sd-jwt/index.d.ts.map +0 -1
  73. package/lib/typescript/src/sd-jwt/types.d.ts.map +0 -1
  74. package/lib/typescript/src/sd-jwt/verifier.d.ts.map +0 -1
  75. package/lib/typescript/src/utils/dpop.d.ts.map +0 -1
  76. package/lib/typescript/src/utils/errors.d.ts.map +0 -1
  77. package/lib/typescript/src/utils/jwk.d.ts.map +0 -1
  78. package/lib/typescript/src/wallet-instance-attestation/index.d.ts.map +0 -1
  79. package/lib/typescript/src/wallet-instance-attestation/issuing.d.ts.map +0 -1
  80. /package/lib/typescript/{src/index.d.ts → index.d.ts} +0 -0
  81. /package/lib/typescript/{src/pid → pid}/index.d.ts +0 -0
  82. /package/lib/typescript/{src/pid → pid}/issuing.d.ts +0 -0
  83. /package/lib/typescript/{src/pid → pid}/metadata.d.ts +0 -0
  84. /package/lib/typescript/{src/pid → pid}/sd-jwt/converters.d.ts +0 -0
  85. /package/lib/typescript/{src/pid → pid}/sd-jwt/index.d.ts +0 -0
  86. /package/lib/typescript/{src/pid → pid}/sd-jwt/types.d.ts +0 -0
  87. /package/lib/typescript/{src/rp → rp}/__test__/index.test.d.ts +0 -0
  88. /package/lib/typescript/{src/sd-jwt → sd-jwt}/__test__/converters.test.d.ts +0 -0
  89. /package/lib/typescript/{src/sd-jwt → sd-jwt}/__test__/index.test.d.ts +0 -0
  90. /package/lib/typescript/{src/sd-jwt → sd-jwt}/__test__/types.test.d.ts +0 -0
  91. /package/lib/typescript/{src/sd-jwt → sd-jwt}/converters.d.ts +0 -0
  92. /package/lib/typescript/{src/sd-jwt → sd-jwt}/index.d.ts +0 -0
  93. /package/lib/typescript/{src/sd-jwt → sd-jwt}/types.d.ts +0 -0
  94. /package/lib/typescript/{src/sd-jwt → sd-jwt}/verifier.d.ts +0 -0
  95. /package/lib/typescript/{src/utils → utils}/dpop.d.ts +0 -0
  96. /package/lib/typescript/{src/utils → utils}/errors.d.ts +0 -0
  97. /package/lib/typescript/{src/wallet-instance-attestation → wallet-instance-attestation}/index.d.ts +0 -0
  98. /package/lib/typescript/{src/wallet-instance-attestation → wallet-instance-attestation}/issuing.d.ts +0 -0
@@ -0,0 +1,735 @@
1
+ import * as z from "zod";
2
+ export type RequestObject = z.infer<typeof RequestObject>;
3
+ export declare const RequestObject: z.ZodObject<{
4
+ header: z.ZodObject<{
5
+ typ: z.ZodOptional<z.ZodLiteral<"JWT">>;
6
+ alg: z.ZodString;
7
+ kid: z.ZodString;
8
+ trust_chain: z.ZodArray<z.ZodString, "many">;
9
+ }, "strip", z.ZodTypeAny, {
10
+ alg: string;
11
+ kid: string;
12
+ trust_chain: string[];
13
+ typ?: "JWT" | undefined;
14
+ }, {
15
+ alg: string;
16
+ kid: string;
17
+ trust_chain: string[];
18
+ typ?: "JWT" | undefined;
19
+ }>;
20
+ payload: z.ZodObject<{
21
+ iss: z.ZodString;
22
+ iat: z.ZodNumber;
23
+ exp: z.ZodNumber;
24
+ state: z.ZodString;
25
+ nonce: z.ZodString;
26
+ response_uri: z.ZodString;
27
+ response_type: z.ZodLiteral<"vp_token">;
28
+ response_mode: z.ZodLiteral<"direct_post.jwt">;
29
+ client_id: z.ZodString;
30
+ client_id_scheme: z.ZodLiteral<"entity_id">;
31
+ scope: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ iss: string;
34
+ iat: number;
35
+ exp: number;
36
+ response_type: "vp_token";
37
+ state: string;
38
+ client_id: string;
39
+ nonce: string;
40
+ response_uri: string;
41
+ response_mode: "direct_post.jwt";
42
+ client_id_scheme: "entity_id";
43
+ scope: string;
44
+ }, {
45
+ iss: string;
46
+ iat: number;
47
+ exp: number;
48
+ response_type: "vp_token";
49
+ state: string;
50
+ client_id: string;
51
+ nonce: string;
52
+ response_uri: string;
53
+ response_mode: "direct_post.jwt";
54
+ client_id_scheme: "entity_id";
55
+ scope: string;
56
+ }>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ header: {
59
+ alg: string;
60
+ kid: string;
61
+ trust_chain: string[];
62
+ typ?: "JWT" | undefined;
63
+ };
64
+ payload: {
65
+ iss: string;
66
+ iat: number;
67
+ exp: number;
68
+ response_type: "vp_token";
69
+ state: string;
70
+ client_id: string;
71
+ nonce: string;
72
+ response_uri: string;
73
+ response_mode: "direct_post.jwt";
74
+ client_id_scheme: "entity_id";
75
+ scope: string;
76
+ };
77
+ }, {
78
+ header: {
79
+ alg: string;
80
+ kid: string;
81
+ trust_chain: string[];
82
+ typ?: "JWT" | undefined;
83
+ };
84
+ payload: {
85
+ iss: string;
86
+ iat: number;
87
+ exp: number;
88
+ response_type: "vp_token";
89
+ state: string;
90
+ client_id: string;
91
+ nonce: string;
92
+ response_uri: string;
93
+ response_mode: "direct_post.jwt";
94
+ client_id_scheme: "entity_id";
95
+ scope: string;
96
+ };
97
+ }>;
98
+ export type RpEntityConfiguration = z.infer<typeof RpEntityConfiguration>;
99
+ export declare const RpEntityConfiguration: z.ZodObject<{
100
+ header: z.ZodObject<{
101
+ typ: z.ZodLiteral<"entity-statement+jwt">;
102
+ alg: z.ZodString;
103
+ kid: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ alg: string;
106
+ kid: string;
107
+ typ: "entity-statement+jwt";
108
+ }, {
109
+ alg: string;
110
+ kid: string;
111
+ typ: "entity-statement+jwt";
112
+ }>;
113
+ payload: z.ZodObject<{
114
+ exp: z.ZodNumber;
115
+ iat: z.ZodNumber;
116
+ iss: z.ZodString;
117
+ sub: z.ZodString;
118
+ jwks: z.ZodObject<{
119
+ keys: z.ZodArray<z.ZodObject<{
120
+ alg: z.ZodOptional<z.ZodString>;
121
+ crv: z.ZodOptional<z.ZodString>;
122
+ d: z.ZodOptional<z.ZodString>;
123
+ dp: z.ZodOptional<z.ZodString>;
124
+ dq: z.ZodOptional<z.ZodString>;
125
+ e: z.ZodOptional<z.ZodString>;
126
+ ext: z.ZodOptional<z.ZodBoolean>;
127
+ k: z.ZodOptional<z.ZodString>;
128
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
129
+ kid: z.ZodOptional<z.ZodString>;
130
+ kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
131
+ n: z.ZodOptional<z.ZodString>;
132
+ p: z.ZodOptional<z.ZodString>;
133
+ q: z.ZodOptional<z.ZodString>;
134
+ qi: z.ZodOptional<z.ZodString>;
135
+ use: z.ZodOptional<z.ZodString>;
136
+ x: z.ZodOptional<z.ZodString>;
137
+ y: z.ZodOptional<z.ZodString>;
138
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
139
+ x5t: z.ZodOptional<z.ZodString>;
140
+ "x5t#S256": z.ZodOptional<z.ZodString>;
141
+ x5u: z.ZodOptional<z.ZodString>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ kty: "RSA" | "EC";
144
+ alg?: string | undefined;
145
+ crv?: string | undefined;
146
+ d?: string | undefined;
147
+ dp?: string | undefined;
148
+ dq?: string | undefined;
149
+ e?: string | undefined;
150
+ ext?: boolean | undefined;
151
+ k?: string | undefined;
152
+ key_ops?: string[] | undefined;
153
+ kid?: string | undefined;
154
+ n?: string | undefined;
155
+ p?: string | undefined;
156
+ q?: string | undefined;
157
+ qi?: string | undefined;
158
+ use?: string | undefined;
159
+ x?: string | undefined;
160
+ y?: string | undefined;
161
+ x5c?: string[] | undefined;
162
+ x5t?: string | undefined;
163
+ "x5t#S256"?: string | undefined;
164
+ x5u?: string | undefined;
165
+ }, {
166
+ kty: "RSA" | "EC";
167
+ alg?: string | undefined;
168
+ crv?: string | undefined;
169
+ d?: string | undefined;
170
+ dp?: string | undefined;
171
+ dq?: string | undefined;
172
+ e?: string | undefined;
173
+ ext?: boolean | undefined;
174
+ k?: string | undefined;
175
+ key_ops?: string[] | undefined;
176
+ kid?: string | undefined;
177
+ n?: string | undefined;
178
+ p?: string | undefined;
179
+ q?: string | undefined;
180
+ qi?: string | undefined;
181
+ use?: string | undefined;
182
+ x?: string | undefined;
183
+ y?: string | undefined;
184
+ x5c?: string[] | undefined;
185
+ x5t?: string | undefined;
186
+ "x5t#S256"?: string | undefined;
187
+ x5u?: string | undefined;
188
+ }>, "many">;
189
+ }, "strip", z.ZodTypeAny, {
190
+ keys: {
191
+ kty: "RSA" | "EC";
192
+ alg?: string | undefined;
193
+ crv?: string | undefined;
194
+ d?: string | undefined;
195
+ dp?: string | undefined;
196
+ dq?: string | undefined;
197
+ e?: string | undefined;
198
+ ext?: boolean | undefined;
199
+ k?: string | undefined;
200
+ key_ops?: string[] | undefined;
201
+ kid?: string | undefined;
202
+ n?: string | undefined;
203
+ p?: string | undefined;
204
+ q?: string | undefined;
205
+ qi?: string | undefined;
206
+ use?: string | undefined;
207
+ x?: string | undefined;
208
+ y?: string | undefined;
209
+ x5c?: string[] | undefined;
210
+ x5t?: string | undefined;
211
+ "x5t#S256"?: string | undefined;
212
+ x5u?: string | undefined;
213
+ }[];
214
+ }, {
215
+ keys: {
216
+ kty: "RSA" | "EC";
217
+ alg?: string | undefined;
218
+ crv?: string | undefined;
219
+ d?: string | undefined;
220
+ dp?: string | undefined;
221
+ dq?: string | undefined;
222
+ e?: string | undefined;
223
+ ext?: boolean | undefined;
224
+ k?: string | undefined;
225
+ key_ops?: string[] | undefined;
226
+ kid?: string | undefined;
227
+ n?: string | undefined;
228
+ p?: string | undefined;
229
+ q?: string | undefined;
230
+ qi?: string | undefined;
231
+ use?: string | undefined;
232
+ x?: string | undefined;
233
+ y?: string | undefined;
234
+ x5c?: string[] | undefined;
235
+ x5t?: string | undefined;
236
+ "x5t#S256"?: string | undefined;
237
+ x5u?: string | undefined;
238
+ }[];
239
+ }>;
240
+ metadata: z.ZodObject<{
241
+ wallet_relying_party: z.ZodObject<{
242
+ application_type: z.ZodString;
243
+ client_id: z.ZodString;
244
+ client_name: z.ZodString;
245
+ jwks: z.ZodArray<z.ZodObject<{
246
+ alg: z.ZodOptional<z.ZodString>;
247
+ crv: z.ZodOptional<z.ZodString>;
248
+ d: z.ZodOptional<z.ZodString>;
249
+ dp: z.ZodOptional<z.ZodString>;
250
+ dq: z.ZodOptional<z.ZodString>;
251
+ e: z.ZodOptional<z.ZodString>;
252
+ ext: z.ZodOptional<z.ZodBoolean>;
253
+ k: z.ZodOptional<z.ZodString>;
254
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
255
+ kid: z.ZodOptional<z.ZodString>;
256
+ kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
257
+ n: z.ZodOptional<z.ZodString>;
258
+ p: z.ZodOptional<z.ZodString>;
259
+ q: z.ZodOptional<z.ZodString>;
260
+ qi: z.ZodOptional<z.ZodString>;
261
+ use: z.ZodOptional<z.ZodString>;
262
+ x: z.ZodOptional<z.ZodString>;
263
+ y: z.ZodOptional<z.ZodString>;
264
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
265
+ x5t: z.ZodOptional<z.ZodString>;
266
+ "x5t#S256": z.ZodOptional<z.ZodString>;
267
+ x5u: z.ZodOptional<z.ZodString>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ kty: "RSA" | "EC";
270
+ alg?: string | undefined;
271
+ crv?: string | undefined;
272
+ d?: string | undefined;
273
+ dp?: string | undefined;
274
+ dq?: string | undefined;
275
+ e?: string | undefined;
276
+ ext?: boolean | undefined;
277
+ k?: string | undefined;
278
+ key_ops?: string[] | undefined;
279
+ kid?: string | undefined;
280
+ n?: string | undefined;
281
+ p?: string | undefined;
282
+ q?: string | undefined;
283
+ qi?: string | undefined;
284
+ use?: string | undefined;
285
+ x?: string | undefined;
286
+ y?: string | undefined;
287
+ x5c?: string[] | undefined;
288
+ x5t?: string | undefined;
289
+ "x5t#S256"?: string | undefined;
290
+ x5u?: string | undefined;
291
+ }, {
292
+ kty: "RSA" | "EC";
293
+ alg?: string | undefined;
294
+ crv?: string | undefined;
295
+ d?: string | undefined;
296
+ dp?: string | undefined;
297
+ dq?: string | undefined;
298
+ e?: string | undefined;
299
+ ext?: boolean | undefined;
300
+ k?: string | undefined;
301
+ key_ops?: string[] | undefined;
302
+ kid?: string | undefined;
303
+ n?: string | undefined;
304
+ p?: string | undefined;
305
+ q?: string | undefined;
306
+ qi?: string | undefined;
307
+ use?: string | undefined;
308
+ x?: string | undefined;
309
+ y?: string | undefined;
310
+ x5c?: string[] | undefined;
311
+ x5t?: string | undefined;
312
+ "x5t#S256"?: string | undefined;
313
+ x5u?: string | undefined;
314
+ }>, "many">;
315
+ contacts: z.ZodArray<z.ZodString, "many">;
316
+ }, "strip", z.ZodTypeAny, {
317
+ jwks: {
318
+ kty: "RSA" | "EC";
319
+ alg?: string | undefined;
320
+ crv?: string | undefined;
321
+ d?: string | undefined;
322
+ dp?: string | undefined;
323
+ dq?: string | undefined;
324
+ e?: string | undefined;
325
+ ext?: boolean | undefined;
326
+ k?: string | undefined;
327
+ key_ops?: string[] | undefined;
328
+ kid?: string | undefined;
329
+ n?: string | undefined;
330
+ p?: string | undefined;
331
+ q?: string | undefined;
332
+ qi?: string | undefined;
333
+ use?: string | undefined;
334
+ x?: string | undefined;
335
+ y?: string | undefined;
336
+ x5c?: string[] | undefined;
337
+ x5t?: string | undefined;
338
+ "x5t#S256"?: string | undefined;
339
+ x5u?: string | undefined;
340
+ }[];
341
+ client_id: string;
342
+ application_type: string;
343
+ client_name: string;
344
+ contacts: string[];
345
+ }, {
346
+ jwks: {
347
+ kty: "RSA" | "EC";
348
+ alg?: string | undefined;
349
+ crv?: string | undefined;
350
+ d?: string | undefined;
351
+ dp?: string | undefined;
352
+ dq?: string | undefined;
353
+ e?: string | undefined;
354
+ ext?: boolean | undefined;
355
+ k?: string | undefined;
356
+ key_ops?: string[] | undefined;
357
+ kid?: string | undefined;
358
+ n?: string | undefined;
359
+ p?: string | undefined;
360
+ q?: string | undefined;
361
+ qi?: string | undefined;
362
+ use?: string | undefined;
363
+ x?: string | undefined;
364
+ y?: string | undefined;
365
+ x5c?: string[] | undefined;
366
+ x5t?: string | undefined;
367
+ "x5t#S256"?: string | undefined;
368
+ x5u?: string | undefined;
369
+ }[];
370
+ client_id: string;
371
+ application_type: string;
372
+ client_name: string;
373
+ contacts: string[];
374
+ }>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ wallet_relying_party: {
377
+ jwks: {
378
+ kty: "RSA" | "EC";
379
+ alg?: string | undefined;
380
+ crv?: string | undefined;
381
+ d?: string | undefined;
382
+ dp?: string | undefined;
383
+ dq?: string | undefined;
384
+ e?: string | undefined;
385
+ ext?: boolean | undefined;
386
+ k?: string | undefined;
387
+ key_ops?: string[] | undefined;
388
+ kid?: string | undefined;
389
+ n?: string | undefined;
390
+ p?: string | undefined;
391
+ q?: string | undefined;
392
+ qi?: string | undefined;
393
+ use?: string | undefined;
394
+ x?: string | undefined;
395
+ y?: string | undefined;
396
+ x5c?: string[] | undefined;
397
+ x5t?: string | undefined;
398
+ "x5t#S256"?: string | undefined;
399
+ x5u?: string | undefined;
400
+ }[];
401
+ client_id: string;
402
+ application_type: string;
403
+ client_name: string;
404
+ contacts: string[];
405
+ };
406
+ }, {
407
+ wallet_relying_party: {
408
+ jwks: {
409
+ kty: "RSA" | "EC";
410
+ alg?: string | undefined;
411
+ crv?: string | undefined;
412
+ d?: string | undefined;
413
+ dp?: string | undefined;
414
+ dq?: string | undefined;
415
+ e?: string | undefined;
416
+ ext?: boolean | undefined;
417
+ k?: string | undefined;
418
+ key_ops?: string[] | undefined;
419
+ kid?: string | undefined;
420
+ n?: string | undefined;
421
+ p?: string | undefined;
422
+ q?: string | undefined;
423
+ qi?: string | undefined;
424
+ use?: string | undefined;
425
+ x?: string | undefined;
426
+ y?: string | undefined;
427
+ x5c?: string[] | undefined;
428
+ x5t?: string | undefined;
429
+ "x5t#S256"?: string | undefined;
430
+ x5u?: string | undefined;
431
+ }[];
432
+ client_id: string;
433
+ application_type: string;
434
+ client_name: string;
435
+ contacts: string[];
436
+ };
437
+ }>;
438
+ authority_hints: z.ZodArray<z.ZodString, "many">;
439
+ }, "strip", z.ZodTypeAny, {
440
+ iss: string;
441
+ sub: string;
442
+ iat: number;
443
+ exp: number;
444
+ jwks: {
445
+ keys: {
446
+ kty: "RSA" | "EC";
447
+ alg?: string | undefined;
448
+ crv?: string | undefined;
449
+ d?: string | undefined;
450
+ dp?: string | undefined;
451
+ dq?: string | undefined;
452
+ e?: string | undefined;
453
+ ext?: boolean | undefined;
454
+ k?: string | undefined;
455
+ key_ops?: string[] | undefined;
456
+ kid?: string | undefined;
457
+ n?: string | undefined;
458
+ p?: string | undefined;
459
+ q?: string | undefined;
460
+ qi?: string | undefined;
461
+ use?: string | undefined;
462
+ x?: string | undefined;
463
+ y?: string | undefined;
464
+ x5c?: string[] | undefined;
465
+ x5t?: string | undefined;
466
+ "x5t#S256"?: string | undefined;
467
+ x5u?: string | undefined;
468
+ }[];
469
+ };
470
+ metadata: {
471
+ wallet_relying_party: {
472
+ jwks: {
473
+ kty: "RSA" | "EC";
474
+ alg?: string | undefined;
475
+ crv?: string | undefined;
476
+ d?: string | undefined;
477
+ dp?: string | undefined;
478
+ dq?: string | undefined;
479
+ e?: string | undefined;
480
+ ext?: boolean | undefined;
481
+ k?: string | undefined;
482
+ key_ops?: string[] | undefined;
483
+ kid?: string | undefined;
484
+ n?: string | undefined;
485
+ p?: string | undefined;
486
+ q?: string | undefined;
487
+ qi?: string | undefined;
488
+ use?: string | undefined;
489
+ x?: string | undefined;
490
+ y?: string | undefined;
491
+ x5c?: string[] | undefined;
492
+ x5t?: string | undefined;
493
+ "x5t#S256"?: string | undefined;
494
+ x5u?: string | undefined;
495
+ }[];
496
+ client_id: string;
497
+ application_type: string;
498
+ client_name: string;
499
+ contacts: string[];
500
+ };
501
+ };
502
+ authority_hints: string[];
503
+ }, {
504
+ iss: string;
505
+ sub: string;
506
+ iat: number;
507
+ exp: number;
508
+ jwks: {
509
+ keys: {
510
+ kty: "RSA" | "EC";
511
+ alg?: string | undefined;
512
+ crv?: string | undefined;
513
+ d?: string | undefined;
514
+ dp?: string | undefined;
515
+ dq?: string | undefined;
516
+ e?: string | undefined;
517
+ ext?: boolean | undefined;
518
+ k?: string | undefined;
519
+ key_ops?: string[] | undefined;
520
+ kid?: string | undefined;
521
+ n?: string | undefined;
522
+ p?: string | undefined;
523
+ q?: string | undefined;
524
+ qi?: string | undefined;
525
+ use?: string | undefined;
526
+ x?: string | undefined;
527
+ y?: string | undefined;
528
+ x5c?: string[] | undefined;
529
+ x5t?: string | undefined;
530
+ "x5t#S256"?: string | undefined;
531
+ x5u?: string | undefined;
532
+ }[];
533
+ };
534
+ metadata: {
535
+ wallet_relying_party: {
536
+ jwks: {
537
+ kty: "RSA" | "EC";
538
+ alg?: string | undefined;
539
+ crv?: string | undefined;
540
+ d?: string | undefined;
541
+ dp?: string | undefined;
542
+ dq?: string | undefined;
543
+ e?: string | undefined;
544
+ ext?: boolean | undefined;
545
+ k?: string | undefined;
546
+ key_ops?: string[] | undefined;
547
+ kid?: string | undefined;
548
+ n?: string | undefined;
549
+ p?: string | undefined;
550
+ q?: string | undefined;
551
+ qi?: string | undefined;
552
+ use?: string | undefined;
553
+ x?: string | undefined;
554
+ y?: string | undefined;
555
+ x5c?: string[] | undefined;
556
+ x5t?: string | undefined;
557
+ "x5t#S256"?: string | undefined;
558
+ x5u?: string | undefined;
559
+ }[];
560
+ client_id: string;
561
+ application_type: string;
562
+ client_name: string;
563
+ contacts: string[];
564
+ };
565
+ };
566
+ authority_hints: string[];
567
+ }>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ header: {
570
+ alg: string;
571
+ kid: string;
572
+ typ: "entity-statement+jwt";
573
+ };
574
+ payload: {
575
+ iss: string;
576
+ sub: string;
577
+ iat: number;
578
+ exp: number;
579
+ jwks: {
580
+ keys: {
581
+ kty: "RSA" | "EC";
582
+ alg?: string | undefined;
583
+ crv?: string | undefined;
584
+ d?: string | undefined;
585
+ dp?: string | undefined;
586
+ dq?: string | undefined;
587
+ e?: string | undefined;
588
+ ext?: boolean | undefined;
589
+ k?: string | undefined;
590
+ key_ops?: string[] | undefined;
591
+ kid?: string | undefined;
592
+ n?: string | undefined;
593
+ p?: string | undefined;
594
+ q?: string | undefined;
595
+ qi?: string | undefined;
596
+ use?: string | undefined;
597
+ x?: string | undefined;
598
+ y?: string | undefined;
599
+ x5c?: string[] | undefined;
600
+ x5t?: string | undefined;
601
+ "x5t#S256"?: string | undefined;
602
+ x5u?: string | undefined;
603
+ }[];
604
+ };
605
+ metadata: {
606
+ wallet_relying_party: {
607
+ jwks: {
608
+ kty: "RSA" | "EC";
609
+ alg?: string | undefined;
610
+ crv?: string | undefined;
611
+ d?: string | undefined;
612
+ dp?: string | undefined;
613
+ dq?: string | undefined;
614
+ e?: string | undefined;
615
+ ext?: boolean | undefined;
616
+ k?: string | undefined;
617
+ key_ops?: string[] | undefined;
618
+ kid?: string | undefined;
619
+ n?: string | undefined;
620
+ p?: string | undefined;
621
+ q?: string | undefined;
622
+ qi?: string | undefined;
623
+ use?: string | undefined;
624
+ x?: string | undefined;
625
+ y?: string | undefined;
626
+ x5c?: string[] | undefined;
627
+ x5t?: string | undefined;
628
+ "x5t#S256"?: string | undefined;
629
+ x5u?: string | undefined;
630
+ }[];
631
+ client_id: string;
632
+ application_type: string;
633
+ client_name: string;
634
+ contacts: string[];
635
+ };
636
+ };
637
+ authority_hints: string[];
638
+ };
639
+ }, {
640
+ header: {
641
+ alg: string;
642
+ kid: string;
643
+ typ: "entity-statement+jwt";
644
+ };
645
+ payload: {
646
+ iss: string;
647
+ sub: string;
648
+ iat: number;
649
+ exp: number;
650
+ jwks: {
651
+ keys: {
652
+ kty: "RSA" | "EC";
653
+ alg?: string | undefined;
654
+ crv?: string | undefined;
655
+ d?: string | undefined;
656
+ dp?: string | undefined;
657
+ dq?: string | undefined;
658
+ e?: string | undefined;
659
+ ext?: boolean | undefined;
660
+ k?: string | undefined;
661
+ key_ops?: string[] | undefined;
662
+ kid?: string | undefined;
663
+ n?: string | undefined;
664
+ p?: string | undefined;
665
+ q?: string | undefined;
666
+ qi?: string | undefined;
667
+ use?: string | undefined;
668
+ x?: string | undefined;
669
+ y?: string | undefined;
670
+ x5c?: string[] | undefined;
671
+ x5t?: string | undefined;
672
+ "x5t#S256"?: string | undefined;
673
+ x5u?: string | undefined;
674
+ }[];
675
+ };
676
+ metadata: {
677
+ wallet_relying_party: {
678
+ jwks: {
679
+ kty: "RSA" | "EC";
680
+ alg?: string | undefined;
681
+ crv?: string | undefined;
682
+ d?: string | undefined;
683
+ dp?: string | undefined;
684
+ dq?: string | undefined;
685
+ e?: string | undefined;
686
+ ext?: boolean | undefined;
687
+ k?: string | undefined;
688
+ key_ops?: string[] | undefined;
689
+ kid?: string | undefined;
690
+ n?: string | undefined;
691
+ p?: string | undefined;
692
+ q?: string | undefined;
693
+ qi?: string | undefined;
694
+ use?: string | undefined;
695
+ x?: string | undefined;
696
+ y?: string | undefined;
697
+ x5c?: string[] | undefined;
698
+ x5t?: string | undefined;
699
+ "x5t#S256"?: string | undefined;
700
+ x5u?: string | undefined;
701
+ }[];
702
+ client_id: string;
703
+ application_type: string;
704
+ client_name: string;
705
+ contacts: string[];
706
+ };
707
+ };
708
+ authority_hints: string[];
709
+ };
710
+ }>;
711
+ export type QRCodePayload = z.infer<typeof QRCodePayload>;
712
+ export declare const QRCodePayload: z.ZodObject<{
713
+ protocol: z.ZodString;
714
+ resource: z.ZodString;
715
+ clientId: z.ZodString;
716
+ requestURI: z.ZodString;
717
+ }, "strip", z.ZodTypeAny, {
718
+ protocol: string;
719
+ resource: string;
720
+ clientId: string;
721
+ requestURI: string;
722
+ }, {
723
+ protocol: string;
724
+ resource: string;
725
+ clientId: string;
726
+ requestURI: string;
727
+ }>;
728
+ /**
729
+ * A pair that associate a tokenized Verified Credential with the claims presented or requested to present.
730
+ */
731
+ export type Presentation = [
732
+ string,
733
+ string[]
734
+ ];
735
+ //# sourceMappingURL=types.d.ts.map