@atproto/oauth-types 0.1.0

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