@inkeep/agents-api 0.0.0-dev-20260205075607 → 0.0.0-dev-20260205141225

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 hono18 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_types12 from "hono/types";
10
- import * as better_auth78 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_auth78.Auth<{
15
+ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0.Auth<{
16
16
  baseURL: string;
17
17
  secret: string;
18
- database: (options: better_auth78.BetterAuthOptions) => better_auth78.DBAdapter<better_auth78.BetterAuthOptions>;
18
+ database: (options: better_auth0.BetterAuthOptions) => better_auth0.DBAdapter<better_auth0.BetterAuthOptions>;
19
19
  emailAndPassword: {
20
20
  enabled: true;
21
21
  minPasswordLength: number;
@@ -70,7 +70,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
70
70
  clientKey?: string | undefined;
71
71
  disableIdTokenSignIn?: boolean | undefined;
72
72
  verifyIdToken?: ((token: string, nonce?: string) => Promise<boolean>) | undefined;
73
- getUserInfo?: ((token: better_auth78.OAuth2Tokens) => Promise<{
73
+ getUserInfo?: ((token: better_auth0.OAuth2Tokens) => Promise<{
74
74
  user: {
75
75
  id: string;
76
76
  name?: string;
@@ -81,8 +81,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
81
81
  };
82
82
  data: any;
83
83
  } | null>) | undefined;
84
- refreshAccessToken?: ((refreshToken: string) => Promise<better_auth78.OAuth2Tokens>) | undefined;
85
- mapProfileToUser?: ((profile: better_auth78.GoogleProfile) => {
84
+ refreshAccessToken?: ((refreshToken: string) => Promise<better_auth0.OAuth2Tokens>) | undefined;
85
+ mapProfileToUser?: ((profile: better_auth0.GoogleProfile) => {
86
86
  id?: string;
87
87
  name?: string;
88
88
  email?: string | null;
@@ -129,15 +129,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
129
129
  cookies?: {
130
130
  [key: string]: {
131
131
  name?: string;
132
- attributes?: better_auth78.CookieOptions;
132
+ attributes?: better_auth0.CookieOptions;
133
133
  };
134
134
  } | undefined;
135
- defaultCookieAttributes: better_auth78.CookieOptions;
135
+ defaultCookieAttributes: better_auth0.CookieOptions;
136
136
  cookiePrefix?: string | undefined;
137
137
  database?: {
138
138
  defaultFindManyLimit?: number;
139
139
  useNumberId?: boolean;
140
- generateId?: better_auth78.GenerateIdFn | false | "serial" | "uuid";
140
+ generateId?: better_auth0.GenerateIdFn | false | "serial" | "uuid";
141
141
  } | undefined;
142
142
  trustedProxyHeaders?: boolean | undefined;
143
143
  backgroundTasks?: {
@@ -149,31 +149,31 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
149
149
  id: "bearer";
150
150
  hooks: {
151
151
  before: {
152
- matcher(context: better_auth78.HookEndpointContext): boolean;
153
- handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
152
+ matcher(context: better_auth0.HookEndpointContext): boolean;
153
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
154
154
  context: {
155
155
  headers: Headers;
156
156
  };
157
157
  } | undefined>;
158
158
  }[];
159
159
  after: {
160
- matcher(context: better_auth78.HookEndpointContext): true;
161
- handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
160
+ matcher(context: better_auth0.HookEndpointContext): true;
161
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
162
162
  }[];
163
163
  };
164
- options: better_auth_plugins69.BearerOptions | undefined;
164
+ options: better_auth_plugins0.BearerOptions | undefined;
165
165
  }, {
166
166
  id: "sso";
167
167
  endpoints: {
168
- spMetadata: ReturnType<() => better_auth78.StrictEndpoint<"/sso/saml2/sp/metadata", {
168
+ spMetadata: ReturnType<() => better_auth0.StrictEndpoint<"/sso/saml2/sp/metadata", {
169
169
  method: "GET";
170
- query: zod205.ZodObject<{
171
- providerId: zod205.ZodString;
172
- format: zod205.ZodDefault<zod205.ZodEnum<{
170
+ query: zod0.ZodObject<{
171
+ providerId: zod0.ZodString;
172
+ format: zod0.ZodDefault<zod0.ZodEnum<{
173
173
  xml: "xml";
174
174
  json: "json";
175
175
  }>>;
176
- }, better_auth78.$strip>;
176
+ }, better_auth0.$strip>;
177
177
  metadata: {
178
178
  openapi: {
179
179
  operationId: string;
@@ -187,86 +187,86 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
187
187
  };
188
188
  };
189
189
  }, Response>>;
190
- registerSSOProvider: better_auth78.StrictEndpoint<"/sso/register", {
190
+ registerSSOProvider: better_auth0.StrictEndpoint<"/sso/register", {
191
191
  method: "POST";
192
- body: zod205.ZodObject<{
193
- providerId: zod205.ZodString;
194
- issuer: zod205.ZodString;
195
- domain: zod205.ZodString;
196
- oidcConfig: zod205.ZodOptional<zod205.ZodObject<{
197
- clientId: zod205.ZodString;
198
- clientSecret: zod205.ZodString;
199
- authorizationEndpoint: zod205.ZodOptional<zod205.ZodString>;
200
- tokenEndpoint: zod205.ZodOptional<zod205.ZodString>;
201
- userInfoEndpoint: zod205.ZodOptional<zod205.ZodString>;
202
- tokenEndpointAuthentication: zod205.ZodOptional<zod205.ZodEnum<{
192
+ body: zod0.ZodObject<{
193
+ providerId: zod0.ZodString;
194
+ issuer: zod0.ZodString;
195
+ domain: zod0.ZodString;
196
+ oidcConfig: zod0.ZodOptional<zod0.ZodObject<{
197
+ clientId: zod0.ZodString;
198
+ clientSecret: zod0.ZodString;
199
+ authorizationEndpoint: zod0.ZodOptional<zod0.ZodString>;
200
+ tokenEndpoint: zod0.ZodOptional<zod0.ZodString>;
201
+ userInfoEndpoint: zod0.ZodOptional<zod0.ZodString>;
202
+ tokenEndpointAuthentication: zod0.ZodOptional<zod0.ZodEnum<{
203
203
  client_secret_post: "client_secret_post";
204
204
  client_secret_basic: "client_secret_basic";
205
205
  }>>;
206
- jwksEndpoint: zod205.ZodOptional<zod205.ZodString>;
207
- discoveryEndpoint: zod205.ZodOptional<zod205.ZodString>;
208
- skipDiscovery: zod205.ZodOptional<zod205.ZodBoolean>;
209
- scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
210
- pkce: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
211
- mapping: zod205.ZodOptional<zod205.ZodObject<{
212
- id: zod205.ZodString;
213
- email: zod205.ZodString;
214
- emailVerified: zod205.ZodOptional<zod205.ZodString>;
215
- name: zod205.ZodString;
216
- image: zod205.ZodOptional<zod205.ZodString>;
217
- extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
218
- }, better_auth78.$strip>>;
219
- }, better_auth78.$strip>>;
220
- samlConfig: zod205.ZodOptional<zod205.ZodObject<{
221
- entryPoint: zod205.ZodString;
222
- cert: zod205.ZodString;
223
- callbackUrl: zod205.ZodString;
224
- audience: zod205.ZodOptional<zod205.ZodString>;
225
- idpMetadata: zod205.ZodOptional<zod205.ZodObject<{
226
- metadata: zod205.ZodOptional<zod205.ZodString>;
227
- entityID: zod205.ZodOptional<zod205.ZodString>;
228
- cert: zod205.ZodOptional<zod205.ZodString>;
229
- privateKey: zod205.ZodOptional<zod205.ZodString>;
230
- privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
231
- isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
232
- encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
233
- encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
234
- singleSignOnService: zod205.ZodOptional<zod205.ZodArray<zod205.ZodObject<{
235
- Binding: zod205.ZodString;
236
- Location: zod205.ZodString;
237
- }, better_auth78.$strip>>>;
238
- }, better_auth78.$strip>>;
239
- spMetadata: zod205.ZodObject<{
240
- metadata: zod205.ZodOptional<zod205.ZodString>;
241
- entityID: zod205.ZodOptional<zod205.ZodString>;
242
- binding: zod205.ZodOptional<zod205.ZodString>;
243
- privateKey: zod205.ZodOptional<zod205.ZodString>;
244
- privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
245
- isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
246
- encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
247
- encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
248
- }, better_auth78.$strip>;
249
- wantAssertionsSigned: zod205.ZodOptional<zod205.ZodBoolean>;
250
- signatureAlgorithm: zod205.ZodOptional<zod205.ZodString>;
251
- digestAlgorithm: zod205.ZodOptional<zod205.ZodString>;
252
- identifierFormat: zod205.ZodOptional<zod205.ZodString>;
253
- privateKey: zod205.ZodOptional<zod205.ZodString>;
254
- decryptionPvk: zod205.ZodOptional<zod205.ZodString>;
255
- additionalParams: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
256
- mapping: zod205.ZodOptional<zod205.ZodObject<{
257
- id: zod205.ZodString;
258
- email: zod205.ZodString;
259
- emailVerified: zod205.ZodOptional<zod205.ZodString>;
260
- name: zod205.ZodString;
261
- firstName: zod205.ZodOptional<zod205.ZodString>;
262
- lastName: zod205.ZodOptional<zod205.ZodString>;
263
- extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
264
- }, better_auth78.$strip>>;
265
- }, better_auth78.$strip>>;
266
- organizationId: zod205.ZodOptional<zod205.ZodString>;
267
- overrideUserInfo: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
268
- }, better_auth78.$strip>;
269
- use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
206
+ jwksEndpoint: zod0.ZodOptional<zod0.ZodString>;
207
+ discoveryEndpoint: zod0.ZodOptional<zod0.ZodString>;
208
+ skipDiscovery: zod0.ZodOptional<zod0.ZodBoolean>;
209
+ scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
210
+ pkce: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
211
+ mapping: zod0.ZodOptional<zod0.ZodObject<{
212
+ id: zod0.ZodString;
213
+ email: zod0.ZodString;
214
+ emailVerified: zod0.ZodOptional<zod0.ZodString>;
215
+ name: zod0.ZodString;
216
+ image: zod0.ZodOptional<zod0.ZodString>;
217
+ extraFields: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
218
+ }, better_auth0.$strip>>;
219
+ }, better_auth0.$strip>>;
220
+ samlConfig: zod0.ZodOptional<zod0.ZodObject<{
221
+ entryPoint: zod0.ZodString;
222
+ cert: zod0.ZodString;
223
+ callbackUrl: zod0.ZodString;
224
+ audience: zod0.ZodOptional<zod0.ZodString>;
225
+ idpMetadata: zod0.ZodOptional<zod0.ZodObject<{
226
+ metadata: zod0.ZodOptional<zod0.ZodString>;
227
+ entityID: zod0.ZodOptional<zod0.ZodString>;
228
+ cert: zod0.ZodOptional<zod0.ZodString>;
229
+ privateKey: zod0.ZodOptional<zod0.ZodString>;
230
+ privateKeyPass: zod0.ZodOptional<zod0.ZodString>;
231
+ isAssertionEncrypted: zod0.ZodOptional<zod0.ZodBoolean>;
232
+ encPrivateKey: zod0.ZodOptional<zod0.ZodString>;
233
+ encPrivateKeyPass: zod0.ZodOptional<zod0.ZodString>;
234
+ singleSignOnService: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
235
+ Binding: zod0.ZodString;
236
+ Location: zod0.ZodString;
237
+ }, better_auth0.$strip>>>;
238
+ }, better_auth0.$strip>>;
239
+ spMetadata: zod0.ZodObject<{
240
+ metadata: zod0.ZodOptional<zod0.ZodString>;
241
+ entityID: zod0.ZodOptional<zod0.ZodString>;
242
+ binding: zod0.ZodOptional<zod0.ZodString>;
243
+ privateKey: zod0.ZodOptional<zod0.ZodString>;
244
+ privateKeyPass: zod0.ZodOptional<zod0.ZodString>;
245
+ isAssertionEncrypted: zod0.ZodOptional<zod0.ZodBoolean>;
246
+ encPrivateKey: zod0.ZodOptional<zod0.ZodString>;
247
+ encPrivateKeyPass: zod0.ZodOptional<zod0.ZodString>;
248
+ }, better_auth0.$strip>;
249
+ wantAssertionsSigned: zod0.ZodOptional<zod0.ZodBoolean>;
250
+ signatureAlgorithm: zod0.ZodOptional<zod0.ZodString>;
251
+ digestAlgorithm: zod0.ZodOptional<zod0.ZodString>;
252
+ identifierFormat: zod0.ZodOptional<zod0.ZodString>;
253
+ privateKey: zod0.ZodOptional<zod0.ZodString>;
254
+ decryptionPvk: zod0.ZodOptional<zod0.ZodString>;
255
+ additionalParams: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
256
+ mapping: zod0.ZodOptional<zod0.ZodObject<{
257
+ id: zod0.ZodString;
258
+ email: zod0.ZodString;
259
+ emailVerified: zod0.ZodOptional<zod0.ZodString>;
260
+ name: zod0.ZodString;
261
+ firstName: zod0.ZodOptional<zod0.ZodString>;
262
+ lastName: zod0.ZodOptional<zod0.ZodString>;
263
+ extraFields: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
264
+ }, better_auth0.$strip>>;
265
+ }, better_auth0.$strip>>;
266
+ organizationId: zod0.ZodOptional<zod0.ZodString>;
267
+ overrideUserInfo: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
268
+ }, better_auth0.$strip>;
269
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
270
270
  session: {
271
271
  session: Record<string, any> & {
272
272
  id: string;
@@ -452,35 +452,35 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
452
452
  };
453
453
  }, {
454
454
  redirectURI: string;
455
- oidcConfig: _better_auth_sso10.OIDCConfig | null;
456
- samlConfig: _better_auth_sso10.SAMLConfig | null;
455
+ oidcConfig: _better_auth_sso0.OIDCConfig | null;
456
+ samlConfig: _better_auth_sso0.SAMLConfig | null;
457
457
  } & Omit<{
458
458
  issuer: string;
459
- oidcConfig?: _better_auth_sso10.OIDCConfig | undefined;
460
- samlConfig?: _better_auth_sso10.SAMLConfig | undefined;
459
+ oidcConfig?: _better_auth_sso0.OIDCConfig | undefined;
460
+ samlConfig?: _better_auth_sso0.SAMLConfig | undefined;
461
461
  userId: string;
462
462
  providerId: string;
463
463
  organizationId?: string | undefined;
464
464
  domain: string;
465
465
  }, "oidcConfig" | "samlConfig">>;
466
- signInSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sign-in/sso", {
466
+ signInSSO: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sign-in/sso", {
467
467
  method: "POST";
468
- body: zod205.ZodObject<{
469
- email: zod205.ZodOptional<zod205.ZodString>;
470
- organizationSlug: zod205.ZodOptional<zod205.ZodString>;
471
- providerId: zod205.ZodOptional<zod205.ZodString>;
472
- domain: zod205.ZodOptional<zod205.ZodString>;
473
- callbackURL: zod205.ZodString;
474
- errorCallbackURL: zod205.ZodOptional<zod205.ZodString>;
475
- newUserCallbackURL: zod205.ZodOptional<zod205.ZodString>;
476
- scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
477
- loginHint: zod205.ZodOptional<zod205.ZodString>;
478
- requestSignUp: zod205.ZodOptional<zod205.ZodBoolean>;
479
- providerType: zod205.ZodOptional<zod205.ZodEnum<{
468
+ body: zod0.ZodObject<{
469
+ email: zod0.ZodOptional<zod0.ZodString>;
470
+ organizationSlug: zod0.ZodOptional<zod0.ZodString>;
471
+ providerId: zod0.ZodOptional<zod0.ZodString>;
472
+ domain: zod0.ZodOptional<zod0.ZodString>;
473
+ callbackURL: zod0.ZodString;
474
+ errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
475
+ newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
476
+ scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
477
+ loginHint: zod0.ZodOptional<zod0.ZodString>;
478
+ requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
479
+ providerType: zod0.ZodOptional<zod0.ZodEnum<{
480
480
  saml: "saml";
481
481
  oidc: "oidc";
482
482
  }>>;
483
- }, better_auth78.$strip>;
483
+ }, better_auth0.$strip>;
484
484
  metadata: {
485
485
  openapi: {
486
486
  operationId: string;
@@ -557,14 +557,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
557
557
  url: string;
558
558
  redirect: boolean;
559
559
  }>>;
560
- callbackSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/callback/:providerId", {
560
+ callbackSSO: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/callback/:providerId", {
561
561
  method: "GET";
562
- query: zod205.ZodObject<{
563
- code: zod205.ZodOptional<zod205.ZodString>;
564
- state: zod205.ZodString;
565
- error: zod205.ZodOptional<zod205.ZodString>;
566
- error_description: zod205.ZodOptional<zod205.ZodString>;
567
- }, better_auth78.$strip>;
562
+ query: zod0.ZodObject<{
563
+ code: zod0.ZodOptional<zod0.ZodString>;
564
+ state: zod0.ZodString;
565
+ error: zod0.ZodOptional<zod0.ZodString>;
566
+ error_description: zod0.ZodOptional<zod0.ZodString>;
567
+ }, better_auth0.$strip>;
568
568
  allowedMediaTypes: string[];
569
569
  metadata: {
570
570
  openapi: {
@@ -580,12 +580,12 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
580
580
  scope: "server";
581
581
  };
582
582
  }, never>>;
583
- callbackSSOSAML: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/saml2/callback/:providerId", {
583
+ callbackSSOSAML: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/saml2/callback/:providerId", {
584
584
  method: "POST";
585
- body: zod205.ZodObject<{
586
- SAMLResponse: zod205.ZodString;
587
- RelayState: zod205.ZodOptional<zod205.ZodString>;
588
- }, better_auth78.$strip>;
585
+ body: zod0.ZodObject<{
586
+ SAMLResponse: zod0.ZodString;
587
+ RelayState: zod0.ZodOptional<zod0.ZodString>;
588
+ }, better_auth0.$strip>;
589
589
  metadata: {
590
590
  allowedMediaTypes: string[];
591
591
  openapi: {
@@ -607,15 +607,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
607
607
  scope: "server";
608
608
  };
609
609
  }, never>>;
610
- acsEndpoint: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
610
+ acsEndpoint: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
611
611
  method: "POST";
612
- params: zod205.ZodObject<{
613
- providerId: zod205.ZodOptional<zod205.ZodString>;
614
- }, better_auth78.$strip>;
615
- body: zod205.ZodObject<{
616
- SAMLResponse: zod205.ZodString;
617
- RelayState: zod205.ZodOptional<zod205.ZodString>;
618
- }, better_auth78.$strip>;
612
+ params: zod0.ZodObject<{
613
+ providerId: zod0.ZodOptional<zod0.ZodString>;
614
+ }, better_auth0.$strip>;
615
+ body: zod0.ZodObject<{
616
+ SAMLResponse: zod0.ZodString;
617
+ RelayState: zod0.ZodOptional<zod0.ZodString>;
618
+ }, better_auth0.$strip>;
619
619
  metadata: {
620
620
  allowedMediaTypes: string[];
621
621
  openapi: {
@@ -632,11 +632,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
632
632
  };
633
633
  }, never>>;
634
634
  } & {
635
- requestDomainVerification: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/request-domain-verification", {
635
+ requestDomainVerification: ReturnType<(options: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/request-domain-verification", {
636
636
  method: "POST";
637
- body: zod205.ZodObject<{
638
- providerId: zod205.ZodString;
639
- }, better_auth78.$strip>;
637
+ body: zod0.ZodObject<{
638
+ providerId: zod0.ZodString;
639
+ }, better_auth0.$strip>;
640
640
  metadata: {
641
641
  openapi: {
642
642
  summary: string;
@@ -654,7 +654,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
654
654
  };
655
655
  };
656
656
  };
657
- use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
657
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
658
658
  session: {
659
659
  session: Record<string, any> & {
660
660
  id: string;
@@ -680,11 +680,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
680
680
  }, {
681
681
  domainVerificationToken: string;
682
682
  }>>;
683
- verifyDomain: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/verify-domain", {
683
+ verifyDomain: ReturnType<(options: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/verify-domain", {
684
684
  method: "POST";
685
- body: zod205.ZodObject<{
686
- providerId: zod205.ZodString;
687
- }, better_auth78.$strip>;
685
+ body: zod0.ZodObject<{
686
+ providerId: zod0.ZodString;
687
+ }, better_auth0.$strip>;
688
688
  metadata: {
689
689
  openapi: {
690
690
  summary: string;
@@ -705,7 +705,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
705
705
  };
706
706
  };
707
707
  };
708
- use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
708
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
709
709
  session: {
710
710
  session: Record<string, any> & {
711
711
  id: string;
@@ -731,7 +731,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
731
731
  }, void>>;
732
732
  };
733
733
  schema: any;
734
- options: _better_auth_sso10.SSOOptions & {
734
+ options: _better_auth_sso0.SSOOptions & {
735
735
  domainVerification?: {
736
736
  enabled: true;
737
737
  };
@@ -742,14 +742,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
742
742
  productionURL: string;
743
743
  }>;
744
744
  endpoints: {
745
- oAuthProxy: better_auth78.StrictEndpoint<"/oauth-proxy-callback", {
745
+ oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
746
746
  method: "GET";
747
747
  operationId: string;
748
- query: zod205.ZodObject<{
749
- callbackURL: zod205.ZodString;
750
- cookies: zod205.ZodString;
751
- }, better_auth78.$strip>;
752
- use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>)[];
748
+ query: zod0.ZodObject<{
749
+ callbackURL: zod0.ZodString;
750
+ cookies: zod0.ZodString;
751
+ }, better_auth0.$strip>;
752
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>)[];
753
753
  metadata: {
754
754
  openapi: {
755
755
  operationId: string;
@@ -779,40 +779,40 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
779
779
  };
780
780
  hooks: {
781
781
  before: {
782
- matcher(context: better_auth78.HookEndpointContext): boolean;
783
- handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
782
+ matcher(context: better_auth0.HookEndpointContext): boolean;
783
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
784
784
  }[];
785
785
  after: {
786
- matcher(context: better_auth78.HookEndpointContext): boolean;
787
- handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
786
+ matcher(context: better_auth0.HookEndpointContext): boolean;
787
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
788
788
  }[];
789
789
  };
790
790
  }, {
791
791
  id: "organization";
792
- endpoints: better_auth_plugins69.OrganizationEndpoints<{
792
+ endpoints: better_auth_plugins0.OrganizationEndpoints<{
793
793
  allowUserToCreateOrganization: true;
794
- ac: better_auth_plugins69.AccessControl;
794
+ ac: better_auth_plugins0.AccessControl;
795
795
  roles: {
796
796
  member: {
797
- 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] | {
798
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
797
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
798
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
799
799
  connector: "OR" | "AND";
800
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
801
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
800
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
801
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
802
802
  };
803
803
  admin: {
804
- 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] | {
805
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
804
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
805
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
806
806
  connector: "OR" | "AND";
807
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
808
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
807
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
808
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
809
809
  };
810
810
  owner: {
811
- 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] | {
812
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
811
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
812
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
813
813
  connector: "OR" | "AND";
814
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
815
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
814
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
815
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
816
816
  };
817
817
  };
818
818
  creatorRole: "admin";
@@ -823,10 +823,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
823
823
  id: string;
824
824
  role: string;
825
825
  email: string;
826
- organization: better_auth_plugins69.Organization;
827
- invitation: better_auth_plugins69.Invitation;
828
- inviter: better_auth_plugins69.Member & {
829
- user: better_auth78.User;
826
+ organization: better_auth_plugins0.Organization;
827
+ invitation: better_auth_plugins0.Invitation;
828
+ inviter: better_auth_plugins0.Member & {
829
+ user: better_auth0.User;
830
830
  };
831
831
  }): Promise<void>;
832
832
  organizationHooks: {
@@ -835,28 +835,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
835
835
  user,
836
836
  organization: org
837
837
  }: {
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>;
838
+ invitation: better_auth_plugins0.Invitation & Record<string, any>;
839
+ member: better_auth_plugins0.Member & Record<string, any>;
840
+ user: better_auth0.User & Record<string, any>;
841
+ organization: better_auth_plugins0.Organization & Record<string, any>;
842
842
  }) => Promise<void>;
843
843
  beforeUpdateMemberRole: ({
844
844
  member,
845
845
  organization: org,
846
846
  newRole
847
847
  }: {
848
- member: better_auth_plugins69.Member & Record<string, any>;
848
+ member: better_auth_plugins0.Member & Record<string, any>;
849
849
  newRole: string;
850
- user: better_auth78.User & Record<string, any>;
851
- organization: better_auth_plugins69.Organization & Record<string, any>;
850
+ user: better_auth0.User & Record<string, any>;
851
+ organization: better_auth_plugins0.Organization & Record<string, any>;
852
852
  }) => Promise<void>;
853
853
  afterRemoveMember: ({
854
854
  member,
855
855
  organization: org
856
856
  }: {
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>;
857
+ member: better_auth_plugins0.Member & Record<string, any>;
858
+ user: better_auth0.User & Record<string, any>;
859
+ organization: better_auth_plugins0.Organization & Record<string, any>;
860
860
  }) => Promise<void>;
861
861
  };
862
862
  }>;
@@ -988,7 +988,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
988
988
  organizationId: string;
989
989
  email: string;
990
990
  role: "member" | "admin" | "owner";
991
- status: better_auth_plugins69.InvitationStatus;
991
+ status: better_auth_plugins0.InvitationStatus;
992
992
  inviterId: string;
993
993
  expiresAt: Date;
994
994
  createdAt: Date;
@@ -1027,7 +1027,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1027
1027
  organizationId: string;
1028
1028
  email: string;
1029
1029
  role: "member" | "admin" | "owner";
1030
- status: better_auth_plugins69.InvitationStatus;
1030
+ status: better_auth_plugins0.InvitationStatus;
1031
1031
  inviterId: string;
1032
1032
  expiresAt: Date;
1033
1033
  createdAt: Date;
@@ -1101,28 +1101,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1101
1101
  };
1102
1102
  options: NoInfer<{
1103
1103
  allowUserToCreateOrganization: true;
1104
- ac: better_auth_plugins69.AccessControl;
1104
+ ac: better_auth_plugins0.AccessControl;
1105
1105
  roles: {
1106
1106
  member: {
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];
1107
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
1108
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
1109
1109
  connector: "OR" | "AND";
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>;
1110
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1111
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
1112
1112
  };
1113
1113
  admin: {
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];
1114
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
1115
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
1116
1116
  connector: "OR" | "AND";
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>;
1117
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1118
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
1119
1119
  };
1120
1120
  owner: {
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];
1121
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
1122
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
1123
1123
  connector: "OR" | "AND";
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>;
1124
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1125
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
1126
1126
  };
1127
1127
  };
1128
1128
  creatorRole: "admin";
@@ -1133,10 +1133,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1133
1133
  id: string;
1134
1134
  role: string;
1135
1135
  email: string;
1136
- organization: better_auth_plugins69.Organization;
1137
- invitation: better_auth_plugins69.Invitation;
1138
- inviter: better_auth_plugins69.Member & {
1139
- user: better_auth78.User;
1136
+ organization: better_auth_plugins0.Organization;
1137
+ invitation: better_auth_plugins0.Invitation;
1138
+ inviter: better_auth_plugins0.Member & {
1139
+ user: better_auth0.User;
1140
1140
  };
1141
1141
  }): Promise<void>;
1142
1142
  organizationHooks: {
@@ -1145,28 +1145,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1145
1145
  user,
1146
1146
  organization: org
1147
1147
  }: {
1148
- invitation: better_auth_plugins69.Invitation & Record<string, any>;
1149
- member: better_auth_plugins69.Member & Record<string, any>;
1150
- user: better_auth78.User & Record<string, any>;
1151
- organization: better_auth_plugins69.Organization & Record<string, any>;
1148
+ invitation: better_auth_plugins0.Invitation & Record<string, any>;
1149
+ member: better_auth_plugins0.Member & Record<string, any>;
1150
+ user: better_auth0.User & Record<string, any>;
1151
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1152
1152
  }) => Promise<void>;
1153
1153
  beforeUpdateMemberRole: ({
1154
1154
  member,
1155
1155
  organization: org,
1156
1156
  newRole
1157
1157
  }: {
1158
- member: better_auth_plugins69.Member & Record<string, any>;
1158
+ member: better_auth_plugins0.Member & Record<string, any>;
1159
1159
  newRole: string;
1160
- user: better_auth78.User & Record<string, any>;
1161
- organization: better_auth_plugins69.Organization & Record<string, any>;
1160
+ user: better_auth0.User & Record<string, any>;
1161
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1162
1162
  }) => Promise<void>;
1163
1163
  afterRemoveMember: ({
1164
1164
  member,
1165
1165
  organization: org
1166
1166
  }: {
1167
- member: better_auth_plugins69.Member & Record<string, any>;
1168
- user: better_auth78.User & Record<string, any>;
1169
- organization: better_auth_plugins69.Organization & Record<string, any>;
1167
+ member: better_auth_plugins0.Member & Record<string, any>;
1168
+ user: better_auth0.User & Record<string, any>;
1169
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1170
1170
  }) => Promise<void>;
1171
1171
  };
1172
1172
  }>;
@@ -1215,19 +1215,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1215
1215
  };
1216
1216
  };
1217
1217
  endpoints: {
1218
- deviceCode: better_auth78.StrictEndpoint<"/device/code", {
1218
+ deviceCode: better_auth0.StrictEndpoint<"/device/code", {
1219
1219
  method: "POST";
1220
- body: zod205.ZodObject<{
1221
- client_id: zod205.ZodString;
1222
- scope: zod205.ZodOptional<zod205.ZodString>;
1223
- }, better_auth78.$strip>;
1224
- error: zod205.ZodObject<{
1225
- error: zod205.ZodEnum<{
1220
+ body: zod0.ZodObject<{
1221
+ client_id: zod0.ZodString;
1222
+ scope: zod0.ZodOptional<zod0.ZodString>;
1223
+ }, better_auth0.$strip>;
1224
+ error: zod0.ZodObject<{
1225
+ error: zod0.ZodEnum<{
1226
1226
  invalid_request: "invalid_request";
1227
1227
  invalid_client: "invalid_client";
1228
1228
  }>;
1229
- error_description: zod205.ZodString;
1230
- }, better_auth78.$strip>;
1229
+ error_description: zod0.ZodString;
1230
+ }, better_auth0.$strip>;
1231
1231
  metadata: {
1232
1232
  openapi: {
1233
1233
  description: string;
@@ -1300,15 +1300,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1300
1300
  expires_in: number;
1301
1301
  interval: number;
1302
1302
  }>;
1303
- deviceToken: better_auth78.StrictEndpoint<"/device/token", {
1303
+ deviceToken: better_auth0.StrictEndpoint<"/device/token", {
1304
1304
  method: "POST";
1305
- body: zod205.ZodObject<{
1306
- grant_type: zod205.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
1307
- device_code: zod205.ZodString;
1308
- client_id: zod205.ZodString;
1309
- }, better_auth78.$strip>;
1310
- error: zod205.ZodObject<{
1311
- error: zod205.ZodEnum<{
1305
+ body: zod0.ZodObject<{
1306
+ grant_type: zod0.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
1307
+ device_code: zod0.ZodString;
1308
+ client_id: zod0.ZodString;
1309
+ }, better_auth0.$strip>;
1310
+ error: zod0.ZodObject<{
1311
+ error: zod0.ZodEnum<{
1312
1312
  invalid_request: "invalid_request";
1313
1313
  authorization_pending: "authorization_pending";
1314
1314
  slow_down: "slow_down";
@@ -1316,8 +1316,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1316
1316
  access_denied: "access_denied";
1317
1317
  invalid_grant: "invalid_grant";
1318
1318
  }>;
1319
- error_description: zod205.ZodString;
1320
- }, better_auth78.$strip>;
1319
+ error_description: zod0.ZodString;
1320
+ }, better_auth0.$strip>;
1321
1321
  metadata: {
1322
1322
  openapi: {
1323
1323
  description: string;
@@ -1368,17 +1368,17 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1368
1368
  expires_in: number;
1369
1369
  scope: string;
1370
1370
  }>;
1371
- deviceVerify: better_auth78.StrictEndpoint<"/device", {
1371
+ deviceVerify: better_auth0.StrictEndpoint<"/device", {
1372
1372
  method: "GET";
1373
- query: zod205.ZodObject<{
1374
- user_code: zod205.ZodString;
1375
- }, better_auth78.$strip>;
1376
- error: zod205.ZodObject<{
1377
- error: zod205.ZodEnum<{
1373
+ query: zod0.ZodObject<{
1374
+ user_code: zod0.ZodString;
1375
+ }, better_auth0.$strip>;
1376
+ error: zod0.ZodObject<{
1377
+ error: zod0.ZodEnum<{
1378
1378
  invalid_request: "invalid_request";
1379
1379
  }>;
1380
- error_description: zod205.ZodString;
1381
- }, better_auth78.$strip>;
1380
+ error_description: zod0.ZodString;
1381
+ }, better_auth0.$strip>;
1382
1382
  metadata: {
1383
1383
  openapi: {
1384
1384
  description: string;
@@ -1411,19 +1411,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1411
1411
  user_code: string;
1412
1412
  status: string;
1413
1413
  }>;
1414
- deviceApprove: better_auth78.StrictEndpoint<"/device/approve", {
1414
+ deviceApprove: better_auth0.StrictEndpoint<"/device/approve", {
1415
1415
  method: "POST";
1416
- body: zod205.ZodObject<{
1417
- userCode: zod205.ZodString;
1418
- }, better_auth78.$strip>;
1419
- error: zod205.ZodObject<{
1420
- error: zod205.ZodEnum<{
1416
+ body: zod0.ZodObject<{
1417
+ userCode: zod0.ZodString;
1418
+ }, better_auth0.$strip>;
1419
+ error: zod0.ZodObject<{
1420
+ error: zod0.ZodEnum<{
1421
1421
  invalid_request: "invalid_request";
1422
1422
  expired_token: "expired_token";
1423
1423
  device_code_already_processed: "device_code_already_processed";
1424
1424
  }>;
1425
- error_description: zod205.ZodString;
1426
- }, better_auth78.$strip>;
1425
+ error_description: zod0.ZodString;
1426
+ }, better_auth0.$strip>;
1427
1427
  requireHeaders: true;
1428
1428
  metadata: {
1429
1429
  openapi: {
@@ -1450,18 +1450,18 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1450
1450
  }, {
1451
1451
  success: boolean;
1452
1452
  }>;
1453
- deviceDeny: better_auth78.StrictEndpoint<"/device/deny", {
1453
+ deviceDeny: better_auth0.StrictEndpoint<"/device/deny", {
1454
1454
  method: "POST";
1455
- body: zod205.ZodObject<{
1456
- userCode: zod205.ZodString;
1457
- }, better_auth78.$strip>;
1458
- error: zod205.ZodObject<{
1459
- error: zod205.ZodEnum<{
1455
+ body: zod0.ZodObject<{
1456
+ userCode: zod0.ZodString;
1457
+ }, better_auth0.$strip>;
1458
+ error: zod0.ZodObject<{
1459
+ error: zod0.ZodEnum<{
1460
1460
  invalid_request: "invalid_request";
1461
1461
  expired_token: "expired_token";
1462
1462
  }>;
1463
- error_description: zod205.ZodString;
1464
- }, better_auth78.$strip>;
1463
+ error_description: zod0.ZodString;
1464
+ }, better_auth0.$strip>;
1465
1465
  metadata: {
1466
1466
  openapi: {
1467
1467
  description: string;
@@ -1503,8 +1503,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1503
1503
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1504
1504
  };
1505
1505
  options: Partial<{
1506
- expiresIn: better_auth_plugins69.TimeString;
1507
- interval: better_auth_plugins69.TimeString;
1506
+ expiresIn: better_auth_plugins0.TimeString;
1507
+ interval: better_auth_plugins0.TimeString;
1508
1508
  deviceCodeLength: number;
1509
1509
  userCodeLength: number;
1510
1510
  schema: {
@@ -1536,6 +1536,6 @@ declare function createAgentsApp(config?: {
1536
1536
  credentialStores?: CredentialStore[];
1537
1537
  auth?: UserAuthConfig;
1538
1538
  sandboxConfig?: SandboxConfig;
1539
- }): hono18.Hono<hono_types12.BlankEnv, hono_types12.BlankSchema, "/">;
1539
+ }): hono0.Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
1540
1540
  //#endregion
1541
1541
  export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono, createAuth0Provider, createOIDCProvider };