@inkeep/agents-core 0.70.5 → 0.70.7

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 (42) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +122 -122
  4. package/dist/auth/auth.js +13 -7
  5. package/dist/auth/init.js +4 -2
  6. package/dist/auth/password-policy.d.ts +2 -2
  7. package/dist/auth/permissions.d.ts +13 -13
  8. package/dist/auth/session-hooks.d.ts +11 -0
  9. package/dist/auth/session-hooks.js +27 -0
  10. package/dist/client-exports.d.ts +2 -2
  11. package/dist/client-exports.js +2 -2
  12. package/dist/data-access/index.d.ts +2 -2
  13. package/dist/data-access/index.js +2 -2
  14. package/dist/data-access/manage/agents.d.ts +21 -21
  15. package/dist/data-access/manage/artifactComponents.d.ts +2 -2
  16. package/dist/data-access/manage/functionTools.d.ts +4 -4
  17. package/dist/data-access/manage/skills.d.ts +5 -5
  18. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  19. package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
  20. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  21. package/dist/data-access/manage/subAgents.d.ts +15 -15
  22. package/dist/data-access/manage/tools.d.ts +15 -15
  23. package/dist/data-access/manage/triggers.d.ts +1 -1
  24. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  25. package/dist/data-access/runtime/apps.d.ts +2 -2
  26. package/dist/data-access/runtime/conversations.d.ts +24 -24
  27. package/dist/data-access/runtime/conversations.js +2 -2
  28. package/dist/data-access/runtime/feedback.d.ts +3 -1
  29. package/dist/data-access/runtime/feedback.js +11 -1
  30. package/dist/data-access/runtime/messages.d.ts +6 -6
  31. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  32. package/dist/data-access/runtime/tasks.d.ts +6 -6
  33. package/dist/db/manage/manage-schema.d.ts +453 -453
  34. package/dist/db/runtime/runtime-schema.d.ts +421 -421
  35. package/dist/index.d.ts +3 -3
  36. package/dist/index.js +3 -3
  37. package/dist/validation/index.d.ts +2 -2
  38. package/dist/validation/index.js +2 -2
  39. package/dist/validation/schemas/skills.d.ts +39 -39
  40. package/dist/validation/schemas.d.ts +1960 -1944
  41. package/dist/validation/schemas.js +9 -1
  42. package/package.json +1 -1
@@ -2,9 +2,9 @@ import { BetterAuthConfig, EmailServiceConfig, OIDCProviderConfig, SAMLProviderC
2
2
  import { extractCookieDomain, hasCredentialAccount } from "./auth-config-utils.js";
3
3
  import * as jose0 from "jose";
4
4
  import * as zod0 from "zod";
5
- import * as better_auth1 from "better-auth";
5
+ import * as better_auth0 from "better-auth";
6
6
  import * as _better_auth_oauth_provider0 from "@better-auth/oauth-provider";
7
- import * as better_auth_plugins20 from "better-auth/plugins";
7
+ import * as better_auth_plugins0 from "better-auth/plugins";
8
8
 
9
9
  //#region src/auth/auth.d.ts
10
10
 
@@ -23,36 +23,36 @@ import * as better_auth_plugins20 from "better-auth/plugins";
23
23
  * on .api. Since no auth.api.* calls use SSO or dash methods, omitting
24
24
  * them is safe and preserves precise types.
25
25
  */
26
- declare function _inferAuthType(): better_auth1.Auth<{
26
+ declare function _inferAuthType(): better_auth0.Auth<{
27
27
  plugins: [{
28
28
  id: "bearer";
29
29
  hooks: {
30
30
  before: {
31
- matcher(context: better_auth1.HookEndpointContext): boolean;
32
- handler: (inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
31
+ matcher(context: better_auth0.HookEndpointContext): boolean;
32
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
33
33
  context: {
34
34
  headers: Headers;
35
35
  };
36
36
  } | undefined>;
37
37
  }[];
38
38
  after: {
39
- matcher(context: better_auth1.HookEndpointContext): true;
40
- handler: (inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<void>;
39
+ matcher(context: better_auth0.HookEndpointContext): true;
40
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
41
41
  }[];
42
42
  };
43
- options: better_auth_plugins20.BearerOptions | undefined;
43
+ options: better_auth_plugins0.BearerOptions | undefined;
44
44
  }, {
45
45
  id: "oauth-proxy";
46
- options: NoInfer<better_auth_plugins20.OAuthProxyOptions>;
46
+ options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
47
47
  endpoints: {
48
- oAuthProxy: better_auth1.StrictEndpoint<"/oauth-proxy-callback", {
48
+ oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
49
49
  method: "GET";
50
50
  operationId: string;
51
51
  query: zod0.ZodObject<{
52
52
  callbackURL: zod0.ZodString;
53
53
  profile: zod0.ZodOptional<zod0.ZodString>;
54
- }, better_auth1.$strip>;
55
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<void>)[];
54
+ }, better_auth0.$strip>;
55
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>)[];
56
56
  metadata: {
57
57
  openapi: {
58
58
  operationId: string;
@@ -87,19 +87,19 @@ declare function _inferAuthType(): better_auth1.Auth<{
87
87
  };
88
88
  hooks: {
89
89
  before: {
90
- matcher(context: better_auth1.HookEndpointContext): boolean;
91
- handler: (inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<void>;
90
+ matcher(context: better_auth0.HookEndpointContext): boolean;
91
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
92
92
  }[];
93
93
  after: {
94
- matcher(context: better_auth1.HookEndpointContext): boolean;
95
- handler: (inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<void>;
94
+ matcher(context: better_auth0.HookEndpointContext): boolean;
95
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
96
96
  }[];
97
97
  };
98
98
  }, {
99
99
  id: "jwt";
100
- options: NoInfer<better_auth_plugins20.JwtOptions>;
100
+ options: NoInfer<better_auth_plugins0.JwtOptions>;
101
101
  endpoints: {
102
- getJwks: better_auth1.StrictEndpoint<string, {
102
+ getJwks: better_auth0.StrictEndpoint<string, {
103
103
  method: "GET";
104
104
  metadata: {
105
105
  openapi: {
@@ -176,10 +176,10 @@ declare function _inferAuthType(): better_auth1.Auth<{
176
176
  };
177
177
  };
178
178
  }, jose0.JSONWebKeySet>;
179
- getToken: better_auth1.StrictEndpoint<"/token", {
179
+ getToken: better_auth0.StrictEndpoint<"/token", {
180
180
  method: "GET";
181
181
  requireHeaders: true;
182
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
182
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
183
183
  session: {
184
184
  session: Record<string, any> & {
185
185
  id: string;
@@ -228,24 +228,24 @@ declare function _inferAuthType(): better_auth1.Auth<{
228
228
  }, {
229
229
  token: string;
230
230
  }>;
231
- signJWT: better_auth1.StrictEndpoint<string, {
231
+ signJWT: better_auth0.StrictEndpoint<string, {
232
232
  method: "POST";
233
233
  metadata: {
234
234
  $Infer: {
235
235
  body: {
236
236
  payload: jose0.JWTPayload;
237
- overrideOptions?: better_auth_plugins20.JwtOptions | undefined;
237
+ overrideOptions?: better_auth_plugins0.JwtOptions | undefined;
238
238
  };
239
239
  };
240
240
  };
241
241
  body: zod0.ZodObject<{
242
242
  payload: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
243
243
  overrideOptions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
244
- }, better_auth1.$strip>;
244
+ }, better_auth0.$strip>;
245
245
  }, {
246
246
  token: string;
247
247
  }>;
248
- verifyJWT: better_auth1.StrictEndpoint<string, {
248
+ verifyJWT: better_auth0.StrictEndpoint<string, {
249
249
  method: "POST";
250
250
  metadata: {
251
251
  $Infer: {
@@ -265,15 +265,15 @@ declare function _inferAuthType(): better_auth1.Auth<{
265
265
  body: zod0.ZodObject<{
266
266
  token: zod0.ZodString;
267
267
  issuer: zod0.ZodOptional<zod0.ZodString>;
268
- }, better_auth1.$strip>;
268
+ }, better_auth0.$strip>;
269
269
  }, {
270
270
  payload: (jose0.JWTPayload & Required<Pick<jose0.JWTPayload, "sub" | "aud">>) | null;
271
271
  }>;
272
272
  };
273
273
  hooks: {
274
274
  after: {
275
- matcher(context: better_auth1.HookEndpointContext): boolean;
276
- handler: (inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<void>;
275
+ matcher(context: better_auth0.HookEndpointContext): boolean;
276
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
277
277
  }[];
278
278
  };
279
279
  schema: {
@@ -304,36 +304,36 @@ declare function _inferAuthType(): better_auth1.Auth<{
304
304
  loginPage: string;
305
305
  consentPage: string;
306
306
  }>;
307
- init: (ctx: better_auth1.AuthContext) => void;
307
+ init: (ctx: better_auth0.AuthContext) => void;
308
308
  hooks: {
309
309
  before: {
310
- matcher(ctx: better_auth1.HookEndpointContext): any;
311
- handler: (inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<void>;
310
+ matcher(ctx: better_auth0.HookEndpointContext): any;
311
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
312
312
  }[];
313
313
  after: {
314
- matcher(ctx: better_auth1.HookEndpointContext): boolean;
315
- handler: (inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
314
+ matcher(ctx: better_auth0.HookEndpointContext): boolean;
315
+ handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
316
316
  redirect: boolean;
317
317
  url: string;
318
318
  } | undefined>;
319
319
  }[];
320
320
  };
321
321
  endpoints: {
322
- getOAuthServerConfig: better_auth1.StrictEndpoint<"/.well-known/oauth-authorization-server", {
322
+ getOAuthServerConfig: better_auth0.StrictEndpoint<"/.well-known/oauth-authorization-server", {
323
323
  method: "GET";
324
324
  metadata: {
325
325
  SERVER_ONLY: true;
326
326
  };
327
327
  }, _better_auth_oauth_provider0.AuthServerMetadata>;
328
- getOpenIdConfig: better_auth1.StrictEndpoint<"/.well-known/openid-configuration", {
328
+ getOpenIdConfig: better_auth0.StrictEndpoint<"/.well-known/openid-configuration", {
329
329
  method: "GET";
330
330
  metadata: {
331
331
  SERVER_ONLY: true;
332
332
  };
333
333
  }, Omit<_better_auth_oauth_provider0.OIDCMetadata, "id_token_signing_alg_values_supported"> & {
334
- id_token_signing_alg_values_supported: better_auth_plugins20.JWSAlgorithms[] | ["HS256"];
334
+ id_token_signing_alg_values_supported: better_auth_plugins0.JWSAlgorithms[] | ["HS256"];
335
335
  }>;
336
- oauth2Authorize: better_auth1.StrictEndpoint<"/oauth2/authorize", {
336
+ oauth2Authorize: better_auth0.StrictEndpoint<"/oauth2/authorize", {
337
337
  method: "GET";
338
338
  query: zod0.ZodObject<{
339
339
  response_type: zod0.ZodEnum<{
@@ -357,7 +357,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
357
357
  "login consent": "login consent";
358
358
  "select_account consent": "select_account consent";
359
359
  }>>;
360
- }, better_auth1.$strip>;
360
+ }, better_auth0.$strip>;
361
361
  metadata: {
362
362
  openapi: {
363
363
  description: string;
@@ -431,14 +431,14 @@ declare function _inferAuthType(): better_auth1.Auth<{
431
431
  redirect: boolean;
432
432
  url: string;
433
433
  }>;
434
- oauth2Consent: better_auth1.StrictEndpoint<"/oauth2/consent", {
434
+ oauth2Consent: better_auth0.StrictEndpoint<"/oauth2/consent", {
435
435
  method: "POST";
436
436
  body: zod0.ZodObject<{
437
437
  accept: zod0.ZodBoolean;
438
438
  scope: zod0.ZodOptional<zod0.ZodString>;
439
439
  oauth_query: zod0.ZodOptional<zod0.ZodString>;
440
- }, better_auth1.$strip>;
441
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
440
+ }, better_auth0.$strip>;
441
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
442
442
  session: {
443
443
  session: Record<string, any> & {
444
444
  id: string;
@@ -490,15 +490,15 @@ declare function _inferAuthType(): better_auth1.Auth<{
490
490
  redirect: boolean;
491
491
  url: string;
492
492
  }>;
493
- oauth2Continue: better_auth1.StrictEndpoint<"/oauth2/continue", {
493
+ oauth2Continue: better_auth0.StrictEndpoint<"/oauth2/continue", {
494
494
  method: "POST";
495
495
  body: zod0.ZodObject<{
496
496
  selected: zod0.ZodOptional<zod0.ZodBoolean>;
497
497
  created: zod0.ZodOptional<zod0.ZodBoolean>;
498
498
  postLogin: zod0.ZodOptional<zod0.ZodBoolean>;
499
499
  oauth_query: zod0.ZodOptional<zod0.ZodString>;
500
- }, better_auth1.$strip>;
501
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
500
+ }, better_auth0.$strip>;
501
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
502
502
  session: {
503
503
  session: Record<string, any> & {
504
504
  id: string;
@@ -550,7 +550,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
550
550
  redirect: boolean;
551
551
  url: string;
552
552
  }>;
553
- oauth2Token: better_auth1.StrictEndpoint<"/oauth2/token", {
553
+ oauth2Token: better_auth0.StrictEndpoint<"/oauth2/token", {
554
554
  method: "POST";
555
555
  body: zod0.ZodObject<{
556
556
  grant_type: zod0.ZodEnum<{
@@ -566,7 +566,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
566
566
  refresh_token: zod0.ZodOptional<zod0.ZodString>;
567
567
  resource: zod0.ZodOptional<zod0.ZodString>;
568
568
  scope: zod0.ZodOptional<zod0.ZodString>;
569
- }, better_auth1.$strip>;
569
+ }, better_auth0.$strip>;
570
570
  metadata: {
571
571
  allowedMediaTypes: string[];
572
572
  openapi: {
@@ -693,7 +693,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
693
693
  token_type: string;
694
694
  scope: string;
695
695
  }>;
696
- oauth2Introspect: better_auth1.StrictEndpoint<"/oauth2/introspect", {
696
+ oauth2Introspect: better_auth0.StrictEndpoint<"/oauth2/introspect", {
697
697
  method: "POST";
698
698
  body: zod0.ZodObject<{
699
699
  client_id: zod0.ZodOptional<zod0.ZodString>;
@@ -703,7 +703,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
703
703
  refresh_token: "refresh_token";
704
704
  access_token: "access_token";
705
705
  }>>;
706
- }, better_auth1.$strip>;
706
+ }, better_auth0.$strip>;
707
707
  metadata: {
708
708
  allowedMediaTypes: string[];
709
709
  openapi: {
@@ -830,7 +830,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
830
830
  };
831
831
  };
832
832
  }, jose0.JWTPayload>;
833
- oauth2Revoke: better_auth1.StrictEndpoint<"/oauth2/revoke", {
833
+ oauth2Revoke: better_auth0.StrictEndpoint<"/oauth2/revoke", {
834
834
  method: "POST";
835
835
  body: zod0.ZodObject<{
836
836
  client_id: zod0.ZodOptional<zod0.ZodString>;
@@ -840,7 +840,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
840
840
  refresh_token: "refresh_token";
841
841
  access_token: "access_token";
842
842
  }>>;
843
- }, better_auth1.$strip>;
843
+ }, better_auth0.$strip>;
844
844
  metadata: {
845
845
  allowedMediaTypes: string[];
846
846
  openapi: {
@@ -913,7 +913,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
913
913
  };
914
914
  };
915
915
  }, null | undefined>;
916
- oauth2UserInfo: better_auth1.StrictEndpoint<"/oauth2/userinfo", {
916
+ oauth2UserInfo: better_auth0.StrictEndpoint<"/oauth2/userinfo", {
917
917
  method: "GET";
918
918
  metadata: {
919
919
  openapi: {
@@ -1034,14 +1034,14 @@ declare function _inferAuthType(): better_auth1.Auth<{
1034
1034
  family_name?: string | undefined;
1035
1035
  sub: string;
1036
1036
  }>;
1037
- oauth2EndSession: better_auth1.StrictEndpoint<"/oauth2/end-session", {
1037
+ oauth2EndSession: better_auth0.StrictEndpoint<"/oauth2/end-session", {
1038
1038
  method: "GET";
1039
1039
  query: zod0.ZodObject<{
1040
1040
  id_token_hint: zod0.ZodString;
1041
1041
  client_id: zod0.ZodOptional<zod0.ZodString>;
1042
1042
  post_logout_redirect_uri: zod0.ZodOptional<zod0.ZodURL>;
1043
1043
  state: zod0.ZodOptional<zod0.ZodString>;
1044
- }, better_auth1.$strip>;
1044
+ }, better_auth0.$strip>;
1045
1045
  metadata: {
1046
1046
  openapi: {
1047
1047
  description: string;
@@ -1074,7 +1074,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
1074
1074
  redirect: boolean;
1075
1075
  url: string;
1076
1076
  } | undefined>;
1077
- registerOAuthClient: better_auth1.StrictEndpoint<"/oauth2/register", {
1077
+ registerOAuthClient: better_auth0.StrictEndpoint<"/oauth2/register", {
1078
1078
  method: "POST";
1079
1079
  body: zod0.ZodObject<{
1080
1080
  redirect_uris: zod0.ZodArray<zod0.ZodURL>;
@@ -1111,7 +1111,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
1111
1111
  public: "public";
1112
1112
  pairwise: "pairwise";
1113
1113
  }>>;
1114
- }, better_auth1.$strip>;
1114
+ }, better_auth0.$strip>;
1115
1115
  metadata: {
1116
1116
  openapi: {
1117
1117
  description: string;
@@ -1246,7 +1246,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
1246
1246
  };
1247
1247
  };
1248
1248
  }, _better_auth_oauth_provider0.OAuthClient>;
1249
- adminCreateOAuthClient: better_auth1.StrictEndpoint<"/admin/oauth2/create-client", {
1249
+ adminCreateOAuthClient: better_auth0.StrictEndpoint<"/admin/oauth2/create-client", {
1250
1250
  method: "POST";
1251
1251
  body: zod0.ZodObject<{
1252
1252
  redirect_uris: zod0.ZodArray<zod0.ZodURL>;
@@ -1288,7 +1288,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
1288
1288
  pairwise: "pairwise";
1289
1289
  }>>;
1290
1290
  metadata: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
1291
- }, better_auth1.$strip>;
1291
+ }, better_auth0.$strip>;
1292
1292
  metadata: {
1293
1293
  SERVER_ONLY: true;
1294
1294
  openapi: {
@@ -1427,9 +1427,9 @@ declare function _inferAuthType(): better_auth1.Auth<{
1427
1427
  };
1428
1428
  };
1429
1429
  }, _better_auth_oauth_provider0.OAuthClient>;
1430
- createOAuthClient: better_auth1.StrictEndpoint<"/oauth2/create-client", {
1430
+ createOAuthClient: better_auth0.StrictEndpoint<"/oauth2/create-client", {
1431
1431
  method: "POST";
1432
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1432
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1433
1433
  session: {
1434
1434
  session: Record<string, any> & {
1435
1435
  id: string;
@@ -1483,7 +1483,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
1483
1483
  native: "native";
1484
1484
  "user-agent-based": "user-agent-based";
1485
1485
  }>>;
1486
- }, better_auth1.$strip>;
1486
+ }, better_auth0.$strip>;
1487
1487
  metadata: {
1488
1488
  openapi: {
1489
1489
  description: string;
@@ -1616,9 +1616,9 @@ declare function _inferAuthType(): better_auth1.Auth<{
1616
1616
  };
1617
1617
  };
1618
1618
  }, _better_auth_oauth_provider0.OAuthClient>;
1619
- getOAuthClient: better_auth1.StrictEndpoint<"/oauth2/get-client", {
1619
+ getOAuthClient: better_auth0.StrictEndpoint<"/oauth2/get-client", {
1620
1620
  method: "GET";
1621
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1621
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1622
1622
  session: {
1623
1623
  session: Record<string, any> & {
1624
1624
  id: string;
@@ -1643,16 +1643,16 @@ declare function _inferAuthType(): better_auth1.Auth<{
1643
1643
  }>)[];
1644
1644
  query: zod0.ZodObject<{
1645
1645
  client_id: zod0.ZodString;
1646
- }, better_auth1.$strip>;
1646
+ }, better_auth0.$strip>;
1647
1647
  metadata: {
1648
1648
  openapi: {
1649
1649
  description: string;
1650
1650
  };
1651
1651
  };
1652
1652
  }, _better_auth_oauth_provider0.OAuthClient>;
1653
- getOAuthClientPublic: better_auth1.StrictEndpoint<"/oauth2/public-client", {
1653
+ getOAuthClientPublic: better_auth0.StrictEndpoint<"/oauth2/public-client", {
1654
1654
  method: "GET";
1655
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1655
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1656
1656
  session: {
1657
1657
  session: Record<string, any> & {
1658
1658
  id: string;
@@ -1677,16 +1677,16 @@ declare function _inferAuthType(): better_auth1.Auth<{
1677
1677
  }>)[];
1678
1678
  query: zod0.ZodObject<{
1679
1679
  client_id: zod0.ZodString;
1680
- }, better_auth1.$strip>;
1680
+ }, better_auth0.$strip>;
1681
1681
  metadata: {
1682
1682
  openapi: {
1683
1683
  description: string;
1684
1684
  };
1685
1685
  };
1686
1686
  }, _better_auth_oauth_provider0.OAuthClient>;
1687
- getOAuthClients: better_auth1.StrictEndpoint<"/oauth2/get-clients", {
1687
+ getOAuthClients: better_auth0.StrictEndpoint<"/oauth2/get-clients", {
1688
1688
  method: "GET";
1689
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1689
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1690
1690
  session: {
1691
1691
  session: Record<string, any> & {
1692
1692
  id: string;
@@ -1715,7 +1715,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
1715
1715
  };
1716
1716
  };
1717
1717
  }, _better_auth_oauth_provider0.OAuthClient[] | null>;
1718
- adminUpdateOAuthClient: better_auth1.StrictEndpoint<"/admin/oauth2/update-client", {
1718
+ adminUpdateOAuthClient: better_auth0.StrictEndpoint<"/admin/oauth2/update-client", {
1719
1719
  method: "PATCH";
1720
1720
  body: zod0.ZodObject<{
1721
1721
  client_id: zod0.ZodString;
@@ -1749,8 +1749,8 @@ declare function _inferAuthType(): better_auth1.Auth<{
1749
1749
  skip_consent: zod0.ZodOptional<zod0.ZodBoolean>;
1750
1750
  enable_end_session: zod0.ZodOptional<zod0.ZodBoolean>;
1751
1751
  metadata: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
1752
- }, better_auth1.$strip>;
1753
- }, better_auth1.$strip>;
1752
+ }, better_auth0.$strip>;
1753
+ }, better_auth0.$strip>;
1754
1754
  metadata: {
1755
1755
  SERVER_ONLY: true;
1756
1756
  openapi: {
@@ -1758,9 +1758,9 @@ declare function _inferAuthType(): better_auth1.Auth<{
1758
1758
  };
1759
1759
  };
1760
1760
  }, _better_auth_oauth_provider0.OAuthClient>;
1761
- updateOAuthClient: better_auth1.StrictEndpoint<"/oauth2/update-client", {
1761
+ updateOAuthClient: better_auth0.StrictEndpoint<"/oauth2/update-client", {
1762
1762
  method: "POST";
1763
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1763
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1764
1764
  session: {
1765
1765
  session: Record<string, any> & {
1766
1766
  id: string;
@@ -1811,17 +1811,17 @@ declare function _inferAuthType(): better_auth1.Auth<{
1811
1811
  native: "native";
1812
1812
  "user-agent-based": "user-agent-based";
1813
1813
  }>>;
1814
- }, better_auth1.$strip>;
1815
- }, better_auth1.$strip>;
1814
+ }, better_auth0.$strip>;
1815
+ }, better_auth0.$strip>;
1816
1816
  metadata: {
1817
1817
  openapi: {
1818
1818
  description: string;
1819
1819
  };
1820
1820
  };
1821
1821
  }, _better_auth_oauth_provider0.OAuthClient>;
1822
- rotateClientSecret: better_auth1.StrictEndpoint<"/oauth2/client/rotate-secret", {
1822
+ rotateClientSecret: better_auth0.StrictEndpoint<"/oauth2/client/rotate-secret", {
1823
1823
  method: "POST";
1824
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1824
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1825
1825
  session: {
1826
1826
  session: Record<string, any> & {
1827
1827
  id: string;
@@ -1846,16 +1846,16 @@ declare function _inferAuthType(): better_auth1.Auth<{
1846
1846
  }>)[];
1847
1847
  body: zod0.ZodObject<{
1848
1848
  client_id: zod0.ZodString;
1849
- }, better_auth1.$strip>;
1849
+ }, better_auth0.$strip>;
1850
1850
  metadata: {
1851
1851
  openapi: {
1852
1852
  description: string;
1853
1853
  };
1854
1854
  };
1855
1855
  }, _better_auth_oauth_provider0.OAuthClient>;
1856
- deleteOAuthClient: better_auth1.StrictEndpoint<"/oauth2/delete-client", {
1856
+ deleteOAuthClient: better_auth0.StrictEndpoint<"/oauth2/delete-client", {
1857
1857
  method: "POST";
1858
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1858
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1859
1859
  session: {
1860
1860
  session: Record<string, any> & {
1861
1861
  id: string;
@@ -1880,19 +1880,19 @@ declare function _inferAuthType(): better_auth1.Auth<{
1880
1880
  }>)[];
1881
1881
  body: zod0.ZodObject<{
1882
1882
  client_id: zod0.ZodString;
1883
- }, better_auth1.$strip>;
1883
+ }, better_auth0.$strip>;
1884
1884
  metadata: {
1885
1885
  openapi: {
1886
1886
  description: string;
1887
1887
  };
1888
1888
  };
1889
1889
  }, void>;
1890
- getOAuthConsent: better_auth1.StrictEndpoint<"/oauth2/get-consent", {
1890
+ getOAuthConsent: better_auth0.StrictEndpoint<"/oauth2/get-consent", {
1891
1891
  method: "GET";
1892
1892
  query: zod0.ZodObject<{
1893
1893
  id: zod0.ZodString;
1894
- }, better_auth1.$strip>;
1895
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1894
+ }, better_auth0.$strip>;
1895
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1896
1896
  session: {
1897
1897
  session: Record<string, any> & {
1898
1898
  id: string;
@@ -1921,9 +1921,9 @@ declare function _inferAuthType(): better_auth1.Auth<{
1921
1921
  };
1922
1922
  };
1923
1923
  }, _better_auth_oauth_provider0.OAuthConsent<_better_auth_oauth_provider0.Scope[]>>;
1924
- getOAuthConsents: better_auth1.StrictEndpoint<"/oauth2/get-consents", {
1924
+ getOAuthConsents: better_auth0.StrictEndpoint<"/oauth2/get-consents", {
1925
1925
  method: "GET";
1926
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1926
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1927
1927
  session: {
1928
1928
  session: Record<string, any> & {
1929
1929
  id: string;
@@ -1952,9 +1952,9 @@ declare function _inferAuthType(): better_auth1.Auth<{
1952
1952
  };
1953
1953
  };
1954
1954
  }, _better_auth_oauth_provider0.OAuthConsent<_better_auth_oauth_provider0.Scope[]>[]>;
1955
- updateOAuthConsent: better_auth1.StrictEndpoint<"/oauth2/update-consent", {
1955
+ updateOAuthConsent: better_auth0.StrictEndpoint<"/oauth2/update-consent", {
1956
1956
  method: "POST";
1957
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1957
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1958
1958
  session: {
1959
1959
  session: Record<string, any> & {
1960
1960
  id: string;
@@ -1981,17 +1981,17 @@ declare function _inferAuthType(): better_auth1.Auth<{
1981
1981
  id: zod0.ZodString;
1982
1982
  update: zod0.ZodObject<{
1983
1983
  scopes: zod0.ZodArray<zod0.ZodString>;
1984
- }, better_auth1.$strip>;
1985
- }, better_auth1.$strip>;
1984
+ }, better_auth0.$strip>;
1985
+ }, better_auth0.$strip>;
1986
1986
  metadata: {
1987
1987
  openapi: {
1988
1988
  description: string;
1989
1989
  };
1990
1990
  };
1991
1991
  }, _better_auth_oauth_provider0.OAuthConsent<_better_auth_oauth_provider0.Scope[]> | null>;
1992
- deleteOAuthConsent: better_auth1.StrictEndpoint<"/oauth2/delete-consent", {
1992
+ deleteOAuthConsent: better_auth0.StrictEndpoint<"/oauth2/delete-consent", {
1993
1993
  method: "POST";
1994
- use: ((inputContext: better_auth1.MiddlewareInputContext<better_auth1.MiddlewareOptions>) => Promise<{
1994
+ use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
1995
1995
  session: {
1996
1996
  session: Record<string, any> & {
1997
1997
  id: string;
@@ -2016,7 +2016,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
2016
2016
  }>)[];
2017
2017
  body: zod0.ZodObject<{
2018
2018
  id: zod0.ZodString;
2019
- }, better_auth1.$strip>;
2019
+ }, better_auth0.$strip>;
2020
2020
  metadata: {
2021
2021
  openapi: {
2022
2022
  description: string;
@@ -2324,7 +2324,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
2324
2324
  window: number;
2325
2325
  max: number;
2326
2326
  })[];
2327
- }, better_auth_plugins20.DefaultOrganizationPlugin<{
2327
+ }, better_auth_plugins0.DefaultOrganizationPlugin<{
2328
2328
  schema: {
2329
2329
  invitation: {
2330
2330
  additionalFields: {
@@ -2394,19 +2394,19 @@ declare function _inferAuthType(): better_auth1.Auth<{
2394
2394
  };
2395
2395
  };
2396
2396
  endpoints: {
2397
- deviceCode: better_auth1.StrictEndpoint<"/device/code", {
2397
+ deviceCode: better_auth0.StrictEndpoint<"/device/code", {
2398
2398
  method: "POST";
2399
2399
  body: zod0.ZodObject<{
2400
2400
  client_id: zod0.ZodString;
2401
2401
  scope: zod0.ZodOptional<zod0.ZodString>;
2402
- }, better_auth1.$strip>;
2402
+ }, better_auth0.$strip>;
2403
2403
  error: zod0.ZodObject<{
2404
2404
  error: zod0.ZodEnum<{
2405
2405
  invalid_request: "invalid_request";
2406
2406
  invalid_client: "invalid_client";
2407
2407
  }>;
2408
2408
  error_description: zod0.ZodString;
2409
- }, better_auth1.$strip>;
2409
+ }, better_auth0.$strip>;
2410
2410
  metadata: {
2411
2411
  openapi: {
2412
2412
  description: string;
@@ -2479,13 +2479,13 @@ declare function _inferAuthType(): better_auth1.Auth<{
2479
2479
  expires_in: number;
2480
2480
  interval: number;
2481
2481
  }>;
2482
- deviceToken: better_auth1.StrictEndpoint<"/device/token", {
2482
+ deviceToken: better_auth0.StrictEndpoint<"/device/token", {
2483
2483
  method: "POST";
2484
2484
  body: zod0.ZodObject<{
2485
2485
  grant_type: zod0.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
2486
2486
  device_code: zod0.ZodString;
2487
2487
  client_id: zod0.ZodString;
2488
- }, better_auth1.$strip>;
2488
+ }, better_auth0.$strip>;
2489
2489
  error: zod0.ZodObject<{
2490
2490
  error: zod0.ZodEnum<{
2491
2491
  invalid_request: "invalid_request";
@@ -2496,7 +2496,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
2496
2496
  invalid_grant: "invalid_grant";
2497
2497
  }>;
2498
2498
  error_description: zod0.ZodString;
2499
- }, better_auth1.$strip>;
2499
+ }, better_auth0.$strip>;
2500
2500
  metadata: {
2501
2501
  openapi: {
2502
2502
  description: string;
@@ -2547,17 +2547,17 @@ declare function _inferAuthType(): better_auth1.Auth<{
2547
2547
  expires_in: number;
2548
2548
  scope: string;
2549
2549
  }>;
2550
- deviceVerify: better_auth1.StrictEndpoint<"/device", {
2550
+ deviceVerify: better_auth0.StrictEndpoint<"/device", {
2551
2551
  method: "GET";
2552
2552
  query: zod0.ZodObject<{
2553
2553
  user_code: zod0.ZodString;
2554
- }, better_auth1.$strip>;
2554
+ }, better_auth0.$strip>;
2555
2555
  error: zod0.ZodObject<{
2556
2556
  error: zod0.ZodEnum<{
2557
2557
  invalid_request: "invalid_request";
2558
2558
  }>;
2559
2559
  error_description: zod0.ZodString;
2560
- }, better_auth1.$strip>;
2560
+ }, better_auth0.$strip>;
2561
2561
  metadata: {
2562
2562
  openapi: {
2563
2563
  description: string;
@@ -2590,11 +2590,11 @@ declare function _inferAuthType(): better_auth1.Auth<{
2590
2590
  user_code: string;
2591
2591
  status: string;
2592
2592
  }>;
2593
- deviceApprove: better_auth1.StrictEndpoint<"/device/approve", {
2593
+ deviceApprove: better_auth0.StrictEndpoint<"/device/approve", {
2594
2594
  method: "POST";
2595
2595
  body: zod0.ZodObject<{
2596
2596
  userCode: zod0.ZodString;
2597
- }, better_auth1.$strip>;
2597
+ }, better_auth0.$strip>;
2598
2598
  error: zod0.ZodObject<{
2599
2599
  error: zod0.ZodEnum<{
2600
2600
  invalid_request: "invalid_request";
@@ -2604,7 +2604,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
2604
2604
  unauthorized: "unauthorized";
2605
2605
  }>;
2606
2606
  error_description: zod0.ZodString;
2607
- }, better_auth1.$strip>;
2607
+ }, better_auth0.$strip>;
2608
2608
  requireHeaders: true;
2609
2609
  metadata: {
2610
2610
  openapi: {
@@ -2631,11 +2631,11 @@ declare function _inferAuthType(): better_auth1.Auth<{
2631
2631
  }, {
2632
2632
  success: boolean;
2633
2633
  }>;
2634
- deviceDeny: better_auth1.StrictEndpoint<"/device/deny", {
2634
+ deviceDeny: better_auth0.StrictEndpoint<"/device/deny", {
2635
2635
  method: "POST";
2636
2636
  body: zod0.ZodObject<{
2637
2637
  userCode: zod0.ZodString;
2638
- }, better_auth1.$strip>;
2638
+ }, better_auth0.$strip>;
2639
2639
  error: zod0.ZodObject<{
2640
2640
  error: zod0.ZodEnum<{
2641
2641
  invalid_request: "invalid_request";
@@ -2644,7 +2644,7 @@ declare function _inferAuthType(): better_auth1.Auth<{
2644
2644
  unauthorized: "unauthorized";
2645
2645
  }>;
2646
2646
  error_description: zod0.ZodString;
2647
- }, better_auth1.$strip>;
2647
+ }, better_auth0.$strip>;
2648
2648
  requireHeaders: true;
2649
2649
  metadata: {
2650
2650
  openapi: {
@@ -2673,22 +2673,22 @@ declare function _inferAuthType(): better_auth1.Auth<{
2673
2673
  }>;
2674
2674
  };
2675
2675
  $ERROR_CODES: {
2676
- USER_NOT_FOUND: better_auth1.RawError<"USER_NOT_FOUND">;
2677
- FAILED_TO_CREATE_SESSION: better_auth1.RawError<"FAILED_TO_CREATE_SESSION">;
2678
- INVALID_DEVICE_CODE: better_auth1.RawError<"INVALID_DEVICE_CODE">;
2679
- EXPIRED_DEVICE_CODE: better_auth1.RawError<"EXPIRED_DEVICE_CODE">;
2680
- EXPIRED_USER_CODE: better_auth1.RawError<"EXPIRED_USER_CODE">;
2681
- AUTHORIZATION_PENDING: better_auth1.RawError<"AUTHORIZATION_PENDING">;
2682
- ACCESS_DENIED: better_auth1.RawError<"ACCESS_DENIED">;
2683
- INVALID_USER_CODE: better_auth1.RawError<"INVALID_USER_CODE">;
2684
- DEVICE_CODE_ALREADY_PROCESSED: better_auth1.RawError<"DEVICE_CODE_ALREADY_PROCESSED">;
2685
- POLLING_TOO_FREQUENTLY: better_auth1.RawError<"POLLING_TOO_FREQUENTLY">;
2686
- INVALID_DEVICE_CODE_STATUS: better_auth1.RawError<"INVALID_DEVICE_CODE_STATUS">;
2687
- AUTHENTICATION_REQUIRED: better_auth1.RawError<"AUTHENTICATION_REQUIRED">;
2676
+ USER_NOT_FOUND: better_auth0.RawError<"USER_NOT_FOUND">;
2677
+ FAILED_TO_CREATE_SESSION: better_auth0.RawError<"FAILED_TO_CREATE_SESSION">;
2678
+ INVALID_DEVICE_CODE: better_auth0.RawError<"INVALID_DEVICE_CODE">;
2679
+ EXPIRED_DEVICE_CODE: better_auth0.RawError<"EXPIRED_DEVICE_CODE">;
2680
+ EXPIRED_USER_CODE: better_auth0.RawError<"EXPIRED_USER_CODE">;
2681
+ AUTHORIZATION_PENDING: better_auth0.RawError<"AUTHORIZATION_PENDING">;
2682
+ ACCESS_DENIED: better_auth0.RawError<"ACCESS_DENIED">;
2683
+ INVALID_USER_CODE: better_auth0.RawError<"INVALID_USER_CODE">;
2684
+ DEVICE_CODE_ALREADY_PROCESSED: better_auth0.RawError<"DEVICE_CODE_ALREADY_PROCESSED">;
2685
+ POLLING_TOO_FREQUENTLY: better_auth0.RawError<"POLLING_TOO_FREQUENTLY">;
2686
+ INVALID_DEVICE_CODE_STATUS: better_auth0.RawError<"INVALID_DEVICE_CODE_STATUS">;
2687
+ AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
2688
2688
  };
2689
2689
  options: Partial<{
2690
- expiresIn: better_auth_plugins20.TimeString;
2691
- interval: better_auth_plugins20.TimeString;
2690
+ expiresIn: better_auth_plugins0.TimeString;
2691
+ interval: better_auth_plugins0.TimeString;
2692
2692
  deviceCodeLength: number;
2693
2693
  userCodeLength: number;
2694
2694
  schema: {