@atproto/oauth-provider 0.2.10 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,17 +5,17 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
5
5
  aud: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
6
6
  iss: z.ZodString;
7
7
  exp: z.ZodNumber;
8
- }, "strip", z.ZodTypeAny, {
9
- iat: number;
10
- aud: string | [string, ...string[]];
11
- iss: string;
12
- exp: number;
13
- }, {
14
- iat: number;
15
- aud: string | [string, ...string[]];
16
- iss: string;
17
- exp: number;
18
- }>, z.ZodObject<z.objectUtil.extendShape<{
8
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9
+ iat: z.ZodNumber;
10
+ aud: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
11
+ iss: z.ZodString;
12
+ exp: z.ZodNumber;
13
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
14
+ iat: z.ZodNumber;
15
+ aud: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
16
+ iss: z.ZodString;
17
+ exp: z.ZodNumber;
18
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
19
19
  nonce: z.ZodOptional<z.ZodOptional<z.ZodString>>;
20
20
  jti: z.ZodOptional<z.ZodOptional<z.ZodString>>;
21
21
  client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1379,59 +1379,155 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1379
1379
  jti: z.ZodEffects<z.ZodString, `tok-${string}`, string>;
1380
1380
  sub: z.ZodString;
1381
1381
  client_id: z.ZodString;
1382
- }>, "strip", z.ZodTypeAny, {
1383
- jti: `tok-${string}`;
1384
- client_id: string;
1385
- sub: string;
1386
- nonce?: string | undefined;
1387
- scope?: string | undefined;
1388
- authorization_details?: z.objectOutputType<{
1382
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
1383
+ nonce: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1384
+ jti: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1385
+ client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1386
+ scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1387
+ authorization_details: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1388
+ type: z.ZodString;
1389
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1390
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1391
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1392
+ identifier: z.ZodOptional<z.ZodString>;
1393
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1394
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1395
+ type: z.ZodString;
1396
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1397
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1398
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1399
+ identifier: z.ZodOptional<z.ZodString>;
1400
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1401
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1389
1402
  type: z.ZodString;
1390
1403
  locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1391
1404
  actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1392
1405
  datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1393
1406
  identifier: z.ZodOptional<z.ZodString>;
1394
1407
  privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1395
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1396
- email?: string | undefined;
1397
- auth_time?: number | undefined;
1398
- acr?: string | undefined;
1399
- name?: string | undefined;
1400
- family_name?: string | undefined;
1401
- given_name?: string | undefined;
1402
- middle_name?: string | undefined;
1403
- nickname?: string | undefined;
1404
- preferred_username?: string | undefined;
1405
- gender?: string | undefined;
1406
- picture?: string | undefined;
1407
- profile?: string | undefined;
1408
- website?: string | undefined;
1409
- birthdate?: string | undefined;
1410
- zoneinfo?: string | undefined;
1411
- locale?: string | undefined;
1412
- updated_at?: number | undefined;
1413
- email_verified?: boolean | undefined;
1414
- phone_number?: string | undefined;
1415
- phone_number_verified?: boolean | undefined;
1416
- address?: {
1408
+ }, z.ZodTypeAny, "passthrough">>, "many">>>;
1409
+ email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1410
+ auth_time: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1411
+ acr: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1412
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1413
+ family_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1414
+ given_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1415
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1416
+ nickname: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1417
+ preferred_username: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1418
+ gender: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1419
+ picture: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1420
+ profile: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1421
+ website: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1422
+ birthdate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1423
+ zoneinfo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1424
+ locale: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1425
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1426
+ email_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1427
+ phone_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1428
+ phone_number_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1429
+ address: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1430
+ formatted: z.ZodOptional<z.ZodString>;
1431
+ street_address: z.ZodOptional<z.ZodString>;
1432
+ locality: z.ZodOptional<z.ZodString>;
1433
+ region: z.ZodOptional<z.ZodString>;
1434
+ postal_code: z.ZodOptional<z.ZodString>;
1435
+ country: z.ZodOptional<z.ZodString>;
1436
+ }, "strip", z.ZodTypeAny, {
1417
1437
  formatted?: string | undefined;
1418
1438
  street_address?: string | undefined;
1419
1439
  locality?: string | undefined;
1420
1440
  region?: string | undefined;
1421
1441
  postal_code?: string | undefined;
1422
1442
  country?: string | undefined;
1423
- } | undefined;
1424
- htm?: string | undefined;
1425
- htu?: string | undefined;
1426
- ath?: string | undefined;
1427
- nbf?: number | undefined;
1428
- azp?: string | undefined;
1429
- amr?: string[] | undefined;
1430
- cnf?: {
1431
- kid?: string | undefined;
1432
- 'x5t#S256'?: string | undefined;
1433
- jku?: string | undefined;
1434
- jwk?: {
1443
+ }, {
1444
+ formatted?: string | undefined;
1445
+ street_address?: string | undefined;
1446
+ locality?: string | undefined;
1447
+ region?: string | undefined;
1448
+ postal_code?: string | undefined;
1449
+ country?: string | undefined;
1450
+ }>>>;
1451
+ htm: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1452
+ htu: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1453
+ ath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1454
+ sub: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1455
+ nbf: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1456
+ azp: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1457
+ amr: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1458
+ cnf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1459
+ kid: z.ZodOptional<z.ZodString>;
1460
+ jwk: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1461
+ kty: z.ZodString;
1462
+ alg: z.ZodOptional<z.ZodString>;
1463
+ kid: z.ZodOptional<z.ZodString>;
1464
+ ext: z.ZodOptional<z.ZodBoolean>;
1465
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1466
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1467
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1468
+ x5t: z.ZodOptional<z.ZodString>;
1469
+ "x5t#S256": z.ZodOptional<z.ZodString>;
1470
+ x5u: z.ZodOptional<z.ZodString>;
1471
+ }, {
1472
+ kty: z.ZodEffects<z.ZodString, string, string>;
1473
+ }>, "strip", z.ZodTypeAny, {
1474
+ kty: string;
1475
+ alg?: string | undefined;
1476
+ kid?: string | undefined;
1477
+ ext?: boolean | undefined;
1478
+ use?: "sig" | "enc" | undefined;
1479
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1480
+ x5c?: string[] | undefined;
1481
+ x5t?: string | undefined;
1482
+ "x5t#S256"?: string | undefined;
1483
+ x5u?: string | undefined;
1484
+ }, {
1485
+ kty: string;
1486
+ alg?: string | undefined;
1487
+ kid?: string | undefined;
1488
+ ext?: boolean | undefined;
1489
+ use?: "sig" | "enc" | undefined;
1490
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1491
+ x5c?: string[] | undefined;
1492
+ x5t?: string | undefined;
1493
+ "x5t#S256"?: string | undefined;
1494
+ x5u?: string | undefined;
1495
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1496
+ kty: z.ZodString;
1497
+ alg: z.ZodOptional<z.ZodString>;
1498
+ kid: z.ZodOptional<z.ZodString>;
1499
+ ext: z.ZodOptional<z.ZodBoolean>;
1500
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1501
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1502
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1503
+ x5t: z.ZodOptional<z.ZodString>;
1504
+ "x5t#S256": z.ZodOptional<z.ZodString>;
1505
+ x5u: z.ZodOptional<z.ZodString>;
1506
+ }, {
1507
+ kty: z.ZodLiteral<"RSA">;
1508
+ alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
1509
+ n: z.ZodString;
1510
+ e: z.ZodString;
1511
+ d: z.ZodOptional<z.ZodString>;
1512
+ p: z.ZodOptional<z.ZodString>;
1513
+ q: z.ZodOptional<z.ZodString>;
1514
+ dp: z.ZodOptional<z.ZodString>;
1515
+ dq: z.ZodOptional<z.ZodString>;
1516
+ qi: z.ZodOptional<z.ZodString>;
1517
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1518
+ r: z.ZodOptional<z.ZodString>;
1519
+ d: z.ZodOptional<z.ZodString>;
1520
+ t: z.ZodOptional<z.ZodString>;
1521
+ }, "strip", z.ZodTypeAny, {
1522
+ d?: string | undefined;
1523
+ r?: string | undefined;
1524
+ t?: string | undefined;
1525
+ }, {
1526
+ d?: string | undefined;
1527
+ r?: string | undefined;
1528
+ t?: string | undefined;
1529
+ }>, "atleastone">>;
1530
+ }>, "strip", z.ZodTypeAny, {
1435
1531
  kty: "RSA";
1436
1532
  n: string;
1437
1533
  e: string;
@@ -1459,12 +1555,11 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1459
1555
  r?: string | undefined;
1460
1556
  t?: string | undefined;
1461
1557
  }[]] | undefined;
1462
- } | {
1463
- kty: "EC";
1464
- crv: "P-256" | "P-384" | "P-521";
1465
- x: string;
1466
- y: string;
1467
- alg?: "ES256" | "ES384" | "ES512" | undefined;
1558
+ }, {
1559
+ kty: "RSA";
1560
+ n: string;
1561
+ e: string;
1562
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1468
1563
  kid?: string | undefined;
1469
1564
  ext?: boolean | undefined;
1470
1565
  use?: "sig" | "enc" | undefined;
@@ -1474,12 +1569,44 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1474
1569
  "x5t#S256"?: string | undefined;
1475
1570
  x5u?: string | undefined;
1476
1571
  d?: string | undefined;
1477
- } | {
1572
+ p?: string | undefined;
1573
+ q?: string | undefined;
1574
+ dp?: string | undefined;
1575
+ dq?: string | undefined;
1576
+ qi?: string | undefined;
1577
+ oth?: [{
1578
+ d?: string | undefined;
1579
+ r?: string | undefined;
1580
+ t?: string | undefined;
1581
+ }, ...{
1582
+ d?: string | undefined;
1583
+ r?: string | undefined;
1584
+ t?: string | undefined;
1585
+ }[]] | undefined;
1586
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1587
+ kty: z.ZodString;
1588
+ alg: z.ZodOptional<z.ZodString>;
1589
+ kid: z.ZodOptional<z.ZodString>;
1590
+ ext: z.ZodOptional<z.ZodBoolean>;
1591
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1592
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1593
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1594
+ x5t: z.ZodOptional<z.ZodString>;
1595
+ "x5t#S256": z.ZodOptional<z.ZodString>;
1596
+ x5u: z.ZodOptional<z.ZodString>;
1597
+ }, {
1598
+ kty: z.ZodLiteral<"EC">;
1599
+ alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
1600
+ crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
1601
+ x: z.ZodString;
1602
+ y: z.ZodString;
1603
+ d: z.ZodOptional<z.ZodString>;
1604
+ }>, "strip", z.ZodTypeAny, {
1478
1605
  kty: "EC";
1479
- crv: "secp256k1";
1606
+ crv: "P-256" | "P-384" | "P-521";
1480
1607
  x: string;
1481
1608
  y: string;
1482
- alg?: "ES256K" | undefined;
1609
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1483
1610
  kid?: string | undefined;
1484
1611
  ext?: boolean | undefined;
1485
1612
  use?: "sig" | "enc" | undefined;
@@ -1489,11 +1616,12 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1489
1616
  "x5t#S256"?: string | undefined;
1490
1617
  x5u?: string | undefined;
1491
1618
  d?: string | undefined;
1492
- } | {
1493
- kty: "OKP";
1494
- crv: "Ed25519" | "Ed448";
1619
+ }, {
1620
+ kty: "EC";
1621
+ crv: "P-256" | "P-384" | "P-521";
1495
1622
  x: string;
1496
- alg?: "EdDSA" | undefined;
1623
+ y: string;
1624
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1497
1625
  kid?: string | undefined;
1498
1626
  ext?: boolean | undefined;
1499
1627
  use?: "sig" | "enc" | undefined;
@@ -1503,10 +1631,30 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1503
1631
  "x5t#S256"?: string | undefined;
1504
1632
  x5u?: string | undefined;
1505
1633
  d?: string | undefined;
1506
- } | {
1507
- kty: "oct";
1508
- k: string;
1509
- alg?: "HS256" | "HS384" | "HS512" | undefined;
1634
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1635
+ kty: z.ZodString;
1636
+ alg: z.ZodOptional<z.ZodString>;
1637
+ kid: z.ZodOptional<z.ZodString>;
1638
+ ext: z.ZodOptional<z.ZodBoolean>;
1639
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1640
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1641
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1642
+ x5t: z.ZodOptional<z.ZodString>;
1643
+ "x5t#S256": z.ZodOptional<z.ZodString>;
1644
+ x5u: z.ZodOptional<z.ZodString>;
1645
+ }, {
1646
+ kty: z.ZodLiteral<"EC">;
1647
+ alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
1648
+ crv: z.ZodEnum<["secp256k1"]>;
1649
+ x: z.ZodString;
1650
+ y: z.ZodString;
1651
+ d: z.ZodOptional<z.ZodString>;
1652
+ }>, "strip", z.ZodTypeAny, {
1653
+ kty: "EC";
1654
+ crv: "secp256k1";
1655
+ x: string;
1656
+ y: string;
1657
+ alg?: "ES256K" | undefined;
1510
1658
  kid?: string | undefined;
1511
1659
  ext?: boolean | undefined;
1512
1660
  use?: "sig" | "enc" | undefined;
@@ -1515,9 +1663,13 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1515
1663
  x5t?: string | undefined;
1516
1664
  "x5t#S256"?: string | undefined;
1517
1665
  x5u?: string | undefined;
1518
- } | {
1519
- kty: string;
1520
- alg?: string | undefined;
1666
+ d?: string | undefined;
1667
+ }, {
1668
+ kty: "EC";
1669
+ crv: "secp256k1";
1670
+ x: string;
1671
+ y: string;
1672
+ alg?: "ES256K" | undefined;
1521
1673
  kid?: string | undefined;
1522
1674
  ext?: boolean | undefined;
1523
1675
  use?: "sig" | "enc" | undefined;
@@ -1526,63 +1678,2325 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1526
1678
  x5t?: string | undefined;
1527
1679
  "x5t#S256"?: string | undefined;
1528
1680
  x5u?: string | undefined;
1529
- } | undefined;
1530
- jwe?: string | undefined;
1531
- jkt?: string | undefined;
1532
- osc?: string | undefined;
1533
- } | undefined;
1534
- at_hash?: string | undefined;
1535
- c_hash?: string | undefined;
1536
- s_hash?: string | undefined;
1537
- }, {
1538
- jti: string;
1539
- client_id: string;
1540
- sub: string;
1541
- nonce?: string | undefined;
1542
- scope?: string | undefined;
1543
- authorization_details?: z.objectInputType<{
1544
- type: z.ZodString;
1545
- locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1546
- actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1547
- datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1548
- identifier: z.ZodOptional<z.ZodString>;
1549
- privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1550
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1551
- email?: string | undefined;
1552
- auth_time?: number | undefined;
1553
- acr?: string | undefined;
1554
- name?: string | undefined;
1555
- family_name?: string | undefined;
1556
- given_name?: string | undefined;
1557
- middle_name?: string | undefined;
1558
- nickname?: string | undefined;
1559
- preferred_username?: string | undefined;
1560
- gender?: string | undefined;
1561
- picture?: string | undefined;
1562
- profile?: string | undefined;
1563
- website?: string | undefined;
1564
- birthdate?: string | undefined;
1565
- zoneinfo?: string | undefined;
1566
- locale?: string | undefined;
1567
- updated_at?: number | undefined;
1568
- email_verified?: boolean | undefined;
1569
- phone_number?: string | undefined;
1570
- phone_number_verified?: boolean | undefined;
1571
- address?: {
1681
+ d?: string | undefined;
1682
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1683
+ kty: z.ZodString;
1684
+ alg: z.ZodOptional<z.ZodString>;
1685
+ kid: z.ZodOptional<z.ZodString>;
1686
+ ext: z.ZodOptional<z.ZodBoolean>;
1687
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1688
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1689
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1690
+ x5t: z.ZodOptional<z.ZodString>;
1691
+ "x5t#S256": z.ZodOptional<z.ZodString>;
1692
+ x5u: z.ZodOptional<z.ZodString>;
1693
+ }, {
1694
+ kty: z.ZodLiteral<"OKP">;
1695
+ alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
1696
+ crv: z.ZodEnum<["Ed25519", "Ed448"]>;
1697
+ x: z.ZodString;
1698
+ d: z.ZodOptional<z.ZodString>;
1699
+ }>, "strip", z.ZodTypeAny, {
1700
+ kty: "OKP";
1701
+ crv: "Ed25519" | "Ed448";
1702
+ x: string;
1703
+ alg?: "EdDSA" | undefined;
1704
+ kid?: string | undefined;
1705
+ ext?: boolean | undefined;
1706
+ use?: "sig" | "enc" | undefined;
1707
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1708
+ x5c?: string[] | undefined;
1709
+ x5t?: string | undefined;
1710
+ "x5t#S256"?: string | undefined;
1711
+ x5u?: string | undefined;
1712
+ d?: string | undefined;
1713
+ }, {
1714
+ kty: "OKP";
1715
+ crv: "Ed25519" | "Ed448";
1716
+ x: string;
1717
+ alg?: "EdDSA" | undefined;
1718
+ kid?: string | undefined;
1719
+ ext?: boolean | undefined;
1720
+ use?: "sig" | "enc" | undefined;
1721
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1722
+ x5c?: string[] | undefined;
1723
+ x5t?: string | undefined;
1724
+ "x5t#S256"?: string | undefined;
1725
+ x5u?: string | undefined;
1726
+ d?: string | undefined;
1727
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1728
+ kty: z.ZodString;
1729
+ alg: z.ZodOptional<z.ZodString>;
1730
+ kid: z.ZodOptional<z.ZodString>;
1731
+ ext: z.ZodOptional<z.ZodBoolean>;
1732
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
1733
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
1734
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1735
+ x5t: z.ZodOptional<z.ZodString>;
1736
+ "x5t#S256": z.ZodOptional<z.ZodString>;
1737
+ x5u: z.ZodOptional<z.ZodString>;
1738
+ }, {
1739
+ kty: z.ZodLiteral<"oct">;
1740
+ alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
1741
+ k: z.ZodString;
1742
+ }>, "strip", z.ZodTypeAny, {
1743
+ kty: "oct";
1744
+ k: string;
1745
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1746
+ kid?: string | undefined;
1747
+ ext?: boolean | undefined;
1748
+ use?: "sig" | "enc" | undefined;
1749
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1750
+ x5c?: string[] | undefined;
1751
+ x5t?: string | undefined;
1752
+ "x5t#S256"?: string | undefined;
1753
+ x5u?: string | undefined;
1754
+ }, {
1755
+ kty: "oct";
1756
+ k: string;
1757
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1758
+ kid?: string | undefined;
1759
+ ext?: boolean | undefined;
1760
+ use?: "sig" | "enc" | undefined;
1761
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1762
+ x5c?: string[] | undefined;
1763
+ x5t?: string | undefined;
1764
+ "x5t#S256"?: string | undefined;
1765
+ x5u?: string | undefined;
1766
+ }>]>, {
1767
+ kty: "RSA";
1768
+ n: string;
1769
+ e: string;
1770
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1771
+ kid?: string | undefined;
1772
+ ext?: boolean | undefined;
1773
+ use?: "sig" | "enc" | undefined;
1774
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1775
+ x5c?: string[] | undefined;
1776
+ x5t?: string | undefined;
1777
+ "x5t#S256"?: string | undefined;
1778
+ x5u?: string | undefined;
1779
+ d?: string | undefined;
1780
+ p?: string | undefined;
1781
+ q?: string | undefined;
1782
+ dp?: string | undefined;
1783
+ dq?: string | undefined;
1784
+ qi?: string | undefined;
1785
+ oth?: [{
1786
+ d?: string | undefined;
1787
+ r?: string | undefined;
1788
+ t?: string | undefined;
1789
+ }, ...{
1790
+ d?: string | undefined;
1791
+ r?: string | undefined;
1792
+ t?: string | undefined;
1793
+ }[]] | undefined;
1794
+ } | {
1795
+ kty: "EC";
1796
+ crv: "P-256" | "P-384" | "P-521";
1797
+ x: string;
1798
+ y: string;
1799
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1800
+ kid?: string | undefined;
1801
+ ext?: boolean | undefined;
1802
+ use?: "sig" | "enc" | undefined;
1803
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1804
+ x5c?: string[] | undefined;
1805
+ x5t?: string | undefined;
1806
+ "x5t#S256"?: string | undefined;
1807
+ x5u?: string | undefined;
1808
+ d?: string | undefined;
1809
+ } | {
1810
+ kty: "EC";
1811
+ crv: "secp256k1";
1812
+ x: string;
1813
+ y: string;
1814
+ alg?: "ES256K" | undefined;
1815
+ kid?: string | undefined;
1816
+ ext?: boolean | undefined;
1817
+ use?: "sig" | "enc" | undefined;
1818
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1819
+ x5c?: string[] | undefined;
1820
+ x5t?: string | undefined;
1821
+ "x5t#S256"?: string | undefined;
1822
+ x5u?: string | undefined;
1823
+ d?: string | undefined;
1824
+ } | {
1825
+ kty: "OKP";
1826
+ crv: "Ed25519" | "Ed448";
1827
+ x: string;
1828
+ alg?: "EdDSA" | undefined;
1829
+ kid?: string | undefined;
1830
+ ext?: boolean | undefined;
1831
+ use?: "sig" | "enc" | undefined;
1832
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1833
+ x5c?: string[] | undefined;
1834
+ x5t?: string | undefined;
1835
+ "x5t#S256"?: string | undefined;
1836
+ x5u?: string | undefined;
1837
+ d?: string | undefined;
1838
+ } | {
1839
+ kty: "oct";
1840
+ k: string;
1841
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1842
+ kid?: string | undefined;
1843
+ ext?: boolean | undefined;
1844
+ use?: "sig" | "enc" | undefined;
1845
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1846
+ x5c?: string[] | undefined;
1847
+ x5t?: string | undefined;
1848
+ "x5t#S256"?: string | undefined;
1849
+ x5u?: string | undefined;
1850
+ } | {
1851
+ kty: string;
1852
+ alg?: string | undefined;
1853
+ kid?: string | undefined;
1854
+ ext?: boolean | undefined;
1855
+ use?: "sig" | "enc" | undefined;
1856
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1857
+ x5c?: string[] | undefined;
1858
+ x5t?: string | undefined;
1859
+ "x5t#S256"?: string | undefined;
1860
+ x5u?: string | undefined;
1861
+ }, {
1862
+ kty: "RSA";
1863
+ n: string;
1864
+ e: string;
1865
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1866
+ kid?: string | undefined;
1867
+ ext?: boolean | undefined;
1868
+ use?: "sig" | "enc" | undefined;
1869
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1870
+ x5c?: string[] | undefined;
1871
+ x5t?: string | undefined;
1872
+ "x5t#S256"?: string | undefined;
1873
+ x5u?: string | undefined;
1874
+ d?: string | undefined;
1875
+ p?: string | undefined;
1876
+ q?: string | undefined;
1877
+ dp?: string | undefined;
1878
+ dq?: string | undefined;
1879
+ qi?: string | undefined;
1880
+ oth?: [{
1881
+ d?: string | undefined;
1882
+ r?: string | undefined;
1883
+ t?: string | undefined;
1884
+ }, ...{
1885
+ d?: string | undefined;
1886
+ r?: string | undefined;
1887
+ t?: string | undefined;
1888
+ }[]] | undefined;
1889
+ } | {
1890
+ kty: "EC";
1891
+ crv: "P-256" | "P-384" | "P-521";
1892
+ x: string;
1893
+ y: string;
1894
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1895
+ kid?: string | undefined;
1896
+ ext?: boolean | undefined;
1897
+ use?: "sig" | "enc" | undefined;
1898
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1899
+ x5c?: string[] | undefined;
1900
+ x5t?: string | undefined;
1901
+ "x5t#S256"?: string | undefined;
1902
+ x5u?: string | undefined;
1903
+ d?: string | undefined;
1904
+ } | {
1905
+ kty: "EC";
1906
+ crv: "secp256k1";
1907
+ x: string;
1908
+ y: string;
1909
+ alg?: "ES256K" | undefined;
1910
+ kid?: string | undefined;
1911
+ ext?: boolean | undefined;
1912
+ use?: "sig" | "enc" | undefined;
1913
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1914
+ x5c?: string[] | undefined;
1915
+ x5t?: string | undefined;
1916
+ "x5t#S256"?: string | undefined;
1917
+ x5u?: string | undefined;
1918
+ d?: string | undefined;
1919
+ } | {
1920
+ kty: "OKP";
1921
+ crv: "Ed25519" | "Ed448";
1922
+ x: string;
1923
+ alg?: "EdDSA" | undefined;
1924
+ kid?: string | undefined;
1925
+ ext?: boolean | undefined;
1926
+ use?: "sig" | "enc" | undefined;
1927
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1928
+ x5c?: string[] | undefined;
1929
+ x5t?: string | undefined;
1930
+ "x5t#S256"?: string | undefined;
1931
+ x5u?: string | undefined;
1932
+ d?: string | undefined;
1933
+ } | {
1934
+ kty: "oct";
1935
+ k: string;
1936
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
1937
+ kid?: string | undefined;
1938
+ ext?: boolean | undefined;
1939
+ use?: "sig" | "enc" | undefined;
1940
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1941
+ x5c?: string[] | undefined;
1942
+ x5t?: string | undefined;
1943
+ "x5t#S256"?: string | undefined;
1944
+ x5u?: string | undefined;
1945
+ } | {
1946
+ kty: string;
1947
+ alg?: string | undefined;
1948
+ kid?: string | undefined;
1949
+ ext?: boolean | undefined;
1950
+ use?: "sig" | "enc" | undefined;
1951
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1952
+ x5c?: string[] | undefined;
1953
+ x5t?: string | undefined;
1954
+ "x5t#S256"?: string | undefined;
1955
+ x5u?: string | undefined;
1956
+ }>, {
1957
+ kty: "RSA";
1958
+ n: string;
1959
+ e: string;
1960
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
1961
+ kid?: string | undefined;
1962
+ ext?: boolean | undefined;
1963
+ use?: "sig" | "enc" | undefined;
1964
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1965
+ x5c?: string[] | undefined;
1966
+ x5t?: string | undefined;
1967
+ "x5t#S256"?: string | undefined;
1968
+ x5u?: string | undefined;
1969
+ d?: string | undefined;
1970
+ p?: string | undefined;
1971
+ q?: string | undefined;
1972
+ dp?: string | undefined;
1973
+ dq?: string | undefined;
1974
+ qi?: string | undefined;
1975
+ oth?: [{
1976
+ d?: string | undefined;
1977
+ r?: string | undefined;
1978
+ t?: string | undefined;
1979
+ }, ...{
1980
+ d?: string | undefined;
1981
+ r?: string | undefined;
1982
+ t?: string | undefined;
1983
+ }[]] | undefined;
1984
+ } | {
1985
+ kty: "EC";
1986
+ crv: "P-256" | "P-384" | "P-521";
1987
+ x: string;
1988
+ y: string;
1989
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
1990
+ kid?: string | undefined;
1991
+ ext?: boolean | undefined;
1992
+ use?: "sig" | "enc" | undefined;
1993
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1994
+ x5c?: string[] | undefined;
1995
+ x5t?: string | undefined;
1996
+ "x5t#S256"?: string | undefined;
1997
+ x5u?: string | undefined;
1998
+ d?: string | undefined;
1999
+ } | {
2000
+ kty: "EC";
2001
+ crv: "secp256k1";
2002
+ x: string;
2003
+ y: string;
2004
+ alg?: "ES256K" | undefined;
2005
+ kid?: string | undefined;
2006
+ ext?: boolean | undefined;
2007
+ use?: "sig" | "enc" | undefined;
2008
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2009
+ x5c?: string[] | undefined;
2010
+ x5t?: string | undefined;
2011
+ "x5t#S256"?: string | undefined;
2012
+ x5u?: string | undefined;
2013
+ d?: string | undefined;
2014
+ } | {
2015
+ kty: "OKP";
2016
+ crv: "Ed25519" | "Ed448";
2017
+ x: string;
2018
+ alg?: "EdDSA" | undefined;
2019
+ kid?: string | undefined;
2020
+ ext?: boolean | undefined;
2021
+ use?: "sig" | "enc" | undefined;
2022
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2023
+ x5c?: string[] | undefined;
2024
+ x5t?: string | undefined;
2025
+ "x5t#S256"?: string | undefined;
2026
+ x5u?: string | undefined;
2027
+ d?: string | undefined;
2028
+ } | {
2029
+ kty: "oct";
2030
+ k: string;
2031
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2032
+ kid?: string | undefined;
2033
+ ext?: boolean | undefined;
2034
+ use?: "sig" | "enc" | undefined;
2035
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2036
+ x5c?: string[] | undefined;
2037
+ x5t?: string | undefined;
2038
+ "x5t#S256"?: string | undefined;
2039
+ x5u?: string | undefined;
2040
+ } | {
2041
+ kty: string;
2042
+ alg?: string | undefined;
2043
+ kid?: string | undefined;
2044
+ ext?: boolean | undefined;
2045
+ use?: "sig" | "enc" | undefined;
2046
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2047
+ x5c?: string[] | undefined;
2048
+ x5t?: string | undefined;
2049
+ "x5t#S256"?: string | undefined;
2050
+ x5u?: string | undefined;
2051
+ }, {
2052
+ kty: "RSA";
2053
+ n: string;
2054
+ e: string;
2055
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2056
+ kid?: string | undefined;
2057
+ ext?: boolean | undefined;
2058
+ use?: "sig" | "enc" | undefined;
2059
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2060
+ x5c?: string[] | undefined;
2061
+ x5t?: string | undefined;
2062
+ "x5t#S256"?: string | undefined;
2063
+ x5u?: string | undefined;
2064
+ d?: string | undefined;
2065
+ p?: string | undefined;
2066
+ q?: string | undefined;
2067
+ dp?: string | undefined;
2068
+ dq?: string | undefined;
2069
+ qi?: string | undefined;
2070
+ oth?: [{
2071
+ d?: string | undefined;
2072
+ r?: string | undefined;
2073
+ t?: string | undefined;
2074
+ }, ...{
2075
+ d?: string | undefined;
2076
+ r?: string | undefined;
2077
+ t?: string | undefined;
2078
+ }[]] | undefined;
2079
+ } | {
2080
+ kty: "EC";
2081
+ crv: "P-256" | "P-384" | "P-521";
2082
+ x: string;
2083
+ y: string;
2084
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2085
+ kid?: string | undefined;
2086
+ ext?: boolean | undefined;
2087
+ use?: "sig" | "enc" | undefined;
2088
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2089
+ x5c?: string[] | undefined;
2090
+ x5t?: string | undefined;
2091
+ "x5t#S256"?: string | undefined;
2092
+ x5u?: string | undefined;
2093
+ d?: string | undefined;
2094
+ } | {
2095
+ kty: "EC";
2096
+ crv: "secp256k1";
2097
+ x: string;
2098
+ y: string;
2099
+ alg?: "ES256K" | undefined;
2100
+ kid?: string | undefined;
2101
+ ext?: boolean | undefined;
2102
+ use?: "sig" | "enc" | undefined;
2103
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2104
+ x5c?: string[] | undefined;
2105
+ x5t?: string | undefined;
2106
+ "x5t#S256"?: string | undefined;
2107
+ x5u?: string | undefined;
2108
+ d?: string | undefined;
2109
+ } | {
2110
+ kty: "OKP";
2111
+ crv: "Ed25519" | "Ed448";
2112
+ x: string;
2113
+ alg?: "EdDSA" | undefined;
2114
+ kid?: string | undefined;
2115
+ ext?: boolean | undefined;
2116
+ use?: "sig" | "enc" | undefined;
2117
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2118
+ x5c?: string[] | undefined;
2119
+ x5t?: string | undefined;
2120
+ "x5t#S256"?: string | undefined;
2121
+ x5u?: string | undefined;
2122
+ d?: string | undefined;
2123
+ } | {
2124
+ kty: "oct";
2125
+ k: string;
2126
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2127
+ kid?: string | undefined;
2128
+ ext?: boolean | undefined;
2129
+ use?: "sig" | "enc" | undefined;
2130
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2131
+ x5c?: string[] | undefined;
2132
+ x5t?: string | undefined;
2133
+ "x5t#S256"?: string | undefined;
2134
+ x5u?: string | undefined;
2135
+ } | {
2136
+ kty: string;
2137
+ alg?: string | undefined;
2138
+ kid?: string | undefined;
2139
+ ext?: boolean | undefined;
2140
+ use?: "sig" | "enc" | undefined;
2141
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2142
+ x5c?: string[] | undefined;
2143
+ x5t?: string | undefined;
2144
+ "x5t#S256"?: string | undefined;
2145
+ x5u?: string | undefined;
2146
+ }>, {
2147
+ kty: "RSA";
2148
+ n: string;
2149
+ e: string;
2150
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2151
+ kid?: string | undefined;
2152
+ ext?: boolean | undefined;
2153
+ use?: "sig" | "enc" | undefined;
2154
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2155
+ x5c?: string[] | undefined;
2156
+ x5t?: string | undefined;
2157
+ "x5t#S256"?: string | undefined;
2158
+ x5u?: string | undefined;
2159
+ d?: string | undefined;
2160
+ p?: string | undefined;
2161
+ q?: string | undefined;
2162
+ dp?: string | undefined;
2163
+ dq?: string | undefined;
2164
+ qi?: string | undefined;
2165
+ oth?: [{
2166
+ d?: string | undefined;
2167
+ r?: string | undefined;
2168
+ t?: string | undefined;
2169
+ }, ...{
2170
+ d?: string | undefined;
2171
+ r?: string | undefined;
2172
+ t?: string | undefined;
2173
+ }[]] | undefined;
2174
+ } | {
2175
+ kty: "EC";
2176
+ crv: "P-256" | "P-384" | "P-521";
2177
+ x: string;
2178
+ y: string;
2179
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2180
+ kid?: string | undefined;
2181
+ ext?: boolean | undefined;
2182
+ use?: "sig" | "enc" | undefined;
2183
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2184
+ x5c?: string[] | undefined;
2185
+ x5t?: string | undefined;
2186
+ "x5t#S256"?: string | undefined;
2187
+ x5u?: string | undefined;
2188
+ d?: string | undefined;
2189
+ } | {
2190
+ kty: "EC";
2191
+ crv: "secp256k1";
2192
+ x: string;
2193
+ y: string;
2194
+ alg?: "ES256K" | undefined;
2195
+ kid?: string | undefined;
2196
+ ext?: boolean | undefined;
2197
+ use?: "sig" | "enc" | undefined;
2198
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2199
+ x5c?: string[] | undefined;
2200
+ x5t?: string | undefined;
2201
+ "x5t#S256"?: string | undefined;
2202
+ x5u?: string | undefined;
2203
+ d?: string | undefined;
2204
+ } | {
2205
+ kty: "OKP";
2206
+ crv: "Ed25519" | "Ed448";
2207
+ x: string;
2208
+ alg?: "EdDSA" | undefined;
2209
+ kid?: string | undefined;
2210
+ ext?: boolean | undefined;
2211
+ use?: "sig" | "enc" | undefined;
2212
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2213
+ x5c?: string[] | undefined;
2214
+ x5t?: string | undefined;
2215
+ "x5t#S256"?: string | undefined;
2216
+ x5u?: string | undefined;
2217
+ d?: string | undefined;
2218
+ } | {
2219
+ kty: "oct";
2220
+ k: string;
2221
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2222
+ kid?: string | undefined;
2223
+ ext?: boolean | undefined;
2224
+ use?: "sig" | "enc" | undefined;
2225
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2226
+ x5c?: string[] | undefined;
2227
+ x5t?: string | undefined;
2228
+ "x5t#S256"?: string | undefined;
2229
+ x5u?: string | undefined;
2230
+ } | {
2231
+ kty: string;
2232
+ alg?: string | undefined;
2233
+ kid?: string | undefined;
2234
+ ext?: boolean | undefined;
2235
+ use?: "sig" | "enc" | undefined;
2236
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2237
+ x5c?: string[] | undefined;
2238
+ x5t?: string | undefined;
2239
+ "x5t#S256"?: string | undefined;
2240
+ x5u?: string | undefined;
2241
+ }, {
2242
+ kty: "RSA";
2243
+ n: string;
2244
+ e: string;
2245
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2246
+ kid?: string | undefined;
2247
+ ext?: boolean | undefined;
2248
+ use?: "sig" | "enc" | undefined;
2249
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2250
+ x5c?: string[] | undefined;
2251
+ x5t?: string | undefined;
2252
+ "x5t#S256"?: string | undefined;
2253
+ x5u?: string | undefined;
2254
+ d?: string | undefined;
2255
+ p?: string | undefined;
2256
+ q?: string | undefined;
2257
+ dp?: string | undefined;
2258
+ dq?: string | undefined;
2259
+ qi?: string | undefined;
2260
+ oth?: [{
2261
+ d?: string | undefined;
2262
+ r?: string | undefined;
2263
+ t?: string | undefined;
2264
+ }, ...{
2265
+ d?: string | undefined;
2266
+ r?: string | undefined;
2267
+ t?: string | undefined;
2268
+ }[]] | undefined;
2269
+ } | {
2270
+ kty: "EC";
2271
+ crv: "P-256" | "P-384" | "P-521";
2272
+ x: string;
2273
+ y: string;
2274
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2275
+ kid?: string | undefined;
2276
+ ext?: boolean | undefined;
2277
+ use?: "sig" | "enc" | undefined;
2278
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2279
+ x5c?: string[] | undefined;
2280
+ x5t?: string | undefined;
2281
+ "x5t#S256"?: string | undefined;
2282
+ x5u?: string | undefined;
2283
+ d?: string | undefined;
2284
+ } | {
2285
+ kty: "EC";
2286
+ crv: "secp256k1";
2287
+ x: string;
2288
+ y: string;
2289
+ alg?: "ES256K" | undefined;
2290
+ kid?: string | undefined;
2291
+ ext?: boolean | undefined;
2292
+ use?: "sig" | "enc" | undefined;
2293
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2294
+ x5c?: string[] | undefined;
2295
+ x5t?: string | undefined;
2296
+ "x5t#S256"?: string | undefined;
2297
+ x5u?: string | undefined;
2298
+ d?: string | undefined;
2299
+ } | {
2300
+ kty: "OKP";
2301
+ crv: "Ed25519" | "Ed448";
2302
+ x: string;
2303
+ alg?: "EdDSA" | undefined;
2304
+ kid?: string | undefined;
2305
+ ext?: boolean | undefined;
2306
+ use?: "sig" | "enc" | undefined;
2307
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2308
+ x5c?: string[] | undefined;
2309
+ x5t?: string | undefined;
2310
+ "x5t#S256"?: string | undefined;
2311
+ x5u?: string | undefined;
2312
+ d?: string | undefined;
2313
+ } | {
2314
+ kty: "oct";
2315
+ k: string;
2316
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2317
+ kid?: string | undefined;
2318
+ ext?: boolean | undefined;
2319
+ use?: "sig" | "enc" | undefined;
2320
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2321
+ x5c?: string[] | undefined;
2322
+ x5t?: string | undefined;
2323
+ "x5t#S256"?: string | undefined;
2324
+ x5u?: string | undefined;
2325
+ } | {
2326
+ kty: string;
2327
+ alg?: string | undefined;
2328
+ kid?: string | undefined;
2329
+ ext?: boolean | undefined;
2330
+ use?: "sig" | "enc" | undefined;
2331
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2332
+ x5c?: string[] | undefined;
2333
+ x5t?: string | undefined;
2334
+ "x5t#S256"?: string | undefined;
2335
+ x5u?: string | undefined;
2336
+ }>, {
2337
+ kty: "RSA";
2338
+ n: string;
2339
+ e: string;
2340
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2341
+ kid?: string | undefined;
2342
+ ext?: boolean | undefined;
2343
+ use?: "sig" | "enc" | undefined;
2344
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2345
+ x5c?: string[] | undefined;
2346
+ x5t?: string | undefined;
2347
+ "x5t#S256"?: string | undefined;
2348
+ x5u?: string | undefined;
2349
+ d?: string | undefined;
2350
+ p?: string | undefined;
2351
+ q?: string | undefined;
2352
+ dp?: string | undefined;
2353
+ dq?: string | undefined;
2354
+ qi?: string | undefined;
2355
+ oth?: [{
2356
+ d?: string | undefined;
2357
+ r?: string | undefined;
2358
+ t?: string | undefined;
2359
+ }, ...{
2360
+ d?: string | undefined;
2361
+ r?: string | undefined;
2362
+ t?: string | undefined;
2363
+ }[]] | undefined;
2364
+ } | {
2365
+ kty: "EC";
2366
+ crv: "P-256" | "P-384" | "P-521";
2367
+ x: string;
2368
+ y: string;
2369
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2370
+ kid?: string | undefined;
2371
+ ext?: boolean | undefined;
2372
+ use?: "sig" | "enc" | undefined;
2373
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2374
+ x5c?: string[] | undefined;
2375
+ x5t?: string | undefined;
2376
+ "x5t#S256"?: string | undefined;
2377
+ x5u?: string | undefined;
2378
+ d?: string | undefined;
2379
+ } | {
2380
+ kty: "EC";
2381
+ crv: "secp256k1";
2382
+ x: string;
2383
+ y: string;
2384
+ alg?: "ES256K" | 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: "OKP";
2396
+ crv: "Ed25519" | "Ed448";
2397
+ x: string;
2398
+ alg?: "EdDSA" | undefined;
2399
+ kid?: string | undefined;
2400
+ ext?: boolean | undefined;
2401
+ use?: "sig" | "enc" | undefined;
2402
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2403
+ x5c?: string[] | undefined;
2404
+ x5t?: string | undefined;
2405
+ "x5t#S256"?: string | undefined;
2406
+ x5u?: string | undefined;
2407
+ d?: string | undefined;
2408
+ } | {
2409
+ kty: "oct";
2410
+ k: string;
2411
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2412
+ kid?: string | undefined;
2413
+ ext?: boolean | undefined;
2414
+ use?: "sig" | "enc" | undefined;
2415
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2416
+ x5c?: string[] | undefined;
2417
+ x5t?: string | undefined;
2418
+ "x5t#S256"?: string | undefined;
2419
+ x5u?: string | undefined;
2420
+ } | {
2421
+ kty: string;
2422
+ alg?: string | undefined;
2423
+ kid?: string | undefined;
2424
+ ext?: boolean | undefined;
2425
+ use?: "sig" | "enc" | undefined;
2426
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2427
+ x5c?: string[] | undefined;
2428
+ x5t?: string | undefined;
2429
+ "x5t#S256"?: string | undefined;
2430
+ x5u?: string | undefined;
2431
+ }, {
2432
+ kty: "RSA";
2433
+ n: string;
2434
+ e: string;
2435
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2436
+ kid?: string | undefined;
2437
+ ext?: boolean | undefined;
2438
+ use?: "sig" | "enc" | undefined;
2439
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2440
+ x5c?: string[] | undefined;
2441
+ x5t?: string | undefined;
2442
+ "x5t#S256"?: string | undefined;
2443
+ x5u?: string | undefined;
2444
+ d?: string | undefined;
2445
+ p?: string | undefined;
2446
+ q?: string | undefined;
2447
+ dp?: string | undefined;
2448
+ dq?: string | undefined;
2449
+ qi?: string | undefined;
2450
+ oth?: [{
2451
+ d?: string | undefined;
2452
+ r?: string | undefined;
2453
+ t?: string | undefined;
2454
+ }, ...{
2455
+ d?: string | undefined;
2456
+ r?: string | undefined;
2457
+ t?: string | undefined;
2458
+ }[]] | undefined;
2459
+ } | {
2460
+ kty: "EC";
2461
+ crv: "P-256" | "P-384" | "P-521";
2462
+ x: string;
2463
+ y: string;
2464
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2465
+ kid?: string | undefined;
2466
+ ext?: boolean | undefined;
2467
+ use?: "sig" | "enc" | undefined;
2468
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2469
+ x5c?: string[] | undefined;
2470
+ x5t?: string | undefined;
2471
+ "x5t#S256"?: string | undefined;
2472
+ x5u?: string | undefined;
2473
+ d?: string | undefined;
2474
+ } | {
2475
+ kty: "EC";
2476
+ crv: "secp256k1";
2477
+ x: string;
2478
+ y: string;
2479
+ alg?: "ES256K" | undefined;
2480
+ kid?: string | undefined;
2481
+ ext?: boolean | undefined;
2482
+ use?: "sig" | "enc" | undefined;
2483
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2484
+ x5c?: string[] | undefined;
2485
+ x5t?: string | undefined;
2486
+ "x5t#S256"?: string | undefined;
2487
+ x5u?: string | undefined;
2488
+ d?: string | undefined;
2489
+ } | {
2490
+ kty: "OKP";
2491
+ crv: "Ed25519" | "Ed448";
2492
+ x: string;
2493
+ alg?: "EdDSA" | undefined;
2494
+ kid?: string | undefined;
2495
+ ext?: boolean | undefined;
2496
+ use?: "sig" | "enc" | undefined;
2497
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2498
+ x5c?: string[] | undefined;
2499
+ x5t?: string | undefined;
2500
+ "x5t#S256"?: string | undefined;
2501
+ x5u?: string | undefined;
2502
+ d?: string | undefined;
2503
+ } | {
2504
+ kty: "oct";
2505
+ k: string;
2506
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2507
+ kid?: string | undefined;
2508
+ ext?: boolean | undefined;
2509
+ use?: "sig" | "enc" | undefined;
2510
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2511
+ x5c?: string[] | undefined;
2512
+ x5t?: string | undefined;
2513
+ "x5t#S256"?: string | undefined;
2514
+ x5u?: string | undefined;
2515
+ } | {
2516
+ kty: string;
2517
+ alg?: string | undefined;
2518
+ kid?: string | undefined;
2519
+ ext?: boolean | undefined;
2520
+ use?: "sig" | "enc" | undefined;
2521
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2522
+ x5c?: string[] | undefined;
2523
+ x5t?: string | undefined;
2524
+ "x5t#S256"?: string | undefined;
2525
+ x5u?: string | undefined;
2526
+ }>>;
2527
+ jwe: z.ZodOptional<z.ZodString>;
2528
+ jku: z.ZodOptional<z.ZodString>;
2529
+ jkt: z.ZodOptional<z.ZodString>;
2530
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
2531
+ osc: z.ZodOptional<z.ZodString>;
2532
+ }, "strip", z.ZodTypeAny, {
2533
+ kid?: string | undefined;
2534
+ 'x5t#S256'?: string | undefined;
2535
+ jku?: string | undefined;
2536
+ jwk?: {
2537
+ kty: "RSA";
2538
+ n: string;
2539
+ e: string;
2540
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2541
+ kid?: string | undefined;
2542
+ ext?: boolean | undefined;
2543
+ use?: "sig" | "enc" | undefined;
2544
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2545
+ x5c?: string[] | undefined;
2546
+ x5t?: string | undefined;
2547
+ "x5t#S256"?: string | undefined;
2548
+ x5u?: string | undefined;
2549
+ d?: string | undefined;
2550
+ p?: string | undefined;
2551
+ q?: string | undefined;
2552
+ dp?: string | undefined;
2553
+ dq?: string | undefined;
2554
+ qi?: string | undefined;
2555
+ oth?: [{
2556
+ d?: string | undefined;
2557
+ r?: string | undefined;
2558
+ t?: string | undefined;
2559
+ }, ...{
2560
+ d?: string | undefined;
2561
+ r?: string | undefined;
2562
+ t?: string | undefined;
2563
+ }[]] | undefined;
2564
+ } | {
2565
+ kty: "EC";
2566
+ crv: "P-256" | "P-384" | "P-521";
2567
+ x: string;
2568
+ y: string;
2569
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2570
+ kid?: string | undefined;
2571
+ ext?: boolean | undefined;
2572
+ use?: "sig" | "enc" | undefined;
2573
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2574
+ x5c?: string[] | undefined;
2575
+ x5t?: string | undefined;
2576
+ "x5t#S256"?: string | undefined;
2577
+ x5u?: string | undefined;
2578
+ d?: string | undefined;
2579
+ } | {
2580
+ kty: "EC";
2581
+ crv: "secp256k1";
2582
+ x: string;
2583
+ y: string;
2584
+ alg?: "ES256K" | undefined;
2585
+ kid?: string | undefined;
2586
+ ext?: boolean | undefined;
2587
+ use?: "sig" | "enc" | undefined;
2588
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2589
+ x5c?: string[] | undefined;
2590
+ x5t?: string | undefined;
2591
+ "x5t#S256"?: string | undefined;
2592
+ x5u?: string | undefined;
2593
+ d?: string | undefined;
2594
+ } | {
2595
+ kty: "OKP";
2596
+ crv: "Ed25519" | "Ed448";
2597
+ x: string;
2598
+ alg?: "EdDSA" | undefined;
2599
+ kid?: string | undefined;
2600
+ ext?: boolean | undefined;
2601
+ use?: "sig" | "enc" | undefined;
2602
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2603
+ x5c?: string[] | undefined;
2604
+ x5t?: string | undefined;
2605
+ "x5t#S256"?: string | undefined;
2606
+ x5u?: string | undefined;
2607
+ d?: string | undefined;
2608
+ } | {
2609
+ kty: "oct";
2610
+ k: string;
2611
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2612
+ kid?: string | undefined;
2613
+ ext?: boolean | undefined;
2614
+ use?: "sig" | "enc" | undefined;
2615
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2616
+ x5c?: string[] | undefined;
2617
+ x5t?: string | undefined;
2618
+ "x5t#S256"?: string | undefined;
2619
+ x5u?: string | undefined;
2620
+ } | {
2621
+ kty: string;
2622
+ alg?: string | undefined;
2623
+ kid?: string | undefined;
2624
+ ext?: boolean | undefined;
2625
+ use?: "sig" | "enc" | undefined;
2626
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2627
+ x5c?: string[] | undefined;
2628
+ x5t?: string | undefined;
2629
+ "x5t#S256"?: string | undefined;
2630
+ x5u?: string | undefined;
2631
+ } | undefined;
2632
+ jwe?: string | undefined;
2633
+ jkt?: string | undefined;
2634
+ osc?: string | undefined;
2635
+ }, {
2636
+ kid?: string | undefined;
2637
+ 'x5t#S256'?: string | undefined;
2638
+ jku?: string | undefined;
2639
+ jwk?: {
2640
+ kty: "RSA";
2641
+ n: string;
2642
+ e: string;
2643
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2644
+ kid?: string | undefined;
2645
+ ext?: boolean | undefined;
2646
+ use?: "sig" | "enc" | undefined;
2647
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2648
+ x5c?: string[] | undefined;
2649
+ x5t?: string | undefined;
2650
+ "x5t#S256"?: string | undefined;
2651
+ x5u?: string | undefined;
2652
+ d?: string | undefined;
2653
+ p?: string | undefined;
2654
+ q?: string | undefined;
2655
+ dp?: string | undefined;
2656
+ dq?: string | undefined;
2657
+ qi?: string | undefined;
2658
+ oth?: [{
2659
+ d?: string | undefined;
2660
+ r?: string | undefined;
2661
+ t?: string | undefined;
2662
+ }, ...{
2663
+ d?: string | undefined;
2664
+ r?: string | undefined;
2665
+ t?: string | undefined;
2666
+ }[]] | undefined;
2667
+ } | {
2668
+ kty: "EC";
2669
+ crv: "P-256" | "P-384" | "P-521";
2670
+ x: string;
2671
+ y: string;
2672
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2673
+ kid?: string | undefined;
2674
+ ext?: boolean | undefined;
2675
+ use?: "sig" | "enc" | undefined;
2676
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2677
+ x5c?: string[] | undefined;
2678
+ x5t?: string | undefined;
2679
+ "x5t#S256"?: string | undefined;
2680
+ x5u?: string | undefined;
2681
+ d?: string | undefined;
2682
+ } | {
2683
+ kty: "EC";
2684
+ crv: "secp256k1";
2685
+ x: string;
2686
+ y: string;
2687
+ alg?: "ES256K" | undefined;
2688
+ kid?: string | undefined;
2689
+ ext?: boolean | undefined;
2690
+ use?: "sig" | "enc" | undefined;
2691
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2692
+ x5c?: string[] | undefined;
2693
+ x5t?: string | undefined;
2694
+ "x5t#S256"?: string | undefined;
2695
+ x5u?: string | undefined;
2696
+ d?: string | undefined;
2697
+ } | {
2698
+ kty: "OKP";
2699
+ crv: "Ed25519" | "Ed448";
2700
+ x: string;
2701
+ alg?: "EdDSA" | undefined;
2702
+ kid?: string | undefined;
2703
+ ext?: boolean | undefined;
2704
+ use?: "sig" | "enc" | undefined;
2705
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2706
+ x5c?: string[] | undefined;
2707
+ x5t?: string | undefined;
2708
+ "x5t#S256"?: string | undefined;
2709
+ x5u?: string | undefined;
2710
+ d?: string | undefined;
2711
+ } | {
2712
+ kty: "oct";
2713
+ k: string;
2714
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
2715
+ kid?: string | undefined;
2716
+ ext?: boolean | undefined;
2717
+ use?: "sig" | "enc" | undefined;
2718
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2719
+ x5c?: string[] | undefined;
2720
+ x5t?: string | undefined;
2721
+ "x5t#S256"?: string | undefined;
2722
+ x5u?: string | undefined;
2723
+ } | {
2724
+ kty: string;
2725
+ alg?: string | undefined;
2726
+ kid?: string | undefined;
2727
+ ext?: boolean | undefined;
2728
+ use?: "sig" | "enc" | undefined;
2729
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2730
+ x5c?: string[] | undefined;
2731
+ x5t?: string | undefined;
2732
+ "x5t#S256"?: string | undefined;
2733
+ x5u?: string | undefined;
2734
+ } | undefined;
2735
+ jwe?: string | undefined;
2736
+ jkt?: string | undefined;
2737
+ osc?: string | undefined;
2738
+ }>>>;
2739
+ at_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2740
+ c_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2741
+ s_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2742
+ }, {
2743
+ jti: z.ZodEffects<z.ZodString, `tok-${string}`, string>;
2744
+ sub: z.ZodString;
2745
+ client_id: z.ZodString;
2746
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
2747
+ nonce: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2748
+ jti: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2749
+ client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2750
+ scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2751
+ authorization_details: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
2752
+ type: z.ZodString;
2753
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2754
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2755
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2756
+ identifier: z.ZodOptional<z.ZodString>;
2757
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2758
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2759
+ type: z.ZodString;
2760
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2761
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2762
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2763
+ identifier: z.ZodOptional<z.ZodString>;
2764
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2765
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2766
+ type: z.ZodString;
2767
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2768
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2769
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2770
+ identifier: z.ZodOptional<z.ZodString>;
2771
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2772
+ }, z.ZodTypeAny, "passthrough">>, "many">>>;
2773
+ email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2774
+ auth_time: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2775
+ acr: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2776
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2777
+ family_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2778
+ given_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2779
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2780
+ nickname: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2781
+ preferred_username: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2782
+ gender: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2783
+ picture: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2784
+ profile: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2785
+ website: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2786
+ birthdate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2787
+ zoneinfo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2788
+ locale: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2789
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2790
+ email_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2791
+ phone_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2792
+ phone_number_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2793
+ address: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2794
+ formatted: z.ZodOptional<z.ZodString>;
2795
+ street_address: z.ZodOptional<z.ZodString>;
2796
+ locality: z.ZodOptional<z.ZodString>;
2797
+ region: z.ZodOptional<z.ZodString>;
2798
+ postal_code: z.ZodOptional<z.ZodString>;
2799
+ country: z.ZodOptional<z.ZodString>;
2800
+ }, "strip", z.ZodTypeAny, {
2801
+ formatted?: string | undefined;
2802
+ street_address?: string | undefined;
2803
+ locality?: string | undefined;
2804
+ region?: string | undefined;
2805
+ postal_code?: string | undefined;
2806
+ country?: string | undefined;
2807
+ }, {
1572
2808
  formatted?: string | undefined;
1573
2809
  street_address?: string | undefined;
1574
2810
  locality?: string | undefined;
1575
2811
  region?: string | undefined;
1576
2812
  postal_code?: string | undefined;
1577
2813
  country?: string | undefined;
1578
- } | undefined;
1579
- htm?: string | undefined;
1580
- htu?: string | undefined;
1581
- ath?: string | undefined;
1582
- nbf?: number | undefined;
1583
- azp?: string | undefined;
1584
- amr?: string[] | undefined;
1585
- cnf?: {
2814
+ }>>>;
2815
+ htm: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2816
+ htu: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2817
+ ath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2818
+ sub: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2819
+ nbf: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2820
+ azp: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2821
+ amr: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2822
+ cnf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2823
+ kid: z.ZodOptional<z.ZodString>;
2824
+ jwk: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2825
+ kty: z.ZodString;
2826
+ alg: z.ZodOptional<z.ZodString>;
2827
+ kid: z.ZodOptional<z.ZodString>;
2828
+ ext: z.ZodOptional<z.ZodBoolean>;
2829
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2830
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
2831
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2832
+ x5t: z.ZodOptional<z.ZodString>;
2833
+ "x5t#S256": z.ZodOptional<z.ZodString>;
2834
+ x5u: z.ZodOptional<z.ZodString>;
2835
+ }, {
2836
+ kty: z.ZodEffects<z.ZodString, string, string>;
2837
+ }>, "strip", z.ZodTypeAny, {
2838
+ kty: string;
2839
+ alg?: string | undefined;
2840
+ kid?: string | undefined;
2841
+ ext?: boolean | undefined;
2842
+ use?: "sig" | "enc" | undefined;
2843
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2844
+ x5c?: string[] | undefined;
2845
+ x5t?: string | undefined;
2846
+ "x5t#S256"?: string | undefined;
2847
+ x5u?: string | undefined;
2848
+ }, {
2849
+ kty: string;
2850
+ alg?: string | undefined;
2851
+ kid?: string | undefined;
2852
+ ext?: boolean | undefined;
2853
+ use?: "sig" | "enc" | undefined;
2854
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2855
+ x5c?: string[] | undefined;
2856
+ x5t?: string | undefined;
2857
+ "x5t#S256"?: string | undefined;
2858
+ x5u?: string | undefined;
2859
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2860
+ kty: z.ZodString;
2861
+ alg: z.ZodOptional<z.ZodString>;
2862
+ kid: z.ZodOptional<z.ZodString>;
2863
+ ext: z.ZodOptional<z.ZodBoolean>;
2864
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2865
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
2866
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2867
+ x5t: z.ZodOptional<z.ZodString>;
2868
+ "x5t#S256": z.ZodOptional<z.ZodString>;
2869
+ x5u: z.ZodOptional<z.ZodString>;
2870
+ }, {
2871
+ kty: z.ZodLiteral<"RSA">;
2872
+ alg: z.ZodOptional<z.ZodEnum<["RS256", "RS384", "RS512", "PS256", "PS384", "PS512"]>>;
2873
+ n: z.ZodString;
2874
+ e: z.ZodString;
2875
+ d: z.ZodOptional<z.ZodString>;
2876
+ p: z.ZodOptional<z.ZodString>;
2877
+ q: z.ZodOptional<z.ZodString>;
2878
+ dp: z.ZodOptional<z.ZodString>;
2879
+ dq: z.ZodOptional<z.ZodString>;
2880
+ qi: z.ZodOptional<z.ZodString>;
2881
+ oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
2882
+ r: z.ZodOptional<z.ZodString>;
2883
+ d: z.ZodOptional<z.ZodString>;
2884
+ t: z.ZodOptional<z.ZodString>;
2885
+ }, "strip", z.ZodTypeAny, {
2886
+ d?: string | undefined;
2887
+ r?: string | undefined;
2888
+ t?: string | undefined;
2889
+ }, {
2890
+ d?: string | undefined;
2891
+ r?: string | undefined;
2892
+ t?: string | undefined;
2893
+ }>, "atleastone">>;
2894
+ }>, "strip", z.ZodTypeAny, {
2895
+ kty: "RSA";
2896
+ n: string;
2897
+ e: string;
2898
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2899
+ kid?: string | undefined;
2900
+ ext?: boolean | undefined;
2901
+ use?: "sig" | "enc" | undefined;
2902
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2903
+ x5c?: string[] | undefined;
2904
+ x5t?: string | undefined;
2905
+ "x5t#S256"?: string | undefined;
2906
+ x5u?: string | undefined;
2907
+ d?: string | undefined;
2908
+ p?: string | undefined;
2909
+ q?: string | undefined;
2910
+ dp?: string | undefined;
2911
+ dq?: string | undefined;
2912
+ qi?: string | undefined;
2913
+ oth?: [{
2914
+ d?: string | undefined;
2915
+ r?: string | undefined;
2916
+ t?: string | undefined;
2917
+ }, ...{
2918
+ d?: string | undefined;
2919
+ r?: string | undefined;
2920
+ t?: string | undefined;
2921
+ }[]] | undefined;
2922
+ }, {
2923
+ kty: "RSA";
2924
+ n: string;
2925
+ e: string;
2926
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
2927
+ kid?: string | undefined;
2928
+ ext?: boolean | undefined;
2929
+ use?: "sig" | "enc" | undefined;
2930
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2931
+ x5c?: string[] | undefined;
2932
+ x5t?: string | undefined;
2933
+ "x5t#S256"?: string | undefined;
2934
+ x5u?: string | undefined;
2935
+ d?: string | undefined;
2936
+ p?: string | undefined;
2937
+ q?: string | undefined;
2938
+ dp?: string | undefined;
2939
+ dq?: string | undefined;
2940
+ qi?: string | undefined;
2941
+ oth?: [{
2942
+ d?: string | undefined;
2943
+ r?: string | undefined;
2944
+ t?: string | undefined;
2945
+ }, ...{
2946
+ d?: string | undefined;
2947
+ r?: string | undefined;
2948
+ t?: string | undefined;
2949
+ }[]] | undefined;
2950
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2951
+ kty: z.ZodString;
2952
+ alg: z.ZodOptional<z.ZodString>;
2953
+ kid: z.ZodOptional<z.ZodString>;
2954
+ ext: z.ZodOptional<z.ZodBoolean>;
2955
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
2956
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
2957
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2958
+ x5t: z.ZodOptional<z.ZodString>;
2959
+ "x5t#S256": z.ZodOptional<z.ZodString>;
2960
+ x5u: z.ZodOptional<z.ZodString>;
2961
+ }, {
2962
+ kty: z.ZodLiteral<"EC">;
2963
+ alg: z.ZodOptional<z.ZodEnum<["ES256", "ES384", "ES512"]>>;
2964
+ crv: z.ZodEnum<["P-256", "P-384", "P-521"]>;
2965
+ x: z.ZodString;
2966
+ y: z.ZodString;
2967
+ d: z.ZodOptional<z.ZodString>;
2968
+ }>, "strip", z.ZodTypeAny, {
2969
+ kty: "EC";
2970
+ crv: "P-256" | "P-384" | "P-521";
2971
+ x: string;
2972
+ y: string;
2973
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2974
+ kid?: string | undefined;
2975
+ ext?: boolean | undefined;
2976
+ use?: "sig" | "enc" | undefined;
2977
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2978
+ x5c?: string[] | undefined;
2979
+ x5t?: string | undefined;
2980
+ "x5t#S256"?: string | undefined;
2981
+ x5u?: string | undefined;
2982
+ d?: string | undefined;
2983
+ }, {
2984
+ kty: "EC";
2985
+ crv: "P-256" | "P-384" | "P-521";
2986
+ x: string;
2987
+ y: string;
2988
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
2989
+ kid?: string | undefined;
2990
+ ext?: boolean | undefined;
2991
+ use?: "sig" | "enc" | undefined;
2992
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
2993
+ x5c?: string[] | undefined;
2994
+ x5t?: string | undefined;
2995
+ "x5t#S256"?: string | undefined;
2996
+ x5u?: string | undefined;
2997
+ d?: string | undefined;
2998
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2999
+ kty: z.ZodString;
3000
+ alg: z.ZodOptional<z.ZodString>;
3001
+ kid: z.ZodOptional<z.ZodString>;
3002
+ ext: z.ZodOptional<z.ZodBoolean>;
3003
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
3004
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
3005
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3006
+ x5t: z.ZodOptional<z.ZodString>;
3007
+ "x5t#S256": z.ZodOptional<z.ZodString>;
3008
+ x5u: z.ZodOptional<z.ZodString>;
3009
+ }, {
3010
+ kty: z.ZodLiteral<"EC">;
3011
+ alg: z.ZodOptional<z.ZodEnum<["ES256K"]>>;
3012
+ crv: z.ZodEnum<["secp256k1"]>;
3013
+ x: z.ZodString;
3014
+ y: z.ZodString;
3015
+ d: z.ZodOptional<z.ZodString>;
3016
+ }>, "strip", z.ZodTypeAny, {
3017
+ kty: "EC";
3018
+ crv: "secp256k1";
3019
+ x: string;
3020
+ y: string;
3021
+ alg?: "ES256K" | undefined;
3022
+ kid?: string | undefined;
3023
+ ext?: boolean | undefined;
3024
+ use?: "sig" | "enc" | undefined;
3025
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3026
+ x5c?: string[] | undefined;
3027
+ x5t?: string | undefined;
3028
+ "x5t#S256"?: string | undefined;
3029
+ x5u?: string | undefined;
3030
+ d?: string | undefined;
3031
+ }, {
3032
+ kty: "EC";
3033
+ crv: "secp256k1";
3034
+ x: string;
3035
+ y: string;
3036
+ alg?: "ES256K" | undefined;
3037
+ kid?: string | undefined;
3038
+ ext?: boolean | undefined;
3039
+ use?: "sig" | "enc" | undefined;
3040
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3041
+ x5c?: string[] | undefined;
3042
+ x5t?: string | undefined;
3043
+ "x5t#S256"?: string | undefined;
3044
+ x5u?: string | undefined;
3045
+ d?: string | undefined;
3046
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3047
+ kty: z.ZodString;
3048
+ alg: z.ZodOptional<z.ZodString>;
3049
+ kid: z.ZodOptional<z.ZodString>;
3050
+ ext: z.ZodOptional<z.ZodBoolean>;
3051
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
3052
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
3053
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3054
+ x5t: z.ZodOptional<z.ZodString>;
3055
+ "x5t#S256": z.ZodOptional<z.ZodString>;
3056
+ x5u: z.ZodOptional<z.ZodString>;
3057
+ }, {
3058
+ kty: z.ZodLiteral<"OKP">;
3059
+ alg: z.ZodOptional<z.ZodEnum<["EdDSA"]>>;
3060
+ crv: z.ZodEnum<["Ed25519", "Ed448"]>;
3061
+ x: z.ZodString;
3062
+ d: z.ZodOptional<z.ZodString>;
3063
+ }>, "strip", z.ZodTypeAny, {
3064
+ kty: "OKP";
3065
+ crv: "Ed25519" | "Ed448";
3066
+ x: string;
3067
+ alg?: "EdDSA" | undefined;
3068
+ kid?: string | undefined;
3069
+ ext?: boolean | undefined;
3070
+ use?: "sig" | "enc" | undefined;
3071
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3072
+ x5c?: string[] | undefined;
3073
+ x5t?: string | undefined;
3074
+ "x5t#S256"?: string | undefined;
3075
+ x5u?: string | undefined;
3076
+ d?: string | undefined;
3077
+ }, {
3078
+ kty: "OKP";
3079
+ crv: "Ed25519" | "Ed448";
3080
+ x: string;
3081
+ alg?: "EdDSA" | undefined;
3082
+ kid?: string | undefined;
3083
+ ext?: boolean | undefined;
3084
+ use?: "sig" | "enc" | undefined;
3085
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3086
+ x5c?: string[] | undefined;
3087
+ x5t?: string | undefined;
3088
+ "x5t#S256"?: string | undefined;
3089
+ x5u?: string | undefined;
3090
+ d?: string | undefined;
3091
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3092
+ kty: z.ZodString;
3093
+ alg: z.ZodOptional<z.ZodString>;
3094
+ kid: z.ZodOptional<z.ZodString>;
3095
+ ext: z.ZodOptional<z.ZodBoolean>;
3096
+ use: z.ZodOptional<z.ZodEnum<["sig", "enc"]>>;
3097
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
3098
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3099
+ x5t: z.ZodOptional<z.ZodString>;
3100
+ "x5t#S256": z.ZodOptional<z.ZodString>;
3101
+ x5u: z.ZodOptional<z.ZodString>;
3102
+ }, {
3103
+ kty: z.ZodLiteral<"oct">;
3104
+ alg: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512"]>>;
3105
+ k: z.ZodString;
3106
+ }>, "strip", z.ZodTypeAny, {
3107
+ kty: "oct";
3108
+ k: string;
3109
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3110
+ kid?: string | undefined;
3111
+ ext?: boolean | undefined;
3112
+ use?: "sig" | "enc" | undefined;
3113
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3114
+ x5c?: string[] | undefined;
3115
+ x5t?: string | undefined;
3116
+ "x5t#S256"?: string | undefined;
3117
+ x5u?: string | undefined;
3118
+ }, {
3119
+ kty: "oct";
3120
+ k: string;
3121
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3122
+ kid?: string | undefined;
3123
+ ext?: boolean | undefined;
3124
+ use?: "sig" | "enc" | undefined;
3125
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3126
+ x5c?: string[] | undefined;
3127
+ x5t?: string | undefined;
3128
+ "x5t#S256"?: string | undefined;
3129
+ x5u?: string | undefined;
3130
+ }>]>, {
3131
+ kty: "RSA";
3132
+ n: string;
3133
+ e: string;
3134
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
3135
+ kid?: string | undefined;
3136
+ ext?: boolean | undefined;
3137
+ use?: "sig" | "enc" | undefined;
3138
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3139
+ x5c?: string[] | undefined;
3140
+ x5t?: string | undefined;
3141
+ "x5t#S256"?: string | undefined;
3142
+ x5u?: string | undefined;
3143
+ d?: string | undefined;
3144
+ p?: string | undefined;
3145
+ q?: string | undefined;
3146
+ dp?: string | undefined;
3147
+ dq?: string | undefined;
3148
+ qi?: string | undefined;
3149
+ oth?: [{
3150
+ d?: string | undefined;
3151
+ r?: string | undefined;
3152
+ t?: string | undefined;
3153
+ }, ...{
3154
+ d?: string | undefined;
3155
+ r?: string | undefined;
3156
+ t?: string | undefined;
3157
+ }[]] | undefined;
3158
+ } | {
3159
+ kty: "EC";
3160
+ crv: "P-256" | "P-384" | "P-521";
3161
+ x: string;
3162
+ y: string;
3163
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
3164
+ kid?: string | undefined;
3165
+ ext?: boolean | undefined;
3166
+ use?: "sig" | "enc" | undefined;
3167
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3168
+ x5c?: string[] | undefined;
3169
+ x5t?: string | undefined;
3170
+ "x5t#S256"?: string | undefined;
3171
+ x5u?: string | undefined;
3172
+ d?: string | undefined;
3173
+ } | {
3174
+ kty: "EC";
3175
+ crv: "secp256k1";
3176
+ x: string;
3177
+ y: string;
3178
+ alg?: "ES256K" | undefined;
3179
+ kid?: string | undefined;
3180
+ ext?: boolean | undefined;
3181
+ use?: "sig" | "enc" | undefined;
3182
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3183
+ x5c?: string[] | undefined;
3184
+ x5t?: string | undefined;
3185
+ "x5t#S256"?: string | undefined;
3186
+ x5u?: string | undefined;
3187
+ d?: string | undefined;
3188
+ } | {
3189
+ kty: "OKP";
3190
+ crv: "Ed25519" | "Ed448";
3191
+ x: string;
3192
+ alg?: "EdDSA" | undefined;
3193
+ kid?: string | undefined;
3194
+ ext?: boolean | undefined;
3195
+ use?: "sig" | "enc" | undefined;
3196
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3197
+ x5c?: string[] | undefined;
3198
+ x5t?: string | undefined;
3199
+ "x5t#S256"?: string | undefined;
3200
+ x5u?: string | undefined;
3201
+ d?: string | undefined;
3202
+ } | {
3203
+ kty: "oct";
3204
+ k: string;
3205
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3206
+ kid?: string | undefined;
3207
+ ext?: boolean | undefined;
3208
+ use?: "sig" | "enc" | undefined;
3209
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3210
+ x5c?: string[] | undefined;
3211
+ x5t?: string | undefined;
3212
+ "x5t#S256"?: string | undefined;
3213
+ x5u?: string | undefined;
3214
+ } | {
3215
+ kty: string;
3216
+ alg?: string | undefined;
3217
+ kid?: string | undefined;
3218
+ ext?: boolean | undefined;
3219
+ use?: "sig" | "enc" | undefined;
3220
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3221
+ x5c?: string[] | undefined;
3222
+ x5t?: string | undefined;
3223
+ "x5t#S256"?: string | undefined;
3224
+ x5u?: string | undefined;
3225
+ }, {
3226
+ kty: "RSA";
3227
+ n: string;
3228
+ e: string;
3229
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
3230
+ kid?: string | undefined;
3231
+ ext?: boolean | undefined;
3232
+ use?: "sig" | "enc" | undefined;
3233
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3234
+ x5c?: string[] | undefined;
3235
+ x5t?: string | undefined;
3236
+ "x5t#S256"?: string | undefined;
3237
+ x5u?: string | undefined;
3238
+ d?: string | undefined;
3239
+ p?: string | undefined;
3240
+ q?: string | undefined;
3241
+ dp?: string | undefined;
3242
+ dq?: string | undefined;
3243
+ qi?: string | undefined;
3244
+ oth?: [{
3245
+ d?: string | undefined;
3246
+ r?: string | undefined;
3247
+ t?: string | undefined;
3248
+ }, ...{
3249
+ d?: string | undefined;
3250
+ r?: string | undefined;
3251
+ t?: string | undefined;
3252
+ }[]] | undefined;
3253
+ } | {
3254
+ kty: "EC";
3255
+ crv: "P-256" | "P-384" | "P-521";
3256
+ x: string;
3257
+ y: string;
3258
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
3259
+ kid?: string | undefined;
3260
+ ext?: boolean | undefined;
3261
+ use?: "sig" | "enc" | undefined;
3262
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3263
+ x5c?: string[] | undefined;
3264
+ x5t?: string | undefined;
3265
+ "x5t#S256"?: string | undefined;
3266
+ x5u?: string | undefined;
3267
+ d?: string | undefined;
3268
+ } | {
3269
+ kty: "EC";
3270
+ crv: "secp256k1";
3271
+ x: string;
3272
+ y: string;
3273
+ alg?: "ES256K" | undefined;
3274
+ kid?: string | undefined;
3275
+ ext?: boolean | undefined;
3276
+ use?: "sig" | "enc" | undefined;
3277
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3278
+ x5c?: string[] | undefined;
3279
+ x5t?: string | undefined;
3280
+ "x5t#S256"?: string | undefined;
3281
+ x5u?: string | undefined;
3282
+ d?: string | undefined;
3283
+ } | {
3284
+ kty: "OKP";
3285
+ crv: "Ed25519" | "Ed448";
3286
+ x: string;
3287
+ alg?: "EdDSA" | undefined;
3288
+ kid?: string | undefined;
3289
+ ext?: boolean | undefined;
3290
+ use?: "sig" | "enc" | undefined;
3291
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3292
+ x5c?: string[] | undefined;
3293
+ x5t?: string | undefined;
3294
+ "x5t#S256"?: string | undefined;
3295
+ x5u?: string | undefined;
3296
+ d?: string | undefined;
3297
+ } | {
3298
+ kty: "oct";
3299
+ k: string;
3300
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3301
+ kid?: string | undefined;
3302
+ ext?: boolean | undefined;
3303
+ use?: "sig" | "enc" | undefined;
3304
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3305
+ x5c?: string[] | undefined;
3306
+ x5t?: string | undefined;
3307
+ "x5t#S256"?: string | undefined;
3308
+ x5u?: string | undefined;
3309
+ } | {
3310
+ kty: string;
3311
+ alg?: string | undefined;
3312
+ kid?: string | undefined;
3313
+ ext?: boolean | undefined;
3314
+ use?: "sig" | "enc" | undefined;
3315
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3316
+ x5c?: string[] | undefined;
3317
+ x5t?: string | undefined;
3318
+ "x5t#S256"?: string | undefined;
3319
+ x5u?: string | undefined;
3320
+ }>, {
3321
+ kty: "RSA";
3322
+ n: string;
3323
+ e: string;
3324
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
3325
+ kid?: string | undefined;
3326
+ ext?: boolean | undefined;
3327
+ use?: "sig" | "enc" | undefined;
3328
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3329
+ x5c?: string[] | undefined;
3330
+ x5t?: string | undefined;
3331
+ "x5t#S256"?: string | undefined;
3332
+ x5u?: string | undefined;
3333
+ d?: string | undefined;
3334
+ p?: string | undefined;
3335
+ q?: string | undefined;
3336
+ dp?: string | undefined;
3337
+ dq?: string | undefined;
3338
+ qi?: string | undefined;
3339
+ oth?: [{
3340
+ d?: string | undefined;
3341
+ r?: string | undefined;
3342
+ t?: string | undefined;
3343
+ }, ...{
3344
+ d?: string | undefined;
3345
+ r?: string | undefined;
3346
+ t?: string | undefined;
3347
+ }[]] | undefined;
3348
+ } | {
3349
+ kty: "EC";
3350
+ crv: "P-256" | "P-384" | "P-521";
3351
+ x: string;
3352
+ y: string;
3353
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
3354
+ kid?: string | undefined;
3355
+ ext?: boolean | undefined;
3356
+ use?: "sig" | "enc" | undefined;
3357
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3358
+ x5c?: string[] | undefined;
3359
+ x5t?: string | undefined;
3360
+ "x5t#S256"?: string | undefined;
3361
+ x5u?: string | undefined;
3362
+ d?: string | undefined;
3363
+ } | {
3364
+ kty: "EC";
3365
+ crv: "secp256k1";
3366
+ x: string;
3367
+ y: string;
3368
+ alg?: "ES256K" | undefined;
3369
+ kid?: string | undefined;
3370
+ ext?: boolean | undefined;
3371
+ use?: "sig" | "enc" | undefined;
3372
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3373
+ x5c?: string[] | undefined;
3374
+ x5t?: string | undefined;
3375
+ "x5t#S256"?: string | undefined;
3376
+ x5u?: string | undefined;
3377
+ d?: string | undefined;
3378
+ } | {
3379
+ kty: "OKP";
3380
+ crv: "Ed25519" | "Ed448";
3381
+ x: string;
3382
+ alg?: "EdDSA" | undefined;
3383
+ kid?: string | undefined;
3384
+ ext?: boolean | undefined;
3385
+ use?: "sig" | "enc" | undefined;
3386
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3387
+ x5c?: string[] | undefined;
3388
+ x5t?: string | undefined;
3389
+ "x5t#S256"?: string | undefined;
3390
+ x5u?: string | undefined;
3391
+ d?: string | undefined;
3392
+ } | {
3393
+ kty: "oct";
3394
+ k: string;
3395
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3396
+ kid?: string | undefined;
3397
+ ext?: boolean | undefined;
3398
+ use?: "sig" | "enc" | undefined;
3399
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3400
+ x5c?: string[] | undefined;
3401
+ x5t?: string | undefined;
3402
+ "x5t#S256"?: string | undefined;
3403
+ x5u?: string | undefined;
3404
+ } | {
3405
+ kty: string;
3406
+ alg?: string | undefined;
3407
+ kid?: string | undefined;
3408
+ ext?: boolean | undefined;
3409
+ use?: "sig" | "enc" | undefined;
3410
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3411
+ x5c?: string[] | undefined;
3412
+ x5t?: string | undefined;
3413
+ "x5t#S256"?: string | undefined;
3414
+ x5u?: string | undefined;
3415
+ }, {
3416
+ kty: "RSA";
3417
+ n: string;
3418
+ e: string;
3419
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
3420
+ kid?: string | undefined;
3421
+ ext?: boolean | undefined;
3422
+ use?: "sig" | "enc" | undefined;
3423
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3424
+ x5c?: string[] | undefined;
3425
+ x5t?: string | undefined;
3426
+ "x5t#S256"?: string | undefined;
3427
+ x5u?: string | undefined;
3428
+ d?: string | undefined;
3429
+ p?: string | undefined;
3430
+ q?: string | undefined;
3431
+ dp?: string | undefined;
3432
+ dq?: string | undefined;
3433
+ qi?: string | undefined;
3434
+ oth?: [{
3435
+ d?: string | undefined;
3436
+ r?: string | undefined;
3437
+ t?: string | undefined;
3438
+ }, ...{
3439
+ d?: string | undefined;
3440
+ r?: string | undefined;
3441
+ t?: string | undefined;
3442
+ }[]] | undefined;
3443
+ } | {
3444
+ kty: "EC";
3445
+ crv: "P-256" | "P-384" | "P-521";
3446
+ x: string;
3447
+ y: string;
3448
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
3449
+ kid?: string | undefined;
3450
+ ext?: boolean | undefined;
3451
+ use?: "sig" | "enc" | undefined;
3452
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3453
+ x5c?: string[] | undefined;
3454
+ x5t?: string | undefined;
3455
+ "x5t#S256"?: string | undefined;
3456
+ x5u?: string | undefined;
3457
+ d?: string | undefined;
3458
+ } | {
3459
+ kty: "EC";
3460
+ crv: "secp256k1";
3461
+ x: string;
3462
+ y: string;
3463
+ alg?: "ES256K" | undefined;
3464
+ kid?: string | undefined;
3465
+ ext?: boolean | undefined;
3466
+ use?: "sig" | "enc" | undefined;
3467
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3468
+ x5c?: string[] | undefined;
3469
+ x5t?: string | undefined;
3470
+ "x5t#S256"?: string | undefined;
3471
+ x5u?: string | undefined;
3472
+ d?: string | undefined;
3473
+ } | {
3474
+ kty: "OKP";
3475
+ crv: "Ed25519" | "Ed448";
3476
+ x: string;
3477
+ alg?: "EdDSA" | undefined;
3478
+ kid?: string | undefined;
3479
+ ext?: boolean | undefined;
3480
+ use?: "sig" | "enc" | undefined;
3481
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3482
+ x5c?: string[] | undefined;
3483
+ x5t?: string | undefined;
3484
+ "x5t#S256"?: string | undefined;
3485
+ x5u?: string | undefined;
3486
+ d?: string | undefined;
3487
+ } | {
3488
+ kty: "oct";
3489
+ k: string;
3490
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3491
+ kid?: string | undefined;
3492
+ ext?: boolean | undefined;
3493
+ use?: "sig" | "enc" | undefined;
3494
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3495
+ x5c?: string[] | undefined;
3496
+ x5t?: string | undefined;
3497
+ "x5t#S256"?: string | undefined;
3498
+ x5u?: string | undefined;
3499
+ } | {
3500
+ kty: string;
3501
+ alg?: string | undefined;
3502
+ kid?: string | undefined;
3503
+ ext?: boolean | undefined;
3504
+ use?: "sig" | "enc" | undefined;
3505
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3506
+ x5c?: string[] | undefined;
3507
+ x5t?: string | undefined;
3508
+ "x5t#S256"?: string | undefined;
3509
+ x5u?: string | undefined;
3510
+ }>, {
3511
+ kty: "RSA";
3512
+ n: string;
3513
+ e: string;
3514
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
3515
+ kid?: string | undefined;
3516
+ ext?: boolean | undefined;
3517
+ use?: "sig" | "enc" | undefined;
3518
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3519
+ x5c?: string[] | undefined;
3520
+ x5t?: string | undefined;
3521
+ "x5t#S256"?: string | undefined;
3522
+ x5u?: string | undefined;
3523
+ d?: string | undefined;
3524
+ p?: string | undefined;
3525
+ q?: string | undefined;
3526
+ dp?: string | undefined;
3527
+ dq?: string | undefined;
3528
+ qi?: string | undefined;
3529
+ oth?: [{
3530
+ d?: string | undefined;
3531
+ r?: string | undefined;
3532
+ t?: string | undefined;
3533
+ }, ...{
3534
+ d?: string | undefined;
3535
+ r?: string | undefined;
3536
+ t?: string | undefined;
3537
+ }[]] | undefined;
3538
+ } | {
3539
+ kty: "EC";
3540
+ crv: "P-256" | "P-384" | "P-521";
3541
+ x: string;
3542
+ y: string;
3543
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
3544
+ kid?: string | undefined;
3545
+ ext?: boolean | undefined;
3546
+ use?: "sig" | "enc" | undefined;
3547
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3548
+ x5c?: string[] | undefined;
3549
+ x5t?: string | undefined;
3550
+ "x5t#S256"?: string | undefined;
3551
+ x5u?: string | undefined;
3552
+ d?: string | undefined;
3553
+ } | {
3554
+ kty: "EC";
3555
+ crv: "secp256k1";
3556
+ x: string;
3557
+ y: string;
3558
+ alg?: "ES256K" | undefined;
3559
+ kid?: string | undefined;
3560
+ ext?: boolean | undefined;
3561
+ use?: "sig" | "enc" | undefined;
3562
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3563
+ x5c?: string[] | undefined;
3564
+ x5t?: string | undefined;
3565
+ "x5t#S256"?: string | undefined;
3566
+ x5u?: string | undefined;
3567
+ d?: string | undefined;
3568
+ } | {
3569
+ kty: "OKP";
3570
+ crv: "Ed25519" | "Ed448";
3571
+ x: string;
3572
+ alg?: "EdDSA" | undefined;
3573
+ kid?: string | undefined;
3574
+ ext?: boolean | undefined;
3575
+ use?: "sig" | "enc" | undefined;
3576
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3577
+ x5c?: string[] | undefined;
3578
+ x5t?: string | undefined;
3579
+ "x5t#S256"?: string | undefined;
3580
+ x5u?: string | undefined;
3581
+ d?: string | undefined;
3582
+ } | {
3583
+ kty: "oct";
3584
+ k: string;
3585
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3586
+ kid?: string | undefined;
3587
+ ext?: boolean | undefined;
3588
+ use?: "sig" | "enc" | undefined;
3589
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3590
+ x5c?: string[] | undefined;
3591
+ x5t?: string | undefined;
3592
+ "x5t#S256"?: string | undefined;
3593
+ x5u?: string | undefined;
3594
+ } | {
3595
+ kty: string;
3596
+ alg?: string | undefined;
3597
+ kid?: string | undefined;
3598
+ ext?: boolean | undefined;
3599
+ use?: "sig" | "enc" | undefined;
3600
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3601
+ x5c?: string[] | undefined;
3602
+ x5t?: string | undefined;
3603
+ "x5t#S256"?: string | undefined;
3604
+ x5u?: string | undefined;
3605
+ }, {
3606
+ kty: "RSA";
3607
+ n: string;
3608
+ e: string;
3609
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
3610
+ kid?: string | undefined;
3611
+ ext?: boolean | undefined;
3612
+ use?: "sig" | "enc" | undefined;
3613
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3614
+ x5c?: string[] | undefined;
3615
+ x5t?: string | undefined;
3616
+ "x5t#S256"?: string | undefined;
3617
+ x5u?: string | undefined;
3618
+ d?: string | undefined;
3619
+ p?: string | undefined;
3620
+ q?: string | undefined;
3621
+ dp?: string | undefined;
3622
+ dq?: string | undefined;
3623
+ qi?: string | undefined;
3624
+ oth?: [{
3625
+ d?: string | undefined;
3626
+ r?: string | undefined;
3627
+ t?: string | undefined;
3628
+ }, ...{
3629
+ d?: string | undefined;
3630
+ r?: string | undefined;
3631
+ t?: string | undefined;
3632
+ }[]] | undefined;
3633
+ } | {
3634
+ kty: "EC";
3635
+ crv: "P-256" | "P-384" | "P-521";
3636
+ x: string;
3637
+ y: string;
3638
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
3639
+ kid?: string | undefined;
3640
+ ext?: boolean | undefined;
3641
+ use?: "sig" | "enc" | undefined;
3642
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3643
+ x5c?: string[] | undefined;
3644
+ x5t?: string | undefined;
3645
+ "x5t#S256"?: string | undefined;
3646
+ x5u?: string | undefined;
3647
+ d?: string | undefined;
3648
+ } | {
3649
+ kty: "EC";
3650
+ crv: "secp256k1";
3651
+ x: string;
3652
+ y: string;
3653
+ alg?: "ES256K" | undefined;
3654
+ kid?: string | undefined;
3655
+ ext?: boolean | undefined;
3656
+ use?: "sig" | "enc" | undefined;
3657
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3658
+ x5c?: string[] | undefined;
3659
+ x5t?: string | undefined;
3660
+ "x5t#S256"?: string | undefined;
3661
+ x5u?: string | undefined;
3662
+ d?: string | undefined;
3663
+ } | {
3664
+ kty: "OKP";
3665
+ crv: "Ed25519" | "Ed448";
3666
+ x: string;
3667
+ alg?: "EdDSA" | undefined;
3668
+ kid?: string | undefined;
3669
+ ext?: boolean | undefined;
3670
+ use?: "sig" | "enc" | undefined;
3671
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3672
+ x5c?: string[] | undefined;
3673
+ x5t?: string | undefined;
3674
+ "x5t#S256"?: string | undefined;
3675
+ x5u?: string | undefined;
3676
+ d?: string | undefined;
3677
+ } | {
3678
+ kty: "oct";
3679
+ k: string;
3680
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3681
+ kid?: string | undefined;
3682
+ ext?: boolean | undefined;
3683
+ use?: "sig" | "enc" | undefined;
3684
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3685
+ x5c?: string[] | undefined;
3686
+ x5t?: string | undefined;
3687
+ "x5t#S256"?: string | undefined;
3688
+ x5u?: string | undefined;
3689
+ } | {
3690
+ kty: string;
3691
+ alg?: string | undefined;
3692
+ kid?: string | undefined;
3693
+ ext?: boolean | undefined;
3694
+ use?: "sig" | "enc" | undefined;
3695
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3696
+ x5c?: string[] | undefined;
3697
+ x5t?: string | undefined;
3698
+ "x5t#S256"?: string | undefined;
3699
+ x5u?: string | undefined;
3700
+ }>, {
3701
+ kty: "RSA";
3702
+ n: string;
3703
+ e: string;
3704
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
3705
+ kid?: string | undefined;
3706
+ ext?: boolean | undefined;
3707
+ use?: "sig" | "enc" | undefined;
3708
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3709
+ x5c?: string[] | undefined;
3710
+ x5t?: string | undefined;
3711
+ "x5t#S256"?: string | undefined;
3712
+ x5u?: string | undefined;
3713
+ d?: string | undefined;
3714
+ p?: string | undefined;
3715
+ q?: string | undefined;
3716
+ dp?: string | undefined;
3717
+ dq?: string | undefined;
3718
+ qi?: string | undefined;
3719
+ oth?: [{
3720
+ d?: string | undefined;
3721
+ r?: string | undefined;
3722
+ t?: string | undefined;
3723
+ }, ...{
3724
+ d?: string | undefined;
3725
+ r?: string | undefined;
3726
+ t?: string | undefined;
3727
+ }[]] | undefined;
3728
+ } | {
3729
+ kty: "EC";
3730
+ crv: "P-256" | "P-384" | "P-521";
3731
+ x: string;
3732
+ y: string;
3733
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
3734
+ kid?: string | undefined;
3735
+ ext?: boolean | undefined;
3736
+ use?: "sig" | "enc" | undefined;
3737
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3738
+ x5c?: string[] | undefined;
3739
+ x5t?: string | undefined;
3740
+ "x5t#S256"?: string | undefined;
3741
+ x5u?: string | undefined;
3742
+ d?: string | undefined;
3743
+ } | {
3744
+ kty: "EC";
3745
+ crv: "secp256k1";
3746
+ x: string;
3747
+ y: string;
3748
+ alg?: "ES256K" | undefined;
3749
+ kid?: string | undefined;
3750
+ ext?: boolean | undefined;
3751
+ use?: "sig" | "enc" | undefined;
3752
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3753
+ x5c?: string[] | undefined;
3754
+ x5t?: string | undefined;
3755
+ "x5t#S256"?: string | undefined;
3756
+ x5u?: string | undefined;
3757
+ d?: string | undefined;
3758
+ } | {
3759
+ kty: "OKP";
3760
+ crv: "Ed25519" | "Ed448";
3761
+ x: string;
3762
+ alg?: "EdDSA" | undefined;
3763
+ kid?: string | undefined;
3764
+ ext?: boolean | undefined;
3765
+ use?: "sig" | "enc" | undefined;
3766
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3767
+ x5c?: string[] | undefined;
3768
+ x5t?: string | undefined;
3769
+ "x5t#S256"?: string | undefined;
3770
+ x5u?: string | undefined;
3771
+ d?: string | undefined;
3772
+ } | {
3773
+ kty: "oct";
3774
+ k: string;
3775
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3776
+ kid?: string | undefined;
3777
+ ext?: boolean | undefined;
3778
+ use?: "sig" | "enc" | undefined;
3779
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3780
+ x5c?: string[] | undefined;
3781
+ x5t?: string | undefined;
3782
+ "x5t#S256"?: string | undefined;
3783
+ x5u?: string | undefined;
3784
+ } | {
3785
+ kty: string;
3786
+ alg?: string | undefined;
3787
+ kid?: string | undefined;
3788
+ ext?: boolean | undefined;
3789
+ use?: "sig" | "enc" | undefined;
3790
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3791
+ x5c?: string[] | undefined;
3792
+ x5t?: string | undefined;
3793
+ "x5t#S256"?: string | undefined;
3794
+ x5u?: string | undefined;
3795
+ }, {
3796
+ kty: "RSA";
3797
+ n: string;
3798
+ e: string;
3799
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
3800
+ kid?: string | undefined;
3801
+ ext?: boolean | undefined;
3802
+ use?: "sig" | "enc" | undefined;
3803
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3804
+ x5c?: string[] | undefined;
3805
+ x5t?: string | undefined;
3806
+ "x5t#S256"?: string | undefined;
3807
+ x5u?: string | undefined;
3808
+ d?: string | undefined;
3809
+ p?: string | undefined;
3810
+ q?: string | undefined;
3811
+ dp?: string | undefined;
3812
+ dq?: string | undefined;
3813
+ qi?: string | undefined;
3814
+ oth?: [{
3815
+ d?: string | undefined;
3816
+ r?: string | undefined;
3817
+ t?: string | undefined;
3818
+ }, ...{
3819
+ d?: string | undefined;
3820
+ r?: string | undefined;
3821
+ t?: string | undefined;
3822
+ }[]] | undefined;
3823
+ } | {
3824
+ kty: "EC";
3825
+ crv: "P-256" | "P-384" | "P-521";
3826
+ x: string;
3827
+ y: string;
3828
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
3829
+ kid?: string | undefined;
3830
+ ext?: boolean | undefined;
3831
+ use?: "sig" | "enc" | undefined;
3832
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3833
+ x5c?: string[] | undefined;
3834
+ x5t?: string | undefined;
3835
+ "x5t#S256"?: string | undefined;
3836
+ x5u?: string | undefined;
3837
+ d?: string | undefined;
3838
+ } | {
3839
+ kty: "EC";
3840
+ crv: "secp256k1";
3841
+ x: string;
3842
+ y: string;
3843
+ alg?: "ES256K" | undefined;
3844
+ kid?: string | undefined;
3845
+ ext?: boolean | undefined;
3846
+ use?: "sig" | "enc" | undefined;
3847
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3848
+ x5c?: string[] | undefined;
3849
+ x5t?: string | undefined;
3850
+ "x5t#S256"?: string | undefined;
3851
+ x5u?: string | undefined;
3852
+ d?: string | undefined;
3853
+ } | {
3854
+ kty: "OKP";
3855
+ crv: "Ed25519" | "Ed448";
3856
+ x: string;
3857
+ alg?: "EdDSA" | undefined;
3858
+ kid?: string | undefined;
3859
+ ext?: boolean | undefined;
3860
+ use?: "sig" | "enc" | undefined;
3861
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3862
+ x5c?: string[] | undefined;
3863
+ x5t?: string | undefined;
3864
+ "x5t#S256"?: string | undefined;
3865
+ x5u?: string | undefined;
3866
+ d?: string | undefined;
3867
+ } | {
3868
+ kty: "oct";
3869
+ k: string;
3870
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3871
+ kid?: string | undefined;
3872
+ ext?: boolean | undefined;
3873
+ use?: "sig" | "enc" | undefined;
3874
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3875
+ x5c?: string[] | undefined;
3876
+ x5t?: string | undefined;
3877
+ "x5t#S256"?: string | undefined;
3878
+ x5u?: string | undefined;
3879
+ } | {
3880
+ kty: string;
3881
+ alg?: string | undefined;
3882
+ kid?: string | undefined;
3883
+ ext?: boolean | undefined;
3884
+ use?: "sig" | "enc" | undefined;
3885
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3886
+ x5c?: string[] | undefined;
3887
+ x5t?: string | undefined;
3888
+ "x5t#S256"?: string | undefined;
3889
+ x5u?: string | undefined;
3890
+ }>>;
3891
+ jwe: z.ZodOptional<z.ZodString>;
3892
+ jku: z.ZodOptional<z.ZodString>;
3893
+ jkt: z.ZodOptional<z.ZodString>;
3894
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
3895
+ osc: z.ZodOptional<z.ZodString>;
3896
+ }, "strip", z.ZodTypeAny, {
3897
+ kid?: string | undefined;
3898
+ 'x5t#S256'?: string | undefined;
3899
+ jku?: string | undefined;
3900
+ jwk?: {
3901
+ kty: "RSA";
3902
+ n: string;
3903
+ e: string;
3904
+ alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
3905
+ kid?: string | undefined;
3906
+ ext?: boolean | undefined;
3907
+ use?: "sig" | "enc" | undefined;
3908
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3909
+ x5c?: string[] | undefined;
3910
+ x5t?: string | undefined;
3911
+ "x5t#S256"?: string | undefined;
3912
+ x5u?: string | undefined;
3913
+ d?: string | undefined;
3914
+ p?: string | undefined;
3915
+ q?: string | undefined;
3916
+ dp?: string | undefined;
3917
+ dq?: string | undefined;
3918
+ qi?: string | undefined;
3919
+ oth?: [{
3920
+ d?: string | undefined;
3921
+ r?: string | undefined;
3922
+ t?: string | undefined;
3923
+ }, ...{
3924
+ d?: string | undefined;
3925
+ r?: string | undefined;
3926
+ t?: string | undefined;
3927
+ }[]] | undefined;
3928
+ } | {
3929
+ kty: "EC";
3930
+ crv: "P-256" | "P-384" | "P-521";
3931
+ x: string;
3932
+ y: string;
3933
+ alg?: "ES256" | "ES384" | "ES512" | undefined;
3934
+ kid?: string | undefined;
3935
+ ext?: boolean | undefined;
3936
+ use?: "sig" | "enc" | undefined;
3937
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3938
+ x5c?: string[] | undefined;
3939
+ x5t?: string | undefined;
3940
+ "x5t#S256"?: string | undefined;
3941
+ x5u?: string | undefined;
3942
+ d?: string | undefined;
3943
+ } | {
3944
+ kty: "EC";
3945
+ crv: "secp256k1";
3946
+ x: string;
3947
+ y: string;
3948
+ alg?: "ES256K" | undefined;
3949
+ kid?: string | undefined;
3950
+ ext?: boolean | undefined;
3951
+ use?: "sig" | "enc" | undefined;
3952
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3953
+ x5c?: string[] | undefined;
3954
+ x5t?: string | undefined;
3955
+ "x5t#S256"?: string | undefined;
3956
+ x5u?: string | undefined;
3957
+ d?: string | undefined;
3958
+ } | {
3959
+ kty: "OKP";
3960
+ crv: "Ed25519" | "Ed448";
3961
+ x: string;
3962
+ alg?: "EdDSA" | undefined;
3963
+ kid?: string | undefined;
3964
+ ext?: boolean | undefined;
3965
+ use?: "sig" | "enc" | undefined;
3966
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3967
+ x5c?: string[] | undefined;
3968
+ x5t?: string | undefined;
3969
+ "x5t#S256"?: string | undefined;
3970
+ x5u?: string | undefined;
3971
+ d?: string | undefined;
3972
+ } | {
3973
+ kty: "oct";
3974
+ k: string;
3975
+ alg?: "HS256" | "HS384" | "HS512" | undefined;
3976
+ kid?: string | undefined;
3977
+ ext?: boolean | undefined;
3978
+ use?: "sig" | "enc" | undefined;
3979
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3980
+ x5c?: string[] | undefined;
3981
+ x5t?: string | undefined;
3982
+ "x5t#S256"?: string | undefined;
3983
+ x5u?: string | undefined;
3984
+ } | {
3985
+ kty: string;
3986
+ alg?: string | undefined;
3987
+ kid?: string | undefined;
3988
+ ext?: boolean | undefined;
3989
+ use?: "sig" | "enc" | undefined;
3990
+ key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
3991
+ x5c?: string[] | undefined;
3992
+ x5t?: string | undefined;
3993
+ "x5t#S256"?: string | undefined;
3994
+ x5u?: string | undefined;
3995
+ } | undefined;
3996
+ jwe?: string | undefined;
3997
+ jkt?: string | undefined;
3998
+ osc?: string | undefined;
3999
+ }, {
1586
4000
  kid?: string | undefined;
1587
4001
  'x5t#S256'?: string | undefined;
1588
4002
  jku?: string | undefined;
@@ -1685,10 +4099,14 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1685
4099
  jwe?: string | undefined;
1686
4100
  jkt?: string | undefined;
1687
4101
  osc?: string | undefined;
1688
- } | undefined;
1689
- at_hash?: string | undefined;
1690
- c_hash?: string | undefined;
1691
- s_hash?: string | undefined;
1692
- }>>;
4102
+ }>>>;
4103
+ at_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4104
+ c_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4105
+ s_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4106
+ }, {
4107
+ jti: z.ZodEffects<z.ZodString, `tok-${string}`, string>;
4108
+ sub: z.ZodString;
4109
+ client_id: z.ZodString;
4110
+ }>, z.ZodTypeAny, "passthrough">>>;
1693
4111
  export type SignedTokenPayload = Simplify<z.infer<typeof signedTokenPayloadSchema>>;
1694
4112
  //# sourceMappingURL=signed-token-payload.d.ts.map