@atproto/jwk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE.txt +7 -0
  3. package/dist/alg.d.ts +3 -0
  4. package/dist/alg.d.ts.map +1 -0
  5. package/dist/alg.js +90 -0
  6. package/dist/alg.js.map +1 -0
  7. package/dist/errors.d.ts +24 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +62 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +11 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +27 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/jwk.d.ts +2424 -0
  16. package/dist/jwk.d.ts.map +1 -0
  17. package/dist/jwk.js +112 -0
  18. package/dist/jwk.js.map +1 -0
  19. package/dist/jwks.d.ts +1770 -0
  20. package/dist/jwks.d.ts.map +1 -0
  21. package/dist/jwks.js +12 -0
  22. package/dist/jwks.js.map +1 -0
  23. package/dist/jwt-decode.d.ts +6 -0
  24. package/dist/jwt-decode.d.ts.map +1 -0
  25. package/dist/jwt-decode.js +20 -0
  26. package/dist/jwt-decode.js.map +1 -0
  27. package/dist/jwt-verify.d.ts +20 -0
  28. package/dist/jwt-verify.d.ts.map +1 -0
  29. package/dist/jwt-verify.js +3 -0
  30. package/dist/jwt-verify.js.map +1 -0
  31. package/dist/jwt.d.ts +1785 -0
  32. package/dist/jwt.d.ts.map +1 -0
  33. package/dist/jwt.js +150 -0
  34. package/dist/jwt.js.map +1 -0
  35. package/dist/key.d.ts +38 -0
  36. package/dist/key.d.ts.map +1 -0
  37. package/dist/key.js +131 -0
  38. package/dist/key.js.map +1 -0
  39. package/dist/keyset.d.ts +41 -0
  40. package/dist/keyset.d.ts.map +1 -0
  41. package/dist/keyset.js +234 -0
  42. package/dist/keyset.js.map +1 -0
  43. package/dist/util.d.ts +48 -0
  44. package/dist/util.d.ts.map +1 -0
  45. package/dist/util.js +143 -0
  46. package/dist/util.js.map +1 -0
  47. package/package.json +38 -0
  48. package/src/alg.ts +98 -0
  49. package/src/errors.ts +56 -0
  50. package/src/index.ts +10 -0
  51. package/src/jwk.ts +141 -0
  52. package/src/jwks.ts +15 -0
  53. package/src/jwt-decode.ts +27 -0
  54. package/src/jwt-verify.ts +22 -0
  55. package/src/jwt.ts +173 -0
  56. package/src/key.ts +93 -0
  57. package/src/keyset.ts +240 -0
  58. package/src/util.ts +181 -0
  59. package/tsconfig.build.json +8 -0
  60. package/tsconfig.json +4 -0
package/dist/jwks.d.ts ADDED
@@ -0,0 +1,1770 @@
1
+ import { z } from 'zod';
2
+ export declare const jwksSchema: z.ZodObject<{
3
+ keys: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
4
+ kty: z.ZodString;
5
+ alg: z.ZodOptional<z.ZodString>;
6
+ kid: z.ZodOptional<z.ZodString>;
7
+ ext: z.ZodOptional<z.ZodBoolean>;
8
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
9
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
10
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11
+ x5t: z.ZodOptional<z.ZodString>;
12
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
13
+ x5u: z.ZodOptional<z.ZodString>;
14
+ }, {
15
+ kty: z.ZodEffects<z.ZodString, string, string>;
16
+ }>, "strip", z.ZodTypeAny, {
17
+ kty: string;
18
+ alg?: string | undefined;
19
+ kid?: string | undefined;
20
+ ext?: boolean | undefined;
21
+ use?: "sig" | "enc" | undefined;
22
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
23
+ x5c?: string[] | undefined;
24
+ x5t?: string | undefined;
25
+ 'x5t#S256'?: string | undefined;
26
+ x5u?: string | undefined;
27
+ }, {
28
+ kty: string;
29
+ alg?: string | undefined;
30
+ kid?: string | undefined;
31
+ ext?: boolean | undefined;
32
+ use?: "sig" | "enc" | undefined;
33
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
34
+ x5c?: string[] | undefined;
35
+ x5t?: string | undefined;
36
+ 'x5t#S256'?: string | undefined;
37
+ x5u?: string | undefined;
38
+ }>, z.ZodObject<z.objectUtil.extendShape<{
39
+ kty: z.ZodString;
40
+ alg: z.ZodOptional<z.ZodString>;
41
+ kid: z.ZodOptional<z.ZodString>;
42
+ ext: z.ZodOptional<z.ZodBoolean>;
43
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
44
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
45
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46
+ x5t: z.ZodOptional<z.ZodString>;
47
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
48
+ x5u: z.ZodOptional<z.ZodString>;
49
+ }, {
50
+ kty: z.ZodLiteral<"RSA">;
51
+ alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
52
+ n: z.ZodString;
53
+ e: z.ZodString;
54
+ d: z.ZodOptional<z.ZodString>;
55
+ p: z.ZodOptional<z.ZodString>;
56
+ q: z.ZodOptional<z.ZodString>;
57
+ dp: z.ZodOptional<z.ZodString>;
58
+ dq: z.ZodOptional<z.ZodString>;
59
+ qi: z.ZodOptional<z.ZodString>;
60
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
+ r: z.ZodOptional<z.ZodString>;
62
+ d: z.ZodOptional<z.ZodString>;
63
+ t: z.ZodOptional<z.ZodString>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ d?: string | undefined;
66
+ r?: string | undefined;
67
+ t?: string | undefined;
68
+ }, {
69
+ d?: string | undefined;
70
+ r?: string | undefined;
71
+ t?: string | undefined;
72
+ }>, "atleastone">>;
73
+ }>, "strip", z.ZodTypeAny, {
74
+ kty: "RSA";
75
+ n: string;
76
+ e: string;
77
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
78
+ kid?: string | undefined;
79
+ ext?: boolean | undefined;
80
+ use?: "sig" | "enc" | undefined;
81
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
82
+ x5c?: string[] | undefined;
83
+ x5t?: string | undefined;
84
+ 'x5t#S256'?: string | undefined;
85
+ x5u?: string | undefined;
86
+ d?: string | undefined;
87
+ p?: string | undefined;
88
+ q?: string | undefined;
89
+ dp?: string | undefined;
90
+ dq?: string | undefined;
91
+ qi?: string | undefined;
92
+ oth?: [{
93
+ d?: string | undefined;
94
+ r?: string | undefined;
95
+ t?: string | undefined;
96
+ }, ...{
97
+ d?: string | undefined;
98
+ r?: string | undefined;
99
+ t?: string | undefined;
100
+ }[]] | undefined;
101
+ }, {
102
+ kty: "RSA";
103
+ n: string;
104
+ e: string;
105
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
106
+ kid?: string | undefined;
107
+ ext?: boolean | undefined;
108
+ use?: "sig" | "enc" | undefined;
109
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
110
+ x5c?: string[] | undefined;
111
+ x5t?: string | undefined;
112
+ 'x5t#S256'?: string | undefined;
113
+ x5u?: string | undefined;
114
+ d?: string | undefined;
115
+ p?: string | undefined;
116
+ q?: string | undefined;
117
+ dp?: string | undefined;
118
+ dq?: string | undefined;
119
+ qi?: string | undefined;
120
+ oth?: [{
121
+ d?: string | undefined;
122
+ r?: string | undefined;
123
+ t?: string | undefined;
124
+ }, ...{
125
+ d?: string | undefined;
126
+ r?: string | undefined;
127
+ t?: string | undefined;
128
+ }[]] | undefined;
129
+ }>, z.ZodObject<z.objectUtil.extendShape<{
130
+ kty: z.ZodString;
131
+ alg: z.ZodOptional<z.ZodString>;
132
+ kid: z.ZodOptional<z.ZodString>;
133
+ ext: z.ZodOptional<z.ZodBoolean>;
134
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
135
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
136
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
137
+ x5t: z.ZodOptional<z.ZodString>;
138
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
139
+ x5u: z.ZodOptional<z.ZodString>;
140
+ }, {
141
+ kty: z.ZodLiteral<"EC">;
142
+ alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
143
+ crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
144
+ x: z.ZodString;
145
+ y: z.ZodString;
146
+ d: z.ZodOptional<z.ZodString>;
147
+ }>, "strip", z.ZodTypeAny, {
148
+ kty: "EC";
149
+ crv: "P-256" | "P-384" | "P-521";
150
+ x: string;
151
+ y: string;
152
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
153
+ kid?: string | undefined;
154
+ ext?: boolean | undefined;
155
+ use?: "sig" | "enc" | undefined;
156
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
157
+ x5c?: string[] | undefined;
158
+ x5t?: string | undefined;
159
+ 'x5t#S256'?: string | undefined;
160
+ x5u?: string | undefined;
161
+ d?: string | undefined;
162
+ }, {
163
+ kty: "EC";
164
+ crv: "P-256" | "P-384" | "P-521";
165
+ x: string;
166
+ y: string;
167
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
168
+ kid?: string | undefined;
169
+ ext?: boolean | undefined;
170
+ use?: "sig" | "enc" | undefined;
171
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
172
+ x5c?: string[] | undefined;
173
+ x5t?: string | undefined;
174
+ 'x5t#S256'?: string | undefined;
175
+ x5u?: string | undefined;
176
+ d?: string | undefined;
177
+ }>, z.ZodObject<z.objectUtil.extendShape<{
178
+ kty: z.ZodString;
179
+ alg: z.ZodOptional<z.ZodString>;
180
+ kid: z.ZodOptional<z.ZodString>;
181
+ ext: z.ZodOptional<z.ZodBoolean>;
182
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
183
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
184
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
185
+ x5t: z.ZodOptional<z.ZodString>;
186
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
187
+ x5u: z.ZodOptional<z.ZodString>;
188
+ }, {
189
+ kty: z.ZodLiteral<"EC">;
190
+ alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
191
+ crv: z.ZodEnum<["secp256k1"]>;
192
+ x: z.ZodString;
193
+ y: z.ZodString;
194
+ d: z.ZodOptional<z.ZodString>;
195
+ }>, "strip", z.ZodTypeAny, {
196
+ kty: "EC";
197
+ crv: "secp256k1";
198
+ x: string;
199
+ y: string;
200
+ alg?: "ES256K" | undefined;
201
+ kid?: string | undefined;
202
+ ext?: boolean | undefined;
203
+ use?: "sig" | "enc" | undefined;
204
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
205
+ x5c?: string[] | undefined;
206
+ x5t?: string | undefined;
207
+ 'x5t#S256'?: string | undefined;
208
+ x5u?: string | undefined;
209
+ d?: string | undefined;
210
+ }, {
211
+ kty: "EC";
212
+ crv: "secp256k1";
213
+ x: string;
214
+ y: string;
215
+ alg?: "ES256K" | undefined;
216
+ kid?: string | undefined;
217
+ ext?: boolean | undefined;
218
+ use?: "sig" | "enc" | undefined;
219
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
220
+ x5c?: string[] | undefined;
221
+ x5t?: string | undefined;
222
+ 'x5t#S256'?: string | undefined;
223
+ x5u?: string | undefined;
224
+ d?: string | undefined;
225
+ }>, z.ZodObject<z.objectUtil.extendShape<{
226
+ kty: z.ZodString;
227
+ alg: z.ZodOptional<z.ZodString>;
228
+ kid: z.ZodOptional<z.ZodString>;
229
+ ext: z.ZodOptional<z.ZodBoolean>;
230
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
231
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
232
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
233
+ x5t: z.ZodOptional<z.ZodString>;
234
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
235
+ x5u: z.ZodOptional<z.ZodString>;
236
+ }, {
237
+ kty: z.ZodLiteral<"OKP">;
238
+ alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
239
+ crv: z.ZodEnum<["Ed25519", "Ed448"]>;
240
+ x: z.ZodString;
241
+ d: z.ZodOptional<z.ZodString>;
242
+ }>, "strip", z.ZodTypeAny, {
243
+ kty: "OKP";
244
+ crv: "Ed25519" | "Ed448";
245
+ x: string;
246
+ alg?: "EdDSA" | undefined;
247
+ kid?: string | undefined;
248
+ ext?: boolean | undefined;
249
+ use?: "sig" | "enc" | undefined;
250
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
251
+ x5c?: string[] | undefined;
252
+ x5t?: string | undefined;
253
+ 'x5t#S256'?: string | undefined;
254
+ x5u?: string | undefined;
255
+ d?: string | undefined;
256
+ }, {
257
+ kty: "OKP";
258
+ crv: "Ed25519" | "Ed448";
259
+ x: string;
260
+ alg?: "EdDSA" | undefined;
261
+ kid?: string | undefined;
262
+ ext?: boolean | undefined;
263
+ use?: "sig" | "enc" | undefined;
264
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
265
+ x5c?: string[] | undefined;
266
+ x5t?: string | undefined;
267
+ 'x5t#S256'?: string | undefined;
268
+ x5u?: string | undefined;
269
+ d?: string | undefined;
270
+ }>, z.ZodObject<z.objectUtil.extendShape<{
271
+ kty: z.ZodString;
272
+ alg: z.ZodOptional<z.ZodString>;
273
+ kid: z.ZodOptional<z.ZodString>;
274
+ ext: z.ZodOptional<z.ZodBoolean>;
275
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
276
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
277
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
278
+ x5t: z.ZodOptional<z.ZodString>;
279
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
280
+ x5u: z.ZodOptional<z.ZodString>;
281
+ }, {
282
+ kty: z.ZodLiteral<"oct">;
283
+ alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
284
+ k: z.ZodString;
285
+ }>, "strip", z.ZodTypeAny, {
286
+ kty: "oct";
287
+ k: string;
288
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
289
+ kid?: string | undefined;
290
+ ext?: boolean | undefined;
291
+ use?: "sig" | "enc" | undefined;
292
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
293
+ x5c?: string[] | undefined;
294
+ x5t?: string | undefined;
295
+ 'x5t#S256'?: string | undefined;
296
+ x5u?: string | undefined;
297
+ }, {
298
+ kty: "oct";
299
+ k: string;
300
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
301
+ kid?: string | undefined;
302
+ ext?: boolean | undefined;
303
+ use?: "sig" | "enc" | undefined;
304
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
305
+ x5c?: string[] | undefined;
306
+ x5t?: string | undefined;
307
+ 'x5t#S256'?: string | undefined;
308
+ x5u?: string | undefined;
309
+ }>]>, "many">;
310
+ }, "strip", z.ZodTypeAny, {
311
+ keys: ({
312
+ kty: "RSA";
313
+ n: string;
314
+ e: string;
315
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
316
+ kid?: string | undefined;
317
+ ext?: boolean | undefined;
318
+ use?: "sig" | "enc" | undefined;
319
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
320
+ x5c?: string[] | undefined;
321
+ x5t?: string | undefined;
322
+ 'x5t#S256'?: string | undefined;
323
+ x5u?: string | undefined;
324
+ d?: string | undefined;
325
+ p?: string | undefined;
326
+ q?: string | undefined;
327
+ dp?: string | undefined;
328
+ dq?: string | undefined;
329
+ qi?: string | undefined;
330
+ oth?: [{
331
+ d?: string | undefined;
332
+ r?: string | undefined;
333
+ t?: string | undefined;
334
+ }, ...{
335
+ d?: string | undefined;
336
+ r?: string | undefined;
337
+ t?: string | undefined;
338
+ }[]] | undefined;
339
+ } | {
340
+ kty: "EC";
341
+ crv: "P-256" | "P-384" | "P-521";
342
+ x: string;
343
+ y: string;
344
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
345
+ kid?: string | undefined;
346
+ ext?: boolean | undefined;
347
+ use?: "sig" | "enc" | undefined;
348
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
349
+ x5c?: string[] | undefined;
350
+ x5t?: string | undefined;
351
+ 'x5t#S256'?: string | undefined;
352
+ x5u?: string | undefined;
353
+ d?: string | undefined;
354
+ } | {
355
+ kty: "EC";
356
+ crv: "secp256k1";
357
+ x: string;
358
+ y: string;
359
+ alg?: "ES256K" | undefined;
360
+ kid?: string | undefined;
361
+ ext?: boolean | undefined;
362
+ use?: "sig" | "enc" | undefined;
363
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
364
+ x5c?: string[] | undefined;
365
+ x5t?: string | undefined;
366
+ 'x5t#S256'?: string | undefined;
367
+ x5u?: string | undefined;
368
+ d?: string | undefined;
369
+ } | {
370
+ kty: "OKP";
371
+ crv: "Ed25519" | "Ed448";
372
+ x: string;
373
+ alg?: "EdDSA" | undefined;
374
+ kid?: string | undefined;
375
+ ext?: boolean | undefined;
376
+ use?: "sig" | "enc" | undefined;
377
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
378
+ x5c?: string[] | undefined;
379
+ x5t?: string | undefined;
380
+ 'x5t#S256'?: string | undefined;
381
+ x5u?: string | undefined;
382
+ d?: string | undefined;
383
+ } | {
384
+ kty: "oct";
385
+ k: string;
386
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
387
+ kid?: string | undefined;
388
+ ext?: boolean | undefined;
389
+ use?: "sig" | "enc" | undefined;
390
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
391
+ x5c?: string[] | undefined;
392
+ x5t?: string | undefined;
393
+ 'x5t#S256'?: string | undefined;
394
+ x5u?: string | undefined;
395
+ } | {
396
+ kty: string;
397
+ alg?: string | undefined;
398
+ kid?: string | undefined;
399
+ ext?: boolean | undefined;
400
+ use?: "sig" | "enc" | undefined;
401
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
402
+ x5c?: string[] | undefined;
403
+ x5t?: string | undefined;
404
+ 'x5t#S256'?: string | undefined;
405
+ x5u?: string | undefined;
406
+ })[];
407
+ }, {
408
+ keys: ({
409
+ kty: "RSA";
410
+ n: string;
411
+ e: string;
412
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
413
+ kid?: string | undefined;
414
+ ext?: boolean | undefined;
415
+ use?: "sig" | "enc" | undefined;
416
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
417
+ x5c?: string[] | undefined;
418
+ x5t?: string | undefined;
419
+ 'x5t#S256'?: string | undefined;
420
+ x5u?: string | undefined;
421
+ d?: string | undefined;
422
+ p?: string | undefined;
423
+ q?: string | undefined;
424
+ dp?: string | undefined;
425
+ dq?: string | undefined;
426
+ qi?: string | undefined;
427
+ oth?: [{
428
+ d?: string | undefined;
429
+ r?: string | undefined;
430
+ t?: string | undefined;
431
+ }, ...{
432
+ d?: string | undefined;
433
+ r?: string | undefined;
434
+ t?: string | undefined;
435
+ }[]] | undefined;
436
+ } | {
437
+ kty: "EC";
438
+ crv: "P-256" | "P-384" | "P-521";
439
+ x: string;
440
+ y: string;
441
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
442
+ kid?: string | undefined;
443
+ ext?: boolean | undefined;
444
+ use?: "sig" | "enc" | undefined;
445
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
446
+ x5c?: string[] | undefined;
447
+ x5t?: string | undefined;
448
+ 'x5t#S256'?: string | undefined;
449
+ x5u?: string | undefined;
450
+ d?: string | undefined;
451
+ } | {
452
+ kty: "EC";
453
+ crv: "secp256k1";
454
+ x: string;
455
+ y: string;
456
+ alg?: "ES256K" | undefined;
457
+ kid?: string | undefined;
458
+ ext?: boolean | undefined;
459
+ use?: "sig" | "enc" | undefined;
460
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
461
+ x5c?: string[] | undefined;
462
+ x5t?: string | undefined;
463
+ 'x5t#S256'?: string | undefined;
464
+ x5u?: string | undefined;
465
+ d?: string | undefined;
466
+ } | {
467
+ kty: "OKP";
468
+ crv: "Ed25519" | "Ed448";
469
+ x: string;
470
+ alg?: "EdDSA" | undefined;
471
+ kid?: string | undefined;
472
+ ext?: boolean | undefined;
473
+ use?: "sig" | "enc" | undefined;
474
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
475
+ x5c?: string[] | undefined;
476
+ x5t?: string | undefined;
477
+ 'x5t#S256'?: string | undefined;
478
+ x5u?: string | undefined;
479
+ d?: string | undefined;
480
+ } | {
481
+ kty: "oct";
482
+ k: string;
483
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
484
+ kid?: string | undefined;
485
+ ext?: boolean | undefined;
486
+ use?: "sig" | "enc" | undefined;
487
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
488
+ x5c?: string[] | undefined;
489
+ x5t?: string | undefined;
490
+ 'x5t#S256'?: string | undefined;
491
+ x5u?: string | undefined;
492
+ } | {
493
+ kty: string;
494
+ alg?: string | undefined;
495
+ kid?: string | undefined;
496
+ ext?: boolean | undefined;
497
+ use?: "sig" | "enc" | undefined;
498
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
499
+ x5c?: string[] | undefined;
500
+ x5t?: string | undefined;
501
+ 'x5t#S256'?: string | undefined;
502
+ x5u?: string | undefined;
503
+ })[];
504
+ }>;
505
+ export type Jwks = z.infer<typeof jwksSchema>;
506
+ export declare const jwksPubSchema: z.ZodObject<{
507
+ keys: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
508
+ kty: z.ZodString;
509
+ alg: z.ZodOptional<z.ZodString>;
510
+ kid: z.ZodOptional<z.ZodString>;
511
+ ext: z.ZodOptional<z.ZodBoolean>;
512
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
513
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
514
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
515
+ x5t: z.ZodOptional<z.ZodString>;
516
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
517
+ x5u: z.ZodOptional<z.ZodString>;
518
+ }, {
519
+ kty: z.ZodEffects<z.ZodString, string, string>;
520
+ }>, "strip", z.ZodTypeAny, {
521
+ kty: string;
522
+ alg?: string | undefined;
523
+ kid?: string | undefined;
524
+ ext?: boolean | undefined;
525
+ use?: "sig" | "enc" | undefined;
526
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
527
+ x5c?: string[] | undefined;
528
+ x5t?: string | undefined;
529
+ 'x5t#S256'?: string | undefined;
530
+ x5u?: string | undefined;
531
+ }, {
532
+ kty: string;
533
+ alg?: string | undefined;
534
+ kid?: string | undefined;
535
+ ext?: boolean | undefined;
536
+ use?: "sig" | "enc" | undefined;
537
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
538
+ x5c?: string[] | undefined;
539
+ x5t?: string | undefined;
540
+ 'x5t#S256'?: string | undefined;
541
+ x5u?: string | undefined;
542
+ }>, z.ZodObject<z.objectUtil.extendShape<{
543
+ kty: z.ZodString;
544
+ alg: z.ZodOptional<z.ZodString>;
545
+ kid: z.ZodOptional<z.ZodString>;
546
+ ext: z.ZodOptional<z.ZodBoolean>;
547
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
548
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
549
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
550
+ x5t: z.ZodOptional<z.ZodString>;
551
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
552
+ x5u: z.ZodOptional<z.ZodString>;
553
+ }, {
554
+ kty: z.ZodLiteral<"RSA">;
555
+ alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
556
+ n: z.ZodString;
557
+ e: z.ZodString;
558
+ d: z.ZodOptional<z.ZodString>;
559
+ p: z.ZodOptional<z.ZodString>;
560
+ q: z.ZodOptional<z.ZodString>;
561
+ dp: z.ZodOptional<z.ZodString>;
562
+ dq: z.ZodOptional<z.ZodString>;
563
+ qi: z.ZodOptional<z.ZodString>;
564
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
565
+ r: z.ZodOptional<z.ZodString>;
566
+ d: z.ZodOptional<z.ZodString>;
567
+ t: z.ZodOptional<z.ZodString>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ d?: string | undefined;
570
+ r?: string | undefined;
571
+ t?: string | undefined;
572
+ }, {
573
+ d?: string | undefined;
574
+ r?: string | undefined;
575
+ t?: string | undefined;
576
+ }>, "atleastone">>;
577
+ }>, "strip", z.ZodTypeAny, {
578
+ kty: "RSA";
579
+ n: string;
580
+ e: string;
581
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
582
+ kid?: string | undefined;
583
+ ext?: boolean | undefined;
584
+ use?: "sig" | "enc" | undefined;
585
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
586
+ x5c?: string[] | undefined;
587
+ x5t?: string | undefined;
588
+ 'x5t#S256'?: string | undefined;
589
+ x5u?: string | undefined;
590
+ d?: string | undefined;
591
+ p?: string | undefined;
592
+ q?: string | undefined;
593
+ dp?: string | undefined;
594
+ dq?: string | undefined;
595
+ qi?: string | undefined;
596
+ oth?: [{
597
+ d?: string | undefined;
598
+ r?: string | undefined;
599
+ t?: string | undefined;
600
+ }, ...{
601
+ d?: string | undefined;
602
+ r?: string | undefined;
603
+ t?: string | undefined;
604
+ }[]] | undefined;
605
+ }, {
606
+ kty: "RSA";
607
+ n: string;
608
+ e: string;
609
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
610
+ kid?: string | undefined;
611
+ ext?: boolean | undefined;
612
+ use?: "sig" | "enc" | undefined;
613
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
614
+ x5c?: string[] | undefined;
615
+ x5t?: string | undefined;
616
+ 'x5t#S256'?: string | undefined;
617
+ x5u?: string | undefined;
618
+ d?: string | undefined;
619
+ p?: string | undefined;
620
+ q?: string | undefined;
621
+ dp?: string | undefined;
622
+ dq?: string | undefined;
623
+ qi?: string | undefined;
624
+ oth?: [{
625
+ d?: string | undefined;
626
+ r?: string | undefined;
627
+ t?: string | undefined;
628
+ }, ...{
629
+ d?: string | undefined;
630
+ r?: string | undefined;
631
+ t?: string | undefined;
632
+ }[]] | undefined;
633
+ }>, z.ZodObject<z.objectUtil.extendShape<{
634
+ kty: z.ZodString;
635
+ alg: z.ZodOptional<z.ZodString>;
636
+ kid: z.ZodOptional<z.ZodString>;
637
+ ext: z.ZodOptional<z.ZodBoolean>;
638
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
639
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
640
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
641
+ x5t: z.ZodOptional<z.ZodString>;
642
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
643
+ x5u: z.ZodOptional<z.ZodString>;
644
+ }, {
645
+ kty: z.ZodLiteral<"EC">;
646
+ alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
647
+ crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
648
+ x: z.ZodString;
649
+ y: z.ZodString;
650
+ d: z.ZodOptional<z.ZodString>;
651
+ }>, "strip", z.ZodTypeAny, {
652
+ kty: "EC";
653
+ crv: "P-256" | "P-384" | "P-521";
654
+ x: string;
655
+ y: string;
656
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
657
+ kid?: string | undefined;
658
+ ext?: boolean | undefined;
659
+ use?: "sig" | "enc" | undefined;
660
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
661
+ x5c?: string[] | undefined;
662
+ x5t?: string | undefined;
663
+ 'x5t#S256'?: string | undefined;
664
+ x5u?: string | undefined;
665
+ d?: string | undefined;
666
+ }, {
667
+ kty: "EC";
668
+ crv: "P-256" | "P-384" | "P-521";
669
+ x: string;
670
+ y: string;
671
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
672
+ kid?: string | undefined;
673
+ ext?: boolean | undefined;
674
+ use?: "sig" | "enc" | undefined;
675
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
676
+ x5c?: string[] | undefined;
677
+ x5t?: string | undefined;
678
+ 'x5t#S256'?: string | undefined;
679
+ x5u?: string | undefined;
680
+ d?: string | undefined;
681
+ }>, z.ZodObject<z.objectUtil.extendShape<{
682
+ kty: z.ZodString;
683
+ alg: z.ZodOptional<z.ZodString>;
684
+ kid: z.ZodOptional<z.ZodString>;
685
+ ext: z.ZodOptional<z.ZodBoolean>;
686
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
687
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
688
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
689
+ x5t: z.ZodOptional<z.ZodString>;
690
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
691
+ x5u: z.ZodOptional<z.ZodString>;
692
+ }, {
693
+ kty: z.ZodLiteral<"EC">;
694
+ alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
695
+ crv: z.ZodEnum<["secp256k1"]>;
696
+ x: z.ZodString;
697
+ y: z.ZodString;
698
+ d: z.ZodOptional<z.ZodString>;
699
+ }>, "strip", z.ZodTypeAny, {
700
+ kty: "EC";
701
+ crv: "secp256k1";
702
+ x: string;
703
+ y: string;
704
+ alg?: "ES256K" | undefined;
705
+ kid?: string | undefined;
706
+ ext?: boolean | undefined;
707
+ use?: "sig" | "enc" | undefined;
708
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
709
+ x5c?: string[] | undefined;
710
+ x5t?: string | undefined;
711
+ 'x5t#S256'?: string | undefined;
712
+ x5u?: string | undefined;
713
+ d?: string | undefined;
714
+ }, {
715
+ kty: "EC";
716
+ crv: "secp256k1";
717
+ x: string;
718
+ y: string;
719
+ alg?: "ES256K" | undefined;
720
+ kid?: string | undefined;
721
+ ext?: boolean | undefined;
722
+ use?: "sig" | "enc" | undefined;
723
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
724
+ x5c?: string[] | undefined;
725
+ x5t?: string | undefined;
726
+ 'x5t#S256'?: string | undefined;
727
+ x5u?: string | undefined;
728
+ d?: string | undefined;
729
+ }>, z.ZodObject<z.objectUtil.extendShape<{
730
+ kty: z.ZodString;
731
+ alg: z.ZodOptional<z.ZodString>;
732
+ kid: z.ZodOptional<z.ZodString>;
733
+ ext: z.ZodOptional<z.ZodBoolean>;
734
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
735
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
736
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
737
+ x5t: z.ZodOptional<z.ZodString>;
738
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
739
+ x5u: z.ZodOptional<z.ZodString>;
740
+ }, {
741
+ kty: z.ZodLiteral<"OKP">;
742
+ alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
743
+ crv: z.ZodEnum<["Ed25519", "Ed448"]>;
744
+ x: z.ZodString;
745
+ d: z.ZodOptional<z.ZodString>;
746
+ }>, "strip", z.ZodTypeAny, {
747
+ kty: "OKP";
748
+ crv: "Ed25519" | "Ed448";
749
+ x: string;
750
+ alg?: "EdDSA" | undefined;
751
+ kid?: string | undefined;
752
+ ext?: boolean | undefined;
753
+ use?: "sig" | "enc" | undefined;
754
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
755
+ x5c?: string[] | undefined;
756
+ x5t?: string | undefined;
757
+ 'x5t#S256'?: string | undefined;
758
+ x5u?: string | undefined;
759
+ d?: string | undefined;
760
+ }, {
761
+ kty: "OKP";
762
+ crv: "Ed25519" | "Ed448";
763
+ x: string;
764
+ alg?: "EdDSA" | undefined;
765
+ kid?: string | undefined;
766
+ ext?: boolean | undefined;
767
+ use?: "sig" | "enc" | undefined;
768
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
769
+ x5c?: string[] | undefined;
770
+ x5t?: string | undefined;
771
+ 'x5t#S256'?: string | undefined;
772
+ x5u?: string | undefined;
773
+ d?: string | undefined;
774
+ }>, z.ZodObject<z.objectUtil.extendShape<{
775
+ kty: z.ZodString;
776
+ alg: z.ZodOptional<z.ZodString>;
777
+ kid: z.ZodOptional<z.ZodString>;
778
+ ext: z.ZodOptional<z.ZodBoolean>;
779
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
780
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
781
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
782
+ x5t: z.ZodOptional<z.ZodString>;
783
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
784
+ x5u: z.ZodOptional<z.ZodString>;
785
+ }, {
786
+ kty: z.ZodLiteral<"oct">;
787
+ alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
788
+ k: z.ZodString;
789
+ }>, "strip", z.ZodTypeAny, {
790
+ kty: "oct";
791
+ k: string;
792
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
793
+ kid?: string | undefined;
794
+ ext?: boolean | undefined;
795
+ use?: "sig" | "enc" | undefined;
796
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
797
+ x5c?: string[] | undefined;
798
+ x5t?: string | undefined;
799
+ 'x5t#S256'?: string | undefined;
800
+ x5u?: string | undefined;
801
+ }, {
802
+ kty: "oct";
803
+ k: string;
804
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
805
+ kid?: string | undefined;
806
+ ext?: boolean | undefined;
807
+ use?: "sig" | "enc" | undefined;
808
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
809
+ x5c?: string[] | undefined;
810
+ x5t?: string | undefined;
811
+ 'x5t#S256'?: string | undefined;
812
+ x5u?: string | undefined;
813
+ }>]>, {
814
+ kty: "RSA";
815
+ n: string;
816
+ e: string;
817
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
818
+ kid?: string | undefined;
819
+ ext?: boolean | undefined;
820
+ use?: "sig" | "enc" | undefined;
821
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
822
+ x5c?: string[] | undefined;
823
+ x5t?: string | undefined;
824
+ 'x5t#S256'?: string | undefined;
825
+ x5u?: string | undefined;
826
+ d?: string | undefined;
827
+ p?: string | undefined;
828
+ q?: string | undefined;
829
+ dp?: string | undefined;
830
+ dq?: string | undefined;
831
+ qi?: string | undefined;
832
+ oth?: [{
833
+ d?: string | undefined;
834
+ r?: string | undefined;
835
+ t?: string | undefined;
836
+ }, ...{
837
+ d?: string | undefined;
838
+ r?: string | undefined;
839
+ t?: string | undefined;
840
+ }[]] | undefined;
841
+ } | {
842
+ kty: "EC";
843
+ crv: "P-256" | "P-384" | "P-521";
844
+ x: string;
845
+ y: string;
846
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
847
+ kid?: string | undefined;
848
+ ext?: boolean | undefined;
849
+ use?: "sig" | "enc" | undefined;
850
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
851
+ x5c?: string[] | undefined;
852
+ x5t?: string | undefined;
853
+ 'x5t#S256'?: string | undefined;
854
+ x5u?: string | undefined;
855
+ d?: string | undefined;
856
+ } | {
857
+ kty: "EC";
858
+ crv: "secp256k1";
859
+ x: string;
860
+ y: string;
861
+ alg?: "ES256K" | undefined;
862
+ kid?: string | undefined;
863
+ ext?: boolean | undefined;
864
+ use?: "sig" | "enc" | undefined;
865
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
866
+ x5c?: string[] | undefined;
867
+ x5t?: string | undefined;
868
+ 'x5t#S256'?: string | undefined;
869
+ x5u?: string | undefined;
870
+ d?: string | undefined;
871
+ } | {
872
+ kty: "OKP";
873
+ crv: "Ed25519" | "Ed448";
874
+ x: string;
875
+ alg?: "EdDSA" | undefined;
876
+ kid?: string | undefined;
877
+ ext?: boolean | undefined;
878
+ use?: "sig" | "enc" | undefined;
879
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
880
+ x5c?: string[] | undefined;
881
+ x5t?: string | undefined;
882
+ 'x5t#S256'?: string | undefined;
883
+ x5u?: string | undefined;
884
+ d?: string | undefined;
885
+ } | {
886
+ kty: "oct";
887
+ k: string;
888
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
889
+ kid?: string | undefined;
890
+ ext?: boolean | undefined;
891
+ use?: "sig" | "enc" | undefined;
892
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
893
+ x5c?: string[] | undefined;
894
+ x5t?: string | undefined;
895
+ 'x5t#S256'?: string | undefined;
896
+ x5u?: string | undefined;
897
+ } | {
898
+ kty: string;
899
+ alg?: string | undefined;
900
+ kid?: string | undefined;
901
+ ext?: boolean | undefined;
902
+ use?: "sig" | "enc" | undefined;
903
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
904
+ x5c?: string[] | undefined;
905
+ x5t?: string | undefined;
906
+ 'x5t#S256'?: string | undefined;
907
+ x5u?: string | undefined;
908
+ }, {
909
+ kty: "RSA";
910
+ n: string;
911
+ e: string;
912
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
913
+ kid?: string | undefined;
914
+ ext?: boolean | undefined;
915
+ use?: "sig" | "enc" | undefined;
916
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
917
+ x5c?: string[] | undefined;
918
+ x5t?: string | undefined;
919
+ 'x5t#S256'?: string | undefined;
920
+ x5u?: string | undefined;
921
+ d?: string | undefined;
922
+ p?: string | undefined;
923
+ q?: string | undefined;
924
+ dp?: string | undefined;
925
+ dq?: string | undefined;
926
+ qi?: string | undefined;
927
+ oth?: [{
928
+ d?: string | undefined;
929
+ r?: string | undefined;
930
+ t?: string | undefined;
931
+ }, ...{
932
+ d?: string | undefined;
933
+ r?: string | undefined;
934
+ t?: string | undefined;
935
+ }[]] | undefined;
936
+ } | {
937
+ kty: "EC";
938
+ crv: "P-256" | "P-384" | "P-521";
939
+ x: string;
940
+ y: string;
941
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
942
+ kid?: string | undefined;
943
+ ext?: boolean | undefined;
944
+ use?: "sig" | "enc" | undefined;
945
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
946
+ x5c?: string[] | undefined;
947
+ x5t?: string | undefined;
948
+ 'x5t#S256'?: string | undefined;
949
+ x5u?: string | undefined;
950
+ d?: string | undefined;
951
+ } | {
952
+ kty: "EC";
953
+ crv: "secp256k1";
954
+ x: string;
955
+ y: string;
956
+ alg?: "ES256K" | undefined;
957
+ kid?: string | undefined;
958
+ ext?: boolean | undefined;
959
+ use?: "sig" | "enc" | undefined;
960
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
961
+ x5c?: string[] | undefined;
962
+ x5t?: string | undefined;
963
+ 'x5t#S256'?: string | undefined;
964
+ x5u?: string | undefined;
965
+ d?: string | undefined;
966
+ } | {
967
+ kty: "OKP";
968
+ crv: "Ed25519" | "Ed448";
969
+ x: string;
970
+ alg?: "EdDSA" | undefined;
971
+ kid?: string | undefined;
972
+ ext?: boolean | undefined;
973
+ use?: "sig" | "enc" | undefined;
974
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
975
+ x5c?: string[] | undefined;
976
+ x5t?: string | undefined;
977
+ 'x5t#S256'?: string | undefined;
978
+ x5u?: string | undefined;
979
+ d?: string | undefined;
980
+ } | {
981
+ kty: "oct";
982
+ k: string;
983
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
984
+ kid?: string | undefined;
985
+ ext?: boolean | undefined;
986
+ use?: "sig" | "enc" | undefined;
987
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
988
+ x5c?: string[] | undefined;
989
+ x5t?: string | undefined;
990
+ 'x5t#S256'?: string | undefined;
991
+ x5u?: string | undefined;
992
+ } | {
993
+ kty: string;
994
+ alg?: string | undefined;
995
+ kid?: string | undefined;
996
+ ext?: boolean | undefined;
997
+ use?: "sig" | "enc" | undefined;
998
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
999
+ x5c?: string[] | undefined;
1000
+ x5t?: string | undefined;
1001
+ 'x5t#S256'?: string | undefined;
1002
+ x5u?: string | undefined;
1003
+ }>, {
1004
+ kty: "RSA";
1005
+ n: string;
1006
+ e: string;
1007
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1008
+ kid?: string | undefined;
1009
+ ext?: boolean | undefined;
1010
+ use?: "sig" | "enc" | undefined;
1011
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1012
+ x5c?: string[] | undefined;
1013
+ x5t?: string | undefined;
1014
+ 'x5t#S256'?: string | undefined;
1015
+ x5u?: string | undefined;
1016
+ d?: string | undefined;
1017
+ p?: string | undefined;
1018
+ q?: string | undefined;
1019
+ dp?: string | undefined;
1020
+ dq?: string | undefined;
1021
+ qi?: string | undefined;
1022
+ oth?: [{
1023
+ d?: string | undefined;
1024
+ r?: string | undefined;
1025
+ t?: string | undefined;
1026
+ }, ...{
1027
+ d?: string | undefined;
1028
+ r?: string | undefined;
1029
+ t?: string | undefined;
1030
+ }[]] | undefined;
1031
+ } | {
1032
+ kty: "EC";
1033
+ crv: "P-256" | "P-384" | "P-521";
1034
+ x: string;
1035
+ y: string;
1036
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1037
+ kid?: string | undefined;
1038
+ ext?: boolean | undefined;
1039
+ use?: "sig" | "enc" | undefined;
1040
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1041
+ x5c?: string[] | undefined;
1042
+ x5t?: string | undefined;
1043
+ 'x5t#S256'?: string | undefined;
1044
+ x5u?: string | undefined;
1045
+ d?: string | undefined;
1046
+ } | {
1047
+ kty: "EC";
1048
+ crv: "secp256k1";
1049
+ x: string;
1050
+ y: string;
1051
+ alg?: "ES256K" | undefined;
1052
+ kid?: string | undefined;
1053
+ ext?: boolean | undefined;
1054
+ use?: "sig" | "enc" | undefined;
1055
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1056
+ x5c?: string[] | undefined;
1057
+ x5t?: string | undefined;
1058
+ 'x5t#S256'?: string | undefined;
1059
+ x5u?: string | undefined;
1060
+ d?: string | undefined;
1061
+ } | {
1062
+ kty: "OKP";
1063
+ crv: "Ed25519" | "Ed448";
1064
+ x: string;
1065
+ alg?: "EdDSA" | undefined;
1066
+ kid?: string | undefined;
1067
+ ext?: boolean | undefined;
1068
+ use?: "sig" | "enc" | undefined;
1069
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1070
+ x5c?: string[] | undefined;
1071
+ x5t?: string | undefined;
1072
+ 'x5t#S256'?: string | undefined;
1073
+ x5u?: string | undefined;
1074
+ d?: string | undefined;
1075
+ } | {
1076
+ kty: "oct";
1077
+ k: string;
1078
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1079
+ kid?: string | undefined;
1080
+ ext?: boolean | undefined;
1081
+ use?: "sig" | "enc" | undefined;
1082
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1083
+ x5c?: string[] | undefined;
1084
+ x5t?: string | undefined;
1085
+ 'x5t#S256'?: string | undefined;
1086
+ x5u?: string | undefined;
1087
+ } | {
1088
+ kty: string;
1089
+ alg?: string | undefined;
1090
+ kid?: string | undefined;
1091
+ ext?: boolean | undefined;
1092
+ use?: "sig" | "enc" | undefined;
1093
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1094
+ x5c?: string[] | undefined;
1095
+ x5t?: string | undefined;
1096
+ 'x5t#S256'?: string | undefined;
1097
+ x5u?: string | undefined;
1098
+ }, {
1099
+ kty: "RSA";
1100
+ n: string;
1101
+ e: string;
1102
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1103
+ kid?: string | undefined;
1104
+ ext?: boolean | undefined;
1105
+ use?: "sig" | "enc" | undefined;
1106
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1107
+ x5c?: string[] | undefined;
1108
+ x5t?: string | undefined;
1109
+ 'x5t#S256'?: string | undefined;
1110
+ x5u?: string | undefined;
1111
+ d?: string | undefined;
1112
+ p?: string | undefined;
1113
+ q?: string | undefined;
1114
+ dp?: string | undefined;
1115
+ dq?: string | undefined;
1116
+ qi?: string | undefined;
1117
+ oth?: [{
1118
+ d?: string | undefined;
1119
+ r?: string | undefined;
1120
+ t?: string | undefined;
1121
+ }, ...{
1122
+ d?: string | undefined;
1123
+ r?: string | undefined;
1124
+ t?: string | undefined;
1125
+ }[]] | undefined;
1126
+ } | {
1127
+ kty: "EC";
1128
+ crv: "P-256" | "P-384" | "P-521";
1129
+ x: string;
1130
+ y: string;
1131
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1132
+ kid?: string | undefined;
1133
+ ext?: boolean | undefined;
1134
+ use?: "sig" | "enc" | undefined;
1135
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1136
+ x5c?: string[] | undefined;
1137
+ x5t?: string | undefined;
1138
+ 'x5t#S256'?: string | undefined;
1139
+ x5u?: string | undefined;
1140
+ d?: string | undefined;
1141
+ } | {
1142
+ kty: "EC";
1143
+ crv: "secp256k1";
1144
+ x: string;
1145
+ y: string;
1146
+ alg?: "ES256K" | undefined;
1147
+ kid?: string | undefined;
1148
+ ext?: boolean | undefined;
1149
+ use?: "sig" | "enc" | undefined;
1150
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1151
+ x5c?: string[] | undefined;
1152
+ x5t?: string | undefined;
1153
+ 'x5t#S256'?: string | undefined;
1154
+ x5u?: string | undefined;
1155
+ d?: string | undefined;
1156
+ } | {
1157
+ kty: "OKP";
1158
+ crv: "Ed25519" | "Ed448";
1159
+ x: string;
1160
+ alg?: "EdDSA" | undefined;
1161
+ kid?: string | undefined;
1162
+ ext?: boolean | undefined;
1163
+ use?: "sig" | "enc" | undefined;
1164
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1165
+ x5c?: string[] | undefined;
1166
+ x5t?: string | undefined;
1167
+ 'x5t#S256'?: string | undefined;
1168
+ x5u?: string | undefined;
1169
+ d?: string | undefined;
1170
+ } | {
1171
+ kty: "oct";
1172
+ k: string;
1173
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1174
+ kid?: string | undefined;
1175
+ ext?: boolean | undefined;
1176
+ use?: "sig" | "enc" | undefined;
1177
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1178
+ x5c?: string[] | undefined;
1179
+ x5t?: string | undefined;
1180
+ 'x5t#S256'?: string | undefined;
1181
+ x5u?: string | undefined;
1182
+ } | {
1183
+ kty: string;
1184
+ alg?: string | undefined;
1185
+ kid?: string | undefined;
1186
+ ext?: boolean | undefined;
1187
+ use?: "sig" | "enc" | undefined;
1188
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1189
+ x5c?: string[] | undefined;
1190
+ x5t?: string | undefined;
1191
+ 'x5t#S256'?: string | undefined;
1192
+ x5u?: string | undefined;
1193
+ }>, {
1194
+ kty: "RSA";
1195
+ n: string;
1196
+ e: string;
1197
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1198
+ kid?: string | undefined;
1199
+ ext?: boolean | undefined;
1200
+ use?: "sig" | "enc" | undefined;
1201
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1202
+ x5c?: string[] | undefined;
1203
+ x5t?: string | undefined;
1204
+ 'x5t#S256'?: string | undefined;
1205
+ x5u?: string | undefined;
1206
+ d?: string | undefined;
1207
+ p?: string | undefined;
1208
+ q?: string | undefined;
1209
+ dp?: string | undefined;
1210
+ dq?: string | undefined;
1211
+ qi?: string | undefined;
1212
+ oth?: [{
1213
+ d?: string | undefined;
1214
+ r?: string | undefined;
1215
+ t?: string | undefined;
1216
+ }, ...{
1217
+ d?: string | undefined;
1218
+ r?: string | undefined;
1219
+ t?: string | undefined;
1220
+ }[]] | undefined;
1221
+ } | {
1222
+ kty: "EC";
1223
+ crv: "P-256" | "P-384" | "P-521";
1224
+ x: string;
1225
+ y: string;
1226
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1227
+ kid?: string | undefined;
1228
+ ext?: boolean | undefined;
1229
+ use?: "sig" | "enc" | undefined;
1230
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1231
+ x5c?: string[] | undefined;
1232
+ x5t?: string | undefined;
1233
+ 'x5t#S256'?: string | undefined;
1234
+ x5u?: string | undefined;
1235
+ d?: string | undefined;
1236
+ } | {
1237
+ kty: "EC";
1238
+ crv: "secp256k1";
1239
+ x: string;
1240
+ y: string;
1241
+ alg?: "ES256K" | undefined;
1242
+ kid?: string | undefined;
1243
+ ext?: boolean | undefined;
1244
+ use?: "sig" | "enc" | undefined;
1245
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1246
+ x5c?: string[] | undefined;
1247
+ x5t?: string | undefined;
1248
+ 'x5t#S256'?: string | undefined;
1249
+ x5u?: string | undefined;
1250
+ d?: string | undefined;
1251
+ } | {
1252
+ kty: "OKP";
1253
+ crv: "Ed25519" | "Ed448";
1254
+ x: string;
1255
+ alg?: "EdDSA" | undefined;
1256
+ kid?: string | undefined;
1257
+ ext?: boolean | undefined;
1258
+ use?: "sig" | "enc" | undefined;
1259
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1260
+ x5c?: string[] | undefined;
1261
+ x5t?: string | undefined;
1262
+ 'x5t#S256'?: string | undefined;
1263
+ x5u?: string | undefined;
1264
+ d?: string | undefined;
1265
+ } | {
1266
+ kty: "oct";
1267
+ k: string;
1268
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1269
+ kid?: string | undefined;
1270
+ ext?: boolean | undefined;
1271
+ use?: "sig" | "enc" | undefined;
1272
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1273
+ x5c?: string[] | undefined;
1274
+ x5t?: string | undefined;
1275
+ 'x5t#S256'?: string | undefined;
1276
+ x5u?: string | undefined;
1277
+ } | {
1278
+ kty: string;
1279
+ alg?: string | undefined;
1280
+ kid?: string | undefined;
1281
+ ext?: boolean | undefined;
1282
+ use?: "sig" | "enc" | undefined;
1283
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1284
+ x5c?: string[] | undefined;
1285
+ x5t?: string | undefined;
1286
+ 'x5t#S256'?: string | undefined;
1287
+ x5u?: string | undefined;
1288
+ }, {
1289
+ kty: "RSA";
1290
+ n: string;
1291
+ e: string;
1292
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1293
+ kid?: string | undefined;
1294
+ ext?: boolean | undefined;
1295
+ use?: "sig" | "enc" | undefined;
1296
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1297
+ x5c?: string[] | undefined;
1298
+ x5t?: string | undefined;
1299
+ 'x5t#S256'?: string | undefined;
1300
+ x5u?: string | undefined;
1301
+ d?: string | undefined;
1302
+ p?: string | undefined;
1303
+ q?: string | undefined;
1304
+ dp?: string | undefined;
1305
+ dq?: string | undefined;
1306
+ qi?: string | undefined;
1307
+ oth?: [{
1308
+ d?: string | undefined;
1309
+ r?: string | undefined;
1310
+ t?: string | undefined;
1311
+ }, ...{
1312
+ d?: string | undefined;
1313
+ r?: string | undefined;
1314
+ t?: string | undefined;
1315
+ }[]] | undefined;
1316
+ } | {
1317
+ kty: "EC";
1318
+ crv: "P-256" | "P-384" | "P-521";
1319
+ x: string;
1320
+ y: string;
1321
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1322
+ kid?: string | undefined;
1323
+ ext?: boolean | undefined;
1324
+ use?: "sig" | "enc" | undefined;
1325
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1326
+ x5c?: string[] | undefined;
1327
+ x5t?: string | undefined;
1328
+ 'x5t#S256'?: string | undefined;
1329
+ x5u?: string | undefined;
1330
+ d?: string | undefined;
1331
+ } | {
1332
+ kty: "EC";
1333
+ crv: "secp256k1";
1334
+ x: string;
1335
+ y: string;
1336
+ alg?: "ES256K" | undefined;
1337
+ kid?: string | undefined;
1338
+ ext?: boolean | undefined;
1339
+ use?: "sig" | "enc" | undefined;
1340
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1341
+ x5c?: string[] | undefined;
1342
+ x5t?: string | undefined;
1343
+ 'x5t#S256'?: string | undefined;
1344
+ x5u?: string | undefined;
1345
+ d?: string | undefined;
1346
+ } | {
1347
+ kty: "OKP";
1348
+ crv: "Ed25519" | "Ed448";
1349
+ x: string;
1350
+ alg?: "EdDSA" | undefined;
1351
+ kid?: string | undefined;
1352
+ ext?: boolean | undefined;
1353
+ use?: "sig" | "enc" | undefined;
1354
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1355
+ x5c?: string[] | undefined;
1356
+ x5t?: string | undefined;
1357
+ 'x5t#S256'?: string | undefined;
1358
+ x5u?: string | undefined;
1359
+ d?: string | undefined;
1360
+ } | {
1361
+ kty: "oct";
1362
+ k: string;
1363
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1364
+ kid?: string | undefined;
1365
+ ext?: boolean | undefined;
1366
+ use?: "sig" | "enc" | undefined;
1367
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1368
+ x5c?: string[] | undefined;
1369
+ x5t?: string | undefined;
1370
+ 'x5t#S256'?: string | undefined;
1371
+ x5u?: string | undefined;
1372
+ } | {
1373
+ kty: string;
1374
+ alg?: string | undefined;
1375
+ kid?: string | undefined;
1376
+ ext?: boolean | undefined;
1377
+ use?: "sig" | "enc" | undefined;
1378
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1379
+ x5c?: string[] | undefined;
1380
+ x5t?: string | undefined;
1381
+ 'x5t#S256'?: string | undefined;
1382
+ x5u?: string | undefined;
1383
+ }>, {
1384
+ kty: "RSA";
1385
+ n: string;
1386
+ e: string;
1387
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1388
+ kid?: string | undefined;
1389
+ ext?: boolean | undefined;
1390
+ use?: "sig" | "enc" | undefined;
1391
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1392
+ x5c?: string[] | undefined;
1393
+ x5t?: string | undefined;
1394
+ 'x5t#S256'?: string | undefined;
1395
+ x5u?: string | undefined;
1396
+ d?: string | undefined;
1397
+ p?: string | undefined;
1398
+ q?: string | undefined;
1399
+ dp?: string | undefined;
1400
+ dq?: string | undefined;
1401
+ qi?: string | undefined;
1402
+ oth?: [{
1403
+ d?: string | undefined;
1404
+ r?: string | undefined;
1405
+ t?: string | undefined;
1406
+ }, ...{
1407
+ d?: string | undefined;
1408
+ r?: string | undefined;
1409
+ t?: string | undefined;
1410
+ }[]] | undefined;
1411
+ } | {
1412
+ kty: "EC";
1413
+ crv: "P-256" | "P-384" | "P-521";
1414
+ x: string;
1415
+ y: string;
1416
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1417
+ kid?: string | undefined;
1418
+ ext?: boolean | undefined;
1419
+ use?: "sig" | "enc" | undefined;
1420
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1421
+ x5c?: string[] | undefined;
1422
+ x5t?: string | undefined;
1423
+ 'x5t#S256'?: string | undefined;
1424
+ x5u?: string | undefined;
1425
+ d?: string | undefined;
1426
+ } | {
1427
+ kty: "EC";
1428
+ crv: "secp256k1";
1429
+ x: string;
1430
+ y: string;
1431
+ alg?: "ES256K" | undefined;
1432
+ kid?: string | undefined;
1433
+ ext?: boolean | undefined;
1434
+ use?: "sig" | "enc" | undefined;
1435
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1436
+ x5c?: string[] | undefined;
1437
+ x5t?: string | undefined;
1438
+ 'x5t#S256'?: string | undefined;
1439
+ x5u?: string | undefined;
1440
+ d?: string | undefined;
1441
+ } | {
1442
+ kty: "OKP";
1443
+ crv: "Ed25519" | "Ed448";
1444
+ x: string;
1445
+ alg?: "EdDSA" | undefined;
1446
+ kid?: string | undefined;
1447
+ ext?: boolean | undefined;
1448
+ use?: "sig" | "enc" | undefined;
1449
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1450
+ x5c?: string[] | undefined;
1451
+ x5t?: string | undefined;
1452
+ 'x5t#S256'?: string | undefined;
1453
+ x5u?: string | undefined;
1454
+ d?: string | undefined;
1455
+ } | {
1456
+ kty: "oct";
1457
+ k: string;
1458
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1459
+ kid?: string | undefined;
1460
+ ext?: boolean | undefined;
1461
+ use?: "sig" | "enc" | undefined;
1462
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1463
+ x5c?: string[] | undefined;
1464
+ x5t?: string | undefined;
1465
+ 'x5t#S256'?: string | undefined;
1466
+ x5u?: string | undefined;
1467
+ } | {
1468
+ kty: string;
1469
+ alg?: string | undefined;
1470
+ kid?: string | undefined;
1471
+ ext?: boolean | undefined;
1472
+ use?: "sig" | "enc" | undefined;
1473
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1474
+ x5c?: string[] | undefined;
1475
+ x5t?: string | undefined;
1476
+ 'x5t#S256'?: string | undefined;
1477
+ x5u?: string | undefined;
1478
+ }, {
1479
+ kty: "RSA";
1480
+ n: string;
1481
+ e: string;
1482
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1483
+ kid?: string | undefined;
1484
+ ext?: boolean | undefined;
1485
+ use?: "sig" | "enc" | undefined;
1486
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1487
+ x5c?: string[] | undefined;
1488
+ x5t?: string | undefined;
1489
+ 'x5t#S256'?: string | undefined;
1490
+ x5u?: string | undefined;
1491
+ d?: string | undefined;
1492
+ p?: string | undefined;
1493
+ q?: string | undefined;
1494
+ dp?: string | undefined;
1495
+ dq?: string | undefined;
1496
+ qi?: string | undefined;
1497
+ oth?: [{
1498
+ d?: string | undefined;
1499
+ r?: string | undefined;
1500
+ t?: string | undefined;
1501
+ }, ...{
1502
+ d?: string | undefined;
1503
+ r?: string | undefined;
1504
+ t?: string | undefined;
1505
+ }[]] | undefined;
1506
+ } | {
1507
+ kty: "EC";
1508
+ crv: "P-256" | "P-384" | "P-521";
1509
+ x: string;
1510
+ y: string;
1511
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1512
+ kid?: string | undefined;
1513
+ ext?: boolean | undefined;
1514
+ use?: "sig" | "enc" | undefined;
1515
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1516
+ x5c?: string[] | undefined;
1517
+ x5t?: string | undefined;
1518
+ 'x5t#S256'?: string | undefined;
1519
+ x5u?: string | undefined;
1520
+ d?: string | undefined;
1521
+ } | {
1522
+ kty: "EC";
1523
+ crv: "secp256k1";
1524
+ x: string;
1525
+ y: string;
1526
+ alg?: "ES256K" | undefined;
1527
+ kid?: string | undefined;
1528
+ ext?: boolean | undefined;
1529
+ use?: "sig" | "enc" | undefined;
1530
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1531
+ x5c?: string[] | undefined;
1532
+ x5t?: string | undefined;
1533
+ 'x5t#S256'?: string | undefined;
1534
+ x5u?: string | undefined;
1535
+ d?: string | undefined;
1536
+ } | {
1537
+ kty: "OKP";
1538
+ crv: "Ed25519" | "Ed448";
1539
+ x: string;
1540
+ alg?: "EdDSA" | undefined;
1541
+ kid?: string | undefined;
1542
+ ext?: boolean | undefined;
1543
+ use?: "sig" | "enc" | undefined;
1544
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1545
+ x5c?: string[] | undefined;
1546
+ x5t?: string | undefined;
1547
+ 'x5t#S256'?: string | undefined;
1548
+ x5u?: string | undefined;
1549
+ d?: string | undefined;
1550
+ } | {
1551
+ kty: "oct";
1552
+ k: string;
1553
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1554
+ kid?: string | undefined;
1555
+ ext?: boolean | undefined;
1556
+ use?: "sig" | "enc" | undefined;
1557
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1558
+ x5c?: string[] | undefined;
1559
+ x5t?: string | undefined;
1560
+ 'x5t#S256'?: string | undefined;
1561
+ x5u?: string | undefined;
1562
+ } | {
1563
+ kty: string;
1564
+ alg?: string | undefined;
1565
+ kid?: string | undefined;
1566
+ ext?: boolean | undefined;
1567
+ use?: "sig" | "enc" | undefined;
1568
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1569
+ x5c?: string[] | undefined;
1570
+ x5t?: string | undefined;
1571
+ 'x5t#S256'?: string | undefined;
1572
+ x5u?: string | undefined;
1573
+ }>, "many">;
1574
+ }, "strip", z.ZodTypeAny, {
1575
+ keys: ({
1576
+ kty: "RSA";
1577
+ n: string;
1578
+ e: string;
1579
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1580
+ kid?: string | undefined;
1581
+ ext?: boolean | undefined;
1582
+ use?: "sig" | "enc" | undefined;
1583
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1584
+ x5c?: string[] | undefined;
1585
+ x5t?: string | undefined;
1586
+ 'x5t#S256'?: string | undefined;
1587
+ x5u?: string | undefined;
1588
+ d?: string | undefined;
1589
+ p?: string | undefined;
1590
+ q?: string | undefined;
1591
+ dp?: string | undefined;
1592
+ dq?: string | undefined;
1593
+ qi?: string | undefined;
1594
+ oth?: [{
1595
+ d?: string | undefined;
1596
+ r?: string | undefined;
1597
+ t?: string | undefined;
1598
+ }, ...{
1599
+ d?: string | undefined;
1600
+ r?: string | undefined;
1601
+ t?: string | undefined;
1602
+ }[]] | undefined;
1603
+ } | {
1604
+ kty: "EC";
1605
+ crv: "P-256" | "P-384" | "P-521";
1606
+ x: string;
1607
+ y: string;
1608
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1609
+ kid?: string | undefined;
1610
+ ext?: boolean | undefined;
1611
+ use?: "sig" | "enc" | undefined;
1612
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1613
+ x5c?: string[] | undefined;
1614
+ x5t?: string | undefined;
1615
+ 'x5t#S256'?: string | undefined;
1616
+ x5u?: string | undefined;
1617
+ d?: string | undefined;
1618
+ } | {
1619
+ kty: "EC";
1620
+ crv: "secp256k1";
1621
+ x: string;
1622
+ y: string;
1623
+ alg?: "ES256K" | undefined;
1624
+ kid?: string | undefined;
1625
+ ext?: boolean | undefined;
1626
+ use?: "sig" | "enc" | undefined;
1627
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1628
+ x5c?: string[] | undefined;
1629
+ x5t?: string | undefined;
1630
+ 'x5t#S256'?: string | undefined;
1631
+ x5u?: string | undefined;
1632
+ d?: string | undefined;
1633
+ } | {
1634
+ kty: "OKP";
1635
+ crv: "Ed25519" | "Ed448";
1636
+ x: string;
1637
+ alg?: "EdDSA" | undefined;
1638
+ kid?: string | undefined;
1639
+ ext?: boolean | undefined;
1640
+ use?: "sig" | "enc" | undefined;
1641
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1642
+ x5c?: string[] | undefined;
1643
+ x5t?: string | undefined;
1644
+ 'x5t#S256'?: string | undefined;
1645
+ x5u?: string | undefined;
1646
+ d?: string | undefined;
1647
+ } | {
1648
+ kty: "oct";
1649
+ k: string;
1650
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1651
+ kid?: string | undefined;
1652
+ ext?: boolean | undefined;
1653
+ use?: "sig" | "enc" | undefined;
1654
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1655
+ x5c?: string[] | undefined;
1656
+ x5t?: string | undefined;
1657
+ 'x5t#S256'?: string | undefined;
1658
+ x5u?: string | undefined;
1659
+ } | {
1660
+ kty: string;
1661
+ alg?: string | undefined;
1662
+ kid?: string | undefined;
1663
+ ext?: boolean | undefined;
1664
+ use?: "sig" | "enc" | undefined;
1665
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1666
+ x5c?: string[] | undefined;
1667
+ x5t?: string | undefined;
1668
+ 'x5t#S256'?: string | undefined;
1669
+ x5u?: string | undefined;
1670
+ })[];
1671
+ }, {
1672
+ keys: ({
1673
+ kty: "RSA";
1674
+ n: string;
1675
+ e: string;
1676
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1677
+ kid?: string | undefined;
1678
+ ext?: boolean | undefined;
1679
+ use?: "sig" | "enc" | undefined;
1680
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1681
+ x5c?: string[] | undefined;
1682
+ x5t?: string | undefined;
1683
+ 'x5t#S256'?: string | undefined;
1684
+ x5u?: string | undefined;
1685
+ d?: string | undefined;
1686
+ p?: string | undefined;
1687
+ q?: string | undefined;
1688
+ dp?: string | undefined;
1689
+ dq?: string | undefined;
1690
+ qi?: string | undefined;
1691
+ oth?: [{
1692
+ d?: string | undefined;
1693
+ r?: string | undefined;
1694
+ t?: string | undefined;
1695
+ }, ...{
1696
+ d?: string | undefined;
1697
+ r?: string | undefined;
1698
+ t?: string | undefined;
1699
+ }[]] | undefined;
1700
+ } | {
1701
+ kty: "EC";
1702
+ crv: "P-256" | "P-384" | "P-521";
1703
+ x: string;
1704
+ y: string;
1705
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1706
+ kid?: string | undefined;
1707
+ ext?: boolean | undefined;
1708
+ use?: "sig" | "enc" | undefined;
1709
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1710
+ x5c?: string[] | undefined;
1711
+ x5t?: string | undefined;
1712
+ 'x5t#S256'?: string | undefined;
1713
+ x5u?: string | undefined;
1714
+ d?: string | undefined;
1715
+ } | {
1716
+ kty: "EC";
1717
+ crv: "secp256k1";
1718
+ x: string;
1719
+ y: string;
1720
+ alg?: "ES256K" | undefined;
1721
+ kid?: string | undefined;
1722
+ ext?: boolean | undefined;
1723
+ use?: "sig" | "enc" | undefined;
1724
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1725
+ x5c?: string[] | undefined;
1726
+ x5t?: string | undefined;
1727
+ 'x5t#S256'?: string | undefined;
1728
+ x5u?: string | undefined;
1729
+ d?: string | undefined;
1730
+ } | {
1731
+ kty: "OKP";
1732
+ crv: "Ed25519" | "Ed448";
1733
+ x: string;
1734
+ alg?: "EdDSA" | undefined;
1735
+ kid?: string | undefined;
1736
+ ext?: boolean | undefined;
1737
+ use?: "sig" | "enc" | undefined;
1738
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1739
+ x5c?: string[] | undefined;
1740
+ x5t?: string | undefined;
1741
+ 'x5t#S256'?: string | undefined;
1742
+ x5u?: string | undefined;
1743
+ d?: string | undefined;
1744
+ } | {
1745
+ kty: "oct";
1746
+ k: string;
1747
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1748
+ kid?: string | undefined;
1749
+ ext?: boolean | undefined;
1750
+ use?: "sig" | "enc" | undefined;
1751
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1752
+ x5c?: string[] | undefined;
1753
+ x5t?: string | undefined;
1754
+ 'x5t#S256'?: string | undefined;
1755
+ x5u?: string | undefined;
1756
+ } | {
1757
+ kty: string;
1758
+ alg?: string | undefined;
1759
+ kid?: string | undefined;
1760
+ ext?: boolean | undefined;
1761
+ use?: "sig" | "enc" | undefined;
1762
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1763
+ x5c?: string[] | undefined;
1764
+ x5t?: string | undefined;
1765
+ 'x5t#S256'?: string | undefined;
1766
+ x5u?: string | undefined;
1767
+ })[];
1768
+ }>;
1769
+ export type JwksPub = z.infer<typeof jwksPubSchema>;
1770
+ //# sourceMappingURL=jwks.d.ts.map