@atproto/jwk 0.1.1 → 0.1.2

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