@atproto/oauth-types 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/atproto-loopback-client-metadata.d.ts +4 -1
  3. package/dist/atproto-loopback-client-metadata.d.ts.map +1 -1
  4. package/dist/atproto-loopback-client-metadata.js +1 -2
  5. package/dist/atproto-loopback-client-metadata.js.map +1 -1
  6. package/dist/constants.d.ts +0 -6
  7. package/dist/constants.d.ts.map +1 -1
  8. package/dist/constants.js +1 -17
  9. package/dist/constants.js.map +1 -1
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +2 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/oauth-authorization-code-grant-token-request.d.ts +2 -2
  15. package/dist/oauth-authorization-code-grant-token-request.d.ts.map +1 -1
  16. package/dist/oauth-authorization-code-grant-token-request.js +2 -1
  17. package/dist/oauth-authorization-code-grant-token-request.js.map +1 -1
  18. package/dist/oauth-authorization-details.d.ts +42 -4
  19. package/dist/oauth-authorization-details.d.ts.map +1 -1
  20. package/dist/oauth-authorization-details.js +21 -1
  21. package/dist/oauth-authorization-details.js.map +1 -1
  22. package/dist/oauth-authorization-request-jar.d.ts +1 -1
  23. package/dist/oauth-authorization-request-par.d.ts +11 -11
  24. package/dist/oauth-authorization-request-parameters.d.ts +10 -10
  25. package/dist/oauth-authorization-request-parameters.d.ts.map +1 -1
  26. package/dist/oauth-authorization-request-parameters.js +3 -2
  27. package/dist/oauth-authorization-request-parameters.js.map +1 -1
  28. package/dist/oauth-authorization-request-query.d.ts +11 -11
  29. package/dist/oauth-authorization-server-metadata.d.ts +69 -66
  30. package/dist/oauth-authorization-server-metadata.d.ts.map +1 -1
  31. package/dist/oauth-authorization-server-metadata.js +14 -10
  32. package/dist/oauth-authorization-server-metadata.js.map +1 -1
  33. package/dist/oauth-client-id-discoverable.d.ts +3 -2
  34. package/dist/oauth-client-id-discoverable.d.ts.map +1 -1
  35. package/dist/oauth-client-id-discoverable.js +54 -31
  36. package/dist/oauth-client-id-discoverable.js.map +1 -1
  37. package/dist/oauth-client-id-loopback.d.ts +5 -5
  38. package/dist/oauth-client-id-loopback.d.ts.map +1 -1
  39. package/dist/oauth-client-id-loopback.js +32 -31
  40. package/dist/oauth-client-id-loopback.js.map +1 -1
  41. package/dist/oauth-client-metadata.d.ts +112 -102
  42. package/dist/oauth-client-metadata.d.ts.map +1 -1
  43. package/dist/oauth-client-metadata.js +18 -8
  44. package/dist/oauth-client-metadata.js.map +1 -1
  45. package/dist/oauth-issuer-identifier.d.ts +2 -1
  46. package/dist/oauth-issuer-identifier.d.ts.map +1 -1
  47. package/dist/oauth-issuer-identifier.js +8 -23
  48. package/dist/oauth-issuer-identifier.js.map +1 -1
  49. package/dist/oauth-protected-resource-metadata.d.ts +15 -12
  50. package/dist/oauth-protected-resource-metadata.d.ts.map +1 -1
  51. package/dist/oauth-protected-resource-metadata.js +15 -5
  52. package/dist/oauth-protected-resource-metadata.js.map +1 -1
  53. package/dist/oauth-redirect-uri.d.ts +10 -0
  54. package/dist/oauth-redirect-uri.d.ts.map +1 -0
  55. package/dist/oauth-redirect-uri.js +35 -0
  56. package/dist/oauth-redirect-uri.js.map +1 -0
  57. package/dist/oauth-refresh-token-grant-token-request.d.ts +0 -3
  58. package/dist/oauth-refresh-token-grant-token-request.d.ts.map +1 -1
  59. package/dist/oauth-refresh-token-grant-token-request.js +0 -2
  60. package/dist/oauth-refresh-token-grant-token-request.js.map +1 -1
  61. package/dist/oauth-token-request.d.ts +2 -5
  62. package/dist/oauth-token-request.d.ts.map +1 -1
  63. package/dist/oauth-token-response.d.ts +9 -12
  64. package/dist/oauth-token-response.d.ts.map +1 -1
  65. package/dist/oauth-token-response.js +4 -2
  66. package/dist/oauth-token-response.js.map +1 -1
  67. package/dist/uri.d.ts +20 -0
  68. package/dist/uri.d.ts.map +1 -0
  69. package/dist/uri.js +127 -0
  70. package/dist/uri.js.map +1 -0
  71. package/dist/util.js +5 -6
  72. package/dist/util.js.map +1 -1
  73. package/package.json +2 -2
  74. package/src/atproto-loopback-client-metadata.ts +8 -3
  75. package/src/constants.ts +0 -16
  76. package/src/index.ts +2 -0
  77. package/src/oauth-authorization-code-grant-token-request.ts +2 -1
  78. package/src/oauth-authorization-details.ts +21 -1
  79. package/src/oauth-authorization-request-parameters.ts +3 -2
  80. package/src/oauth-authorization-server-metadata.ts +14 -10
  81. package/src/oauth-client-id-discoverable.ts +69 -51
  82. package/src/oauth-client-id-loopback.ts +40 -40
  83. package/src/oauth-client-metadata.ts +18 -8
  84. package/src/oauth-issuer-identifier.ts +14 -24
  85. package/src/oauth-protected-resource-metadata.ts +15 -5
  86. package/src/oauth-redirect-uri.ts +56 -0
  87. package/src/oauth-refresh-token-grant-token-request.ts +0 -2
  88. package/src/oauth-token-response.ts +4 -2
  89. package/src/uri.ts +171 -0
  90. package/tsconfig.build.tsbuildinfo +1 -0
@@ -1,6 +1,16 @@
1
1
  import { z } from 'zod';
2
+ /**
3
+ * @see {@link https://openid.net/specs/openid-connect-registration-1_0.html}
4
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc7591}
5
+ * @note we do not enforce https: scheme in URIs to support development
6
+ * environments. Make sure to validate the URIs before using it in a production
7
+ * environment.
8
+ */
2
9
  export declare const oauthClientMetadataSchema: z.ZodObject<{
3
- redirect_uris: z.ZodArray<z.ZodString, "atleastone">;
10
+ /**
11
+ * @note redirect_uris require additional validation
12
+ */
13
+ redirect_uris: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}`, string>, `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, `https://${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, `${string}.${string}:/${string}`, string>]>, "atleastone">;
4
14
  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
15
  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
16
  scope: z.ZodOptional<z.ZodString>;
@@ -8,7 +18,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
8
18
  token_endpoint_auth_signing_alg: z.ZodOptional<z.ZodString>;
9
19
  userinfo_signed_response_alg: z.ZodOptional<z.ZodString>;
10
20
  userinfo_encrypted_response_alg: z.ZodOptional<z.ZodString>;
11
- jwks_uri: z.ZodOptional<z.ZodString>;
21
+ jwks_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`, string>>;
12
22
  jwks: z.ZodOptional<z.ZodObject<{
13
23
  keys: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
14
24
  kty: z.ZodString;
@@ -19,7 +29,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
19
29
  key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
20
30
  x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21
31
  x5t: z.ZodOptional<z.ZodString>;
22
- 'x5t#S256': z.ZodOptional<z.ZodString>;
32
+ "x5t#S256": z.ZodOptional<z.ZodString>;
23
33
  x5u: z.ZodOptional<z.ZodString>;
24
34
  }, {
25
35
  kty: z.ZodEffects<z.ZodString, string, string>;
@@ -32,7 +42,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
32
42
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
33
43
  x5c?: string[] | undefined;
34
44
  x5t?: string | undefined;
35
- 'x5t#S256'?: string | undefined;
45
+ "x5t#S256"?: string | undefined;
36
46
  x5u?: string | undefined;
37
47
  }, {
38
48
  kty: string;
@@ -43,7 +53,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
43
53
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
44
54
  x5c?: string[] | undefined;
45
55
  x5t?: string | undefined;
46
- 'x5t#S256'?: string | undefined;
56
+ "x5t#S256"?: string | undefined;
47
57
  x5u?: string | undefined;
48
58
  }>, z.ZodObject<z.objectUtil.extendShape<{
49
59
  kty: z.ZodString;
@@ -54,7 +64,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
54
64
  key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
55
65
  x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
66
  x5t: z.ZodOptional<z.ZodString>;
57
- 'x5t#S256': z.ZodOptional<z.ZodString>;
67
+ "x5t#S256": z.ZodOptional<z.ZodString>;
58
68
  x5u: z.ZodOptional<z.ZodString>;
59
69
  }, {
60
70
  kty: z.ZodLiteral<"RSA">;
@@ -91,7 +101,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
91
101
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
92
102
  x5c?: string[] | undefined;
93
103
  x5t?: string | undefined;
94
- 'x5t#S256'?: string | undefined;
104
+ "x5t#S256"?: string | undefined;
95
105
  x5u?: string | undefined;
96
106
  d?: string | undefined;
97
107
  p?: string | undefined;
@@ -119,7 +129,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
119
129
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
120
130
  x5c?: string[] | undefined;
121
131
  x5t?: string | undefined;
122
- 'x5t#S256'?: string | undefined;
132
+ "x5t#S256"?: string | undefined;
123
133
  x5u?: string | undefined;
124
134
  d?: string | undefined;
125
135
  p?: string | undefined;
@@ -145,7 +155,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
145
155
  key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
146
156
  x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
147
157
  x5t: z.ZodOptional<z.ZodString>;
148
- 'x5t#S256': z.ZodOptional<z.ZodString>;
158
+ "x5t#S256": z.ZodOptional<z.ZodString>;
149
159
  x5u: z.ZodOptional<z.ZodString>;
150
160
  }, {
151
161
  kty: z.ZodLiteral<"EC">;
@@ -166,7 +176,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
166
176
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
167
177
  x5c?: string[] | undefined;
168
178
  x5t?: string | undefined;
169
- 'x5t#S256'?: string | undefined;
179
+ "x5t#S256"?: string | undefined;
170
180
  x5u?: string | undefined;
171
181
  d?: string | undefined;
172
182
  }, {
@@ -181,7 +191,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
181
191
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
182
192
  x5c?: string[] | undefined;
183
193
  x5t?: string | undefined;
184
- 'x5t#S256'?: string | undefined;
194
+ "x5t#S256"?: string | undefined;
185
195
  x5u?: string | undefined;
186
196
  d?: string | undefined;
187
197
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -193,7 +203,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
193
203
  key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
194
204
  x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
195
205
  x5t: z.ZodOptional<z.ZodString>;
196
- 'x5t#S256': z.ZodOptional<z.ZodString>;
206
+ "x5t#S256": z.ZodOptional<z.ZodString>;
197
207
  x5u: z.ZodOptional<z.ZodString>;
198
208
  }, {
199
209
  kty: z.ZodLiteral<"EC">;
@@ -214,7 +224,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
214
224
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
215
225
  x5c?: string[] | undefined;
216
226
  x5t?: string | undefined;
217
- 'x5t#S256'?: string | undefined;
227
+ "x5t#S256"?: string | undefined;
218
228
  x5u?: string | undefined;
219
229
  d?: string | undefined;
220
230
  }, {
@@ -229,7 +239,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
229
239
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
230
240
  x5c?: string[] | undefined;
231
241
  x5t?: string | undefined;
232
- 'x5t#S256'?: string | undefined;
242
+ "x5t#S256"?: string | undefined;
233
243
  x5u?: string | undefined;
234
244
  d?: string | undefined;
235
245
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -241,7 +251,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
241
251
  key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
242
252
  x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
243
253
  x5t: z.ZodOptional<z.ZodString>;
244
- 'x5t#S256': z.ZodOptional<z.ZodString>;
254
+ "x5t#S256": z.ZodOptional<z.ZodString>;
245
255
  x5u: z.ZodOptional<z.ZodString>;
246
256
  }, {
247
257
  kty: z.ZodLiteral<"OKP">;
@@ -260,7 +270,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
260
270
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
261
271
  x5c?: string[] | undefined;
262
272
  x5t?: string | undefined;
263
- 'x5t#S256'?: string | undefined;
273
+ "x5t#S256"?: string | undefined;
264
274
  x5u?: string | undefined;
265
275
  d?: string | undefined;
266
276
  }, {
@@ -274,7 +284,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
274
284
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
275
285
  x5c?: string[] | undefined;
276
286
  x5t?: string | undefined;
277
- 'x5t#S256'?: string | undefined;
287
+ "x5t#S256"?: string | undefined;
278
288
  x5u?: string | undefined;
279
289
  d?: string | undefined;
280
290
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -286,7 +296,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
286
296
  key_ops: z.ZodOptional<z.ZodArray<z.ZodEnum<["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"]>, "many">>;
287
297
  x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
288
298
  x5t: z.ZodOptional<z.ZodString>;
289
- 'x5t#S256': z.ZodOptional<z.ZodString>;
299
+ "x5t#S256": z.ZodOptional<z.ZodString>;
290
300
  x5u: z.ZodOptional<z.ZodString>;
291
301
  }, {
292
302
  kty: z.ZodLiteral<"oct">;
@@ -302,7 +312,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
302
312
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
303
313
  x5c?: string[] | undefined;
304
314
  x5t?: string | undefined;
305
- 'x5t#S256'?: string | undefined;
315
+ "x5t#S256"?: string | undefined;
306
316
  x5u?: string | undefined;
307
317
  }, {
308
318
  kty: "oct";
@@ -314,7 +324,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
314
324
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
315
325
  x5c?: string[] | undefined;
316
326
  x5t?: string | undefined;
317
- 'x5t#S256'?: string | undefined;
327
+ "x5t#S256"?: string | undefined;
318
328
  x5u?: string | undefined;
319
329
  }>]>, {
320
330
  kty: "RSA";
@@ -327,7 +337,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
327
337
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
328
338
  x5c?: string[] | undefined;
329
339
  x5t?: string | undefined;
330
- 'x5t#S256'?: string | undefined;
340
+ "x5t#S256"?: string | undefined;
331
341
  x5u?: string | undefined;
332
342
  d?: string | undefined;
333
343
  p?: string | undefined;
@@ -356,7 +366,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
356
366
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
357
367
  x5c?: string[] | undefined;
358
368
  x5t?: string | undefined;
359
- 'x5t#S256'?: string | undefined;
369
+ "x5t#S256"?: string | undefined;
360
370
  x5u?: string | undefined;
361
371
  d?: string | undefined;
362
372
  } | {
@@ -371,7 +381,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
371
381
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
372
382
  x5c?: string[] | undefined;
373
383
  x5t?: string | undefined;
374
- 'x5t#S256'?: string | undefined;
384
+ "x5t#S256"?: string | undefined;
375
385
  x5u?: string | undefined;
376
386
  d?: string | undefined;
377
387
  } | {
@@ -385,7 +395,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
385
395
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
386
396
  x5c?: string[] | undefined;
387
397
  x5t?: string | undefined;
388
- 'x5t#S256'?: string | undefined;
398
+ "x5t#S256"?: string | undefined;
389
399
  x5u?: string | undefined;
390
400
  d?: string | undefined;
391
401
  } | {
@@ -398,7 +408,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
398
408
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
399
409
  x5c?: string[] | undefined;
400
410
  x5t?: string | undefined;
401
- 'x5t#S256'?: string | undefined;
411
+ "x5t#S256"?: string | undefined;
402
412
  x5u?: string | undefined;
403
413
  } | {
404
414
  kty: string;
@@ -409,7 +419,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
409
419
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
410
420
  x5c?: string[] | undefined;
411
421
  x5t?: string | undefined;
412
- 'x5t#S256'?: string | undefined;
422
+ "x5t#S256"?: string | undefined;
413
423
  x5u?: string | undefined;
414
424
  }, {
415
425
  kty: "RSA";
@@ -422,7 +432,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
422
432
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
423
433
  x5c?: string[] | undefined;
424
434
  x5t?: string | undefined;
425
- 'x5t#S256'?: string | undefined;
435
+ "x5t#S256"?: string | undefined;
426
436
  x5u?: string | undefined;
427
437
  d?: string | undefined;
428
438
  p?: string | undefined;
@@ -451,7 +461,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
451
461
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
452
462
  x5c?: string[] | undefined;
453
463
  x5t?: string | undefined;
454
- 'x5t#S256'?: string | undefined;
464
+ "x5t#S256"?: string | undefined;
455
465
  x5u?: string | undefined;
456
466
  d?: string | undefined;
457
467
  } | {
@@ -466,7 +476,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
466
476
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
467
477
  x5c?: string[] | undefined;
468
478
  x5t?: string | undefined;
469
- 'x5t#S256'?: string | undefined;
479
+ "x5t#S256"?: string | undefined;
470
480
  x5u?: string | undefined;
471
481
  d?: string | undefined;
472
482
  } | {
@@ -480,7 +490,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
480
490
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
481
491
  x5c?: string[] | undefined;
482
492
  x5t?: string | undefined;
483
- 'x5t#S256'?: string | undefined;
493
+ "x5t#S256"?: string | undefined;
484
494
  x5u?: string | undefined;
485
495
  d?: string | undefined;
486
496
  } | {
@@ -493,7 +503,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
493
503
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
494
504
  x5c?: string[] | undefined;
495
505
  x5t?: string | undefined;
496
- 'x5t#S256'?: string | undefined;
506
+ "x5t#S256"?: string | undefined;
497
507
  x5u?: string | undefined;
498
508
  } | {
499
509
  kty: string;
@@ -504,7 +514,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
504
514
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
505
515
  x5c?: string[] | undefined;
506
516
  x5t?: string | undefined;
507
- 'x5t#S256'?: string | undefined;
517
+ "x5t#S256"?: string | undefined;
508
518
  x5u?: string | undefined;
509
519
  }>, {
510
520
  kty: "RSA";
@@ -517,7 +527,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
517
527
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
518
528
  x5c?: string[] | undefined;
519
529
  x5t?: string | undefined;
520
- 'x5t#S256'?: string | undefined;
530
+ "x5t#S256"?: string | undefined;
521
531
  x5u?: string | undefined;
522
532
  d?: string | undefined;
523
533
  p?: string | undefined;
@@ -546,7 +556,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
546
556
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
547
557
  x5c?: string[] | undefined;
548
558
  x5t?: string | undefined;
549
- 'x5t#S256'?: string | undefined;
559
+ "x5t#S256"?: string | undefined;
550
560
  x5u?: string | undefined;
551
561
  d?: string | undefined;
552
562
  } | {
@@ -561,7 +571,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
561
571
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
562
572
  x5c?: string[] | undefined;
563
573
  x5t?: string | undefined;
564
- 'x5t#S256'?: string | undefined;
574
+ "x5t#S256"?: string | undefined;
565
575
  x5u?: string | undefined;
566
576
  d?: string | undefined;
567
577
  } | {
@@ -575,7 +585,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
575
585
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
576
586
  x5c?: string[] | undefined;
577
587
  x5t?: string | undefined;
578
- 'x5t#S256'?: string | undefined;
588
+ "x5t#S256"?: string | undefined;
579
589
  x5u?: string | undefined;
580
590
  d?: string | undefined;
581
591
  } | {
@@ -588,7 +598,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
588
598
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
589
599
  x5c?: string[] | undefined;
590
600
  x5t?: string | undefined;
591
- 'x5t#S256'?: string | undefined;
601
+ "x5t#S256"?: string | undefined;
592
602
  x5u?: string | undefined;
593
603
  } | {
594
604
  kty: string;
@@ -599,7 +609,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
599
609
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
600
610
  x5c?: string[] | undefined;
601
611
  x5t?: string | undefined;
602
- 'x5t#S256'?: string | undefined;
612
+ "x5t#S256"?: string | undefined;
603
613
  x5u?: string | undefined;
604
614
  }, {
605
615
  kty: "RSA";
@@ -612,7 +622,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
612
622
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
613
623
  x5c?: string[] | undefined;
614
624
  x5t?: string | undefined;
615
- 'x5t#S256'?: string | undefined;
625
+ "x5t#S256"?: string | undefined;
616
626
  x5u?: string | undefined;
617
627
  d?: string | undefined;
618
628
  p?: string | undefined;
@@ -641,7 +651,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
641
651
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
642
652
  x5c?: string[] | undefined;
643
653
  x5t?: string | undefined;
644
- 'x5t#S256'?: string | undefined;
654
+ "x5t#S256"?: string | undefined;
645
655
  x5u?: string | undefined;
646
656
  d?: string | undefined;
647
657
  } | {
@@ -656,7 +666,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
656
666
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
657
667
  x5c?: string[] | undefined;
658
668
  x5t?: string | undefined;
659
- 'x5t#S256'?: string | undefined;
669
+ "x5t#S256"?: string | undefined;
660
670
  x5u?: string | undefined;
661
671
  d?: string | undefined;
662
672
  } | {
@@ -670,7 +680,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
670
680
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
671
681
  x5c?: string[] | undefined;
672
682
  x5t?: string | undefined;
673
- 'x5t#S256'?: string | undefined;
683
+ "x5t#S256"?: string | undefined;
674
684
  x5u?: string | undefined;
675
685
  d?: string | undefined;
676
686
  } | {
@@ -683,7 +693,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
683
693
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
684
694
  x5c?: string[] | undefined;
685
695
  x5t?: string | undefined;
686
- 'x5t#S256'?: string | undefined;
696
+ "x5t#S256"?: string | undefined;
687
697
  x5u?: string | undefined;
688
698
  } | {
689
699
  kty: string;
@@ -694,7 +704,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
694
704
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
695
705
  x5c?: string[] | undefined;
696
706
  x5t?: string | undefined;
697
- 'x5t#S256'?: string | undefined;
707
+ "x5t#S256"?: string | undefined;
698
708
  x5u?: string | undefined;
699
709
  }>, {
700
710
  kty: "RSA";
@@ -707,7 +717,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
707
717
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
708
718
  x5c?: string[] | undefined;
709
719
  x5t?: string | undefined;
710
- 'x5t#S256'?: string | undefined;
720
+ "x5t#S256"?: string | undefined;
711
721
  x5u?: string | undefined;
712
722
  d?: string | undefined;
713
723
  p?: string | undefined;
@@ -736,7 +746,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
736
746
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
737
747
  x5c?: string[] | undefined;
738
748
  x5t?: string | undefined;
739
- 'x5t#S256'?: string | undefined;
749
+ "x5t#S256"?: string | undefined;
740
750
  x5u?: string | undefined;
741
751
  d?: string | undefined;
742
752
  } | {
@@ -751,7 +761,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
751
761
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
752
762
  x5c?: string[] | undefined;
753
763
  x5t?: string | undefined;
754
- 'x5t#S256'?: string | undefined;
764
+ "x5t#S256"?: string | undefined;
755
765
  x5u?: string | undefined;
756
766
  d?: string | undefined;
757
767
  } | {
@@ -765,7 +775,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
765
775
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
766
776
  x5c?: string[] | undefined;
767
777
  x5t?: string | undefined;
768
- 'x5t#S256'?: string | undefined;
778
+ "x5t#S256"?: string | undefined;
769
779
  x5u?: string | undefined;
770
780
  d?: string | undefined;
771
781
  } | {
@@ -778,7 +788,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
778
788
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
779
789
  x5c?: string[] | undefined;
780
790
  x5t?: string | undefined;
781
- 'x5t#S256'?: string | undefined;
791
+ "x5t#S256"?: string | undefined;
782
792
  x5u?: string | undefined;
783
793
  } | {
784
794
  kty: string;
@@ -789,7 +799,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
789
799
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
790
800
  x5c?: string[] | undefined;
791
801
  x5t?: string | undefined;
792
- 'x5t#S256'?: string | undefined;
802
+ "x5t#S256"?: string | undefined;
793
803
  x5u?: string | undefined;
794
804
  }, {
795
805
  kty: "RSA";
@@ -802,7 +812,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
802
812
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
803
813
  x5c?: string[] | undefined;
804
814
  x5t?: string | undefined;
805
- 'x5t#S256'?: string | undefined;
815
+ "x5t#S256"?: string | undefined;
806
816
  x5u?: string | undefined;
807
817
  d?: string | undefined;
808
818
  p?: string | undefined;
@@ -831,7 +841,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
831
841
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
832
842
  x5c?: string[] | undefined;
833
843
  x5t?: string | undefined;
834
- 'x5t#S256'?: string | undefined;
844
+ "x5t#S256"?: string | undefined;
835
845
  x5u?: string | undefined;
836
846
  d?: string | undefined;
837
847
  } | {
@@ -846,7 +856,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
846
856
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
847
857
  x5c?: string[] | undefined;
848
858
  x5t?: string | undefined;
849
- 'x5t#S256'?: string | undefined;
859
+ "x5t#S256"?: string | undefined;
850
860
  x5u?: string | undefined;
851
861
  d?: string | undefined;
852
862
  } | {
@@ -860,7 +870,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
860
870
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
861
871
  x5c?: string[] | undefined;
862
872
  x5t?: string | undefined;
863
- 'x5t#S256'?: string | undefined;
873
+ "x5t#S256"?: string | undefined;
864
874
  x5u?: string | undefined;
865
875
  d?: string | undefined;
866
876
  } | {
@@ -873,7 +883,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
873
883
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
874
884
  x5c?: string[] | undefined;
875
885
  x5t?: string | undefined;
876
- 'x5t#S256'?: string | undefined;
886
+ "x5t#S256"?: string | undefined;
877
887
  x5u?: string | undefined;
878
888
  } | {
879
889
  kty: string;
@@ -884,7 +894,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
884
894
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
885
895
  x5c?: string[] | undefined;
886
896
  x5t?: string | undefined;
887
- 'x5t#S256'?: string | undefined;
897
+ "x5t#S256"?: string | undefined;
888
898
  x5u?: string | undefined;
889
899
  }>, {
890
900
  kty: "RSA";
@@ -897,7 +907,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
897
907
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
898
908
  x5c?: string[] | undefined;
899
909
  x5t?: string | undefined;
900
- 'x5t#S256'?: string | undefined;
910
+ "x5t#S256"?: string | undefined;
901
911
  x5u?: string | undefined;
902
912
  d?: string | undefined;
903
913
  p?: string | undefined;
@@ -926,7 +936,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
926
936
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
927
937
  x5c?: string[] | undefined;
928
938
  x5t?: string | undefined;
929
- 'x5t#S256'?: string | undefined;
939
+ "x5t#S256"?: string | undefined;
930
940
  x5u?: string | undefined;
931
941
  d?: string | undefined;
932
942
  } | {
@@ -941,7 +951,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
941
951
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
942
952
  x5c?: string[] | undefined;
943
953
  x5t?: string | undefined;
944
- 'x5t#S256'?: string | undefined;
954
+ "x5t#S256"?: string | undefined;
945
955
  x5u?: string | undefined;
946
956
  d?: string | undefined;
947
957
  } | {
@@ -955,7 +965,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
955
965
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
956
966
  x5c?: string[] | undefined;
957
967
  x5t?: string | undefined;
958
- 'x5t#S256'?: string | undefined;
968
+ "x5t#S256"?: string | undefined;
959
969
  x5u?: string | undefined;
960
970
  d?: string | undefined;
961
971
  } | {
@@ -968,7 +978,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
968
978
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
969
979
  x5c?: string[] | undefined;
970
980
  x5t?: string | undefined;
971
- 'x5t#S256'?: string | undefined;
981
+ "x5t#S256"?: string | undefined;
972
982
  x5u?: string | undefined;
973
983
  } | {
974
984
  kty: string;
@@ -979,7 +989,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
979
989
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
980
990
  x5c?: string[] | undefined;
981
991
  x5t?: string | undefined;
982
- 'x5t#S256'?: string | undefined;
992
+ "x5t#S256"?: string | undefined;
983
993
  x5u?: string | undefined;
984
994
  }, {
985
995
  kty: "RSA";
@@ -992,7 +1002,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
992
1002
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
993
1003
  x5c?: string[] | undefined;
994
1004
  x5t?: string | undefined;
995
- 'x5t#S256'?: string | undefined;
1005
+ "x5t#S256"?: string | undefined;
996
1006
  x5u?: string | undefined;
997
1007
  d?: string | undefined;
998
1008
  p?: string | undefined;
@@ -1021,7 +1031,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1021
1031
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1022
1032
  x5c?: string[] | undefined;
1023
1033
  x5t?: string | undefined;
1024
- 'x5t#S256'?: string | undefined;
1034
+ "x5t#S256"?: string | undefined;
1025
1035
  x5u?: string | undefined;
1026
1036
  d?: string | undefined;
1027
1037
  } | {
@@ -1036,7 +1046,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1036
1046
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1037
1047
  x5c?: string[] | undefined;
1038
1048
  x5t?: string | undefined;
1039
- 'x5t#S256'?: string | undefined;
1049
+ "x5t#S256"?: string | undefined;
1040
1050
  x5u?: string | undefined;
1041
1051
  d?: string | undefined;
1042
1052
  } | {
@@ -1050,7 +1060,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1050
1060
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1051
1061
  x5c?: string[] | undefined;
1052
1062
  x5t?: string | undefined;
1053
- 'x5t#S256'?: string | undefined;
1063
+ "x5t#S256"?: string | undefined;
1054
1064
  x5u?: string | undefined;
1055
1065
  d?: string | undefined;
1056
1066
  } | {
@@ -1063,7 +1073,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1063
1073
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1064
1074
  x5c?: string[] | undefined;
1065
1075
  x5t?: string | undefined;
1066
- 'x5t#S256'?: string | undefined;
1076
+ "x5t#S256"?: string | undefined;
1067
1077
  x5u?: string | undefined;
1068
1078
  } | {
1069
1079
  kty: string;
@@ -1074,7 +1084,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1074
1084
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1075
1085
  x5c?: string[] | undefined;
1076
1086
  x5t?: string | undefined;
1077
- 'x5t#S256'?: string | undefined;
1087
+ "x5t#S256"?: string | undefined;
1078
1088
  x5u?: string | undefined;
1079
1089
  }>, "many">;
1080
1090
  }, "strip", z.ZodTypeAny, {
@@ -1089,7 +1099,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1089
1099
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1090
1100
  x5c?: string[] | undefined;
1091
1101
  x5t?: string | undefined;
1092
- 'x5t#S256'?: string | undefined;
1102
+ "x5t#S256"?: string | undefined;
1093
1103
  x5u?: string | undefined;
1094
1104
  d?: string | undefined;
1095
1105
  p?: string | undefined;
@@ -1118,7 +1128,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1118
1128
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1119
1129
  x5c?: string[] | undefined;
1120
1130
  x5t?: string | undefined;
1121
- 'x5t#S256'?: string | undefined;
1131
+ "x5t#S256"?: string | undefined;
1122
1132
  x5u?: string | undefined;
1123
1133
  d?: string | undefined;
1124
1134
  } | {
@@ -1133,7 +1143,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1133
1143
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1134
1144
  x5c?: string[] | undefined;
1135
1145
  x5t?: string | undefined;
1136
- 'x5t#S256'?: string | undefined;
1146
+ "x5t#S256"?: string | undefined;
1137
1147
  x5u?: string | undefined;
1138
1148
  d?: string | undefined;
1139
1149
  } | {
@@ -1147,7 +1157,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1147
1157
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1148
1158
  x5c?: string[] | undefined;
1149
1159
  x5t?: string | undefined;
1150
- 'x5t#S256'?: string | undefined;
1160
+ "x5t#S256"?: string | undefined;
1151
1161
  x5u?: string | undefined;
1152
1162
  d?: string | undefined;
1153
1163
  } | {
@@ -1160,7 +1170,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1160
1170
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1161
1171
  x5c?: string[] | undefined;
1162
1172
  x5t?: string | undefined;
1163
- 'x5t#S256'?: string | undefined;
1173
+ "x5t#S256"?: string | undefined;
1164
1174
  x5u?: string | undefined;
1165
1175
  } | {
1166
1176
  kty: string;
@@ -1171,7 +1181,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1171
1181
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1172
1182
  x5c?: string[] | undefined;
1173
1183
  x5t?: string | undefined;
1174
- 'x5t#S256'?: string | undefined;
1184
+ "x5t#S256"?: string | undefined;
1175
1185
  x5u?: string | undefined;
1176
1186
  })[];
1177
1187
  }, {
@@ -1186,7 +1196,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1186
1196
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1187
1197
  x5c?: string[] | undefined;
1188
1198
  x5t?: string | undefined;
1189
- 'x5t#S256'?: string | undefined;
1199
+ "x5t#S256"?: string | undefined;
1190
1200
  x5u?: string | undefined;
1191
1201
  d?: string | undefined;
1192
1202
  p?: string | undefined;
@@ -1215,7 +1225,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1215
1225
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1216
1226
  x5c?: string[] | undefined;
1217
1227
  x5t?: string | undefined;
1218
- 'x5t#S256'?: string | undefined;
1228
+ "x5t#S256"?: string | undefined;
1219
1229
  x5u?: string | undefined;
1220
1230
  d?: string | undefined;
1221
1231
  } | {
@@ -1230,7 +1240,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1230
1240
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1231
1241
  x5c?: string[] | undefined;
1232
1242
  x5t?: string | undefined;
1233
- 'x5t#S256'?: string | undefined;
1243
+ "x5t#S256"?: string | undefined;
1234
1244
  x5u?: string | undefined;
1235
1245
  d?: string | undefined;
1236
1246
  } | {
@@ -1244,7 +1254,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1244
1254
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1245
1255
  x5c?: string[] | undefined;
1246
1256
  x5t?: string | undefined;
1247
- 'x5t#S256'?: string | undefined;
1257
+ "x5t#S256"?: string | undefined;
1248
1258
  x5u?: string | undefined;
1249
1259
  d?: string | undefined;
1250
1260
  } | {
@@ -1257,7 +1267,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1257
1267
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1258
1268
  x5c?: string[] | undefined;
1259
1269
  x5t?: string | undefined;
1260
- 'x5t#S256'?: string | undefined;
1270
+ "x5t#S256"?: string | undefined;
1261
1271
  x5u?: string | undefined;
1262
1272
  } | {
1263
1273
  kty: string;
@@ -1268,7 +1278,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1268
1278
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1269
1279
  x5c?: string[] | undefined;
1270
1280
  x5t?: string | undefined;
1271
- 'x5t#S256'?: string | undefined;
1281
+ "x5t#S256"?: string | undefined;
1272
1282
  x5u?: string | undefined;
1273
1283
  })[];
1274
1284
  }>>;
@@ -1281,10 +1291,10 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1281
1291
  authorization_encrypted_response_alg: z.ZodOptional<z.ZodString>;
1282
1292
  client_id: z.ZodOptional<z.ZodString>;
1283
1293
  client_name: z.ZodOptional<z.ZodString>;
1284
- client_uri: z.ZodOptional<z.ZodString>;
1285
- policy_uri: z.ZodOptional<z.ZodString>;
1286
- tos_uri: z.ZodOptional<z.ZodString>;
1287
- logo_uri: z.ZodOptional<z.ZodString>;
1294
+ client_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`, string>>;
1295
+ policy_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`, string>>;
1296
+ tos_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`, string>>;
1297
+ logo_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`, string>>;
1288
1298
  /**
1289
1299
  * Default Maximum Authentication Age. Specifies that the End-User MUST be
1290
1300
  * actively authenticated if the End-User was authenticated longer ago than
@@ -1299,7 +1309,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1299
1309
  dpop_bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
1300
1310
  authorization_details_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1301
1311
  }, "strip", z.ZodTypeAny, {
1302
- redirect_uris: [string, ...string[]];
1312
+ redirect_uris: [`http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`, ...(`http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`)[]];
1303
1313
  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")[]];
1304
1314
  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")[]];
1305
1315
  scope?: string | undefined;
@@ -1307,7 +1317,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1307
1317
  token_endpoint_auth_signing_alg?: string | undefined;
1308
1318
  userinfo_signed_response_alg?: string | undefined;
1309
1319
  userinfo_encrypted_response_alg?: string | undefined;
1310
- jwks_uri?: string | undefined;
1320
+ jwks_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
1311
1321
  jwks?: {
1312
1322
  keys: ({
1313
1323
  kty: "RSA";
@@ -1320,7 +1330,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1320
1330
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1321
1331
  x5c?: string[] | undefined;
1322
1332
  x5t?: string | undefined;
1323
- 'x5t#S256'?: string | undefined;
1333
+ "x5t#S256"?: string | undefined;
1324
1334
  x5u?: string | undefined;
1325
1335
  d?: string | undefined;
1326
1336
  p?: string | undefined;
@@ -1349,7 +1359,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1349
1359
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1350
1360
  x5c?: string[] | undefined;
1351
1361
  x5t?: string | undefined;
1352
- 'x5t#S256'?: string | undefined;
1362
+ "x5t#S256"?: string | undefined;
1353
1363
  x5u?: string | undefined;
1354
1364
  d?: string | undefined;
1355
1365
  } | {
@@ -1364,7 +1374,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1364
1374
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1365
1375
  x5c?: string[] | undefined;
1366
1376
  x5t?: string | undefined;
1367
- 'x5t#S256'?: string | undefined;
1377
+ "x5t#S256"?: string | undefined;
1368
1378
  x5u?: string | undefined;
1369
1379
  d?: string | undefined;
1370
1380
  } | {
@@ -1378,7 +1388,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1378
1388
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1379
1389
  x5c?: string[] | undefined;
1380
1390
  x5t?: string | undefined;
1381
- 'x5t#S256'?: string | undefined;
1391
+ "x5t#S256"?: string | undefined;
1382
1392
  x5u?: string | undefined;
1383
1393
  d?: string | undefined;
1384
1394
  } | {
@@ -1391,7 +1401,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1391
1401
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1392
1402
  x5c?: string[] | undefined;
1393
1403
  x5t?: string | undefined;
1394
- 'x5t#S256'?: string | undefined;
1404
+ "x5t#S256"?: string | undefined;
1395
1405
  x5u?: string | undefined;
1396
1406
  } | {
1397
1407
  kty: string;
@@ -1402,7 +1412,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1402
1412
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1403
1413
  x5c?: string[] | undefined;
1404
1414
  x5t?: string | undefined;
1405
- 'x5t#S256'?: string | undefined;
1415
+ "x5t#S256"?: string | undefined;
1406
1416
  x5u?: string | undefined;
1407
1417
  })[];
1408
1418
  } | undefined;
@@ -1415,10 +1425,10 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1415
1425
  authorization_encrypted_response_alg?: string | undefined;
1416
1426
  client_id?: string | undefined;
1417
1427
  client_name?: string | undefined;
1418
- client_uri?: string | undefined;
1419
- policy_uri?: string | undefined;
1420
- tos_uri?: string | undefined;
1421
- logo_uri?: string | undefined;
1428
+ client_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
1429
+ policy_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
1430
+ tos_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
1431
+ logo_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
1422
1432
  default_max_age?: number | undefined;
1423
1433
  require_auth_time?: boolean | undefined;
1424
1434
  contacts?: string[] | undefined;
@@ -1447,7 +1457,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1447
1457
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1448
1458
  x5c?: string[] | undefined;
1449
1459
  x5t?: string | undefined;
1450
- 'x5t#S256'?: string | undefined;
1460
+ "x5t#S256"?: string | undefined;
1451
1461
  x5u?: string | undefined;
1452
1462
  d?: string | undefined;
1453
1463
  p?: string | undefined;
@@ -1476,7 +1486,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1476
1486
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1477
1487
  x5c?: string[] | undefined;
1478
1488
  x5t?: string | undefined;
1479
- 'x5t#S256'?: string | undefined;
1489
+ "x5t#S256"?: string | undefined;
1480
1490
  x5u?: string | undefined;
1481
1491
  d?: string | undefined;
1482
1492
  } | {
@@ -1491,7 +1501,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1491
1501
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1492
1502
  x5c?: string[] | undefined;
1493
1503
  x5t?: string | undefined;
1494
- 'x5t#S256'?: string | undefined;
1504
+ "x5t#S256"?: string | undefined;
1495
1505
  x5u?: string | undefined;
1496
1506
  d?: string | undefined;
1497
1507
  } | {
@@ -1505,7 +1515,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1505
1515
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1506
1516
  x5c?: string[] | undefined;
1507
1517
  x5t?: string | undefined;
1508
- 'x5t#S256'?: string | undefined;
1518
+ "x5t#S256"?: string | undefined;
1509
1519
  x5u?: string | undefined;
1510
1520
  d?: string | undefined;
1511
1521
  } | {
@@ -1518,7 +1528,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1518
1528
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1519
1529
  x5c?: string[] | undefined;
1520
1530
  x5t?: string | undefined;
1521
- 'x5t#S256'?: string | undefined;
1531
+ "x5t#S256"?: string | undefined;
1522
1532
  x5u?: string | undefined;
1523
1533
  } | {
1524
1534
  kty: string;
@@ -1529,7 +1539,7 @@ export declare const oauthClientMetadataSchema: z.ZodObject<{
1529
1539
  key_ops?: ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
1530
1540
  x5c?: string[] | undefined;
1531
1541
  x5t?: string | undefined;
1532
- 'x5t#S256'?: string | undefined;
1542
+ "x5t#S256"?: string | undefined;
1533
1543
  x5u?: string | undefined;
1534
1544
  })[];
1535
1545
  } | undefined;