@blen/uspto-mcp-server 0.0.0-stage → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +55 -0
  4. package/README.md +229 -2
  5. package/SECURITY.md +142 -0
  6. package/dist/accounts/app.d.ts +18 -0
  7. package/dist/accounts/app.d.ts.map +1 -0
  8. package/dist/accounts/app.js +407 -0
  9. package/dist/accounts/app.js.map +1 -0
  10. package/dist/accounts/config.d.ts +21 -0
  11. package/dist/accounts/config.d.ts.map +1 -0
  12. package/dist/accounts/config.js +55 -0
  13. package/dist/accounts/config.js.map +1 -0
  14. package/dist/accounts/crypto.d.ts +18 -0
  15. package/dist/accounts/crypto.d.ts.map +1 -0
  16. package/dist/accounts/crypto.js +43 -0
  17. package/dist/accounts/crypto.js.map +1 -0
  18. package/dist/accounts/keyGates.d.ts +19 -0
  19. package/dist/accounts/keyGates.d.ts.map +1 -0
  20. package/dist/accounts/keyGates.js +47 -0
  21. package/dist/accounts/keyGates.js.map +1 -0
  22. package/dist/accounts/paths.d.ts +10 -0
  23. package/dist/accounts/paths.d.ts.map +1 -0
  24. package/dist/accounts/paths.js +10 -0
  25. package/dist/accounts/paths.js.map +1 -0
  26. package/dist/accounts/portal.d.ts +7 -0
  27. package/dist/accounts/portal.d.ts.map +1 -0
  28. package/dist/accounts/portal.js +225 -0
  29. package/dist/accounts/portal.js.map +1 -0
  30. package/dist/accounts/provider.d.ts +2610 -0
  31. package/dist/accounts/provider.d.ts.map +1 -0
  32. package/dist/accounts/provider.js +108 -0
  33. package/dist/accounts/provider.js.map +1 -0
  34. package/dist/accounts/runtime.d.ts +26 -0
  35. package/dist/accounts/runtime.d.ts.map +1 -0
  36. package/dist/accounts/runtime.js +168 -0
  37. package/dist/accounts/runtime.js.map +1 -0
  38. package/dist/accounts/store.d.ts +30 -0
  39. package/dist/accounts/store.d.ts.map +1 -0
  40. package/dist/accounts/store.js +155 -0
  41. package/dist/accounts/store.js.map +1 -0
  42. package/dist/bin.d.ts +3 -0
  43. package/dist/bin.d.ts.map +1 -0
  44. package/dist/bin.js +195 -0
  45. package/dist/bin.js.map +1 -0
  46. package/dist/index.d.ts +11 -0
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +8 -0
  49. package/dist/index.js.map +1 -0
  50. package/dist/sandbox/deno.d.ts +35 -0
  51. package/dist/sandbox/deno.d.ts.map +1 -0
  52. package/dist/sandbox/deno.js +373 -0
  53. package/dist/sandbox/deno.js.map +1 -0
  54. package/dist/sandbox/index.d.ts +28 -0
  55. package/dist/sandbox/index.d.ts.map +1 -0
  56. package/dist/sandbox/index.js +55 -0
  57. package/dist/sandbox/index.js.map +1 -0
  58. package/dist/sandbox/isolate.d.ts +17 -0
  59. package/dist/sandbox/isolate.d.ts.map +1 -0
  60. package/dist/sandbox/isolate.js +195 -0
  61. package/dist/sandbox/isolate.js.map +1 -0
  62. package/dist/sandbox/limits.d.ts +60 -0
  63. package/dist/sandbox/limits.d.ts.map +1 -0
  64. package/dist/sandbox/limits.js +86 -0
  65. package/dist/sandbox/limits.js.map +1 -0
  66. package/dist/sandbox/policy.d.ts +7 -0
  67. package/dist/sandbox/policy.d.ts.map +1 -0
  68. package/dist/sandbox/policy.js +87 -0
  69. package/dist/sandbox/policy.js.map +1 -0
  70. package/dist/sandbox/types.d.ts +57 -0
  71. package/dist/sandbox/types.d.ts.map +1 -0
  72. package/dist/sandbox/types.js +6 -0
  73. package/dist/sandbox/types.js.map +1 -0
  74. package/dist/sdk/bindings.d.ts +13 -0
  75. package/dist/sdk/bindings.d.ts.map +1 -0
  76. package/dist/sdk/bindings.js +22 -0
  77. package/dist/sdk/bindings.js.map +1 -0
  78. package/dist/sdk/odp-client.d.ts +167 -0
  79. package/dist/sdk/odp-client.d.ts.map +1 -0
  80. package/dist/sdk/odp-client.js +253 -0
  81. package/dist/sdk/odp-client.js.map +1 -0
  82. package/dist/sdk/runtime.d.ts +21 -0
  83. package/dist/sdk/runtime.d.ts.map +1 -0
  84. package/dist/sdk/runtime.js +32 -0
  85. package/dist/sdk/runtime.js.map +1 -0
  86. package/dist/sdk/sources/corpus-loader.d.ts +8 -0
  87. package/dist/sdk/sources/corpus-loader.d.ts.map +1 -0
  88. package/dist/sdk/sources/corpus-loader.js +17 -0
  89. package/dist/sdk/sources/corpus-loader.js.map +1 -0
  90. package/dist/sdk/sources/index.d.ts +8 -0
  91. package/dist/sdk/sources/index.d.ts.map +1 -0
  92. package/dist/sdk/sources/index.js +25 -0
  93. package/dist/sdk/sources/index.js.map +1 -0
  94. package/dist/sdk/sources/odp.d.ts +5 -0
  95. package/dist/sdk/sources/odp.d.ts.map +1 -0
  96. package/dist/sdk/sources/odp.js +78 -0
  97. package/dist/sdk/sources/odp.js.map +1 -0
  98. package/dist/sdk/sources/source.d.ts +44 -0
  99. package/dist/sdk/sources/source.d.ts.map +1 -0
  100. package/dist/sdk/sources/source.js +3 -0
  101. package/dist/sdk/sources/source.js.map +1 -0
  102. package/dist/sdk/sources/tsdr.d.ts +5 -0
  103. package/dist/sdk/sources/tsdr.d.ts.map +1 -0
  104. package/dist/sdk/sources/tsdr.js +38 -0
  105. package/dist/sdk/sources/tsdr.js.map +1 -0
  106. package/dist/sdk/tsdr-client.d.ts +24 -0
  107. package/dist/sdk/tsdr-client.d.ts.map +1 -0
  108. package/dist/sdk/tsdr-client.js +65 -0
  109. package/dist/sdk/tsdr-client.js.map +1 -0
  110. package/dist/search/bm25.d.ts +25 -0
  111. package/dist/search/bm25.d.ts.map +1 -0
  112. package/dist/search/bm25.js +67 -0
  113. package/dist/search/bm25.js.map +1 -0
  114. package/dist/search/corpus.d.ts +24 -0
  115. package/dist/search/corpus.d.ts.map +1 -0
  116. package/dist/search/corpus.js +23 -0
  117. package/dist/search/corpus.js.map +1 -0
  118. package/dist/server/authz.d.ts +40 -0
  119. package/dist/server/authz.d.ts.map +1 -0
  120. package/dist/server/authz.js +70 -0
  121. package/dist/server/authz.js.map +1 -0
  122. package/dist/server/http.d.ts +44 -0
  123. package/dist/server/http.d.ts.map +1 -0
  124. package/dist/server/http.js +199 -0
  125. package/dist/server/http.js.map +1 -0
  126. package/dist/server/ipRateLimiter.d.ts +22 -0
  127. package/dist/server/ipRateLimiter.d.ts.map +1 -0
  128. package/dist/server/ipRateLimiter.js +58 -0
  129. package/dist/server/ipRateLimiter.js.map +1 -0
  130. package/dist/server/mcpServer.d.ts +22 -0
  131. package/dist/server/mcpServer.d.ts.map +1 -0
  132. package/dist/server/mcpServer.js +90 -0
  133. package/dist/server/mcpServer.js.map +1 -0
  134. package/dist/server/stdio.d.ts +3 -0
  135. package/dist/server/stdio.d.ts.map +1 -0
  136. package/dist/server/stdio.js +16 -0
  137. package/dist/server/stdio.js.map +1 -0
  138. package/dist/server/toolCatalog.d.ts +162 -0
  139. package/dist/server/toolCatalog.d.ts.map +1 -0
  140. package/dist/server/toolCatalog.js +83 -0
  141. package/dist/server/toolCatalog.js.map +1 -0
  142. package/dist/server/wellKnown.d.ts +16 -0
  143. package/dist/server/wellKnown.d.ts.map +1 -0
  144. package/dist/server/wellKnown.js +17 -0
  145. package/dist/server/wellKnown.js.map +1 -0
  146. package/dist/server/zodToJsonSchema.d.ts +8 -0
  147. package/dist/server/zodToJsonSchema.d.ts.map +1 -0
  148. package/dist/server/zodToJsonSchema.js +14 -0
  149. package/dist/server/zodToJsonSchema.js.map +1 -0
  150. package/dist/supervisor/index.d.ts +54 -0
  151. package/dist/supervisor/index.d.ts.map +1 -0
  152. package/dist/supervisor/index.js +62 -0
  153. package/dist/supervisor/index.js.map +1 -0
  154. package/dist/tools/describeSchema.d.ts +23 -0
  155. package/dist/tools/describeSchema.d.ts.map +1 -0
  156. package/dist/tools/describeSchema.js +14 -0
  157. package/dist/tools/describeSchema.js.map +1 -0
  158. package/dist/tools/execute.d.ts +36 -0
  159. package/dist/tools/execute.d.ts.map +1 -0
  160. package/dist/tools/execute.js +70 -0
  161. package/dist/tools/execute.js.map +1 -0
  162. package/dist/tools/searchApi.d.ts +21 -0
  163. package/dist/tools/searchApi.d.ts.map +1 -0
  164. package/dist/tools/searchApi.js +14 -0
  165. package/dist/tools/searchApi.js.map +1 -0
  166. package/dist/util/executionContext.d.ts +6 -0
  167. package/dist/util/executionContext.d.ts.map +1 -0
  168. package/dist/util/executionContext.js +26 -0
  169. package/dist/util/executionContext.js.map +1 -0
  170. package/dist/util/executionLimiter.d.ts +19 -0
  171. package/dist/util/executionLimiter.d.ts.map +1 -0
  172. package/dist/util/executionLimiter.js +41 -0
  173. package/dist/util/executionLimiter.js.map +1 -0
  174. package/dist/util/httpClient.d.ts +116 -0
  175. package/dist/util/httpClient.d.ts.map +1 -0
  176. package/dist/util/httpClient.js +434 -0
  177. package/dist/util/httpClient.js.map +1 -0
  178. package/dist/util/logger.d.ts +7 -0
  179. package/dist/util/logger.d.ts.map +1 -0
  180. package/dist/util/logger.js +25 -0
  181. package/dist/util/logger.js.map +1 -0
  182. package/dist/util/quotas.d.ts +13 -0
  183. package/dist/util/quotas.d.ts.map +1 -0
  184. package/dist/util/quotas.js +29 -0
  185. package/dist/util/quotas.js.map +1 -0
  186. package/dist/util/tokenBucket.d.ts +11 -0
  187. package/dist/util/tokenBucket.d.ts.map +1 -0
  188. package/dist/util/tokenBucket.js +30 -0
  189. package/dist/util/tokenBucket.js.map +1 -0
  190. package/dist/util/upstreamGate.d.ts +36 -0
  191. package/dist/util/upstreamGate.d.ts.map +1 -0
  192. package/dist/util/upstreamGate.js +112 -0
  193. package/dist/util/upstreamGate.js.map +1 -0
  194. package/dist/web/THIRD_PARTY_NOTICES.txt +1940 -0
  195. package/dist/web/assets/blen-logo-BKJFojyj.png +0 -0
  196. package/dist/web/assets/index-Dbbu8lq3.js +317 -0
  197. package/dist/web/assets/index-DkKvyv-b.css +2 -0
  198. package/dist/web/index.html +14 -0
  199. package/package.json +127 -4
  200. package/schema/odp.json +743 -0
  201. package/schema/tsdr.json +129 -0
@@ -0,0 +1,2610 @@
1
+ import type { AccountConfig } from './config.js';
2
+ import type { Store } from './store.js';
3
+ export declare const SCOPES: string[];
4
+ /** Same Google / OAuth provider as Data.gov, scoped to personal accounts. */
5
+ export declare function createAuth(config: AccountConfig, store: Store): import("better-auth").Auth<{
6
+ baseURL: string;
7
+ basePath: string;
8
+ secret: string;
9
+ database: import("pg").Pool;
10
+ trustedOrigins: string[];
11
+ logger: {
12
+ disabled: true;
13
+ };
14
+ advanced: {
15
+ useSecureCookies: boolean;
16
+ };
17
+ rateLimit: {
18
+ enabled: boolean;
19
+ };
20
+ session: {
21
+ expiresIn: number;
22
+ cookieCache: {
23
+ enabled: false;
24
+ };
25
+ };
26
+ account: {
27
+ encryptOAuthTokens: true;
28
+ accountLinking: {
29
+ enabled: false;
30
+ };
31
+ };
32
+ emailAndPassword: {
33
+ enabled: false;
34
+ };
35
+ disabledPaths: string[];
36
+ socialProviders: {
37
+ google: {
38
+ clientId: string;
39
+ clientSecret: string;
40
+ accessType: "online";
41
+ prompt: "select_account";
42
+ };
43
+ };
44
+ hooks: {
45
+ before: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>;
46
+ };
47
+ plugins: [{
48
+ id: "oauth-provider";
49
+ version: string;
50
+ options: NoInfer<import("@better-auth/oauth-provider").OAuthOptions<import("@better-auth/oauth-provider").Scope[]>>;
51
+ onRequest: (request: Request, ctx: import("better-auth").AuthContext) => Promise<{
52
+ response: Response;
53
+ } | {
54
+ request: Request;
55
+ } | void>;
56
+ init: (ctx: import("better-auth").AuthContext) => Promise<{
57
+ options: {
58
+ databaseHooks: {
59
+ session: {
60
+ delete: {
61
+ before(session: {
62
+ id: string;
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ userId: string;
66
+ expiresAt: Date;
67
+ token: string;
68
+ ipAddress?: string | null | undefined;
69
+ userAgent?: string | null | undefined;
70
+ } & Record<string, unknown>, hookCtx: import("better-auth").GenericEndpointContext | null): Promise<void>;
71
+ after(session: {
72
+ id: string;
73
+ createdAt: Date;
74
+ updatedAt: Date;
75
+ userId: string;
76
+ expiresAt: Date;
77
+ token: string;
78
+ ipAddress?: string | null | undefined;
79
+ userAgent?: string | null | undefined;
80
+ } & Record<string, unknown>, hookCtx: import("better-auth").GenericEndpointContext | null): Promise<void>;
81
+ };
82
+ };
83
+ };
84
+ };
85
+ }>;
86
+ hooks: {
87
+ before: {
88
+ matcher(ctx: import("better-auth").HookEndpointContext): any;
89
+ handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>;
90
+ }[];
91
+ after: {
92
+ matcher(ctx: import("better-auth").HookEndpointContext): boolean;
93
+ handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
94
+ redirect: true;
95
+ url: string;
96
+ } | undefined>>;
97
+ }[];
98
+ };
99
+ endpoints: {
100
+ getOAuthServerConfig: import("better-auth").StrictEndpoint<"/.well-known/oauth-authorization-server", {
101
+ method: "GET";
102
+ metadata: {
103
+ SERVER_ONLY: true;
104
+ };
105
+ }, import("@better-auth/oauth-provider").AuthServerMetadata>;
106
+ getOpenIdConfig: import("better-auth").StrictEndpoint<"/.well-known/openid-configuration", {
107
+ method: "GET";
108
+ metadata: {
109
+ SERVER_ONLY: true;
110
+ };
111
+ }, {
112
+ jwks_uri?: string | undefined;
113
+ userinfo_endpoint: string;
114
+ acr_values_supported?: string[] | undefined;
115
+ subject_types_supported: ("public" | "pairwise")[];
116
+ claims_supported: string[];
117
+ claims_parameter_supported?: boolean | undefined;
118
+ end_session_endpoint: string;
119
+ request_parameter_supported?: boolean | undefined;
120
+ request_uri_parameter_supported?: boolean | undefined;
121
+ prompt_values_supported: import("@better-auth/oauth-provider").Prompt[];
122
+ issuer: string;
123
+ authorization_endpoint: string;
124
+ token_endpoint: string;
125
+ registration_endpoint?: string | undefined;
126
+ scopes_supported?: string[] | undefined;
127
+ response_types_supported: "code"[];
128
+ response_modes_supported: "query"[];
129
+ grant_types_supported: import("@better-auth/oauth-provider").GrantType[];
130
+ token_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
131
+ token_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
132
+ service_documentation?: string | undefined;
133
+ ui_locales_supported?: string[] | undefined;
134
+ op_policy_uri?: string | undefined;
135
+ op_tos_uri?: string | undefined;
136
+ revocation_endpoint?: string | undefined;
137
+ revocation_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
138
+ revocation_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
139
+ introspection_endpoint?: string | undefined;
140
+ introspection_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
141
+ introspection_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
142
+ code_challenge_methods_supported: "S256"[];
143
+ authorization_response_iss_parameter_supported?: boolean | undefined;
144
+ client_id_metadata_document_supported?: boolean | undefined;
145
+ backchannel_logout_supported?: boolean | undefined;
146
+ backchannel_logout_session_supported?: boolean | undefined;
147
+ dpop_signing_alg_values_supported?: import("better-auth/plugins").JWSAlgorithms[] | undefined;
148
+ id_token_signing_alg_values_supported: import("better-auth/plugins").JWSAlgorithms[] | ["HS256"];
149
+ }>;
150
+ oauth2Authorize: import("better-auth").StrictEndpoint<"/oauth2/authorize", {
151
+ method: ("GET" | "POST")[];
152
+ body: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
153
+ redirectOnError: import("@better-auth/oauth-provider").OAuthRedirectOnError<import("better-auth").GenericEndpointContext, {
154
+ redirect: true;
155
+ url: string;
156
+ }>;
157
+ metadata: {
158
+ allowedMediaTypes: string[];
159
+ openapi: {
160
+ description: string;
161
+ parameters: ({
162
+ name: string;
163
+ in: "query";
164
+ required: false;
165
+ schema: {
166
+ type: "string";
167
+ format?: undefined;
168
+ minimum?: undefined;
169
+ items?: undefined;
170
+ };
171
+ description: string;
172
+ } | {
173
+ name: string;
174
+ in: "query";
175
+ required: true;
176
+ schema: {
177
+ type: "string";
178
+ format?: undefined;
179
+ minimum?: undefined;
180
+ items?: undefined;
181
+ };
182
+ description: string;
183
+ } | {
184
+ name: string;
185
+ in: "query";
186
+ required: false;
187
+ schema: {
188
+ type: "string";
189
+ format: string;
190
+ minimum?: undefined;
191
+ items?: undefined;
192
+ };
193
+ description: string;
194
+ } | {
195
+ name: string;
196
+ in: "query";
197
+ required: false;
198
+ schema: {
199
+ type: "integer";
200
+ minimum: number;
201
+ format?: undefined;
202
+ items?: undefined;
203
+ };
204
+ description: string;
205
+ } | {
206
+ name: string;
207
+ in: "query";
208
+ required: false;
209
+ schema: {
210
+ type: "array";
211
+ items: {
212
+ type: "string";
213
+ };
214
+ format?: undefined;
215
+ minimum?: undefined;
216
+ };
217
+ description: string;
218
+ })[];
219
+ responses: {
220
+ "302": {
221
+ description: string;
222
+ headers: {
223
+ Location: {
224
+ description: string;
225
+ schema: {
226
+ type: string;
227
+ format: string;
228
+ };
229
+ };
230
+ };
231
+ };
232
+ "400": {
233
+ description: string;
234
+ content: {
235
+ "application/json": {
236
+ schema: {
237
+ type: "object";
238
+ properties: {
239
+ error: {
240
+ type: string;
241
+ };
242
+ error_description: {
243
+ type: string;
244
+ };
245
+ state: {
246
+ type: string;
247
+ };
248
+ };
249
+ required: string[];
250
+ };
251
+ };
252
+ };
253
+ };
254
+ };
255
+ };
256
+ };
257
+ }, {
258
+ redirect: true;
259
+ url: string;
260
+ }>;
261
+ oauth2Consent: import("better-auth").StrictEndpoint<"/oauth2/consent", {
262
+ method: "POST";
263
+ body: import("zod").ZodObject<{
264
+ accept: import("zod").ZodBoolean;
265
+ scope: import("zod").ZodOptional<import("zod").ZodString>;
266
+ claims: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>]>>;
267
+ oauth_query: import("zod").ZodOptional<import("zod").ZodString>;
268
+ }, import("zod/v4/core").$strip>;
269
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
270
+ session: {
271
+ session: Record<string, any> & {
272
+ id: string;
273
+ createdAt: Date;
274
+ updatedAt: Date;
275
+ userId: string;
276
+ expiresAt: Date;
277
+ token: string;
278
+ ipAddress?: string | null | undefined;
279
+ userAgent?: string | null | undefined;
280
+ };
281
+ user: Record<string, any> & {
282
+ id: string;
283
+ createdAt: Date;
284
+ updatedAt: Date;
285
+ email: string;
286
+ emailVerified: boolean;
287
+ name: string;
288
+ image?: string | null | undefined;
289
+ };
290
+ };
291
+ }>>[];
292
+ metadata: {
293
+ openapi: {
294
+ description: string;
295
+ responses: {
296
+ "200": {
297
+ description: string;
298
+ content: {
299
+ "application/json": {
300
+ schema: {
301
+ type: "object";
302
+ properties: {
303
+ redirect: {
304
+ type: string;
305
+ description: string;
306
+ enum: boolean[];
307
+ };
308
+ url: {
309
+ type: string;
310
+ format: string;
311
+ description: string;
312
+ };
313
+ };
314
+ required: string[];
315
+ };
316
+ };
317
+ };
318
+ };
319
+ };
320
+ };
321
+ };
322
+ }, {
323
+ redirect: true;
324
+ url: string;
325
+ } | {
326
+ redirect: boolean;
327
+ url: string;
328
+ }>;
329
+ oauth2Continue: import("better-auth").StrictEndpoint<"/oauth2/continue", {
330
+ method: "POST";
331
+ body: import("zod").ZodObject<{
332
+ selected: import("zod").ZodOptional<import("zod").ZodBoolean>;
333
+ created: import("zod").ZodOptional<import("zod").ZodBoolean>;
334
+ postLogin: import("zod").ZodOptional<import("zod").ZodBoolean>;
335
+ oauth_query: import("zod").ZodOptional<import("zod").ZodString>;
336
+ }, import("zod/v4/core").$strip>;
337
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
338
+ session: {
339
+ session: Record<string, any> & {
340
+ id: string;
341
+ createdAt: Date;
342
+ updatedAt: Date;
343
+ userId: string;
344
+ expiresAt: Date;
345
+ token: string;
346
+ ipAddress?: string | null | undefined;
347
+ userAgent?: string | null | undefined;
348
+ };
349
+ user: Record<string, any> & {
350
+ id: string;
351
+ createdAt: Date;
352
+ updatedAt: Date;
353
+ email: string;
354
+ emailVerified: boolean;
355
+ name: string;
356
+ image?: string | null | undefined;
357
+ };
358
+ };
359
+ }>>[];
360
+ metadata: {
361
+ openapi: {
362
+ description: string;
363
+ responses: {
364
+ "200": {
365
+ description: string;
366
+ content: {
367
+ "application/json": {
368
+ schema: {
369
+ type: "object";
370
+ properties: {
371
+ redirect: {
372
+ type: string;
373
+ description: string;
374
+ enum: boolean[];
375
+ };
376
+ url: {
377
+ type: string;
378
+ format: string;
379
+ description: string;
380
+ };
381
+ };
382
+ required: string[];
383
+ };
384
+ };
385
+ };
386
+ };
387
+ };
388
+ };
389
+ };
390
+ }, {
391
+ redirect: true;
392
+ url: string;
393
+ }>;
394
+ oauth2Token: import("better-auth").StrictEndpoint<"/oauth2/token", {
395
+ method: "POST";
396
+ cloneRequest: true;
397
+ body: import("zod").ZodObject<{
398
+ grant_type: import("zod").ZodString;
399
+ client_id: import("zod").ZodOptional<import("zod").ZodString>;
400
+ client_secret: import("zod").ZodOptional<import("zod").ZodString>;
401
+ client_assertion: import("zod").ZodOptional<import("zod").ZodString>;
402
+ client_assertion_type: import("zod").ZodOptional<import("zod").ZodString>;
403
+ code: import("zod").ZodOptional<import("zod").ZodString>;
404
+ code_verifier: import("zod").ZodOptional<import("zod").ZodString>;
405
+ redirect_uri: import("zod").ZodOptional<import("zod").ZodURL>;
406
+ refresh_token: import("zod").ZodOptional<import("zod").ZodString>;
407
+ resource: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
408
+ scope: import("zod").ZodOptional<import("zod").ZodString>;
409
+ }, import("zod/v4/core").$loose>;
410
+ errorCodesByField: {
411
+ grant_type: {
412
+ missing: "invalid_request";
413
+ invalid: "unsupported_grant_type";
414
+ };
415
+ resource: {
416
+ invalid: "invalid_target";
417
+ };
418
+ };
419
+ metadata: {
420
+ noStore: boolean;
421
+ allowedMediaTypes: string[];
422
+ openapi: {
423
+ description: string;
424
+ parameters: {
425
+ name: string;
426
+ in: "header";
427
+ required: false;
428
+ schema: {
429
+ type: "string";
430
+ };
431
+ description: string;
432
+ }[];
433
+ requestBody: {
434
+ required: boolean;
435
+ content: {
436
+ "application/json": {
437
+ schema: {
438
+ type: "object";
439
+ properties: {
440
+ grant_type: {
441
+ type: string;
442
+ description: string;
443
+ };
444
+ client_id: {
445
+ type: string;
446
+ description: string;
447
+ };
448
+ client_secret: {
449
+ type: string;
450
+ description: string;
451
+ };
452
+ code: {
453
+ type: string;
454
+ description: string;
455
+ };
456
+ code_verifier: {
457
+ type: string;
458
+ description: string;
459
+ };
460
+ redirect_uri: {
461
+ type: string;
462
+ format: string;
463
+ description: string;
464
+ };
465
+ refresh_token: {
466
+ type: string;
467
+ description: string;
468
+ };
469
+ resource: {
470
+ oneOf: ({
471
+ type: string;
472
+ description: string;
473
+ items?: undefined;
474
+ } | {
475
+ type: string;
476
+ items: {
477
+ type: string;
478
+ };
479
+ description: string;
480
+ })[];
481
+ description: string;
482
+ };
483
+ scope: {
484
+ type: string;
485
+ description: string;
486
+ };
487
+ };
488
+ required: string[];
489
+ };
490
+ };
491
+ };
492
+ };
493
+ responses: {
494
+ "200": {
495
+ description: string;
496
+ content: {
497
+ "application/json": {
498
+ schema: {
499
+ type: "object";
500
+ properties: {
501
+ access_token: {
502
+ type: string;
503
+ description: string;
504
+ };
505
+ token_type: {
506
+ type: string;
507
+ description: string;
508
+ enum: string[];
509
+ };
510
+ expires_in: {
511
+ type: string;
512
+ description: string;
513
+ };
514
+ refresh_token: {
515
+ type: string;
516
+ description: string;
517
+ };
518
+ scope: {
519
+ type: string;
520
+ description: string;
521
+ };
522
+ id_token: {
523
+ type: string;
524
+ description: string;
525
+ };
526
+ };
527
+ required: string[];
528
+ };
529
+ };
530
+ };
531
+ };
532
+ "400": {
533
+ description: string;
534
+ content: {
535
+ "application/json": {
536
+ schema: {
537
+ type: "object";
538
+ properties: {
539
+ error: {
540
+ type: string;
541
+ };
542
+ error_description: {
543
+ type: string;
544
+ };
545
+ error_uri: {
546
+ type: string;
547
+ };
548
+ };
549
+ required: string[];
550
+ };
551
+ };
552
+ };
553
+ };
554
+ };
555
+ };
556
+ };
557
+ }, {
558
+ expires_in: number;
559
+ access_token: string;
560
+ expires_at: number;
561
+ token_type: import("@better-auth/oauth-provider").TokenType;
562
+ refresh_token: string | undefined;
563
+ scope: string;
564
+ id_token: string | undefined;
565
+ }>;
566
+ oauth2Introspect: import("better-auth").StrictEndpoint<"/oauth2/introspect", {
567
+ method: "POST";
568
+ cloneRequest: true;
569
+ body: import("zod").ZodObject<{
570
+ client_id: import("zod").ZodOptional<import("zod").ZodString>;
571
+ client_secret: import("zod").ZodOptional<import("zod").ZodString>;
572
+ client_assertion: import("zod").ZodOptional<import("zod").ZodString>;
573
+ client_assertion_type: import("zod").ZodOptional<import("zod").ZodString>;
574
+ token: import("zod").ZodString;
575
+ token_type_hint: import("zod").ZodOptional<import("zod").ZodString>;
576
+ }, import("zod/v4/core").$strip>;
577
+ metadata: {
578
+ noStore: boolean;
579
+ allowedMediaTypes: string[];
580
+ openapi: {
581
+ description: string;
582
+ requestBody: {
583
+ required: boolean;
584
+ content: {
585
+ "application/json": {
586
+ schema: {
587
+ type: "object";
588
+ properties: {
589
+ client_id: {
590
+ type: string;
591
+ description: string;
592
+ };
593
+ client_secret: {
594
+ type: string;
595
+ description: string;
596
+ };
597
+ token: {
598
+ type: string;
599
+ description: string;
600
+ };
601
+ token_type_hint: {
602
+ type: string;
603
+ description: string;
604
+ };
605
+ };
606
+ required: string[];
607
+ };
608
+ };
609
+ };
610
+ };
611
+ responses: {
612
+ "200": {
613
+ description: string;
614
+ content: {
615
+ "application/json": {
616
+ schema: {
617
+ type: "object";
618
+ properties: {
619
+ active: {
620
+ type: string;
621
+ description: string;
622
+ };
623
+ scope: {
624
+ type: string;
625
+ description: string;
626
+ };
627
+ client_id: {
628
+ type: string;
629
+ description: string;
630
+ };
631
+ username: {
632
+ type: string;
633
+ description: string;
634
+ };
635
+ token_type: {
636
+ type: string;
637
+ description: string;
638
+ };
639
+ exp: {
640
+ type: string;
641
+ description: string;
642
+ };
643
+ iat: {
644
+ type: string;
645
+ description: string;
646
+ };
647
+ nbf: {
648
+ type: string;
649
+ description: string;
650
+ };
651
+ sub: {
652
+ type: string;
653
+ description: string;
654
+ };
655
+ aud: {
656
+ type: string;
657
+ description: string;
658
+ };
659
+ iss: {
660
+ type: string;
661
+ description: string;
662
+ };
663
+ jti: {
664
+ type: string;
665
+ description: string;
666
+ };
667
+ };
668
+ required: string[];
669
+ };
670
+ };
671
+ };
672
+ };
673
+ "400": {
674
+ description: string;
675
+ content: {
676
+ "application/json": {
677
+ schema: {
678
+ type: "object";
679
+ properties: {
680
+ error: {
681
+ type: string;
682
+ };
683
+ error_description: {
684
+ type: string;
685
+ };
686
+ error_uri: {
687
+ type: string;
688
+ };
689
+ };
690
+ required: string[];
691
+ };
692
+ };
693
+ };
694
+ };
695
+ };
696
+ };
697
+ };
698
+ }, import("jose").JWTPayload>;
699
+ oauth2Revoke: import("better-auth").StrictEndpoint<"/oauth2/revoke", {
700
+ method: "POST";
701
+ cloneRequest: true;
702
+ body: import("zod").ZodObject<{
703
+ client_id: import("zod").ZodOptional<import("zod").ZodString>;
704
+ client_secret: import("zod").ZodOptional<import("zod").ZodString>;
705
+ client_assertion: import("zod").ZodOptional<import("zod").ZodString>;
706
+ client_assertion_type: import("zod").ZodOptional<import("zod").ZodString>;
707
+ token: import("zod").ZodString;
708
+ token_type_hint: import("zod").ZodOptional<import("zod").ZodString>;
709
+ }, import("zod/v4/core").$strip>;
710
+ metadata: {
711
+ allowedMediaTypes: string[];
712
+ openapi: {
713
+ description: string;
714
+ requestBody: {
715
+ required: boolean;
716
+ content: {
717
+ "application/json": {
718
+ schema: {
719
+ type: "object";
720
+ properties: {
721
+ client_id: {
722
+ type: string;
723
+ description: string;
724
+ };
725
+ client_secret: {
726
+ type: string;
727
+ description: string;
728
+ };
729
+ token: {
730
+ type: string;
731
+ description: string;
732
+ };
733
+ token_type_hint: {
734
+ type: string;
735
+ description: string;
736
+ };
737
+ };
738
+ required: string[];
739
+ };
740
+ };
741
+ };
742
+ };
743
+ responses: {
744
+ "200": {
745
+ description: string;
746
+ content: {
747
+ "application/json": {
748
+ schema: {
749
+ type: "object";
750
+ description: string;
751
+ };
752
+ };
753
+ };
754
+ };
755
+ "400": {
756
+ description: string;
757
+ content: {
758
+ "application/json": {
759
+ schema: {
760
+ type: "object";
761
+ properties: {
762
+ error: {
763
+ type: string;
764
+ };
765
+ error_description: {
766
+ type: string;
767
+ };
768
+ error_uri: {
769
+ type: string;
770
+ };
771
+ };
772
+ required: string[];
773
+ };
774
+ };
775
+ };
776
+ };
777
+ };
778
+ };
779
+ };
780
+ }, null | undefined>;
781
+ oauth2UserInfo: import("better-auth").StrictEndpoint<"/oauth2/userinfo", {
782
+ method: ("GET" | "POST")[];
783
+ body: import("zod").ZodOptional<import("zod").ZodObject<{
784
+ access_token: import("zod").ZodOptional<import("zod").ZodString>;
785
+ }, import("zod/v4/core").$loose>>;
786
+ metadata: {
787
+ noStore: boolean;
788
+ allowedMediaTypes: string[];
789
+ openapi: {
790
+ description: string;
791
+ security: ({
792
+ bearerAuth: never[];
793
+ OAuth2?: undefined;
794
+ } | {
795
+ OAuth2: string[];
796
+ bearerAuth?: undefined;
797
+ })[];
798
+ parameters: {
799
+ name: string;
800
+ in: "header";
801
+ required: false;
802
+ schema: {
803
+ type: "string";
804
+ };
805
+ description: string;
806
+ }[];
807
+ responses: {
808
+ "200": {
809
+ description: string;
810
+ content: {
811
+ "application/json": {
812
+ schema: {
813
+ type: "object";
814
+ properties: {
815
+ sub: {
816
+ type: string;
817
+ description: string;
818
+ };
819
+ email: {
820
+ type: string;
821
+ format: string;
822
+ nullable: boolean;
823
+ description: string;
824
+ };
825
+ name: {
826
+ type: string;
827
+ nullable: boolean;
828
+ description: string;
829
+ };
830
+ picture: {
831
+ type: string;
832
+ format: string;
833
+ nullable: boolean;
834
+ description: string;
835
+ };
836
+ given_name: {
837
+ type: string;
838
+ nullable: boolean;
839
+ description: string;
840
+ };
841
+ family_name: {
842
+ type: string;
843
+ nullable: boolean;
844
+ description: string;
845
+ };
846
+ email_verified: {
847
+ type: string;
848
+ nullable: boolean;
849
+ description: string;
850
+ };
851
+ };
852
+ required: string[];
853
+ };
854
+ };
855
+ };
856
+ };
857
+ "401": {
858
+ description: string;
859
+ content: {
860
+ "application/json": {
861
+ schema: {
862
+ type: "object";
863
+ properties: {
864
+ error: {
865
+ type: string;
866
+ };
867
+ error_description: {
868
+ type: string;
869
+ };
870
+ };
871
+ required: string[];
872
+ };
873
+ };
874
+ };
875
+ };
876
+ "403": {
877
+ description: string;
878
+ content: {
879
+ "application/json": {
880
+ schema: {
881
+ type: "object";
882
+ properties: {
883
+ error: {
884
+ type: string;
885
+ };
886
+ error_description: {
887
+ type: string;
888
+ };
889
+ };
890
+ required: string[];
891
+ };
892
+ };
893
+ };
894
+ };
895
+ };
896
+ };
897
+ };
898
+ }, {
899
+ sub: unknown;
900
+ }>;
901
+ oauth2EndSession: import("better-auth").StrictEndpoint<"/oauth2/end-session", {
902
+ method: ("GET" | "POST")[];
903
+ body: import("zod").ZodOptional<import("zod").ZodObject<{
904
+ id_token_hint: import("zod").ZodOptional<import("zod").ZodString>;
905
+ client_id: import("zod").ZodOptional<import("zod").ZodString>;
906
+ post_logout_redirect_uri: import("zod").ZodOptional<import("zod").ZodURL>;
907
+ state: import("zod").ZodOptional<import("zod").ZodString>;
908
+ }, import("zod/v4/core").$strip>>;
909
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
910
+ id_token_hint: import("zod").ZodOptional<import("zod").ZodString>;
911
+ client_id: import("zod").ZodOptional<import("zod").ZodString>;
912
+ post_logout_redirect_uri: import("zod").ZodOptional<import("zod").ZodURL>;
913
+ state: import("zod").ZodOptional<import("zod").ZodString>;
914
+ }, import("zod/v4/core").$strip>>;
915
+ metadata: {
916
+ noStore: boolean;
917
+ allowedMediaTypes: string[];
918
+ $Infer: {
919
+ body: {
920
+ id_token_hint?: string;
921
+ client_id?: string;
922
+ post_logout_redirect_uri?: string;
923
+ state?: string;
924
+ } | {
925
+ query: {
926
+ id_token_hint?: string;
927
+ client_id?: string;
928
+ post_logout_redirect_uri?: string;
929
+ state?: string;
930
+ };
931
+ };
932
+ query: {
933
+ id_token_hint?: string;
934
+ client_id?: string;
935
+ post_logout_redirect_uri?: string;
936
+ state?: string;
937
+ };
938
+ };
939
+ openapi: {
940
+ description: string;
941
+ responses: {
942
+ "200": {
943
+ description: string;
944
+ content: {
945
+ "application/json": {
946
+ schema: {
947
+ type: "object";
948
+ properties: {
949
+ redirect_uri: {
950
+ type: string;
951
+ format: string;
952
+ description: string;
953
+ };
954
+ message: {
955
+ type: string;
956
+ description: string;
957
+ };
958
+ };
959
+ };
960
+ };
961
+ "text/html": {
962
+ schema: {
963
+ type: "string";
964
+ };
965
+ };
966
+ };
967
+ };
968
+ };
969
+ };
970
+ };
971
+ }, Response | {
972
+ redirect: true;
973
+ url: string;
974
+ } | null>;
975
+ oauth2EndSessionConfirmation: import("better-auth").StrictEndpoint<"/oauth2/end-session/confirm", {
976
+ method: "POST";
977
+ body: import("zod").ZodObject<{
978
+ action: import("zod").ZodLiteral<"confirm">;
979
+ }, import("zod/v4/core").$strip>;
980
+ metadata: {
981
+ noStore: boolean;
982
+ allowedMediaTypes: string[];
983
+ scope: "http";
984
+ };
985
+ }, Response | {
986
+ redirect: true;
987
+ url: string;
988
+ } | null>;
989
+ registerOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/register", {
990
+ method: "POST";
991
+ body: import("zod").ZodObject<{
992
+ redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
993
+ scope: import("zod").ZodOptional<import("zod").ZodString>;
994
+ client_name: import("zod").ZodOptional<import("zod").ZodString>;
995
+ client_uri: import("zod").ZodOptional<import("zod").ZodString>;
996
+ logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
997
+ contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
998
+ tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
999
+ policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
1000
+ software_id: import("zod").ZodOptional<import("zod").ZodString>;
1001
+ software_version: import("zod").ZodOptional<import("zod").ZodString>;
1002
+ software_statement: import("zod").ZodOptional<import("zod").ZodString>;
1003
+ post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
1004
+ backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
1005
+ backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
1006
+ token_endpoint_auth_method: import("zod").ZodOptional<import("zod").ZodString>;
1007
+ jwks: import("zod").ZodOptional<import("zod").ZodObject<{
1008
+ keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1009
+ }, import("zod/v4/core").$strip>>;
1010
+ jwks_uri: import("zod").ZodOptional<import("zod").ZodString>;
1011
+ grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1012
+ response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
1013
+ code: "code";
1014
+ }>>>;
1015
+ application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
1016
+ web: "web";
1017
+ native: "native";
1018
+ }>>;
1019
+ subject_type: import("zod").ZodOptional<import("zod").ZodEnum<{
1020
+ public: "public";
1021
+ pairwise: "pairwise";
1022
+ }>>;
1023
+ dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
1024
+ resources: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1025
+ skip_consent: import("zod").ZodOptional<import("zod").ZodNever>;
1026
+ }, import("zod/v4/core").$strip>;
1027
+ errorCodesByField: {
1028
+ redirect_uris: "invalid_redirect_uri";
1029
+ post_logout_redirect_uris: "invalid_redirect_uri";
1030
+ software_statement: "invalid_software_statement";
1031
+ resources: "invalid_target";
1032
+ };
1033
+ defaultError: "invalid_client_metadata";
1034
+ metadata: {
1035
+ noStore: boolean;
1036
+ openapi: {
1037
+ description: string;
1038
+ responses: {
1039
+ "201": {
1040
+ description: string;
1041
+ content: {
1042
+ "application/json": {
1043
+ schema: {
1044
+ type: "object";
1045
+ properties: {
1046
+ client_id: {
1047
+ type: string;
1048
+ description: string;
1049
+ };
1050
+ client_secret: {
1051
+ type: string;
1052
+ description: string;
1053
+ };
1054
+ client_secret_expires_at: {
1055
+ type: string;
1056
+ description: string;
1057
+ };
1058
+ scope: {
1059
+ type: string;
1060
+ description: string;
1061
+ };
1062
+ user_id: {
1063
+ type: string;
1064
+ description: string;
1065
+ };
1066
+ client_id_issued_at: {
1067
+ type: string;
1068
+ description: string;
1069
+ };
1070
+ client_name: {
1071
+ type: string;
1072
+ description: string;
1073
+ };
1074
+ client_uri: {
1075
+ type: string;
1076
+ description: string;
1077
+ };
1078
+ logo_uri: {
1079
+ type: string;
1080
+ description: string;
1081
+ };
1082
+ contacts: {
1083
+ type: string;
1084
+ items: {
1085
+ type: string;
1086
+ };
1087
+ description: string;
1088
+ };
1089
+ tos_uri: {
1090
+ type: string;
1091
+ description: string;
1092
+ };
1093
+ policy_uri: {
1094
+ type: string;
1095
+ description: string;
1096
+ };
1097
+ software_id: {
1098
+ type: string;
1099
+ description: string;
1100
+ };
1101
+ software_version: {
1102
+ type: string;
1103
+ description: string;
1104
+ };
1105
+ software_statement: {
1106
+ type: string;
1107
+ description: string;
1108
+ };
1109
+ redirect_uris: {
1110
+ type: string;
1111
+ items: {
1112
+ type: string;
1113
+ format: string;
1114
+ };
1115
+ description: string;
1116
+ };
1117
+ post_logout_redirect_uris: {
1118
+ type: string;
1119
+ items: {
1120
+ type: string;
1121
+ format: string;
1122
+ };
1123
+ description: string;
1124
+ };
1125
+ backchannel_logout_uri: {
1126
+ type: string;
1127
+ format: string;
1128
+ description: string;
1129
+ };
1130
+ backchannel_logout_session_required: {
1131
+ type: string;
1132
+ description: string;
1133
+ };
1134
+ token_endpoint_auth_method: {
1135
+ type: string;
1136
+ description: string;
1137
+ };
1138
+ grant_types: {
1139
+ type: string;
1140
+ items: {
1141
+ type: string;
1142
+ };
1143
+ description: string;
1144
+ };
1145
+ response_types: {
1146
+ type: string;
1147
+ items: {
1148
+ type: string;
1149
+ enum: string[];
1150
+ };
1151
+ description: string;
1152
+ };
1153
+ application_type: {
1154
+ type: string;
1155
+ description: string;
1156
+ enum: string[];
1157
+ };
1158
+ resources: {
1159
+ type: string;
1160
+ items: {
1161
+ type: string;
1162
+ format: string;
1163
+ };
1164
+ description: string;
1165
+ };
1166
+ disabled: {
1167
+ type: string;
1168
+ description: string;
1169
+ };
1170
+ };
1171
+ required: string[];
1172
+ };
1173
+ };
1174
+ };
1175
+ };
1176
+ };
1177
+ };
1178
+ };
1179
+ }, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
1180
+ adminCreateOAuthClient: import("better-auth").StrictEndpoint<"/admin/oauth2/create-client", {
1181
+ method: "POST";
1182
+ body: import("zod").ZodObject<{
1183
+ redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
1184
+ scope: import("zod").ZodOptional<import("zod").ZodString>;
1185
+ client_name: import("zod").ZodOptional<import("zod").ZodString>;
1186
+ client_uri: import("zod").ZodOptional<import("zod").ZodString>;
1187
+ logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
1188
+ contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1189
+ tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
1190
+ policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
1191
+ software_id: import("zod").ZodOptional<import("zod").ZodString>;
1192
+ software_version: import("zod").ZodOptional<import("zod").ZodString>;
1193
+ software_statement: import("zod").ZodOptional<import("zod").ZodString>;
1194
+ post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
1195
+ backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
1196
+ backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
1197
+ token_endpoint_auth_method: import("zod").ZodOptional<import("zod").ZodString>;
1198
+ application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
1199
+ web: "web";
1200
+ native: "native";
1201
+ }>>;
1202
+ jwks: import("zod").ZodOptional<import("zod").ZodObject<{
1203
+ keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1204
+ }, import("zod/v4/core").$strip>>;
1205
+ jwks_uri: import("zod").ZodOptional<import("zod").ZodString>;
1206
+ grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1207
+ client_credentials_scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1208
+ resources: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1209
+ response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
1210
+ code: "code";
1211
+ }>>>;
1212
+ client_secret_expires_at: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>>;
1213
+ skip_consent: import("zod").ZodOptional<import("zod").ZodBoolean>;
1214
+ enable_end_session: import("zod").ZodOptional<import("zod").ZodBoolean>;
1215
+ require_pkce: import("zod").ZodOptional<import("zod").ZodBoolean>;
1216
+ dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
1217
+ subject_type: import("zod").ZodOptional<import("zod").ZodEnum<{
1218
+ public: "public";
1219
+ pairwise: "pairwise";
1220
+ }>>;
1221
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1222
+ }, import("zod/v4/core").$strip>;
1223
+ metadata: {
1224
+ noStore: boolean;
1225
+ SERVER_ONLY: true;
1226
+ openapi: {
1227
+ description: string;
1228
+ responses: {
1229
+ "201": {
1230
+ description: string;
1231
+ content: {
1232
+ "application/json": {
1233
+ schema: {
1234
+ type: "object";
1235
+ properties: {
1236
+ client_id: {
1237
+ type: string;
1238
+ description: string;
1239
+ };
1240
+ client_secret: {
1241
+ type: string;
1242
+ description: string;
1243
+ };
1244
+ client_secret_expires_at: {
1245
+ type: string;
1246
+ description: string;
1247
+ };
1248
+ scope: {
1249
+ type: string;
1250
+ description: string;
1251
+ };
1252
+ client_credentials_scopes: {
1253
+ type: string;
1254
+ items: {
1255
+ type: string;
1256
+ };
1257
+ description: string;
1258
+ };
1259
+ user_id: {
1260
+ type: string;
1261
+ description: string;
1262
+ };
1263
+ client_id_issued_at: {
1264
+ type: string;
1265
+ description: string;
1266
+ };
1267
+ client_name: {
1268
+ type: string;
1269
+ description: string;
1270
+ };
1271
+ client_uri: {
1272
+ type: string;
1273
+ description: string;
1274
+ };
1275
+ logo_uri: {
1276
+ type: string;
1277
+ description: string;
1278
+ };
1279
+ contacts: {
1280
+ type: string;
1281
+ items: {
1282
+ type: string;
1283
+ };
1284
+ description: string;
1285
+ };
1286
+ tos_uri: {
1287
+ type: string;
1288
+ description: string;
1289
+ };
1290
+ policy_uri: {
1291
+ type: string;
1292
+ description: string;
1293
+ };
1294
+ software_id: {
1295
+ type: string;
1296
+ description: string;
1297
+ };
1298
+ software_version: {
1299
+ type: string;
1300
+ description: string;
1301
+ };
1302
+ software_statement: {
1303
+ type: string;
1304
+ description: string;
1305
+ };
1306
+ redirect_uris: {
1307
+ type: string;
1308
+ items: {
1309
+ type: string;
1310
+ format: string;
1311
+ };
1312
+ description: string;
1313
+ };
1314
+ token_endpoint_auth_method: {
1315
+ type: string;
1316
+ description: string;
1317
+ };
1318
+ grant_types: {
1319
+ type: string;
1320
+ items: {
1321
+ type: string;
1322
+ };
1323
+ description: string;
1324
+ };
1325
+ response_types: {
1326
+ type: string;
1327
+ items: {
1328
+ type: string;
1329
+ enum: string[];
1330
+ };
1331
+ description: string;
1332
+ };
1333
+ application_type: {
1334
+ type: string;
1335
+ description: string;
1336
+ enum: string[];
1337
+ };
1338
+ resources: {
1339
+ type: string;
1340
+ items: {
1341
+ type: string;
1342
+ format: string;
1343
+ };
1344
+ description: string;
1345
+ };
1346
+ disabled: {
1347
+ type: string;
1348
+ description: string;
1349
+ };
1350
+ require_pkce: {
1351
+ type: string;
1352
+ description: string;
1353
+ default: boolean;
1354
+ };
1355
+ metadata: {
1356
+ type: string;
1357
+ additionalProperties: boolean;
1358
+ nullable: boolean;
1359
+ description: string;
1360
+ };
1361
+ };
1362
+ required: string[];
1363
+ };
1364
+ };
1365
+ };
1366
+ };
1367
+ };
1368
+ };
1369
+ };
1370
+ }, import("@better-auth/oauth-provider").OAuthClientAdministrativeResponse>;
1371
+ createOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/create-client", {
1372
+ method: "POST";
1373
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1374
+ session: {
1375
+ session: Record<string, any> & {
1376
+ id: string;
1377
+ createdAt: Date;
1378
+ updatedAt: Date;
1379
+ userId: string;
1380
+ expiresAt: Date;
1381
+ token: string;
1382
+ ipAddress?: string | null | undefined;
1383
+ userAgent?: string | null | undefined;
1384
+ };
1385
+ user: Record<string, any> & {
1386
+ id: string;
1387
+ createdAt: Date;
1388
+ updatedAt: Date;
1389
+ email: string;
1390
+ emailVerified: boolean;
1391
+ name: string;
1392
+ image?: string | null | undefined;
1393
+ };
1394
+ };
1395
+ }>>[];
1396
+ body: import("zod").ZodObject<{
1397
+ redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
1398
+ scope: import("zod").ZodOptional<import("zod").ZodString>;
1399
+ client_name: import("zod").ZodOptional<import("zod").ZodString>;
1400
+ client_uri: import("zod").ZodOptional<import("zod").ZodString>;
1401
+ logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
1402
+ contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1403
+ tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
1404
+ policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
1405
+ software_id: import("zod").ZodOptional<import("zod").ZodString>;
1406
+ software_version: import("zod").ZodOptional<import("zod").ZodString>;
1407
+ software_statement: import("zod").ZodOptional<import("zod").ZodString>;
1408
+ post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
1409
+ backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
1410
+ backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
1411
+ token_endpoint_auth_method: import("zod").ZodOptional<import("zod").ZodString>;
1412
+ application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
1413
+ web: "web";
1414
+ native: "native";
1415
+ }>>;
1416
+ jwks: import("zod").ZodOptional<import("zod").ZodObject<{
1417
+ keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1418
+ }, import("zod/v4/core").$strip>>;
1419
+ jwks_uri: import("zod").ZodOptional<import("zod").ZodString>;
1420
+ grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1421
+ response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
1422
+ code: "code";
1423
+ }>>>;
1424
+ dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
1425
+ }, import("zod/v4/core").$strip>;
1426
+ metadata: {
1427
+ noStore: boolean;
1428
+ openapi: {
1429
+ description: string;
1430
+ responses: {
1431
+ "201": {
1432
+ description: string;
1433
+ content: {
1434
+ "application/json": {
1435
+ schema: {
1436
+ type: "object";
1437
+ properties: {
1438
+ client_id: {
1439
+ type: string;
1440
+ description: string;
1441
+ };
1442
+ client_secret: {
1443
+ type: string;
1444
+ description: string;
1445
+ };
1446
+ client_secret_expires_at: {
1447
+ type: string;
1448
+ description: string;
1449
+ };
1450
+ scope: {
1451
+ type: string;
1452
+ description: string;
1453
+ };
1454
+ user_id: {
1455
+ type: string;
1456
+ description: string;
1457
+ };
1458
+ client_id_issued_at: {
1459
+ type: string;
1460
+ description: string;
1461
+ };
1462
+ client_name: {
1463
+ type: string;
1464
+ description: string;
1465
+ };
1466
+ client_uri: {
1467
+ type: string;
1468
+ description: string;
1469
+ };
1470
+ logo_uri: {
1471
+ type: string;
1472
+ description: string;
1473
+ };
1474
+ contacts: {
1475
+ type: string;
1476
+ items: {
1477
+ type: string;
1478
+ };
1479
+ description: string;
1480
+ };
1481
+ tos_uri: {
1482
+ type: string;
1483
+ description: string;
1484
+ };
1485
+ policy_uri: {
1486
+ type: string;
1487
+ description: string;
1488
+ };
1489
+ software_id: {
1490
+ type: string;
1491
+ description: string;
1492
+ };
1493
+ software_version: {
1494
+ type: string;
1495
+ description: string;
1496
+ };
1497
+ software_statement: {
1498
+ type: string;
1499
+ description: string;
1500
+ };
1501
+ redirect_uris: {
1502
+ type: string;
1503
+ items: {
1504
+ type: string;
1505
+ format: string;
1506
+ };
1507
+ description: string;
1508
+ };
1509
+ token_endpoint_auth_method: {
1510
+ type: string;
1511
+ description: string;
1512
+ };
1513
+ grant_types: {
1514
+ type: string;
1515
+ items: {
1516
+ type: string;
1517
+ };
1518
+ description: string;
1519
+ };
1520
+ response_types: {
1521
+ type: string;
1522
+ items: {
1523
+ type: string;
1524
+ enum: string[];
1525
+ };
1526
+ description: string;
1527
+ };
1528
+ application_type: {
1529
+ type: string;
1530
+ description: string;
1531
+ enum: string[];
1532
+ };
1533
+ resources: {
1534
+ type: string;
1535
+ items: {
1536
+ type: string;
1537
+ format: string;
1538
+ };
1539
+ description: string;
1540
+ };
1541
+ disabled: {
1542
+ type: string;
1543
+ description: string;
1544
+ };
1545
+ metadata: {
1546
+ type: string;
1547
+ additionalProperties: boolean;
1548
+ nullable: boolean;
1549
+ description: string;
1550
+ };
1551
+ };
1552
+ required: string[];
1553
+ };
1554
+ };
1555
+ };
1556
+ };
1557
+ };
1558
+ };
1559
+ };
1560
+ }, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
1561
+ getOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/get-client", {
1562
+ method: "GET";
1563
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1564
+ session: {
1565
+ session: Record<string, any> & {
1566
+ id: string;
1567
+ createdAt: Date;
1568
+ updatedAt: Date;
1569
+ userId: string;
1570
+ expiresAt: Date;
1571
+ token: string;
1572
+ ipAddress?: string | null | undefined;
1573
+ userAgent?: string | null | undefined;
1574
+ };
1575
+ user: Record<string, any> & {
1576
+ id: string;
1577
+ createdAt: Date;
1578
+ updatedAt: Date;
1579
+ email: string;
1580
+ emailVerified: boolean;
1581
+ name: string;
1582
+ image?: string | null | undefined;
1583
+ };
1584
+ };
1585
+ }>>[];
1586
+ query: import("zod").ZodObject<{
1587
+ client_id: import("zod").ZodString;
1588
+ }, import("zod/v4/core").$strip>;
1589
+ metadata: {
1590
+ openapi: {
1591
+ description: string;
1592
+ };
1593
+ };
1594
+ }, import("@better-auth/oauth-provider").OAuthClient>;
1595
+ getOAuthClientPublic: import("better-auth").StrictEndpoint<"/oauth2/public-client", {
1596
+ method: "GET";
1597
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1598
+ session: {
1599
+ session: Record<string, any> & {
1600
+ id: string;
1601
+ createdAt: Date;
1602
+ updatedAt: Date;
1603
+ userId: string;
1604
+ expiresAt: Date;
1605
+ token: string;
1606
+ ipAddress?: string | null | undefined;
1607
+ userAgent?: string | null | undefined;
1608
+ };
1609
+ user: Record<string, any> & {
1610
+ id: string;
1611
+ createdAt: Date;
1612
+ updatedAt: Date;
1613
+ email: string;
1614
+ emailVerified: boolean;
1615
+ name: string;
1616
+ image?: string | null | undefined;
1617
+ };
1618
+ };
1619
+ }>>[];
1620
+ query: import("zod").ZodObject<{
1621
+ client_id: import("zod").ZodString;
1622
+ }, import("zod/v4/core").$strip>;
1623
+ metadata: {
1624
+ openapi: {
1625
+ description: string;
1626
+ };
1627
+ };
1628
+ }, import("@better-auth/oauth-provider").OAuthClient>;
1629
+ getOAuthClientPublicPrelogin: import("better-auth").StrictEndpoint<"/oauth2/public-client-prelogin", {
1630
+ method: "POST";
1631
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>[];
1632
+ body: import("zod").ZodObject<{
1633
+ client_id: import("zod").ZodString;
1634
+ oauth_query: import("zod").ZodOptional<import("zod").ZodString>;
1635
+ }, import("zod/v4/core").$strip>;
1636
+ metadata: {
1637
+ openapi: {
1638
+ description: string;
1639
+ };
1640
+ };
1641
+ }, import("@better-auth/oauth-provider").OAuthClient>;
1642
+ getOAuthClients: import("better-auth").StrictEndpoint<"/oauth2/get-clients", {
1643
+ method: "GET";
1644
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1645
+ session: {
1646
+ session: Record<string, any> & {
1647
+ id: string;
1648
+ createdAt: Date;
1649
+ updatedAt: Date;
1650
+ userId: string;
1651
+ expiresAt: Date;
1652
+ token: string;
1653
+ ipAddress?: string | null | undefined;
1654
+ userAgent?: string | null | undefined;
1655
+ };
1656
+ user: Record<string, any> & {
1657
+ id: string;
1658
+ createdAt: Date;
1659
+ updatedAt: Date;
1660
+ email: string;
1661
+ emailVerified: boolean;
1662
+ name: string;
1663
+ image?: string | null | undefined;
1664
+ };
1665
+ };
1666
+ }>>[];
1667
+ metadata: {
1668
+ openapi: {
1669
+ description: string;
1670
+ };
1671
+ };
1672
+ }, import("@better-auth/oauth-provider").OAuthClient[] | null>;
1673
+ adminUpdateOAuthClient: import("better-auth").StrictEndpoint<"/admin/oauth2/update-client", {
1674
+ method: "PATCH";
1675
+ body: import("zod").ZodObject<{
1676
+ client_id: import("zod").ZodString;
1677
+ update: import("zod").ZodObject<{
1678
+ redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
1679
+ scope: import("zod").ZodOptional<import("zod").ZodString>;
1680
+ client_name: import("zod").ZodOptional<import("zod").ZodString>;
1681
+ client_uri: import("zod").ZodOptional<import("zod").ZodString>;
1682
+ logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
1683
+ contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1684
+ tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
1685
+ policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
1686
+ software_id: import("zod").ZodOptional<import("zod").ZodString>;
1687
+ software_version: import("zod").ZodOptional<import("zod").ZodString>;
1688
+ software_statement: import("zod").ZodOptional<import("zod").ZodString>;
1689
+ post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
1690
+ backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
1691
+ backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
1692
+ application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
1693
+ web: "web";
1694
+ native: "native";
1695
+ }>>;
1696
+ grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1697
+ client_credentials_scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1698
+ response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
1699
+ code: "code";
1700
+ }>>>;
1701
+ client_secret_expires_at: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
1702
+ skip_consent: import("zod").ZodOptional<import("zod").ZodBoolean>;
1703
+ enable_end_session: import("zod").ZodOptional<import("zod").ZodBoolean>;
1704
+ disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1705
+ dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
1706
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1707
+ }, import("zod/v4/core").$strip>;
1708
+ }, import("zod/v4/core").$strip>;
1709
+ metadata: {
1710
+ SERVER_ONLY: true;
1711
+ openapi: {
1712
+ description: string;
1713
+ };
1714
+ };
1715
+ }, import("@better-auth/oauth-provider").OAuthClientAdministrativeResponse>;
1716
+ updateOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/update-client", {
1717
+ method: "POST";
1718
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1719
+ session: {
1720
+ session: Record<string, any> & {
1721
+ id: string;
1722
+ createdAt: Date;
1723
+ updatedAt: Date;
1724
+ userId: string;
1725
+ expiresAt: Date;
1726
+ token: string;
1727
+ ipAddress?: string | null | undefined;
1728
+ userAgent?: string | null | undefined;
1729
+ };
1730
+ user: Record<string, any> & {
1731
+ id: string;
1732
+ createdAt: Date;
1733
+ updatedAt: Date;
1734
+ email: string;
1735
+ emailVerified: boolean;
1736
+ name: string;
1737
+ image?: string | null | undefined;
1738
+ };
1739
+ };
1740
+ }>>[];
1741
+ body: import("zod").ZodObject<{
1742
+ client_id: import("zod").ZodString;
1743
+ update: import("zod").ZodObject<{
1744
+ redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
1745
+ scope: import("zod").ZodOptional<import("zod").ZodString>;
1746
+ client_name: import("zod").ZodOptional<import("zod").ZodString>;
1747
+ client_uri: import("zod").ZodOptional<import("zod").ZodString>;
1748
+ logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
1749
+ contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1750
+ tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
1751
+ policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
1752
+ software_id: import("zod").ZodOptional<import("zod").ZodString>;
1753
+ software_version: import("zod").ZodOptional<import("zod").ZodString>;
1754
+ software_statement: import("zod").ZodOptional<import("zod").ZodString>;
1755
+ post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
1756
+ backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
1757
+ backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
1758
+ application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
1759
+ web: "web";
1760
+ native: "native";
1761
+ }>>;
1762
+ grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1763
+ response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
1764
+ code: "code";
1765
+ }>>>;
1766
+ }, import("zod/v4/core").$strip>;
1767
+ }, import("zod/v4/core").$strip>;
1768
+ metadata: {
1769
+ openapi: {
1770
+ description: string;
1771
+ };
1772
+ };
1773
+ }, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
1774
+ rotateClientSecret: import("better-auth").StrictEndpoint<"/oauth2/client/rotate-secret", {
1775
+ method: "POST";
1776
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1777
+ session: {
1778
+ session: Record<string, any> & {
1779
+ id: string;
1780
+ createdAt: Date;
1781
+ updatedAt: Date;
1782
+ userId: string;
1783
+ expiresAt: Date;
1784
+ token: string;
1785
+ ipAddress?: string | null | undefined;
1786
+ userAgent?: string | null | undefined;
1787
+ };
1788
+ user: Record<string, any> & {
1789
+ id: string;
1790
+ createdAt: Date;
1791
+ updatedAt: Date;
1792
+ email: string;
1793
+ emailVerified: boolean;
1794
+ name: string;
1795
+ image?: string | null | undefined;
1796
+ };
1797
+ };
1798
+ }>>[];
1799
+ body: import("zod").ZodObject<{
1800
+ client_id: import("zod").ZodString;
1801
+ }, import("zod/v4/core").$strip>;
1802
+ metadata: {
1803
+ noStore: boolean;
1804
+ openapi: {
1805
+ description: string;
1806
+ };
1807
+ };
1808
+ }, import("@better-auth/oauth-provider").OAuthClient>;
1809
+ rotateClientKeys: import("better-auth").StrictEndpoint<"/oauth2/client/rotate-keys", {
1810
+ method: "POST";
1811
+ body: import("zod").ZodObject<{
1812
+ client_assertion: import("zod").ZodString;
1813
+ client_assertion_type: import("zod").ZodString;
1814
+ jwks: import("zod").ZodObject<{
1815
+ keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1816
+ }, import("zod/v4/core").$strip>;
1817
+ }, import("zod/v4/core").$strip>;
1818
+ errorCodesByField: {
1819
+ client_assertion: "invalid_client";
1820
+ client_assertion_type: "invalid_client";
1821
+ jwks: "invalid_client_metadata";
1822
+ };
1823
+ metadata: {
1824
+ noStore: boolean;
1825
+ openapi: {
1826
+ description: string;
1827
+ };
1828
+ };
1829
+ }, {
1830
+ client_id: string;
1831
+ jwks: {
1832
+ keys: Record<string, unknown>[];
1833
+ };
1834
+ }>;
1835
+ deleteOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/delete-client", {
1836
+ method: "POST";
1837
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1838
+ session: {
1839
+ session: Record<string, any> & {
1840
+ id: string;
1841
+ createdAt: Date;
1842
+ updatedAt: Date;
1843
+ userId: string;
1844
+ expiresAt: Date;
1845
+ token: string;
1846
+ ipAddress?: string | null | undefined;
1847
+ userAgent?: string | null | undefined;
1848
+ };
1849
+ user: Record<string, any> & {
1850
+ id: string;
1851
+ createdAt: Date;
1852
+ updatedAt: Date;
1853
+ email: string;
1854
+ emailVerified: boolean;
1855
+ name: string;
1856
+ image?: string | null | undefined;
1857
+ };
1858
+ };
1859
+ }>>[];
1860
+ body: import("zod").ZodObject<{
1861
+ client_id: import("zod").ZodString;
1862
+ }, import("zod/v4/core").$strip>;
1863
+ metadata: {
1864
+ openapi: {
1865
+ description: string;
1866
+ };
1867
+ };
1868
+ }, void>;
1869
+ getOAuthConsent: import("better-auth").StrictEndpoint<"/oauth2/get-consent", {
1870
+ method: "GET";
1871
+ query: import("zod").ZodObject<{
1872
+ id: import("zod").ZodString;
1873
+ }, import("zod/v4/core").$strip>;
1874
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1875
+ session: {
1876
+ session: Record<string, any> & {
1877
+ id: string;
1878
+ createdAt: Date;
1879
+ updatedAt: Date;
1880
+ userId: string;
1881
+ expiresAt: Date;
1882
+ token: string;
1883
+ ipAddress?: string | null | undefined;
1884
+ userAgent?: string | null | undefined;
1885
+ };
1886
+ user: Record<string, any> & {
1887
+ id: string;
1888
+ createdAt: Date;
1889
+ updatedAt: Date;
1890
+ email: string;
1891
+ emailVerified: boolean;
1892
+ name: string;
1893
+ image?: string | null | undefined;
1894
+ };
1895
+ };
1896
+ }>>[];
1897
+ metadata: {
1898
+ openapi: {
1899
+ description: string;
1900
+ };
1901
+ };
1902
+ }, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]>>;
1903
+ getOAuthConsents: import("better-auth").StrictEndpoint<"/oauth2/get-consents", {
1904
+ method: "GET";
1905
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1906
+ session: {
1907
+ session: Record<string, any> & {
1908
+ id: string;
1909
+ createdAt: Date;
1910
+ updatedAt: Date;
1911
+ userId: string;
1912
+ expiresAt: Date;
1913
+ token: string;
1914
+ ipAddress?: string | null | undefined;
1915
+ userAgent?: string | null | undefined;
1916
+ };
1917
+ user: Record<string, any> & {
1918
+ id: string;
1919
+ createdAt: Date;
1920
+ updatedAt: Date;
1921
+ email: string;
1922
+ emailVerified: boolean;
1923
+ name: string;
1924
+ image?: string | null | undefined;
1925
+ };
1926
+ };
1927
+ }>>[];
1928
+ metadata: {
1929
+ openapi: {
1930
+ description: string;
1931
+ };
1932
+ };
1933
+ }, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]>[]>;
1934
+ updateOAuthConsent: import("better-auth").StrictEndpoint<"/oauth2/update-consent", {
1935
+ method: "POST";
1936
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1937
+ session: {
1938
+ session: Record<string, any> & {
1939
+ id: string;
1940
+ createdAt: Date;
1941
+ updatedAt: Date;
1942
+ userId: string;
1943
+ expiresAt: Date;
1944
+ token: string;
1945
+ ipAddress?: string | null | undefined;
1946
+ userAgent?: string | null | undefined;
1947
+ };
1948
+ user: Record<string, any> & {
1949
+ id: string;
1950
+ createdAt: Date;
1951
+ updatedAt: Date;
1952
+ email: string;
1953
+ emailVerified: boolean;
1954
+ name: string;
1955
+ image?: string | null | undefined;
1956
+ };
1957
+ };
1958
+ }>>[];
1959
+ body: import("zod").ZodObject<{
1960
+ id: import("zod").ZodString;
1961
+ update: import("zod").ZodObject<{
1962
+ scopes: import("zod").ZodArray<import("zod").ZodString>;
1963
+ }, import("zod/v4/core").$strip>;
1964
+ }, import("zod/v4/core").$strip>;
1965
+ metadata: {
1966
+ openapi: {
1967
+ description: string;
1968
+ };
1969
+ };
1970
+ }, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]> | null>;
1971
+ deleteOAuthConsent: import("better-auth").StrictEndpoint<"/oauth2/delete-consent", {
1972
+ method: "POST";
1973
+ use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
1974
+ session: {
1975
+ session: Record<string, any> & {
1976
+ id: string;
1977
+ createdAt: Date;
1978
+ updatedAt: Date;
1979
+ userId: string;
1980
+ expiresAt: Date;
1981
+ token: string;
1982
+ ipAddress?: string | null | undefined;
1983
+ userAgent?: string | null | undefined;
1984
+ };
1985
+ user: Record<string, any> & {
1986
+ id: string;
1987
+ createdAt: Date;
1988
+ updatedAt: Date;
1989
+ email: string;
1990
+ emailVerified: boolean;
1991
+ name: string;
1992
+ image?: string | null | undefined;
1993
+ };
1994
+ };
1995
+ }>>[];
1996
+ body: import("zod").ZodObject<{
1997
+ id: import("zod").ZodString;
1998
+ }, import("zod/v4/core").$strip>;
1999
+ metadata: {
2000
+ openapi: {
2001
+ description: string;
2002
+ };
2003
+ };
2004
+ }, void>;
2005
+ adminCreateOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources", {
2006
+ method: "POST";
2007
+ body: import("zod").ZodObject<{
2008
+ identifier: import("zod").ZodNonOptional<import("zod").ZodOptional<import("zod").ZodString>>;
2009
+ name: import("zod").ZodOptional<import("zod").ZodString>;
2010
+ accessTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2011
+ refreshTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2012
+ signingAlgorithm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
2013
+ RS256: "RS256";
2014
+ PS256: "PS256";
2015
+ ES256: "ES256";
2016
+ ES512: "ES512";
2017
+ EdDSA: "EdDSA";
2018
+ }>>>;
2019
+ signingKeyId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
2020
+ allowedScopes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
2021
+ customClaims: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
2022
+ dpopBoundAccessTokensRequired: import("zod").ZodOptional<import("zod").ZodBoolean>;
2023
+ disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2024
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
2025
+ }, import("zod/v4/core").$strip>;
2026
+ metadata: {
2027
+ SERVER_ONLY: true;
2028
+ };
2029
+ }, import("@better-auth/oauth-provider").OAuthResource>;
2030
+ adminListOAuthResources: import("better-auth").StrictEndpoint<"/admin/oauth2/resources", {
2031
+ method: "GET";
2032
+ metadata: {
2033
+ SERVER_ONLY: true;
2034
+ };
2035
+ }, import("@better-auth/oauth-provider").OAuthResource[]>;
2036
+ adminGetOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
2037
+ method: "GET";
2038
+ metadata: {
2039
+ SERVER_ONLY: true;
2040
+ };
2041
+ }, import("@better-auth/oauth-provider").OAuthResource>;
2042
+ adminUpdateOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
2043
+ method: "PATCH";
2044
+ body: import("zod").ZodObject<{
2045
+ identifier: import("zod").ZodOptional<import("zod").ZodString>;
2046
+ name: import("zod").ZodOptional<import("zod").ZodString>;
2047
+ accessTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2048
+ refreshTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2049
+ signingAlgorithm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
2050
+ RS256: "RS256";
2051
+ PS256: "PS256";
2052
+ ES256: "ES256";
2053
+ ES512: "ES512";
2054
+ EdDSA: "EdDSA";
2055
+ }>>>;
2056
+ signingKeyId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
2057
+ allowedScopes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
2058
+ customClaims: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
2059
+ dpopBoundAccessTokensRequired: import("zod").ZodOptional<import("zod").ZodBoolean>;
2060
+ disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2061
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
2062
+ }, import("zod/v4/core").$strip>;
2063
+ metadata: {
2064
+ SERVER_ONLY: true;
2065
+ };
2066
+ }, import("@better-auth/oauth-provider").OAuthResource>;
2067
+ adminDeleteOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
2068
+ method: "DELETE";
2069
+ metadata: {
2070
+ SERVER_ONLY: true;
2071
+ };
2072
+ }, {
2073
+ deleted: boolean;
2074
+ }>;
2075
+ adminLinkClientResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
2076
+ method: "POST";
2077
+ metadata: {
2078
+ SERVER_ONLY: true;
2079
+ };
2080
+ }, {
2081
+ linked: boolean;
2082
+ }>;
2083
+ adminUnlinkClientResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
2084
+ method: "DELETE";
2085
+ metadata: {
2086
+ SERVER_ONLY: true;
2087
+ };
2088
+ }, {
2089
+ unlinked: boolean;
2090
+ }>;
2091
+ };
2092
+ schema: {
2093
+ oauthClient: {
2094
+ modelName: string;
2095
+ fields: {
2096
+ clientId: {
2097
+ type: "string";
2098
+ unique: true;
2099
+ required: true;
2100
+ };
2101
+ clientSecret: {
2102
+ type: "string";
2103
+ required: false;
2104
+ };
2105
+ clientDiscoveryId: {
2106
+ type: "string";
2107
+ required: false;
2108
+ };
2109
+ disabled: {
2110
+ type: "boolean";
2111
+ defaultValue: false;
2112
+ required: false;
2113
+ };
2114
+ skipConsent: {
2115
+ type: "boolean";
2116
+ required: false;
2117
+ };
2118
+ enableEndSession: {
2119
+ type: "boolean";
2120
+ required: false;
2121
+ };
2122
+ subjectType: {
2123
+ type: "string";
2124
+ required: false;
2125
+ };
2126
+ scopes: {
2127
+ type: "string[]";
2128
+ required: false;
2129
+ };
2130
+ clientCredentialsScopes: {
2131
+ type: "string[]";
2132
+ required: false;
2133
+ defaultValue: never[];
2134
+ };
2135
+ userId: {
2136
+ type: "string";
2137
+ required: false;
2138
+ references: {
2139
+ model: string;
2140
+ field: string;
2141
+ };
2142
+ index: true;
2143
+ };
2144
+ createdAt: {
2145
+ type: "date";
2146
+ required: false;
2147
+ };
2148
+ updatedAt: {
2149
+ type: "date";
2150
+ required: false;
2151
+ };
2152
+ name: {
2153
+ type: "string";
2154
+ required: false;
2155
+ };
2156
+ uri: {
2157
+ type: "string";
2158
+ required: false;
2159
+ };
2160
+ icon: {
2161
+ type: "string";
2162
+ required: false;
2163
+ };
2164
+ contacts: {
2165
+ type: "string[]";
2166
+ required: false;
2167
+ };
2168
+ tos: {
2169
+ type: "string";
2170
+ required: false;
2171
+ };
2172
+ policy: {
2173
+ type: "string";
2174
+ required: false;
2175
+ };
2176
+ softwareId: {
2177
+ type: "string";
2178
+ required: false;
2179
+ };
2180
+ softwareVersion: {
2181
+ type: "string";
2182
+ required: false;
2183
+ };
2184
+ softwareStatement: {
2185
+ type: "string";
2186
+ required: false;
2187
+ };
2188
+ redirectUris: {
2189
+ type: "string[]";
2190
+ required: true;
2191
+ };
2192
+ postLogoutRedirectUris: {
2193
+ type: "string[]";
2194
+ required: false;
2195
+ };
2196
+ backchannelLogoutUri: {
2197
+ type: "string";
2198
+ required: false;
2199
+ };
2200
+ backchannelLogoutSessionRequired: {
2201
+ type: "boolean";
2202
+ required: false;
2203
+ };
2204
+ tokenEndpointAuthMethod: {
2205
+ type: "string";
2206
+ required: false;
2207
+ };
2208
+ applicationType: {
2209
+ type: "string";
2210
+ required: false;
2211
+ };
2212
+ jwks: {
2213
+ type: "string";
2214
+ required: false;
2215
+ };
2216
+ jwksUri: {
2217
+ type: "string";
2218
+ required: false;
2219
+ };
2220
+ grantTypes: {
2221
+ type: "string[]";
2222
+ required: false;
2223
+ };
2224
+ responseTypes: {
2225
+ type: "string[]";
2226
+ required: false;
2227
+ };
2228
+ requirePKCE: {
2229
+ type: "boolean";
2230
+ required: false;
2231
+ };
2232
+ dpopBoundAccessTokens: {
2233
+ type: "boolean";
2234
+ required: false;
2235
+ defaultValue: false;
2236
+ };
2237
+ referenceId: {
2238
+ type: "string";
2239
+ required: false;
2240
+ };
2241
+ metadata: {
2242
+ type: "json";
2243
+ required: false;
2244
+ };
2245
+ };
2246
+ };
2247
+ oauthResource: {
2248
+ modelName: string;
2249
+ fields: {
2250
+ identifier: {
2251
+ type: "string";
2252
+ required: true;
2253
+ unique: true;
2254
+ };
2255
+ name: {
2256
+ type: "string";
2257
+ required: true;
2258
+ };
2259
+ accessTokenTtl: {
2260
+ type: "number";
2261
+ required: false;
2262
+ };
2263
+ refreshTokenTtl: {
2264
+ type: "number";
2265
+ required: false;
2266
+ };
2267
+ signingAlgorithm: {
2268
+ type: "string";
2269
+ required: false;
2270
+ };
2271
+ signingKeyId: {
2272
+ type: "string";
2273
+ required: false;
2274
+ };
2275
+ allowedScopes: {
2276
+ type: "string[]";
2277
+ required: false;
2278
+ };
2279
+ customClaims: {
2280
+ type: "json";
2281
+ required: false;
2282
+ };
2283
+ dpopBoundAccessTokensRequired: {
2284
+ type: "boolean";
2285
+ required: false;
2286
+ defaultValue: false;
2287
+ };
2288
+ disabled: {
2289
+ type: "boolean";
2290
+ required: false;
2291
+ defaultValue: false;
2292
+ };
2293
+ createdAt: {
2294
+ type: "date";
2295
+ required: false;
2296
+ };
2297
+ updatedAt: {
2298
+ type: "date";
2299
+ required: false;
2300
+ };
2301
+ policyVersion: {
2302
+ type: "number";
2303
+ required: false;
2304
+ defaultValue: number;
2305
+ };
2306
+ metadata: {
2307
+ type: "json";
2308
+ required: false;
2309
+ };
2310
+ };
2311
+ };
2312
+ oauthClientResource: {
2313
+ modelName: string;
2314
+ fields: {
2315
+ clientId: {
2316
+ type: "string";
2317
+ required: true;
2318
+ references: {
2319
+ model: string;
2320
+ field: string;
2321
+ onDelete: "cascade";
2322
+ };
2323
+ index: true;
2324
+ };
2325
+ resourceId: {
2326
+ type: "string";
2327
+ required: true;
2328
+ references: {
2329
+ model: string;
2330
+ field: string;
2331
+ onDelete: "cascade";
2332
+ };
2333
+ index: true;
2334
+ };
2335
+ metadata: {
2336
+ type: "json";
2337
+ required: false;
2338
+ };
2339
+ createdAt: {
2340
+ type: "date";
2341
+ required: false;
2342
+ };
2343
+ };
2344
+ indexes: {
2345
+ fields: [string, string];
2346
+ unique: true;
2347
+ }[];
2348
+ };
2349
+ oauthRefreshToken: {
2350
+ fields: {
2351
+ token: {
2352
+ type: "string";
2353
+ required: true;
2354
+ unique: true;
2355
+ };
2356
+ clientId: {
2357
+ type: "string";
2358
+ required: true;
2359
+ references: {
2360
+ model: string;
2361
+ field: string;
2362
+ };
2363
+ index: true;
2364
+ };
2365
+ sessionId: {
2366
+ type: "string";
2367
+ required: false;
2368
+ references: {
2369
+ model: string;
2370
+ field: string;
2371
+ onDelete: "set null";
2372
+ };
2373
+ index: true;
2374
+ };
2375
+ userId: {
2376
+ type: "string";
2377
+ required: true;
2378
+ references: {
2379
+ model: string;
2380
+ field: string;
2381
+ };
2382
+ index: true;
2383
+ };
2384
+ referenceId: {
2385
+ type: "string";
2386
+ required: false;
2387
+ };
2388
+ authorizationCodeId: {
2389
+ type: "string";
2390
+ required: false;
2391
+ index: true;
2392
+ };
2393
+ resources: {
2394
+ type: "string[]";
2395
+ required: false;
2396
+ };
2397
+ requestedUserInfoClaims: {
2398
+ type: "string[]";
2399
+ required: false;
2400
+ };
2401
+ expiresAt: {
2402
+ type: "date";
2403
+ };
2404
+ createdAt: {
2405
+ type: "date";
2406
+ };
2407
+ revoked: {
2408
+ type: "date";
2409
+ required: false;
2410
+ };
2411
+ rotatedAt: {
2412
+ type: "date";
2413
+ required: false;
2414
+ };
2415
+ rotationReplayResponse: {
2416
+ type: "string";
2417
+ required: false;
2418
+ };
2419
+ rotationReplayExpiresAt: {
2420
+ type: "date";
2421
+ required: false;
2422
+ };
2423
+ authTime: {
2424
+ type: "date";
2425
+ required: false;
2426
+ };
2427
+ confirmation: {
2428
+ type: "json";
2429
+ required: false;
2430
+ };
2431
+ scopes: {
2432
+ type: "string[]";
2433
+ required: true;
2434
+ };
2435
+ };
2436
+ };
2437
+ oauthAccessToken: {
2438
+ modelName: string;
2439
+ fields: {
2440
+ token: {
2441
+ type: "string";
2442
+ unique: true;
2443
+ };
2444
+ clientId: {
2445
+ type: "string";
2446
+ required: true;
2447
+ references: {
2448
+ model: string;
2449
+ field: string;
2450
+ };
2451
+ index: true;
2452
+ };
2453
+ sessionId: {
2454
+ type: "string";
2455
+ required: false;
2456
+ references: {
2457
+ model: string;
2458
+ field: string;
2459
+ onDelete: "set null";
2460
+ };
2461
+ index: true;
2462
+ };
2463
+ userId: {
2464
+ type: "string";
2465
+ required: false;
2466
+ references: {
2467
+ model: string;
2468
+ field: string;
2469
+ };
2470
+ index: true;
2471
+ };
2472
+ referenceId: {
2473
+ type: "string";
2474
+ required: false;
2475
+ };
2476
+ authorizationCodeId: {
2477
+ type: "string";
2478
+ required: false;
2479
+ index: true;
2480
+ };
2481
+ resources: {
2482
+ type: "string[]";
2483
+ required: false;
2484
+ };
2485
+ requestedUserInfoClaims: {
2486
+ type: "string[]";
2487
+ required: false;
2488
+ };
2489
+ refreshId: {
2490
+ type: "string";
2491
+ required: false;
2492
+ references: {
2493
+ model: string;
2494
+ field: string;
2495
+ };
2496
+ index: true;
2497
+ };
2498
+ expiresAt: {
2499
+ type: "date";
2500
+ };
2501
+ createdAt: {
2502
+ type: "date";
2503
+ };
2504
+ revoked: {
2505
+ type: "date";
2506
+ required: false;
2507
+ };
2508
+ confirmation: {
2509
+ type: "json";
2510
+ required: false;
2511
+ };
2512
+ scopes: {
2513
+ type: "string[]";
2514
+ required: true;
2515
+ };
2516
+ };
2517
+ };
2518
+ oauthConsent: {
2519
+ modelName: string;
2520
+ fields: {
2521
+ clientId: {
2522
+ type: "string";
2523
+ required: true;
2524
+ references: {
2525
+ model: string;
2526
+ field: string;
2527
+ };
2528
+ index: true;
2529
+ };
2530
+ userId: {
2531
+ type: "string";
2532
+ required: false;
2533
+ references: {
2534
+ model: string;
2535
+ field: string;
2536
+ };
2537
+ index: true;
2538
+ };
2539
+ referenceId: {
2540
+ type: "string";
2541
+ required: false;
2542
+ };
2543
+ resources: {
2544
+ type: "string[]";
2545
+ required: false;
2546
+ };
2547
+ requestedUserInfoClaims: {
2548
+ type: "string[]";
2549
+ required: false;
2550
+ };
2551
+ scopes: {
2552
+ type: "string[]";
2553
+ required: true;
2554
+ };
2555
+ createdAt: {
2556
+ type: "date";
2557
+ };
2558
+ updatedAt: {
2559
+ type: "date";
2560
+ };
2561
+ };
2562
+ };
2563
+ oauthClientAssertion: {
2564
+ modelName: string;
2565
+ fields: {
2566
+ expiresAt: {
2567
+ type: "date";
2568
+ required: true;
2569
+ };
2570
+ };
2571
+ };
2572
+ };
2573
+ rateLimit: ({
2574
+ pathMatcher: (path: string) => path is "/oauth2/token";
2575
+ window: number;
2576
+ max: number;
2577
+ } | {
2578
+ pathMatcher: (path: string) => path is "/oauth2/authorize";
2579
+ window: number;
2580
+ max: number;
2581
+ } | {
2582
+ pathMatcher: (path: string) => path is "/oauth2/introspect";
2583
+ window: number;
2584
+ max: number;
2585
+ } | {
2586
+ pathMatcher: (path: string) => path is "/oauth2/revoke";
2587
+ window: number;
2588
+ max: number;
2589
+ } | {
2590
+ pathMatcher: (path: string) => path is "/oauth2/register";
2591
+ window: number;
2592
+ max: number;
2593
+ } | {
2594
+ pathMatcher: (path: string) => path is "/oauth2/client/rotate-keys";
2595
+ window: number;
2596
+ max: number;
2597
+ } | {
2598
+ pathMatcher: (path: string) => path is "/oauth2/userinfo";
2599
+ window: number;
2600
+ max: number;
2601
+ })[];
2602
+ }, {
2603
+ id: "cimd";
2604
+ version: string;
2605
+ init(ctx: import("better-auth").AuthContext): void;
2606
+ }];
2607
+ }>;
2608
+ export type Auth = ReturnType<typeof createAuth>;
2609
+ export declare function initializeAuth(auth: Auth, config: AccountConfig, store: Store): Promise<void>;
2610
+ //# sourceMappingURL=provider.d.ts.map