@gatwech/auth 1.0.0-beta.18 → 1.0.0-beta.19
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/README.md +8 -14
- package/dist/{access-C6O_osEz.mjs → access-CrwEFPHE.mjs} +1 -1
- package/dist/{access-DT1f6l5k.mjs → access-bhklJd7m.mjs} +1 -1
- package/dist/{adapter-factory-BZ2Qiqpn.mjs → adapter-factory-xbLUJt85.mjs} +2 -2
- package/dist/adapters/drizzle-adapter/index.mjs +6 -5
- package/dist/adapters/index.d.mts +5 -5
- package/dist/adapters/index.mjs +6 -5
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.mjs +8 -7
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.mjs +6 -5
- package/dist/adapters/mongodb-adapter/index.mjs +6 -5
- package/dist/adapters/prisma-adapter/index.mjs +6 -5
- package/dist/adapters/test.mjs +4 -3
- package/dist/{admin-Bcq53Nwj.mjs → admin-BzUJL6tr.mjs} +6 -6
- package/dist/{anonymous-CRt1imBW.mjs → anonymous-BjlTk4gl.mjs} +5 -5
- package/dist/api/index.d.mts +5 -5
- package/dist/api/index.mjs +12 -11
- package/dist/{api-0pR_I-Nx.mjs → api-Dk8Yj_J5.mjs} +15 -5
- package/dist/audit-log-DKsUWR8O.mjs +772 -0
- package/dist/{auth-CBUoBX6o.mjs → auth-vfCyIIeV.mjs} +8 -8
- package/dist/{bearer-Djf_awfo.mjs → bearer-DvQLM00l.mjs} +2 -2
- package/dist/client/index.d.mts +21 -21
- package/dist/client/index.mjs +4 -4
- package/dist/client/plugins/index.d.mts +53 -45
- package/dist/client/plugins/index.mjs +16 -12
- package/dist/client/react/index.d.mts +19 -19
- package/dist/client/react/index.mjs +2 -2
- package/dist/client-4QEb0rUr.mjs +95 -0
- package/dist/client-CSOs1YN7.d.mts +14 -0
- package/dist/client-DZHNfxuR.d.mts +75 -0
- package/dist/client-DzOqXJUm.mjs +15 -0
- package/dist/{client-aExCkfwm.mjs → client-xga7yFIX.mjs} +2 -2
- package/dist/cookies/index.d.mts +6 -6
- package/dist/cookies/index.mjs +2 -2
- package/dist/{cookies-cJObLwn1.mjs → cookies-BuvlgcA-.mjs} +1 -1
- package/dist/crypto/index.mjs +2 -1
- package/dist/{crypto-Bb42eMrH.mjs → crypto-CCyta8xj.mjs} +1 -6
- package/dist/{custom-session-L3t7ecsd.mjs → custom-session-DN_-pfi_.mjs} +2 -2
- package/dist/db/index.d.mts +5 -5
- package/dist/db/index.mjs +9 -8
- package/dist/{db-BrstmDhc.mjs → db-7vHnL1XA.mjs} +15 -9
- package/dist/{device-authorization-V4s3h4Mj.mjs → device-authorization-BKnNhlsz.mjs} +4 -4
- package/dist/{dialect-CeddeGHf.mjs → dialect-HsWUfpYY.mjs} +2 -2
- package/dist/{email-otp-BtDHSw14.mjs → email-otp-Dw0DypjQ.mjs} +7 -6
- package/dist/{generic-oauth-CL5X27ZI.mjs → generic-oauth-DFj27JY8.mjs} +4 -4
- package/dist/{has-permission-BpAr7uCn.mjs → has-permission-Bvg8de8g.mjs} +1 -1
- package/dist/{haveibeenpwned-cMpJvmzI.mjs → haveibeenpwned-CzNda7Tn.mjs} +28 -15
- package/dist/{client-CNY0tn9g.d.mts → index-BAVzFqII.d.mts} +21 -21
- package/dist/{index-DaBcikv9.d.mts → index-BNDRYfTF.d.mts} +2 -2
- package/dist/{index-Cxi7TbLE.d.mts → index-BNhJglHC.d.mts} +122 -122
- package/dist/{index-BYMI9r_d.d.mts → index-Blmhq6eA.d.mts} +4 -4
- package/dist/{index-BHoQlf7a.d.mts → index-CKnPAS5n.d.mts} +178 -178
- package/dist/{index-34ONrP8l.d.mts → index-COGe8UJx.d.mts} +11 -11
- package/dist/{index-Buhn3hkR.d.mts → index-CP3FNbOZ.d.mts} +8 -8
- package/dist/{index-D_k662QG.d.mts → index-CUknVRZp.d.mts} +14 -14
- package/dist/{index-DKNNV1kb.d.mts → index-CaqpCfE5.d.mts} +8 -8
- package/dist/{index-BBm8nQ9Q.d.mts → index-CgeC2eGC.d.mts} +2 -2
- package/dist/{index-DR0xXno9.d.mts → index-CsxtcAO0.d.mts} +1 -1
- package/dist/{index-CuFzhoS6.d.mts → index-Cv9iMevV.d.mts} +10 -10
- package/dist/{index-C7fQuk-V.d.mts → index-CxlWnL9c.d.mts} +1 -1
- package/dist/{index-zjjNBRY2.d.mts → index-DG-X1PK5.d.mts} +6 -6
- package/dist/index-DRM35ir1.d.mts +3769 -0
- package/dist/{index-BqhKCbPH.d.mts → index-DS-R7st3.d.mts} +6 -6
- package/dist/{index-C-u1h_WX.d.mts → index-DXVU0HGr.d.mts} +5 -5
- package/dist/{index-DoXZYQpq.d.mts → index-Db8jqUq2.d.mts} +10 -10
- package/dist/{index-65G5U5DB-DSdjzreF.d.mts → index-Df0KhQRf-BEa5tdwJ.d.mts} +3 -2
- package/dist/{index-B-XKqFvY.d.mts → index-Df4SvZaE.d.mts} +11 -4
- package/dist/{index-G6V0Z_Mn.d.mts → index-DyH_CgmX.d.mts} +10 -10
- package/dist/{admin-DtfO1PLg.d.mts → index-EABwA_BH.d.mts} +36 -36
- package/dist/{index-z0KSvE5i.d.mts → index-QmocqGM-.d.mts} +1 -1
- package/dist/{index-DlaMq1nb.d.mts → index-mxEUX2Gs.d.mts} +14 -14
- package/dist/{client-BOX93C3d.d.mts → index-xoYsoOiR.d.mts} +52 -52
- package/dist/{index-B3n8e37d.d.mts → index-zBdYQGaS.d.mts} +7 -7
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +16 -15
- package/dist/integrations/next-js.mjs +2 -2
- package/dist/integrations/node.d.mts +5 -5
- package/dist/integrations/react-start.d.mts +4 -4
- package/dist/integrations/react-start.mjs +2 -2
- package/dist/{jwt-lHV4QHpD.mjs → jwt-DBN2mu0r.mjs} +4 -4
- package/dist/{kysely-adapter-DpzYO8Yf.mjs → kysely-adapter-Bkm1liPW.mjs} +1 -1
- package/dist/{magic-link-Bk-ueorR.mjs → magic-link-D9Em1aOR.mjs} +3 -3
- package/dist/{multi-session-DRrLKrg9.mjs → multi-session-Dno_8DxC.mjs} +5 -5
- package/dist/{oauth-proxy-D1sWh9B_.mjs → oauth-proxy-DW-zt8wv.mjs} +2 -2
- package/dist/oauth2/index.d.mts +5 -5
- package/dist/oauth2/index.mjs +12 -11
- package/dist/{one-tap-DMswkTEc.mjs → one-tap-CodeyQb8.mjs} +2 -2
- package/dist/{organization-BArHO_5v.mjs → organization-CkTKs7bx.mjs} +9 -9
- package/dist/{passkey-CcD4CnhM.mjs → passkey-JNQTz5a0.mjs} +5 -5
- package/dist/{phone-number-rHDIlh-2.mjs → phone-number-Dqz8aeyF.mjs} +4 -4
- package/dist/plugins/access/index.d.mts +2 -2
- package/dist/plugins/access/index.mjs +1 -1
- package/dist/plugins/admin/access/index.d.mts +2 -2
- package/dist/plugins/admin/access/index.mjs +2 -2
- package/dist/plugins/admin/index.d.mts +7 -8
- package/dist/plugins/admin/index.mjs +17 -16
- package/dist/plugins/anonymous/index.d.mts +6 -6
- package/dist/plugins/anonymous/index.mjs +13 -12
- package/dist/plugins/audit-log/client.d.mts +30 -0
- package/dist/plugins/audit-log/client.mjs +3 -0
- package/dist/plugins/audit-log/index.d.mts +29 -0
- package/dist/plugins/audit-log/index.mjs +20 -0
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.mjs +3 -3
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.mjs +1 -1
- package/dist/plugins/custom-session/index.d.mts +6 -6
- package/dist/plugins/custom-session/index.mjs +14 -13
- package/dist/plugins/device-authorization/index.d.mts +3 -3
- package/dist/plugins/device-authorization/index.mjs +13 -12
- package/dist/plugins/email-otp/index.d.mts +2 -2
- package/dist/plugins/email-otp/index.mjs +14 -13
- package/dist/plugins/generic-oauth/index.d.mts +6 -6
- package/dist/plugins/generic-oauth/index.mjs +13 -12
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.mjs +14 -13
- package/dist/plugins/index.d.mts +29 -139
- package/dist/plugins/index.mjs +47 -42
- package/dist/plugins/jwt/index.d.mts +6 -6
- package/dist/plugins/jwt/index.mjs +13 -12
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/magic-link/index.mjs +13 -12
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.mjs +13 -12
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +13 -12
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.mjs +13 -12
- package/dist/plugins/one-time-token/index.d.mts +6 -6
- package/dist/plugins/one-time-token/index.mjs +46 -41
- package/dist/plugins/organization/access/index.d.mts +3 -3
- package/dist/plugins/organization/access/index.mjs +2 -2
- package/dist/plugins/organization/index.d.mts +8 -8
- package/dist/plugins/organization/index.mjs +17 -16
- package/dist/plugins/passkey/index.d.mts +6 -6
- package/dist/plugins/passkey/index.mjs +13 -12
- package/dist/plugins/phone-number/index.d.mts +6 -6
- package/dist/plugins/phone-number/index.mjs +13 -12
- package/dist/plugins/sentinel/client.d.mts +30 -0
- package/dist/plugins/sentinel/client.mjs +5 -0
- package/dist/plugins/sentinel/index.d.mts +29 -0
- package/dist/plugins/sentinel/index.mjs +22 -0
- package/dist/plugins/two-factor/index.d.mts +6 -6
- package/dist/plugins/two-factor/index.mjs +15 -14
- package/dist/plugins/username/index.d.mts +3 -3
- package/dist/plugins/username/index.mjs +13 -12
- package/dist/{plugins-hFZT3hmK.d.mts → plugins-Dy_FrD4Y.d.mts} +1 -1
- package/dist/{plugins-3jfNste3.mjs → plugins-yF8CFUDR.mjs} +11 -8
- package/dist/pow-OK01yPG3.mjs +61 -0
- package/dist/{proxy-CL9PZXJA.mjs → proxy-C_KXfOhk.mjs} +1 -1
- package/dist/random-32E3cU5o.mjs +7 -0
- package/dist/registry-CqG_3Qnx.mjs +194 -0
- package/dist/sentinel-C-D1IHJo.mjs +1395 -0
- package/dist/{session-Dgp133Yt.mjs → session-BB3oqApE.mjs} +2 -2
- package/dist/src/adapters/memory-adapter/memory-adapter.d.ts +1 -1
- package/dist/src/adapters/prisma-adapter/test/auth.d.ts +1 -1
- package/dist/src/adapters/tests/auth-flow.d.ts +3 -3
- package/dist/src/adapters/tests/normal.d.ts +1 -1
- package/dist/src/adapters/tests/number-id.d.ts +3 -3
- package/dist/src/adapters/tests/performance.d.ts +3 -3
- package/dist/src/adapters/tests/transactions.d.ts +3 -3
- package/dist/src/api/index.d.ts +8 -8
- package/dist/src/client/plugins/index.d.ts +2 -0
- package/dist/src/plugins/admin/admin.d.ts +2 -2
- package/dist/src/plugins/api-key/index.d.ts +2 -2
- package/dist/src/plugins/audit-log/client.d.ts +10 -0
- package/dist/src/plugins/audit-log/events.d.ts +90 -0
- package/dist/src/plugins/audit-log/index.d.ts +614 -0
- package/dist/src/plugins/audit-log/registry.d.ts +13 -0
- package/dist/src/plugins/audit-log/remote.d.ts +34 -0
- package/dist/src/plugins/audit-log/schema.d.ts +50 -0
- package/dist/src/plugins/audit-log/types.d.ts +117 -0
- package/dist/src/plugins/email-otp/index.d.ts +1 -1
- package/dist/src/plugins/haveibeenpwned/index.d.ts +6 -0
- package/dist/src/plugins/index.d.ts +2 -0
- package/dist/src/plugins/multi-session/index.d.ts +8 -8
- package/dist/src/plugins/organization/organization.d.ts +5 -5
- package/dist/src/plugins/organization/routes/crud-access-control.d.ts +8 -8
- package/dist/src/plugins/organization/routes/crud-invites.d.ts +46 -46
- package/dist/src/plugins/organization/routes/crud-members.d.ts +40 -40
- package/dist/src/plugins/organization/routes/crud-org.d.ts +36 -36
- package/dist/src/plugins/organization/routes/crud-team.d.ts +50 -50
- package/dist/src/plugins/sentinel/actions.d.ts +64 -0
- package/dist/src/plugins/sentinel/client.d.ts +67 -0
- package/dist/src/plugins/sentinel/email.d.ts +22 -0
- package/dist/src/plugins/sentinel/geo.d.ts +22 -0
- package/dist/src/plugins/sentinel/index.d.ts +326 -0
- package/dist/src/plugins/sentinel/intel.d.ts +45 -0
- package/dist/src/plugins/sentinel/pow.d.ts +21 -0
- package/dist/src/plugins/sentinel/schema.d.ts +110 -0
- package/dist/src/plugins/sentinel/store.d.ts +37 -0
- package/dist/src/plugins/sentinel/types.d.ts +412 -0
- package/dist/src/test-utils/memory-secondary-storage.d.ts +16 -0
- package/dist/src/test-utils/password.d.ts +12 -0
- package/dist/src/test-utils/test-instance.d.ts +25 -25
- package/dist/test-utils/index.d.mts +1048 -1048
- package/dist/test-utils/index.mjs +53 -48
- package/dist/{two-factor-ClUXxom2.mjs → two-factor-CDVjxx4f.mjs} +6 -5
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.mjs +1 -1
- package/dist/{username-DiGklOGl.mjs → username-BHNvcvsY.mjs} +3 -3
- package/dist/{utils-SOMB4Px5.mjs → utils-B03WRaGi.mjs} +2 -1
- package/package.json +36 -3
- package/dist/index-CM-CFWwr.d.mts +0 -1919
- package/dist/index-DB7t8whN.d.mts +0 -1
- /package/dist/{access-BO2g7QVe.mjs → access-BM6jSA5j.mjs} +0 -0
- /package/dist/{bun-sqlite-dialect-CeNvMaZz.mjs → bun-sqlite-dialect-CDGusFqF.mjs} +0 -0
- /package/dist/{captcha-BqaMxlKC.mjs → captcha-DGP9lCRe.mjs} +0 -0
- /package/dist/{client-CygJhqeB.mjs → client-BuveH3MN.mjs} +0 -0
- /package/dist/{client-WiN43tAS.mjs → client-cBiytuOL.mjs} +0 -0
- /package/dist/{date-Cx2yCiC4.mjs → date-CMr04reD.mjs} +0 -0
- /package/dist/{esm-C-QicDNz.mjs → esm-BbvI87Z2.mjs} +0 -0
- /package/dist/{get-tables-BQP7YW9c.mjs → get-tables-CKvSyDST.mjs} +0 -0
- /package/dist/{helper-tmxW3BHj.d.mts → helper-BgOIGHsu.d.mts} +0 -0
- /package/dist/{misc-beA1w3XV.mjs → misc-fKH4d5XQ.mjs} +0 -0
- /package/dist/{node-sqlite-dialect-BcKxBQnm.mjs → node-sqlite-dialect-CIOjcg31.mjs} +0 -0
- /package/dist/{parser-DcrIEuXE.mjs → parser-D7EkhAjZ.mjs} +0 -0
- /package/dist/{password-sVC4nePO.mjs → password-5CdcAVaH.mjs} +0 -0
- /package/dist/{permission-DLYUF3cW.mjs → permission-CDDWgA_O.mjs} +0 -0
- /package/dist/{plugin-helper-4L-lzsjZ.mjs → plugin-helper-RJJBTOba.mjs} +0 -0
- /package/dist/{promise-8rrEHRXd.mjs → promise-D7Oo6_cY.mjs} +0 -0
- /package/dist/{types-Bjn15Uy6.mjs → types-DCPpFKUB.mjs} +0 -0
- /package/dist/{types-B1OL7hyf.d.mts → types-DNQ9XQrB.d.mts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _gatwech_core15 from "@gatwech/core";
|
|
2
|
+
import * as better_call164 from "better-call";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/bearer/index.d.ts
|
|
5
5
|
interface BearerOptions {
|
|
@@ -19,16 +19,16 @@ declare const bearer: (options?: BearerOptions | undefined) => {
|
|
|
19
19
|
id: "bearer";
|
|
20
20
|
hooks: {
|
|
21
21
|
before: {
|
|
22
|
-
matcher(context:
|
|
23
|
-
handler: (inputContext:
|
|
22
|
+
matcher(context: _gatwech_core15.HookEndpointContext): boolean;
|
|
23
|
+
handler: (inputContext: better_call164.MiddlewareInputContext<better_call164.MiddlewareOptions>) => Promise<{
|
|
24
24
|
context: {
|
|
25
25
|
headers: Headers;
|
|
26
26
|
};
|
|
27
27
|
} | undefined>;
|
|
28
28
|
}[];
|
|
29
29
|
after: {
|
|
30
|
-
matcher(context:
|
|
31
|
-
handler: (inputContext:
|
|
30
|
+
matcher(context: _gatwech_core15.HookEndpointContext): true;
|
|
31
|
+
handler: (inputContext: better_call164.MiddlewareInputContext<better_call164.MiddlewareOptions>) => Promise<void>;
|
|
32
32
|
}[];
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as User, h as Session } from "./index-
|
|
1
|
+
import { g as User, h as Session } from "./index-BNhJglHC.mjs";
|
|
2
2
|
import { GenericEndpointContext } from "@gatwech/core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as better_call168 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_call168.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_call168.MiddlewareInputContext<better_call168.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_call168.Middleware[];
|
|
147
147
|
path?: string;
|
|
148
148
|
} & {
|
|
149
149
|
asResponse?: AsResponse | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as Session, s as User } from "./index-
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import { o as Session, s as User } from "./index-Df0KhQRf-BEa5tdwJ.mjs";
|
|
2
|
+
import * as _gatwech_core9 from "@gatwech/core";
|
|
3
|
+
import * as better_call131 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_call131.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_call131.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_call131.MiddlewareInputContext<better_call131.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_call131.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_call131.MiddlewareInputContext<better_call131.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_core9.HookEndpointContext) => boolean;
|
|
282
|
+
handler: (inputContext: better_call131.MiddlewareInputContext<better_call131.MiddlewareOptions>) => Promise<void>;
|
|
283
283
|
}[];
|
|
284
284
|
};
|
|
285
285
|
$ERROR_CODES: {
|
|
@@ -9,13 +9,14 @@ import { StandardSchemaV1 as StandardSchemaV1$1 } from "@standard-schema/spec";
|
|
|
9
9
|
import { Database } from "bun:sqlite";
|
|
10
10
|
import { DatabaseSync } from "node:sqlite";
|
|
11
11
|
|
|
12
|
-
//#region ../core/dist/index-
|
|
12
|
+
//#region ../core/dist/index-CNtOUpmF.d.mts
|
|
13
13
|
|
|
14
14
|
type LogLevel = "info" | "success" | "warn" | "error" | "debug";
|
|
15
15
|
interface Logger {
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
disableColors?: boolean | undefined;
|
|
18
18
|
level?: Exclude<LogLevel, "success"> | undefined;
|
|
19
|
+
tag?: string | undefined;
|
|
19
20
|
log?: ((level: Exclude<LogLevel, "success">, message: string, ...args: any[]) => void) | undefined;
|
|
20
21
|
}
|
|
21
22
|
type LogHandlerParams = Parameters<NonNullable<Logger["log"]>> extends [LogLevel, ...infer Rest] ? Rest : never;
|
|
@@ -24,7 +25,7 @@ type InternalLogger = { [K in LogLevel]: (...params: LogHandlerParams) => void }
|
|
|
24
25
|
};
|
|
25
26
|
declare const createLogger: (options?: Logger | undefined) => InternalLogger;
|
|
26
27
|
//#endregion
|
|
27
|
-
//#region ../core/dist/index-
|
|
28
|
+
//#region ../core/dist/index-Df0KhQRf.d.mts
|
|
28
29
|
//#region src/db/type.d.ts
|
|
29
30
|
type DBPreservedModels = "user" | "account" | "session" | "verification" | "rate-limit" | "organization" | "member" | "invitation" | "jwks" | "passkey" | "two-factor";
|
|
30
31
|
type DBFieldType = "string" | "number" | "boolean" | "date" | "json" | `${"string" | "number"}[]` | Array<LiteralString>;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _gatwech_core46 from "@gatwech/core";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/haveibeenpwned/index.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Returns how many times a password appears in known breaches, using the
|
|
7
|
+
* k-anonymity range API: only the first 5 characters of the password's SHA-1
|
|
8
|
+
* hash are sent. Throws if the API can't be reached.
|
|
9
|
+
*/
|
|
10
|
+
declare function getPasswordBreachCount(password: string): Promise<number>;
|
|
4
11
|
interface HaveIBeenPwnedOptions {
|
|
5
12
|
customPasswordCompromisedMessage?: string | undefined;
|
|
6
13
|
}
|
|
7
14
|
declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
|
|
8
15
|
id: "haveIBeenPwned";
|
|
9
|
-
init(ctx:
|
|
16
|
+
init(ctx: _gatwech_core46.AuthContext<_gatwech_core46.PayvoAuthOptions>): {
|
|
10
17
|
context: {
|
|
11
18
|
password: {
|
|
12
19
|
hash(password: string): Promise<string>;
|
|
@@ -18,7 +25,7 @@ declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
|
|
|
18
25
|
minPasswordLength: number;
|
|
19
26
|
maxPasswordLength: number;
|
|
20
27
|
};
|
|
21
|
-
checkPassword: (userId: string, ctx:
|
|
28
|
+
checkPassword: (userId: string, ctx: _gatwech_core46.GenericEndpointContext<_gatwech_core46.PayvoAuthOptions>) => Promise<boolean>;
|
|
22
29
|
};
|
|
23
30
|
};
|
|
24
31
|
};
|
|
@@ -27,4 +34,4 @@ declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
|
|
|
27
34
|
};
|
|
28
35
|
};
|
|
29
36
|
//#endregion
|
|
30
|
-
export {
|
|
37
|
+
export { getPasswordBreachCount as n, haveIBeenPwned as r, HaveIBeenPwnedOptions as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _gatwech_core42 from "@gatwech/core";
|
|
2
|
+
import * as better_call198 from "better-call";
|
|
3
3
|
import * as z$1 from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/oauth-proxy/index.d.ts
|
|
@@ -48,7 +48,7 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
|
|
|
48
48
|
} & {
|
|
49
49
|
asResponse?: boolean;
|
|
50
50
|
returnHeaders?: boolean;
|
|
51
|
-
use?:
|
|
51
|
+
use?: better_call198.Middleware[];
|
|
52
52
|
path?: string;
|
|
53
53
|
} & {
|
|
54
54
|
asResponse?: AsResponse | undefined;
|
|
@@ -63,7 +63,7 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
|
|
|
63
63
|
callbackURL: z$1.ZodString;
|
|
64
64
|
cookies: z$1.ZodString;
|
|
65
65
|
}, z$1.core.$strip>;
|
|
66
|
-
use: ((inputContext:
|
|
66
|
+
use: ((inputContext: better_call198.MiddlewareInputContext<better_call198.MiddlewareOptions>) => Promise<void>)[];
|
|
67
67
|
metadata: {
|
|
68
68
|
openapi: {
|
|
69
69
|
description: string;
|
|
@@ -96,12 +96,12 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
|
|
|
96
96
|
};
|
|
97
97
|
hooks: {
|
|
98
98
|
after: {
|
|
99
|
-
matcher(context:
|
|
100
|
-
handler: (inputContext:
|
|
99
|
+
matcher(context: _gatwech_core42.HookEndpointContext): boolean;
|
|
100
|
+
handler: (inputContext: better_call198.MiddlewareInputContext<better_call198.MiddlewareOptions>) => Promise<void>;
|
|
101
101
|
}[];
|
|
102
102
|
before: ({
|
|
103
103
|
matcher(): true;
|
|
104
|
-
handler: (inputContext:
|
|
104
|
+
handler: (inputContext: better_call198.MiddlewareInputContext<better_call198.MiddlewareOptions>) => Promise<{
|
|
105
105
|
context: {
|
|
106
106
|
context: {
|
|
107
107
|
oauthConfig: {
|
|
@@ -111,9 +111,9 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
|
|
|
111
111
|
};
|
|
112
112
|
} | undefined>;
|
|
113
113
|
} | {
|
|
114
|
-
matcher(context:
|
|
115
|
-
handler: (inputContext:
|
|
116
|
-
context:
|
|
114
|
+
matcher(context: _gatwech_core42.HookEndpointContext): boolean;
|
|
115
|
+
handler: (inputContext: better_call198.MiddlewareInputContext<better_call198.MiddlewareOptions>) => Promise<{
|
|
116
|
+
context: better_call198.MiddlewareContext<better_call198.MiddlewareOptions, _gatwech_core42.AuthContext<_gatwech_core42.PayvoAuthOptions> & {
|
|
117
117
|
returned?: unknown | undefined;
|
|
118
118
|
responseHeaders?: Headers | undefined;
|
|
119
119
|
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as User, h as Session } from "./index-
|
|
2
|
-
import { s as User$1 } from "./index-
|
|
3
|
-
import { t as InferOptionSchema } from "./plugins-
|
|
4
|
-
import { a as Role, i as AccessControl, o as Statements } from "./index-
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import { g as User, h as Session } from "./index-BNhJglHC.mjs";
|
|
2
|
+
import { s as User$1 } from "./index-Df0KhQRf-BEa5tdwJ.mjs";
|
|
3
|
+
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
4
|
+
import { a as Role, i as AccessControl, o as Statements } from "./index-CxlWnL9c.mjs";
|
|
5
|
+
import * as _gatwech_core55 from "@gatwech/core";
|
|
6
|
+
import * as better_call595 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_core55.GenericEndpointContext<_gatwech_core55.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_core55.HookEndpointContext): boolean;
|
|
171
|
+
handler: (inputContext: better_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.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_call595.MiddlewareInputContext<better_call595.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_call595.Middleware[];
|
|
1518
1518
|
path?: string;
|
|
1519
1519
|
} & {
|
|
1520
1520
|
asResponse?: AsResponse | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as InferOptionSchema } from "./plugins-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
2
|
+
import * as better_call114 from "better-call";
|
|
3
3
|
import * as z$1 from "zod";
|
|
4
4
|
import * as _simplewebauthn_server0 from "@simplewebauthn/server";
|
|
5
5
|
import { AuthenticationResponseJSON, CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/server";
|
|
@@ -139,7 +139,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
139
139
|
} & {
|
|
140
140
|
asResponse?: boolean;
|
|
141
141
|
returnHeaders?: boolean;
|
|
142
|
-
use?:
|
|
142
|
+
use?: better_call114.Middleware[];
|
|
143
143
|
path?: string;
|
|
144
144
|
} & {
|
|
145
145
|
asResponse?: AsResponse | undefined;
|
|
@@ -150,7 +150,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
150
150
|
} : PublicKeyCredentialCreationOptionsJSON>;
|
|
151
151
|
options: {
|
|
152
152
|
method: "GET";
|
|
153
|
-
use: ((inputContext:
|
|
153
|
+
use: ((inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
|
|
154
154
|
session: {
|
|
155
155
|
session: Record<string, any> & {
|
|
156
156
|
id: string;
|
|
@@ -318,7 +318,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
318
318
|
} & {
|
|
319
319
|
asResponse?: boolean;
|
|
320
320
|
returnHeaders?: boolean;
|
|
321
|
-
use?:
|
|
321
|
+
use?: better_call114.Middleware[];
|
|
322
322
|
path?: string;
|
|
323
323
|
} & {
|
|
324
324
|
asResponse?: AsResponse | undefined;
|
|
@@ -443,7 +443,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
443
443
|
} & {
|
|
444
444
|
asResponse?: boolean;
|
|
445
445
|
returnHeaders?: boolean;
|
|
446
|
-
use?:
|
|
446
|
+
use?: better_call114.Middleware[];
|
|
447
447
|
path?: string;
|
|
448
448
|
} & {
|
|
449
449
|
asResponse?: AsResponse | undefined;
|
|
@@ -458,7 +458,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
458
458
|
response: z$1.ZodAny;
|
|
459
459
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
460
460
|
}, z$1.core.$strip>;
|
|
461
|
-
use: ((inputContext:
|
|
461
|
+
use: ((inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
|
|
462
462
|
session: {
|
|
463
463
|
session: Record<string, any> & {
|
|
464
464
|
id: string;
|
|
@@ -524,7 +524,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
524
524
|
} & {
|
|
525
525
|
asResponse?: boolean;
|
|
526
526
|
returnHeaders?: boolean;
|
|
527
|
-
use?:
|
|
527
|
+
use?: better_call114.Middleware[];
|
|
528
528
|
path?: string;
|
|
529
529
|
} & {
|
|
530
530
|
asResponse?: AsResponse | undefined;
|
|
@@ -626,7 +626,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
626
626
|
} & {
|
|
627
627
|
asResponse?: boolean;
|
|
628
628
|
returnHeaders?: boolean;
|
|
629
|
-
use?:
|
|
629
|
+
use?: better_call114.Middleware[];
|
|
630
630
|
path?: string;
|
|
631
631
|
} & {
|
|
632
632
|
asResponse?: AsResponse | undefined;
|
|
@@ -637,7 +637,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
637
637
|
} : Passkey[]>;
|
|
638
638
|
options: {
|
|
639
639
|
method: "GET";
|
|
640
|
-
use: ((inputContext:
|
|
640
|
+
use: ((inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
|
|
641
641
|
session: {
|
|
642
642
|
session: Record<string, any> & {
|
|
643
643
|
id: string;
|
|
@@ -720,7 +720,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
720
720
|
} & {
|
|
721
721
|
asResponse?: boolean;
|
|
722
722
|
returnHeaders?: boolean;
|
|
723
|
-
use?:
|
|
723
|
+
use?: better_call114.Middleware[];
|
|
724
724
|
path?: string;
|
|
725
725
|
} & {
|
|
726
726
|
asResponse?: AsResponse | undefined;
|
|
@@ -734,7 +734,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
734
734
|
body: z$1.ZodObject<{
|
|
735
735
|
id: z$1.ZodString;
|
|
736
736
|
}, z$1.core.$strip>;
|
|
737
|
-
use: ((inputContext:
|
|
737
|
+
use: ((inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
|
|
738
738
|
session: {
|
|
739
739
|
session: Record<string, any> & {
|
|
740
740
|
id: string;
|
|
@@ -820,7 +820,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
820
820
|
} & {
|
|
821
821
|
asResponse?: boolean;
|
|
822
822
|
returnHeaders?: boolean;
|
|
823
|
-
use?:
|
|
823
|
+
use?: better_call114.Middleware[];
|
|
824
824
|
path?: string;
|
|
825
825
|
} & {
|
|
826
826
|
asResponse?: AsResponse | undefined;
|
|
@@ -839,7 +839,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
839
839
|
id: z$1.ZodString;
|
|
840
840
|
name: z$1.ZodString;
|
|
841
841
|
}, z$1.core.$strip>;
|
|
842
|
-
use: ((inputContext:
|
|
842
|
+
use: ((inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
|
|
843
843
|
session: {
|
|
844
844
|
session: Record<string, any> & {
|
|
845
845
|
id: string;
|