@inkeep/agents-api 0.0.0-dev-20260121145510 → 0.0.0-dev-20260121150358

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/factory.d.ts CHANGED
@@ -5,18 +5,18 @@ import { initializeDefaultUser } from "./initialization.js";
5
5
  import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
6
6
  import * as hono0 from "hono";
7
7
  import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
8
- import * as zod0 from "zod";
8
+ import * as zod205 from "zod";
9
9
  import { SSOProviderConfig, UserAuthConfig } from "@inkeep/agents-core/auth";
10
- import * as hono_types1 from "hono/types";
11
- import * as better_auth0 from "better-auth";
12
- import * as better_auth_plugins0 from "better-auth/plugins";
13
- import * as _better_auth_sso0 from "@better-auth/sso";
10
+ import * as hono_types3 from "hono/types";
11
+ import * as better_auth78 from "better-auth";
12
+ import * as better_auth_plugins69 from "better-auth/plugins";
13
+ import * as _better_auth_sso10 from "@better-auth/sso";
14
14
 
15
15
  //#region src/factory.d.ts
16
- declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0.Auth<{
16
+ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth78.Auth<{
17
17
  baseURL: string;
18
18
  secret: string;
19
- database: (options: better_auth0.BetterAuthOptions) => better_auth0.DBAdapter<better_auth0.BetterAuthOptions>;
19
+ database: (options: better_auth78.BetterAuthOptions) => better_auth78.DBAdapter<better_auth78.BetterAuthOptions>;
20
20
  emailAndPassword: {
21
21
  enabled: true;
22
22
  minPasswordLength: number;
@@ -24,6 +24,12 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
24
24
  requireEmailVerification: false;
25
25
  autoSignIn: true;
26
26
  };
27
+ account: {
28
+ accountLinking: {
29
+ enabled: true;
30
+ trustedProviders: ("google" | "email-password" | "auth0")[];
31
+ };
32
+ };
27
33
  databaseHooks: {
28
34
  session: {
29
35
  create: {
@@ -65,7 +71,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
65
71
  clientKey?: string | undefined;
66
72
  disableIdTokenSignIn?: boolean | undefined;
67
73
  verifyIdToken?: ((token: string, nonce?: string) => Promise<boolean>) | undefined;
68
- getUserInfo?: ((token: better_auth0.OAuth2Tokens) => Promise<{
74
+ getUserInfo?: ((token: better_auth78.OAuth2Tokens) => Promise<{
69
75
  user: {
70
76
  id: string;
71
77
  name?: string;
@@ -76,8 +82,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
76
82
  };
77
83
  data: any;
78
84
  } | null>) | undefined;
79
- refreshAccessToken?: ((refreshToken: string) => Promise<better_auth0.OAuth2Tokens>) | undefined;
80
- mapProfileToUser?: ((profile: better_auth0.GoogleProfile) => {
85
+ refreshAccessToken?: ((refreshToken: string) => Promise<better_auth78.OAuth2Tokens>) | undefined;
86
+ mapProfileToUser?: ((profile: better_auth78.GoogleProfile) => {
81
87
  id?: string;
82
88
  name?: string;
83
89
  email?: string | null;
@@ -124,15 +130,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
124
130
  cookies?: {
125
131
  [key: string]: {
126
132
  name?: string;
127
- attributes?: better_auth0.CookieOptions;
133
+ attributes?: better_auth78.CookieOptions;
128
134
  };
129
135
  } | undefined;
130
- defaultCookieAttributes: better_auth0.CookieOptions;
136
+ defaultCookieAttributes: better_auth78.CookieOptions;
131
137
  cookiePrefix?: string | undefined;
132
138
  database?: {
133
139
  defaultFindManyLimit?: number;
134
140
  useNumberId?: boolean;
135
- generateId?: better_auth0.GenerateIdFn | false | "serial" | "uuid";
141
+ generateId?: better_auth78.GenerateIdFn | false | "serial" | "uuid";
136
142
  } | undefined;
137
143
  trustedProxyHeaders?: boolean | undefined;
138
144
  backgroundTasks?: {
@@ -144,31 +150,31 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
144
150
  id: "bearer";
145
151
  hooks: {
146
152
  before: {
147
- matcher(context: better_auth0.HookEndpointContext): boolean;
148
- handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
153
+ matcher(context: better_auth78.HookEndpointContext): boolean;
154
+ handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
149
155
  context: {
150
156
  headers: Headers;
151
157
  };
152
158
  } | undefined>;
153
159
  }[];
154
160
  after: {
155
- matcher(context: better_auth0.HookEndpointContext): true;
156
- handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
161
+ matcher(context: better_auth78.HookEndpointContext): true;
162
+ handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
157
163
  }[];
158
164
  };
159
- options: better_auth_plugins0.BearerOptions | undefined;
165
+ options: better_auth_plugins69.BearerOptions | undefined;
160
166
  }, {
161
167
  id: "sso";
162
168
  endpoints: {
163
- spMetadata: ReturnType<() => better_auth0.StrictEndpoint<"/sso/saml2/sp/metadata", {
169
+ spMetadata: ReturnType<() => better_auth78.StrictEndpoint<"/sso/saml2/sp/metadata", {
164
170
  method: "GET";
165
- query: zod0.ZodObject<{
166
- providerId: zod0.ZodString;
167
- format: zod0.ZodDefault<zod0.ZodEnum<{
171
+ query: zod205.ZodObject<{
172
+ providerId: zod205.ZodString;
173
+ format: zod205.ZodDefault<zod205.ZodEnum<{
168
174
  xml: "xml";
169
175
  json: "json";
170
176
  }>>;
171
- }, better_auth0.$strip>;
177
+ }, better_auth78.$strip>;
172
178
  metadata: {
173
179
  openapi: {
174
180
  operationId: string;
@@ -182,86 +188,86 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
182
188
  };
183
189
  };
184
190
  }, Response>>;
185
- registerSSOProvider: better_auth0.StrictEndpoint<"/sso/register", {
191
+ registerSSOProvider: better_auth78.StrictEndpoint<"/sso/register", {
186
192
  method: "POST";
187
- body: zod0.ZodObject<{
188
- providerId: zod0.ZodString;
189
- issuer: zod0.ZodString;
190
- domain: zod0.ZodString;
191
- oidcConfig: zod0.ZodOptional<zod0.ZodObject<{
192
- clientId: zod0.ZodString;
193
- clientSecret: zod0.ZodString;
194
- authorizationEndpoint: zod0.ZodOptional<zod0.ZodString>;
195
- tokenEndpoint: zod0.ZodOptional<zod0.ZodString>;
196
- userInfoEndpoint: zod0.ZodOptional<zod0.ZodString>;
197
- tokenEndpointAuthentication: zod0.ZodOptional<zod0.ZodEnum<{
193
+ body: zod205.ZodObject<{
194
+ providerId: zod205.ZodString;
195
+ issuer: zod205.ZodString;
196
+ domain: zod205.ZodString;
197
+ oidcConfig: zod205.ZodOptional<zod205.ZodObject<{
198
+ clientId: zod205.ZodString;
199
+ clientSecret: zod205.ZodString;
200
+ authorizationEndpoint: zod205.ZodOptional<zod205.ZodString>;
201
+ tokenEndpoint: zod205.ZodOptional<zod205.ZodString>;
202
+ userInfoEndpoint: zod205.ZodOptional<zod205.ZodString>;
203
+ tokenEndpointAuthentication: zod205.ZodOptional<zod205.ZodEnum<{
198
204
  client_secret_post: "client_secret_post";
199
205
  client_secret_basic: "client_secret_basic";
200
206
  }>>;
201
- jwksEndpoint: zod0.ZodOptional<zod0.ZodString>;
202
- discoveryEndpoint: zod0.ZodOptional<zod0.ZodString>;
203
- skipDiscovery: zod0.ZodOptional<zod0.ZodBoolean>;
204
- scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
205
- pkce: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
206
- mapping: zod0.ZodOptional<zod0.ZodObject<{
207
- id: zod0.ZodString;
208
- email: zod0.ZodString;
209
- emailVerified: zod0.ZodOptional<zod0.ZodString>;
210
- name: zod0.ZodString;
211
- image: zod0.ZodOptional<zod0.ZodString>;
212
- extraFields: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
213
- }, better_auth0.$strip>>;
214
- }, better_auth0.$strip>>;
215
- samlConfig: zod0.ZodOptional<zod0.ZodObject<{
216
- entryPoint: zod0.ZodString;
217
- cert: zod0.ZodString;
218
- callbackUrl: zod0.ZodString;
219
- audience: zod0.ZodOptional<zod0.ZodString>;
220
- idpMetadata: zod0.ZodOptional<zod0.ZodObject<{
221
- metadata: zod0.ZodOptional<zod0.ZodString>;
222
- entityID: zod0.ZodOptional<zod0.ZodString>;
223
- cert: zod0.ZodOptional<zod0.ZodString>;
224
- privateKey: zod0.ZodOptional<zod0.ZodString>;
225
- privateKeyPass: zod0.ZodOptional<zod0.ZodString>;
226
- isAssertionEncrypted: zod0.ZodOptional<zod0.ZodBoolean>;
227
- encPrivateKey: zod0.ZodOptional<zod0.ZodString>;
228
- encPrivateKeyPass: zod0.ZodOptional<zod0.ZodString>;
229
- singleSignOnService: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
230
- Binding: zod0.ZodString;
231
- Location: zod0.ZodString;
232
- }, better_auth0.$strip>>>;
233
- }, better_auth0.$strip>>;
234
- spMetadata: zod0.ZodObject<{
235
- metadata: zod0.ZodOptional<zod0.ZodString>;
236
- entityID: zod0.ZodOptional<zod0.ZodString>;
237
- binding: zod0.ZodOptional<zod0.ZodString>;
238
- privateKey: zod0.ZodOptional<zod0.ZodString>;
239
- privateKeyPass: zod0.ZodOptional<zod0.ZodString>;
240
- isAssertionEncrypted: zod0.ZodOptional<zod0.ZodBoolean>;
241
- encPrivateKey: zod0.ZodOptional<zod0.ZodString>;
242
- encPrivateKeyPass: zod0.ZodOptional<zod0.ZodString>;
243
- }, better_auth0.$strip>;
244
- wantAssertionsSigned: zod0.ZodOptional<zod0.ZodBoolean>;
245
- signatureAlgorithm: zod0.ZodOptional<zod0.ZodString>;
246
- digestAlgorithm: zod0.ZodOptional<zod0.ZodString>;
247
- identifierFormat: zod0.ZodOptional<zod0.ZodString>;
248
- privateKey: zod0.ZodOptional<zod0.ZodString>;
249
- decryptionPvk: zod0.ZodOptional<zod0.ZodString>;
250
- additionalParams: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
251
- mapping: zod0.ZodOptional<zod0.ZodObject<{
252
- id: zod0.ZodString;
253
- email: zod0.ZodString;
254
- emailVerified: zod0.ZodOptional<zod0.ZodString>;
255
- name: zod0.ZodString;
256
- firstName: zod0.ZodOptional<zod0.ZodString>;
257
- lastName: zod0.ZodOptional<zod0.ZodString>;
258
- extraFields: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
259
- }, better_auth0.$strip>>;
260
- }, better_auth0.$strip>>;
261
- organizationId: zod0.ZodOptional<zod0.ZodString>;
262
- overrideUserInfo: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
263
- }, better_auth0.$strip>;
264
- use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
207
+ jwksEndpoint: zod205.ZodOptional<zod205.ZodString>;
208
+ discoveryEndpoint: zod205.ZodOptional<zod205.ZodString>;
209
+ skipDiscovery: zod205.ZodOptional<zod205.ZodBoolean>;
210
+ scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
211
+ pkce: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
212
+ mapping: zod205.ZodOptional<zod205.ZodObject<{
213
+ id: zod205.ZodString;
214
+ email: zod205.ZodString;
215
+ emailVerified: zod205.ZodOptional<zod205.ZodString>;
216
+ name: zod205.ZodString;
217
+ image: zod205.ZodOptional<zod205.ZodString>;
218
+ extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
219
+ }, better_auth78.$strip>>;
220
+ }, better_auth78.$strip>>;
221
+ samlConfig: zod205.ZodOptional<zod205.ZodObject<{
222
+ entryPoint: zod205.ZodString;
223
+ cert: zod205.ZodString;
224
+ callbackUrl: zod205.ZodString;
225
+ audience: zod205.ZodOptional<zod205.ZodString>;
226
+ idpMetadata: zod205.ZodOptional<zod205.ZodObject<{
227
+ metadata: zod205.ZodOptional<zod205.ZodString>;
228
+ entityID: zod205.ZodOptional<zod205.ZodString>;
229
+ cert: zod205.ZodOptional<zod205.ZodString>;
230
+ privateKey: zod205.ZodOptional<zod205.ZodString>;
231
+ privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
232
+ isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
233
+ encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
234
+ encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
235
+ singleSignOnService: zod205.ZodOptional<zod205.ZodArray<zod205.ZodObject<{
236
+ Binding: zod205.ZodString;
237
+ Location: zod205.ZodString;
238
+ }, better_auth78.$strip>>>;
239
+ }, better_auth78.$strip>>;
240
+ spMetadata: zod205.ZodObject<{
241
+ metadata: zod205.ZodOptional<zod205.ZodString>;
242
+ entityID: zod205.ZodOptional<zod205.ZodString>;
243
+ binding: zod205.ZodOptional<zod205.ZodString>;
244
+ privateKey: zod205.ZodOptional<zod205.ZodString>;
245
+ privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
246
+ isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
247
+ encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
248
+ encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
249
+ }, better_auth78.$strip>;
250
+ wantAssertionsSigned: zod205.ZodOptional<zod205.ZodBoolean>;
251
+ signatureAlgorithm: zod205.ZodOptional<zod205.ZodString>;
252
+ digestAlgorithm: zod205.ZodOptional<zod205.ZodString>;
253
+ identifierFormat: zod205.ZodOptional<zod205.ZodString>;
254
+ privateKey: zod205.ZodOptional<zod205.ZodString>;
255
+ decryptionPvk: zod205.ZodOptional<zod205.ZodString>;
256
+ additionalParams: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
257
+ mapping: zod205.ZodOptional<zod205.ZodObject<{
258
+ id: zod205.ZodString;
259
+ email: zod205.ZodString;
260
+ emailVerified: zod205.ZodOptional<zod205.ZodString>;
261
+ name: zod205.ZodString;
262
+ firstName: zod205.ZodOptional<zod205.ZodString>;
263
+ lastName: zod205.ZodOptional<zod205.ZodString>;
264
+ extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
265
+ }, better_auth78.$strip>>;
266
+ }, better_auth78.$strip>>;
267
+ organizationId: zod205.ZodOptional<zod205.ZodString>;
268
+ overrideUserInfo: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
269
+ }, better_auth78.$strip>;
270
+ use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
265
271
  session: {
266
272
  session: Record<string, any> & {
267
273
  id: string;
@@ -447,35 +453,35 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
447
453
  };
448
454
  }, {
449
455
  redirectURI: string;
450
- oidcConfig: _better_auth_sso0.OIDCConfig | null;
451
- samlConfig: _better_auth_sso0.SAMLConfig | null;
456
+ oidcConfig: _better_auth_sso10.OIDCConfig | null;
457
+ samlConfig: _better_auth_sso10.SAMLConfig | null;
452
458
  } & Omit<{
453
459
  issuer: string;
454
- oidcConfig?: _better_auth_sso0.OIDCConfig | undefined;
455
- samlConfig?: _better_auth_sso0.SAMLConfig | undefined;
460
+ oidcConfig?: _better_auth_sso10.OIDCConfig | undefined;
461
+ samlConfig?: _better_auth_sso10.SAMLConfig | undefined;
456
462
  userId: string;
457
463
  providerId: string;
458
464
  organizationId?: string | undefined;
459
465
  domain: string;
460
466
  }, "oidcConfig" | "samlConfig">>;
461
- signInSSO: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sign-in/sso", {
467
+ signInSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sign-in/sso", {
462
468
  method: "POST";
463
- body: zod0.ZodObject<{
464
- email: zod0.ZodOptional<zod0.ZodString>;
465
- organizationSlug: zod0.ZodOptional<zod0.ZodString>;
466
- providerId: zod0.ZodOptional<zod0.ZodString>;
467
- domain: zod0.ZodOptional<zod0.ZodString>;
468
- callbackURL: zod0.ZodString;
469
- errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
470
- newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
471
- scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
472
- loginHint: zod0.ZodOptional<zod0.ZodString>;
473
- requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
474
- providerType: zod0.ZodOptional<zod0.ZodEnum<{
469
+ body: zod205.ZodObject<{
470
+ email: zod205.ZodOptional<zod205.ZodString>;
471
+ organizationSlug: zod205.ZodOptional<zod205.ZodString>;
472
+ providerId: zod205.ZodOptional<zod205.ZodString>;
473
+ domain: zod205.ZodOptional<zod205.ZodString>;
474
+ callbackURL: zod205.ZodString;
475
+ errorCallbackURL: zod205.ZodOptional<zod205.ZodString>;
476
+ newUserCallbackURL: zod205.ZodOptional<zod205.ZodString>;
477
+ scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
478
+ loginHint: zod205.ZodOptional<zod205.ZodString>;
479
+ requestSignUp: zod205.ZodOptional<zod205.ZodBoolean>;
480
+ providerType: zod205.ZodOptional<zod205.ZodEnum<{
475
481
  saml: "saml";
476
482
  oidc: "oidc";
477
483
  }>>;
478
- }, better_auth0.$strip>;
484
+ }, better_auth78.$strip>;
479
485
  metadata: {
480
486
  openapi: {
481
487
  operationId: string;
@@ -552,14 +558,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
552
558
  url: string;
553
559
  redirect: boolean;
554
560
  }>>;
555
- callbackSSO: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/callback/:providerId", {
561
+ callbackSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/callback/:providerId", {
556
562
  method: "GET";
557
- query: zod0.ZodObject<{
558
- code: zod0.ZodOptional<zod0.ZodString>;
559
- state: zod0.ZodString;
560
- error: zod0.ZodOptional<zod0.ZodString>;
561
- error_description: zod0.ZodOptional<zod0.ZodString>;
562
- }, better_auth0.$strip>;
563
+ query: zod205.ZodObject<{
564
+ code: zod205.ZodOptional<zod205.ZodString>;
565
+ state: zod205.ZodString;
566
+ error: zod205.ZodOptional<zod205.ZodString>;
567
+ error_description: zod205.ZodOptional<zod205.ZodString>;
568
+ }, better_auth78.$strip>;
563
569
  allowedMediaTypes: string[];
564
570
  metadata: {
565
571
  openapi: {
@@ -575,12 +581,12 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
575
581
  scope: "server";
576
582
  };
577
583
  }, never>>;
578
- callbackSSOSAML: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/saml2/callback/:providerId", {
584
+ callbackSSOSAML: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/saml2/callback/:providerId", {
579
585
  method: "POST";
580
- body: zod0.ZodObject<{
581
- SAMLResponse: zod0.ZodString;
582
- RelayState: zod0.ZodOptional<zod0.ZodString>;
583
- }, better_auth0.$strip>;
586
+ body: zod205.ZodObject<{
587
+ SAMLResponse: zod205.ZodString;
588
+ RelayState: zod205.ZodOptional<zod205.ZodString>;
589
+ }, better_auth78.$strip>;
584
590
  metadata: {
585
591
  allowedMediaTypes: string[];
586
592
  openapi: {
@@ -602,15 +608,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
602
608
  scope: "server";
603
609
  };
604
610
  }, never>>;
605
- acsEndpoint: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
611
+ acsEndpoint: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
606
612
  method: "POST";
607
- params: zod0.ZodObject<{
608
- providerId: zod0.ZodOptional<zod0.ZodString>;
609
- }, better_auth0.$strip>;
610
- body: zod0.ZodObject<{
611
- SAMLResponse: zod0.ZodString;
612
- RelayState: zod0.ZodOptional<zod0.ZodString>;
613
- }, better_auth0.$strip>;
613
+ params: zod205.ZodObject<{
614
+ providerId: zod205.ZodOptional<zod205.ZodString>;
615
+ }, better_auth78.$strip>;
616
+ body: zod205.ZodObject<{
617
+ SAMLResponse: zod205.ZodString;
618
+ RelayState: zod205.ZodOptional<zod205.ZodString>;
619
+ }, better_auth78.$strip>;
614
620
  metadata: {
615
621
  allowedMediaTypes: string[];
616
622
  openapi: {
@@ -627,11 +633,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
627
633
  };
628
634
  }, never>>;
629
635
  } & {
630
- requestDomainVerification: ReturnType<(options: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/request-domain-verification", {
636
+ requestDomainVerification: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/request-domain-verification", {
631
637
  method: "POST";
632
- body: zod0.ZodObject<{
633
- providerId: zod0.ZodString;
634
- }, better_auth0.$strip>;
638
+ body: zod205.ZodObject<{
639
+ providerId: zod205.ZodString;
640
+ }, better_auth78.$strip>;
635
641
  metadata: {
636
642
  openapi: {
637
643
  summary: string;
@@ -649,7 +655,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
649
655
  };
650
656
  };
651
657
  };
652
- use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
658
+ use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
653
659
  session: {
654
660
  session: Record<string, any> & {
655
661
  id: string;
@@ -675,11 +681,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
675
681
  }, {
676
682
  domainVerificationToken: string;
677
683
  }>>;
678
- verifyDomain: ReturnType<(options: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/verify-domain", {
684
+ verifyDomain: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/verify-domain", {
679
685
  method: "POST";
680
- body: zod0.ZodObject<{
681
- providerId: zod0.ZodString;
682
- }, better_auth0.$strip>;
686
+ body: zod205.ZodObject<{
687
+ providerId: zod205.ZodString;
688
+ }, better_auth78.$strip>;
683
689
  metadata: {
684
690
  openapi: {
685
691
  summary: string;
@@ -700,7 +706,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
700
706
  };
701
707
  };
702
708
  };
703
- use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
709
+ use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
704
710
  session: {
705
711
  session: Record<string, any> & {
706
712
  id: string;
@@ -726,7 +732,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
726
732
  }, void>>;
727
733
  };
728
734
  schema: any;
729
- options: _better_auth_sso0.SSOOptions & {
735
+ options: _better_auth_sso10.SSOOptions & {
730
736
  domainVerification?: {
731
737
  enabled: true;
732
738
  };
@@ -737,14 +743,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
737
743
  productionURL: string;
738
744
  }>;
739
745
  endpoints: {
740
- oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
746
+ oAuthProxy: better_auth78.StrictEndpoint<"/oauth-proxy-callback", {
741
747
  method: "GET";
742
748
  operationId: string;
743
- query: zod0.ZodObject<{
744
- callbackURL: zod0.ZodString;
745
- cookies: zod0.ZodString;
746
- }, better_auth0.$strip>;
747
- use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>)[];
749
+ query: zod205.ZodObject<{
750
+ callbackURL: zod205.ZodString;
751
+ cookies: zod205.ZodString;
752
+ }, better_auth78.$strip>;
753
+ use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>)[];
748
754
  metadata: {
749
755
  openapi: {
750
756
  operationId: string;
@@ -774,40 +780,40 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
774
780
  };
775
781
  hooks: {
776
782
  before: {
777
- matcher(context: better_auth0.HookEndpointContext): boolean;
778
- handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
783
+ matcher(context: better_auth78.HookEndpointContext): boolean;
784
+ handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
779
785
  }[];
780
786
  after: {
781
- matcher(context: better_auth0.HookEndpointContext): boolean;
782
- handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
787
+ matcher(context: better_auth78.HookEndpointContext): boolean;
788
+ handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
783
789
  }[];
784
790
  };
785
791
  }, {
786
792
  id: "organization";
787
- endpoints: better_auth_plugins0.OrganizationEndpoints<{
793
+ endpoints: better_auth_plugins69.OrganizationEndpoints<{
788
794
  allowUserToCreateOrganization: true;
789
- ac: better_auth_plugins0.AccessControl;
795
+ ac: better_auth_plugins69.AccessControl;
790
796
  roles: {
791
797
  member: {
792
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
793
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
798
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
799
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
794
800
  connector: "OR" | "AND";
795
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
796
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
801
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
802
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
797
803
  };
798
804
  admin: {
799
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
800
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
805
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
806
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
801
807
  connector: "OR" | "AND";
802
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
803
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
808
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
809
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
804
810
  };
805
811
  owner: {
806
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
807
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
812
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
813
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
808
814
  connector: "OR" | "AND";
809
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
810
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
815
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
816
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
811
817
  };
812
818
  };
813
819
  membershipLimit: number;
@@ -817,10 +823,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
817
823
  id: string;
818
824
  role: string;
819
825
  email: string;
820
- organization: better_auth_plugins0.Organization;
821
- invitation: better_auth_plugins0.Invitation;
822
- inviter: better_auth_plugins0.Member & {
823
- user: better_auth0.User;
826
+ organization: better_auth_plugins69.Organization;
827
+ invitation: better_auth_plugins69.Invitation;
828
+ inviter: better_auth_plugins69.Member & {
829
+ user: better_auth78.User;
824
830
  };
825
831
  }): Promise<void>;
826
832
  organizationHooks: {
@@ -829,28 +835,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
829
835
  user,
830
836
  organization: org
831
837
  }: {
832
- invitation: better_auth_plugins0.Invitation & Record<string, any>;
833
- member: better_auth_plugins0.Member & Record<string, any>;
834
- user: better_auth0.User & Record<string, any>;
835
- organization: better_auth_plugins0.Organization & Record<string, any>;
838
+ invitation: better_auth_plugins69.Invitation & Record<string, any>;
839
+ member: better_auth_plugins69.Member & Record<string, any>;
840
+ user: better_auth78.User & Record<string, any>;
841
+ organization: better_auth_plugins69.Organization & Record<string, any>;
836
842
  }) => Promise<void>;
837
843
  afterUpdateMemberRole: ({
838
844
  member,
839
845
  organization: org,
840
846
  previousRole
841
847
  }: {
842
- member: better_auth_plugins0.Member & Record<string, any>;
848
+ member: better_auth_plugins69.Member & Record<string, any>;
843
849
  previousRole: string;
844
- user: better_auth0.User & Record<string, any>;
845
- organization: better_auth_plugins0.Organization & Record<string, any>;
850
+ user: better_auth78.User & Record<string, any>;
851
+ organization: better_auth_plugins69.Organization & Record<string, any>;
846
852
  }) => Promise<void>;
847
853
  afterRemoveMember: ({
848
854
  member,
849
855
  organization: org
850
856
  }: {
851
- member: better_auth_plugins0.Member & Record<string, any>;
852
- user: better_auth0.User & Record<string, any>;
853
- organization: better_auth_plugins0.Organization & Record<string, any>;
857
+ member: better_auth_plugins69.Member & Record<string, any>;
858
+ user: better_auth78.User & Record<string, any>;
859
+ organization: better_auth_plugins69.Organization & Record<string, any>;
854
860
  }) => Promise<void>;
855
861
  };
856
862
  }>;
@@ -981,8 +987,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
981
987
  id: string;
982
988
  organizationId: string;
983
989
  email: string;
984
- role: "owner" | "admin" | "member";
985
- status: better_auth_plugins0.InvitationStatus;
990
+ role: "member" | "admin" | "owner";
991
+ status: better_auth_plugins69.InvitationStatus;
986
992
  inviterId: string;
987
993
  expiresAt: Date;
988
994
  createdAt: Date;
@@ -990,7 +996,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
990
996
  Member: {
991
997
  id: string;
992
998
  organizationId: string;
993
- role: "owner" | "admin" | "member";
999
+ role: "member" | "admin" | "owner";
994
1000
  createdAt: Date;
995
1001
  userId: string;
996
1002
  user: {
@@ -1006,7 +1012,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1006
1012
  members: {
1007
1013
  id: string;
1008
1014
  organizationId: string;
1009
- role: "owner" | "admin" | "member";
1015
+ role: "member" | "admin" | "owner";
1010
1016
  createdAt: Date;
1011
1017
  userId: string;
1012
1018
  user: {
@@ -1020,8 +1026,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1020
1026
  id: string;
1021
1027
  organizationId: string;
1022
1028
  email: string;
1023
- role: "owner" | "admin" | "member";
1024
- status: better_auth_plugins0.InvitationStatus;
1029
+ role: "member" | "admin" | "owner";
1030
+ status: better_auth_plugins69.InvitationStatus;
1025
1031
  inviterId: string;
1026
1032
  expiresAt: Date;
1027
1033
  createdAt: Date;
@@ -1095,28 +1101,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1095
1101
  };
1096
1102
  options: NoInfer<{
1097
1103
  allowUserToCreateOrganization: true;
1098
- ac: better_auth_plugins0.AccessControl;
1104
+ ac: better_auth_plugins69.AccessControl;
1099
1105
  roles: {
1100
1106
  member: {
1101
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
1102
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
1107
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
1108
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
1103
1109
  connector: "OR" | "AND";
1104
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1105
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
1110
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1111
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
1106
1112
  };
1107
1113
  admin: {
1108
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
1109
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
1114
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
1115
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
1110
1116
  connector: "OR" | "AND";
1111
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1112
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
1117
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1118
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
1113
1119
  };
1114
1120
  owner: {
1115
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
1116
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
1121
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
1122
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
1117
1123
  connector: "OR" | "AND";
1118
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1119
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
1124
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1125
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
1120
1126
  };
1121
1127
  };
1122
1128
  membershipLimit: number;
@@ -1126,10 +1132,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1126
1132
  id: string;
1127
1133
  role: string;
1128
1134
  email: string;
1129
- organization: better_auth_plugins0.Organization;
1130
- invitation: better_auth_plugins0.Invitation;
1131
- inviter: better_auth_plugins0.Member & {
1132
- user: better_auth0.User;
1135
+ organization: better_auth_plugins69.Organization;
1136
+ invitation: better_auth_plugins69.Invitation;
1137
+ inviter: better_auth_plugins69.Member & {
1138
+ user: better_auth78.User;
1133
1139
  };
1134
1140
  }): Promise<void>;
1135
1141
  organizationHooks: {
@@ -1138,28 +1144,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1138
1144
  user,
1139
1145
  organization: org
1140
1146
  }: {
1141
- invitation: better_auth_plugins0.Invitation & Record<string, any>;
1142
- member: better_auth_plugins0.Member & Record<string, any>;
1143
- user: better_auth0.User & Record<string, any>;
1144
- organization: better_auth_plugins0.Organization & Record<string, any>;
1147
+ invitation: better_auth_plugins69.Invitation & Record<string, any>;
1148
+ member: better_auth_plugins69.Member & Record<string, any>;
1149
+ user: better_auth78.User & Record<string, any>;
1150
+ organization: better_auth_plugins69.Organization & Record<string, any>;
1145
1151
  }) => Promise<void>;
1146
1152
  afterUpdateMemberRole: ({
1147
1153
  member,
1148
1154
  organization: org,
1149
1155
  previousRole
1150
1156
  }: {
1151
- member: better_auth_plugins0.Member & Record<string, any>;
1157
+ member: better_auth_plugins69.Member & Record<string, any>;
1152
1158
  previousRole: string;
1153
- user: better_auth0.User & Record<string, any>;
1154
- organization: better_auth_plugins0.Organization & Record<string, any>;
1159
+ user: better_auth78.User & Record<string, any>;
1160
+ organization: better_auth_plugins69.Organization & Record<string, any>;
1155
1161
  }) => Promise<void>;
1156
1162
  afterRemoveMember: ({
1157
1163
  member,
1158
1164
  organization: org
1159
1165
  }: {
1160
- member: better_auth_plugins0.Member & Record<string, any>;
1161
- user: better_auth0.User & Record<string, any>;
1162
- organization: better_auth_plugins0.Organization & Record<string, any>;
1166
+ member: better_auth_plugins69.Member & Record<string, any>;
1167
+ user: better_auth78.User & Record<string, any>;
1168
+ organization: better_auth_plugins69.Organization & Record<string, any>;
1163
1169
  }) => Promise<void>;
1164
1170
  };
1165
1171
  }>;
@@ -1208,19 +1214,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1208
1214
  };
1209
1215
  };
1210
1216
  endpoints: {
1211
- deviceCode: better_auth0.StrictEndpoint<"/device/code", {
1217
+ deviceCode: better_auth78.StrictEndpoint<"/device/code", {
1212
1218
  method: "POST";
1213
- body: zod0.ZodObject<{
1214
- client_id: zod0.ZodString;
1215
- scope: zod0.ZodOptional<zod0.ZodString>;
1216
- }, better_auth0.$strip>;
1217
- error: zod0.ZodObject<{
1218
- error: zod0.ZodEnum<{
1219
+ body: zod205.ZodObject<{
1220
+ client_id: zod205.ZodString;
1221
+ scope: zod205.ZodOptional<zod205.ZodString>;
1222
+ }, better_auth78.$strip>;
1223
+ error: zod205.ZodObject<{
1224
+ error: zod205.ZodEnum<{
1219
1225
  invalid_request: "invalid_request";
1220
1226
  invalid_client: "invalid_client";
1221
1227
  }>;
1222
- error_description: zod0.ZodString;
1223
- }, better_auth0.$strip>;
1228
+ error_description: zod205.ZodString;
1229
+ }, better_auth78.$strip>;
1224
1230
  metadata: {
1225
1231
  openapi: {
1226
1232
  description: string;
@@ -1293,15 +1299,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1293
1299
  expires_in: number;
1294
1300
  interval: number;
1295
1301
  }>;
1296
- deviceToken: better_auth0.StrictEndpoint<"/device/token", {
1302
+ deviceToken: better_auth78.StrictEndpoint<"/device/token", {
1297
1303
  method: "POST";
1298
- body: zod0.ZodObject<{
1299
- grant_type: zod0.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
1300
- device_code: zod0.ZodString;
1301
- client_id: zod0.ZodString;
1302
- }, better_auth0.$strip>;
1303
- error: zod0.ZodObject<{
1304
- error: zod0.ZodEnum<{
1304
+ body: zod205.ZodObject<{
1305
+ grant_type: zod205.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
1306
+ device_code: zod205.ZodString;
1307
+ client_id: zod205.ZodString;
1308
+ }, better_auth78.$strip>;
1309
+ error: zod205.ZodObject<{
1310
+ error: zod205.ZodEnum<{
1305
1311
  invalid_request: "invalid_request";
1306
1312
  authorization_pending: "authorization_pending";
1307
1313
  slow_down: "slow_down";
@@ -1309,8 +1315,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1309
1315
  access_denied: "access_denied";
1310
1316
  invalid_grant: "invalid_grant";
1311
1317
  }>;
1312
- error_description: zod0.ZodString;
1313
- }, better_auth0.$strip>;
1318
+ error_description: zod205.ZodString;
1319
+ }, better_auth78.$strip>;
1314
1320
  metadata: {
1315
1321
  openapi: {
1316
1322
  description: string;
@@ -1361,17 +1367,17 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1361
1367
  expires_in: number;
1362
1368
  scope: string;
1363
1369
  }>;
1364
- deviceVerify: better_auth0.StrictEndpoint<"/device", {
1370
+ deviceVerify: better_auth78.StrictEndpoint<"/device", {
1365
1371
  method: "GET";
1366
- query: zod0.ZodObject<{
1367
- user_code: zod0.ZodString;
1368
- }, better_auth0.$strip>;
1369
- error: zod0.ZodObject<{
1370
- error: zod0.ZodEnum<{
1372
+ query: zod205.ZodObject<{
1373
+ user_code: zod205.ZodString;
1374
+ }, better_auth78.$strip>;
1375
+ error: zod205.ZodObject<{
1376
+ error: zod205.ZodEnum<{
1371
1377
  invalid_request: "invalid_request";
1372
1378
  }>;
1373
- error_description: zod0.ZodString;
1374
- }, better_auth0.$strip>;
1379
+ error_description: zod205.ZodString;
1380
+ }, better_auth78.$strip>;
1375
1381
  metadata: {
1376
1382
  openapi: {
1377
1383
  description: string;
@@ -1404,19 +1410,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1404
1410
  user_code: string;
1405
1411
  status: string;
1406
1412
  }>;
1407
- deviceApprove: better_auth0.StrictEndpoint<"/device/approve", {
1413
+ deviceApprove: better_auth78.StrictEndpoint<"/device/approve", {
1408
1414
  method: "POST";
1409
- body: zod0.ZodObject<{
1410
- userCode: zod0.ZodString;
1411
- }, better_auth0.$strip>;
1412
- error: zod0.ZodObject<{
1413
- error: zod0.ZodEnum<{
1415
+ body: zod205.ZodObject<{
1416
+ userCode: zod205.ZodString;
1417
+ }, better_auth78.$strip>;
1418
+ error: zod205.ZodObject<{
1419
+ error: zod205.ZodEnum<{
1414
1420
  invalid_request: "invalid_request";
1415
1421
  expired_token: "expired_token";
1416
1422
  device_code_already_processed: "device_code_already_processed";
1417
1423
  }>;
1418
- error_description: zod0.ZodString;
1419
- }, better_auth0.$strip>;
1424
+ error_description: zod205.ZodString;
1425
+ }, better_auth78.$strip>;
1420
1426
  requireHeaders: true;
1421
1427
  metadata: {
1422
1428
  openapi: {
@@ -1443,18 +1449,18 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1443
1449
  }, {
1444
1450
  success: boolean;
1445
1451
  }>;
1446
- deviceDeny: better_auth0.StrictEndpoint<"/device/deny", {
1452
+ deviceDeny: better_auth78.StrictEndpoint<"/device/deny", {
1447
1453
  method: "POST";
1448
- body: zod0.ZodObject<{
1449
- userCode: zod0.ZodString;
1450
- }, better_auth0.$strip>;
1451
- error: zod0.ZodObject<{
1452
- error: zod0.ZodEnum<{
1454
+ body: zod205.ZodObject<{
1455
+ userCode: zod205.ZodString;
1456
+ }, better_auth78.$strip>;
1457
+ error: zod205.ZodObject<{
1458
+ error: zod205.ZodEnum<{
1453
1459
  invalid_request: "invalid_request";
1454
1460
  expired_token: "expired_token";
1455
1461
  }>;
1456
- error_description: zod0.ZodString;
1457
- }, better_auth0.$strip>;
1462
+ error_description: zod205.ZodString;
1463
+ }, better_auth78.$strip>;
1458
1464
  metadata: {
1459
1465
  openapi: {
1460
1466
  description: string;
@@ -1496,8 +1502,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
1496
1502
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1497
1503
  };
1498
1504
  options: Partial<{
1499
- expiresIn: better_auth_plugins0.TimeString;
1500
- interval: better_auth_plugins0.TimeString;
1505
+ expiresIn: better_auth_plugins69.TimeString;
1506
+ interval: better_auth_plugins69.TimeString;
1501
1507
  deviceCodeLength: number;
1502
1508
  userCodeLength: number;
1503
1509
  schema: {
@@ -1530,6 +1536,6 @@ declare function createAgentsApp(config?: {
1530
1536
  auth?: UserAuthConfig;
1531
1537
  sandboxConfig?: SandboxConfig;
1532
1538
  skipInitialization?: boolean;
1533
- }): hono0.Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
1539
+ }): hono0.Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
1534
1540
  //#endregion
1535
1541
  export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono, createAuth0Provider, createOIDCProvider, initializeDefaultUser };