@inkeep/agents-api 0.47.2 → 0.47.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/.well-known/workflow/v1/flow.cjs +44 -44
  2. package/dist/.well-known/workflow/v1/flow.cjs.debug.json +2 -2
  3. package/dist/.well-known/workflow/v1/step.cjs +180 -134
  4. package/dist/.well-known/workflow/v1/step.cjs.debug.json +2 -2
  5. package/dist/createApp.d.ts +2 -2
  6. package/dist/createApp.js +1 -1
  7. package/dist/domains/evals/routes/evaluationTriggers.js +1 -1
  8. package/dist/domains/evals/services/conversationEvaluation.js +21 -10
  9. package/dist/domains/evals/workflow/routes.d.ts +2 -2
  10. package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
  11. package/dist/domains/manage/routes/conversations.d.ts +2 -2
  12. package/dist/domains/manage/routes/index.d.ts +2 -2
  13. package/dist/domains/manage/routes/invitations.d.ts +2 -2
  14. package/dist/domains/manage/routes/mcp.d.ts +2 -2
  15. package/dist/domains/manage/routes/passwordResetLinks.d.ts +2 -2
  16. package/dist/domains/manage/routes/signoz.d.ts +2 -2
  17. package/dist/domains/manage/routes/triggers.js +110 -1
  18. package/dist/domains/manage/routes/users.d.ts +2 -2
  19. package/dist/domains/mcp/routes/mcp.d.ts +2 -2
  20. package/dist/domains/run/agents/Agent.js +19 -15
  21. package/dist/domains/run/agents/generateTaskHandler.js +1 -1
  22. package/dist/domains/run/agents/relationTools.d.ts +2 -2
  23. package/dist/domains/run/agents/relationTools.js +1 -1
  24. package/dist/domains/run/constants/execution-limits/index.js +5 -1
  25. package/dist/domains/run/handlers/executionHandler.js +6 -6
  26. package/dist/domains/run/routes/chat.js +4 -4
  27. package/dist/domains/run/routes/chatDataStream.js +4 -4
  28. package/dist/domains/run/routes/mcp.js +2 -2
  29. package/dist/domains/run/services/PendingToolApprovalManager.js +1 -1
  30. package/dist/domains/run/services/ToolApprovalUiBus.d.ts +1 -0
  31. package/dist/domains/run/services/ToolApprovalUiBus.js +2 -1
  32. package/dist/domains/run/services/TriggerService.d.ts +16 -2
  33. package/dist/domains/run/services/TriggerService.js +2 -2
  34. package/dist/domains/run/utils/model-context-utils.js +4 -2
  35. package/dist/domains/run/utils/token-estimator.d.ts +2 -2
  36. package/dist/domains/run/utils/tool-result.d.ts +11 -0
  37. package/dist/domains/run/utils/tool-result.js +15 -0
  38. package/dist/factory.d.ts +263 -263
  39. package/dist/index.d.ts +260 -260
  40. package/dist/middleware/evalsAuth.d.ts +2 -2
  41. package/dist/middleware/projectAccess.d.ts +2 -2
  42. package/dist/middleware/projectConfig.d.ts +3 -3
  43. package/dist/middleware/requirePermission.d.ts +2 -2
  44. package/dist/middleware/runAuth.d.ts +4 -4
  45. package/dist/middleware/sessionAuth.d.ts +3 -3
  46. package/dist/middleware/tenantAccess.d.ts +2 -2
  47. package/dist/middleware/tracing.d.ts +3 -3
  48. package/package.json +5 -5
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 hono13 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 "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] | {
808
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
807
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
808
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "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<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
810
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
811
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
812
812
  };
813
813
  admin: {
814
- 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] | {
815
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
814
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
815
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "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<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
817
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
818
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
819
819
  };
820
820
  owner: {
821
- 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] | {
822
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
821
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
822
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "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<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
824
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
825
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "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: {
@@ -856,28 +856,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
856
856
  user,
857
857
  organization: org
858
858
  }: {
859
- invitation: better_auth_plugins69.Invitation & Record<string, any>;
860
- member: better_auth_plugins69.Member & Record<string, any>;
861
- user: better_auth79.User & Record<string, any>;
862
- organization: better_auth_plugins69.Organization & Record<string, any>;
859
+ invitation: better_auth_plugins0.Invitation & Record<string, any>;
860
+ member: better_auth_plugins0.Member & Record<string, any>;
861
+ user: better_auth0.User & Record<string, any>;
862
+ organization: better_auth_plugins0.Organization & Record<string, any>;
863
863
  }) => Promise<void>;
864
864
  beforeUpdateMemberRole: ({
865
865
  member,
866
866
  organization: org,
867
867
  newRole
868
868
  }: {
869
- member: better_auth_plugins69.Member & Record<string, any>;
869
+ member: better_auth_plugins0.Member & Record<string, any>;
870
870
  newRole: string;
871
- user: better_auth79.User & Record<string, any>;
872
- organization: better_auth_plugins69.Organization & Record<string, any>;
871
+ user: better_auth0.User & Record<string, any>;
872
+ organization: better_auth_plugins0.Organization & Record<string, any>;
873
873
  }) => Promise<void>;
874
874
  afterRemoveMember: ({
875
875
  member,
876
876
  organization: org
877
877
  }: {
878
- member: better_auth_plugins69.Member & Record<string, any>;
879
- user: better_auth79.User & Record<string, any>;
880
- organization: better_auth_plugins69.Organization & Record<string, any>;
878
+ member: better_auth_plugins0.Member & Record<string, any>;
879
+ user: better_auth0.User & Record<string, any>;
880
+ organization: better_auth_plugins0.Organization & Record<string, any>;
881
881
  }) => Promise<void>;
882
882
  };
883
883
  }>;
@@ -1009,7 +1009,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1009
1009
  organizationId: string;
1010
1010
  email: string;
1011
1011
  role: "member" | "admin" | "owner";
1012
- status: better_auth_plugins69.InvitationStatus;
1012
+ status: better_auth_plugins0.InvitationStatus;
1013
1013
  inviterId: string;
1014
1014
  expiresAt: Date;
1015
1015
  createdAt: Date;
@@ -1049,7 +1049,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1049
1049
  organizationId: string;
1050
1050
  email: string;
1051
1051
  role: "member" | "admin" | "owner";
1052
- status: better_auth_plugins69.InvitationStatus;
1052
+ status: better_auth_plugins0.InvitationStatus;
1053
1053
  inviterId: string;
1054
1054
  expiresAt: Date;
1055
1055
  createdAt: Date;
@@ -1124,28 +1124,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1124
1124
  };
1125
1125
  options: NoInfer<{
1126
1126
  allowUserToCreateOrganization: true;
1127
- ac: better_auth_plugins69.AccessControl;
1127
+ ac: better_auth_plugins0.AccessControl;
1128
1128
  roles: {
1129
1129
  member: {
1130
- 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] | {
1131
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
1130
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1131
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1132
1132
  connector: "OR" | "AND";
1133
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1134
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
1133
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1134
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1135
1135
  };
1136
1136
  admin: {
1137
- 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] | {
1138
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
1137
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1138
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1139
1139
  connector: "OR" | "AND";
1140
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1141
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
1140
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1141
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1142
1142
  };
1143
1143
  owner: {
1144
- 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] | {
1145
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
1144
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1145
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1146
1146
  connector: "OR" | "AND";
1147
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
1148
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
1147
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1148
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1149
1149
  };
1150
1150
  };
1151
1151
  creatorRole: "admin";
@@ -1156,10 +1156,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1156
1156
  id: string;
1157
1157
  role: string;
1158
1158
  email: string;
1159
- organization: better_auth_plugins69.Organization;
1160
- invitation: better_auth_plugins69.Invitation;
1161
- inviter: better_auth_plugins69.Member & {
1162
- user: better_auth79.User;
1159
+ organization: better_auth_plugins0.Organization;
1160
+ invitation: better_auth_plugins0.Invitation;
1161
+ inviter: better_auth_plugins0.Member & {
1162
+ user: better_auth0.User;
1163
1163
  };
1164
1164
  }): Promise<void>;
1165
1165
  schema: {
@@ -1179,28 +1179,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1179
1179
  user,
1180
1180
  organization: org
1181
1181
  }: {
1182
- invitation: better_auth_plugins69.Invitation & Record<string, any>;
1183
- member: better_auth_plugins69.Member & Record<string, any>;
1184
- user: better_auth79.User & Record<string, any>;
1185
- organization: better_auth_plugins69.Organization & Record<string, any>;
1182
+ invitation: better_auth_plugins0.Invitation & Record<string, any>;
1183
+ member: better_auth_plugins0.Member & Record<string, any>;
1184
+ user: better_auth0.User & Record<string, any>;
1185
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1186
1186
  }) => Promise<void>;
1187
1187
  beforeUpdateMemberRole: ({
1188
1188
  member,
1189
1189
  organization: org,
1190
1190
  newRole
1191
1191
  }: {
1192
- member: better_auth_plugins69.Member & Record<string, any>;
1192
+ member: better_auth_plugins0.Member & Record<string, any>;
1193
1193
  newRole: string;
1194
- user: better_auth79.User & Record<string, any>;
1195
- organization: better_auth_plugins69.Organization & Record<string, any>;
1194
+ user: better_auth0.User & Record<string, any>;
1195
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1196
1196
  }) => Promise<void>;
1197
1197
  afterRemoveMember: ({
1198
1198
  member,
1199
1199
  organization: org
1200
1200
  }: {
1201
- member: better_auth_plugins69.Member & Record<string, any>;
1202
- user: better_auth79.User & Record<string, any>;
1203
- organization: better_auth_plugins69.Organization & Record<string, any>;
1201
+ member: better_auth_plugins0.Member & Record<string, any>;
1202
+ user: better_auth0.User & Record<string, any>;
1203
+ organization: better_auth_plugins0.Organization & Record<string, any>;
1204
1204
  }) => Promise<void>;
1205
1205
  };
1206
1206
  }>;
@@ -1249,19 +1249,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1249
1249
  };
1250
1250
  };
1251
1251
  endpoints: {
1252
- deviceCode: better_auth79.StrictEndpoint<"/device/code", {
1252
+ deviceCode: better_auth0.StrictEndpoint<"/device/code", {
1253
1253
  method: "POST";
1254
- body: zod205.ZodObject<{
1255
- client_id: zod205.ZodString;
1256
- scope: zod205.ZodOptional<zod205.ZodString>;
1257
- }, better_auth79.$strip>;
1258
- error: zod205.ZodObject<{
1259
- error: zod205.ZodEnum<{
1254
+ body: zod0.ZodObject<{
1255
+ client_id: zod0.ZodString;
1256
+ scope: zod0.ZodOptional<zod0.ZodString>;
1257
+ }, better_auth0.$strip>;
1258
+ error: zod0.ZodObject<{
1259
+ error: zod0.ZodEnum<{
1260
1260
  invalid_request: "invalid_request";
1261
1261
  invalid_client: "invalid_client";
1262
1262
  }>;
1263
- error_description: zod205.ZodString;
1264
- }, better_auth79.$strip>;
1263
+ error_description: zod0.ZodString;
1264
+ }, better_auth0.$strip>;
1265
1265
  metadata: {
1266
1266
  openapi: {
1267
1267
  description: string;
@@ -1334,15 +1334,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1334
1334
  expires_in: number;
1335
1335
  interval: number;
1336
1336
  }>;
1337
- deviceToken: better_auth79.StrictEndpoint<"/device/token", {
1337
+ deviceToken: better_auth0.StrictEndpoint<"/device/token", {
1338
1338
  method: "POST";
1339
- body: zod205.ZodObject<{
1340
- grant_type: zod205.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
1341
- device_code: zod205.ZodString;
1342
- client_id: zod205.ZodString;
1343
- }, better_auth79.$strip>;
1344
- error: zod205.ZodObject<{
1345
- error: zod205.ZodEnum<{
1339
+ body: zod0.ZodObject<{
1340
+ grant_type: zod0.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
1341
+ device_code: zod0.ZodString;
1342
+ client_id: zod0.ZodString;
1343
+ }, better_auth0.$strip>;
1344
+ error: zod0.ZodObject<{
1345
+ error: zod0.ZodEnum<{
1346
1346
  invalid_request: "invalid_request";
1347
1347
  authorization_pending: "authorization_pending";
1348
1348
  slow_down: "slow_down";
@@ -1350,8 +1350,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1350
1350
  access_denied: "access_denied";
1351
1351
  invalid_grant: "invalid_grant";
1352
1352
  }>;
1353
- error_description: zod205.ZodString;
1354
- }, better_auth79.$strip>;
1353
+ error_description: zod0.ZodString;
1354
+ }, better_auth0.$strip>;
1355
1355
  metadata: {
1356
1356
  openapi: {
1357
1357
  description: string;
@@ -1402,17 +1402,17 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1402
1402
  expires_in: number;
1403
1403
  scope: string;
1404
1404
  }>;
1405
- deviceVerify: better_auth79.StrictEndpoint<"/device", {
1405
+ deviceVerify: better_auth0.StrictEndpoint<"/device", {
1406
1406
  method: "GET";
1407
- query: zod205.ZodObject<{
1408
- user_code: zod205.ZodString;
1409
- }, better_auth79.$strip>;
1410
- error: zod205.ZodObject<{
1411
- error: zod205.ZodEnum<{
1407
+ query: zod0.ZodObject<{
1408
+ user_code: zod0.ZodString;
1409
+ }, better_auth0.$strip>;
1410
+ error: zod0.ZodObject<{
1411
+ error: zod0.ZodEnum<{
1412
1412
  invalid_request: "invalid_request";
1413
1413
  }>;
1414
- error_description: zod205.ZodString;
1415
- }, better_auth79.$strip>;
1414
+ error_description: zod0.ZodString;
1415
+ }, better_auth0.$strip>;
1416
1416
  metadata: {
1417
1417
  openapi: {
1418
1418
  description: string;
@@ -1445,19 +1445,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1445
1445
  user_code: string;
1446
1446
  status: string;
1447
1447
  }>;
1448
- deviceApprove: better_auth79.StrictEndpoint<"/device/approve", {
1448
+ deviceApprove: better_auth0.StrictEndpoint<"/device/approve", {
1449
1449
  method: "POST";
1450
- body: zod205.ZodObject<{
1451
- userCode: zod205.ZodString;
1452
- }, better_auth79.$strip>;
1453
- error: zod205.ZodObject<{
1454
- error: zod205.ZodEnum<{
1450
+ body: zod0.ZodObject<{
1451
+ userCode: zod0.ZodString;
1452
+ }, better_auth0.$strip>;
1453
+ error: zod0.ZodObject<{
1454
+ error: zod0.ZodEnum<{
1455
1455
  invalid_request: "invalid_request";
1456
1456
  expired_token: "expired_token";
1457
1457
  device_code_already_processed: "device_code_already_processed";
1458
1458
  }>;
1459
- error_description: zod205.ZodString;
1460
- }, better_auth79.$strip>;
1459
+ error_description: zod0.ZodString;
1460
+ }, better_auth0.$strip>;
1461
1461
  requireHeaders: true;
1462
1462
  metadata: {
1463
1463
  openapi: {
@@ -1484,18 +1484,18 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1484
1484
  }, {
1485
1485
  success: boolean;
1486
1486
  }>;
1487
- deviceDeny: better_auth79.StrictEndpoint<"/device/deny", {
1487
+ deviceDeny: better_auth0.StrictEndpoint<"/device/deny", {
1488
1488
  method: "POST";
1489
- body: zod205.ZodObject<{
1490
- userCode: zod205.ZodString;
1491
- }, better_auth79.$strip>;
1492
- error: zod205.ZodObject<{
1493
- error: zod205.ZodEnum<{
1489
+ body: zod0.ZodObject<{
1490
+ userCode: zod0.ZodString;
1491
+ }, better_auth0.$strip>;
1492
+ error: zod0.ZodObject<{
1493
+ error: zod0.ZodEnum<{
1494
1494
  invalid_request: "invalid_request";
1495
1495
  expired_token: "expired_token";
1496
1496
  }>;
1497
- error_description: zod205.ZodString;
1498
- }, better_auth79.$strip>;
1497
+ error_description: zod0.ZodString;
1498
+ }, better_auth0.$strip>;
1499
1499
  metadata: {
1500
1500
  openapi: {
1501
1501
  description: string;
@@ -1537,8 +1537,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
1537
1537
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1538
1538
  };
1539
1539
  options: Partial<{
1540
- expiresIn: better_auth_plugins69.TimeString;
1541
- interval: better_auth_plugins69.TimeString;
1540
+ expiresIn: better_auth_plugins0.TimeString;
1541
+ interval: better_auth_plugins0.TimeString;
1542
1542
  deviceCodeLength: number;
1543
1543
  userCodeLength: number;
1544
1544
  schema: {
@@ -1570,6 +1570,6 @@ declare function createAgentsApp(config?: {
1570
1570
  credentialStores?: CredentialStore[];
1571
1571
  auth?: UserAuthConfig;
1572
1572
  sandboxConfig?: SandboxConfig;
1573
- }): hono13.Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
1573
+ }): hono0.Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
1574
1574
  //#endregion
1575
1575
  export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono, createAuth0Provider, createOIDCProvider };