@gatwech/auth 1.0.0-beta.21 → 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/index.d.mts +1 -1
- 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 +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/{api-Dk8Yj_J5.mjs → api-BV65Y-Rk.mjs} +5 -0
- package/dist/{auth-BoEA9bN7.mjs → auth-DtOjarwu.mjs} +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/plugins/index.d.mts +46 -46
- package/dist/client/react/index.d.mts +1 -1
- package/dist/{client-Da7tq8m6.d.mts → client-DO9MgP_0.d.mts} +1 -1
- package/dist/{client-B00gkznv.d.mts → client-ukvqpcbI.d.mts} +1 -1
- package/dist/cookies/index.d.mts +2 -2
- package/dist/db/index.d.mts +1 -1
- 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-BKy-8t2n.d.mts → index-AiKdOFSd.d.mts} +111 -112
- package/dist/{index-YeXSxzhX.d.mts → index-B4hJVVRn.d.mts} +19 -19
- package/dist/{index-Bhc37y9F.d.mts → index-BC0aAKsT.d.mts} +3 -3
- package/dist/{index-CpH-1sse.d.mts → index-BfLofiXO.d.mts} +9 -9
- package/dist/{index-CbBQdS-u.d.mts → index-BzzhaGLe.d.mts} +6 -6
- package/dist/{index-jEkJ2Zfk.d.mts → index-CBGNX7W1.d.mts} +6 -6
- package/dist/{index-Dt2I0G4X.d.mts → index-CRNh-5Tc.d.mts} +7 -7
- package/dist/{index-CMG4Pnen.d.mts → index-CRiKKdkb.d.mts} +6 -6
- package/dist/{index-VUyESU4p.d.mts → index-CTSeVJJB.d.mts} +1 -1
- package/dist/{index-iRoaTsOj.d.mts → index-CxhQu1HM.d.mts} +2 -2
- package/dist/{index-CM1rFdwV.d.mts → index-D-rjuF7p.d.mts} +7 -7
- package/dist/{index-IX1to9TB.d.mts → index-D3uQsW8T.d.mts} +33 -33
- package/dist/{index-CTqynuxm.d.mts → index-DKirx_GW.d.mts} +4 -4
- package/dist/{index-TrOnY3pM.d.mts → index-DSoiUc1C.d.mts} +169 -169
- package/dist/{index-oNlp4SvD.d.mts → index-Dkm27DLN.d.mts} +10 -10
- package/dist/{index-cPt-00xm.d.mts → index-Dl0bD1_6.d.mts} +6 -6
- package/dist/{index-C-IDh5yy.d.mts → index-DlS-HqZR.d.mts} +2 -2
- package/dist/{index-BjCQ3jmE.d.mts → index-DngQlUSI.d.mts} +118 -118
- package/dist/{index-D1OZ2e4m.d.mts → index-Do8AV4PF.d.mts} +13 -13
- package/dist/{index-WV7VzW2H.d.mts → index-SYRh5FW7.d.mts} +8 -8
- package/dist/{index-BECNG13R.d.mts → index-eOfQxlQV.d.mts} +13 -13
- package/dist/{index-BWYXZVsV.d.mts → index-hP8gvyp-.d.mts} +5 -5
- package/dist/{index-Bxive_YT.d.mts → index-pdl9MzQu.d.mts} +9 -9
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/integrations/next-js.d.mts +4 -4
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/react-start.d.mts +4 -4
- package/dist/{jwt-DBN2mu0r.mjs → jwt-Czv-v097.mjs} +1 -1
- 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 +1 -1
- package/dist/oauth2/index.mjs +1 -1
- package/dist/{one-tap-CodeyQb8.mjs → one-tap-Cm1eHuqi.mjs} +1 -1
- package/dist/{organization-D4QMpChF.mjs → organization-BK3ks97y.mjs} +1 -1
- package/dist/plugins/admin/index.d.mts +2 -2
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.mjs +2 -2
- package/dist/plugins/audit-log/client.d.mts +23 -23
- package/dist/plugins/audit-log/index.d.mts +22 -22
- package/dist/plugins/audit-log/index.mjs +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.mts +2 -2
- package/dist/plugins/custom-session/index.mjs +1 -1
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.mjs +2 -2
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/generic-oauth/index.mjs +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +2 -2
- package/dist/plugins/index.d.mts +22 -22
- package/dist/plugins/index.mjs +15 -15
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.mjs +2 -2
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/magic-link/index.mjs +2 -2
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.mjs +2 -2
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +2 -2
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.mjs +2 -2
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.mjs +15 -15
- package/dist/plugins/organization/index.d.mts +2 -2
- package/dist/plugins/organization/index.mjs +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/plugins/passkey/index.mjs +1 -1
- package/dist/plugins/phone-number/index.d.mts +2 -2
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/sentinel/client.d.mts +23 -23
- package/dist/plugins/sentinel/index.d.mts +22 -22
- package/dist/plugins/sentinel/index.mjs +3 -3
- package/dist/plugins/two-factor/index.d.mts +2 -2
- package/dist/plugins/two-factor/index.mjs +1 -1
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.mjs +2 -2
- package/dist/{plugins-yF8CFUDR.mjs → plugins-RSPSU3ro.mjs} +1 -1
- package/dist/{sentinel-B4Wo79HK.mjs → sentinel-B-2jmmZh.mjs} +30 -6
- package/dist/src/plugins/sentinel/geo.d.ts +11 -0
- package/dist/src/plugins/sentinel/index.d.ts +1 -3
- package/dist/test-utils/index.d.mts +1044 -1044
- package/dist/test-utils/index.mjs +16 -16
- package/dist/types/index.d.mts +1 -1
- package/dist/{username-BHNvcvsY.mjs → username-DCp6yugu.mjs} +1 -1
- package/package.json +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { g as User$1 } from "./index-
|
|
1
|
+
import { g as User$1 } from "./index-DngQlUSI.mjs";
|
|
2
2
|
import { n as DBPrimitive } from "./index-BL_t8cRp-C4QYBsac.mjs";
|
|
3
3
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
4
4
|
import { o as Statements } from "./index-CxlWnL9c.mjs";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _gatwech_core57 from "@gatwech/core";
|
|
6
6
|
import { AuthContext, GenericEndpointContext, HookEndpointContext } from "@gatwech/core";
|
|
7
|
-
import * as
|
|
7
|
+
import * as better_call271 from "better-call";
|
|
8
8
|
import { AuthEndpoint, AuthMiddleware, createAuthEndpoint as createAuthEndpoint$1, createAuthMiddleware as createAuthMiddleware$1, optionsMiddleware } from "@gatwech/core/api";
|
|
9
|
-
import * as
|
|
9
|
+
import * as zod381 from "zod";
|
|
10
10
|
import * as _gatwech_core_db14 from "@gatwech/core/db";
|
|
11
|
-
import * as
|
|
11
|
+
import * as zod_v4_core51 from "zod/v4/core";
|
|
12
12
|
|
|
13
13
|
//#region src/plugins/api-key/schema.d.ts
|
|
14
14
|
declare const apiKeySchema: ({
|
|
@@ -547,8 +547,8 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
547
547
|
};
|
|
548
548
|
hooks: {
|
|
549
549
|
before: {
|
|
550
|
-
matcher: (ctx:
|
|
551
|
-
handler: (inputContext:
|
|
550
|
+
matcher: (ctx: _gatwech_core57.HookEndpointContext) => boolean;
|
|
551
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
552
552
|
user: {
|
|
553
553
|
id: string;
|
|
554
554
|
createdAt: Date;
|
|
@@ -569,7 +569,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
569
569
|
expiresAt: Date;
|
|
570
570
|
};
|
|
571
571
|
} | {
|
|
572
|
-
context:
|
|
572
|
+
context: better_call271.MiddlewareContext<better_call271.MiddlewareOptions, _gatwech_core57.AuthContext<_gatwech_core57.PayvoAuthOptions> & {
|
|
573
573
|
returned?: unknown | undefined;
|
|
574
574
|
responseHeaders?: Headers | undefined;
|
|
575
575
|
}>;
|
|
@@ -621,7 +621,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
621
621
|
} & {
|
|
622
622
|
asResponse?: boolean;
|
|
623
623
|
returnHeaders?: boolean;
|
|
624
|
-
use?:
|
|
624
|
+
use?: better_call271.Middleware[];
|
|
625
625
|
path?: string;
|
|
626
626
|
} & {
|
|
627
627
|
asResponse?: AsResponse | undefined;
|
|
@@ -676,20 +676,20 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
676
676
|
}>;
|
|
677
677
|
options: {
|
|
678
678
|
method: "POST";
|
|
679
|
-
body:
|
|
680
|
-
name:
|
|
681
|
-
expiresIn:
|
|
682
|
-
userId:
|
|
683
|
-
prefix:
|
|
684
|
-
remaining:
|
|
685
|
-
metadata:
|
|
686
|
-
refillAmount:
|
|
687
|
-
refillInterval:
|
|
688
|
-
rateLimitTimeWindow:
|
|
689
|
-
rateLimitMax:
|
|
690
|
-
rateLimitEnabled:
|
|
691
|
-
permissions:
|
|
692
|
-
},
|
|
679
|
+
body: zod381.ZodObject<{
|
|
680
|
+
name: zod381.ZodOptional<zod381.ZodString>;
|
|
681
|
+
expiresIn: zod381.ZodDefault<zod381.ZodNullable<zod381.ZodOptional<zod381.ZodNumber>>>;
|
|
682
|
+
userId: zod381.ZodOptional<zod381.ZodCoercedString<unknown>>;
|
|
683
|
+
prefix: zod381.ZodOptional<zod381.ZodString>;
|
|
684
|
+
remaining: zod381.ZodDefault<zod381.ZodNullable<zod381.ZodOptional<zod381.ZodNumber>>>;
|
|
685
|
+
metadata: zod381.ZodOptional<zod381.ZodAny>;
|
|
686
|
+
refillAmount: zod381.ZodOptional<zod381.ZodNumber>;
|
|
687
|
+
refillInterval: zod381.ZodOptional<zod381.ZodNumber>;
|
|
688
|
+
rateLimitTimeWindow: zod381.ZodOptional<zod381.ZodNumber>;
|
|
689
|
+
rateLimitMax: zod381.ZodOptional<zod381.ZodNumber>;
|
|
690
|
+
rateLimitEnabled: zod381.ZodOptional<zod381.ZodBoolean>;
|
|
691
|
+
permissions: zod381.ZodOptional<zod381.ZodRecord<zod381.ZodString, zod381.ZodArray<zod381.ZodString>>>;
|
|
692
|
+
}, zod_v4_core51.$strip>;
|
|
693
693
|
metadata: {
|
|
694
694
|
openapi: {
|
|
695
695
|
description: string;
|
|
@@ -855,7 +855,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
855
855
|
} & {
|
|
856
856
|
asResponse?: boolean;
|
|
857
857
|
returnHeaders?: boolean;
|
|
858
|
-
use?:
|
|
858
|
+
use?: better_call271.Middleware[];
|
|
859
859
|
path?: string;
|
|
860
860
|
} & {
|
|
861
861
|
asResponse?: AsResponse | undefined;
|
|
@@ -888,10 +888,10 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
888
888
|
}>;
|
|
889
889
|
options: {
|
|
890
890
|
method: "POST";
|
|
891
|
-
body:
|
|
892
|
-
key:
|
|
893
|
-
permissions:
|
|
894
|
-
},
|
|
891
|
+
body: zod381.ZodObject<{
|
|
892
|
+
key: zod381.ZodString;
|
|
893
|
+
permissions: zod381.ZodOptional<zod381.ZodRecord<zod381.ZodString, zod381.ZodArray<zod381.ZodString>>>;
|
|
894
|
+
}, zod_v4_core51.$strip>;
|
|
895
895
|
metadata: {
|
|
896
896
|
SERVER_ONLY: true;
|
|
897
897
|
};
|
|
@@ -933,7 +933,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
933
933
|
} & {
|
|
934
934
|
asResponse?: boolean;
|
|
935
935
|
returnHeaders?: boolean;
|
|
936
|
-
use?:
|
|
936
|
+
use?: better_call271.Middleware[];
|
|
937
937
|
path?: string;
|
|
938
938
|
} & {
|
|
939
939
|
asResponse?: AsResponse | undefined;
|
|
@@ -990,10 +990,10 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
990
990
|
}>;
|
|
991
991
|
options: {
|
|
992
992
|
method: "GET";
|
|
993
|
-
query:
|
|
994
|
-
id:
|
|
995
|
-
},
|
|
996
|
-
use: ((inputContext:
|
|
993
|
+
query: zod381.ZodObject<{
|
|
994
|
+
id: zod381.ZodString;
|
|
995
|
+
}, zod_v4_core51.$strip>;
|
|
996
|
+
use: ((inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
997
997
|
session: {
|
|
998
998
|
session: Record<string, any> & {
|
|
999
999
|
id: string;
|
|
@@ -1186,7 +1186,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
1186
1186
|
} & {
|
|
1187
1187
|
asResponse?: boolean;
|
|
1188
1188
|
returnHeaders?: boolean;
|
|
1189
|
-
use?:
|
|
1189
|
+
use?: better_call271.Middleware[];
|
|
1190
1190
|
path?: string;
|
|
1191
1191
|
} & {
|
|
1192
1192
|
asResponse?: AsResponse | undefined;
|
|
@@ -1243,21 +1243,21 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
1243
1243
|
}>;
|
|
1244
1244
|
options: {
|
|
1245
1245
|
method: "POST";
|
|
1246
|
-
body:
|
|
1247
|
-
keyId:
|
|
1248
|
-
userId:
|
|
1249
|
-
name:
|
|
1250
|
-
enabled:
|
|
1251
|
-
remaining:
|
|
1252
|
-
refillAmount:
|
|
1253
|
-
refillInterval:
|
|
1254
|
-
metadata:
|
|
1255
|
-
expiresIn:
|
|
1256
|
-
rateLimitEnabled:
|
|
1257
|
-
rateLimitTimeWindow:
|
|
1258
|
-
rateLimitMax:
|
|
1259
|
-
permissions:
|
|
1260
|
-
},
|
|
1246
|
+
body: zod381.ZodObject<{
|
|
1247
|
+
keyId: zod381.ZodString;
|
|
1248
|
+
userId: zod381.ZodOptional<zod381.ZodCoercedString<unknown>>;
|
|
1249
|
+
name: zod381.ZodOptional<zod381.ZodString>;
|
|
1250
|
+
enabled: zod381.ZodOptional<zod381.ZodBoolean>;
|
|
1251
|
+
remaining: zod381.ZodOptional<zod381.ZodNumber>;
|
|
1252
|
+
refillAmount: zod381.ZodOptional<zod381.ZodNumber>;
|
|
1253
|
+
refillInterval: zod381.ZodOptional<zod381.ZodNumber>;
|
|
1254
|
+
metadata: zod381.ZodOptional<zod381.ZodAny>;
|
|
1255
|
+
expiresIn: zod381.ZodNullable<zod381.ZodOptional<zod381.ZodNumber>>;
|
|
1256
|
+
rateLimitEnabled: zod381.ZodOptional<zod381.ZodBoolean>;
|
|
1257
|
+
rateLimitTimeWindow: zod381.ZodOptional<zod381.ZodNumber>;
|
|
1258
|
+
rateLimitMax: zod381.ZodOptional<zod381.ZodNumber>;
|
|
1259
|
+
permissions: zod381.ZodNullable<zod381.ZodOptional<zod381.ZodRecord<zod381.ZodString, zod381.ZodArray<zod381.ZodString>>>>;
|
|
1260
|
+
}, zod_v4_core51.$strip>;
|
|
1261
1261
|
metadata: {
|
|
1262
1262
|
openapi: {
|
|
1263
1263
|
description: string;
|
|
@@ -1416,7 +1416,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
1416
1416
|
} & {
|
|
1417
1417
|
asResponse?: boolean;
|
|
1418
1418
|
returnHeaders?: boolean;
|
|
1419
|
-
use?:
|
|
1419
|
+
use?: better_call271.Middleware[];
|
|
1420
1420
|
path?: string;
|
|
1421
1421
|
} & {
|
|
1422
1422
|
asResponse?: AsResponse | undefined;
|
|
@@ -1431,10 +1431,10 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
1431
1431
|
}>;
|
|
1432
1432
|
options: {
|
|
1433
1433
|
method: "POST";
|
|
1434
|
-
body:
|
|
1435
|
-
keyId:
|
|
1436
|
-
},
|
|
1437
|
-
use: ((inputContext:
|
|
1434
|
+
body: zod381.ZodObject<{
|
|
1435
|
+
keyId: zod381.ZodString;
|
|
1436
|
+
}, zod_v4_core51.$strip>;
|
|
1437
|
+
use: ((inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
1438
1438
|
session: {
|
|
1439
1439
|
session: Record<string, any> & {
|
|
1440
1440
|
id: string;
|
|
@@ -1533,7 +1533,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
1533
1533
|
} & {
|
|
1534
1534
|
asResponse?: boolean;
|
|
1535
1535
|
returnHeaders?: boolean;
|
|
1536
|
-
use?:
|
|
1536
|
+
use?: better_call271.Middleware[];
|
|
1537
1537
|
path?: string;
|
|
1538
1538
|
} & {
|
|
1539
1539
|
asResponse?: AsResponse | undefined;
|
|
@@ -1590,7 +1590,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
1590
1590
|
}[]>;
|
|
1591
1591
|
options: {
|
|
1592
1592
|
method: "GET";
|
|
1593
|
-
use: ((inputContext:
|
|
1593
|
+
use: ((inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
1594
1594
|
session: {
|
|
1595
1595
|
session: Record<string, any> & {
|
|
1596
1596
|
id: string;
|
|
@@ -1769,7 +1769,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
1769
1769
|
} & {
|
|
1770
1770
|
asResponse?: boolean;
|
|
1771
1771
|
returnHeaders?: boolean;
|
|
1772
|
-
use?:
|
|
1772
|
+
use?: better_call271.Middleware[];
|
|
1773
1773
|
path?: string;
|
|
1774
1774
|
} & {
|
|
1775
1775
|
asResponse?: AsResponse | undefined;
|
|
@@ -1959,7 +1959,7 @@ interface LastLoginMethodOptions {
|
|
|
1959
1959
|
*/
|
|
1960
1960
|
declare const lastLoginMethod: <O extends LastLoginMethodOptions>(userConfig?: O | undefined) => {
|
|
1961
1961
|
id: "last-login-method";
|
|
1962
|
-
init(ctx:
|
|
1962
|
+
init(ctx: _gatwech_core57.AuthContext<_gatwech_core57.PayvoAuthOptions>): {
|
|
1963
1963
|
options: {
|
|
1964
1964
|
databaseHooks: {
|
|
1965
1965
|
user: {
|
|
@@ -1972,7 +1972,7 @@ declare const lastLoginMethod: <O extends LastLoginMethodOptions>(userConfig?: O
|
|
|
1972
1972
|
emailVerified: boolean;
|
|
1973
1973
|
name: string;
|
|
1974
1974
|
image?: string | null | undefined;
|
|
1975
|
-
} & Record<string, unknown>, context: GenericEndpointContext<
|
|
1975
|
+
} & Record<string, unknown>, context: GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<{
|
|
1976
1976
|
data: {
|
|
1977
1977
|
lastLoginMethod: any;
|
|
1978
1978
|
id: string;
|
|
@@ -1997,7 +1997,7 @@ declare const lastLoginMethod: <O extends LastLoginMethodOptions>(userConfig?: O
|
|
|
1997
1997
|
token: string;
|
|
1998
1998
|
ipAddress?: string | null | undefined;
|
|
1999
1999
|
userAgent?: string | null | undefined;
|
|
2000
|
-
} & Record<string, unknown>, context: GenericEndpointContext<
|
|
2000
|
+
} & Record<string, unknown>, context: GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
2001
2001
|
};
|
|
2002
2002
|
};
|
|
2003
2003
|
};
|
|
@@ -2006,7 +2006,7 @@ declare const lastLoginMethod: <O extends LastLoginMethodOptions>(userConfig?: O
|
|
|
2006
2006
|
hooks: {
|
|
2007
2007
|
after: {
|
|
2008
2008
|
matcher(): true;
|
|
2009
|
-
handler: (inputContext:
|
|
2009
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<void>;
|
|
2010
2010
|
}[];
|
|
2011
2011
|
};
|
|
2012
2012
|
schema: O["storeInDatabase"] extends true ? {
|
|
@@ -2896,7 +2896,7 @@ declare function parsePowHeader(value: string | null | undefined): {
|
|
|
2896
2896
|
//#region src/plugins/sentinel/index.d.ts
|
|
2897
2897
|
declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
2898
2898
|
id: "sentinel";
|
|
2899
|
-
init(ctx: AuthContext<
|
|
2899
|
+
init(ctx: AuthContext<_gatwech_core57.PayvoAuthOptions>): {
|
|
2900
2900
|
options: {
|
|
2901
2901
|
databaseHooks: {
|
|
2902
2902
|
user: {
|
|
@@ -2909,7 +2909,7 @@ declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
2909
2909
|
emailVerified: boolean;
|
|
2910
2910
|
name: string;
|
|
2911
2911
|
image?: string | null | undefined;
|
|
2912
|
-
} & Record<string, unknown>, context: GenericEndpointContext<
|
|
2912
|
+
} & Record<string, unknown>, context: GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<{
|
|
2913
2913
|
data: {
|
|
2914
2914
|
normalizedEmail: string;
|
|
2915
2915
|
id: string;
|
|
@@ -2929,7 +2929,7 @@ declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
2929
2929
|
emailVerified: boolean;
|
|
2930
2930
|
name: string;
|
|
2931
2931
|
image?: string | null | undefined;
|
|
2932
|
-
} & Record<string, unknown>, context: GenericEndpointContext<
|
|
2932
|
+
} & Record<string, unknown>, context: GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
2933
2933
|
};
|
|
2934
2934
|
update: {
|
|
2935
2935
|
before(data: Partial<{
|
|
@@ -2957,28 +2957,28 @@ declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
2957
2957
|
};
|
|
2958
2958
|
};
|
|
2959
2959
|
} | undefined;
|
|
2960
|
-
onRequest(request: Request, ctx: AuthContext<
|
|
2960
|
+
onRequest(request: Request, ctx: AuthContext<_gatwech_core57.PayvoAuthOptions>): Promise<{
|
|
2961
2961
|
response: Response;
|
|
2962
2962
|
} | undefined>;
|
|
2963
2963
|
hooks: {
|
|
2964
2964
|
before: ({
|
|
2965
|
-
matcher(context:
|
|
2966
|
-
handler: (inputContext:
|
|
2965
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
2966
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
2967
2967
|
context: {
|
|
2968
2968
|
body: any;
|
|
2969
2969
|
};
|
|
2970
2970
|
} | undefined>;
|
|
2971
2971
|
} | {
|
|
2972
|
-
matcher(context:
|
|
2973
|
-
handler: (inputContext:
|
|
2972
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
2973
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<void>;
|
|
2974
2974
|
})[];
|
|
2975
2975
|
after: ({
|
|
2976
|
-
matcher(context:
|
|
2977
|
-
handler: (inputContext:
|
|
2976
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
2977
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<void>;
|
|
2978
2978
|
} | {
|
|
2979
|
-
matcher(context:
|
|
2980
|
-
handler: (inputContext:
|
|
2981
|
-
status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") |
|
|
2979
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
2980
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<({
|
|
2981
|
+
status: ("OK" | "CREATED" | "ACCEPTED" | "NO_CONTENT" | "MULTIPLE_CHOICES" | "MOVED_PERMANENTLY" | "FOUND" | "SEE_OTHER" | "NOT_MODIFIED" | "TEMPORARY_REDIRECT" | "BAD_REQUEST" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "NOT_ACCEPTABLE" | "PROXY_AUTHENTICATION_REQUIRED" | "REQUEST_TIMEOUT" | "CONFLICT" | "GONE" | "LENGTH_REQUIRED" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "URI_TOO_LONG" | "UNSUPPORTED_MEDIA_TYPE" | "RANGE_NOT_SATISFIABLE" | "EXPECTATION_FAILED" | "I'M_A_TEAPOT" | "MISDIRECTED_REQUEST" | "UNPROCESSABLE_ENTITY" | "LOCKED" | "FAILED_DEPENDENCY" | "TOO_EARLY" | "UPGRADE_REQUIRED" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "REQUEST_HEADER_FIELDS_TOO_LARGE" | "UNAVAILABLE_FOR_LEGAL_REASONS" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "HTTP_VERSION_NOT_SUPPORTED" | "VARIANT_ALSO_NEGOTIATES" | "INSUFFICIENT_STORAGE" | "LOOP_DETECTED" | "NOT_EXTENDED" | "NETWORK_AUTHENTICATION_REQUIRED") | better_call271.Status;
|
|
2982
2982
|
body: ({
|
|
2983
2983
|
message?: string;
|
|
2984
2984
|
code?: string;
|
|
@@ -3141,8 +3141,7 @@ declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
3141
3141
|
credentialStuffing?: {
|
|
3142
3142
|
enabled: boolean;
|
|
3143
3143
|
action?: SecurityAction | undefined;
|
|
3144
|
-
thresholds
|
|
3145
|
-
/** Checked with the identification service, rather than taken as sent */? /** Checked with the identification service, rather than taken as sent */: {
|
|
3144
|
+
thresholds?: {
|
|
3146
3145
|
challenge: number;
|
|
3147
3146
|
block: number;
|
|
3148
3147
|
} | undefined;
|
|
@@ -3226,7 +3225,7 @@ declare const AUDIT_LOG_ERROR_CODES: {
|
|
|
3226
3225
|
};
|
|
3227
3226
|
declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
3228
3227
|
id: "audit-log";
|
|
3229
|
-
init(ctx: AuthContext<
|
|
3228
|
+
init(ctx: AuthContext<_gatwech_core57.PayvoAuthOptions>): {
|
|
3230
3229
|
options: {
|
|
3231
3230
|
databaseHooks: {
|
|
3232
3231
|
user: {
|
|
@@ -3239,7 +3238,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3239
3238
|
emailVerified: boolean;
|
|
3240
3239
|
name: string;
|
|
3241
3240
|
image?: string | null | undefined;
|
|
3242
|
-
} & Record<string, unknown>, context:
|
|
3241
|
+
} & Record<string, unknown>, context: _gatwech_core57.GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
3243
3242
|
};
|
|
3244
3243
|
update: {
|
|
3245
3244
|
after(user: {
|
|
@@ -3250,7 +3249,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3250
3249
|
emailVerified: boolean;
|
|
3251
3250
|
name: string;
|
|
3252
3251
|
image?: string | null | undefined;
|
|
3253
|
-
} & Record<string, unknown>, context:
|
|
3252
|
+
} & Record<string, unknown>, context: _gatwech_core57.GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined, data: (Partial<{
|
|
3254
3253
|
id: string;
|
|
3255
3254
|
createdAt: Date;
|
|
3256
3255
|
updatedAt: Date;
|
|
@@ -3269,7 +3268,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3269
3268
|
emailVerified: boolean;
|
|
3270
3269
|
name: string;
|
|
3271
3270
|
image?: string | null | undefined;
|
|
3272
|
-
} & Record<string, unknown>, context:
|
|
3271
|
+
} & Record<string, unknown>, context: _gatwech_core57.GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
3273
3272
|
};
|
|
3274
3273
|
};
|
|
3275
3274
|
session: {
|
|
@@ -3283,7 +3282,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3283
3282
|
token: string;
|
|
3284
3283
|
ipAddress?: string | null | undefined;
|
|
3285
3284
|
userAgent?: string | null | undefined;
|
|
3286
|
-
} & Record<string, unknown>, context:
|
|
3285
|
+
} & Record<string, unknown>, context: _gatwech_core57.GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
3287
3286
|
};
|
|
3288
3287
|
};
|
|
3289
3288
|
account: {
|
|
@@ -3302,7 +3301,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3302
3301
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
3303
3302
|
scope?: string | null | undefined;
|
|
3304
3303
|
password?: string | null | undefined;
|
|
3305
|
-
}, context:
|
|
3304
|
+
}, context: _gatwech_core57.GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
3306
3305
|
};
|
|
3307
3306
|
};
|
|
3308
3307
|
};
|
|
@@ -3310,12 +3309,12 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3310
3309
|
};
|
|
3311
3310
|
hooks: {
|
|
3312
3311
|
before: {
|
|
3313
|
-
matcher(context:
|
|
3314
|
-
handler: (inputContext:
|
|
3312
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
3313
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<void>;
|
|
3315
3314
|
}[];
|
|
3316
3315
|
after: {
|
|
3317
|
-
matcher(context:
|
|
3318
|
-
handler: (inputContext:
|
|
3316
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
3317
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<void>;
|
|
3319
3318
|
}[];
|
|
3320
3319
|
};
|
|
3321
3320
|
endpoints: {
|
|
@@ -3344,7 +3343,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3344
3343
|
} & {
|
|
3345
3344
|
asResponse?: boolean;
|
|
3346
3345
|
returnHeaders?: boolean;
|
|
3347
|
-
use?:
|
|
3346
|
+
use?: better_call271.Middleware[];
|
|
3348
3347
|
path?: string;
|
|
3349
3348
|
} & {
|
|
3350
3349
|
asResponse?: AsResponse | undefined;
|
|
@@ -3365,7 +3364,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3365
3364
|
}>;
|
|
3366
3365
|
options: {
|
|
3367
3366
|
method: "GET";
|
|
3368
|
-
use: ((inputContext:
|
|
3367
|
+
use: ((inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
3369
3368
|
session: {
|
|
3370
3369
|
session: Record<string, any> & {
|
|
3371
3370
|
id: string;
|
|
@@ -3388,16 +3387,16 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3388
3387
|
};
|
|
3389
3388
|
};
|
|
3390
3389
|
}>)[];
|
|
3391
|
-
query:
|
|
3392
|
-
limit:
|
|
3393
|
-
offset:
|
|
3394
|
-
eventType:
|
|
3395
|
-
identifier:
|
|
3396
|
-
organizationId:
|
|
3397
|
-
userId:
|
|
3398
|
-
startDate:
|
|
3399
|
-
endDate:
|
|
3400
|
-
},
|
|
3390
|
+
query: zod381.ZodOptional<zod381.ZodObject<{
|
|
3391
|
+
limit: zod381.ZodOptional<zod381.ZodUnion<[zod381.ZodString, zod381.ZodNumber]>>;
|
|
3392
|
+
offset: zod381.ZodOptional<zod381.ZodUnion<[zod381.ZodString, zod381.ZodNumber]>>;
|
|
3393
|
+
eventType: zod381.ZodOptional<zod381.ZodString>;
|
|
3394
|
+
identifier: zod381.ZodOptional<zod381.ZodString>;
|
|
3395
|
+
organizationId: zod381.ZodOptional<zod381.ZodString>;
|
|
3396
|
+
userId: zod381.ZodOptional<zod381.ZodString>;
|
|
3397
|
+
startDate: zod381.ZodOptional<zod381.ZodString>;
|
|
3398
|
+
endDate: zod381.ZodOptional<zod381.ZodString>;
|
|
3399
|
+
}, zod381.core.$strip>>;
|
|
3401
3400
|
metadata: {
|
|
3402
3401
|
openapi: {
|
|
3403
3402
|
operationId: string;
|
|
@@ -3512,7 +3511,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3512
3511
|
} & {
|
|
3513
3512
|
asResponse?: boolean;
|
|
3514
3513
|
returnHeaders?: boolean;
|
|
3515
|
-
use?:
|
|
3514
|
+
use?: better_call271.Middleware[];
|
|
3516
3515
|
path?: string;
|
|
3517
3516
|
} & {
|
|
3518
3517
|
asResponse?: AsResponse | undefined;
|
|
@@ -3533,7 +3532,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3533
3532
|
}>;
|
|
3534
3533
|
options: {
|
|
3535
3534
|
method: "GET";
|
|
3536
|
-
use: ((inputContext:
|
|
3535
|
+
use: ((inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
3537
3536
|
session: {
|
|
3538
3537
|
session: Record<string, any> & {
|
|
3539
3538
|
id: string;
|
|
@@ -3556,16 +3555,16 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3556
3555
|
};
|
|
3557
3556
|
};
|
|
3558
3557
|
}>)[];
|
|
3559
|
-
query:
|
|
3560
|
-
limit:
|
|
3561
|
-
offset:
|
|
3562
|
-
eventType:
|
|
3563
|
-
identifier:
|
|
3564
|
-
organizationId:
|
|
3565
|
-
userId:
|
|
3566
|
-
startDate:
|
|
3567
|
-
endDate:
|
|
3568
|
-
},
|
|
3558
|
+
query: zod381.ZodOptional<zod381.ZodObject<{
|
|
3559
|
+
limit: zod381.ZodOptional<zod381.ZodUnion<[zod381.ZodString, zod381.ZodNumber]>>;
|
|
3560
|
+
offset: zod381.ZodOptional<zod381.ZodUnion<[zod381.ZodString, zod381.ZodNumber]>>;
|
|
3561
|
+
eventType: zod381.ZodOptional<zod381.ZodString>;
|
|
3562
|
+
identifier: zod381.ZodOptional<zod381.ZodString>;
|
|
3563
|
+
organizationId: zod381.ZodOptional<zod381.ZodString>;
|
|
3564
|
+
userId: zod381.ZodOptional<zod381.ZodString>;
|
|
3565
|
+
startDate: zod381.ZodOptional<zod381.ZodString>;
|
|
3566
|
+
endDate: zod381.ZodOptional<zod381.ZodString>;
|
|
3567
|
+
}, zod381.core.$strip>>;
|
|
3569
3568
|
metadata: {
|
|
3570
3569
|
openapi: {
|
|
3571
3570
|
operationId: string;
|
|
@@ -3671,7 +3670,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3671
3670
|
} & {
|
|
3672
3671
|
asResponse?: boolean;
|
|
3673
3672
|
returnHeaders?: boolean;
|
|
3674
|
-
use?:
|
|
3673
|
+
use?: better_call271.Middleware[];
|
|
3675
3674
|
path?: string;
|
|
3676
3675
|
} & {
|
|
3677
3676
|
asResponse?: AsResponse | undefined;
|
|
@@ -3686,7 +3685,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3686
3685
|
}>;
|
|
3687
3686
|
options: {
|
|
3688
3687
|
method: "GET";
|
|
3689
|
-
use: ((inputContext:
|
|
3688
|
+
use: ((inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
3690
3689
|
session: {
|
|
3691
3690
|
session: Record<string, any> & {
|
|
3692
3691
|
id: string;
|