@gatwech/auth 1.0.0-beta.23 → 1.0.0-beta.24

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 (70) hide show
  1. package/dist/adapters/index.d.mts +1 -1
  2. package/dist/api/index.d.mts +1 -1
  3. package/dist/client/index.d.mts +1 -1
  4. package/dist/client/plugins/index.d.mts +27 -27
  5. package/dist/client/react/index.d.mts +15 -15
  6. package/dist/{client-D8XKNpua.d.mts → client-CGV_kj99.d.mts} +1 -1
  7. package/dist/{client-CDaFOX7A.d.mts → client-CT-acJeN.d.mts} +4 -4
  8. package/dist/cookies/index.d.mts +2 -2
  9. package/dist/db/index.d.mts +1 -1
  10. package/dist/{index-Dg6Ftb6f.d.mts → index-B-i2ob-C.d.mts} +9 -9
  11. package/dist/{index-BhYE1_9j.d.mts → index-B6to9CaK.d.mts} +1 -1
  12. package/dist/{index-B5r4oL5q.d.mts → index-BRUQHEUF.d.mts} +5 -5
  13. package/dist/{index-Blq8KrTy.d.mts → index-BYxt8qOP.d.mts} +33 -33
  14. package/dist/{index-Dgyj1fTk.d.mts → index-CGGitykk.d.mts} +7 -7
  15. package/dist/{index-COFPq-mg.d.mts → index-CHMYUshk.d.mts} +13 -13
  16. package/dist/{index-D0SgItjY.d.mts → index-CLhlur69.d.mts} +6 -6
  17. package/dist/{index-3lfPQHhX.d.mts → index-CZtQ0rUe.d.mts} +113 -113
  18. package/dist/{index-C-z4TCHD.d.mts → index-Cl9ITXy1.d.mts} +10 -10
  19. package/dist/{index-DUu0ieh6.d.mts → index-Clwezlxm.d.mts} +8 -8
  20. package/dist/{index-CWxKeTtE.d.mts → index-Czr_eQFE.d.mts} +6 -6
  21. package/dist/{index-DxIqV3rU.d.mts → index-D5cyFBEb.d.mts} +4 -4
  22. package/dist/{index-DCliG2n6.d.mts → index-D85KXOKz.d.mts} +3 -3
  23. package/dist/{index-CIxFDcfQ.d.mts → index-DGRGLg16.d.mts} +2 -2
  24. package/dist/{index-CWwQ1Q7t.d.mts → index-DWGj7du8.d.mts} +19 -19
  25. package/dist/{index-B7iZf_Dl.d.mts → index-DWSbFJWU.d.mts} +55 -55
  26. package/dist/{index-C8F7PsET.d.mts → index-DYqQWdEv.d.mts} +13 -13
  27. package/dist/{index-382PsmkK.d.mts → index-Dmjw6re9.d.mts} +2 -2
  28. package/dist/{index-B4aWSJEd.d.mts → index-Dt6JhAV4.d.mts} +6 -6
  29. package/dist/{index-De2a2OyC.d.mts → index-Hoybqpnt.d.mts} +9 -9
  30. package/dist/{index-CExSHSFz.d.mts → index-JzSy-vFn.d.mts} +166 -166
  31. package/dist/{index-DPVukjga.d.mts → index-UDzaYKxq.d.mts} +9 -9
  32. package/dist/{index-DxRAXHrZ.d.mts → index-rcUKPBBy.d.mts} +6 -6
  33. package/dist/index.d.mts +1 -1
  34. package/dist/integrations/next-js.d.mts +2 -2
  35. package/dist/integrations/node.d.mts +1 -1
  36. package/dist/integrations/react-start.d.mts +4 -4
  37. package/dist/oauth2/index.d.mts +1 -1
  38. package/dist/plugins/admin/index.d.mts +2 -2
  39. package/dist/plugins/anonymous/index.d.mts +2 -2
  40. package/dist/plugins/audit-log/client.d.mts +23 -23
  41. package/dist/plugins/audit-log/index.d.mts +22 -22
  42. package/dist/plugins/bearer/index.d.mts +1 -1
  43. package/dist/plugins/captcha/index.d.mts +1 -1
  44. package/dist/plugins/custom-session/index.d.mts +2 -2
  45. package/dist/plugins/device-authorization/index.d.mts +1 -1
  46. package/dist/plugins/email-otp/index.d.mts +1 -1
  47. package/dist/plugins/generic-oauth/index.d.mts +2 -2
  48. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  49. package/dist/plugins/index.d.mts +22 -22
  50. package/dist/plugins/index.mjs +1 -1
  51. package/dist/plugins/jwt/index.d.mts +2 -2
  52. package/dist/plugins/magic-link/index.d.mts +1 -1
  53. package/dist/plugins/multi-session/index.d.mts +1 -1
  54. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  55. package/dist/plugins/one-tap/index.d.mts +1 -1
  56. package/dist/plugins/one-time-token/index.d.mts +2 -2
  57. package/dist/plugins/one-time-token/index.mjs +1 -1
  58. package/dist/plugins/organization/index.d.mts +2 -2
  59. package/dist/plugins/passkey/index.d.mts +2 -2
  60. package/dist/plugins/phone-number/index.d.mts +2 -2
  61. package/dist/plugins/sentinel/client.d.mts +23 -23
  62. package/dist/plugins/sentinel/index.d.mts +22 -22
  63. package/dist/plugins/sentinel/index.mjs +1 -1
  64. package/dist/plugins/two-factor/index.d.mts +2 -2
  65. package/dist/plugins/username/index.d.mts +1 -1
  66. package/dist/{sentinel-CYtaI3eO.mjs → sentinel-b8XEetew.mjs} +39 -14
  67. package/dist/test-utils/index.d.mts +273 -273
  68. package/dist/test-utils/index.mjs +1 -1
  69. package/dist/types/index.d.mts +1 -1
  70. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { u as Prettify } from "../helper-BgOIGHsu.mjs";
2
- import { A as Where$1 } from "../index-3lfPQHhX.mjs";
2
+ import { A as Where$1 } from "../index-CZtQ0rUe.mjs";
3
3
  import "../types-DNQ9XQrB.mjs";
4
4
  import "../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../plugins-Dy_FrD4Y.mjs";
@@ -1,5 +1,5 @@
1
1
  import "../helper-BgOIGHsu.mjs";
2
- import { $ as AuthEndpoint, At as ok, Bt as listUserAccounts, Ct as revokeSession, Dt as requestPasswordReset, Et as sessionMiddleware, Ft as verifyEmail, Gt as originCheckMiddleware, Ht as unlinkAccount, It as callbackOAuth, Kt as getOAuthState, Lt as accountInfo, Mt as createEmailVerificationToken, Nt as sendVerificationEmail, Ot as requestPasswordResetCallback, Pt as sendVerificationEmailFn, Q as APIError, Rt as getAccessToken, St as revokeOtherSessions, Tt as sensitiveSessionMiddleware, Ut as isSimpleRequest, Vt as refreshToken, Wt as originCheck, _t as freshSessionMiddleware, at as optionsMiddleware, bt as listSessions, ct as changePassword, dt as setPassword, et as AuthMiddleware, ft as updateUser, gt as signInSocial, ht as signInEmail, it as getEndpoints, jt as error, kt as resetPassword, lt as deleteUser, mt as signOut, nt as createAuthEndpoint, ot as router, pt as signUpEmail, rt as createAuthMiddleware, st as changeEmail, tt as checkEndpointConflicts, ut as deleteUserCallback, vt as getSession, wt as revokeSessions, xt as requestOnlySessionMiddleware, yt as getSessionFromCtx, zt as linkSocialAccount } from "../index-3lfPQHhX.mjs";
2
+ import { $ as AuthEndpoint, At as ok, Bt as listUserAccounts, Ct as revokeSession, Dt as requestPasswordReset, Et as sessionMiddleware, Ft as verifyEmail, Gt as originCheckMiddleware, Ht as unlinkAccount, It as callbackOAuth, Kt as getOAuthState, Lt as accountInfo, Mt as createEmailVerificationToken, Nt as sendVerificationEmail, Ot as requestPasswordResetCallback, Pt as sendVerificationEmailFn, Q as APIError, Rt as getAccessToken, St as revokeOtherSessions, Tt as sensitiveSessionMiddleware, Ut as isSimpleRequest, Vt as refreshToken, Wt as originCheck, _t as freshSessionMiddleware, at as optionsMiddleware, bt as listSessions, ct as changePassword, dt as setPassword, et as AuthMiddleware, ft as updateUser, gt as signInSocial, ht as signInEmail, it as getEndpoints, jt as error, kt as resetPassword, lt as deleteUser, mt as signOut, nt as createAuthEndpoint, ot as router, pt as signUpEmail, rt as createAuthMiddleware, st as changeEmail, tt as checkEndpointConflicts, ut as deleteUserCallback, vt as getSession, wt as revokeSessions, xt as requestOnlySessionMiddleware, yt as getSessionFromCtx, zt as linkSocialAccount } from "../index-CZtQ0rUe.mjs";
3
3
  import "../types-DNQ9XQrB.mjs";
4
4
  import "../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../plugins-Dy_FrD4Y.mjs";
@@ -1,5 +1,5 @@
1
1
  import { d as PrettifyDeep, h as UnionToIntersection } from "../helper-BgOIGHsu.mjs";
2
- import { B as InferPluginsFromClient, F as ClientStore, G as PayvoAuthClientPlugin, H as InferUserFromClient, I as InferActions, K as SessionQueryParams, L as InferAdditionalFromClient, M as AtomListener, N as ClientAtomListener, P as ClientOptions, R as InferClientAPI, U as IsSignal, V as InferSessionFromClient, W as PayvoAuthClientOptions, q as Store, z as InferErrorCodes } from "../index-3lfPQHhX.mjs";
2
+ import { B as InferPluginsFromClient, F as ClientStore, G as PayvoAuthClientPlugin, H as InferUserFromClient, I as InferActions, K as SessionQueryParams, L as InferAdditionalFromClient, M as AtomListener, N as ClientAtomListener, P as ClientOptions, R as InferClientAPI, U as IsSignal, V as InferSessionFromClient, W as PayvoAuthClientOptions, q as Store, z as InferErrorCodes } from "../index-CZtQ0rUe.mjs";
3
3
  import "../types-DNQ9XQrB.mjs";
4
4
  import "../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../plugins-Dy_FrD4Y.mjs";
@@ -1,34 +1,34 @@
1
1
  import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, f as Primitive, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../../helper-BgOIGHsu.mjs";
2
- import { K as SessionQueryParams, Y as Auth, g as User$1, h as Session$1, i as PayvoAuthPlugin$1, mn as InferAdditionalFieldsFromPluginOptions, r as PayvoAuthOptions$1 } from "../../index-3lfPQHhX.mjs";
2
+ import { K as SessionQueryParams, Y as Auth, g as User$1, h as Session$1, i as PayvoAuthPlugin$1, mn as InferAdditionalFieldsFromPluginOptions, r as PayvoAuthOptions$1 } from "../../index-CZtQ0rUe.mjs";
3
3
  import "../../types-DNQ9XQrB.mjs";
4
4
  import "../../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../../plugins-Dy_FrD4Y.mjs";
6
6
  import { a as Role, i as AccessControl, o as Statements } from "../../index-CxlWnL9c.mjs";
7
- import { t as admin } from "../../index-Blq8KrTy.mjs";
8
- import { r as anonymous } from "../../index-B4aWSJEd.mjs";
9
- import { L as apiKey } from "../../index-B7iZf_Dl.mjs";
10
- import "../../index-CWxKeTtE.mjs";
11
- import "../../index-382PsmkK.mjs";
12
- import "../../index-D0SgItjY.mjs";
13
- import { i as deviceAuthorizationClient } from "../../index-DxRAXHrZ.mjs";
14
- import { n as emailOTP } from "../../index-C8F7PsET.mjs";
15
- import { n as genericOAuth } from "../../index-DUu0ieh6.mjs";
16
- import "../../index-DCliG2n6.mjs";
17
- import { t as jwt } from "../../index-DPVukjga.mjs";
18
- import { t as magicLink } from "../../index-DxIqV3rU.mjs";
19
- import { t as multiSession } from "../../index-Dg6Ftb6f.mjs";
20
- import "../../index-C-z4TCHD.mjs";
21
- import "../../index-CIxFDcfQ.mjs";
22
- import { t as oneTimeToken } from "../../index-B5r4oL5q.mjs";
7
+ import { t as admin } from "../../index-BYxt8qOP.mjs";
8
+ import { r as anonymous } from "../../index-Dt6JhAV4.mjs";
9
+ import { L as apiKey } from "../../index-DWSbFJWU.mjs";
10
+ import "../../index-Czr_eQFE.mjs";
11
+ import "../../index-Dmjw6re9.mjs";
12
+ import "../../index-CLhlur69.mjs";
13
+ import { i as deviceAuthorizationClient } from "../../index-rcUKPBBy.mjs";
14
+ import { n as emailOTP } from "../../index-DYqQWdEv.mjs";
15
+ import { n as genericOAuth } from "../../index-Clwezlxm.mjs";
16
+ import "../../index-D85KXOKz.mjs";
17
+ import { t as jwt } from "../../index-UDzaYKxq.mjs";
18
+ import { t as magicLink } from "../../index-D5cyFBEb.mjs";
19
+ import { t as multiSession } from "../../index-B-i2ob-C.mjs";
20
+ import "../../index-Cl9ITXy1.mjs";
21
+ import "../../index-DGRGLg16.mjs";
22
+ import { t as oneTimeToken } from "../../index-BRUQHEUF.mjs";
23
23
  import "../../index-QmocqGM-.mjs";
24
- import { F as OrganizationOptions, S as Team, b as OrganizationRole, c as InferMember, f as InferTeam, g as Member, l as InferOrganization, p as Invitation, r as OrganizationPlugin, s as InferInvitation, v as Organization, w as TeamMember } from "../../index-CExSHSFz.mjs";
25
- import { r as phoneNumber } from "../../index-Dgyj1fTk.mjs";
26
- import { n as twoFactorClient } from "../../index-CWwQ1Q7t.mjs";
27
- import { n as Passkey, t as passkey } from "../../index-COFPq-mg.mjs";
28
- import { n as username } from "../../index-De2a2OyC.mjs";
29
- import { t as auditLogClient } from "../../client-D8XKNpua.mjs";
30
- import { t as sentinelClient } from "../../client-CDaFOX7A.mjs";
31
- import * as _gatwech_core54 from "@gatwech/core";
24
+ import { F as OrganizationOptions, S as Team, b as OrganizationRole, c as InferMember, f as InferTeam, g as Member, l as InferOrganization, p as Invitation, r as OrganizationPlugin, s as InferInvitation, v as Organization, w as TeamMember } from "../../index-JzSy-vFn.mjs";
25
+ import { r as phoneNumber } from "../../index-CGGitykk.mjs";
26
+ import { n as twoFactorClient } from "../../index-DWGj7du8.mjs";
27
+ import { n as Passkey, t as passkey } from "../../index-CHMYUshk.mjs";
28
+ import { n as username } from "../../index-Hoybqpnt.mjs";
29
+ import { t as auditLogClient } from "../../client-CGV_kj99.mjs";
30
+ import { t as sentinelClient } from "../../client-CT-acJeN.mjs";
31
+ import * as _gatwech_core61 from "@gatwech/core";
32
32
  import { ClientStore, PayvoAuthOptions } from "@gatwech/core";
33
33
  import { DBFieldAttribute } from "@gatwech/core/db";
34
34
  import * as _better_fetch_fetch37 from "@better-fetch/fetch";
@@ -369,7 +369,7 @@ interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId"
369
369
  }
370
370
  declare const oneTapClient: (options: GoogleOneTapOptions) => {
371
371
  id: "one-tap";
372
- getActions: ($fetch: _better_fetch_fetch37.BetterFetch, _: _gatwech_core54.ClientStore) => {
372
+ getActions: ($fetch: _better_fetch_fetch37.BetterFetch, _: _gatwech_core61.ClientStore) => {
373
373
  oneTap: (opts?: GoogleOneTapActionOptions | undefined, fetchOptions?: BetterFetchOption | undefined) => Promise<void>;
374
374
  };
375
375
  getAtoms($fetch: _better_fetch_fetch37.BetterFetch): {};
@@ -471,7 +471,7 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
471
471
  } ? true : false;
472
472
  };
473
473
  }>;
474
- getActions: ($fetch: _better_fetch_fetch37.BetterFetch, _$store: _gatwech_core54.ClientStore, co: _gatwech_core54.PayvoAuthClientOptions | undefined) => {
474
+ getActions: ($fetch: _better_fetch_fetch37.BetterFetch, _$store: _gatwech_core61.ClientStore, co: _gatwech_core61.PayvoAuthClientOptions | undefined) => {
475
475
  $Infer: {
476
476
  ActiveOrganization: CO["teams"] extends {
477
477
  enabled: true;
@@ -1,11 +1,11 @@
1
1
  import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-BgOIGHsu.mjs";
2
- import { I as InferActions, K as SessionQueryParams, R as InferClientAPI, U as IsSignal, z as InferErrorCodes } from "../../index-3lfPQHhX.mjs";
2
+ import { I as InferActions, K as SessionQueryParams, R as InferClientAPI, U as IsSignal, z as InferErrorCodes } from "../../index-CZtQ0rUe.mjs";
3
3
  import "../../types-DNQ9XQrB.mjs";
4
4
  import "../../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../../plugins-Dy_FrD4Y.mjs";
6
6
  import { PayvoAuthClientOptions, PayvoAuthClientPlugin } from "@gatwech/core";
7
7
  import { BASE_ERROR_CODES } from "@gatwech/core/error";
8
- import * as _better_fetch_fetch2 from "@better-fetch/fetch";
8
+ import * as _better_fetch_fetch0 from "@better-fetch/fetch";
9
9
  import { BetterFetchError } from "@better-fetch/fetch";
10
10
  import * as nanostores0 from "nanostores";
11
11
  import { Store, StoreValue } from "nanostores";
@@ -97,27 +97,27 @@ declare function createAuthClient<Option extends PayvoAuthClientOptions>(options
97
97
  error: null;
98
98
  } ? S : Res : never>;
99
99
  };
100
- $fetch: _better_fetch_fetch2.BetterFetch<{
101
- plugins: (_better_fetch_fetch2.BetterFetchPlugin | {
100
+ $fetch: _better_fetch_fetch0.BetterFetch<{
101
+ plugins: (_better_fetch_fetch0.BetterFetchPlugin | {
102
102
  id: string;
103
103
  name: string;
104
104
  hooks: {
105
- onSuccess(context: _better_fetch_fetch2.SuccessContext<any>): void;
105
+ onSuccess(context: _better_fetch_fetch0.SuccessContext<any>): void;
106
106
  };
107
107
  } | {
108
108
  id: string;
109
109
  name: string;
110
110
  hooks: {
111
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch2.RequestContext<T>): void;
111
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>): void;
112
112
  };
113
113
  } | {
114
114
  id: string;
115
115
  name: string;
116
116
  hooks: {
117
- onSuccess: ((context: _better_fetch_fetch2.SuccessContext<any>) => Promise<void> | void) | undefined;
118
- onError: ((context: _better_fetch_fetch2.ErrorContext) => Promise<void> | void) | undefined;
119
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch2.RequestContext<T>) => Promise<_better_fetch_fetch2.RequestContext | void> | _better_fetch_fetch2.RequestContext | void) | undefined;
120
- onResponse: ((context: _better_fetch_fetch2.ResponseContext) => Promise<Response | void | _better_fetch_fetch2.ResponseContext> | Response | _better_fetch_fetch2.ResponseContext | void) | undefined;
117
+ onSuccess: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
118
+ onError: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
119
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
120
+ onResponse: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
121
121
  };
122
122
  })[];
123
123
  method: string;
@@ -137,12 +137,12 @@ declare function createAuthClient<Option extends PayvoAuthClientOptions>(options
137
137
  referrerPolicy?: ReferrerPolicy | undefined;
138
138
  signal?: (AbortSignal | null) | undefined;
139
139
  window?: null | undefined;
140
- onRetry?: ((response: _better_fetch_fetch2.ResponseContext) => Promise<void> | void) | undefined;
140
+ onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
141
141
  hookOptions?: {
142
142
  cloneResponse?: boolean;
143
143
  } | undefined;
144
144
  timeout?: number | undefined;
145
- customFetchImpl: _better_fetch_fetch2.FetchEsque;
145
+ customFetchImpl: _better_fetch_fetch0.FetchEsque;
146
146
  baseURL: string;
147
147
  throw?: boolean | undefined;
148
148
  auth?: ({
@@ -162,10 +162,10 @@ declare function createAuthClient<Option extends PayvoAuthClientOptions>(options
162
162
  params?: any;
163
163
  duplex?: "full" | "half" | undefined;
164
164
  jsonParser: (text: string) => Promise<any> | any;
165
- retry?: _better_fetch_fetch2.RetryOptions | undefined;
165
+ retry?: _better_fetch_fetch0.RetryOptions | undefined;
166
166
  retryAttempt?: number | undefined;
167
- output?: (_better_fetch_fetch2.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
168
- errorSchema?: _better_fetch_fetch2.StandardSchemaV1 | undefined;
167
+ output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
168
+ errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
169
169
  disableValidation?: boolean | undefined;
170
170
  }, unknown, unknown, {}>;
171
171
  $store: {
@@ -1,4 +1,4 @@
1
- import { n as auditLog } from "./index-B7iZf_Dl.mjs";
1
+ import { n as auditLog } from "./index-DWSbFJWU.mjs";
2
2
 
3
3
  //#region src/plugins/audit-log/client.d.ts
4
4
  declare const auditLogClient: () => {
@@ -1,5 +1,5 @@
1
- import { c as sentinel } from "./index-B7iZf_Dl.mjs";
2
- import * as _better_fetch_fetch0 from "@better-fetch/fetch";
1
+ import { c as sentinel } from "./index-DWSbFJWU.mjs";
2
+ import * as _better_fetch_fetch16 from "@better-fetch/fetch";
3
3
 
4
4
  //#region src/plugins/sentinel/client.d.ts
5
5
  declare const sentinelClient: (options?: {
@@ -63,11 +63,11 @@ declare const sentinelClient: (options?: {
63
63
  id: string;
64
64
  name: string;
65
65
  hooks: {
66
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>): Promise<_better_fetch_fetch0.RequestContext<T>>;
66
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch16.RequestContext<T>): Promise<_better_fetch_fetch16.RequestContext<T>>;
67
67
  onResponse({
68
68
  response,
69
69
  request
70
- }: _better_fetch_fetch0.ResponseContext): Promise<Response | undefined>;
70
+ }: _better_fetch_fetch16.ResponseContext): Promise<Response | undefined>;
71
71
  };
72
72
  }[];
73
73
  };
@@ -1,7 +1,7 @@
1
1
  import "../helper-BgOIGHsu.mjs";
2
- import "../index-3lfPQHhX.mjs";
2
+ import "../index-CZtQ0rUe.mjs";
3
3
  import "../types-DNQ9XQrB.mjs";
4
4
  import "../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../plugins-Dy_FrD4Y.mjs";
6
- import { a as getCookies, c as setCookieCache, d as getChunkedCookie, f as parseSetCookieHeader, i as getCookieCache, l as setSessionCookie, n as createCookieGetter, o as getSessionCookie, p as setCookieToHeader, r as deleteSessionCookie, s as parseCookies, t as EligibleCookies, u as createSessionStore } from "../index-BhYE1_9j.mjs";
6
+ import { a as getCookies, c as setCookieCache, d as getChunkedCookie, f as parseSetCookieHeader, i as getCookieCache, l as setSessionCookie, n as createCookieGetter, o as getSessionCookie, p as setCookieToHeader, r as deleteSessionCookie, s as parseCookies, t as EligibleCookies, u as createSessionStore } from "../index-B6to9CaK.mjs";
7
7
  export { EligibleCookies, createCookieGetter, createSessionStore, deleteSessionCookie, getChunkedCookie, getCookieCache, getCookies, getSessionCookie, parseCookies, parseSetCookieHeader, setCookieCache, setCookieToHeader, setSessionCookie };
@@ -1,5 +1,5 @@
1
1
  import "../helper-BgOIGHsu.mjs";
2
- import { $t as mergeSchema, Jt as convertFromDB, Qt as toZodSchema, Sn as createFieldAttribute, Xt as getAdapter, Yt as convertToDB, Zt as FieldAttributeToSchema, _n as InferFieldsInput, an as parseSessionOutput, bn as InferValueType, cn as createInternalAdapter, dn as getMigrations, en as parseAccountInput, fn as matchType, gn as InferFieldsFromPlugins, hn as InferFieldsFromOptions, in as parseSessionInput, ln as getAuthTables, mn as InferAdditionalFieldsFromPluginOptions, nn as parseAdditionalUserInput, on as parseUserInput, pn as FieldAttributeToObject, qt as getWithHooks, rn as parseInputData, sn as parseUserOutput, tn as parseAccountOutput, un as getSchema, vn as InferFieldsInputClient, xn as PluginFieldAttribute, yn as InferFieldsOutput } from "../index-3lfPQHhX.mjs";
2
+ import { $t as mergeSchema, Jt as convertFromDB, Qt as toZodSchema, Sn as createFieldAttribute, Xt as getAdapter, Yt as convertToDB, Zt as FieldAttributeToSchema, _n as InferFieldsInput, an as parseSessionOutput, bn as InferValueType, cn as createInternalAdapter, dn as getMigrations, en as parseAccountInput, fn as matchType, gn as InferFieldsFromPlugins, hn as InferFieldsFromOptions, in as parseSessionInput, ln as getAuthTables, mn as InferAdditionalFieldsFromPluginOptions, nn as parseAdditionalUserInput, on as parseUserInput, pn as FieldAttributeToObject, qt as getWithHooks, rn as parseInputData, sn as parseUserOutput, tn as parseAccountOutput, un as getSchema, vn as InferFieldsInputClient, xn as PluginFieldAttribute, yn as InferFieldsOutput } from "../index-CZtQ0rUe.mjs";
3
3
  import "../types-DNQ9XQrB.mjs";
4
4
  import "../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../plugins-Dy_FrD4Y.mjs";
@@ -1,6 +1,6 @@
1
1
  import { o as Session, s as User } from "./index-BL_t8cRp-C4QYBsac.mjs";
2
- import * as _gatwech_core32 from "@gatwech/core";
3
- import * as better_call140 from "better-call";
2
+ import * as _gatwech_core38 from "@gatwech/core";
3
+ import * as better_call195 from "better-call";
4
4
  import * as z$1 from "zod";
5
5
 
6
6
  //#region src/plugins/multi-session/index.d.ts
@@ -46,7 +46,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
46
46
  } & {
47
47
  asResponse?: boolean;
48
48
  returnHeaders?: boolean;
49
- use?: better_call140.Middleware[];
49
+ use?: better_call195.Middleware[];
50
50
  path?: string;
51
51
  } & {
52
52
  asResponse?: AsResponse | undefined;
@@ -102,7 +102,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
102
102
  } & {
103
103
  asResponse?: boolean;
104
104
  returnHeaders?: boolean;
105
- use?: better_call140.Middleware[];
105
+ use?: better_call195.Middleware[];
106
106
  path?: string;
107
107
  } & {
108
108
  asResponse?: AsResponse | undefined;
@@ -123,7 +123,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
123
123
  sessionToken: z$1.ZodString;
124
124
  }, z$1.core.$strip>;
125
125
  requireHeaders: true;
126
- use: ((inputContext: better_call140.MiddlewareInputContext<better_call140.MiddlewareOptions>) => Promise<{
126
+ use: ((inputContext: better_call195.MiddlewareInputContext<better_call195.MiddlewareOptions>) => Promise<{
127
127
  session: {
128
128
  session: Record<string, any> & {
129
129
  id: string;
@@ -206,7 +206,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
206
206
  } & {
207
207
  asResponse?: boolean;
208
208
  returnHeaders?: boolean;
209
- use?: better_call140.Middleware[];
209
+ use?: better_call195.Middleware[];
210
210
  path?: string;
211
211
  } & {
212
212
  asResponse?: AsResponse | undefined;
@@ -225,7 +225,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
225
225
  sessionToken: z$1.ZodString;
226
226
  }, z$1.core.$strip>;
227
227
  requireHeaders: true;
228
- use: ((inputContext: better_call140.MiddlewareInputContext<better_call140.MiddlewareOptions>) => Promise<{
228
+ use: ((inputContext: better_call195.MiddlewareInputContext<better_call195.MiddlewareOptions>) => Promise<{
229
229
  session: {
230
230
  session: Record<string, any> & {
231
231
  id: string;
@@ -278,8 +278,8 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
278
278
  };
279
279
  hooks: {
280
280
  after: {
281
- matcher: (context: _gatwech_core32.HookEndpointContext) => boolean;
282
- handler: (inputContext: better_call140.MiddlewareInputContext<better_call140.MiddlewareOptions>) => Promise<void>;
281
+ matcher: (context: _gatwech_core38.HookEndpointContext) => boolean;
282
+ handler: (inputContext: better_call195.MiddlewareInputContext<better_call195.MiddlewareOptions>) => Promise<void>;
283
283
  }[];
284
284
  };
285
285
  $ERROR_CODES: {
@@ -1,4 +1,4 @@
1
- import { g as User, h as Session } from "./index-3lfPQHhX.mjs";
1
+ import { g as User, h as Session } from "./index-CZtQ0rUe.mjs";
2
2
  import { GenericEndpointContext, PayvoAuthCookies, PayvoAuthOptions } from "@gatwech/core";
3
3
  import { CookieOptions } from "better-call";
4
4
  import "zod";
@@ -1,6 +1,6 @@
1
- import { g as User, h as Session } from "./index-3lfPQHhX.mjs";
1
+ import { g as User, h as Session } from "./index-CZtQ0rUe.mjs";
2
2
  import { GenericEndpointContext } from "@gatwech/core";
3
- import * as better_call154 from "better-call";
3
+ import * as better_call0 from "better-call";
4
4
  import * as z$1 from "zod";
5
5
 
6
6
  //#region src/plugins/one-time-token/index.d.ts
@@ -67,7 +67,7 @@ declare const oneTimeToken: (options?: OneTimeTokenOptions | undefined) => {
67
67
  } & {
68
68
  asResponse?: boolean;
69
69
  returnHeaders?: boolean;
70
- use?: better_call154.Middleware[];
70
+ use?: better_call0.Middleware[];
71
71
  path?: string;
72
72
  } & {
73
73
  asResponse?: AsResponse | undefined;
@@ -82,7 +82,7 @@ declare const oneTimeToken: (options?: OneTimeTokenOptions | undefined) => {
82
82
  }>;
83
83
  options: {
84
84
  method: "GET";
85
- use: ((inputContext: better_call154.MiddlewareInputContext<better_call154.MiddlewareOptions>) => Promise<{
85
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
86
86
  session: {
87
87
  session: Record<string, any> & {
88
88
  id: string;
@@ -143,7 +143,7 @@ declare const oneTimeToken: (options?: OneTimeTokenOptions | undefined) => {
143
143
  } & {
144
144
  asResponse?: boolean;
145
145
  returnHeaders?: boolean;
146
- use?: better_call154.Middleware[];
146
+ use?: better_call0.Middleware[];
147
147
  path?: string;
148
148
  } & {
149
149
  asResponse?: AsResponse | undefined;
@@ -1,9 +1,9 @@
1
- import { g as User, h as Session } from "./index-3lfPQHhX.mjs";
1
+ import { g as User, h as Session } from "./index-CZtQ0rUe.mjs";
2
2
  import { s as User$1 } from "./index-BL_t8cRp-C4QYBsac.mjs";
3
3
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
4
4
  import { a as Role, i as AccessControl, o as Statements } from "./index-CxlWnL9c.mjs";
5
- import * as _gatwech_core51 from "@gatwech/core";
6
- import * as better_call237 from "better-call";
5
+ import * as _gatwech_core58 from "@gatwech/core";
6
+ import * as better_call256 from "better-call";
7
7
  import * as z$1 from "zod";
8
8
 
9
9
  //#region src/plugins/admin/schema.d.ts
@@ -159,7 +159,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
159
159
  token: string;
160
160
  ipAddress?: string | null | undefined;
161
161
  userAgent?: string | null | undefined;
162
- } & Record<string, unknown>, ctx: _gatwech_core51.GenericEndpointContext<_gatwech_core51.PayvoAuthOptions> | undefined): Promise<void>;
162
+ } & Record<string, unknown>, ctx: _gatwech_core58.GenericEndpointContext<_gatwech_core58.PayvoAuthOptions> | undefined): Promise<void>;
163
163
  };
164
164
  };
165
165
  };
@@ -167,8 +167,8 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
167
167
  };
168
168
  hooks: {
169
169
  after: {
170
- matcher(context: _gatwech_core51.HookEndpointContext): boolean;
171
- handler: (inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<SessionWithImpersonatedBy[] | undefined>;
170
+ matcher(context: _gatwech_core58.HookEndpointContext): boolean;
171
+ handler: (inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<SessionWithImpersonatedBy[] | undefined>;
172
172
  }[];
173
173
  };
174
174
  endpoints: {
@@ -206,7 +206,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
206
206
  } & {
207
207
  asResponse?: boolean;
208
208
  returnHeaders?: boolean;
209
- use?: better_call237.Middleware[];
209
+ use?: better_call256.Middleware[];
210
210
  path?: string;
211
211
  } & {
212
212
  asResponse?: AsResponse | undefined;
@@ -226,7 +226,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
226
226
  role: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodArray<z$1.ZodString>]>;
227
227
  }, z$1.core.$strip>;
228
228
  requireHeaders: true;
229
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
229
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
230
230
  session: {
231
231
  user: UserWithRole;
232
232
  session: Session;
@@ -285,7 +285,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
285
285
  } & {
286
286
  asResponse?: boolean;
287
287
  returnHeaders?: boolean;
288
- use?: better_call237.Middleware[];
288
+ use?: better_call256.Middleware[];
289
289
  path?: string;
290
290
  } & {
291
291
  asResponse?: AsResponse | undefined;
@@ -315,7 +315,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
315
315
  query: z$1.ZodObject<{
316
316
  id: z$1.ZodString;
317
317
  }, z$1.core.$strip>;
318
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
318
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
319
319
  session: {
320
320
  user: UserWithRole;
321
321
  session: Session;
@@ -387,7 +387,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
387
387
  } & {
388
388
  asResponse?: boolean;
389
389
  returnHeaders?: boolean;
390
- use?: better_call237.Middleware[];
390
+ use?: better_call256.Middleware[];
391
391
  path?: string;
392
392
  } & {
393
393
  asResponse?: AsResponse | undefined;
@@ -481,7 +481,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
481
481
  } & {
482
482
  asResponse?: boolean;
483
483
  returnHeaders?: boolean;
484
- use?: better_call237.Middleware[];
484
+ use?: better_call256.Middleware[];
485
485
  path?: string;
486
486
  } & {
487
487
  asResponse?: AsResponse | undefined;
@@ -496,7 +496,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
496
496
  userId: z$1.ZodCoercedString<unknown>;
497
497
  data: z$1.ZodRecord<z$1.ZodAny, z$1.ZodAny>;
498
498
  }, z$1.core.$strip>;
499
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
499
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
500
500
  session: {
501
501
  user: UserWithRole;
502
502
  session: Session;
@@ -558,7 +558,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
558
558
  } & {
559
559
  asResponse?: boolean;
560
560
  returnHeaders?: boolean;
561
- use?: better_call237.Middleware[];
561
+ use?: better_call256.Middleware[];
562
562
  path?: string;
563
563
  } & {
564
564
  asResponse?: AsResponse | undefined;
@@ -585,7 +585,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
585
585
  }>;
586
586
  options: {
587
587
  method: "GET";
588
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
588
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
589
589
  session: {
590
590
  user: UserWithRole;
591
591
  session: Session;
@@ -696,7 +696,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
696
696
  } & {
697
697
  asResponse?: boolean;
698
698
  returnHeaders?: boolean;
699
- use?: better_call237.Middleware[];
699
+ use?: better_call256.Middleware[];
700
700
  path?: string;
701
701
  } & {
702
702
  asResponse?: AsResponse | undefined;
@@ -711,7 +711,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
711
711
  }>;
712
712
  options: {
713
713
  method: "POST";
714
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
714
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
715
715
  session: {
716
716
  user: UserWithRole;
717
717
  session: Session;
@@ -785,7 +785,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
785
785
  } & {
786
786
  asResponse?: boolean;
787
787
  returnHeaders?: boolean;
788
- use?: better_call237.Middleware[];
788
+ use?: better_call256.Middleware[];
789
789
  path?: string;
790
790
  } & {
791
791
  asResponse?: AsResponse | undefined;
@@ -803,7 +803,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
803
803
  body: z$1.ZodObject<{
804
804
  userId: z$1.ZodCoercedString<unknown>;
805
805
  }, z$1.core.$strip>;
806
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
806
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
807
807
  session: {
808
808
  user: UserWithRole;
809
809
  session: Session;
@@ -873,7 +873,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
873
873
  } & {
874
874
  asResponse?: boolean;
875
875
  returnHeaders?: boolean;
876
- use?: better_call237.Middleware[];
876
+ use?: better_call256.Middleware[];
877
877
  path?: string;
878
878
  } & {
879
879
  asResponse?: AsResponse | undefined;
@@ -893,7 +893,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
893
893
  banReason: z$1.ZodOptional<z$1.ZodString>;
894
894
  banExpiresIn: z$1.ZodOptional<z$1.ZodNumber>;
895
895
  }, z$1.core.$strip>;
896
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
896
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
897
897
  session: {
898
898
  user: UserWithRole;
899
899
  session: Session;
@@ -961,7 +961,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
961
961
  } & {
962
962
  asResponse?: boolean;
963
963
  returnHeaders?: boolean;
964
- use?: better_call237.Middleware[];
964
+ use?: better_call256.Middleware[];
965
965
  path?: string;
966
966
  } & {
967
967
  asResponse?: AsResponse | undefined;
@@ -1015,7 +1015,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1015
1015
  body: z$1.ZodObject<{
1016
1016
  userId: z$1.ZodCoercedString<unknown>;
1017
1017
  }, z$1.core.$strip>;
1018
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
1018
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
1019
1019
  session: {
1020
1020
  user: UserWithRole;
1021
1021
  session: Session;
@@ -1084,7 +1084,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1084
1084
  } & {
1085
1085
  asResponse?: boolean;
1086
1086
  returnHeaders?: boolean;
1087
- use?: better_call237.Middleware[];
1087
+ use?: better_call256.Middleware[];
1088
1088
  path?: string;
1089
1089
  } & {
1090
1090
  asResponse?: AsResponse | undefined;
@@ -1140,7 +1140,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1140
1140
  } & {
1141
1141
  asResponse?: boolean;
1142
1142
  returnHeaders?: boolean;
1143
- use?: better_call237.Middleware[];
1143
+ use?: better_call256.Middleware[];
1144
1144
  path?: string;
1145
1145
  } & {
1146
1146
  asResponse?: AsResponse | undefined;
@@ -1158,7 +1158,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1158
1158
  body: z$1.ZodObject<{
1159
1159
  sessionToken: z$1.ZodString;
1160
1160
  }, z$1.core.$strip>;
1161
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
1161
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
1162
1162
  session: {
1163
1163
  user: UserWithRole;
1164
1164
  session: Session;
@@ -1226,7 +1226,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1226
1226
  } & {
1227
1227
  asResponse?: boolean;
1228
1228
  returnHeaders?: boolean;
1229
- use?: better_call237.Middleware[];
1229
+ use?: better_call256.Middleware[];
1230
1230
  path?: string;
1231
1231
  } & {
1232
1232
  asResponse?: AsResponse | undefined;
@@ -1244,7 +1244,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1244
1244
  body: z$1.ZodObject<{
1245
1245
  userId: z$1.ZodCoercedString<unknown>;
1246
1246
  }, z$1.core.$strip>;
1247
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
1247
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
1248
1248
  session: {
1249
1249
  user: UserWithRole;
1250
1250
  session: Session;
@@ -1312,7 +1312,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1312
1312
  } & {
1313
1313
  asResponse?: boolean;
1314
1314
  returnHeaders?: boolean;
1315
- use?: better_call237.Middleware[];
1315
+ use?: better_call256.Middleware[];
1316
1316
  path?: string;
1317
1317
  } & {
1318
1318
  asResponse?: AsResponse | undefined;
@@ -1330,7 +1330,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1330
1330
  body: z$1.ZodObject<{
1331
1331
  userId: z$1.ZodCoercedString<unknown>;
1332
1332
  }, z$1.core.$strip>;
1333
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
1333
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
1334
1334
  session: {
1335
1335
  user: UserWithRole;
1336
1336
  session: Session;
@@ -1399,7 +1399,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1399
1399
  } & {
1400
1400
  asResponse?: boolean;
1401
1401
  returnHeaders?: boolean;
1402
- use?: better_call237.Middleware[];
1402
+ use?: better_call256.Middleware[];
1403
1403
  path?: string;
1404
1404
  } & {
1405
1405
  asResponse?: AsResponse | undefined;
@@ -1418,7 +1418,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1418
1418
  newPassword: z$1.ZodString;
1419
1419
  userId: z$1.ZodCoercedString<unknown>;
1420
1420
  }, z$1.core.$strip>;
1421
- use: ((inputContext: better_call237.MiddlewareInputContext<better_call237.MiddlewareOptions>) => Promise<{
1421
+ use: ((inputContext: better_call256.MiddlewareInputContext<better_call256.MiddlewareOptions>) => Promise<{
1422
1422
  session: {
1423
1423
  user: UserWithRole;
1424
1424
  session: Session;
@@ -1514,7 +1514,7 @@ declare const admin: <O extends AdminOptions>(options?: O | undefined) => {
1514
1514
  } & {
1515
1515
  asResponse?: boolean;
1516
1516
  returnHeaders?: boolean;
1517
- use?: better_call237.Middleware[];
1517
+ use?: better_call256.Middleware[];
1518
1518
  path?: string;
1519
1519
  } & {
1520
1520
  asResponse?: AsResponse | undefined;