@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/jwk.d.ts ADDED
@@ -0,0 +1,2424 @@
1
+ import { z } from 'zod';
2
+ export declare const keyUsageSchema: z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>;
3
+ export type KeyUsage = z.infer<typeof keyUsageSchema>;
4
+ /**
5
+ * The "use" and "key_ops" JWK members SHOULD NOT be used together;
6
+ * however, if both are used, the information they convey MUST be
7
+ * consistent. Applications should specify which of these members they
8
+ * use, if either is to be used by the application.
9
+ *
10
+ * @todo Actually check that "use" and "key_ops" are consistent when both are present.
11
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc7517#section-4.3}
12
+ */
13
+ export declare const jwkBaseSchema: z.ZodObject<{
14
+ kty: z.ZodString;
15
+ alg: z.ZodOptional<z.ZodString>;
16
+ kid: z.ZodOptional<z.ZodString>;
17
+ ext: z.ZodOptional<z.ZodBoolean>;
18
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
19
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
20
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21
+ x5t: z.ZodOptional<z.ZodString>;
22
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
23
+ x5u: z.ZodOptional<z.ZodString>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ kty: string;
26
+ alg?: string | undefined;
27
+ kid?: string | undefined;
28
+ ext?: boolean | undefined;
29
+ use?: "sig" | "enc" | undefined;
30
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
31
+ x5c?: string[] | undefined;
32
+ x5t?: string | undefined;
33
+ 'x5t#S256'?: string | undefined;
34
+ x5u?: string | undefined;
35
+ }, {
36
+ kty: string;
37
+ alg?: string | undefined;
38
+ kid?: string | undefined;
39
+ ext?: boolean | undefined;
40
+ use?: "sig" | "enc" | undefined;
41
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
42
+ x5c?: string[] | undefined;
43
+ x5t?: string | undefined;
44
+ 'x5t#S256'?: string | undefined;
45
+ x5u?: string | undefined;
46
+ }>;
47
+ /**
48
+ * @todo: properly implement this
49
+ */
50
+ export declare const jwkRsaKeySchema: z.ZodObject<z.objectUtil.extendShape<{
51
+ kty: z.ZodString;
52
+ alg: z.ZodOptional<z.ZodString>;
53
+ kid: z.ZodOptional<z.ZodString>;
54
+ ext: z.ZodOptional<z.ZodBoolean>;
55
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
56
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
57
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
58
+ x5t: z.ZodOptional<z.ZodString>;
59
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
60
+ x5u: z.ZodOptional<z.ZodString>;
61
+ }, {
62
+ kty: z.ZodLiteral<"RSA">;
63
+ alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
64
+ n: z.ZodString;
65
+ e: z.ZodString;
66
+ d: z.ZodOptional<z.ZodString>;
67
+ p: z.ZodOptional<z.ZodString>;
68
+ q: z.ZodOptional<z.ZodString>;
69
+ dp: z.ZodOptional<z.ZodString>;
70
+ dq: z.ZodOptional<z.ZodString>;
71
+ qi: z.ZodOptional<z.ZodString>;
72
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
73
+ r: z.ZodOptional<z.ZodString>;
74
+ d: z.ZodOptional<z.ZodString>;
75
+ t: z.ZodOptional<z.ZodString>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ d?: string | undefined;
78
+ r?: string | undefined;
79
+ t?: string | undefined;
80
+ }, {
81
+ d?: string | undefined;
82
+ r?: string | undefined;
83
+ t?: string | undefined;
84
+ }>, "atleastone">>;
85
+ }>, "strip", z.ZodTypeAny, {
86
+ kty: "RSA";
87
+ n: string;
88
+ e: string;
89
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
90
+ kid?: string | undefined;
91
+ ext?: boolean | undefined;
92
+ use?: "sig" | "enc" | undefined;
93
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
94
+ x5c?: string[] | undefined;
95
+ x5t?: string | undefined;
96
+ 'x5t#S256'?: string | undefined;
97
+ x5u?: string | undefined;
98
+ d?: string | undefined;
99
+ p?: string | undefined;
100
+ q?: string | undefined;
101
+ dp?: string | undefined;
102
+ dq?: string | undefined;
103
+ qi?: string | undefined;
104
+ oth?: [{
105
+ d?: string | undefined;
106
+ r?: string | undefined;
107
+ t?: string | undefined;
108
+ }, ...{
109
+ d?: string | undefined;
110
+ r?: string | undefined;
111
+ t?: string | undefined;
112
+ }[]] | undefined;
113
+ }, {
114
+ kty: "RSA";
115
+ n: string;
116
+ e: string;
117
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
118
+ kid?: string | undefined;
119
+ ext?: boolean | undefined;
120
+ use?: "sig" | "enc" | undefined;
121
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
122
+ x5c?: string[] | undefined;
123
+ x5t?: string | undefined;
124
+ 'x5t#S256'?: string | undefined;
125
+ x5u?: string | undefined;
126
+ d?: string | undefined;
127
+ p?: string | undefined;
128
+ q?: string | undefined;
129
+ dp?: string | undefined;
130
+ dq?: string | undefined;
131
+ qi?: string | undefined;
132
+ oth?: [{
133
+ d?: string | undefined;
134
+ r?: string | undefined;
135
+ t?: string | undefined;
136
+ }, ...{
137
+ d?: string | undefined;
138
+ r?: string | undefined;
139
+ t?: string | undefined;
140
+ }[]] | undefined;
141
+ }>;
142
+ export declare const jwkEcKeySchema: z.ZodObject<z.objectUtil.extendShape<{
143
+ kty: z.ZodString;
144
+ alg: z.ZodOptional<z.ZodString>;
145
+ kid: z.ZodOptional<z.ZodString>;
146
+ ext: z.ZodOptional<z.ZodBoolean>;
147
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
148
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
149
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
150
+ x5t: z.ZodOptional<z.ZodString>;
151
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
152
+ x5u: z.ZodOptional<z.ZodString>;
153
+ }, {
154
+ kty: z.ZodLiteral<"EC">;
155
+ alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
156
+ crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
157
+ x: z.ZodString;
158
+ y: z.ZodString;
159
+ d: z.ZodOptional<z.ZodString>;
160
+ }>, "strip", z.ZodTypeAny, {
161
+ kty: "EC";
162
+ crv: "P-256" | "P-384" | "P-521";
163
+ x: string;
164
+ y: string;
165
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
166
+ kid?: string | undefined;
167
+ ext?: boolean | undefined;
168
+ use?: "sig" | "enc" | undefined;
169
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
170
+ x5c?: string[] | undefined;
171
+ x5t?: string | undefined;
172
+ 'x5t#S256'?: string | undefined;
173
+ x5u?: string | undefined;
174
+ d?: string | undefined;
175
+ }, {
176
+ kty: "EC";
177
+ crv: "P-256" | "P-384" | "P-521";
178
+ x: string;
179
+ y: string;
180
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
181
+ kid?: string | undefined;
182
+ ext?: boolean | undefined;
183
+ use?: "sig" | "enc" | undefined;
184
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
185
+ x5c?: string[] | undefined;
186
+ x5t?: string | undefined;
187
+ 'x5t#S256'?: string | undefined;
188
+ x5u?: string | undefined;
189
+ d?: string | undefined;
190
+ }>;
191
+ export declare const jwkEcSecp256k1KeySchema: z.ZodObject<z.objectUtil.extendShape<{
192
+ kty: z.ZodString;
193
+ alg: z.ZodOptional<z.ZodString>;
194
+ kid: z.ZodOptional<z.ZodString>;
195
+ ext: z.ZodOptional<z.ZodBoolean>;
196
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
197
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
198
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
199
+ x5t: z.ZodOptional<z.ZodString>;
200
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
201
+ x5u: z.ZodOptional<z.ZodString>;
202
+ }, {
203
+ kty: z.ZodLiteral<"EC">;
204
+ alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
205
+ crv: z.ZodEnum<["secp256k1"]>;
206
+ x: z.ZodString;
207
+ y: z.ZodString;
208
+ d: z.ZodOptional<z.ZodString>;
209
+ }>, "strip", z.ZodTypeAny, {
210
+ kty: "EC";
211
+ crv: "secp256k1";
212
+ x: string;
213
+ y: string;
214
+ alg?: "ES256K" | undefined;
215
+ kid?: string | undefined;
216
+ ext?: boolean | undefined;
217
+ use?: "sig" | "enc" | undefined;
218
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
219
+ x5c?: string[] | undefined;
220
+ x5t?: string | undefined;
221
+ 'x5t#S256'?: string | undefined;
222
+ x5u?: string | undefined;
223
+ d?: string | undefined;
224
+ }, {
225
+ kty: "EC";
226
+ crv: "secp256k1";
227
+ x: string;
228
+ y: string;
229
+ alg?: "ES256K" | undefined;
230
+ kid?: string | undefined;
231
+ ext?: boolean | undefined;
232
+ use?: "sig" | "enc" | undefined;
233
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
234
+ x5c?: string[] | undefined;
235
+ x5t?: string | undefined;
236
+ 'x5t#S256'?: string | undefined;
237
+ x5u?: string | undefined;
238
+ d?: string | undefined;
239
+ }>;
240
+ export declare const jwkOkpKeySchema: z.ZodObject<z.objectUtil.extendShape<{
241
+ kty: z.ZodString;
242
+ alg: z.ZodOptional<z.ZodString>;
243
+ kid: z.ZodOptional<z.ZodString>;
244
+ ext: z.ZodOptional<z.ZodBoolean>;
245
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
246
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
247
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
248
+ x5t: z.ZodOptional<z.ZodString>;
249
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
250
+ x5u: z.ZodOptional<z.ZodString>;
251
+ }, {
252
+ kty: z.ZodLiteral<"OKP">;
253
+ alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
254
+ crv: z.ZodEnum<["Ed25519", "Ed448"]>;
255
+ x: z.ZodString;
256
+ d: z.ZodOptional<z.ZodString>;
257
+ }>, "strip", z.ZodTypeAny, {
258
+ kty: "OKP";
259
+ crv: "Ed25519" | "Ed448";
260
+ x: string;
261
+ alg?: "EdDSA" | undefined;
262
+ kid?: string | undefined;
263
+ ext?: boolean | undefined;
264
+ use?: "sig" | "enc" | undefined;
265
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
266
+ x5c?: string[] | undefined;
267
+ x5t?: string | undefined;
268
+ 'x5t#S256'?: string | undefined;
269
+ x5u?: string | undefined;
270
+ d?: string | undefined;
271
+ }, {
272
+ kty: "OKP";
273
+ crv: "Ed25519" | "Ed448";
274
+ x: string;
275
+ alg?: "EdDSA" | undefined;
276
+ kid?: string | undefined;
277
+ ext?: boolean | undefined;
278
+ use?: "sig" | "enc" | undefined;
279
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
280
+ x5c?: string[] | undefined;
281
+ x5t?: string | undefined;
282
+ 'x5t#S256'?: string | undefined;
283
+ x5u?: string | undefined;
284
+ d?: string | undefined;
285
+ }>;
286
+ export declare const jwkSymKeySchema: z.ZodObject<z.objectUtil.extendShape<{
287
+ kty: z.ZodString;
288
+ alg: z.ZodOptional<z.ZodString>;
289
+ kid: z.ZodOptional<z.ZodString>;
290
+ ext: z.ZodOptional<z.ZodBoolean>;
291
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
292
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
293
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
294
+ x5t: z.ZodOptional<z.ZodString>;
295
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
296
+ x5u: z.ZodOptional<z.ZodString>;
297
+ }, {
298
+ kty: z.ZodLiteral<"oct">;
299
+ alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
300
+ k: z.ZodString;
301
+ }>, "strip", z.ZodTypeAny, {
302
+ kty: "oct";
303
+ k: string;
304
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
305
+ kid?: string | undefined;
306
+ ext?: boolean | undefined;
307
+ use?: "sig" | "enc" | undefined;
308
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
309
+ x5c?: string[] | undefined;
310
+ x5t?: string | undefined;
311
+ 'x5t#S256'?: string | undefined;
312
+ x5u?: string | undefined;
313
+ }, {
314
+ kty: "oct";
315
+ k: string;
316
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
317
+ kid?: string | undefined;
318
+ ext?: boolean | undefined;
319
+ use?: "sig" | "enc" | undefined;
320
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
321
+ x5c?: string[] | undefined;
322
+ x5t?: string | undefined;
323
+ 'x5t#S256'?: string | undefined;
324
+ x5u?: string | undefined;
325
+ }>;
326
+ export declare const jwkUnknownKeySchema: z.ZodObject<z.objectUtil.extendShape<{
327
+ kty: z.ZodString;
328
+ alg: z.ZodOptional<z.ZodString>;
329
+ kid: z.ZodOptional<z.ZodString>;
330
+ ext: z.ZodOptional<z.ZodBoolean>;
331
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
332
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
333
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
334
+ x5t: z.ZodOptional<z.ZodString>;
335
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
336
+ x5u: z.ZodOptional<z.ZodString>;
337
+ }, {
338
+ kty: z.ZodEffects<z.ZodString, string, string>;
339
+ }>, "strip", z.ZodTypeAny, {
340
+ kty: string;
341
+ alg?: string | undefined;
342
+ kid?: string | undefined;
343
+ ext?: boolean | undefined;
344
+ use?: "sig" | "enc" | undefined;
345
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
346
+ x5c?: string[] | undefined;
347
+ x5t?: string | undefined;
348
+ 'x5t#S256'?: string | undefined;
349
+ x5u?: string | undefined;
350
+ }, {
351
+ kty: string;
352
+ alg?: string | undefined;
353
+ kid?: string | undefined;
354
+ ext?: boolean | undefined;
355
+ use?: "sig" | "enc" | undefined;
356
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
357
+ x5c?: string[] | undefined;
358
+ x5t?: string | undefined;
359
+ 'x5t#S256'?: string | undefined;
360
+ x5u?: string | undefined;
361
+ }>;
362
+ export declare const jwkSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
363
+ kty: z.ZodString;
364
+ alg: z.ZodOptional<z.ZodString>;
365
+ kid: z.ZodOptional<z.ZodString>;
366
+ ext: z.ZodOptional<z.ZodBoolean>;
367
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
368
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
369
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
370
+ x5t: z.ZodOptional<z.ZodString>;
371
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
372
+ x5u: z.ZodOptional<z.ZodString>;
373
+ }, {
374
+ kty: z.ZodEffects<z.ZodString, string, string>;
375
+ }>, "strip", z.ZodTypeAny, {
376
+ kty: string;
377
+ alg?: string | undefined;
378
+ kid?: string | undefined;
379
+ ext?: boolean | undefined;
380
+ use?: "sig" | "enc" | undefined;
381
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
382
+ x5c?: string[] | undefined;
383
+ x5t?: string | undefined;
384
+ 'x5t#S256'?: string | undefined;
385
+ x5u?: string | undefined;
386
+ }, {
387
+ kty: string;
388
+ alg?: string | undefined;
389
+ kid?: string | undefined;
390
+ ext?: boolean | undefined;
391
+ use?: "sig" | "enc" | undefined;
392
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
393
+ x5c?: string[] | undefined;
394
+ x5t?: string | undefined;
395
+ 'x5t#S256'?: string | undefined;
396
+ x5u?: string | undefined;
397
+ }>, z.ZodObject<z.objectUtil.extendShape<{
398
+ kty: z.ZodString;
399
+ alg: z.ZodOptional<z.ZodString>;
400
+ kid: z.ZodOptional<z.ZodString>;
401
+ ext: z.ZodOptional<z.ZodBoolean>;
402
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
403
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
404
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
405
+ x5t: z.ZodOptional<z.ZodString>;
406
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
407
+ x5u: z.ZodOptional<z.ZodString>;
408
+ }, {
409
+ kty: z.ZodLiteral<"RSA">;
410
+ alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
411
+ n: z.ZodString;
412
+ e: z.ZodString;
413
+ d: z.ZodOptional<z.ZodString>;
414
+ p: z.ZodOptional<z.ZodString>;
415
+ q: z.ZodOptional<z.ZodString>;
416
+ dp: z.ZodOptional<z.ZodString>;
417
+ dq: z.ZodOptional<z.ZodString>;
418
+ qi: z.ZodOptional<z.ZodString>;
419
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
420
+ r: z.ZodOptional<z.ZodString>;
421
+ d: z.ZodOptional<z.ZodString>;
422
+ t: z.ZodOptional<z.ZodString>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ d?: string | undefined;
425
+ r?: string | undefined;
426
+ t?: string | undefined;
427
+ }, {
428
+ d?: string | undefined;
429
+ r?: string | undefined;
430
+ t?: string | undefined;
431
+ }>, "atleastone">>;
432
+ }>, "strip", z.ZodTypeAny, {
433
+ kty: "RSA";
434
+ n: string;
435
+ e: string;
436
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
437
+ kid?: string | undefined;
438
+ ext?: boolean | undefined;
439
+ use?: "sig" | "enc" | undefined;
440
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
441
+ x5c?: string[] | undefined;
442
+ x5t?: string | undefined;
443
+ 'x5t#S256'?: string | undefined;
444
+ x5u?: string | undefined;
445
+ d?: string | undefined;
446
+ p?: string | undefined;
447
+ q?: string | undefined;
448
+ dp?: string | undefined;
449
+ dq?: string | undefined;
450
+ qi?: string | undefined;
451
+ oth?: [{
452
+ d?: string | undefined;
453
+ r?: string | undefined;
454
+ t?: string | undefined;
455
+ }, ...{
456
+ d?: string | undefined;
457
+ r?: string | undefined;
458
+ t?: string | undefined;
459
+ }[]] | undefined;
460
+ }, {
461
+ kty: "RSA";
462
+ n: string;
463
+ e: string;
464
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
465
+ kid?: string | undefined;
466
+ ext?: boolean | undefined;
467
+ use?: "sig" | "enc" | undefined;
468
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
469
+ x5c?: string[] | undefined;
470
+ x5t?: string | undefined;
471
+ 'x5t#S256'?: string | undefined;
472
+ x5u?: string | undefined;
473
+ d?: string | undefined;
474
+ p?: string | undefined;
475
+ q?: string | undefined;
476
+ dp?: string | undefined;
477
+ dq?: string | undefined;
478
+ qi?: string | undefined;
479
+ oth?: [{
480
+ d?: string | undefined;
481
+ r?: string | undefined;
482
+ t?: string | undefined;
483
+ }, ...{
484
+ d?: string | undefined;
485
+ r?: string | undefined;
486
+ t?: string | undefined;
487
+ }[]] | undefined;
488
+ }>, z.ZodObject<z.objectUtil.extendShape<{
489
+ kty: z.ZodString;
490
+ alg: z.ZodOptional<z.ZodString>;
491
+ kid: z.ZodOptional<z.ZodString>;
492
+ ext: z.ZodOptional<z.ZodBoolean>;
493
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
494
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
495
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
496
+ x5t: z.ZodOptional<z.ZodString>;
497
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
498
+ x5u: z.ZodOptional<z.ZodString>;
499
+ }, {
500
+ kty: z.ZodLiteral<"EC">;
501
+ alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
502
+ crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
503
+ x: z.ZodString;
504
+ y: z.ZodString;
505
+ d: z.ZodOptional<z.ZodString>;
506
+ }>, "strip", z.ZodTypeAny, {
507
+ kty: "EC";
508
+ crv: "P-256" | "P-384" | "P-521";
509
+ x: string;
510
+ y: string;
511
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
512
+ kid?: string | undefined;
513
+ ext?: boolean | undefined;
514
+ use?: "sig" | "enc" | undefined;
515
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
516
+ x5c?: string[] | undefined;
517
+ x5t?: string | undefined;
518
+ 'x5t#S256'?: string | undefined;
519
+ x5u?: string | undefined;
520
+ d?: string | undefined;
521
+ }, {
522
+ kty: "EC";
523
+ crv: "P-256" | "P-384" | "P-521";
524
+ x: string;
525
+ y: string;
526
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
527
+ kid?: string | undefined;
528
+ ext?: boolean | undefined;
529
+ use?: "sig" | "enc" | undefined;
530
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
531
+ x5c?: string[] | undefined;
532
+ x5t?: string | undefined;
533
+ 'x5t#S256'?: string | undefined;
534
+ x5u?: string | undefined;
535
+ d?: string | undefined;
536
+ }>, z.ZodObject<z.objectUtil.extendShape<{
537
+ kty: z.ZodString;
538
+ alg: z.ZodOptional<z.ZodString>;
539
+ kid: z.ZodOptional<z.ZodString>;
540
+ ext: z.ZodOptional<z.ZodBoolean>;
541
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
542
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
543
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
544
+ x5t: z.ZodOptional<z.ZodString>;
545
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
546
+ x5u: z.ZodOptional<z.ZodString>;
547
+ }, {
548
+ kty: z.ZodLiteral<"EC">;
549
+ alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
550
+ crv: z.ZodEnum<["secp256k1"]>;
551
+ x: z.ZodString;
552
+ y: z.ZodString;
553
+ d: z.ZodOptional<z.ZodString>;
554
+ }>, "strip", z.ZodTypeAny, {
555
+ kty: "EC";
556
+ crv: "secp256k1";
557
+ x: string;
558
+ y: string;
559
+ alg?: "ES256K" | undefined;
560
+ kid?: string | undefined;
561
+ ext?: boolean | undefined;
562
+ use?: "sig" | "enc" | undefined;
563
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
564
+ x5c?: string[] | undefined;
565
+ x5t?: string | undefined;
566
+ 'x5t#S256'?: string | undefined;
567
+ x5u?: string | undefined;
568
+ d?: string | undefined;
569
+ }, {
570
+ kty: "EC";
571
+ crv: "secp256k1";
572
+ x: string;
573
+ y: string;
574
+ alg?: "ES256K" | undefined;
575
+ kid?: string | undefined;
576
+ ext?: boolean | undefined;
577
+ use?: "sig" | "enc" | undefined;
578
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
579
+ x5c?: string[] | undefined;
580
+ x5t?: string | undefined;
581
+ 'x5t#S256'?: string | undefined;
582
+ x5u?: string | undefined;
583
+ d?: string | undefined;
584
+ }>, z.ZodObject<z.objectUtil.extendShape<{
585
+ kty: z.ZodString;
586
+ alg: z.ZodOptional<z.ZodString>;
587
+ kid: z.ZodOptional<z.ZodString>;
588
+ ext: z.ZodOptional<z.ZodBoolean>;
589
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
590
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
591
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
592
+ x5t: z.ZodOptional<z.ZodString>;
593
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
594
+ x5u: z.ZodOptional<z.ZodString>;
595
+ }, {
596
+ kty: z.ZodLiteral<"OKP">;
597
+ alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
598
+ crv: z.ZodEnum<["Ed25519", "Ed448"]>;
599
+ x: z.ZodString;
600
+ d: z.ZodOptional<z.ZodString>;
601
+ }>, "strip", z.ZodTypeAny, {
602
+ kty: "OKP";
603
+ crv: "Ed25519" | "Ed448";
604
+ x: string;
605
+ alg?: "EdDSA" | undefined;
606
+ kid?: string | undefined;
607
+ ext?: boolean | undefined;
608
+ use?: "sig" | "enc" | undefined;
609
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
610
+ x5c?: string[] | undefined;
611
+ x5t?: string | undefined;
612
+ 'x5t#S256'?: string | undefined;
613
+ x5u?: string | undefined;
614
+ d?: string | undefined;
615
+ }, {
616
+ kty: "OKP";
617
+ crv: "Ed25519" | "Ed448";
618
+ x: string;
619
+ alg?: "EdDSA" | undefined;
620
+ kid?: string | undefined;
621
+ ext?: boolean | undefined;
622
+ use?: "sig" | "enc" | undefined;
623
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
624
+ x5c?: string[] | undefined;
625
+ x5t?: string | undefined;
626
+ 'x5t#S256'?: string | undefined;
627
+ x5u?: string | undefined;
628
+ d?: string | undefined;
629
+ }>, z.ZodObject<z.objectUtil.extendShape<{
630
+ kty: z.ZodString;
631
+ alg: z.ZodOptional<z.ZodString>;
632
+ kid: z.ZodOptional<z.ZodString>;
633
+ ext: z.ZodOptional<z.ZodBoolean>;
634
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
635
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
636
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
637
+ x5t: z.ZodOptional<z.ZodString>;
638
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
639
+ x5u: z.ZodOptional<z.ZodString>;
640
+ }, {
641
+ kty: z.ZodLiteral<"oct">;
642
+ alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
643
+ k: z.ZodString;
644
+ }>, "strip", z.ZodTypeAny, {
645
+ kty: "oct";
646
+ k: string;
647
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
648
+ kid?: string | undefined;
649
+ ext?: boolean | undefined;
650
+ use?: "sig" | "enc" | undefined;
651
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
652
+ x5c?: string[] | undefined;
653
+ x5t?: string | undefined;
654
+ 'x5t#S256'?: string | undefined;
655
+ x5u?: string | undefined;
656
+ }, {
657
+ kty: "oct";
658
+ k: string;
659
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
660
+ kid?: string | undefined;
661
+ ext?: boolean | undefined;
662
+ use?: "sig" | "enc" | undefined;
663
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
664
+ x5c?: string[] | undefined;
665
+ x5t?: string | undefined;
666
+ 'x5t#S256'?: string | undefined;
667
+ x5u?: string | undefined;
668
+ }>]>;
669
+ export type Jwk = z.infer<typeof jwkSchema>;
670
+ export declare const jwkValidator: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
671
+ kty: z.ZodString;
672
+ alg: z.ZodOptional<z.ZodString>;
673
+ kid: z.ZodOptional<z.ZodString>;
674
+ ext: z.ZodOptional<z.ZodBoolean>;
675
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
676
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
677
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
678
+ x5t: z.ZodOptional<z.ZodString>;
679
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
680
+ x5u: z.ZodOptional<z.ZodString>;
681
+ }, {
682
+ kty: z.ZodEffects<z.ZodString, string, string>;
683
+ }>, "strip", z.ZodTypeAny, {
684
+ kty: string;
685
+ alg?: string | undefined;
686
+ kid?: string | undefined;
687
+ ext?: boolean | undefined;
688
+ use?: "sig" | "enc" | undefined;
689
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
690
+ x5c?: string[] | undefined;
691
+ x5t?: string | undefined;
692
+ 'x5t#S256'?: string | undefined;
693
+ x5u?: string | undefined;
694
+ }, {
695
+ kty: string;
696
+ alg?: string | undefined;
697
+ kid?: string | undefined;
698
+ ext?: boolean | undefined;
699
+ use?: "sig" | "enc" | undefined;
700
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
701
+ x5c?: string[] | undefined;
702
+ x5t?: string | undefined;
703
+ 'x5t#S256'?: string | undefined;
704
+ x5u?: string | undefined;
705
+ }>, z.ZodObject<z.objectUtil.extendShape<{
706
+ kty: z.ZodString;
707
+ alg: z.ZodOptional<z.ZodString>;
708
+ kid: z.ZodOptional<z.ZodString>;
709
+ ext: z.ZodOptional<z.ZodBoolean>;
710
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
711
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
712
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
713
+ x5t: z.ZodOptional<z.ZodString>;
714
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
715
+ x5u: z.ZodOptional<z.ZodString>;
716
+ }, {
717
+ kty: z.ZodLiteral<"RSA">;
718
+ alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
719
+ n: z.ZodString;
720
+ e: z.ZodString;
721
+ d: z.ZodOptional<z.ZodString>;
722
+ p: z.ZodOptional<z.ZodString>;
723
+ q: z.ZodOptional<z.ZodString>;
724
+ dp: z.ZodOptional<z.ZodString>;
725
+ dq: z.ZodOptional<z.ZodString>;
726
+ qi: z.ZodOptional<z.ZodString>;
727
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
728
+ r: z.ZodOptional<z.ZodString>;
729
+ d: z.ZodOptional<z.ZodString>;
730
+ t: z.ZodOptional<z.ZodString>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ d?: string | undefined;
733
+ r?: string | undefined;
734
+ t?: string | undefined;
735
+ }, {
736
+ d?: string | undefined;
737
+ r?: string | undefined;
738
+ t?: string | undefined;
739
+ }>, "atleastone">>;
740
+ }>, "strip", z.ZodTypeAny, {
741
+ kty: "RSA";
742
+ n: string;
743
+ e: string;
744
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
745
+ kid?: string | undefined;
746
+ ext?: boolean | undefined;
747
+ use?: "sig" | "enc" | undefined;
748
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
749
+ x5c?: string[] | undefined;
750
+ x5t?: string | undefined;
751
+ 'x5t#S256'?: string | undefined;
752
+ x5u?: string | undefined;
753
+ d?: string | undefined;
754
+ p?: string | undefined;
755
+ q?: string | undefined;
756
+ dp?: string | undefined;
757
+ dq?: string | undefined;
758
+ qi?: string | undefined;
759
+ oth?: [{
760
+ d?: string | undefined;
761
+ r?: string | undefined;
762
+ t?: string | undefined;
763
+ }, ...{
764
+ d?: string | undefined;
765
+ r?: string | undefined;
766
+ t?: string | undefined;
767
+ }[]] | undefined;
768
+ }, {
769
+ kty: "RSA";
770
+ n: string;
771
+ e: string;
772
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
773
+ kid?: string | undefined;
774
+ ext?: boolean | undefined;
775
+ use?: "sig" | "enc" | undefined;
776
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
777
+ x5c?: string[] | undefined;
778
+ x5t?: string | undefined;
779
+ 'x5t#S256'?: string | undefined;
780
+ x5u?: string | undefined;
781
+ d?: string | undefined;
782
+ p?: string | undefined;
783
+ q?: string | undefined;
784
+ dp?: string | undefined;
785
+ dq?: string | undefined;
786
+ qi?: string | undefined;
787
+ oth?: [{
788
+ d?: string | undefined;
789
+ r?: string | undefined;
790
+ t?: string | undefined;
791
+ }, ...{
792
+ d?: string | undefined;
793
+ r?: string | undefined;
794
+ t?: string | undefined;
795
+ }[]] | undefined;
796
+ }>, z.ZodObject<z.objectUtil.extendShape<{
797
+ kty: z.ZodString;
798
+ alg: z.ZodOptional<z.ZodString>;
799
+ kid: z.ZodOptional<z.ZodString>;
800
+ ext: z.ZodOptional<z.ZodBoolean>;
801
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
802
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
803
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
804
+ x5t: z.ZodOptional<z.ZodString>;
805
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
806
+ x5u: z.ZodOptional<z.ZodString>;
807
+ }, {
808
+ kty: z.ZodLiteral<"EC">;
809
+ alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
810
+ crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
811
+ x: z.ZodString;
812
+ y: z.ZodString;
813
+ d: z.ZodOptional<z.ZodString>;
814
+ }>, "strip", z.ZodTypeAny, {
815
+ kty: "EC";
816
+ crv: "P-256" | "P-384" | "P-521";
817
+ x: string;
818
+ y: string;
819
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
820
+ kid?: string | undefined;
821
+ ext?: boolean | undefined;
822
+ use?: "sig" | "enc" | undefined;
823
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
824
+ x5c?: string[] | undefined;
825
+ x5t?: string | undefined;
826
+ 'x5t#S256'?: string | undefined;
827
+ x5u?: string | undefined;
828
+ d?: string | undefined;
829
+ }, {
830
+ kty: "EC";
831
+ crv: "P-256" | "P-384" | "P-521";
832
+ x: string;
833
+ y: string;
834
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
835
+ kid?: string | undefined;
836
+ ext?: boolean | undefined;
837
+ use?: "sig" | "enc" | undefined;
838
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
839
+ x5c?: string[] | undefined;
840
+ x5t?: string | undefined;
841
+ 'x5t#S256'?: string | undefined;
842
+ x5u?: string | undefined;
843
+ d?: string | undefined;
844
+ }>, z.ZodObject<z.objectUtil.extendShape<{
845
+ kty: z.ZodString;
846
+ alg: z.ZodOptional<z.ZodString>;
847
+ kid: z.ZodOptional<z.ZodString>;
848
+ ext: z.ZodOptional<z.ZodBoolean>;
849
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
850
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
851
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
852
+ x5t: z.ZodOptional<z.ZodString>;
853
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
854
+ x5u: z.ZodOptional<z.ZodString>;
855
+ }, {
856
+ kty: z.ZodLiteral<"EC">;
857
+ alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
858
+ crv: z.ZodEnum<["secp256k1"]>;
859
+ x: z.ZodString;
860
+ y: z.ZodString;
861
+ d: z.ZodOptional<z.ZodString>;
862
+ }>, "strip", z.ZodTypeAny, {
863
+ kty: "EC";
864
+ crv: "secp256k1";
865
+ x: string;
866
+ y: string;
867
+ alg?: "ES256K" | undefined;
868
+ kid?: string | undefined;
869
+ ext?: boolean | undefined;
870
+ use?: "sig" | "enc" | undefined;
871
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
872
+ x5c?: string[] | undefined;
873
+ x5t?: string | undefined;
874
+ 'x5t#S256'?: string | undefined;
875
+ x5u?: string | undefined;
876
+ d?: string | undefined;
877
+ }, {
878
+ kty: "EC";
879
+ crv: "secp256k1";
880
+ x: string;
881
+ y: string;
882
+ alg?: "ES256K" | undefined;
883
+ kid?: string | undefined;
884
+ ext?: boolean | undefined;
885
+ use?: "sig" | "enc" | undefined;
886
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
887
+ x5c?: string[] | undefined;
888
+ x5t?: string | undefined;
889
+ 'x5t#S256'?: string | undefined;
890
+ x5u?: string | undefined;
891
+ d?: string | undefined;
892
+ }>, z.ZodObject<z.objectUtil.extendShape<{
893
+ kty: z.ZodString;
894
+ alg: z.ZodOptional<z.ZodString>;
895
+ kid: z.ZodOptional<z.ZodString>;
896
+ ext: z.ZodOptional<z.ZodBoolean>;
897
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
898
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
899
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
900
+ x5t: z.ZodOptional<z.ZodString>;
901
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
902
+ x5u: z.ZodOptional<z.ZodString>;
903
+ }, {
904
+ kty: z.ZodLiteral<"OKP">;
905
+ alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
906
+ crv: z.ZodEnum<["Ed25519", "Ed448"]>;
907
+ x: z.ZodString;
908
+ d: z.ZodOptional<z.ZodString>;
909
+ }>, "strip", z.ZodTypeAny, {
910
+ kty: "OKP";
911
+ crv: "Ed25519" | "Ed448";
912
+ x: string;
913
+ alg?: "EdDSA" | undefined;
914
+ kid?: string | undefined;
915
+ ext?: boolean | undefined;
916
+ use?: "sig" | "enc" | undefined;
917
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
918
+ x5c?: string[] | undefined;
919
+ x5t?: string | undefined;
920
+ 'x5t#S256'?: string | undefined;
921
+ x5u?: string | undefined;
922
+ d?: string | undefined;
923
+ }, {
924
+ kty: "OKP";
925
+ crv: "Ed25519" | "Ed448";
926
+ x: string;
927
+ alg?: "EdDSA" | undefined;
928
+ kid?: string | undefined;
929
+ ext?: boolean | undefined;
930
+ use?: "sig" | "enc" | undefined;
931
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
932
+ x5c?: string[] | undefined;
933
+ x5t?: string | undefined;
934
+ 'x5t#S256'?: string | undefined;
935
+ x5u?: string | undefined;
936
+ d?: string | undefined;
937
+ }>, z.ZodObject<z.objectUtil.extendShape<{
938
+ kty: z.ZodString;
939
+ alg: z.ZodOptional<z.ZodString>;
940
+ kid: z.ZodOptional<z.ZodString>;
941
+ ext: z.ZodOptional<z.ZodBoolean>;
942
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
943
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
944
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
945
+ x5t: z.ZodOptional<z.ZodString>;
946
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
947
+ x5u: z.ZodOptional<z.ZodString>;
948
+ }, {
949
+ kty: z.ZodLiteral<"oct">;
950
+ alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
951
+ k: z.ZodString;
952
+ }>, "strip", z.ZodTypeAny, {
953
+ kty: "oct";
954
+ k: string;
955
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
956
+ kid?: string | undefined;
957
+ ext?: boolean | undefined;
958
+ use?: "sig" | "enc" | undefined;
959
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
960
+ x5c?: string[] | undefined;
961
+ x5t?: string | undefined;
962
+ 'x5t#S256'?: string | undefined;
963
+ x5u?: string | undefined;
964
+ }, {
965
+ kty: "oct";
966
+ k: string;
967
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
968
+ kid?: string | undefined;
969
+ ext?: boolean | undefined;
970
+ use?: "sig" | "enc" | undefined;
971
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
972
+ x5c?: string[] | undefined;
973
+ x5t?: string | undefined;
974
+ 'x5t#S256'?: string | undefined;
975
+ x5u?: string | undefined;
976
+ }>]>, {
977
+ kty: "RSA";
978
+ n: string;
979
+ e: string;
980
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
981
+ kid?: string | undefined;
982
+ ext?: boolean | undefined;
983
+ use?: "sig" | "enc" | undefined;
984
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
985
+ x5c?: string[] | undefined;
986
+ x5t?: string | undefined;
987
+ 'x5t#S256'?: string | undefined;
988
+ x5u?: string | undefined;
989
+ d?: string | undefined;
990
+ p?: string | undefined;
991
+ q?: string | undefined;
992
+ dp?: string | undefined;
993
+ dq?: string | undefined;
994
+ qi?: string | undefined;
995
+ oth?: [{
996
+ d?: string | undefined;
997
+ r?: string | undefined;
998
+ t?: string | undefined;
999
+ }, ...{
1000
+ d?: string | undefined;
1001
+ r?: string | undefined;
1002
+ t?: string | undefined;
1003
+ }[]] | undefined;
1004
+ } | {
1005
+ kty: "EC";
1006
+ crv: "P-256" | "P-384" | "P-521";
1007
+ x: string;
1008
+ y: string;
1009
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1010
+ kid?: string | undefined;
1011
+ ext?: boolean | undefined;
1012
+ use?: "sig" | "enc" | undefined;
1013
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1014
+ x5c?: string[] | undefined;
1015
+ x5t?: string | undefined;
1016
+ 'x5t#S256'?: string | undefined;
1017
+ x5u?: string | undefined;
1018
+ d?: string | undefined;
1019
+ } | {
1020
+ kty: "EC";
1021
+ crv: "secp256k1";
1022
+ x: string;
1023
+ y: string;
1024
+ alg?: "ES256K" | undefined;
1025
+ kid?: string | undefined;
1026
+ ext?: boolean | undefined;
1027
+ use?: "sig" | "enc" | undefined;
1028
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1029
+ x5c?: string[] | undefined;
1030
+ x5t?: string | undefined;
1031
+ 'x5t#S256'?: string | undefined;
1032
+ x5u?: string | undefined;
1033
+ d?: string | undefined;
1034
+ } | {
1035
+ kty: "OKP";
1036
+ crv: "Ed25519" | "Ed448";
1037
+ x: string;
1038
+ alg?: "EdDSA" | undefined;
1039
+ kid?: string | undefined;
1040
+ ext?: boolean | undefined;
1041
+ use?: "sig" | "enc" | undefined;
1042
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1043
+ x5c?: string[] | undefined;
1044
+ x5t?: string | undefined;
1045
+ 'x5t#S256'?: string | undefined;
1046
+ x5u?: string | undefined;
1047
+ d?: string | undefined;
1048
+ } | {
1049
+ kty: "oct";
1050
+ k: string;
1051
+ alg?: "HS256" | "HS384" | "HS512" | 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
+ } | {
1061
+ kty: string;
1062
+ alg?: string | undefined;
1063
+ kid?: string | undefined;
1064
+ ext?: boolean | undefined;
1065
+ use?: "sig" | "enc" | undefined;
1066
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1067
+ x5c?: string[] | undefined;
1068
+ x5t?: string | undefined;
1069
+ 'x5t#S256'?: string | undefined;
1070
+ x5u?: string | undefined;
1071
+ }, {
1072
+ kty: "RSA";
1073
+ n: string;
1074
+ e: string;
1075
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1076
+ kid?: string | undefined;
1077
+ ext?: boolean | undefined;
1078
+ use?: "sig" | "enc" | undefined;
1079
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1080
+ x5c?: string[] | undefined;
1081
+ x5t?: string | undefined;
1082
+ 'x5t#S256'?: string | undefined;
1083
+ x5u?: string | undefined;
1084
+ d?: string | undefined;
1085
+ p?: string | undefined;
1086
+ q?: string | undefined;
1087
+ dp?: string | undefined;
1088
+ dq?: string | undefined;
1089
+ qi?: string | undefined;
1090
+ oth?: [{
1091
+ d?: string | undefined;
1092
+ r?: string | undefined;
1093
+ t?: string | undefined;
1094
+ }, ...{
1095
+ d?: string | undefined;
1096
+ r?: string | undefined;
1097
+ t?: string | undefined;
1098
+ }[]] | undefined;
1099
+ } | {
1100
+ kty: "EC";
1101
+ crv: "P-256" | "P-384" | "P-521";
1102
+ x: string;
1103
+ y: string;
1104
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1105
+ kid?: string | undefined;
1106
+ ext?: boolean | undefined;
1107
+ use?: "sig" | "enc" | undefined;
1108
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1109
+ x5c?: string[] | undefined;
1110
+ x5t?: string | undefined;
1111
+ 'x5t#S256'?: string | undefined;
1112
+ x5u?: string | undefined;
1113
+ d?: string | undefined;
1114
+ } | {
1115
+ kty: "EC";
1116
+ crv: "secp256k1";
1117
+ x: string;
1118
+ y: string;
1119
+ alg?: "ES256K" | undefined;
1120
+ kid?: string | undefined;
1121
+ ext?: boolean | undefined;
1122
+ use?: "sig" | "enc" | undefined;
1123
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1124
+ x5c?: string[] | undefined;
1125
+ x5t?: string | undefined;
1126
+ 'x5t#S256'?: string | undefined;
1127
+ x5u?: string | undefined;
1128
+ d?: string | undefined;
1129
+ } | {
1130
+ kty: "OKP";
1131
+ crv: "Ed25519" | "Ed448";
1132
+ x: string;
1133
+ alg?: "EdDSA" | undefined;
1134
+ kid?: string | undefined;
1135
+ ext?: boolean | undefined;
1136
+ use?: "sig" | "enc" | undefined;
1137
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1138
+ x5c?: string[] | undefined;
1139
+ x5t?: string | undefined;
1140
+ 'x5t#S256'?: string | undefined;
1141
+ x5u?: string | undefined;
1142
+ d?: string | undefined;
1143
+ } | {
1144
+ kty: "oct";
1145
+ k: string;
1146
+ alg?: "HS256" | "HS384" | "HS512" | 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
+ } | {
1156
+ kty: string;
1157
+ alg?: string | undefined;
1158
+ kid?: string | undefined;
1159
+ ext?: boolean | undefined;
1160
+ use?: "sig" | "enc" | undefined;
1161
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1162
+ x5c?: string[] | undefined;
1163
+ x5t?: string | undefined;
1164
+ 'x5t#S256'?: string | undefined;
1165
+ x5u?: string | undefined;
1166
+ }>, {
1167
+ kty: "RSA";
1168
+ n: string;
1169
+ e: string;
1170
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1171
+ kid?: string | undefined;
1172
+ ext?: boolean | undefined;
1173
+ use?: "sig" | "enc" | undefined;
1174
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1175
+ x5c?: string[] | undefined;
1176
+ x5t?: string | undefined;
1177
+ 'x5t#S256'?: string | undefined;
1178
+ x5u?: string | undefined;
1179
+ d?: string | undefined;
1180
+ p?: string | undefined;
1181
+ q?: string | undefined;
1182
+ dp?: string | undefined;
1183
+ dq?: string | undefined;
1184
+ qi?: string | undefined;
1185
+ oth?: [{
1186
+ d?: string | undefined;
1187
+ r?: string | undefined;
1188
+ t?: string | undefined;
1189
+ }, ...{
1190
+ d?: string | undefined;
1191
+ r?: string | undefined;
1192
+ t?: string | undefined;
1193
+ }[]] | undefined;
1194
+ } | {
1195
+ kty: "EC";
1196
+ crv: "P-256" | "P-384" | "P-521";
1197
+ x: string;
1198
+ y: string;
1199
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1200
+ kid?: string | undefined;
1201
+ ext?: boolean | undefined;
1202
+ use?: "sig" | "enc" | undefined;
1203
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1204
+ x5c?: string[] | undefined;
1205
+ x5t?: string | undefined;
1206
+ 'x5t#S256'?: string | undefined;
1207
+ x5u?: string | undefined;
1208
+ d?: string | undefined;
1209
+ } | {
1210
+ kty: "EC";
1211
+ crv: "secp256k1";
1212
+ x: string;
1213
+ y: string;
1214
+ alg?: "ES256K" | undefined;
1215
+ kid?: string | undefined;
1216
+ ext?: boolean | undefined;
1217
+ use?: "sig" | "enc" | undefined;
1218
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1219
+ x5c?: string[] | undefined;
1220
+ x5t?: string | undefined;
1221
+ 'x5t#S256'?: string | undefined;
1222
+ x5u?: string | undefined;
1223
+ d?: string | undefined;
1224
+ } | {
1225
+ kty: "OKP";
1226
+ crv: "Ed25519" | "Ed448";
1227
+ x: string;
1228
+ alg?: "EdDSA" | undefined;
1229
+ kid?: string | undefined;
1230
+ ext?: boolean | undefined;
1231
+ use?: "sig" | "enc" | undefined;
1232
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1233
+ x5c?: string[] | undefined;
1234
+ x5t?: string | undefined;
1235
+ 'x5t#S256'?: string | undefined;
1236
+ x5u?: string | undefined;
1237
+ d?: string | undefined;
1238
+ } | {
1239
+ kty: "oct";
1240
+ k: string;
1241
+ alg?: "HS256" | "HS384" | "HS512" | 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
+ } | {
1251
+ kty: string;
1252
+ alg?: string | undefined;
1253
+ kid?: string | undefined;
1254
+ ext?: boolean | undefined;
1255
+ use?: "sig" | "enc" | undefined;
1256
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1257
+ x5c?: string[] | undefined;
1258
+ x5t?: string | undefined;
1259
+ 'x5t#S256'?: string | undefined;
1260
+ x5u?: string | undefined;
1261
+ }, {
1262
+ kty: "RSA";
1263
+ n: string;
1264
+ e: string;
1265
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1266
+ kid?: string | undefined;
1267
+ ext?: boolean | undefined;
1268
+ use?: "sig" | "enc" | undefined;
1269
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1270
+ x5c?: string[] | undefined;
1271
+ x5t?: string | undefined;
1272
+ 'x5t#S256'?: string | undefined;
1273
+ x5u?: string | undefined;
1274
+ d?: string | undefined;
1275
+ p?: string | undefined;
1276
+ q?: string | undefined;
1277
+ dp?: string | undefined;
1278
+ dq?: string | undefined;
1279
+ qi?: string | undefined;
1280
+ oth?: [{
1281
+ d?: string | undefined;
1282
+ r?: string | undefined;
1283
+ t?: string | undefined;
1284
+ }, ...{
1285
+ d?: string | undefined;
1286
+ r?: string | undefined;
1287
+ t?: string | undefined;
1288
+ }[]] | undefined;
1289
+ } | {
1290
+ kty: "EC";
1291
+ crv: "P-256" | "P-384" | "P-521";
1292
+ x: string;
1293
+ y: string;
1294
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1295
+ kid?: string | undefined;
1296
+ ext?: boolean | undefined;
1297
+ use?: "sig" | "enc" | undefined;
1298
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1299
+ x5c?: string[] | undefined;
1300
+ x5t?: string | undefined;
1301
+ 'x5t#S256'?: string | undefined;
1302
+ x5u?: string | undefined;
1303
+ d?: string | undefined;
1304
+ } | {
1305
+ kty: "EC";
1306
+ crv: "secp256k1";
1307
+ x: string;
1308
+ y: string;
1309
+ alg?: "ES256K" | undefined;
1310
+ kid?: string | undefined;
1311
+ ext?: boolean | undefined;
1312
+ use?: "sig" | "enc" | undefined;
1313
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1314
+ x5c?: string[] | undefined;
1315
+ x5t?: string | undefined;
1316
+ 'x5t#S256'?: string | undefined;
1317
+ x5u?: string | undefined;
1318
+ d?: string | undefined;
1319
+ } | {
1320
+ kty: "OKP";
1321
+ crv: "Ed25519" | "Ed448";
1322
+ x: string;
1323
+ alg?: "EdDSA" | undefined;
1324
+ kid?: string | undefined;
1325
+ ext?: boolean | undefined;
1326
+ use?: "sig" | "enc" | undefined;
1327
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1328
+ x5c?: string[] | undefined;
1329
+ x5t?: string | undefined;
1330
+ 'x5t#S256'?: string | undefined;
1331
+ x5u?: string | undefined;
1332
+ d?: string | undefined;
1333
+ } | {
1334
+ kty: "oct";
1335
+ k: string;
1336
+ alg?: "HS256" | "HS384" | "HS512" | 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
+ } | {
1346
+ kty: string;
1347
+ alg?: string | undefined;
1348
+ kid?: string | undefined;
1349
+ ext?: boolean | undefined;
1350
+ use?: "sig" | "enc" | undefined;
1351
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1352
+ x5c?: string[] | undefined;
1353
+ x5t?: string | undefined;
1354
+ 'x5t#S256'?: string | undefined;
1355
+ x5u?: string | undefined;
1356
+ }>;
1357
+ export declare const jwkPubSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1358
+ kty: z.ZodString;
1359
+ alg: z.ZodOptional<z.ZodString>;
1360
+ kid: z.ZodOptional<z.ZodString>;
1361
+ ext: z.ZodOptional<z.ZodBoolean>;
1362
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1363
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1364
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1365
+ x5t: z.ZodOptional<z.ZodString>;
1366
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
1367
+ x5u: z.ZodOptional<z.ZodString>;
1368
+ }, {
1369
+ kty: z.ZodEffects<z.ZodString, string, string>;
1370
+ }>, "strip", z.ZodTypeAny, {
1371
+ kty: string;
1372
+ alg?: string | undefined;
1373
+ kid?: string | undefined;
1374
+ ext?: boolean | undefined;
1375
+ use?: "sig" | "enc" | undefined;
1376
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1377
+ x5c?: string[] | undefined;
1378
+ x5t?: string | undefined;
1379
+ 'x5t#S256'?: string | undefined;
1380
+ x5u?: string | undefined;
1381
+ }, {
1382
+ kty: string;
1383
+ alg?: string | undefined;
1384
+ kid?: string | undefined;
1385
+ ext?: boolean | undefined;
1386
+ use?: "sig" | "enc" | undefined;
1387
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1388
+ x5c?: string[] | undefined;
1389
+ x5t?: string | undefined;
1390
+ 'x5t#S256'?: string | undefined;
1391
+ x5u?: string | undefined;
1392
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1393
+ kty: z.ZodString;
1394
+ alg: z.ZodOptional<z.ZodString>;
1395
+ kid: z.ZodOptional<z.ZodString>;
1396
+ ext: z.ZodOptional<z.ZodBoolean>;
1397
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1398
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1399
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1400
+ x5t: z.ZodOptional<z.ZodString>;
1401
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
1402
+ x5u: z.ZodOptional<z.ZodString>;
1403
+ }, {
1404
+ kty: z.ZodLiteral<"RSA">;
1405
+ alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
1406
+ n: z.ZodString;
1407
+ e: z.ZodString;
1408
+ d: z.ZodOptional<z.ZodString>;
1409
+ p: z.ZodOptional<z.ZodString>;
1410
+ q: z.ZodOptional<z.ZodString>;
1411
+ dp: z.ZodOptional<z.ZodString>;
1412
+ dq: z.ZodOptional<z.ZodString>;
1413
+ qi: z.ZodOptional<z.ZodString>;
1414
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1415
+ r: z.ZodOptional<z.ZodString>;
1416
+ d: z.ZodOptional<z.ZodString>;
1417
+ t: z.ZodOptional<z.ZodString>;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ d?: string | undefined;
1420
+ r?: string | undefined;
1421
+ t?: string | undefined;
1422
+ }, {
1423
+ d?: string | undefined;
1424
+ r?: string | undefined;
1425
+ t?: string | undefined;
1426
+ }>, "atleastone">>;
1427
+ }>, "strip", z.ZodTypeAny, {
1428
+ kty: "RSA";
1429
+ n: string;
1430
+ e: string;
1431
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | 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
+ p?: string | undefined;
1442
+ q?: string | undefined;
1443
+ dp?: string | undefined;
1444
+ dq?: string | undefined;
1445
+ qi?: string | undefined;
1446
+ oth?: [{
1447
+ d?: string | undefined;
1448
+ r?: string | undefined;
1449
+ t?: string | undefined;
1450
+ }, ...{
1451
+ d?: string | undefined;
1452
+ r?: string | undefined;
1453
+ t?: string | undefined;
1454
+ }[]] | undefined;
1455
+ }, {
1456
+ kty: "RSA";
1457
+ n: string;
1458
+ e: string;
1459
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1460
+ kid?: string | undefined;
1461
+ ext?: boolean | undefined;
1462
+ use?: "sig" | "enc" | undefined;
1463
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1464
+ x5c?: string[] | undefined;
1465
+ x5t?: string | undefined;
1466
+ 'x5t#S256'?: string | undefined;
1467
+ x5u?: string | undefined;
1468
+ d?: string | undefined;
1469
+ p?: string | undefined;
1470
+ q?: string | undefined;
1471
+ dp?: string | undefined;
1472
+ dq?: string | undefined;
1473
+ qi?: string | undefined;
1474
+ oth?: [{
1475
+ d?: string | undefined;
1476
+ r?: string | undefined;
1477
+ t?: string | undefined;
1478
+ }, ...{
1479
+ d?: string | undefined;
1480
+ r?: string | undefined;
1481
+ t?: string | undefined;
1482
+ }[]] | undefined;
1483
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1484
+ kty: z.ZodString;
1485
+ alg: z.ZodOptional<z.ZodString>;
1486
+ kid: z.ZodOptional<z.ZodString>;
1487
+ ext: z.ZodOptional<z.ZodBoolean>;
1488
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1489
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1490
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1491
+ x5t: z.ZodOptional<z.ZodString>;
1492
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
1493
+ x5u: z.ZodOptional<z.ZodString>;
1494
+ }, {
1495
+ kty: z.ZodLiteral<"EC">;
1496
+ alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
1497
+ crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
1498
+ x: z.ZodString;
1499
+ y: z.ZodString;
1500
+ d: z.ZodOptional<z.ZodString>;
1501
+ }>, "strip", z.ZodTypeAny, {
1502
+ kty: "EC";
1503
+ crv: "P-256" | "P-384" | "P-521";
1504
+ x: string;
1505
+ y: string;
1506
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1507
+ kid?: string | undefined;
1508
+ ext?: boolean | undefined;
1509
+ use?: "sig" | "enc" | undefined;
1510
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1511
+ x5c?: string[] | undefined;
1512
+ x5t?: string | undefined;
1513
+ 'x5t#S256'?: string | undefined;
1514
+ x5u?: string | undefined;
1515
+ d?: string | undefined;
1516
+ }, {
1517
+ kty: "EC";
1518
+ crv: "P-256" | "P-384" | "P-521";
1519
+ x: string;
1520
+ y: string;
1521
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1522
+ kid?: string | undefined;
1523
+ ext?: boolean | undefined;
1524
+ use?: "sig" | "enc" | undefined;
1525
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1526
+ x5c?: string[] | undefined;
1527
+ x5t?: string | undefined;
1528
+ 'x5t#S256'?: string | undefined;
1529
+ x5u?: string | undefined;
1530
+ d?: string | undefined;
1531
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1532
+ kty: z.ZodString;
1533
+ alg: z.ZodOptional<z.ZodString>;
1534
+ kid: z.ZodOptional<z.ZodString>;
1535
+ ext: z.ZodOptional<z.ZodBoolean>;
1536
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1537
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1538
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1539
+ x5t: z.ZodOptional<z.ZodString>;
1540
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
1541
+ x5u: z.ZodOptional<z.ZodString>;
1542
+ }, {
1543
+ kty: z.ZodLiteral<"EC">;
1544
+ alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
1545
+ crv: z.ZodEnum<["secp256k1"]>;
1546
+ x: z.ZodString;
1547
+ y: z.ZodString;
1548
+ d: z.ZodOptional<z.ZodString>;
1549
+ }>, "strip", z.ZodTypeAny, {
1550
+ kty: "EC";
1551
+ crv: "secp256k1";
1552
+ x: string;
1553
+ y: string;
1554
+ alg?: "ES256K" | undefined;
1555
+ kid?: string | undefined;
1556
+ ext?: boolean | undefined;
1557
+ use?: "sig" | "enc" | undefined;
1558
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1559
+ x5c?: string[] | undefined;
1560
+ x5t?: string | undefined;
1561
+ 'x5t#S256'?: string | undefined;
1562
+ x5u?: string | undefined;
1563
+ d?: string | undefined;
1564
+ }, {
1565
+ kty: "EC";
1566
+ crv: "secp256k1";
1567
+ x: string;
1568
+ y: string;
1569
+ alg?: "ES256K" | undefined;
1570
+ kid?: string | undefined;
1571
+ ext?: boolean | undefined;
1572
+ use?: "sig" | "enc" | undefined;
1573
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1574
+ x5c?: string[] | undefined;
1575
+ x5t?: string | undefined;
1576
+ 'x5t#S256'?: string | undefined;
1577
+ x5u?: string | undefined;
1578
+ d?: string | undefined;
1579
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1580
+ kty: z.ZodString;
1581
+ alg: z.ZodOptional<z.ZodString>;
1582
+ kid: z.ZodOptional<z.ZodString>;
1583
+ ext: z.ZodOptional<z.ZodBoolean>;
1584
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1585
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1586
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1587
+ x5t: z.ZodOptional<z.ZodString>;
1588
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
1589
+ x5u: z.ZodOptional<z.ZodString>;
1590
+ }, {
1591
+ kty: z.ZodLiteral<"OKP">;
1592
+ alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
1593
+ crv: z.ZodEnum<["Ed25519", "Ed448"]>;
1594
+ x: z.ZodString;
1595
+ d: z.ZodOptional<z.ZodString>;
1596
+ }>, "strip", z.ZodTypeAny, {
1597
+ kty: "OKP";
1598
+ crv: "Ed25519" | "Ed448";
1599
+ x: string;
1600
+ alg?: "EdDSA" | undefined;
1601
+ kid?: string | undefined;
1602
+ ext?: boolean | undefined;
1603
+ use?: "sig" | "enc" | undefined;
1604
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1605
+ x5c?: string[] | undefined;
1606
+ x5t?: string | undefined;
1607
+ 'x5t#S256'?: string | undefined;
1608
+ x5u?: string | undefined;
1609
+ d?: string | undefined;
1610
+ }, {
1611
+ kty: "OKP";
1612
+ crv: "Ed25519" | "Ed448";
1613
+ x: string;
1614
+ alg?: "EdDSA" | undefined;
1615
+ kid?: string | undefined;
1616
+ ext?: boolean | undefined;
1617
+ use?: "sig" | "enc" | undefined;
1618
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1619
+ x5c?: string[] | undefined;
1620
+ x5t?: string | undefined;
1621
+ 'x5t#S256'?: string | undefined;
1622
+ x5u?: string | undefined;
1623
+ d?: string | undefined;
1624
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1625
+ kty: z.ZodString;
1626
+ alg: z.ZodOptional<z.ZodString>;
1627
+ kid: z.ZodOptional<z.ZodString>;
1628
+ ext: z.ZodOptional<z.ZodBoolean>;
1629
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1630
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1631
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1632
+ x5t: z.ZodOptional<z.ZodString>;
1633
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
1634
+ x5u: z.ZodOptional<z.ZodString>;
1635
+ }, {
1636
+ kty: z.ZodLiteral<"oct">;
1637
+ alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
1638
+ k: z.ZodString;
1639
+ }>, "strip", z.ZodTypeAny, {
1640
+ kty: "oct";
1641
+ k: string;
1642
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1643
+ kid?: string | undefined;
1644
+ ext?: boolean | undefined;
1645
+ use?: "sig" | "enc" | undefined;
1646
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1647
+ x5c?: string[] | undefined;
1648
+ x5t?: string | undefined;
1649
+ 'x5t#S256'?: string | undefined;
1650
+ x5u?: string | undefined;
1651
+ }, {
1652
+ kty: "oct";
1653
+ k: string;
1654
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1655
+ kid?: string | undefined;
1656
+ ext?: boolean | undefined;
1657
+ use?: "sig" | "enc" | undefined;
1658
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1659
+ x5c?: string[] | undefined;
1660
+ x5t?: string | undefined;
1661
+ 'x5t#S256'?: string | undefined;
1662
+ x5u?: string | undefined;
1663
+ }>]>, {
1664
+ kty: "RSA";
1665
+ n: string;
1666
+ e: string;
1667
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1668
+ kid?: string | undefined;
1669
+ ext?: boolean | undefined;
1670
+ use?: "sig" | "enc" | undefined;
1671
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1672
+ x5c?: string[] | undefined;
1673
+ x5t?: string | undefined;
1674
+ 'x5t#S256'?: string | undefined;
1675
+ x5u?: string | undefined;
1676
+ d?: string | undefined;
1677
+ p?: string | undefined;
1678
+ q?: string | undefined;
1679
+ dp?: string | undefined;
1680
+ dq?: string | undefined;
1681
+ qi?: string | undefined;
1682
+ oth?: [{
1683
+ d?: string | undefined;
1684
+ r?: string | undefined;
1685
+ t?: string | undefined;
1686
+ }, ...{
1687
+ d?: string | undefined;
1688
+ r?: string | undefined;
1689
+ t?: string | undefined;
1690
+ }[]] | undefined;
1691
+ } | {
1692
+ kty: "EC";
1693
+ crv: "P-256" | "P-384" | "P-521";
1694
+ x: string;
1695
+ y: string;
1696
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1697
+ kid?: string | undefined;
1698
+ ext?: boolean | undefined;
1699
+ use?: "sig" | "enc" | undefined;
1700
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1701
+ x5c?: string[] | undefined;
1702
+ x5t?: string | undefined;
1703
+ 'x5t#S256'?: string | undefined;
1704
+ x5u?: string | undefined;
1705
+ d?: string | undefined;
1706
+ } | {
1707
+ kty: "EC";
1708
+ crv: "secp256k1";
1709
+ x: string;
1710
+ y: string;
1711
+ alg?: "ES256K" | undefined;
1712
+ kid?: string | undefined;
1713
+ ext?: boolean | undefined;
1714
+ use?: "sig" | "enc" | undefined;
1715
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1716
+ x5c?: string[] | undefined;
1717
+ x5t?: string | undefined;
1718
+ 'x5t#S256'?: string | undefined;
1719
+ x5u?: string | undefined;
1720
+ d?: string | undefined;
1721
+ } | {
1722
+ kty: "OKP";
1723
+ crv: "Ed25519" | "Ed448";
1724
+ x: string;
1725
+ alg?: "EdDSA" | undefined;
1726
+ kid?: string | undefined;
1727
+ ext?: boolean | undefined;
1728
+ use?: "sig" | "enc" | undefined;
1729
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1730
+ x5c?: string[] | undefined;
1731
+ x5t?: string | undefined;
1732
+ 'x5t#S256'?: string | undefined;
1733
+ x5u?: string | undefined;
1734
+ d?: string | undefined;
1735
+ } | {
1736
+ kty: "oct";
1737
+ k: string;
1738
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1739
+ kid?: string | undefined;
1740
+ ext?: boolean | undefined;
1741
+ use?: "sig" | "enc" | undefined;
1742
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1743
+ x5c?: string[] | undefined;
1744
+ x5t?: string | undefined;
1745
+ 'x5t#S256'?: string | undefined;
1746
+ x5u?: string | undefined;
1747
+ } | {
1748
+ kty: string;
1749
+ alg?: string | undefined;
1750
+ kid?: string | undefined;
1751
+ ext?: boolean | undefined;
1752
+ use?: "sig" | "enc" | undefined;
1753
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1754
+ x5c?: string[] | undefined;
1755
+ x5t?: string | undefined;
1756
+ 'x5t#S256'?: string | undefined;
1757
+ x5u?: string | undefined;
1758
+ }, {
1759
+ kty: "RSA";
1760
+ n: string;
1761
+ e: string;
1762
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1763
+ kid?: string | undefined;
1764
+ ext?: boolean | undefined;
1765
+ use?: "sig" | "enc" | undefined;
1766
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1767
+ x5c?: string[] | undefined;
1768
+ x5t?: string | undefined;
1769
+ 'x5t#S256'?: string | undefined;
1770
+ x5u?: string | undefined;
1771
+ d?: string | undefined;
1772
+ p?: string | undefined;
1773
+ q?: string | undefined;
1774
+ dp?: string | undefined;
1775
+ dq?: string | undefined;
1776
+ qi?: string | undefined;
1777
+ oth?: [{
1778
+ d?: string | undefined;
1779
+ r?: string | undefined;
1780
+ t?: string | undefined;
1781
+ }, ...{
1782
+ d?: string | undefined;
1783
+ r?: string | undefined;
1784
+ t?: string | undefined;
1785
+ }[]] | undefined;
1786
+ } | {
1787
+ kty: "EC";
1788
+ crv: "P-256" | "P-384" | "P-521";
1789
+ x: string;
1790
+ y: string;
1791
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1792
+ kid?: string | undefined;
1793
+ ext?: boolean | undefined;
1794
+ use?: "sig" | "enc" | undefined;
1795
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1796
+ x5c?: string[] | undefined;
1797
+ x5t?: string | undefined;
1798
+ 'x5t#S256'?: string | undefined;
1799
+ x5u?: string | undefined;
1800
+ d?: string | undefined;
1801
+ } | {
1802
+ kty: "EC";
1803
+ crv: "secp256k1";
1804
+ x: string;
1805
+ y: string;
1806
+ alg?: "ES256K" | undefined;
1807
+ kid?: string | undefined;
1808
+ ext?: boolean | undefined;
1809
+ use?: "sig" | "enc" | undefined;
1810
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1811
+ x5c?: string[] | undefined;
1812
+ x5t?: string | undefined;
1813
+ 'x5t#S256'?: string | undefined;
1814
+ x5u?: string | undefined;
1815
+ d?: string | undefined;
1816
+ } | {
1817
+ kty: "OKP";
1818
+ crv: "Ed25519" | "Ed448";
1819
+ x: string;
1820
+ alg?: "EdDSA" | undefined;
1821
+ kid?: string | undefined;
1822
+ ext?: boolean | undefined;
1823
+ use?: "sig" | "enc" | undefined;
1824
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1825
+ x5c?: string[] | undefined;
1826
+ x5t?: string | undefined;
1827
+ 'x5t#S256'?: string | undefined;
1828
+ x5u?: string | undefined;
1829
+ d?: string | undefined;
1830
+ } | {
1831
+ kty: "oct";
1832
+ k: string;
1833
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1834
+ kid?: string | undefined;
1835
+ ext?: boolean | undefined;
1836
+ use?: "sig" | "enc" | undefined;
1837
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1838
+ x5c?: string[] | undefined;
1839
+ x5t?: string | undefined;
1840
+ 'x5t#S256'?: string | undefined;
1841
+ x5u?: string | undefined;
1842
+ } | {
1843
+ kty: string;
1844
+ alg?: string | undefined;
1845
+ kid?: string | undefined;
1846
+ ext?: boolean | undefined;
1847
+ use?: "sig" | "enc" | undefined;
1848
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1849
+ x5c?: string[] | undefined;
1850
+ x5t?: string | undefined;
1851
+ 'x5t#S256'?: string | undefined;
1852
+ x5u?: string | undefined;
1853
+ }>, {
1854
+ kty: "RSA";
1855
+ n: string;
1856
+ e: string;
1857
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1858
+ kid?: string | undefined;
1859
+ ext?: boolean | undefined;
1860
+ use?: "sig" | "enc" | undefined;
1861
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1862
+ x5c?: string[] | undefined;
1863
+ x5t?: string | undefined;
1864
+ 'x5t#S256'?: string | undefined;
1865
+ x5u?: string | undefined;
1866
+ d?: string | undefined;
1867
+ p?: string | undefined;
1868
+ q?: string | undefined;
1869
+ dp?: string | undefined;
1870
+ dq?: string | undefined;
1871
+ qi?: string | undefined;
1872
+ oth?: [{
1873
+ d?: string | undefined;
1874
+ r?: string | undefined;
1875
+ t?: string | undefined;
1876
+ }, ...{
1877
+ d?: string | undefined;
1878
+ r?: string | undefined;
1879
+ t?: string | undefined;
1880
+ }[]] | undefined;
1881
+ } | {
1882
+ kty: "EC";
1883
+ crv: "P-256" | "P-384" | "P-521";
1884
+ x: string;
1885
+ y: string;
1886
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1887
+ kid?: string | undefined;
1888
+ ext?: boolean | undefined;
1889
+ use?: "sig" | "enc" | undefined;
1890
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1891
+ x5c?: string[] | undefined;
1892
+ x5t?: string | undefined;
1893
+ 'x5t#S256'?: string | undefined;
1894
+ x5u?: string | undefined;
1895
+ d?: string | undefined;
1896
+ } | {
1897
+ kty: "EC";
1898
+ crv: "secp256k1";
1899
+ x: string;
1900
+ y: string;
1901
+ alg?: "ES256K" | undefined;
1902
+ kid?: string | undefined;
1903
+ ext?: boolean | undefined;
1904
+ use?: "sig" | "enc" | undefined;
1905
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1906
+ x5c?: string[] | undefined;
1907
+ x5t?: string | undefined;
1908
+ 'x5t#S256'?: string | undefined;
1909
+ x5u?: string | undefined;
1910
+ d?: string | undefined;
1911
+ } | {
1912
+ kty: "OKP";
1913
+ crv: "Ed25519" | "Ed448";
1914
+ x: string;
1915
+ alg?: "EdDSA" | undefined;
1916
+ kid?: string | undefined;
1917
+ ext?: boolean | undefined;
1918
+ use?: "sig" | "enc" | undefined;
1919
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1920
+ x5c?: string[] | undefined;
1921
+ x5t?: string | undefined;
1922
+ 'x5t#S256'?: string | undefined;
1923
+ x5u?: string | undefined;
1924
+ d?: string | undefined;
1925
+ } | {
1926
+ kty: "oct";
1927
+ k: string;
1928
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1929
+ kid?: string | undefined;
1930
+ ext?: boolean | undefined;
1931
+ use?: "sig" | "enc" | undefined;
1932
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1933
+ x5c?: string[] | undefined;
1934
+ x5t?: string | undefined;
1935
+ 'x5t#S256'?: string | undefined;
1936
+ x5u?: string | undefined;
1937
+ } | {
1938
+ kty: string;
1939
+ alg?: string | undefined;
1940
+ kid?: string | undefined;
1941
+ ext?: boolean | undefined;
1942
+ use?: "sig" | "enc" | undefined;
1943
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1944
+ x5c?: string[] | undefined;
1945
+ x5t?: string | undefined;
1946
+ 'x5t#S256'?: string | undefined;
1947
+ x5u?: string | undefined;
1948
+ }, {
1949
+ kty: "RSA";
1950
+ n: string;
1951
+ e: string;
1952
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1953
+ kid?: string | undefined;
1954
+ ext?: boolean | undefined;
1955
+ use?: "sig" | "enc" | undefined;
1956
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1957
+ x5c?: string[] | undefined;
1958
+ x5t?: string | undefined;
1959
+ 'x5t#S256'?: string | undefined;
1960
+ x5u?: string | undefined;
1961
+ d?: string | undefined;
1962
+ p?: string | undefined;
1963
+ q?: string | undefined;
1964
+ dp?: string | undefined;
1965
+ dq?: string | undefined;
1966
+ qi?: string | undefined;
1967
+ oth?: [{
1968
+ d?: string | undefined;
1969
+ r?: string | undefined;
1970
+ t?: string | undefined;
1971
+ }, ...{
1972
+ d?: string | undefined;
1973
+ r?: string | undefined;
1974
+ t?: string | undefined;
1975
+ }[]] | undefined;
1976
+ } | {
1977
+ kty: "EC";
1978
+ crv: "P-256" | "P-384" | "P-521";
1979
+ x: string;
1980
+ y: string;
1981
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1982
+ kid?: string | undefined;
1983
+ ext?: boolean | undefined;
1984
+ use?: "sig" | "enc" | undefined;
1985
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1986
+ x5c?: string[] | undefined;
1987
+ x5t?: string | undefined;
1988
+ 'x5t#S256'?: string | undefined;
1989
+ x5u?: string | undefined;
1990
+ d?: string | undefined;
1991
+ } | {
1992
+ kty: "EC";
1993
+ crv: "secp256k1";
1994
+ x: string;
1995
+ y: string;
1996
+ alg?: "ES256K" | undefined;
1997
+ kid?: string | undefined;
1998
+ ext?: boolean | undefined;
1999
+ use?: "sig" | "enc" | undefined;
2000
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2001
+ x5c?: string[] | undefined;
2002
+ x5t?: string | undefined;
2003
+ 'x5t#S256'?: string | undefined;
2004
+ x5u?: string | undefined;
2005
+ d?: string | undefined;
2006
+ } | {
2007
+ kty: "OKP";
2008
+ crv: "Ed25519" | "Ed448";
2009
+ x: string;
2010
+ alg?: "EdDSA" | undefined;
2011
+ kid?: string | undefined;
2012
+ ext?: boolean | undefined;
2013
+ use?: "sig" | "enc" | undefined;
2014
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2015
+ x5c?: string[] | undefined;
2016
+ x5t?: string | undefined;
2017
+ 'x5t#S256'?: string | undefined;
2018
+ x5u?: string | undefined;
2019
+ d?: string | undefined;
2020
+ } | {
2021
+ kty: "oct";
2022
+ k: string;
2023
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2024
+ kid?: string | undefined;
2025
+ ext?: boolean | undefined;
2026
+ use?: "sig" | "enc" | undefined;
2027
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2028
+ x5c?: string[] | undefined;
2029
+ x5t?: string | undefined;
2030
+ 'x5t#S256'?: string | undefined;
2031
+ x5u?: string | undefined;
2032
+ } | {
2033
+ kty: string;
2034
+ alg?: string | undefined;
2035
+ kid?: string | undefined;
2036
+ ext?: boolean | undefined;
2037
+ use?: "sig" | "enc" | undefined;
2038
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2039
+ x5c?: string[] | undefined;
2040
+ x5t?: string | undefined;
2041
+ 'x5t#S256'?: string | undefined;
2042
+ x5u?: string | undefined;
2043
+ }>, {
2044
+ kty: "RSA";
2045
+ n: string;
2046
+ e: string;
2047
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2048
+ kid?: string | undefined;
2049
+ ext?: boolean | undefined;
2050
+ use?: "sig" | "enc" | undefined;
2051
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2052
+ x5c?: string[] | undefined;
2053
+ x5t?: string | undefined;
2054
+ 'x5t#S256'?: string | undefined;
2055
+ x5u?: string | undefined;
2056
+ d?: string | undefined;
2057
+ p?: string | undefined;
2058
+ q?: string | undefined;
2059
+ dp?: string | undefined;
2060
+ dq?: string | undefined;
2061
+ qi?: string | undefined;
2062
+ oth?: [{
2063
+ d?: string | undefined;
2064
+ r?: string | undefined;
2065
+ t?: string | undefined;
2066
+ }, ...{
2067
+ d?: string | undefined;
2068
+ r?: string | undefined;
2069
+ t?: string | undefined;
2070
+ }[]] | undefined;
2071
+ } | {
2072
+ kty: "EC";
2073
+ crv: "P-256" | "P-384" | "P-521";
2074
+ x: string;
2075
+ y: string;
2076
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2077
+ kid?: string | undefined;
2078
+ ext?: boolean | undefined;
2079
+ use?: "sig" | "enc" | undefined;
2080
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2081
+ x5c?: string[] | undefined;
2082
+ x5t?: string | undefined;
2083
+ 'x5t#S256'?: string | undefined;
2084
+ x5u?: string | undefined;
2085
+ d?: string | undefined;
2086
+ } | {
2087
+ kty: "EC";
2088
+ crv: "secp256k1";
2089
+ x: string;
2090
+ y: string;
2091
+ alg?: "ES256K" | undefined;
2092
+ kid?: string | undefined;
2093
+ ext?: boolean | undefined;
2094
+ use?: "sig" | "enc" | undefined;
2095
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2096
+ x5c?: string[] | undefined;
2097
+ x5t?: string | undefined;
2098
+ 'x5t#S256'?: string | undefined;
2099
+ x5u?: string | undefined;
2100
+ d?: string | undefined;
2101
+ } | {
2102
+ kty: "OKP";
2103
+ crv: "Ed25519" | "Ed448";
2104
+ x: string;
2105
+ alg?: "EdDSA" | undefined;
2106
+ kid?: string | undefined;
2107
+ ext?: boolean | undefined;
2108
+ use?: "sig" | "enc" | undefined;
2109
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2110
+ x5c?: string[] | undefined;
2111
+ x5t?: string | undefined;
2112
+ 'x5t#S256'?: string | undefined;
2113
+ x5u?: string | undefined;
2114
+ d?: string | undefined;
2115
+ } | {
2116
+ kty: "oct";
2117
+ k: string;
2118
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2119
+ kid?: string | undefined;
2120
+ ext?: boolean | undefined;
2121
+ use?: "sig" | "enc" | undefined;
2122
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2123
+ x5c?: string[] | undefined;
2124
+ x5t?: string | undefined;
2125
+ 'x5t#S256'?: string | undefined;
2126
+ x5u?: string | undefined;
2127
+ } | {
2128
+ kty: string;
2129
+ alg?: string | undefined;
2130
+ kid?: string | undefined;
2131
+ ext?: boolean | undefined;
2132
+ use?: "sig" | "enc" | undefined;
2133
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2134
+ x5c?: string[] | undefined;
2135
+ x5t?: string | undefined;
2136
+ 'x5t#S256'?: string | undefined;
2137
+ x5u?: string | undefined;
2138
+ }, {
2139
+ kty: "RSA";
2140
+ n: string;
2141
+ e: string;
2142
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2143
+ kid?: string | undefined;
2144
+ ext?: boolean | undefined;
2145
+ use?: "sig" | "enc" | undefined;
2146
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2147
+ x5c?: string[] | undefined;
2148
+ x5t?: string | undefined;
2149
+ 'x5t#S256'?: string | undefined;
2150
+ x5u?: string | undefined;
2151
+ d?: string | undefined;
2152
+ p?: string | undefined;
2153
+ q?: string | undefined;
2154
+ dp?: string | undefined;
2155
+ dq?: string | undefined;
2156
+ qi?: string | undefined;
2157
+ oth?: [{
2158
+ d?: string | undefined;
2159
+ r?: string | undefined;
2160
+ t?: string | undefined;
2161
+ }, ...{
2162
+ d?: string | undefined;
2163
+ r?: string | undefined;
2164
+ t?: string | undefined;
2165
+ }[]] | undefined;
2166
+ } | {
2167
+ kty: "EC";
2168
+ crv: "P-256" | "P-384" | "P-521";
2169
+ x: string;
2170
+ y: string;
2171
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2172
+ kid?: string | undefined;
2173
+ ext?: boolean | undefined;
2174
+ use?: "sig" | "enc" | undefined;
2175
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2176
+ x5c?: string[] | undefined;
2177
+ x5t?: string | undefined;
2178
+ 'x5t#S256'?: string | undefined;
2179
+ x5u?: string | undefined;
2180
+ d?: string | undefined;
2181
+ } | {
2182
+ kty: "EC";
2183
+ crv: "secp256k1";
2184
+ x: string;
2185
+ y: string;
2186
+ alg?: "ES256K" | undefined;
2187
+ kid?: string | undefined;
2188
+ ext?: boolean | undefined;
2189
+ use?: "sig" | "enc" | undefined;
2190
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2191
+ x5c?: string[] | undefined;
2192
+ x5t?: string | undefined;
2193
+ 'x5t#S256'?: string | undefined;
2194
+ x5u?: string | undefined;
2195
+ d?: string | undefined;
2196
+ } | {
2197
+ kty: "OKP";
2198
+ crv: "Ed25519" | "Ed448";
2199
+ x: string;
2200
+ alg?: "EdDSA" | undefined;
2201
+ kid?: string | undefined;
2202
+ ext?: boolean | undefined;
2203
+ use?: "sig" | "enc" | undefined;
2204
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2205
+ x5c?: string[] | undefined;
2206
+ x5t?: string | undefined;
2207
+ 'x5t#S256'?: string | undefined;
2208
+ x5u?: string | undefined;
2209
+ d?: string | undefined;
2210
+ } | {
2211
+ kty: "oct";
2212
+ k: string;
2213
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2214
+ kid?: string | undefined;
2215
+ ext?: boolean | undefined;
2216
+ use?: "sig" | "enc" | undefined;
2217
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2218
+ x5c?: string[] | undefined;
2219
+ x5t?: string | undefined;
2220
+ 'x5t#S256'?: string | undefined;
2221
+ x5u?: string | undefined;
2222
+ } | {
2223
+ kty: string;
2224
+ alg?: string | undefined;
2225
+ kid?: string | undefined;
2226
+ ext?: boolean | undefined;
2227
+ use?: "sig" | "enc" | undefined;
2228
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2229
+ x5c?: string[] | undefined;
2230
+ x5t?: string | undefined;
2231
+ 'x5t#S256'?: string | undefined;
2232
+ x5u?: string | undefined;
2233
+ }>, {
2234
+ kty: "RSA";
2235
+ n: string;
2236
+ e: string;
2237
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2238
+ kid?: string | undefined;
2239
+ ext?: boolean | undefined;
2240
+ use?: "sig" | "enc" | undefined;
2241
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2242
+ x5c?: string[] | undefined;
2243
+ x5t?: string | undefined;
2244
+ 'x5t#S256'?: string | undefined;
2245
+ x5u?: string | undefined;
2246
+ d?: string | undefined;
2247
+ p?: string | undefined;
2248
+ q?: string | undefined;
2249
+ dp?: string | undefined;
2250
+ dq?: string | undefined;
2251
+ qi?: string | undefined;
2252
+ oth?: [{
2253
+ d?: string | undefined;
2254
+ r?: string | undefined;
2255
+ t?: string | undefined;
2256
+ }, ...{
2257
+ d?: string | undefined;
2258
+ r?: string | undefined;
2259
+ t?: string | undefined;
2260
+ }[]] | undefined;
2261
+ } | {
2262
+ kty: "EC";
2263
+ crv: "P-256" | "P-384" | "P-521";
2264
+ x: string;
2265
+ y: string;
2266
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2267
+ kid?: string | undefined;
2268
+ ext?: boolean | undefined;
2269
+ use?: "sig" | "enc" | undefined;
2270
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2271
+ x5c?: string[] | undefined;
2272
+ x5t?: string | undefined;
2273
+ 'x5t#S256'?: string | undefined;
2274
+ x5u?: string | undefined;
2275
+ d?: string | undefined;
2276
+ } | {
2277
+ kty: "EC";
2278
+ crv: "secp256k1";
2279
+ x: string;
2280
+ y: string;
2281
+ alg?: "ES256K" | undefined;
2282
+ kid?: string | undefined;
2283
+ ext?: boolean | undefined;
2284
+ use?: "sig" | "enc" | undefined;
2285
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2286
+ x5c?: string[] | undefined;
2287
+ x5t?: string | undefined;
2288
+ 'x5t#S256'?: string | undefined;
2289
+ x5u?: string | undefined;
2290
+ d?: string | undefined;
2291
+ } | {
2292
+ kty: "OKP";
2293
+ crv: "Ed25519" | "Ed448";
2294
+ x: string;
2295
+ alg?: "EdDSA" | undefined;
2296
+ kid?: string | undefined;
2297
+ ext?: boolean | undefined;
2298
+ use?: "sig" | "enc" | undefined;
2299
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2300
+ x5c?: string[] | undefined;
2301
+ x5t?: string | undefined;
2302
+ 'x5t#S256'?: string | undefined;
2303
+ x5u?: string | undefined;
2304
+ d?: string | undefined;
2305
+ } | {
2306
+ kty: "oct";
2307
+ k: string;
2308
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2309
+ kid?: string | undefined;
2310
+ ext?: boolean | undefined;
2311
+ use?: "sig" | "enc" | undefined;
2312
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2313
+ x5c?: string[] | undefined;
2314
+ x5t?: string | undefined;
2315
+ 'x5t#S256'?: string | undefined;
2316
+ x5u?: string | undefined;
2317
+ } | {
2318
+ kty: string;
2319
+ alg?: string | undefined;
2320
+ kid?: string | undefined;
2321
+ ext?: boolean | undefined;
2322
+ use?: "sig" | "enc" | undefined;
2323
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2324
+ x5c?: string[] | undefined;
2325
+ x5t?: string | undefined;
2326
+ 'x5t#S256'?: string | undefined;
2327
+ x5u?: string | undefined;
2328
+ }, {
2329
+ kty: "RSA";
2330
+ n: string;
2331
+ e: string;
2332
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2333
+ kid?: string | undefined;
2334
+ ext?: boolean | undefined;
2335
+ use?: "sig" | "enc" | undefined;
2336
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2337
+ x5c?: string[] | undefined;
2338
+ x5t?: string | undefined;
2339
+ 'x5t#S256'?: string | undefined;
2340
+ x5u?: string | undefined;
2341
+ d?: string | undefined;
2342
+ p?: string | undefined;
2343
+ q?: string | undefined;
2344
+ dp?: string | undefined;
2345
+ dq?: string | undefined;
2346
+ qi?: string | undefined;
2347
+ oth?: [{
2348
+ d?: string | undefined;
2349
+ r?: string | undefined;
2350
+ t?: string | undefined;
2351
+ }, ...{
2352
+ d?: string | undefined;
2353
+ r?: string | undefined;
2354
+ t?: string | undefined;
2355
+ }[]] | undefined;
2356
+ } | {
2357
+ kty: "EC";
2358
+ crv: "P-256" | "P-384" | "P-521";
2359
+ x: string;
2360
+ y: string;
2361
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2362
+ kid?: string | undefined;
2363
+ ext?: boolean | undefined;
2364
+ use?: "sig" | "enc" | undefined;
2365
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2366
+ x5c?: string[] | undefined;
2367
+ x5t?: string | undefined;
2368
+ 'x5t#S256'?: string | undefined;
2369
+ x5u?: string | undefined;
2370
+ d?: string | undefined;
2371
+ } | {
2372
+ kty: "EC";
2373
+ crv: "secp256k1";
2374
+ x: string;
2375
+ y: string;
2376
+ alg?: "ES256K" | undefined;
2377
+ kid?: string | undefined;
2378
+ ext?: boolean | undefined;
2379
+ use?: "sig" | "enc" | undefined;
2380
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2381
+ x5c?: string[] | undefined;
2382
+ x5t?: string | undefined;
2383
+ 'x5t#S256'?: string | undefined;
2384
+ x5u?: string | undefined;
2385
+ d?: string | undefined;
2386
+ } | {
2387
+ kty: "OKP";
2388
+ crv: "Ed25519" | "Ed448";
2389
+ x: string;
2390
+ alg?: "EdDSA" | undefined;
2391
+ kid?: string | undefined;
2392
+ ext?: boolean | undefined;
2393
+ use?: "sig" | "enc" | undefined;
2394
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2395
+ x5c?: string[] | undefined;
2396
+ x5t?: string | undefined;
2397
+ 'x5t#S256'?: string | undefined;
2398
+ x5u?: string | undefined;
2399
+ d?: string | undefined;
2400
+ } | {
2401
+ kty: "oct";
2402
+ k: string;
2403
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2404
+ kid?: string | undefined;
2405
+ ext?: boolean | undefined;
2406
+ use?: "sig" | "enc" | undefined;
2407
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2408
+ x5c?: string[] | undefined;
2409
+ x5t?: string | undefined;
2410
+ 'x5t#S256'?: string | undefined;
2411
+ x5u?: string | undefined;
2412
+ } | {
2413
+ kty: string;
2414
+ alg?: string | undefined;
2415
+ kid?: string | undefined;
2416
+ ext?: boolean | undefined;
2417
+ use?: "sig" | "enc" | undefined;
2418
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2419
+ x5c?: string[] | undefined;
2420
+ x5t?: string | undefined;
2421
+ 'x5t#S256'?: string | undefined;
2422
+ x5u?: string | undefined;
2423
+ }>;
2424
+ //# sourceMappingURL=jwk.d.ts.map