@inkeep/agents-api 0.0.0-dev-20260224154211 → 0.0.0-dev-20260224170656

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
@@ -3,19 +3,19 @@ import "./types/index.js";
3
3
  import { createAgentsHono } from "./createApp.js";
4
4
  import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
5
5
  import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
6
- import * as hono4 from "hono";
7
- import * as zod205 from "zod";
6
+ import * as hono0 from "hono";
7
+ import * as zod0 from "zod";
8
8
  import { SSOProviderConfig, UserAuthConfig } from "@inkeep/agents-core/auth";
9
- import * as hono_types3 from "hono/types";
10
- import * as better_auth79 from "better-auth";
11
- import * as better_auth_plugins69 from "better-auth/plugins";
12
- import * as _better_auth_sso10 from "@better-auth/sso";
9
+ import * as hono_types0 from "hono/types";
10
+ import * as better_auth0 from "better-auth";
11
+ import * as better_auth_plugins0 from "better-auth/plugins";
12
+ import * as _better_auth_sso0 from "@better-auth/sso";
13
13
 
14
14
  //#region src/factory.d.ts
15
- declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth79.Auth<{
15
+ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0.Auth<{
16
16
  baseURL: string;
17
17
  secret: string;
18
- database: (options: better_auth79.BetterAuthOptions) => better_auth79.DBAdapter<better_auth79.BetterAuthOptions>;
18
+ database: (options: better_auth0.BetterAuthOptions) => better_auth0.DBAdapter<better_auth0.BetterAuthOptions>;
19
19
  emailAndPassword: {
20
20
  enabled: true;
21
21
  minPasswordLength: number;
@@ -28,7 +28,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
28
28
  url,
29
29
  token
30
30
  }: {
31
- user: better_auth79.User;
31
+ user: better_auth0.User;
32
32
  url: string;
33
33
  token: string;
34
34
  }) => Promise<void>;
@@ -80,7 +80,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
80
80
  clientKey?: string | undefined;
81
81
  disableIdTokenSignIn?: boolean | undefined;
82
82
  verifyIdToken?: ((token: string, nonce?: string) => Promise<boolean>) | undefined;
83
- getUserInfo?: ((token: better_auth79.OAuth2Tokens) => Promise<{
83
+ getUserInfo?: ((token: better_auth0.OAuth2Tokens) => Promise<{
84
84
  user: {
85
85
  id: string;
86
86
  name?: string;
@@ -91,8 +91,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
91
91
  };
92
92
  data: any;
93
93
  } | null>) | undefined;
94
- refreshAccessToken?: ((refreshToken: string) => Promise<better_auth79.OAuth2Tokens>) | undefined;
95
- mapProfileToUser?: ((profile: better_auth79.GoogleProfile) => {
94
+ refreshAccessToken?: ((refreshToken: string) => Promise<better_auth0.OAuth2Tokens>) | undefined;
95
+ mapProfileToUser?: ((profile: better_auth0.GoogleProfile) => {
96
96
  id?: string;
97
97
  name?: string;
98
98
  email?: string | null;
@@ -139,15 +139,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
139
139
  cookies?: {
140
140
  [key: string]: {
141
141
  name?: string;
142
- attributes?: better_auth79.CookieOptions;
142
+ attributes?: better_auth0.CookieOptions;
143
143
  };
144
144
  } | undefined;
145
- defaultCookieAttributes: better_auth79.CookieOptions;
145
+ defaultCookieAttributes: better_auth0.CookieOptions;
146
146
  cookiePrefix?: string | undefined;
147
147
  database?: {
148
148
  defaultFindManyLimit?: number;
149
149
  useNumberId?: boolean;
150
- generateId?: better_auth79.GenerateIdFn | false | "serial" | "uuid";
150
+ generateId?: better_auth0.GenerateIdFn | false | "serial" | "uuid";
151
151
  } | undefined;
152
152
  trustedProxyHeaders?: boolean | undefined;
153
153
  backgroundTasks?: {
@@ -159,31 +159,31 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
159
159
  id: "bearer";
160
160
  hooks: {
161
161
  before: {
162
- matcher(context: better_auth79.HookEndpointContext): boolean;
163
- handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
162
+ matcher(context: better_auth0.HookEndpointContext): boolean;
163
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
164
164
  context: {
165
165
  headers: Headers;
166
166
  };
167
167
  } | undefined>;
168
168
  }[];
169
169
  after: {
170
- matcher(context: better_auth79.HookEndpointContext): true;
171
- handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>;
170
+ matcher(context: better_auth0.HookEndpointContext): true;
171
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
172
172
  }[];
173
173
  };
174
- options: better_auth_plugins69.BearerOptions | undefined;
174
+ options: better_auth_plugins0.BearerOptions | undefined;
175
175
  }, {
176
176
  id: "sso";
177
177
  endpoints: {
178
- spMetadata: ReturnType<() => better_auth79.StrictEndpoint<"/sso/saml2/sp/metadata", {
178
+ spMetadata: ReturnType<() => better_auth0.StrictEndpoint<"/sso/saml2/sp/metadata", {
179
179
  method: "GET";
180
- query: zod205.ZodObject<{
181
- providerId: zod205.ZodString;
182
- format: zod205.ZodDefault<zod205.ZodEnum<{
180
+ query: zod0.ZodObject<{
181
+ providerId: zod0.ZodString;
182
+ format: zod0.ZodDefault<zod0.ZodEnum<{
183
183
  xml: "xml";
184
184
  json: "json";
185
185
  }>>;
186
- }, better_auth79.$strip>;
186
+ }, better_auth0.$strip>;
187
187
  metadata: {
188
188
  openapi: {
189
189
  operationId: string;
@@ -197,86 +197,86 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
197
197
  };
198
198
  };
199
199
  }, Response>>;
200
- registerSSOProvider: better_auth79.StrictEndpoint<"/sso/register", {
200
+ registerSSOProvider: better_auth0.StrictEndpoint<"/sso/register", {
201
201
  method: "POST";
202
- body: zod205.ZodObject<{
203
- providerId: zod205.ZodString;
204
- issuer: zod205.ZodString;
205
- domain: zod205.ZodString;
206
- oidcConfig: zod205.ZodOptional<zod205.ZodObject<{
207
- clientId: zod205.ZodString;
208
- clientSecret: zod205.ZodString;
209
- authorizationEndpoint: zod205.ZodOptional<zod205.ZodString>;
210
- tokenEndpoint: zod205.ZodOptional<zod205.ZodString>;
211
- userInfoEndpoint: zod205.ZodOptional<zod205.ZodString>;
212
- tokenEndpointAuthentication: zod205.ZodOptional<zod205.ZodEnum<{
202
+ body: zod0.ZodObject<{
203
+ providerId: zod0.ZodString;
204
+ issuer: zod0.ZodString;
205
+ domain: zod0.ZodString;
206
+ oidcConfig: zod0.ZodOptional<zod0.ZodObject<{
207
+ clientId: zod0.ZodString;
208
+ clientSecret: zod0.ZodString;
209
+ authorizationEndpoint: zod0.ZodOptional<zod0.ZodString>;
210
+ tokenEndpoint: zod0.ZodOptional<zod0.ZodString>;
211
+ userInfoEndpoint: zod0.ZodOptional<zod0.ZodString>;
212
+ tokenEndpointAuthentication: zod0.ZodOptional<zod0.ZodEnum<{
213
213
  client_secret_post: "client_secret_post";
214
214
  client_secret_basic: "client_secret_basic";
215
215
  }>>;
216
- jwksEndpoint: zod205.ZodOptional<zod205.ZodString>;
217
- discoveryEndpoint: zod205.ZodOptional<zod205.ZodString>;
218
- skipDiscovery: zod205.ZodOptional<zod205.ZodBoolean>;
219
- scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
220
- pkce: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
221
- mapping: zod205.ZodOptional<zod205.ZodObject<{
222
- id: zod205.ZodString;
223
- email: zod205.ZodString;
224
- emailVerified: zod205.ZodOptional<zod205.ZodString>;
225
- name: zod205.ZodString;
226
- image: zod205.ZodOptional<zod205.ZodString>;
227
- extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
228
- }, better_auth79.$strip>>;
229
- }, better_auth79.$strip>>;
230
- samlConfig: zod205.ZodOptional<zod205.ZodObject<{
231
- entryPoint: zod205.ZodString;
232
- cert: zod205.ZodString;
233
- callbackUrl: zod205.ZodString;
234
- audience: zod205.ZodOptional<zod205.ZodString>;
235
- idpMetadata: zod205.ZodOptional<zod205.ZodObject<{
236
- metadata: zod205.ZodOptional<zod205.ZodString>;
237
- entityID: zod205.ZodOptional<zod205.ZodString>;
238
- cert: zod205.ZodOptional<zod205.ZodString>;
239
- privateKey: zod205.ZodOptional<zod205.ZodString>;
240
- privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
241
- isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
242
- encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
243
- encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
244
- singleSignOnService: zod205.ZodOptional<zod205.ZodArray<zod205.ZodObject<{
245
- Binding: zod205.ZodString;
246
- Location: zod205.ZodString;
247
- }, better_auth79.$strip>>>;
248
- }, better_auth79.$strip>>;
249
- spMetadata: zod205.ZodObject<{
250
- metadata: zod205.ZodOptional<zod205.ZodString>;
251
- entityID: zod205.ZodOptional<zod205.ZodString>;
252
- binding: zod205.ZodOptional<zod205.ZodString>;
253
- privateKey: zod205.ZodOptional<zod205.ZodString>;
254
- privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
255
- isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
256
- encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
257
- encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
258
- }, better_auth79.$strip>;
259
- wantAssertionsSigned: zod205.ZodOptional<zod205.ZodBoolean>;
260
- signatureAlgorithm: zod205.ZodOptional<zod205.ZodString>;
261
- digestAlgorithm: zod205.ZodOptional<zod205.ZodString>;
262
- identifierFormat: zod205.ZodOptional<zod205.ZodString>;
263
- privateKey: zod205.ZodOptional<zod205.ZodString>;
264
- decryptionPvk: zod205.ZodOptional<zod205.ZodString>;
265
- additionalParams: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
266
- mapping: zod205.ZodOptional<zod205.ZodObject<{
267
- id: zod205.ZodString;
268
- email: zod205.ZodString;
269
- emailVerified: zod205.ZodOptional<zod205.ZodString>;
270
- name: zod205.ZodString;
271
- firstName: zod205.ZodOptional<zod205.ZodString>;
272
- lastName: zod205.ZodOptional<zod205.ZodString>;
273
- extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
274
- }, better_auth79.$strip>>;
275
- }, better_auth79.$strip>>;
276
- organizationId: zod205.ZodOptional<zod205.ZodString>;
277
- overrideUserInfo: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
278
- }, better_auth79.$strip>;
279
- use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
216
+ jwksEndpoint: zod0.ZodOptional<zod0.ZodString>;
217
+ discoveryEndpoint: zod0.ZodOptional<zod0.ZodString>;
218
+ skipDiscovery: zod0.ZodOptional<zod0.ZodBoolean>;
219
+ scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
220
+ pkce: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
221
+ mapping: zod0.ZodOptional<zod0.ZodObject<{
222
+ id: zod0.ZodString;
223
+ email: zod0.ZodString;
224
+ emailVerified: zod0.ZodOptional<zod0.ZodString>;
225
+ name: zod0.ZodString;
226
+ image: zod0.ZodOptional<zod0.ZodString>;
227
+ extraFields: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
228
+ }, better_auth0.$strip>>;
229
+ }, better_auth0.$strip>>;
230
+ samlConfig: zod0.ZodOptional<zod0.ZodObject<{
231
+ entryPoint: zod0.ZodString;
232
+ cert: zod0.ZodString;
233
+ callbackUrl: zod0.ZodString;
234
+ audience: zod0.ZodOptional<zod0.ZodString>;
235
+ idpMetadata: zod0.ZodOptional<zod0.ZodObject<{
236
+ metadata: zod0.ZodOptional<zod0.ZodString>;
237
+ entityID: zod0.ZodOptional<zod0.ZodString>;
238
+ cert: zod0.ZodOptional<zod0.ZodString>;
239
+ privateKey: zod0.ZodOptional<zod0.ZodString>;
240
+ privateKeyPass: zod0.ZodOptional<zod0.ZodString>;
241
+ isAssertionEncrypted: zod0.ZodOptional<zod0.ZodBoolean>;
242
+ encPrivateKey: zod0.ZodOptional<zod0.ZodString>;
243
+ encPrivateKeyPass: zod0.ZodOptional<zod0.ZodString>;
244
+ singleSignOnService: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
245
+ Binding: zod0.ZodString;
246
+ Location: zod0.ZodString;
247
+ }, better_auth0.$strip>>>;
248
+ }, better_auth0.$strip>>;
249
+ spMetadata: zod0.ZodObject<{
250
+ metadata: zod0.ZodOptional<zod0.ZodString>;
251
+ entityID: zod0.ZodOptional<zod0.ZodString>;
252
+ binding: zod0.ZodOptional<zod0.ZodString>;
253
+ privateKey: zod0.ZodOptional<zod0.ZodString>;
254
+ privateKeyPass: zod0.ZodOptional<zod0.ZodString>;
255
+ isAssertionEncrypted: zod0.ZodOptional<zod0.ZodBoolean>;
256
+ encPrivateKey: zod0.ZodOptional<zod0.ZodString>;
257
+ encPrivateKeyPass: zod0.ZodOptional<zod0.ZodString>;
258
+ }, better_auth0.$strip>;
259
+ wantAssertionsSigned: zod0.ZodOptional<zod0.ZodBoolean>;
260
+ signatureAlgorithm: zod0.ZodOptional<zod0.ZodString>;
261
+ digestAlgorithm: zod0.ZodOptional<zod0.ZodString>;
262
+ identifierFormat: zod0.ZodOptional<zod0.ZodString>;
263
+ privateKey: zod0.ZodOptional<zod0.ZodString>;
264
+ decryptionPvk: zod0.ZodOptional<zod0.ZodString>;
265
+ additionalParams: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
266
+ mapping: zod0.ZodOptional<zod0.ZodObject<{
267
+ id: zod0.ZodString;
268
+ email: zod0.ZodString;
269
+ emailVerified: zod0.ZodOptional<zod0.ZodString>;
270
+ name: zod0.ZodString;
271
+ firstName: zod0.ZodOptional<zod0.ZodString>;
272
+ lastName: zod0.ZodOptional<zod0.ZodString>;
273
+ extraFields: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
274
+ }, better_auth0.$strip>>;
275
+ }, better_auth0.$strip>>;
276
+ organizationId: zod0.ZodOptional<zod0.ZodString>;
277
+ overrideUserInfo: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
278
+ }, better_auth0.$strip>;
279
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
280
280
  session: {
281
281
  session: Record<string, any> & {
282
282
  id: string;
@@ -462,35 +462,35 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
462
462
  };
463
463
  }, {
464
464
  redirectURI: string;
465
- oidcConfig: _better_auth_sso10.OIDCConfig | null;
466
- samlConfig: _better_auth_sso10.SAMLConfig | null;
465
+ oidcConfig: _better_auth_sso0.OIDCConfig | null;
466
+ samlConfig: _better_auth_sso0.SAMLConfig | null;
467
467
  } & Omit<{
468
468
  issuer: string;
469
- oidcConfig?: _better_auth_sso10.OIDCConfig | undefined;
470
- samlConfig?: _better_auth_sso10.SAMLConfig | undefined;
469
+ oidcConfig?: _better_auth_sso0.OIDCConfig | undefined;
470
+ samlConfig?: _better_auth_sso0.SAMLConfig | undefined;
471
471
  userId: string;
472
472
  providerId: string;
473
473
  organizationId?: string | undefined;
474
474
  domain: string;
475
475
  }, "oidcConfig" | "samlConfig">>;
476
- signInSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sign-in/sso", {
476
+ signInSSO: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sign-in/sso", {
477
477
  method: "POST";
478
- body: zod205.ZodObject<{
479
- email: zod205.ZodOptional<zod205.ZodString>;
480
- organizationSlug: zod205.ZodOptional<zod205.ZodString>;
481
- providerId: zod205.ZodOptional<zod205.ZodString>;
482
- domain: zod205.ZodOptional<zod205.ZodString>;
483
- callbackURL: zod205.ZodString;
484
- errorCallbackURL: zod205.ZodOptional<zod205.ZodString>;
485
- newUserCallbackURL: zod205.ZodOptional<zod205.ZodString>;
486
- scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
487
- loginHint: zod205.ZodOptional<zod205.ZodString>;
488
- requestSignUp: zod205.ZodOptional<zod205.ZodBoolean>;
489
- providerType: zod205.ZodOptional<zod205.ZodEnum<{
478
+ body: zod0.ZodObject<{
479
+ email: zod0.ZodOptional<zod0.ZodString>;
480
+ organizationSlug: zod0.ZodOptional<zod0.ZodString>;
481
+ providerId: zod0.ZodOptional<zod0.ZodString>;
482
+ domain: zod0.ZodOptional<zod0.ZodString>;
483
+ callbackURL: zod0.ZodString;
484
+ errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
485
+ newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
486
+ scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
487
+ loginHint: zod0.ZodOptional<zod0.ZodString>;
488
+ requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
489
+ providerType: zod0.ZodOptional<zod0.ZodEnum<{
490
490
  saml: "saml";
491
491
  oidc: "oidc";
492
492
  }>>;
493
- }, better_auth79.$strip>;
493
+ }, better_auth0.$strip>;
494
494
  metadata: {
495
495
  openapi: {
496
496
  operationId: string;
@@ -567,14 +567,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
567
567
  url: string;
568
568
  redirect: boolean;
569
569
  }>>;
570
- callbackSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/callback/:providerId", {
570
+ callbackSSO: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/callback/:providerId", {
571
571
  method: "GET";
572
- query: zod205.ZodObject<{
573
- code: zod205.ZodOptional<zod205.ZodString>;
574
- state: zod205.ZodString;
575
- error: zod205.ZodOptional<zod205.ZodString>;
576
- error_description: zod205.ZodOptional<zod205.ZodString>;
577
- }, better_auth79.$strip>;
572
+ query: zod0.ZodObject<{
573
+ code: zod0.ZodOptional<zod0.ZodString>;
574
+ state: zod0.ZodString;
575
+ error: zod0.ZodOptional<zod0.ZodString>;
576
+ error_description: zod0.ZodOptional<zod0.ZodString>;
577
+ }, better_auth0.$strip>;
578
578
  allowedMediaTypes: string[];
579
579
  metadata: {
580
580
  openapi: {
@@ -590,12 +590,12 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
590
590
  scope: "server";
591
591
  };
592
592
  }, never>>;
593
- callbackSSOSAML: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/saml2/callback/:providerId", {
593
+ callbackSSOSAML: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/saml2/callback/:providerId", {
594
594
  method: "POST";
595
- body: zod205.ZodObject<{
596
- SAMLResponse: zod205.ZodString;
597
- RelayState: zod205.ZodOptional<zod205.ZodString>;
598
- }, better_auth79.$strip>;
595
+ body: zod0.ZodObject<{
596
+ SAMLResponse: zod0.ZodString;
597
+ RelayState: zod0.ZodOptional<zod0.ZodString>;
598
+ }, better_auth0.$strip>;
599
599
  metadata: {
600
600
  allowedMediaTypes: string[];
601
601
  openapi: {
@@ -617,15 +617,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
617
617
  scope: "server";
618
618
  };
619
619
  }, never>>;
620
- acsEndpoint: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
620
+ acsEndpoint: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
621
621
  method: "POST";
622
- params: zod205.ZodObject<{
623
- providerId: zod205.ZodOptional<zod205.ZodString>;
624
- }, better_auth79.$strip>;
625
- body: zod205.ZodObject<{
626
- SAMLResponse: zod205.ZodString;
627
- RelayState: zod205.ZodOptional<zod205.ZodString>;
628
- }, better_auth79.$strip>;
622
+ params: zod0.ZodObject<{
623
+ providerId: zod0.ZodOptional<zod0.ZodString>;
624
+ }, better_auth0.$strip>;
625
+ body: zod0.ZodObject<{
626
+ SAMLResponse: zod0.ZodString;
627
+ RelayState: zod0.ZodOptional<zod0.ZodString>;
628
+ }, better_auth0.$strip>;
629
629
  metadata: {
630
630
  allowedMediaTypes: string[];
631
631
  openapi: {
@@ -642,11 +642,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
642
642
  };
643
643
  }, never>>;
644
644
  } & {
645
- requestDomainVerification: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/request-domain-verification", {
645
+ requestDomainVerification: ReturnType<(options: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/request-domain-verification", {
646
646
  method: "POST";
647
- body: zod205.ZodObject<{
648
- providerId: zod205.ZodString;
649
- }, better_auth79.$strip>;
647
+ body: zod0.ZodObject<{
648
+ providerId: zod0.ZodString;
649
+ }, better_auth0.$strip>;
650
650
  metadata: {
651
651
  openapi: {
652
652
  summary: string;
@@ -664,7 +664,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
664
664
  };
665
665
  };
666
666
  };
667
- use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
667
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
668
668
  session: {
669
669
  session: Record<string, any> & {
670
670
  id: string;
@@ -690,11 +690,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
690
690
  }, {
691
691
  domainVerificationToken: string;
692
692
  }>>;
693
- verifyDomain: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/verify-domain", {
693
+ verifyDomain: ReturnType<(options: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/verify-domain", {
694
694
  method: "POST";
695
- body: zod205.ZodObject<{
696
- providerId: zod205.ZodString;
697
- }, better_auth79.$strip>;
695
+ body: zod0.ZodObject<{
696
+ providerId: zod0.ZodString;
697
+ }, better_auth0.$strip>;
698
698
  metadata: {
699
699
  openapi: {
700
700
  summary: string;
@@ -715,7 +715,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
715
715
  };
716
716
  };
717
717
  };
718
- use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
718
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
719
719
  session: {
720
720
  session: Record<string, any> & {
721
721
  id: string;
@@ -741,7 +741,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
741
741
  }, void>>;
742
742
  };
743
743
  schema: any;
744
- options: _better_auth_sso10.SSOOptions & {
744
+ options: _better_auth_sso0.SSOOptions & {
745
745
  domainVerification?: {
746
746
  enabled: true;
747
747
  };
@@ -752,14 +752,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
752
752
  productionURL: string;
753
753
  }>;
754
754
  endpoints: {
755
- oAuthProxy: better_auth79.StrictEndpoint<"/oauth-proxy-callback", {
755
+ oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
756
756
  method: "GET";
757
757
  operationId: string;
758
- query: zod205.ZodObject<{
759
- callbackURL: zod205.ZodString;
760
- cookies: zod205.ZodString;
761
- }, better_auth79.$strip>;
762
- use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>)[];
758
+ query: zod0.ZodObject<{
759
+ callbackURL: zod0.ZodString;
760
+ cookies: zod0.ZodString;
761
+ }, better_auth0.$strip>;
762
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>)[];
763
763
  metadata: {
764
764
  openapi: {
765
765
  operationId: string;
@@ -789,40 +789,40 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
789
789
  };
790
790
  hooks: {
791
791
  before: {
792
- matcher(context: better_auth79.HookEndpointContext): boolean;
793
- handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>;
792
+ matcher(context: better_auth0.HookEndpointContext): boolean;
793
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
794
794
  }[];
795
795
  after: {
796
- matcher(context: better_auth79.HookEndpointContext): boolean;
797
- handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>;
796
+ matcher(context: better_auth0.HookEndpointContext): boolean;
797
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
798
798
  }[];
799
799
  };
800
800
  }, {
801
801
  id: "organization";
802
- endpoints: better_auth_plugins69.OrganizationEndpoints<{
802
+ endpoints: better_auth_plugins0.OrganizationEndpoints<{
803
803
  allowUserToCreateOrganization: true;
804
- ac: better_auth_plugins69.AccessControl;
804
+ ac: better_auth_plugins0.AccessControl;
805
805
  roles: {
806
806
  member: {
807
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
808
- actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
807
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
808
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
809
809
  connector: "OR" | "AND";
810
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
811
- statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
810
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
811
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
812
812
  };
813
813
  admin: {
814
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
815
- actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
814
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
815
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
816
816
  connector: "OR" | "AND";
817
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
818
- statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
817
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
818
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
819
819
  };
820
820
  owner: {
821
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
822
- actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
821
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
822
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
823
823
  connector: "OR" | "AND";
824
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
825
- statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
824
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
825
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
826
826
  };
827
827
  };
828
828
  creatorRole: "admin";
@@ -833,10 +833,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
833
833
  id: string;
834
834
  role: string;
835
835
  email: string;
836
- organization: better_auth_plugins69.Organization;
837
- invitation: better_auth_plugins69.Invitation;
838
- inviter: better_auth_plugins69.Member & {
839
- user: better_auth79.User;
836
+ organization: better_auth_plugins0.Organization;
837
+ invitation: better_auth_plugins0.Invitation;
838
+ inviter: better_auth_plugins0.Member & {
839
+ user: better_auth0.User;
840
840
  };
841
841
  }): Promise<void>;
842
842
  schema: {
@@ -870,28 +870,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
870
870
  user,
871
871
  organization: org
872
872
  }: {
873
- invitation: better_auth_plugins69.Invitation & Record<string, any>;
874
- member: better_auth_plugins69.Member & Record<string, any>;
875
- user: better_auth79.User & Record<string, any>;
876
- organization: better_auth_plugins69.Organization & Record<string, any>;
873
+ invitation: better_auth_plugins0.Invitation & Record<string, any>;
874
+ member: better_auth_plugins0.Member & Record<string, any>;
875
+ user: better_auth0.User & Record<string, any>;
876
+ organization: better_auth_plugins0.Organization & Record<string, any>;
877
877
  }) => Promise<void>;
878
878
  beforeUpdateMemberRole: ({
879
879
  member,
880
880
  organization: org,
881
881
  newRole
882
882
  }: {
883
- member: better_auth_plugins69.Member & Record<string, any>;
883
+ member: better_auth_plugins0.Member & Record<string, any>;
884
884
  newRole: string;
885
- user: better_auth79.User & Record<string, any>;
886
- organization: better_auth_plugins69.Organization & Record<string, any>;
885
+ user: better_auth0.User & Record<string, any>;
886
+ organization: better_auth_plugins0.Organization & Record<string, any>;
887
887
  }) => Promise<void>;
888
888
  beforeRemoveMember: ({
889
889
  member,
890
890
  organization: org
891
891
  }: {
892
- member: better_auth_plugins69.Member & Record<string, any>;
893
- user: better_auth79.User & Record<string, any>;
894
- organization: better_auth_plugins69.Organization & Record<string, any>;
892
+ member: better_auth_plugins0.Member & Record<string, any>;
893
+ user: better_auth0.User & Record<string, any>;
894
+ organization: better_auth_plugins0.Organization & Record<string, any>;
895
895
  }) => Promise<void>;
896
896
  };
897
897
  }>;
@@ -1025,7 +1025,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1025
1025
  organizationId: string;
1026
1026
  email: string;
1027
1027
  role: "member" | "owner" | "admin";
1028
- status: better_auth_plugins69.InvitationStatus;
1028
+ status: better_auth_plugins0.InvitationStatus;
1029
1029
  inviterId: string;
1030
1030
  expiresAt: Date;
1031
1031
  createdAt: Date;
@@ -1065,7 +1065,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1065
1065
  organizationId: string;
1066
1066
  email: string;
1067
1067
  role: "member" | "owner" | "admin";
1068
- status: better_auth_plugins69.InvitationStatus;
1068
+ status: better_auth_plugins0.InvitationStatus;
1069
1069
  inviterId: string;
1070
1070
  expiresAt: Date;
1071
1071
  createdAt: Date;
@@ -1142,28 +1142,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1142
1142
  };
1143
1143
  options: NoInfer<{
1144
1144
  allowUserToCreateOrganization: true;
1145
- ac: better_auth_plugins69.AccessControl;
1145
+ ac: better_auth_plugins0.AccessControl;
1146
1146
  roles: {
1147
1147
  member: {
1148
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
1149
- actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
1148
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1149
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1150
1150
  connector: "OR" | "AND";
1151
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1152
- statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
1151
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1152
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1153
1153
  };
1154
1154
  admin: {
1155
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
1156
- actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
1155
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1156
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1157
1157
  connector: "OR" | "AND";
1158
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1159
- statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
1158
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1159
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1160
1160
  };
1161
1161
  owner: {
1162
- authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
1163
- actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
1162
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1163
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1164
1164
  connector: "OR" | "AND";
1165
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1166
- statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
1165
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1166
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1167
1167
  };
1168
1168
  };
1169
1169
  creatorRole: "admin";
@@ -1174,10 +1174,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1174
1174
  id: string;
1175
1175
  role: string;
1176
1176
  email: string;
1177
- organization: better_auth_plugins69.Organization;
1178
- invitation: better_auth_plugins69.Invitation;
1179
- inviter: better_auth_plugins69.Member & {
1180
- user: better_auth79.User;
1177
+ organization: better_auth_plugins0.Organization;
1178
+ invitation: better_auth_plugins0.Invitation;
1179
+ inviter: better_auth_plugins0.Member & {
1180
+ user: better_auth0.User;
1181
1181
  };
1182
1182
  }): Promise<void>;
1183
1183
  schema: {
@@ -1211,28 +1211,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1211
1211
  user,
1212
1212
  organization: org
1213
1213
  }: {
1214
- invitation: better_auth_plugins69.Invitation & Record<string, any>;
1215
- member: better_auth_plugins69.Member & Record<string, any>;
1216
- user: better_auth79.User & Record<string, any>;
1217
- organization: better_auth_plugins69.Organization & Record<string, any>;
1214
+ invitation: better_auth_plugins0.Invitation & Record<string, any>;
1215
+ member: better_auth_plugins0.Member & Record<string, any>;
1216
+ user: better_auth0.User & Record<string, any>;
1217
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1218
1218
  }) => Promise<void>;
1219
1219
  beforeUpdateMemberRole: ({
1220
1220
  member,
1221
1221
  organization: org,
1222
1222
  newRole
1223
1223
  }: {
1224
- member: better_auth_plugins69.Member & Record<string, any>;
1224
+ member: better_auth_plugins0.Member & Record<string, any>;
1225
1225
  newRole: string;
1226
- user: better_auth79.User & Record<string, any>;
1227
- organization: better_auth_plugins69.Organization & Record<string, any>;
1226
+ user: better_auth0.User & Record<string, any>;
1227
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1228
1228
  }) => Promise<void>;
1229
1229
  beforeRemoveMember: ({
1230
1230
  member,
1231
1231
  organization: org
1232
1232
  }: {
1233
- member: better_auth_plugins69.Member & Record<string, any>;
1234
- user: better_auth79.User & Record<string, any>;
1235
- organization: better_auth_plugins69.Organization & Record<string, any>;
1233
+ member: better_auth_plugins0.Member & Record<string, any>;
1234
+ user: better_auth0.User & Record<string, any>;
1235
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1236
1236
  }) => Promise<void>;
1237
1237
  };
1238
1238
  }>;
@@ -1281,19 +1281,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1281
1281
  };
1282
1282
  };
1283
1283
  endpoints: {
1284
- deviceCode: better_auth79.StrictEndpoint<"/device/code", {
1284
+ deviceCode: better_auth0.StrictEndpoint<"/device/code", {
1285
1285
  method: "POST";
1286
- body: zod205.ZodObject<{
1287
- client_id: zod205.ZodString;
1288
- scope: zod205.ZodOptional<zod205.ZodString>;
1289
- }, better_auth79.$strip>;
1290
- error: zod205.ZodObject<{
1291
- error: zod205.ZodEnum<{
1286
+ body: zod0.ZodObject<{
1287
+ client_id: zod0.ZodString;
1288
+ scope: zod0.ZodOptional<zod0.ZodString>;
1289
+ }, better_auth0.$strip>;
1290
+ error: zod0.ZodObject<{
1291
+ error: zod0.ZodEnum<{
1292
1292
  invalid_request: "invalid_request";
1293
1293
  invalid_client: "invalid_client";
1294
1294
  }>;
1295
- error_description: zod205.ZodString;
1296
- }, better_auth79.$strip>;
1295
+ error_description: zod0.ZodString;
1296
+ }, better_auth0.$strip>;
1297
1297
  metadata: {
1298
1298
  openapi: {
1299
1299
  description: string;
@@ -1366,15 +1366,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1366
1366
  expires_in: number;
1367
1367
  interval: number;
1368
1368
  }>;
1369
- deviceToken: better_auth79.StrictEndpoint<"/device/token", {
1369
+ deviceToken: better_auth0.StrictEndpoint<"/device/token", {
1370
1370
  method: "POST";
1371
- body: zod205.ZodObject<{
1372
- grant_type: zod205.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
1373
- device_code: zod205.ZodString;
1374
- client_id: zod205.ZodString;
1375
- }, better_auth79.$strip>;
1376
- error: zod205.ZodObject<{
1377
- error: zod205.ZodEnum<{
1371
+ body: zod0.ZodObject<{
1372
+ grant_type: zod0.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
1373
+ device_code: zod0.ZodString;
1374
+ client_id: zod0.ZodString;
1375
+ }, better_auth0.$strip>;
1376
+ error: zod0.ZodObject<{
1377
+ error: zod0.ZodEnum<{
1378
1378
  invalid_request: "invalid_request";
1379
1379
  authorization_pending: "authorization_pending";
1380
1380
  slow_down: "slow_down";
@@ -1382,8 +1382,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1382
1382
  access_denied: "access_denied";
1383
1383
  invalid_grant: "invalid_grant";
1384
1384
  }>;
1385
- error_description: zod205.ZodString;
1386
- }, better_auth79.$strip>;
1385
+ error_description: zod0.ZodString;
1386
+ }, better_auth0.$strip>;
1387
1387
  metadata: {
1388
1388
  openapi: {
1389
1389
  description: string;
@@ -1434,17 +1434,17 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1434
1434
  expires_in: number;
1435
1435
  scope: string;
1436
1436
  }>;
1437
- deviceVerify: better_auth79.StrictEndpoint<"/device", {
1437
+ deviceVerify: better_auth0.StrictEndpoint<"/device", {
1438
1438
  method: "GET";
1439
- query: zod205.ZodObject<{
1440
- user_code: zod205.ZodString;
1441
- }, better_auth79.$strip>;
1442
- error: zod205.ZodObject<{
1443
- error: zod205.ZodEnum<{
1439
+ query: zod0.ZodObject<{
1440
+ user_code: zod0.ZodString;
1441
+ }, better_auth0.$strip>;
1442
+ error: zod0.ZodObject<{
1443
+ error: zod0.ZodEnum<{
1444
1444
  invalid_request: "invalid_request";
1445
1445
  }>;
1446
- error_description: zod205.ZodString;
1447
- }, better_auth79.$strip>;
1446
+ error_description: zod0.ZodString;
1447
+ }, better_auth0.$strip>;
1448
1448
  metadata: {
1449
1449
  openapi: {
1450
1450
  description: string;
@@ -1477,19 +1477,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1477
1477
  user_code: string;
1478
1478
  status: string;
1479
1479
  }>;
1480
- deviceApprove: better_auth79.StrictEndpoint<"/device/approve", {
1480
+ deviceApprove: better_auth0.StrictEndpoint<"/device/approve", {
1481
1481
  method: "POST";
1482
- body: zod205.ZodObject<{
1483
- userCode: zod205.ZodString;
1484
- }, better_auth79.$strip>;
1485
- error: zod205.ZodObject<{
1486
- error: zod205.ZodEnum<{
1482
+ body: zod0.ZodObject<{
1483
+ userCode: zod0.ZodString;
1484
+ }, better_auth0.$strip>;
1485
+ error: zod0.ZodObject<{
1486
+ error: zod0.ZodEnum<{
1487
1487
  invalid_request: "invalid_request";
1488
1488
  expired_token: "expired_token";
1489
1489
  device_code_already_processed: "device_code_already_processed";
1490
1490
  }>;
1491
- error_description: zod205.ZodString;
1492
- }, better_auth79.$strip>;
1491
+ error_description: zod0.ZodString;
1492
+ }, better_auth0.$strip>;
1493
1493
  requireHeaders: true;
1494
1494
  metadata: {
1495
1495
  openapi: {
@@ -1516,18 +1516,18 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1516
1516
  }, {
1517
1517
  success: boolean;
1518
1518
  }>;
1519
- deviceDeny: better_auth79.StrictEndpoint<"/device/deny", {
1519
+ deviceDeny: better_auth0.StrictEndpoint<"/device/deny", {
1520
1520
  method: "POST";
1521
- body: zod205.ZodObject<{
1522
- userCode: zod205.ZodString;
1523
- }, better_auth79.$strip>;
1524
- error: zod205.ZodObject<{
1525
- error: zod205.ZodEnum<{
1521
+ body: zod0.ZodObject<{
1522
+ userCode: zod0.ZodString;
1523
+ }, better_auth0.$strip>;
1524
+ error: zod0.ZodObject<{
1525
+ error: zod0.ZodEnum<{
1526
1526
  invalid_request: "invalid_request";
1527
1527
  expired_token: "expired_token";
1528
1528
  }>;
1529
- error_description: zod205.ZodString;
1530
- }, better_auth79.$strip>;
1529
+ error_description: zod0.ZodString;
1530
+ }, better_auth0.$strip>;
1531
1531
  metadata: {
1532
1532
  openapi: {
1533
1533
  description: string;
@@ -1569,8 +1569,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1569
1569
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1570
1570
  };
1571
1571
  options: Partial<{
1572
- expiresIn: better_auth_plugins69.TimeString;
1573
- interval: better_auth_plugins69.TimeString;
1572
+ expiresIn: better_auth_plugins0.TimeString;
1573
+ interval: better_auth_plugins0.TimeString;
1574
1574
  deviceCodeLength: number;
1575
1575
  userCodeLength: number;
1576
1576
  schema: {
@@ -1602,6 +1602,6 @@ declare function createAgentsApp(config?: {
1602
1602
  credentialStores?: CredentialStore[];
1603
1603
  auth?: UserAuthConfig;
1604
1604
  sandboxConfig?: SandboxConfig;
1605
- }): hono4.Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
1605
+ }): hono0.Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
1606
1606
  //#endregion
1607
1607
  export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono, createAuth0Provider, createOIDCProvider };