@gatwech/auth 1.0.0-beta.20 → 1.0.0-beta.22
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/drizzle-adapter/index.mjs +11 -2
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.mjs +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.mjs +2 -2
- package/dist/adapters/prisma-adapter/index.mjs +1 -1
- package/dist/{admin-BzUJL6tr.mjs → admin-rd-xHhnP.mjs} +1 -1
- package/dist/{anonymous-BjlTk4gl.mjs → anonymous-qSasVeIe.mjs} +1 -1
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.mjs +2 -2
- package/dist/{api-Dk8Yj_J5.mjs → api-BV65Y-Rk.mjs} +5 -0
- package/dist/{audit-log-DKsUWR8O.mjs → audit-log-DgqHJ-uv.mjs} +132 -63
- package/dist/{auth-vfCyIIeV.mjs → auth-DtOjarwu.mjs} +15 -2
- package/dist/client/index.d.mts +2 -2
- package/dist/client/plugins/index.d.mts +28 -28
- package/dist/client/plugins/index.mjs +2 -2
- package/dist/client/react/index.d.mts +2 -2
- package/dist/{client-4QEb0rUr.mjs → client-CMsC6-rl.mjs} +1 -1
- package/dist/{client-C_qmyez2.d.mts → client-DO9MgP_0.d.mts} +1 -1
- package/dist/{client-F67q-Lbi.d.mts → client-ukvqpcbI.d.mts} +1 -1
- package/dist/cookies/index.d.mts +3 -3
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/{db-7vHnL1XA.mjs → db-CV59HpEF.mjs} +2 -2
- package/dist/{email-otp-Dw0DypjQ.mjs → email-otp-BmgAht1S.mjs} +1 -1
- package/dist/{generic-oauth-DFj27JY8.mjs → generic-oauth-C5_AXj2z.mjs} +1 -1
- package/dist/{haveibeenpwned-CzNda7Tn.mjs → haveibeenpwned-_3a5amT-.mjs} +1 -1
- package/dist/{index-D57DuhZR.d.mts → index-AiKdOFSd.d.mts} +116 -64
- package/dist/{index-Bml-PCqP.d.mts → index-B4hJVVRn.d.mts} +19 -19
- package/dist/{index-DwPAddfE.d.mts → index-BC0aAKsT.d.mts} +3 -3
- package/dist/{index-Df0KhQRf-BEa5tdwJ.d.mts → index-BL_t8cRp-C4QYBsac.d.mts} +56 -17
- package/dist/{index-DyXi7S2M.d.mts → index-BfLofiXO.d.mts} +10 -10
- package/dist/{index-CP8x1TFq.d.mts → index-BzzhaGLe.d.mts} +6 -6
- package/dist/{index-DFSRYWFI.d.mts → index-CBGNX7W1.d.mts} +6 -6
- package/dist/{index-CofuaNMl.d.mts → index-CRNh-5Tc.d.mts} +7 -7
- package/dist/{index-CNd5jqLl.d.mts → index-CRiKKdkb.d.mts} +6 -6
- package/dist/{index-CsxtcAO0.d.mts → index-CTSeVJJB.d.mts} +1 -1
- package/dist/{index-sb-UFLuo.d.mts → index-CxhQu1HM.d.mts} +2 -2
- package/dist/{index-Dnd8S4S4.d.mts → index-D-rjuF7p.d.mts} +9 -9
- package/dist/{index-XfE0WjTN.d.mts → index-D3uQsW8T.d.mts} +34 -34
- package/dist/{index-4I1YhYhk.d.mts → index-DKirx_GW.d.mts} +4 -4
- package/dist/{index-KhbNmMmG.d.mts → index-DSoiUc1C.d.mts} +167 -167
- package/dist/{index-DTkcY7xH.d.mts → index-Dkm27DLN.d.mts} +10 -10
- package/dist/{index-BsSKcKgO.d.mts → index-Dl0bD1_6.d.mts} +6 -6
- package/dist/{index-DGeoJ4gu.d.mts → index-DlS-HqZR.d.mts} +2 -2
- package/dist/{index-BNhJglHC.d.mts → index-DngQlUSI.d.mts} +114 -114
- package/dist/{index-CC920PPp.d.mts → index-Do8AV4PF.d.mts} +14 -14
- package/dist/{index-CBiGsvDd.d.mts → index-SYRh5FW7.d.mts} +8 -8
- package/dist/{index-BX7rl07Z.d.mts → index-eOfQxlQV.d.mts} +13 -13
- package/dist/{index-D6ku0rUC.d.mts → index-hP8gvyp-.d.mts} +5 -5
- package/dist/{index-CzpdkTdv.d.mts → index-pdl9MzQu.d.mts} +9 -9
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/integrations/next-js.d.mts +4 -4
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/react-start.d.mts +4 -4
- package/dist/{jwt-DBN2mu0r.mjs → jwt-Czv-v097.mjs} +1 -1
- package/dist/{kysely-adapter-Bkm1liPW.mjs → kysely-adapter-BidlNTiV.mjs} +4 -2
- package/dist/{magic-link-D9Em1aOR.mjs → magic-link-CJgE0Ngn.mjs} +1 -1
- package/dist/{multi-session-Dno_8DxC.mjs → multi-session-bveCXtQW.mjs} +1 -1
- package/dist/{oauth-proxy-DW-zt8wv.mjs → oauth-proxy-69n1xA8L.mjs} +1 -1
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.mjs +2 -2
- package/dist/{one-tap-CodeyQb8.mjs → one-tap-Cm1eHuqi.mjs} +1 -1
- package/dist/{organization-CkTKs7bx.mjs → organization-BK3ks97y.mjs} +2 -2
- package/dist/plugins/admin/index.d.mts +3 -3
- package/dist/plugins/admin/index.mjs +3 -3
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.mjs +3 -3
- package/dist/plugins/audit-log/client.d.mts +24 -24
- package/dist/plugins/audit-log/index.d.mts +23 -23
- package/dist/plugins/audit-log/index.mjs +3 -3
- 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 +3 -3
- package/dist/plugins/custom-session/index.mjs +2 -2
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/device-authorization/index.mjs +1 -1
- package/dist/plugins/email-otp/index.d.mts +2 -2
- package/dist/plugins/email-otp/index.mjs +3 -3
- package/dist/plugins/generic-oauth/index.d.mts +3 -3
- package/dist/plugins/generic-oauth/index.mjs +3 -3
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +3 -3
- package/dist/plugins/index.d.mts +23 -23
- package/dist/plugins/index.mjs +18 -18
- package/dist/plugins/jwt/index.d.mts +3 -3
- package/dist/plugins/jwt/index.mjs +3 -3
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/magic-link/index.mjs +3 -3
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.mjs +3 -3
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +3 -3
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.mjs +3 -3
- package/dist/plugins/one-time-token/index.d.mts +3 -3
- package/dist/plugins/one-time-token/index.mjs +18 -18
- package/dist/plugins/organization/index.d.mts +3 -3
- package/dist/plugins/organization/index.mjs +3 -3
- package/dist/plugins/passkey/index.d.mts +3 -3
- package/dist/plugins/passkey/index.mjs +2 -2
- package/dist/plugins/phone-number/index.d.mts +3 -3
- package/dist/plugins/phone-number/index.mjs +2 -2
- package/dist/plugins/sentinel/client.d.mts +24 -24
- package/dist/plugins/sentinel/client.mjs +2 -2
- package/dist/plugins/sentinel/index.d.mts +23 -23
- package/dist/plugins/sentinel/index.mjs +5 -5
- package/dist/plugins/two-factor/index.d.mts +3 -3
- package/dist/plugins/two-factor/index.mjs +2 -2
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.mjs +3 -3
- package/dist/{plugins-yF8CFUDR.mjs → plugins-RSPSU3ro.mjs} +1 -1
- package/dist/{pow-OK01yPG3.mjs → pow-DvkUopsK.mjs} +17 -1
- package/dist/{sentinel-DiPqydKG.mjs → sentinel-B-2jmmZh.mjs} +325 -98
- 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 +10 -2
- package/dist/src/adapters/tests/number-id.d.ts +4 -4
- 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/plugins/admin/admin.d.ts +2 -2
- package/dist/src/plugins/api-key/index.d.ts +2 -2
- package/dist/src/plugins/audit-log/index.d.ts +5 -14
- package/dist/src/plugins/audit-log/remote.d.ts +4 -4
- package/dist/src/plugins/audit-log/types.d.ts +22 -0
- package/dist/src/plugins/email-otp/index.d.ts +1 -1
- package/dist/src/plugins/multi-session/index.d.ts +8 -8
- 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/geo.d.ts +11 -0
- package/dist/src/plugins/sentinel/index.d.ts +7 -0
- package/dist/src/plugins/sentinel/intel.d.ts +8 -1
- package/dist/src/plugins/sentinel/memory-cache.d.ts +12 -0
- package/dist/src/plugins/sentinel/schema.d.ts +4 -0
- package/dist/src/plugins/sentinel/store.d.ts +7 -0
- package/dist/src/plugins/sentinel/types.d.ts +29 -1
- package/dist/src/test-utils/test-instance.d.ts +25 -25
- package/dist/test-utils/index.d.mts +277 -277
- package/dist/test-utils/index.mjs +20 -20
- package/dist/types/index.d.mts +2 -2
- package/dist/{username-BHNvcvsY.mjs → username-DCp6yugu.mjs} +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _gatwech_core38 from "@gatwech/core";
|
|
2
|
+
import * as better_call166 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_call166.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_call166.MiddlewareInputContext<better_call166.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_core38.HookEndpointContext): boolean;
|
|
100
|
+
handler: (inputContext: better_call166.MiddlewareInputContext<better_call166.MiddlewareOptions>) => Promise<void>;
|
|
101
101
|
}[];
|
|
102
102
|
before: ({
|
|
103
103
|
matcher(): true;
|
|
104
|
-
handler: (inputContext:
|
|
104
|
+
handler: (inputContext: better_call166.MiddlewareInputContext<better_call166.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_core38.HookEndpointContext): boolean;
|
|
115
|
+
handler: (inputContext: better_call166.MiddlewareInputContext<better_call166.MiddlewareOptions>) => Promise<{
|
|
116
|
+
context: better_call166.MiddlewareContext<better_call166.MiddlewareOptions, _gatwech_core38.AuthContext<_gatwech_core38.PayvoAuthOptions> & {
|
|
117
117
|
returned?: unknown | undefined;
|
|
118
118
|
responseHeaders?: Headers | undefined;
|
|
119
119
|
}>;
|
|
@@ -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-DngQlUSI.mjs";
|
|
2
|
+
import * as _gatwech_core26 from "@gatwech/core";
|
|
3
3
|
import { GenericEndpointContext, PayvoAuthOptions } from "@gatwech/core";
|
|
4
|
-
import * as
|
|
4
|
+
import * as better_call147 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_core26.HookEndpointContext) => boolean;
|
|
23
|
+
handler: (inputContext: better_call147.MiddlewareInputContext<better_call147.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_call147.Middleware[];
|
|
47
47
|
path?: string;
|
|
48
48
|
} & {
|
|
49
49
|
asResponse?: AsResponse | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _gatwech_core27 from "@gatwech/core";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/captcha/constants.d.ts
|
|
4
4
|
declare const Providers: {
|
|
@@ -34,7 +34,7 @@ type CaptchaOptions = GoogleRecaptchaOptions | CloudflareTurnstileOptions | HCap
|
|
|
34
34
|
//#region src/plugins/captcha/index.d.ts
|
|
35
35
|
declare const captcha: (options: CaptchaOptions) => {
|
|
36
36
|
id: "captcha";
|
|
37
|
-
onRequest: (request: Request, ctx:
|
|
37
|
+
onRequest: (request: Request, ctx: _gatwech_core27.AuthContext<_gatwech_core27.PayvoAuthOptions>) => Promise<{
|
|
38
38
|
response: Response;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
};
|