@gatwech/auth 1.0.0-beta.22 → 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.
- package/dist/adapters/index.d.mts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/{audit-log-DgqHJ-uv.mjs → audit-log-DhRRCMrv.mjs} +21 -6
- package/dist/client/index.d.mts +1 -1
- package/dist/client/plugins/index.d.mts +27 -27
- package/dist/client/react/index.d.mts +1 -1
- package/dist/{client-ukvqpcbI.d.mts → client-CGV_kj99.d.mts} +1 -1
- package/dist/{client-DO9MgP_0.d.mts → client-CT-acJeN.d.mts} +1 -1
- package/dist/cookies/index.d.mts +2 -2
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-BfLofiXO.d.mts → index-B-i2ob-C.d.mts} +9 -9
- package/dist/{index-CTSeVJJB.d.mts → index-B6to9CaK.d.mts} +1 -1
- package/dist/{index-hP8gvyp-.d.mts → index-BRUQHEUF.d.mts} +5 -5
- package/dist/{index-D3uQsW8T.d.mts → index-BYxt8qOP.d.mts} +33 -33
- package/dist/{index-CRNh-5Tc.d.mts → index-CGGitykk.d.mts} +7 -7
- package/dist/{index-eOfQxlQV.d.mts → index-CHMYUshk.d.mts} +13 -13
- package/dist/{index-Dl0bD1_6.d.mts → index-CLhlur69.d.mts} +6 -6
- package/dist/{index-DngQlUSI.d.mts → index-CZtQ0rUe.d.mts} +113 -113
- package/dist/{index-Dkm27DLN.d.mts → index-Cl9ITXy1.d.mts} +10 -10
- package/dist/{index-SYRh5FW7.d.mts → index-Clwezlxm.d.mts} +8 -8
- package/dist/{index-BzzhaGLe.d.mts → index-Czr_eQFE.d.mts} +6 -6
- package/dist/{index-DKirx_GW.d.mts → index-D5cyFBEb.d.mts} +4 -4
- package/dist/{index-BC0aAKsT.d.mts → index-D85KXOKz.d.mts} +3 -3
- package/dist/{index-CxhQu1HM.d.mts → index-DGRGLg16.d.mts} +2 -2
- package/dist/{index-B4hJVVRn.d.mts → index-DWGj7du8.d.mts} +19 -19
- package/dist/{index-AiKdOFSd.d.mts → index-DWSbFJWU.d.mts} +387 -49
- package/dist/{index-Do8AV4PF.d.mts → index-DYqQWdEv.d.mts} +13 -13
- package/dist/{index-DlS-HqZR.d.mts → index-Dmjw6re9.d.mts} +2 -2
- package/dist/{index-CRiKKdkb.d.mts → index-Dt6JhAV4.d.mts} +6 -6
- package/dist/{index-pdl9MzQu.d.mts → index-Hoybqpnt.d.mts} +9 -9
- package/dist/{index-DSoiUc1C.d.mts → index-JzSy-vFn.d.mts} +166 -166
- package/dist/{index-D-rjuF7p.d.mts → index-UDzaYKxq.d.mts} +9 -9
- package/dist/{index-CBGNX7W1.d.mts → index-rcUKPBBy.d.mts} +6 -6
- package/dist/index.d.mts +1 -1
- package/dist/integrations/next-js.d.mts +4 -4
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/react-start.d.mts +4 -4
- package/dist/oauth2/index.d.mts +1 -1
- package/dist/plugins/admin/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/audit-log/client.d.mts +23 -23
- package/dist/plugins/audit-log/index.d.mts +22 -22
- package/dist/plugins/audit-log/index.mjs +2 -2
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.mts +2 -2
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/index.d.mts +22 -22
- package/dist/plugins/index.mjs +3 -3
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.mjs +3 -3
- package/dist/plugins/organization/index.d.mts +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/plugins/phone-number/index.d.mts +2 -2
- package/dist/plugins/sentinel/client.d.mts +23 -23
- package/dist/plugins/sentinel/index.d.mts +22 -22
- package/dist/plugins/sentinel/index.mjs +2 -2
- package/dist/plugins/two-factor/index.d.mts +2 -2
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/{registry-CqG_3Qnx.mjs → registry-GztLf62p.mjs} +14 -2
- package/dist/{sentinel-B-2jmmZh.mjs → sentinel-b8XEetew.mjs} +265 -9
- package/dist/src/plugins/audit-log/events.d.ts +1 -0
- package/dist/src/plugins/audit-log/index.d.ts +45 -0
- package/dist/src/plugins/sentinel/actions.d.ts +2 -0
- package/dist/src/plugins/sentinel/index.d.ts +247 -0
- package/dist/src/plugins/sentinel/schema.d.ts +37 -0
- package/dist/src/plugins/sentinel/store.d.ts +34 -0
- package/dist/src/plugins/sentinel/types.d.ts +7 -0
- package/dist/src/utils/has-role.d.ts +5 -0
- package/dist/test-utils/index.d.mts +273 -273
- package/dist/test-utils/index.mjs +3 -3
- package/dist/types/index.d.mts +1 -1
- 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-
|
|
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";
|
package/dist/api/index.d.mts
CHANGED
|
@@ -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-
|
|
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";
|
|
@@ -2,7 +2,7 @@ import { t as getIp } from "./get-request-ip-DSjrEpGo.mjs";
|
|
|
2
2
|
import { t as generateRandomString } from "./random-32E3cU5o.mjs";
|
|
3
3
|
import { n as mergeSchema } from "./date-CMr04reD.mjs";
|
|
4
4
|
import { r as getSessionFromCtx, u as sessionMiddleware } from "./session-BB3oqApE.mjs";
|
|
5
|
-
import { a as CREDENTIAL_SIGN_IN_PATHS, c as SIGN_IN_PATHS, i as AUDIT_EVENT_TYPES, l as VERIFICATION_PATHS, n as registerAuditRecorder, o as PATH_EVENTS, r as ALL_EVENT_TYPES, s as SECURITY_EVENT_TYPES } from "./registry-
|
|
5
|
+
import { a as CREDENTIAL_SIGN_IN_PATHS, c as SIGN_IN_PATHS, i as AUDIT_EVENT_TYPES, l as VERIFICATION_PATHS, n as registerAuditRecorder, o as PATH_EVENTS, r as ALL_EVENT_TYPES, s as SECURITY_EVENT_TYPES, u as hasRole } from "./registry-GztLf62p.mjs";
|
|
6
6
|
import { env } from "@gatwech/core/env";
|
|
7
7
|
import { defineErrorCodes } from "@gatwech/core/utils";
|
|
8
8
|
import { APIError } from "better-call";
|
|
@@ -453,10 +453,6 @@ const auditLog = (options) => {
|
|
|
453
453
|
return [];
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
function hasRole(roleField, roles) {
|
|
457
|
-
if (typeof roleField !== "string") return false;
|
|
458
|
-
return roleField.split(",").map((role) => role.trim()).some((role) => roles.includes(role));
|
|
459
|
-
}
|
|
460
456
|
async function runQuery(auth, query) {
|
|
461
457
|
try {
|
|
462
458
|
return await queryEvents(auth, query);
|
|
@@ -829,7 +825,26 @@ const auditLog = (options) => {
|
|
|
829
825
|
} } }
|
|
830
826
|
} }
|
|
831
827
|
} }
|
|
832
|
-
}, async (ctx) => ctx.json({ types: ALL_EVENT_TYPES }))
|
|
828
|
+
}, async (ctx) => ctx.json({ types: ALL_EVENT_TYPES })),
|
|
829
|
+
deleteOldEvents: createAuthEndpoint("/audit-log/delete-old-events", {
|
|
830
|
+
method: "POST",
|
|
831
|
+
body: z$1.object({ olderThanDays: z$1.number().int().min(1).meta({ description: "Delete events recorded more than this many days ago. There is no default: set it to your retention period." }) }),
|
|
832
|
+
metadata: {
|
|
833
|
+
SERVER_ONLY: true,
|
|
834
|
+
client: false
|
|
835
|
+
}
|
|
836
|
+
}, async (ctx) => {
|
|
837
|
+
if (!opts.database) return ctx.json({ deleted: 0 });
|
|
838
|
+
const deleted = await ctx.context.adapter.deleteMany({
|
|
839
|
+
model: "auditLog",
|
|
840
|
+
where: [{
|
|
841
|
+
field: "createdAt",
|
|
842
|
+
operator: "lt",
|
|
843
|
+
value: /* @__PURE__ */ new Date(Date.now() - ctx.body.olderThanDays * 864e5)
|
|
844
|
+
}]
|
|
845
|
+
});
|
|
846
|
+
return ctx.json({ deleted });
|
|
847
|
+
})
|
|
833
848
|
},
|
|
834
849
|
schema: mergedSchema,
|
|
835
850
|
$ERROR_CODES: AUDIT_LOG_ERROR_CODES,
|
package/dist/client/index.d.mts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
8
|
-
import { r as anonymous } from "../../index-
|
|
9
|
-
import { L as apiKey } from "../../index-
|
|
10
|
-
import "../../index-
|
|
11
|
-
import "../../index-
|
|
12
|
-
import "../../index-
|
|
13
|
-
import { i as deviceAuthorizationClient } from "../../index-
|
|
14
|
-
import { n as emailOTP } from "../../index-
|
|
15
|
-
import { n as genericOAuth } from "../../index-
|
|
16
|
-
import "../../index-
|
|
17
|
-
import { t as jwt } from "../../index-
|
|
18
|
-
import { t as magicLink } from "../../index-
|
|
19
|
-
import { t as multiSession } from "../../index-
|
|
20
|
-
import "../../index-
|
|
21
|
-
import "../../index-
|
|
22
|
-
import { t as oneTimeToken } from "../../index-
|
|
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-
|
|
25
|
-
import { r as phoneNumber } from "../../index-
|
|
26
|
-
import { n as twoFactorClient } from "../../index-
|
|
27
|
-
import { n as Passkey, t as passkey } from "../../index-
|
|
28
|
-
import { n as username } from "../../index-
|
|
29
|
-
import { t as auditLogClient } from "../../client-
|
|
30
|
-
import { t as sentinelClient } from "../../client-
|
|
31
|
-
import * as
|
|
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, _:
|
|
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:
|
|
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,5 +1,5 @@
|
|
|
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-
|
|
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";
|
package/dist/cookies/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../helper-BgOIGHsu.mjs";
|
|
2
|
-
import "../index-
|
|
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-
|
|
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 };
|
package/dist/db/index.d.mts
CHANGED
|
@@ -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-
|
|
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
|
|
3
|
-
import * as
|
|
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?:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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:
|
|
282
|
-
handler: (inputContext:
|
|
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-
|
|
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-
|
|
1
|
+
import { g as User, h as Session } from "./index-CZtQ0rUe.mjs";
|
|
2
2
|
import { GenericEndpointContext } from "@gatwech/core";
|
|
3
|
-
import * as
|
|
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?:
|
|
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:
|
|
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?:
|
|
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-
|
|
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
|
|
6
|
-
import * as
|
|
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:
|
|
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:
|
|
171
|
-
handler: (inputContext:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
1517
|
+
use?: better_call256.Middleware[];
|
|
1518
1518
|
path?: string;
|
|
1519
1519
|
} & {
|
|
1520
1520
|
asResponse?: AsResponse | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as User } from "./index-
|
|
1
|
+
import { g as User } from "./index-CZtQ0rUe.mjs";
|
|
2
2
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as better_call62 from "better-call";
|
|
4
4
|
import * as z$1 from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/phone-number/index.d.ts
|
|
@@ -136,7 +136,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
136
136
|
} & {
|
|
137
137
|
asResponse?: boolean;
|
|
138
138
|
returnHeaders?: boolean;
|
|
139
|
-
use?:
|
|
139
|
+
use?: better_call62.Middleware[];
|
|
140
140
|
path?: string;
|
|
141
141
|
} & {
|
|
142
142
|
asResponse?: AsResponse | undefined;
|
|
@@ -225,7 +225,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
225
225
|
} & {
|
|
226
226
|
asResponse?: boolean;
|
|
227
227
|
returnHeaders?: boolean;
|
|
228
|
-
use?:
|
|
228
|
+
use?: better_call62.Middleware[];
|
|
229
229
|
path?: string;
|
|
230
230
|
} & {
|
|
231
231
|
asResponse?: AsResponse | undefined;
|
|
@@ -307,7 +307,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
307
307
|
} & {
|
|
308
308
|
asResponse?: boolean;
|
|
309
309
|
returnHeaders?: boolean;
|
|
310
|
-
use?:
|
|
310
|
+
use?: better_call62.Middleware[];
|
|
311
311
|
path?: string;
|
|
312
312
|
} & {
|
|
313
313
|
asResponse?: AsResponse | undefined;
|
|
@@ -449,7 +449,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
449
449
|
} & {
|
|
450
450
|
asResponse?: boolean;
|
|
451
451
|
returnHeaders?: boolean;
|
|
452
|
-
use?:
|
|
452
|
+
use?: better_call62.Middleware[];
|
|
453
453
|
path?: string;
|
|
454
454
|
} & {
|
|
455
455
|
asResponse?: AsResponse | undefined;
|
|
@@ -517,7 +517,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
517
517
|
} & {
|
|
518
518
|
asResponse?: boolean;
|
|
519
519
|
returnHeaders?: boolean;
|
|
520
|
-
use?:
|
|
520
|
+
use?: better_call62.Middleware[];
|
|
521
521
|
path?: string;
|
|
522
522
|
} & {
|
|
523
523
|
asResponse?: AsResponse | undefined;
|