@pagopa/io-react-native-wallet 0.4.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. package/README.md +128 -19
  2. package/lib/commonjs/index.js +16 -23
  3. package/lib/commonjs/index.js.map +1 -1
  4. package/lib/commonjs/pid/index.js +3 -8
  5. package/lib/commonjs/pid/index.js.map +1 -1
  6. package/lib/commonjs/pid/issuing.js +153 -176
  7. package/lib/commonjs/pid/issuing.js.map +1 -1
  8. package/lib/commonjs/rp/__test__/index.test.js +7 -5
  9. package/lib/commonjs/rp/__test__/index.test.js.map +1 -1
  10. package/lib/commonjs/rp/index.js +145 -155
  11. package/lib/commonjs/rp/index.js.map +1 -1
  12. package/lib/commonjs/rp/types.js +1 -21
  13. package/lib/commonjs/rp/types.js.map +1 -1
  14. package/lib/commonjs/trust/index.js +24 -5
  15. package/lib/commonjs/trust/index.js.map +1 -1
  16. package/lib/commonjs/trust/types.js +102 -9
  17. package/lib/commonjs/trust/types.js.map +1 -1
  18. package/lib/commonjs/utils/crypto.js +46 -0
  19. package/lib/commonjs/utils/crypto.js.map +1 -0
  20. package/lib/commonjs/utils/dpop.js +14 -7
  21. package/lib/commonjs/utils/dpop.js.map +1 -1
  22. package/lib/commonjs/wallet-instance-attestation/index.js +3 -3
  23. package/lib/commonjs/wallet-instance-attestation/issuing.js +42 -60
  24. package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
  25. package/lib/module/index.js +4 -6
  26. package/lib/module/index.js.map +1 -1
  27. package/lib/module/pid/index.js +1 -1
  28. package/lib/module/pid/index.js.map +1 -1
  29. package/lib/module/pid/issuing.js +152 -180
  30. package/lib/module/pid/issuing.js.map +1 -1
  31. package/lib/module/rp/__test__/index.test.js +3 -3
  32. package/lib/module/rp/__test__/index.test.js.map +1 -1
  33. package/lib/module/rp/index.js +141 -154
  34. package/lib/module/rp/index.js.map +1 -1
  35. package/lib/module/rp/types.js +0 -20
  36. package/lib/module/rp/types.js.map +1 -1
  37. package/lib/module/trust/index.js +19 -5
  38. package/lib/module/trust/index.js.map +1 -1
  39. package/lib/module/trust/types.js +100 -7
  40. package/lib/module/trust/types.js.map +1 -1
  41. package/lib/module/utils/crypto.js +40 -0
  42. package/lib/module/utils/crypto.js.map +1 -0
  43. package/lib/module/utils/dpop.js +13 -5
  44. package/lib/module/utils/dpop.js.map +1 -1
  45. package/lib/module/wallet-instance-attestation/index.js +2 -2
  46. package/lib/module/wallet-instance-attestation/index.js.map +1 -1
  47. package/lib/module/wallet-instance-attestation/issuing.js +40 -58
  48. package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
  49. package/lib/typescript/index.d.ts +4 -6
  50. package/lib/typescript/index.d.ts.map +1 -1
  51. package/lib/typescript/pid/index.d.ts +1 -1
  52. package/lib/typescript/pid/index.d.ts.map +1 -1
  53. package/lib/typescript/pid/issuing.d.ts +43 -88
  54. package/lib/typescript/pid/issuing.d.ts.map +1 -1
  55. package/lib/typescript/rp/index.d.ts +41 -87
  56. package/lib/typescript/rp/index.d.ts.map +1 -1
  57. package/lib/typescript/rp/types.d.ts +10 -906
  58. package/lib/typescript/rp/types.d.ts.map +1 -1
  59. package/lib/typescript/sd-jwt/index.d.ts +1 -1
  60. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  61. package/lib/typescript/trust/index.d.ts +806 -3
  62. package/lib/typescript/trust/index.d.ts.map +1 -1
  63. package/lib/typescript/trust/types.d.ts +9655 -297
  64. package/lib/typescript/trust/types.d.ts.map +1 -1
  65. package/lib/typescript/utils/crypto.d.ts +10 -0
  66. package/lib/typescript/utils/crypto.d.ts.map +1 -0
  67. package/lib/typescript/utils/dpop.d.ts +10 -2
  68. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  69. package/lib/typescript/wallet-instance-attestation/index.d.ts +2 -2
  70. package/lib/typescript/wallet-instance-attestation/index.d.ts.map +1 -1
  71. package/lib/typescript/wallet-instance-attestation/issuing.d.ts +18 -31
  72. package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
  73. package/lib/typescript/wallet-instance-attestation/types.d.ts +4 -4
  74. package/package.json +2 -2
  75. package/src/index.ts +14 -13
  76. package/src/pid/index.ts +1 -1
  77. package/src/pid/issuing.ts +233 -232
  78. package/src/rp/__test__/index.test.ts +3 -3
  79. package/src/rp/index.ts +172 -194
  80. package/src/rp/types.ts +0 -24
  81. package/src/sd-jwt/index.ts +1 -1
  82. package/src/trust/index.ts +106 -5
  83. package/src/trust/types.ts +152 -34
  84. package/src/utils/crypto.ts +41 -0
  85. package/src/utils/dpop.ts +17 -7
  86. package/src/wallet-instance-attestation/index.ts +2 -2
  87. package/src/wallet-instance-attestation/issuing.ts +51 -63
  88. package/lib/commonjs/pid/metadata.js +0 -49
  89. package/lib/commonjs/pid/metadata.js.map +0 -1
  90. package/lib/module/pid/metadata.js +0 -41
  91. package/lib/module/pid/metadata.js.map +0 -1
  92. package/lib/typescript/pid/metadata.d.ts +0 -482
  93. package/lib/typescript/pid/metadata.d.ts.map +0 -1
  94. package/src/pid/metadata.ts +0 -46
@@ -33,10 +33,10 @@ export declare const RequestObject: z.ZodObject<{
33
33
  iss: string;
34
34
  iat: number;
35
35
  exp: number;
36
- response_type: "vp_token";
37
- state: string;
38
36
  client_id: string;
39
37
  nonce: string;
38
+ response_type: "vp_token";
39
+ state: string;
40
40
  response_uri: string;
41
41
  response_mode: "direct_post.jwt";
42
42
  client_id_scheme: "entity_id";
@@ -45,10 +45,10 @@ export declare const RequestObject: z.ZodObject<{
45
45
  iss: string;
46
46
  iat: number;
47
47
  exp: number;
48
- response_type: "vp_token";
49
- state: string;
50
48
  client_id: string;
51
49
  nonce: string;
50
+ response_type: "vp_token";
51
+ state: string;
52
52
  response_uri: string;
53
53
  response_mode: "direct_post.jwt";
54
54
  client_id_scheme: "entity_id";
@@ -65,10 +65,10 @@ export declare const RequestObject: z.ZodObject<{
65
65
  iss: string;
66
66
  iat: number;
67
67
  exp: number;
68
- response_type: "vp_token";
69
- state: string;
70
68
  client_id: string;
71
69
  nonce: string;
70
+ response_type: "vp_token";
71
+ state: string;
72
72
  response_uri: string;
73
73
  response_mode: "direct_post.jwt";
74
74
  client_id_scheme: "entity_id";
@@ -85,912 +85,16 @@ export declare const RequestObject: z.ZodObject<{
85
85
  iss: string;
86
86
  iat: number;
87
87
  exp: number;
88
- response_type: "vp_token";
89
- state: string;
90
88
  client_id: string;
91
89
  nonce: string;
90
+ response_type: "vp_token";
91
+ state: string;
92
92
  response_uri: string;
93
93
  response_mode: "direct_post.jwt";
94
94
  client_id_scheme: "entity_id";
95
95
  scope: string;
96
96
  };
97
97
  }>;
98
- /**
99
- * EntityConfiguration plus the metadata specific for a Relying Party entity.
100
- */
101
- export type RpEntityConfiguration = z.infer<typeof RpEntityConfiguration>;
102
- export declare const RpEntityConfiguration: z.ZodIntersection<z.ZodObject<{
103
- header: z.ZodObject<{
104
- typ: z.ZodLiteral<"entity-statement+jwt">;
105
- alg: z.ZodString;
106
- kid: z.ZodString;
107
- }, "strip", z.ZodTypeAny, {
108
- alg: string;
109
- kid: string;
110
- typ: "entity-statement+jwt";
111
- }, {
112
- alg: string;
113
- kid: string;
114
- typ: "entity-statement+jwt";
115
- }>;
116
- payload: z.ZodObject<{
117
- exp: z.ZodNumber;
118
- iat: z.ZodNumber;
119
- iss: z.ZodString;
120
- sub: z.ZodString;
121
- jwks: z.ZodObject<{
122
- keys: z.ZodArray<z.ZodObject<{
123
- alg: z.ZodOptional<z.ZodString>;
124
- crv: z.ZodOptional<z.ZodString>;
125
- d: z.ZodOptional<z.ZodString>;
126
- dp: z.ZodOptional<z.ZodString>;
127
- dq: z.ZodOptional<z.ZodString>;
128
- e: z.ZodOptional<z.ZodString>;
129
- ext: z.ZodOptional<z.ZodBoolean>;
130
- k: z.ZodOptional<z.ZodString>;
131
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
132
- kid: z.ZodOptional<z.ZodString>;
133
- kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
134
- n: z.ZodOptional<z.ZodString>;
135
- p: z.ZodOptional<z.ZodString>;
136
- q: z.ZodOptional<z.ZodString>;
137
- qi: z.ZodOptional<z.ZodString>;
138
- use: z.ZodOptional<z.ZodString>;
139
- x: z.ZodOptional<z.ZodString>;
140
- y: z.ZodOptional<z.ZodString>;
141
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
142
- x5t: z.ZodOptional<z.ZodString>;
143
- "x5t#S256": z.ZodOptional<z.ZodString>;
144
- x5u: z.ZodOptional<z.ZodString>;
145
- }, "strip", z.ZodTypeAny, {
146
- kty: "RSA" | "EC";
147
- alg?: string | undefined;
148
- crv?: string | undefined;
149
- d?: string | undefined;
150
- dp?: string | undefined;
151
- dq?: string | undefined;
152
- e?: string | undefined;
153
- ext?: boolean | undefined;
154
- k?: string | undefined;
155
- key_ops?: string[] | undefined;
156
- kid?: string | undefined;
157
- n?: string | undefined;
158
- p?: string | undefined;
159
- q?: string | undefined;
160
- qi?: string | undefined;
161
- use?: string | undefined;
162
- x?: string | undefined;
163
- y?: string | undefined;
164
- x5c?: string[] | undefined;
165
- x5t?: string | undefined;
166
- "x5t#S256"?: string | undefined;
167
- x5u?: string | undefined;
168
- }, {
169
- kty: "RSA" | "EC";
170
- alg?: string | undefined;
171
- crv?: string | undefined;
172
- d?: string | undefined;
173
- dp?: string | undefined;
174
- dq?: string | undefined;
175
- e?: string | undefined;
176
- ext?: boolean | undefined;
177
- k?: string | undefined;
178
- key_ops?: string[] | undefined;
179
- kid?: string | undefined;
180
- n?: string | undefined;
181
- p?: string | undefined;
182
- q?: string | undefined;
183
- qi?: string | undefined;
184
- use?: string | undefined;
185
- x?: string | undefined;
186
- y?: string | undefined;
187
- x5c?: string[] | undefined;
188
- x5t?: string | undefined;
189
- "x5t#S256"?: string | undefined;
190
- x5u?: string | undefined;
191
- }>, "many">;
192
- }, "strip", z.ZodTypeAny, {
193
- keys: {
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
- keys: {
219
- kty: "RSA" | "EC";
220
- alg?: string | undefined;
221
- crv?: string | undefined;
222
- d?: string | undefined;
223
- dp?: string | undefined;
224
- dq?: string | undefined;
225
- e?: string | undefined;
226
- ext?: boolean | undefined;
227
- k?: string | undefined;
228
- key_ops?: string[] | undefined;
229
- kid?: string | undefined;
230
- n?: string | undefined;
231
- p?: string | undefined;
232
- q?: string | undefined;
233
- qi?: string | undefined;
234
- use?: string | undefined;
235
- x?: string | undefined;
236
- y?: string | undefined;
237
- x5c?: string[] | undefined;
238
- x5t?: string | undefined;
239
- "x5t#S256"?: string | undefined;
240
- x5u?: string | undefined;
241
- }[];
242
- }>;
243
- metadata: z.ZodObject<{
244
- federation_entity: z.ZodObject<{
245
- federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
246
- federation_list_endpoint: z.ZodOptional<z.ZodString>;
247
- federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
248
- federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
249
- federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
250
- homepage_uri: z.ZodOptional<z.ZodString>;
251
- policy_uri: z.ZodOptional<z.ZodString>;
252
- logo_uri: z.ZodOptional<z.ZodString>;
253
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
254
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
255
- federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
256
- federation_list_endpoint: z.ZodOptional<z.ZodString>;
257
- federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
258
- federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
259
- federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
260
- homepage_uri: z.ZodOptional<z.ZodString>;
261
- policy_uri: z.ZodOptional<z.ZodString>;
262
- logo_uri: z.ZodOptional<z.ZodString>;
263
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
264
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
265
- federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
266
- federation_list_endpoint: z.ZodOptional<z.ZodString>;
267
- federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
268
- federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
269
- federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
270
- homepage_uri: z.ZodOptional<z.ZodString>;
271
- policy_uri: z.ZodOptional<z.ZodString>;
272
- logo_uri: z.ZodOptional<z.ZodString>;
273
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
274
- }, z.ZodTypeAny, "passthrough">>;
275
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
276
- federation_entity: z.ZodObject<{
277
- federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
278
- federation_list_endpoint: z.ZodOptional<z.ZodString>;
279
- federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
280
- federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
281
- federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
282
- homepage_uri: z.ZodOptional<z.ZodString>;
283
- policy_uri: z.ZodOptional<z.ZodString>;
284
- logo_uri: z.ZodOptional<z.ZodString>;
285
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
286
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
287
- federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
288
- federation_list_endpoint: z.ZodOptional<z.ZodString>;
289
- federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
290
- federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
291
- federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
292
- homepage_uri: z.ZodOptional<z.ZodString>;
293
- policy_uri: z.ZodOptional<z.ZodString>;
294
- logo_uri: z.ZodOptional<z.ZodString>;
295
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
296
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
297
- federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
298
- federation_list_endpoint: z.ZodOptional<z.ZodString>;
299
- federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
300
- federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
301
- federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
302
- homepage_uri: z.ZodOptional<z.ZodString>;
303
- policy_uri: z.ZodOptional<z.ZodString>;
304
- logo_uri: z.ZodOptional<z.ZodString>;
305
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
306
- }, z.ZodTypeAny, "passthrough">>;
307
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
308
- federation_entity: z.ZodObject<{
309
- federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
310
- federation_list_endpoint: z.ZodOptional<z.ZodString>;
311
- federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
312
- federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
313
- federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
314
- homepage_uri: z.ZodOptional<z.ZodString>;
315
- policy_uri: z.ZodOptional<z.ZodString>;
316
- logo_uri: z.ZodOptional<z.ZodString>;
317
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
318
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
319
- federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
320
- federation_list_endpoint: z.ZodOptional<z.ZodString>;
321
- federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
322
- federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
323
- federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
324
- homepage_uri: z.ZodOptional<z.ZodString>;
325
- policy_uri: z.ZodOptional<z.ZodString>;
326
- logo_uri: z.ZodOptional<z.ZodString>;
327
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
328
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
329
- federation_fetch_endpoint: z.ZodOptional<z.ZodString>;
330
- federation_list_endpoint: z.ZodOptional<z.ZodString>;
331
- federation_resolve_endpoint: z.ZodOptional<z.ZodString>;
332
- federation_trust_mark_status_endpoint: z.ZodOptional<z.ZodString>;
333
- federation_trust_mark_list_endpoint: z.ZodOptional<z.ZodString>;
334
- homepage_uri: z.ZodOptional<z.ZodString>;
335
- policy_uri: z.ZodOptional<z.ZodString>;
336
- logo_uri: z.ZodOptional<z.ZodString>;
337
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
338
- }, z.ZodTypeAny, "passthrough">>;
339
- }, z.ZodTypeAny, "passthrough">>;
340
- authority_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
341
- }, "strip", z.ZodTypeAny, {
342
- iss: string;
343
- sub: string;
344
- iat: number;
345
- exp: number;
346
- jwks: {
347
- keys: {
348
- kty: "RSA" | "EC";
349
- alg?: string | undefined;
350
- crv?: string | undefined;
351
- d?: string | undefined;
352
- dp?: string | undefined;
353
- dq?: string | undefined;
354
- e?: string | undefined;
355
- ext?: boolean | undefined;
356
- k?: string | undefined;
357
- key_ops?: string[] | undefined;
358
- kid?: string | undefined;
359
- n?: string | undefined;
360
- p?: string | undefined;
361
- q?: string | undefined;
362
- qi?: string | undefined;
363
- use?: string | undefined;
364
- x?: string | undefined;
365
- y?: string | undefined;
366
- x5c?: string[] | undefined;
367
- x5t?: string | undefined;
368
- "x5t#S256"?: string | undefined;
369
- x5u?: string | undefined;
370
- }[];
371
- };
372
- metadata: {
373
- federation_entity: {
374
- federation_fetch_endpoint?: string | undefined;
375
- federation_list_endpoint?: string | undefined;
376
- federation_resolve_endpoint?: string | undefined;
377
- federation_trust_mark_status_endpoint?: string | undefined;
378
- federation_trust_mark_list_endpoint?: string | undefined;
379
- homepage_uri?: string | undefined;
380
- policy_uri?: string | undefined;
381
- logo_uri?: string | undefined;
382
- contacts?: string[] | undefined;
383
- } & {
384
- [k: string]: unknown;
385
- };
386
- } & {
387
- [k: string]: unknown;
388
- };
389
- authority_hints?: string[] | undefined;
390
- }, {
391
- iss: string;
392
- sub: string;
393
- iat: number;
394
- exp: number;
395
- jwks: {
396
- keys: {
397
- kty: "RSA" | "EC";
398
- alg?: string | undefined;
399
- crv?: string | undefined;
400
- d?: string | undefined;
401
- dp?: string | undefined;
402
- dq?: string | undefined;
403
- e?: string | undefined;
404
- ext?: boolean | undefined;
405
- k?: string | undefined;
406
- key_ops?: string[] | undefined;
407
- kid?: string | undefined;
408
- n?: string | undefined;
409
- p?: string | undefined;
410
- q?: string | undefined;
411
- qi?: string | undefined;
412
- use?: string | undefined;
413
- x?: string | undefined;
414
- y?: string | undefined;
415
- x5c?: string[] | undefined;
416
- x5t?: string | undefined;
417
- "x5t#S256"?: string | undefined;
418
- x5u?: string | undefined;
419
- }[];
420
- };
421
- metadata: {
422
- federation_entity: {
423
- federation_fetch_endpoint?: string | undefined;
424
- federation_list_endpoint?: string | undefined;
425
- federation_resolve_endpoint?: string | undefined;
426
- federation_trust_mark_status_endpoint?: string | undefined;
427
- federation_trust_mark_list_endpoint?: string | undefined;
428
- homepage_uri?: string | undefined;
429
- policy_uri?: string | undefined;
430
- logo_uri?: string | undefined;
431
- contacts?: string[] | undefined;
432
- } & {
433
- [k: string]: unknown;
434
- };
435
- } & {
436
- [k: string]: unknown;
437
- };
438
- authority_hints?: string[] | undefined;
439
- }>;
440
- }, "strip", z.ZodTypeAny, {
441
- header: {
442
- alg: string;
443
- kid: string;
444
- typ: "entity-statement+jwt";
445
- };
446
- payload: {
447
- iss: string;
448
- sub: string;
449
- iat: number;
450
- exp: number;
451
- jwks: {
452
- keys: {
453
- kty: "RSA" | "EC";
454
- alg?: string | undefined;
455
- crv?: string | undefined;
456
- d?: string | undefined;
457
- dp?: string | undefined;
458
- dq?: string | undefined;
459
- e?: string | undefined;
460
- ext?: boolean | undefined;
461
- k?: string | undefined;
462
- key_ops?: string[] | undefined;
463
- kid?: string | undefined;
464
- n?: string | undefined;
465
- p?: string | undefined;
466
- q?: string | undefined;
467
- qi?: string | undefined;
468
- use?: string | undefined;
469
- x?: string | undefined;
470
- y?: string | undefined;
471
- x5c?: string[] | undefined;
472
- x5t?: string | undefined;
473
- "x5t#S256"?: string | undefined;
474
- x5u?: string | undefined;
475
- }[];
476
- };
477
- metadata: {
478
- federation_entity: {
479
- federation_fetch_endpoint?: string | undefined;
480
- federation_list_endpoint?: string | undefined;
481
- federation_resolve_endpoint?: string | undefined;
482
- federation_trust_mark_status_endpoint?: string | undefined;
483
- federation_trust_mark_list_endpoint?: string | undefined;
484
- homepage_uri?: string | undefined;
485
- policy_uri?: string | undefined;
486
- logo_uri?: string | undefined;
487
- contacts?: string[] | undefined;
488
- } & {
489
- [k: string]: unknown;
490
- };
491
- } & {
492
- [k: string]: unknown;
493
- };
494
- authority_hints?: string[] | undefined;
495
- };
496
- }, {
497
- header: {
498
- alg: string;
499
- kid: string;
500
- typ: "entity-statement+jwt";
501
- };
502
- payload: {
503
- iss: string;
504
- sub: string;
505
- iat: number;
506
- exp: number;
507
- jwks: {
508
- keys: {
509
- kty: "RSA" | "EC";
510
- alg?: string | undefined;
511
- crv?: string | undefined;
512
- d?: string | undefined;
513
- dp?: string | undefined;
514
- dq?: string | undefined;
515
- e?: string | undefined;
516
- ext?: boolean | undefined;
517
- k?: string | undefined;
518
- key_ops?: string[] | undefined;
519
- kid?: string | undefined;
520
- n?: string | undefined;
521
- p?: string | undefined;
522
- q?: string | undefined;
523
- qi?: string | undefined;
524
- use?: string | undefined;
525
- x?: string | undefined;
526
- y?: string | undefined;
527
- x5c?: string[] | undefined;
528
- x5t?: string | undefined;
529
- "x5t#S256"?: string | undefined;
530
- x5u?: string | undefined;
531
- }[];
532
- };
533
- metadata: {
534
- federation_entity: {
535
- federation_fetch_endpoint?: string | undefined;
536
- federation_list_endpoint?: string | undefined;
537
- federation_resolve_endpoint?: string | undefined;
538
- federation_trust_mark_status_endpoint?: string | undefined;
539
- federation_trust_mark_list_endpoint?: string | undefined;
540
- homepage_uri?: string | undefined;
541
- policy_uri?: string | undefined;
542
- logo_uri?: string | undefined;
543
- contacts?: string[] | undefined;
544
- } & {
545
- [k: string]: unknown;
546
- };
547
- } & {
548
- [k: string]: unknown;
549
- };
550
- authority_hints?: string[] | undefined;
551
- };
552
- }>, z.ZodObject<{
553
- payload: z.ZodObject<{
554
- metadata: z.ZodObject<{
555
- wallet_relying_party: z.ZodObject<{
556
- application_type: z.ZodOptional<z.ZodString>;
557
- client_id: z.ZodOptional<z.ZodString>;
558
- client_name: z.ZodOptional<z.ZodString>;
559
- jwks: z.ZodArray<z.ZodObject<{
560
- alg: z.ZodOptional<z.ZodString>;
561
- crv: z.ZodOptional<z.ZodString>;
562
- d: z.ZodOptional<z.ZodString>;
563
- dp: z.ZodOptional<z.ZodString>;
564
- dq: z.ZodOptional<z.ZodString>;
565
- e: z.ZodOptional<z.ZodString>;
566
- ext: z.ZodOptional<z.ZodBoolean>;
567
- k: z.ZodOptional<z.ZodString>;
568
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
569
- kid: z.ZodOptional<z.ZodString>;
570
- kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
571
- n: z.ZodOptional<z.ZodString>;
572
- p: z.ZodOptional<z.ZodString>;
573
- q: z.ZodOptional<z.ZodString>;
574
- qi: z.ZodOptional<z.ZodString>;
575
- use: z.ZodOptional<z.ZodString>;
576
- x: z.ZodOptional<z.ZodString>;
577
- y: z.ZodOptional<z.ZodString>;
578
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
579
- x5t: z.ZodOptional<z.ZodString>;
580
- "x5t#S256": z.ZodOptional<z.ZodString>;
581
- x5u: z.ZodOptional<z.ZodString>;
582
- }, "strip", z.ZodTypeAny, {
583
- kty: "RSA" | "EC";
584
- alg?: string | undefined;
585
- crv?: string | undefined;
586
- d?: string | undefined;
587
- dp?: string | undefined;
588
- dq?: string | undefined;
589
- e?: string | undefined;
590
- ext?: boolean | undefined;
591
- k?: string | undefined;
592
- key_ops?: string[] | undefined;
593
- kid?: string | undefined;
594
- n?: string | undefined;
595
- p?: string | undefined;
596
- q?: string | undefined;
597
- qi?: string | undefined;
598
- use?: string | undefined;
599
- x?: string | undefined;
600
- y?: string | undefined;
601
- x5c?: string[] | undefined;
602
- x5t?: string | undefined;
603
- "x5t#S256"?: string | undefined;
604
- x5u?: string | undefined;
605
- }, {
606
- kty: "RSA" | "EC";
607
- alg?: string | undefined;
608
- crv?: string | undefined;
609
- d?: string | undefined;
610
- dp?: string | undefined;
611
- dq?: string | undefined;
612
- e?: string | undefined;
613
- ext?: boolean | undefined;
614
- k?: string | undefined;
615
- key_ops?: string[] | undefined;
616
- kid?: string | undefined;
617
- n?: string | undefined;
618
- p?: string | undefined;
619
- q?: string | undefined;
620
- qi?: string | undefined;
621
- use?: string | undefined;
622
- x?: string | undefined;
623
- y?: string | undefined;
624
- x5c?: string[] | undefined;
625
- x5t?: string | undefined;
626
- "x5t#S256"?: string | undefined;
627
- x5u?: string | undefined;
628
- }>, "many">;
629
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
630
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
631
- application_type: z.ZodOptional<z.ZodString>;
632
- client_id: z.ZodOptional<z.ZodString>;
633
- client_name: z.ZodOptional<z.ZodString>;
634
- jwks: z.ZodArray<z.ZodObject<{
635
- alg: z.ZodOptional<z.ZodString>;
636
- crv: z.ZodOptional<z.ZodString>;
637
- d: z.ZodOptional<z.ZodString>;
638
- dp: z.ZodOptional<z.ZodString>;
639
- dq: z.ZodOptional<z.ZodString>;
640
- e: z.ZodOptional<z.ZodString>;
641
- ext: z.ZodOptional<z.ZodBoolean>;
642
- k: z.ZodOptional<z.ZodString>;
643
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
644
- kid: z.ZodOptional<z.ZodString>;
645
- kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
646
- n: z.ZodOptional<z.ZodString>;
647
- p: z.ZodOptional<z.ZodString>;
648
- q: z.ZodOptional<z.ZodString>;
649
- qi: z.ZodOptional<z.ZodString>;
650
- use: z.ZodOptional<z.ZodString>;
651
- x: z.ZodOptional<z.ZodString>;
652
- y: z.ZodOptional<z.ZodString>;
653
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
654
- x5t: z.ZodOptional<z.ZodString>;
655
- "x5t#S256": z.ZodOptional<z.ZodString>;
656
- x5u: z.ZodOptional<z.ZodString>;
657
- }, "strip", z.ZodTypeAny, {
658
- kty: "RSA" | "EC";
659
- alg?: string | undefined;
660
- crv?: string | undefined;
661
- d?: string | undefined;
662
- dp?: string | undefined;
663
- dq?: string | undefined;
664
- e?: string | undefined;
665
- ext?: boolean | undefined;
666
- k?: string | undefined;
667
- key_ops?: string[] | undefined;
668
- kid?: string | undefined;
669
- n?: string | undefined;
670
- p?: string | undefined;
671
- q?: string | undefined;
672
- qi?: string | undefined;
673
- use?: string | undefined;
674
- x?: string | undefined;
675
- y?: string | undefined;
676
- x5c?: string[] | undefined;
677
- x5t?: string | undefined;
678
- "x5t#S256"?: string | undefined;
679
- x5u?: string | undefined;
680
- }, {
681
- kty: "RSA" | "EC";
682
- alg?: string | undefined;
683
- crv?: string | undefined;
684
- d?: string | undefined;
685
- dp?: string | undefined;
686
- dq?: string | undefined;
687
- e?: string | undefined;
688
- ext?: boolean | undefined;
689
- k?: string | undefined;
690
- key_ops?: string[] | undefined;
691
- kid?: string | undefined;
692
- n?: string | undefined;
693
- p?: string | undefined;
694
- q?: string | undefined;
695
- qi?: string | undefined;
696
- use?: string | undefined;
697
- x?: string | undefined;
698
- y?: string | undefined;
699
- x5c?: string[] | undefined;
700
- x5t?: string | undefined;
701
- "x5t#S256"?: string | undefined;
702
- x5u?: string | undefined;
703
- }>, "many">;
704
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
705
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
706
- application_type: z.ZodOptional<z.ZodString>;
707
- client_id: z.ZodOptional<z.ZodString>;
708
- client_name: z.ZodOptional<z.ZodString>;
709
- jwks: z.ZodArray<z.ZodObject<{
710
- alg: z.ZodOptional<z.ZodString>;
711
- crv: z.ZodOptional<z.ZodString>;
712
- d: z.ZodOptional<z.ZodString>;
713
- dp: z.ZodOptional<z.ZodString>;
714
- dq: z.ZodOptional<z.ZodString>;
715
- e: z.ZodOptional<z.ZodString>;
716
- ext: z.ZodOptional<z.ZodBoolean>;
717
- k: z.ZodOptional<z.ZodString>;
718
- key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
719
- kid: z.ZodOptional<z.ZodString>;
720
- kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
721
- n: z.ZodOptional<z.ZodString>;
722
- p: z.ZodOptional<z.ZodString>;
723
- q: z.ZodOptional<z.ZodString>;
724
- qi: z.ZodOptional<z.ZodString>;
725
- use: z.ZodOptional<z.ZodString>;
726
- x: z.ZodOptional<z.ZodString>;
727
- y: z.ZodOptional<z.ZodString>;
728
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
729
- x5t: z.ZodOptional<z.ZodString>;
730
- "x5t#S256": z.ZodOptional<z.ZodString>;
731
- x5u: z.ZodOptional<z.ZodString>;
732
- }, "strip", z.ZodTypeAny, {
733
- kty: "RSA" | "EC";
734
- alg?: string | undefined;
735
- crv?: string | undefined;
736
- d?: string | undefined;
737
- dp?: string | undefined;
738
- dq?: string | undefined;
739
- e?: string | undefined;
740
- ext?: boolean | undefined;
741
- k?: string | undefined;
742
- key_ops?: string[] | undefined;
743
- kid?: string | undefined;
744
- n?: string | undefined;
745
- p?: string | undefined;
746
- q?: string | undefined;
747
- qi?: string | undefined;
748
- use?: string | undefined;
749
- x?: string | undefined;
750
- y?: string | undefined;
751
- x5c?: string[] | undefined;
752
- x5t?: string | undefined;
753
- "x5t#S256"?: string | undefined;
754
- x5u?: string | undefined;
755
- }, {
756
- kty: "RSA" | "EC";
757
- alg?: string | undefined;
758
- crv?: string | undefined;
759
- d?: string | undefined;
760
- dp?: string | undefined;
761
- dq?: string | undefined;
762
- e?: string | undefined;
763
- ext?: boolean | undefined;
764
- k?: string | undefined;
765
- key_ops?: string[] | undefined;
766
- kid?: string | undefined;
767
- n?: string | undefined;
768
- p?: string | undefined;
769
- q?: string | undefined;
770
- qi?: string | undefined;
771
- use?: string | undefined;
772
- x?: string | undefined;
773
- y?: string | undefined;
774
- x5c?: string[] | undefined;
775
- x5t?: string | undefined;
776
- "x5t#S256"?: string | undefined;
777
- x5u?: string | undefined;
778
- }>, "many">;
779
- contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
780
- }, z.ZodTypeAny, "passthrough">>;
781
- }, "strip", z.ZodTypeAny, {
782
- wallet_relying_party: {
783
- jwks: {
784
- kty: "RSA" | "EC";
785
- alg?: string | undefined;
786
- crv?: string | undefined;
787
- d?: string | undefined;
788
- dp?: string | undefined;
789
- dq?: string | undefined;
790
- e?: string | undefined;
791
- ext?: boolean | undefined;
792
- k?: string | undefined;
793
- key_ops?: string[] | undefined;
794
- kid?: string | undefined;
795
- n?: string | undefined;
796
- p?: string | undefined;
797
- q?: string | undefined;
798
- qi?: string | undefined;
799
- use?: string | undefined;
800
- x?: string | undefined;
801
- y?: string | undefined;
802
- x5c?: string[] | undefined;
803
- x5t?: string | undefined;
804
- "x5t#S256"?: string | undefined;
805
- x5u?: string | undefined;
806
- }[];
807
- application_type?: string | undefined;
808
- client_id?: string | undefined;
809
- client_name?: string | undefined;
810
- contacts?: string[] | undefined;
811
- } & {
812
- [k: string]: unknown;
813
- };
814
- }, {
815
- wallet_relying_party: {
816
- jwks: {
817
- kty: "RSA" | "EC";
818
- alg?: string | undefined;
819
- crv?: string | undefined;
820
- d?: string | undefined;
821
- dp?: string | undefined;
822
- dq?: string | undefined;
823
- e?: string | undefined;
824
- ext?: boolean | undefined;
825
- k?: string | undefined;
826
- key_ops?: string[] | undefined;
827
- kid?: string | undefined;
828
- n?: string | undefined;
829
- p?: string | undefined;
830
- q?: string | undefined;
831
- qi?: string | undefined;
832
- use?: string | undefined;
833
- x?: string | undefined;
834
- y?: string | undefined;
835
- x5c?: string[] | undefined;
836
- x5t?: string | undefined;
837
- "x5t#S256"?: string | undefined;
838
- x5u?: string | undefined;
839
- }[];
840
- application_type?: string | undefined;
841
- client_id?: string | undefined;
842
- client_name?: string | undefined;
843
- contacts?: string[] | undefined;
844
- } & {
845
- [k: string]: unknown;
846
- };
847
- }>;
848
- }, "strip", z.ZodTypeAny, {
849
- metadata: {
850
- wallet_relying_party: {
851
- jwks: {
852
- kty: "RSA" | "EC";
853
- alg?: string | undefined;
854
- crv?: string | undefined;
855
- d?: string | undefined;
856
- dp?: string | undefined;
857
- dq?: string | undefined;
858
- e?: string | undefined;
859
- ext?: boolean | undefined;
860
- k?: string | undefined;
861
- key_ops?: string[] | undefined;
862
- kid?: string | undefined;
863
- n?: string | undefined;
864
- p?: string | undefined;
865
- q?: string | undefined;
866
- qi?: string | undefined;
867
- use?: string | undefined;
868
- x?: string | undefined;
869
- y?: string | undefined;
870
- x5c?: string[] | undefined;
871
- x5t?: string | undefined;
872
- "x5t#S256"?: string | undefined;
873
- x5u?: string | undefined;
874
- }[];
875
- application_type?: string | undefined;
876
- client_id?: string | undefined;
877
- client_name?: string | undefined;
878
- contacts?: string[] | undefined;
879
- } & {
880
- [k: string]: unknown;
881
- };
882
- };
883
- }, {
884
- metadata: {
885
- wallet_relying_party: {
886
- jwks: {
887
- kty: "RSA" | "EC";
888
- alg?: string | undefined;
889
- crv?: string | undefined;
890
- d?: string | undefined;
891
- dp?: string | undefined;
892
- dq?: string | undefined;
893
- e?: string | undefined;
894
- ext?: boolean | undefined;
895
- k?: string | undefined;
896
- key_ops?: string[] | undefined;
897
- kid?: string | undefined;
898
- n?: string | undefined;
899
- p?: string | undefined;
900
- q?: string | undefined;
901
- qi?: string | undefined;
902
- use?: string | undefined;
903
- x?: string | undefined;
904
- y?: string | undefined;
905
- x5c?: string[] | undefined;
906
- x5t?: string | undefined;
907
- "x5t#S256"?: string | undefined;
908
- x5u?: string | undefined;
909
- }[];
910
- application_type?: string | undefined;
911
- client_id?: string | undefined;
912
- client_name?: string | undefined;
913
- contacts?: string[] | undefined;
914
- } & {
915
- [k: string]: unknown;
916
- };
917
- };
918
- }>;
919
- }, "strip", z.ZodTypeAny, {
920
- payload: {
921
- metadata: {
922
- wallet_relying_party: {
923
- jwks: {
924
- kty: "RSA" | "EC";
925
- alg?: string | undefined;
926
- crv?: string | undefined;
927
- d?: string | undefined;
928
- dp?: string | undefined;
929
- dq?: string | undefined;
930
- e?: string | undefined;
931
- ext?: boolean | undefined;
932
- k?: string | undefined;
933
- key_ops?: string[] | undefined;
934
- kid?: string | undefined;
935
- n?: string | undefined;
936
- p?: string | undefined;
937
- q?: string | undefined;
938
- qi?: string | undefined;
939
- use?: string | undefined;
940
- x?: string | undefined;
941
- y?: string | undefined;
942
- x5c?: string[] | undefined;
943
- x5t?: string | undefined;
944
- "x5t#S256"?: string | undefined;
945
- x5u?: string | undefined;
946
- }[];
947
- application_type?: string | undefined;
948
- client_id?: string | undefined;
949
- client_name?: string | undefined;
950
- contacts?: string[] | undefined;
951
- } & {
952
- [k: string]: unknown;
953
- };
954
- };
955
- };
956
- }, {
957
- payload: {
958
- metadata: {
959
- wallet_relying_party: {
960
- jwks: {
961
- kty: "RSA" | "EC";
962
- alg?: string | undefined;
963
- crv?: string | undefined;
964
- d?: string | undefined;
965
- dp?: string | undefined;
966
- dq?: string | undefined;
967
- e?: string | undefined;
968
- ext?: boolean | undefined;
969
- k?: string | undefined;
970
- key_ops?: string[] | undefined;
971
- kid?: string | undefined;
972
- n?: string | undefined;
973
- p?: string | undefined;
974
- q?: string | undefined;
975
- qi?: string | undefined;
976
- use?: string | undefined;
977
- x?: string | undefined;
978
- y?: string | undefined;
979
- x5c?: string[] | undefined;
980
- x5t?: string | undefined;
981
- "x5t#S256"?: string | undefined;
982
- x5u?: string | undefined;
983
- }[];
984
- application_type?: string | undefined;
985
- client_id?: string | undefined;
986
- client_name?: string | undefined;
987
- contacts?: string[] | undefined;
988
- } & {
989
- [k: string]: unknown;
990
- };
991
- };
992
- };
993
- }>>;
994
98
  export type QRCodePayload = z.infer<typeof QRCodePayload>;
995
99
  export declare const QRCodePayload: z.ZodObject<{
996
100
  protocol: z.ZodString;
@@ -998,14 +102,14 @@ export declare const QRCodePayload: z.ZodObject<{
998
102
  clientId: z.ZodString;
999
103
  requestURI: z.ZodString;
1000
104
  }, "strip", z.ZodTypeAny, {
105
+ clientId: string;
1001
106
  protocol: string;
1002
107
  resource: string;
1003
- clientId: string;
1004
108
  requestURI: string;
1005
109
  }, {
110
+ clientId: string;
1006
111
  protocol: string;
1007
112
  resource: string;
1008
- clientId: string;
1009
113
  requestURI: string;
1010
114
  }>;
1011
115
  /**