@pagopa/io-react-native-wallet 0.1.0

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