@atproto/jwk 0.3.0 → 0.5.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.
package/dist/jwk.d.ts CHANGED
@@ -359,7 +359,7 @@ export declare const jwkUnknownKeySchema: z.ZodObject<z.objectUtil.extendShape<{
359
359
  'x5t#S256'?: string | undefined;
360
360
  x5u?: string | undefined;
361
361
  }>;
362
- export declare const jwkSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
362
+ export declare const jwkSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
363
363
  kty: z.ZodString;
364
364
  alg: z.ZodOptional<z.ZodString>;
365
365
  kid: z.ZodOptional<z.ZodString>;
@@ -665,9 +665,200 @@ export declare const jwkSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape
665
665
  x5t?: string | undefined;
666
666
  'x5t#S256'?: string | undefined;
667
667
  x5u?: string | undefined;
668
- }>]>;
668
+ }>]>, {
669
+ kty: "RSA";
670
+ n: string;
671
+ e: string;
672
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
673
+ kid?: string | undefined;
674
+ ext?: boolean | undefined;
675
+ use?: "sig" | "enc" | undefined;
676
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
677
+ x5c?: string[] | undefined;
678
+ x5t?: string | undefined;
679
+ 'x5t#S256'?: string | undefined;
680
+ x5u?: string | undefined;
681
+ d?: string | undefined;
682
+ p?: string | undefined;
683
+ q?: string | undefined;
684
+ dp?: string | undefined;
685
+ dq?: string | undefined;
686
+ qi?: string | undefined;
687
+ oth?: [{
688
+ d?: string | undefined;
689
+ r?: string | undefined;
690
+ t?: string | undefined;
691
+ }, ...{
692
+ d?: string | undefined;
693
+ r?: string | undefined;
694
+ t?: string | undefined;
695
+ }[]] | undefined;
696
+ } | {
697
+ kty: "EC";
698
+ crv: "P-256" | "P-384" | "P-521";
699
+ x: string;
700
+ y: string;
701
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
702
+ kid?: string | undefined;
703
+ ext?: boolean | undefined;
704
+ use?: "sig" | "enc" | undefined;
705
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
706
+ x5c?: string[] | undefined;
707
+ x5t?: string | undefined;
708
+ 'x5t#S256'?: string | undefined;
709
+ x5u?: string | undefined;
710
+ d?: string | undefined;
711
+ } | {
712
+ kty: "EC";
713
+ crv: "secp256k1";
714
+ x: string;
715
+ y: string;
716
+ alg?: "ES256K" | undefined;
717
+ kid?: string | undefined;
718
+ ext?: boolean | undefined;
719
+ use?: "sig" | "enc" | undefined;
720
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
721
+ x5c?: string[] | undefined;
722
+ x5t?: string | undefined;
723
+ 'x5t#S256'?: string | undefined;
724
+ x5u?: string | undefined;
725
+ d?: string | undefined;
726
+ } | {
727
+ kty: "OKP";
728
+ crv: "Ed25519" | "Ed448";
729
+ x: string;
730
+ alg?: "EdDSA" | undefined;
731
+ kid?: string | undefined;
732
+ ext?: boolean | undefined;
733
+ use?: "sig" | "enc" | undefined;
734
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
735
+ x5c?: string[] | undefined;
736
+ x5t?: string | undefined;
737
+ 'x5t#S256'?: string | undefined;
738
+ x5u?: string | undefined;
739
+ d?: string | undefined;
740
+ } | {
741
+ kty: "oct";
742
+ k: string;
743
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
744
+ kid?: string | undefined;
745
+ ext?: boolean | undefined;
746
+ use?: "sig" | "enc" | undefined;
747
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
748
+ x5c?: string[] | undefined;
749
+ x5t?: string | undefined;
750
+ 'x5t#S256'?: string | undefined;
751
+ x5u?: string | undefined;
752
+ } | {
753
+ kty: string;
754
+ alg?: string | undefined;
755
+ kid?: string | undefined;
756
+ ext?: boolean | undefined;
757
+ use?: "sig" | "enc" | undefined;
758
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
759
+ x5c?: string[] | undefined;
760
+ x5t?: string | undefined;
761
+ 'x5t#S256'?: string | undefined;
762
+ x5u?: string | undefined;
763
+ }, {
764
+ kty: "RSA";
765
+ n: string;
766
+ e: string;
767
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
768
+ kid?: string | undefined;
769
+ ext?: boolean | undefined;
770
+ use?: "sig" | "enc" | undefined;
771
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
772
+ x5c?: string[] | undefined;
773
+ x5t?: string | undefined;
774
+ 'x5t#S256'?: string | undefined;
775
+ x5u?: string | undefined;
776
+ d?: string | undefined;
777
+ p?: string | undefined;
778
+ q?: string | undefined;
779
+ dp?: string | undefined;
780
+ dq?: string | undefined;
781
+ qi?: string | undefined;
782
+ oth?: [{
783
+ d?: string | undefined;
784
+ r?: string | undefined;
785
+ t?: string | undefined;
786
+ }, ...{
787
+ d?: string | undefined;
788
+ r?: string | undefined;
789
+ t?: string | undefined;
790
+ }[]] | undefined;
791
+ } | {
792
+ kty: "EC";
793
+ crv: "P-256" | "P-384" | "P-521";
794
+ x: string;
795
+ y: string;
796
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
797
+ kid?: string | undefined;
798
+ ext?: boolean | undefined;
799
+ use?: "sig" | "enc" | undefined;
800
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
801
+ x5c?: string[] | undefined;
802
+ x5t?: string | undefined;
803
+ 'x5t#S256'?: string | undefined;
804
+ x5u?: string | undefined;
805
+ d?: string | undefined;
806
+ } | {
807
+ kty: "EC";
808
+ crv: "secp256k1";
809
+ x: string;
810
+ y: string;
811
+ alg?: "ES256K" | undefined;
812
+ kid?: string | undefined;
813
+ ext?: boolean | undefined;
814
+ use?: "sig" | "enc" | undefined;
815
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
816
+ x5c?: string[] | undefined;
817
+ x5t?: string | undefined;
818
+ 'x5t#S256'?: string | undefined;
819
+ x5u?: string | undefined;
820
+ d?: string | undefined;
821
+ } | {
822
+ kty: "OKP";
823
+ crv: "Ed25519" | "Ed448";
824
+ x: string;
825
+ alg?: "EdDSA" | undefined;
826
+ kid?: string | undefined;
827
+ ext?: boolean | undefined;
828
+ use?: "sig" | "enc" | undefined;
829
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
830
+ x5c?: string[] | undefined;
831
+ x5t?: string | undefined;
832
+ 'x5t#S256'?: string | undefined;
833
+ x5u?: string | undefined;
834
+ d?: string | undefined;
835
+ } | {
836
+ kty: "oct";
837
+ k: string;
838
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
839
+ kid?: string | undefined;
840
+ ext?: boolean | undefined;
841
+ use?: "sig" | "enc" | undefined;
842
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
843
+ x5c?: string[] | undefined;
844
+ x5t?: string | undefined;
845
+ 'x5t#S256'?: string | undefined;
846
+ x5u?: string | undefined;
847
+ } | {
848
+ kty: string;
849
+ alg?: string | undefined;
850
+ kid?: string | undefined;
851
+ ext?: boolean | undefined;
852
+ use?: "sig" | "enc" | undefined;
853
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
854
+ x5c?: string[] | undefined;
855
+ x5t?: string | undefined;
856
+ 'x5t#S256'?: string | undefined;
857
+ x5u?: string | undefined;
858
+ }>;
669
859
  export type Jwk = z.infer<typeof jwkSchema>;
670
- export declare const jwkValidator: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
860
+ /** @deprecated use {@link jwkSchema} */
861
+ export declare const jwkValidator: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
671
862
  kty: z.ZodString;
672
863
  alg: z.ZodOptional<z.ZodString>;
673
864
  kid: z.ZodOptional<z.ZodString>;
@@ -1163,40 +1354,23 @@ export declare const jwkValidator: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodOb
1163
1354
  x5t?: string | undefined;
1164
1355
  'x5t#S256'?: string | undefined;
1165
1356
  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;
1357
+ }>;
1358
+ export declare const jwkPubSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1359
+ kty: z.ZodString;
1360
+ alg: z.ZodOptional<z.ZodString>;
1361
+ kid: z.ZodOptional<z.ZodString>;
1362
+ ext: z.ZodOptional<z.ZodBoolean>;
1363
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1364
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1365
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1366
+ x5t: z.ZodOptional<z.ZodString>;
1367
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
1368
+ x5u: z.ZodOptional<z.ZodString>;
1369
+ }, {
1370
+ kty: z.ZodEffects<z.ZodString, string, string>;
1371
+ }>, "strip", z.ZodTypeAny, {
1372
+ kty: string;
1373
+ alg?: string | undefined;
1200
1374
  kid?: string | undefined;
1201
1375
  ext?: boolean | undefined;
1202
1376
  use?: "sig" | "enc" | undefined;
@@ -1205,182 +1379,9 @@ export declare const jwkValidator: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodOb
1205
1379
  x5t?: string | undefined;
1206
1380
  'x5t#S256'?: string | undefined;
1207
1381
  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;
1382
+ }, {
1383
+ kty: string;
1384
+ alg?: string | undefined;
1384
1385
  kid?: string | undefined;
1385
1386
  ext?: boolean | undefined;
1386
1387
  use?: "sig" | "enc" | undefined;
@@ -2230,6 +2231,503 @@ export declare const jwkPubSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodE
2230
2231
  x5t?: string | undefined;
2231
2232
  'x5t#S256'?: string | undefined;
2232
2233
  x5u?: string | undefined;
2234
+ }>;
2235
+ export declare const jwkPrivateSchema: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2236
+ kty: z.ZodString;
2237
+ alg: z.ZodOptional<z.ZodString>;
2238
+ kid: z.ZodOptional<z.ZodString>;
2239
+ ext: z.ZodOptional<z.ZodBoolean>;
2240
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2241
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
2242
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2243
+ x5t: z.ZodOptional<z.ZodString>;
2244
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
2245
+ x5u: z.ZodOptional<z.ZodString>;
2246
+ }, {
2247
+ kty: z.ZodEffects<z.ZodString, string, string>;
2248
+ }>, "strip", z.ZodTypeAny, {
2249
+ kty: string;
2250
+ alg?: string | undefined;
2251
+ kid?: string | undefined;
2252
+ ext?: boolean | undefined;
2253
+ use?: "sig" | "enc" | undefined;
2254
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2255
+ x5c?: string[] | undefined;
2256
+ x5t?: string | undefined;
2257
+ 'x5t#S256'?: string | undefined;
2258
+ x5u?: string | undefined;
2259
+ }, {
2260
+ kty: string;
2261
+ alg?: string | undefined;
2262
+ kid?: string | undefined;
2263
+ ext?: boolean | undefined;
2264
+ use?: "sig" | "enc" | undefined;
2265
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2266
+ x5c?: string[] | undefined;
2267
+ x5t?: string | undefined;
2268
+ 'x5t#S256'?: string | undefined;
2269
+ x5u?: string | undefined;
2270
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2271
+ kty: z.ZodString;
2272
+ alg: z.ZodOptional<z.ZodString>;
2273
+ kid: z.ZodOptional<z.ZodString>;
2274
+ ext: z.ZodOptional<z.ZodBoolean>;
2275
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2276
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
2277
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2278
+ x5t: z.ZodOptional<z.ZodString>;
2279
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
2280
+ x5u: z.ZodOptional<z.ZodString>;
2281
+ }, {
2282
+ kty: z.ZodLiteral<"RSA">;
2283
+ alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
2284
+ n: z.ZodString;
2285
+ e: z.ZodString;
2286
+ d: z.ZodOptional<z.ZodString>;
2287
+ p: z.ZodOptional<z.ZodString>;
2288
+ q: z.ZodOptional<z.ZodString>;
2289
+ dp: z.ZodOptional<z.ZodString>;
2290
+ dq: z.ZodOptional<z.ZodString>;
2291
+ qi: z.ZodOptional<z.ZodString>;
2292
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
2293
+ r: z.ZodOptional<z.ZodString>;
2294
+ d: z.ZodOptional<z.ZodString>;
2295
+ t: z.ZodOptional<z.ZodString>;
2296
+ }, "strip", z.ZodTypeAny, {
2297
+ d?: string | undefined;
2298
+ r?: string | undefined;
2299
+ t?: string | undefined;
2300
+ }, {
2301
+ d?: string | undefined;
2302
+ r?: string | undefined;
2303
+ t?: string | undefined;
2304
+ }>, "atleastone">>;
2305
+ }>, "strip", z.ZodTypeAny, {
2306
+ kty: "RSA";
2307
+ n: string;
2308
+ e: string;
2309
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2310
+ kid?: string | undefined;
2311
+ ext?: boolean | undefined;
2312
+ use?: "sig" | "enc" | undefined;
2313
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2314
+ x5c?: string[] | undefined;
2315
+ x5t?: string | undefined;
2316
+ 'x5t#S256'?: string | undefined;
2317
+ x5u?: string | undefined;
2318
+ d?: string | undefined;
2319
+ p?: string | undefined;
2320
+ q?: string | undefined;
2321
+ dp?: string | undefined;
2322
+ dq?: string | undefined;
2323
+ qi?: string | undefined;
2324
+ oth?: [{
2325
+ d?: string | undefined;
2326
+ r?: string | undefined;
2327
+ t?: string | undefined;
2328
+ }, ...{
2329
+ d?: string | undefined;
2330
+ r?: string | undefined;
2331
+ t?: string | undefined;
2332
+ }[]] | undefined;
2333
+ }, {
2334
+ kty: "RSA";
2335
+ n: string;
2336
+ e: string;
2337
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2338
+ kid?: string | undefined;
2339
+ ext?: boolean | undefined;
2340
+ use?: "sig" | "enc" | undefined;
2341
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2342
+ x5c?: string[] | undefined;
2343
+ x5t?: string | undefined;
2344
+ 'x5t#S256'?: string | undefined;
2345
+ x5u?: string | undefined;
2346
+ d?: string | undefined;
2347
+ p?: string | undefined;
2348
+ q?: string | undefined;
2349
+ dp?: string | undefined;
2350
+ dq?: string | undefined;
2351
+ qi?: string | undefined;
2352
+ oth?: [{
2353
+ d?: string | undefined;
2354
+ r?: string | undefined;
2355
+ t?: string | undefined;
2356
+ }, ...{
2357
+ d?: string | undefined;
2358
+ r?: string | undefined;
2359
+ t?: string | undefined;
2360
+ }[]] | undefined;
2361
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2362
+ kty: z.ZodString;
2363
+ alg: z.ZodOptional<z.ZodString>;
2364
+ kid: z.ZodOptional<z.ZodString>;
2365
+ ext: z.ZodOptional<z.ZodBoolean>;
2366
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2367
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
2368
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2369
+ x5t: z.ZodOptional<z.ZodString>;
2370
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
2371
+ x5u: z.ZodOptional<z.ZodString>;
2372
+ }, {
2373
+ kty: z.ZodLiteral<"EC">;
2374
+ alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
2375
+ crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
2376
+ x: z.ZodString;
2377
+ y: z.ZodString;
2378
+ d: z.ZodOptional<z.ZodString>;
2379
+ }>, "strip", z.ZodTypeAny, {
2380
+ kty: "EC";
2381
+ crv: "P-256" | "P-384" | "P-521";
2382
+ x: string;
2383
+ y: string;
2384
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2385
+ kid?: string | undefined;
2386
+ ext?: boolean | undefined;
2387
+ use?: "sig" | "enc" | undefined;
2388
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2389
+ x5c?: string[] | undefined;
2390
+ x5t?: string | undefined;
2391
+ 'x5t#S256'?: string | undefined;
2392
+ x5u?: string | undefined;
2393
+ d?: string | undefined;
2394
+ }, {
2395
+ kty: "EC";
2396
+ crv: "P-256" | "P-384" | "P-521";
2397
+ x: string;
2398
+ y: string;
2399
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2400
+ kid?: string | undefined;
2401
+ ext?: boolean | undefined;
2402
+ use?: "sig" | "enc" | undefined;
2403
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2404
+ x5c?: string[] | undefined;
2405
+ x5t?: string | undefined;
2406
+ 'x5t#S256'?: string | undefined;
2407
+ x5u?: string | undefined;
2408
+ d?: string | undefined;
2409
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2410
+ kty: z.ZodString;
2411
+ alg: z.ZodOptional<z.ZodString>;
2412
+ kid: z.ZodOptional<z.ZodString>;
2413
+ ext: z.ZodOptional<z.ZodBoolean>;
2414
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2415
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
2416
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2417
+ x5t: z.ZodOptional<z.ZodString>;
2418
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
2419
+ x5u: z.ZodOptional<z.ZodString>;
2420
+ }, {
2421
+ kty: z.ZodLiteral<"EC">;
2422
+ alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
2423
+ crv: z.ZodEnum<["secp256k1"]>;
2424
+ x: z.ZodString;
2425
+ y: z.ZodString;
2426
+ d: z.ZodOptional<z.ZodString>;
2427
+ }>, "strip", z.ZodTypeAny, {
2428
+ kty: "EC";
2429
+ crv: "secp256k1";
2430
+ x: string;
2431
+ y: string;
2432
+ alg?: "ES256K" | undefined;
2433
+ kid?: string | undefined;
2434
+ ext?: boolean | undefined;
2435
+ use?: "sig" | "enc" | undefined;
2436
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2437
+ x5c?: string[] | undefined;
2438
+ x5t?: string | undefined;
2439
+ 'x5t#S256'?: string | undefined;
2440
+ x5u?: string | undefined;
2441
+ d?: string | undefined;
2442
+ }, {
2443
+ kty: "EC";
2444
+ crv: "secp256k1";
2445
+ x: string;
2446
+ y: string;
2447
+ alg?: "ES256K" | undefined;
2448
+ kid?: string | undefined;
2449
+ ext?: boolean | undefined;
2450
+ use?: "sig" | "enc" | undefined;
2451
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2452
+ x5c?: string[] | undefined;
2453
+ x5t?: string | undefined;
2454
+ 'x5t#S256'?: string | undefined;
2455
+ x5u?: string | undefined;
2456
+ d?: string | undefined;
2457
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2458
+ kty: z.ZodString;
2459
+ alg: z.ZodOptional<z.ZodString>;
2460
+ kid: z.ZodOptional<z.ZodString>;
2461
+ ext: z.ZodOptional<z.ZodBoolean>;
2462
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2463
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
2464
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2465
+ x5t: z.ZodOptional<z.ZodString>;
2466
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
2467
+ x5u: z.ZodOptional<z.ZodString>;
2468
+ }, {
2469
+ kty: z.ZodLiteral<"OKP">;
2470
+ alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
2471
+ crv: z.ZodEnum<["Ed25519", "Ed448"]>;
2472
+ x: z.ZodString;
2473
+ d: z.ZodOptional<z.ZodString>;
2474
+ }>, "strip", z.ZodTypeAny, {
2475
+ kty: "OKP";
2476
+ crv: "Ed25519" | "Ed448";
2477
+ x: string;
2478
+ alg?: "EdDSA" | undefined;
2479
+ kid?: string | undefined;
2480
+ ext?: boolean | undefined;
2481
+ use?: "sig" | "enc" | undefined;
2482
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2483
+ x5c?: string[] | undefined;
2484
+ x5t?: string | undefined;
2485
+ 'x5t#S256'?: string | undefined;
2486
+ x5u?: string | undefined;
2487
+ d?: string | undefined;
2488
+ }, {
2489
+ kty: "OKP";
2490
+ crv: "Ed25519" | "Ed448";
2491
+ x: string;
2492
+ alg?: "EdDSA" | undefined;
2493
+ kid?: string | undefined;
2494
+ ext?: boolean | undefined;
2495
+ use?: "sig" | "enc" | undefined;
2496
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2497
+ x5c?: string[] | undefined;
2498
+ x5t?: string | undefined;
2499
+ 'x5t#S256'?: string | undefined;
2500
+ x5u?: string | undefined;
2501
+ d?: string | undefined;
2502
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2503
+ kty: z.ZodString;
2504
+ alg: z.ZodOptional<z.ZodString>;
2505
+ kid: z.ZodOptional<z.ZodString>;
2506
+ ext: z.ZodOptional<z.ZodBoolean>;
2507
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2508
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
2509
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2510
+ x5t: z.ZodOptional<z.ZodString>;
2511
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
2512
+ x5u: z.ZodOptional<z.ZodString>;
2513
+ }, {
2514
+ kty: z.ZodLiteral<"oct">;
2515
+ alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
2516
+ k: z.ZodString;
2517
+ }>, "strip", z.ZodTypeAny, {
2518
+ kty: "oct";
2519
+ k: string;
2520
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2521
+ kid?: string | undefined;
2522
+ ext?: boolean | undefined;
2523
+ use?: "sig" | "enc" | undefined;
2524
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2525
+ x5c?: string[] | undefined;
2526
+ x5t?: string | undefined;
2527
+ 'x5t#S256'?: string | undefined;
2528
+ x5u?: string | undefined;
2529
+ }, {
2530
+ kty: "oct";
2531
+ k: string;
2532
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2533
+ kid?: string | undefined;
2534
+ ext?: boolean | undefined;
2535
+ use?: "sig" | "enc" | undefined;
2536
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2537
+ x5c?: string[] | undefined;
2538
+ x5t?: string | undefined;
2539
+ 'x5t#S256'?: string | undefined;
2540
+ x5u?: string | undefined;
2541
+ }>]>, {
2542
+ kty: "RSA";
2543
+ n: string;
2544
+ e: string;
2545
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2546
+ kid?: string | undefined;
2547
+ ext?: boolean | undefined;
2548
+ use?: "sig" | "enc" | undefined;
2549
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2550
+ x5c?: string[] | undefined;
2551
+ x5t?: string | undefined;
2552
+ 'x5t#S256'?: string | undefined;
2553
+ x5u?: string | undefined;
2554
+ d?: string | undefined;
2555
+ p?: string | undefined;
2556
+ q?: string | undefined;
2557
+ dp?: string | undefined;
2558
+ dq?: string | undefined;
2559
+ qi?: string | undefined;
2560
+ oth?: [{
2561
+ d?: string | undefined;
2562
+ r?: string | undefined;
2563
+ t?: string | undefined;
2564
+ }, ...{
2565
+ d?: string | undefined;
2566
+ r?: string | undefined;
2567
+ t?: string | undefined;
2568
+ }[]] | undefined;
2569
+ } | {
2570
+ kty: "EC";
2571
+ crv: "P-256" | "P-384" | "P-521";
2572
+ x: string;
2573
+ y: string;
2574
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2575
+ kid?: string | undefined;
2576
+ ext?: boolean | undefined;
2577
+ use?: "sig" | "enc" | undefined;
2578
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2579
+ x5c?: string[] | undefined;
2580
+ x5t?: string | undefined;
2581
+ 'x5t#S256'?: string | undefined;
2582
+ x5u?: string | undefined;
2583
+ d?: string | undefined;
2584
+ } | {
2585
+ kty: "EC";
2586
+ crv: "secp256k1";
2587
+ x: string;
2588
+ y: string;
2589
+ alg?: "ES256K" | undefined;
2590
+ kid?: string | undefined;
2591
+ ext?: boolean | undefined;
2592
+ use?: "sig" | "enc" | undefined;
2593
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2594
+ x5c?: string[] | undefined;
2595
+ x5t?: string | undefined;
2596
+ 'x5t#S256'?: string | undefined;
2597
+ x5u?: string | undefined;
2598
+ d?: string | undefined;
2599
+ } | {
2600
+ kty: "OKP";
2601
+ crv: "Ed25519" | "Ed448";
2602
+ x: string;
2603
+ alg?: "EdDSA" | undefined;
2604
+ kid?: string | undefined;
2605
+ ext?: boolean | undefined;
2606
+ use?: "sig" | "enc" | undefined;
2607
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2608
+ x5c?: string[] | undefined;
2609
+ x5t?: string | undefined;
2610
+ 'x5t#S256'?: string | undefined;
2611
+ x5u?: string | undefined;
2612
+ d?: string | undefined;
2613
+ } | {
2614
+ kty: "oct";
2615
+ k: string;
2616
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2617
+ kid?: string | undefined;
2618
+ ext?: boolean | undefined;
2619
+ use?: "sig" | "enc" | undefined;
2620
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2621
+ x5c?: string[] | undefined;
2622
+ x5t?: string | undefined;
2623
+ 'x5t#S256'?: string | undefined;
2624
+ x5u?: string | undefined;
2625
+ } | {
2626
+ kty: string;
2627
+ alg?: string | undefined;
2628
+ kid?: string | undefined;
2629
+ ext?: boolean | undefined;
2630
+ use?: "sig" | "enc" | undefined;
2631
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2632
+ x5c?: string[] | undefined;
2633
+ x5t?: string | undefined;
2634
+ 'x5t#S256'?: string | undefined;
2635
+ x5u?: string | undefined;
2636
+ }, {
2637
+ kty: "RSA";
2638
+ n: string;
2639
+ e: string;
2640
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2641
+ kid?: string | undefined;
2642
+ ext?: boolean | undefined;
2643
+ use?: "sig" | "enc" | undefined;
2644
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2645
+ x5c?: string[] | undefined;
2646
+ x5t?: string | undefined;
2647
+ 'x5t#S256'?: string | undefined;
2648
+ x5u?: string | undefined;
2649
+ d?: string | undefined;
2650
+ p?: string | undefined;
2651
+ q?: string | undefined;
2652
+ dp?: string | undefined;
2653
+ dq?: string | undefined;
2654
+ qi?: string | undefined;
2655
+ oth?: [{
2656
+ d?: string | undefined;
2657
+ r?: string | undefined;
2658
+ t?: string | undefined;
2659
+ }, ...{
2660
+ d?: string | undefined;
2661
+ r?: string | undefined;
2662
+ t?: string | undefined;
2663
+ }[]] | undefined;
2664
+ } | {
2665
+ kty: "EC";
2666
+ crv: "P-256" | "P-384" | "P-521";
2667
+ x: string;
2668
+ y: string;
2669
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2670
+ kid?: string | undefined;
2671
+ ext?: boolean | undefined;
2672
+ use?: "sig" | "enc" | undefined;
2673
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2674
+ x5c?: string[] | undefined;
2675
+ x5t?: string | undefined;
2676
+ 'x5t#S256'?: string | undefined;
2677
+ x5u?: string | undefined;
2678
+ d?: string | undefined;
2679
+ } | {
2680
+ kty: "EC";
2681
+ crv: "secp256k1";
2682
+ x: string;
2683
+ y: string;
2684
+ alg?: "ES256K" | undefined;
2685
+ kid?: string | undefined;
2686
+ ext?: boolean | undefined;
2687
+ use?: "sig" | "enc" | undefined;
2688
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2689
+ x5c?: string[] | undefined;
2690
+ x5t?: string | undefined;
2691
+ 'x5t#S256'?: string | undefined;
2692
+ x5u?: string | undefined;
2693
+ d?: string | undefined;
2694
+ } | {
2695
+ kty: "OKP";
2696
+ crv: "Ed25519" | "Ed448";
2697
+ x: string;
2698
+ alg?: "EdDSA" | undefined;
2699
+ kid?: string | undefined;
2700
+ ext?: boolean | undefined;
2701
+ use?: "sig" | "enc" | undefined;
2702
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2703
+ x5c?: string[] | undefined;
2704
+ x5t?: string | undefined;
2705
+ 'x5t#S256'?: string | undefined;
2706
+ x5u?: string | undefined;
2707
+ d?: string | undefined;
2708
+ } | {
2709
+ kty: "oct";
2710
+ k: string;
2711
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2712
+ kid?: string | undefined;
2713
+ ext?: boolean | undefined;
2714
+ use?: "sig" | "enc" | undefined;
2715
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2716
+ x5c?: string[] | undefined;
2717
+ x5t?: string | undefined;
2718
+ 'x5t#S256'?: string | undefined;
2719
+ x5u?: string | undefined;
2720
+ } | {
2721
+ kty: string;
2722
+ alg?: string | undefined;
2723
+ kid?: string | undefined;
2724
+ ext?: boolean | undefined;
2725
+ use?: "sig" | "enc" | undefined;
2726
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2727
+ x5c?: string[] | undefined;
2728
+ x5t?: string | undefined;
2729
+ 'x5t#S256'?: string | undefined;
2730
+ x5u?: string | undefined;
2233
2731
  }>, {
2234
2732
  kty: "RSA";
2235
2733
  n: string;