@gatwech/auth 1.0.0-beta.18 → 1.0.0-beta.20
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 +19 -19
- package/dist/client/index.mjs +4 -4
- package/dist/client/plugins/index.d.mts +42 -34
- package/dist/client/plugins/index.mjs +16 -12
- package/dist/client/react/index.d.mts +5 -5
- package/dist/client/react/index.mjs +2 -2
- package/dist/client-4QEb0rUr.mjs +95 -0
- package/dist/client-C_qmyez2.d.mts +75 -0
- package/dist/client-DzOqXJUm.mjs +15 -0
- package/dist/client-F67q-Lbi.d.mts +14 -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/{index-BYMI9r_d.d.mts → index-4I1YhYhk.d.mts} +4 -4
- package/dist/{index-Cxi7TbLE.d.mts → index-BNhJglHC.d.mts} +122 -122
- package/dist/{index-DlaMq1nb.d.mts → index-BX7rl07Z.d.mts} +14 -14
- package/dist/{client-BOX93C3d.d.mts → index-Bml-PCqP.d.mts} +52 -52
- package/dist/{index-zjjNBRY2.d.mts → index-BsSKcKgO.d.mts} +6 -6
- package/dist/{index-Buhn3hkR.d.mts → index-CBiGsvDd.d.mts} +8 -8
- package/dist/{index-D_k662QG.d.mts → index-CC920PPp.d.mts} +14 -14
- package/dist/{index-B3n8e37d.d.mts → index-CNd5jqLl.d.mts} +7 -7
- package/dist/{index-BqhKCbPH.d.mts → index-CP8x1TFq.d.mts} +6 -6
- package/dist/{index-DKNNV1kb.d.mts → index-CofuaNMl.d.mts} +8 -8
- package/dist/{index-DR0xXno9.d.mts → index-CsxtcAO0.d.mts} +1 -1
- package/dist/{index-C7fQuk-V.d.mts → index-CxlWnL9c.d.mts} +1 -1
- package/dist/{index-CuFzhoS6.d.mts → index-CzpdkTdv.d.mts} +10 -10
- package/dist/index-D57DuhZR.d.mts +3769 -0
- package/dist/{index-C-u1h_WX.d.mts → index-D6ku0rUC.d.mts} +5 -5
- package/dist/{client-CNY0tn9g.d.mts → index-DFSRYWFI.d.mts} +21 -21
- package/dist/{index-BBm8nQ9Q.d.mts → index-DGeoJ4gu.d.mts} +2 -2
- package/dist/{index-G6V0Z_Mn.d.mts → index-DTkcY7xH.d.mts} +10 -10
- package/dist/{index-65G5U5DB-DSdjzreF.d.mts → index-Df0KhQRf-BEa5tdwJ.d.mts} +3 -2
- package/dist/{index-34ONrP8l.d.mts → index-Dnd8S4S4.d.mts} +11 -11
- package/dist/{index-B-XKqFvY.d.mts → index-DwPAddfE.d.mts} +11 -4
- package/dist/{index-DoXZYQpq.d.mts → index-DyXi7S2M.d.mts} +10 -10
- package/dist/{index-BHoQlf7a.d.mts → index-KhbNmMmG.d.mts} +178 -178
- package/dist/{index-z0KSvE5i.d.mts → index-QmocqGM-.d.mts} +1 -1
- package/dist/{admin-DtfO1PLg.d.mts → index-XfE0WjTN.d.mts} +36 -36
- package/dist/{index-DaBcikv9.d.mts → index-sb-UFLuo.d.mts} +2 -2
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +16 -15
- package/dist/integrations/next-js.d.mts +4 -4
- 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-DiPqydKG.mjs +1426 -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 +28 -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 +293 -293
- 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 { t as InferOptionSchema } from "./plugins-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
2
|
+
import * as better_call43 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_call43.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_call43.MiddlewareInputContext<better_call43.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_call43.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_call43.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_call43.MiddlewareInputContext<better_call43.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_call43.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_call43.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_call43.MiddlewareInputContext<better_call43.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_call43.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_call43.MiddlewareInputContext<better_call43.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_call43.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_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
|
|
843
843
|
session: {
|
|
844
844
|
session: Record<string, any> & {
|
|
845
845
|
id: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { o as LiteralString } from "./helper-
|
|
2
|
-
import { g as User } from "./index-
|
|
3
|
-
import { t as InferOptionSchema } from "./plugins-
|
|
4
|
-
import * as
|
|
1
|
+
import { o as LiteralString } from "./helper-BgOIGHsu.mjs";
|
|
2
|
+
import { g as User } from "./index-BNhJglHC.mjs";
|
|
3
|
+
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
4
|
+
import * as _gatwech_core1 from "@gatwech/core";
|
|
5
5
|
import { PayvoAuthPlugin } from "@gatwech/core";
|
|
6
|
-
import * as
|
|
6
|
+
import * as better_call5 from "better-call";
|
|
7
7
|
import * as z$1 from "zod";
|
|
8
|
-
import * as
|
|
8
|
+
import * as _better_fetch_fetch19 from "@better-fetch/fetch";
|
|
9
9
|
|
|
10
10
|
//#region src/plugins/two-factor/backup-codes/index.d.ts
|
|
11
11
|
interface BackupCodeOptions {
|
|
@@ -207,6 +207,35 @@ declare const TWO_FACTOR_ERROR_CODES: {
|
|
|
207
207
|
readonly INVALID_TWO_FACTOR_COOKIE: "Invalid two factor cookie";
|
|
208
208
|
};
|
|
209
209
|
//#endregion
|
|
210
|
+
//#region src/plugins/two-factor/client.d.ts
|
|
211
|
+
declare const twoFactorClient: (options?: {
|
|
212
|
+
/**
|
|
213
|
+
* a redirect function to call if a user needs to verify
|
|
214
|
+
* their two factor
|
|
215
|
+
*/
|
|
216
|
+
onTwoFactorRedirect?: () => void | Promise<void>;
|
|
217
|
+
} | undefined) => {
|
|
218
|
+
id: "two-factor";
|
|
219
|
+
$InferServerPlugin: ReturnType<typeof twoFactor>;
|
|
220
|
+
atomListeners: {
|
|
221
|
+
matcher: (path: string) => boolean;
|
|
222
|
+
signal: "$sessionSignal";
|
|
223
|
+
}[];
|
|
224
|
+
pathMethods: {
|
|
225
|
+
"/two-factor/disable": "POST";
|
|
226
|
+
"/two-factor/enable": "POST";
|
|
227
|
+
"/two-factor/send-otp": "POST";
|
|
228
|
+
"/two-factor/generate-backup-codes": "POST";
|
|
229
|
+
};
|
|
230
|
+
fetchPlugins: {
|
|
231
|
+
id: string;
|
|
232
|
+
name: string;
|
|
233
|
+
hooks: {
|
|
234
|
+
onSuccess(context: _better_fetch_fetch19.SuccessContext<any>): Promise<void>;
|
|
235
|
+
};
|
|
236
|
+
}[];
|
|
237
|
+
};
|
|
238
|
+
//#endregion
|
|
210
239
|
//#region src/plugins/two-factor/index.d.ts
|
|
211
240
|
declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
212
241
|
id: "two-factor";
|
|
@@ -245,7 +274,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
245
274
|
} & {
|
|
246
275
|
asResponse?: boolean;
|
|
247
276
|
returnHeaders?: boolean;
|
|
248
|
-
use?:
|
|
277
|
+
use?: better_call5.Middleware[];
|
|
249
278
|
path?: string;
|
|
250
279
|
} & {
|
|
251
280
|
asResponse?: AsResponse | undefined;
|
|
@@ -266,7 +295,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
266
295
|
password: z$1.ZodString;
|
|
267
296
|
issuer: z$1.ZodOptional<z$1.ZodString>;
|
|
268
297
|
}, z$1.core.$strip>;
|
|
269
|
-
use: ((inputContext:
|
|
298
|
+
use: ((inputContext: better_call5.MiddlewareInputContext<better_call5.MiddlewareOptions>) => Promise<{
|
|
270
299
|
session: {
|
|
271
300
|
session: Record<string, any> & {
|
|
272
301
|
id: string;
|
|
@@ -358,7 +387,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
358
387
|
} & {
|
|
359
388
|
asResponse?: boolean;
|
|
360
389
|
returnHeaders?: boolean;
|
|
361
|
-
use?:
|
|
390
|
+
use?: better_call5.Middleware[];
|
|
362
391
|
path?: string;
|
|
363
392
|
} & {
|
|
364
393
|
asResponse?: AsResponse | undefined;
|
|
@@ -376,7 +405,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
376
405
|
body: z$1.ZodObject<{
|
|
377
406
|
password: z$1.ZodString;
|
|
378
407
|
}, z$1.core.$strip>;
|
|
379
|
-
use: ((inputContext:
|
|
408
|
+
use: ((inputContext: better_call5.MiddlewareInputContext<better_call5.MiddlewareOptions>) => Promise<{
|
|
380
409
|
session: {
|
|
381
410
|
session: Record<string, any> & {
|
|
382
411
|
id: string;
|
|
@@ -447,7 +476,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
447
476
|
} & {
|
|
448
477
|
asResponse?: boolean;
|
|
449
478
|
returnHeaders?: boolean;
|
|
450
|
-
use?:
|
|
479
|
+
use?: better_call5.Middleware[];
|
|
451
480
|
path?: string;
|
|
452
481
|
} & {
|
|
453
482
|
asResponse?: AsResponse | undefined;
|
|
@@ -600,7 +629,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
600
629
|
} & {
|
|
601
630
|
asResponse?: boolean;
|
|
602
631
|
returnHeaders?: boolean;
|
|
603
|
-
use?:
|
|
632
|
+
use?: better_call5.Middleware[];
|
|
604
633
|
path?: string;
|
|
605
634
|
} & {
|
|
606
635
|
asResponse?: AsResponse | undefined;
|
|
@@ -620,7 +649,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
620
649
|
body: z$1.ZodObject<{
|
|
621
650
|
password: z$1.ZodString;
|
|
622
651
|
}, z$1.core.$strip>;
|
|
623
|
-
use: ((inputContext:
|
|
652
|
+
use: ((inputContext: better_call5.MiddlewareInputContext<better_call5.MiddlewareOptions>) => Promise<{
|
|
624
653
|
session: {
|
|
625
654
|
session: Record<string, any> & {
|
|
626
655
|
id: string;
|
|
@@ -698,7 +727,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
698
727
|
} & {
|
|
699
728
|
asResponse?: boolean;
|
|
700
729
|
returnHeaders?: boolean;
|
|
701
|
-
use?:
|
|
730
|
+
use?: better_call5.Middleware[];
|
|
702
731
|
path?: string;
|
|
703
732
|
} & {
|
|
704
733
|
asResponse?: AsResponse | undefined;
|
|
@@ -744,7 +773,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
744
773
|
} & {
|
|
745
774
|
asResponse?: boolean;
|
|
746
775
|
returnHeaders?: boolean;
|
|
747
|
-
use?:
|
|
776
|
+
use?: better_call5.Middleware[];
|
|
748
777
|
path?: string;
|
|
749
778
|
} & {
|
|
750
779
|
asResponse?: AsResponse | undefined;
|
|
@@ -809,7 +838,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
809
838
|
} & {
|
|
810
839
|
asResponse?: boolean;
|
|
811
840
|
returnHeaders?: boolean;
|
|
812
|
-
use?:
|
|
841
|
+
use?: better_call5.Middleware[];
|
|
813
842
|
path?: string;
|
|
814
843
|
} & {
|
|
815
844
|
asResponse?: AsResponse | undefined;
|
|
@@ -937,7 +966,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
937
966
|
} & {
|
|
938
967
|
asResponse?: boolean;
|
|
939
968
|
returnHeaders?: boolean;
|
|
940
|
-
use?:
|
|
969
|
+
use?: better_call5.Middleware[];
|
|
941
970
|
path?: string;
|
|
942
971
|
} & {
|
|
943
972
|
asResponse?: AsResponse | undefined;
|
|
@@ -1002,7 +1031,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
1002
1031
|
} & {
|
|
1003
1032
|
asResponse?: boolean;
|
|
1004
1033
|
returnHeaders?: boolean;
|
|
1005
|
-
use?:
|
|
1034
|
+
use?: better_call5.Middleware[];
|
|
1006
1035
|
path?: string;
|
|
1007
1036
|
} & {
|
|
1008
1037
|
asResponse?: AsResponse | undefined;
|
|
@@ -1017,7 +1046,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
1017
1046
|
}>;
|
|
1018
1047
|
options: {
|
|
1019
1048
|
method: "POST";
|
|
1020
|
-
use: ((inputContext:
|
|
1049
|
+
use: ((inputContext: better_call5.MiddlewareInputContext<better_call5.MiddlewareOptions>) => Promise<{
|
|
1021
1050
|
session: {
|
|
1022
1051
|
session: Record<string, any> & {
|
|
1023
1052
|
id: string;
|
|
@@ -1090,7 +1119,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
1090
1119
|
} & {
|
|
1091
1120
|
asResponse?: boolean;
|
|
1092
1121
|
returnHeaders?: boolean;
|
|
1093
|
-
use?:
|
|
1122
|
+
use?: better_call5.Middleware[];
|
|
1094
1123
|
path?: string;
|
|
1095
1124
|
} & {
|
|
1096
1125
|
asResponse?: AsResponse | undefined;
|
|
@@ -1159,8 +1188,8 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
1159
1188
|
options: TwoFactorOptions | undefined;
|
|
1160
1189
|
hooks: {
|
|
1161
1190
|
after: {
|
|
1162
|
-
matcher(context:
|
|
1163
|
-
handler: (inputContext:
|
|
1191
|
+
matcher(context: _gatwech_core1.HookEndpointContext): boolean;
|
|
1192
|
+
handler: (inputContext: better_call5.MiddlewareInputContext<better_call5.MiddlewareOptions>) => Promise<{
|
|
1164
1193
|
twoFactorRedirect: boolean;
|
|
1165
1194
|
} | undefined>;
|
|
1166
1195
|
}[];
|
|
@@ -1218,33 +1247,4 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
1218
1247
|
};
|
|
1219
1248
|
};
|
|
1220
1249
|
//#endregion
|
|
1221
|
-
|
|
1222
|
-
declare const twoFactorClient: (options?: {
|
|
1223
|
-
/**
|
|
1224
|
-
* a redirect function to call if a user needs to verify
|
|
1225
|
-
* their two factor
|
|
1226
|
-
*/
|
|
1227
|
-
onTwoFactorRedirect?: () => void | Promise<void>;
|
|
1228
|
-
} | undefined) => {
|
|
1229
|
-
id: "two-factor";
|
|
1230
|
-
$InferServerPlugin: ReturnType<typeof twoFactor>;
|
|
1231
|
-
atomListeners: {
|
|
1232
|
-
matcher: (path: string) => boolean;
|
|
1233
|
-
signal: "$sessionSignal";
|
|
1234
|
-
}[];
|
|
1235
|
-
pathMethods: {
|
|
1236
|
-
"/two-factor/disable": "POST";
|
|
1237
|
-
"/two-factor/enable": "POST";
|
|
1238
|
-
"/two-factor/send-otp": "POST";
|
|
1239
|
-
"/two-factor/generate-backup-codes": "POST";
|
|
1240
|
-
};
|
|
1241
|
-
fetchPlugins: {
|
|
1242
|
-
id: string;
|
|
1243
|
-
name: string;
|
|
1244
|
-
hooks: {
|
|
1245
|
-
onSuccess(context: _better_fetch_fetch16.SuccessContext<any>): Promise<void>;
|
|
1246
|
-
};
|
|
1247
|
-
}[];
|
|
1248
|
-
};
|
|
1249
|
-
//#endregion
|
|
1250
|
-
export { TwoFactorProvider as a, TwoFactorOptions as i, twoFactor as n, TwoFactorTable as o, TWO_FACTOR_ERROR_CODES as r, UserWithTwoFactor as s, twoFactorClient as t };
|
|
1250
|
+
export { TwoFactorProvider as a, TwoFactorOptions as i, twoFactorClient as n, TwoFactorTable as o, TWO_FACTOR_ERROR_CODES as r, UserWithTwoFactor as s, twoFactor as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as InferSession, p as InferUser } from "./index-
|
|
2
|
-
import * as
|
|
1
|
+
import { f as InferSession, p as InferUser } from "./index-BNhJglHC.mjs";
|
|
2
|
+
import * as _gatwech_core0 from "@gatwech/core";
|
|
3
3
|
import { GenericEndpointContext, PayvoAuthOptions } from "@gatwech/core";
|
|
4
|
-
import * as
|
|
4
|
+
import * as better_call2 from "better-call";
|
|
5
5
|
import * as z$1 from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/custom-session/index.d.ts
|
|
@@ -19,8 +19,8 @@ declare const customSession: <Returns extends Record<string, any>, O extends Pay
|
|
|
19
19
|
id: "custom-session";
|
|
20
20
|
hooks: {
|
|
21
21
|
after: {
|
|
22
|
-
matcher: (ctx:
|
|
23
|
-
handler: (inputContext:
|
|
22
|
+
matcher: (ctx: _gatwech_core0.HookEndpointContext) => boolean;
|
|
23
|
+
handler: (inputContext: better_call2.MiddlewareInputContext<better_call2.MiddlewareOptions>) => Promise<Awaited<Returns>[] | undefined>;
|
|
24
24
|
}[];
|
|
25
25
|
};
|
|
26
26
|
endpoints: {
|
|
@@ -43,7 +43,7 @@ declare const customSession: <Returns extends Record<string, any>, O extends Pay
|
|
|
43
43
|
} & {
|
|
44
44
|
asResponse?: boolean;
|
|
45
45
|
returnHeaders?: boolean;
|
|
46
|
-
use?:
|
|
46
|
+
use?: better_call2.Middleware[];
|
|
47
47
|
path?: string;
|
|
48
48
|
} & {
|
|
49
49
|
asResponse?: AsResponse | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as User } from "./index-
|
|
2
|
-
import * as
|
|
1
|
+
import { g as User } from "./index-BNhJglHC.mjs";
|
|
2
|
+
import * as _gatwech_core27 from "@gatwech/core";
|
|
3
3
|
import { GenericEndpointContext } from "@gatwech/core";
|
|
4
4
|
import * as _gatwech_core_oauth20 from "@gatwech/core/oauth2";
|
|
5
5
|
import { OAuth2Tokens, OAuth2UserInfo, OAuthProvider } from "@gatwech/core/oauth2";
|
|
6
|
-
import * as
|
|
6
|
+
import * as better_call71 from "better-call";
|
|
7
7
|
import * as z$1 from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/plugins/generic-oauth/index.d.ts
|
|
@@ -136,7 +136,7 @@ interface GenericOAuthOptions {
|
|
|
136
136
|
*/
|
|
137
137
|
declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
138
138
|
id: "generic-oauth";
|
|
139
|
-
init: (ctx:
|
|
139
|
+
init: (ctx: _gatwech_core27.AuthContext<_gatwech_core27.PayvoAuthOptions>) => {
|
|
140
140
|
context: {
|
|
141
141
|
socialProviders: OAuthProvider<Record<string, any>, Partial<_gatwech_core_oauth20.ProviderOptions<any>>>[];
|
|
142
142
|
};
|
|
@@ -182,7 +182,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
182
182
|
} & {
|
|
183
183
|
asResponse?: boolean;
|
|
184
184
|
returnHeaders?: boolean;
|
|
185
|
-
use?:
|
|
185
|
+
use?: better_call71.Middleware[];
|
|
186
186
|
path?: string;
|
|
187
187
|
} & {
|
|
188
188
|
asResponse?: AsResponse | undefined;
|
|
@@ -262,7 +262,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
262
262
|
} & {
|
|
263
263
|
asResponse?: boolean;
|
|
264
264
|
returnHeaders?: boolean;
|
|
265
|
-
use?:
|
|
265
|
+
use?: better_call71.Middleware[];
|
|
266
266
|
path?: string;
|
|
267
267
|
} & {
|
|
268
268
|
asResponse?: AsResponse | undefined;
|
|
@@ -343,7 +343,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
343
343
|
} & {
|
|
344
344
|
asResponse?: boolean;
|
|
345
345
|
returnHeaders?: boolean;
|
|
346
|
-
use?:
|
|
346
|
+
use?: better_call71.Middleware[];
|
|
347
347
|
path?: string;
|
|
348
348
|
} & {
|
|
349
349
|
asResponse?: AsResponse | undefined;
|
|
@@ -366,7 +366,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
366
366
|
scopes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
367
367
|
errorCallbackURL: z$1.ZodOptional<z$1.ZodString>;
|
|
368
368
|
}, z$1.core.$strip>;
|
|
369
|
-
use: ((inputContext:
|
|
369
|
+
use: ((inputContext: better_call71.MiddlewareInputContext<better_call71.MiddlewareOptions>) => Promise<{
|
|
370
370
|
session: {
|
|
371
371
|
session: Record<string, any> & {
|
|
372
372
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as User } from "./index-
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import { s as User } from "./index-Df0KhQRf-BEa5tdwJ.mjs";
|
|
2
|
+
import * as _gatwech_core49 from "@gatwech/core";
|
|
3
|
+
import * as better_call121 from "better-call";
|
|
4
4
|
import * as z$1 from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/email-otp/index.d.ts
|
|
@@ -71,7 +71,7 @@ interface EmailOTPOptions {
|
|
|
71
71
|
}
|
|
72
72
|
declare const emailOTP: (options: EmailOTPOptions) => {
|
|
73
73
|
id: "email-otp";
|
|
74
|
-
init(ctx:
|
|
74
|
+
init(ctx: _gatwech_core49.AuthContext<_gatwech_core49.PayvoAuthOptions>): {
|
|
75
75
|
options: {
|
|
76
76
|
emailVerification: {
|
|
77
77
|
sendVerificationEmail(data: {
|
|
@@ -102,7 +102,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
102
102
|
} & {
|
|
103
103
|
asResponse?: boolean;
|
|
104
104
|
returnHeaders?: boolean;
|
|
105
|
-
use?:
|
|
105
|
+
use?: better_call121.Middleware[];
|
|
106
106
|
path?: string;
|
|
107
107
|
} & {
|
|
108
108
|
asResponse?: AsResponse | undefined;
|
|
@@ -175,7 +175,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
175
175
|
} & {
|
|
176
176
|
asResponse?: boolean;
|
|
177
177
|
returnHeaders?: boolean;
|
|
178
|
-
use?:
|
|
178
|
+
use?: better_call121.Middleware[];
|
|
179
179
|
path?: string;
|
|
180
180
|
} & {
|
|
181
181
|
asResponse?: AsResponse | undefined;
|
|
@@ -265,7 +265,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
265
265
|
} & {
|
|
266
266
|
asResponse?: boolean;
|
|
267
267
|
returnHeaders?: boolean;
|
|
268
|
-
use?:
|
|
268
|
+
use?: better_call121.Middleware[];
|
|
269
269
|
path?: string;
|
|
270
270
|
} & {
|
|
271
271
|
asResponse?: AsResponse | undefined;
|
|
@@ -350,7 +350,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
350
350
|
} & {
|
|
351
351
|
asResponse?: boolean;
|
|
352
352
|
returnHeaders?: boolean;
|
|
353
|
-
use?:
|
|
353
|
+
use?: better_call121.Middleware[];
|
|
354
354
|
path?: string;
|
|
355
355
|
} & {
|
|
356
356
|
asResponse?: AsResponse | undefined;
|
|
@@ -485,7 +485,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
485
485
|
} & {
|
|
486
486
|
asResponse?: boolean;
|
|
487
487
|
returnHeaders?: boolean;
|
|
488
|
-
use?:
|
|
488
|
+
use?: better_call121.Middleware[];
|
|
489
489
|
path?: string;
|
|
490
490
|
} & {
|
|
491
491
|
asResponse?: AsResponse | undefined;
|
|
@@ -587,7 +587,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
587
587
|
} & {
|
|
588
588
|
asResponse?: boolean;
|
|
589
589
|
returnHeaders?: boolean;
|
|
590
|
-
use?:
|
|
590
|
+
use?: better_call121.Middleware[];
|
|
591
591
|
path?: string;
|
|
592
592
|
} & {
|
|
593
593
|
asResponse?: AsResponse | undefined;
|
|
@@ -668,7 +668,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
668
668
|
} & {
|
|
669
669
|
asResponse?: boolean;
|
|
670
670
|
returnHeaders?: boolean;
|
|
671
|
-
use?:
|
|
671
|
+
use?: better_call121.Middleware[];
|
|
672
672
|
path?: string;
|
|
673
673
|
} & {
|
|
674
674
|
asResponse?: AsResponse | undefined;
|
|
@@ -749,7 +749,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
749
749
|
} & {
|
|
750
750
|
asResponse?: boolean;
|
|
751
751
|
returnHeaders?: boolean;
|
|
752
|
-
use?:
|
|
752
|
+
use?: better_call121.Middleware[];
|
|
753
753
|
path?: string;
|
|
754
754
|
} & {
|
|
755
755
|
asResponse?: AsResponse | undefined;
|
|
@@ -802,8 +802,8 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
802
802
|
};
|
|
803
803
|
hooks: {
|
|
804
804
|
after: {
|
|
805
|
-
matcher(context:
|
|
806
|
-
handler: (inputContext:
|
|
805
|
+
matcher(context: _gatwech_core49.HookEndpointContext): boolean;
|
|
806
|
+
handler: (inputContext: better_call121.MiddlewareInputContext<better_call121.MiddlewareOptions>) => Promise<void>;
|
|
807
807
|
}[];
|
|
808
808
|
};
|
|
809
809
|
$ERROR_CODES: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as User, h as Session } from "./index-
|
|
2
|
-
import { t as InferOptionSchema } from "./plugins-
|
|
3
|
-
import * as
|
|
1
|
+
import { g as User, h as Session } from "./index-BNhJglHC.mjs";
|
|
2
|
+
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
3
|
+
import * as _gatwech_core0 from "@gatwech/core";
|
|
4
4
|
import { AuthContext, GenericEndpointContext } from "@gatwech/core";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_call0 from "better-call";
|
|
6
6
|
import { EndpointContext } from "better-call";
|
|
7
7
|
|
|
8
8
|
//#region src/plugins/anonymous/index.d.ts
|
|
@@ -77,7 +77,7 @@ declare const anonymous: (options?: AnonymousOptions | undefined) => {
|
|
|
77
77
|
} & {
|
|
78
78
|
asResponse?: boolean;
|
|
79
79
|
returnHeaders?: boolean;
|
|
80
|
-
use?:
|
|
80
|
+
use?: better_call0.Middleware[];
|
|
81
81
|
path?: string;
|
|
82
82
|
} & {
|
|
83
83
|
asResponse?: AsResponse | undefined;
|
|
@@ -141,8 +141,8 @@ declare const anonymous: (options?: AnonymousOptions | undefined) => {
|
|
|
141
141
|
};
|
|
142
142
|
hooks: {
|
|
143
143
|
after: {
|
|
144
|
-
matcher(ctx:
|
|
145
|
-
handler: (inputContext:
|
|
144
|
+
matcher(ctx: _gatwech_core0.HookEndpointContext): boolean;
|
|
145
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
|
|
146
146
|
}[];
|
|
147
147
|
};
|
|
148
148
|
schema: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _gatwech_core46 from "@gatwech/core";
|
|
2
|
+
import * as better_call105 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_core46.HookEndpointContext): boolean;
|
|
23
|
+
handler: (inputContext: better_call105.MiddlewareInputContext<better_call105.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_core46.HookEndpointContext): true;
|
|
31
|
+
handler: (inputContext: better_call105.MiddlewareInputContext<better_call105.MiddlewareOptions>) => Promise<void>;
|
|
32
32
|
}[];
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as User } from "./index-
|
|
2
|
-
import { t as InferOptionSchema } from "./plugins-
|
|
3
|
-
import * as
|
|
1
|
+
import { g as User } from "./index-BNhJglHC.mjs";
|
|
2
|
+
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
3
|
+
import * as better_call76 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_call76.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_call76.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_call76.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_call76.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_call76.Middleware[];
|
|
521
521
|
path?: string;
|
|
522
522
|
} & {
|
|
523
523
|
asResponse?: AsResponse | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
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, PayvoAuthCookies, PayvoAuthOptions } from "@gatwech/core";
|
|
3
3
|
import { CookieOptions } from "better-call";
|
|
4
4
|
import "zod";
|