@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
package/dist/db/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../helper-BgOIGHsu.mjs";
|
|
2
|
-
import { $t as mergeSchema, Jt as convertFromDB, Qt as toZodSchema, Sn as createFieldAttribute, Xt as getAdapter, Yt as convertToDB, Zt as FieldAttributeToSchema, _n as InferFieldsInput, an as parseSessionOutput, bn as InferValueType, cn as createInternalAdapter, dn as getMigrations, en as parseAccountInput, fn as matchType, gn as InferFieldsFromPlugins, hn as InferFieldsFromOptions, in as parseSessionInput, ln as getAuthTables, mn as InferAdditionalFieldsFromPluginOptions, nn as parseAdditionalUserInput, on as parseUserInput, pn as FieldAttributeToObject, qt as getWithHooks, rn as parseInputData, sn as parseUserOutput, tn as parseAccountOutput, un as getSchema, vn as InferFieldsInputClient, xn as PluginFieldAttribute, yn as InferFieldsOutput } from "../index-
|
|
2
|
+
import { $t as mergeSchema, Jt as convertFromDB, Qt as toZodSchema, Sn as createFieldAttribute, Xt as getAdapter, Yt as convertToDB, Zt as FieldAttributeToSchema, _n as InferFieldsInput, an as parseSessionOutput, bn as InferValueType, cn as createInternalAdapter, dn as getMigrations, en as parseAccountInput, fn as matchType, gn as InferFieldsFromPlugins, hn as InferFieldsFromOptions, in as parseSessionInput, ln as getAuthTables, mn as InferAdditionalFieldsFromPluginOptions, nn as parseAdditionalUserInput, on as parseUserInput, pn as FieldAttributeToObject, qt as getWithHooks, rn as parseInputData, sn as parseUserOutput, tn as parseAccountOutput, un as getSchema, vn as InferFieldsInputClient, xn as PluginFieldAttribute, yn as InferFieldsOutput } from "../index-DngQlUSI.mjs";
|
|
3
3
|
import "../types-DNQ9XQrB.mjs";
|
|
4
|
-
import "../index-
|
|
4
|
+
import "../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import "../plugins-Dy_FrD4Y.mjs";
|
|
6
6
|
export * from "@gatwech/core/db";
|
|
7
7
|
export { FieldAttributeToObject, FieldAttributeToSchema, InferAdditionalFieldsFromPluginOptions, InferFieldsFromOptions, InferFieldsFromPlugins, InferFieldsInput, InferFieldsInputClient, InferFieldsOutput, InferValueType, PluginFieldAttribute, convertFromDB, convertToDB, createFieldAttribute, createInternalAdapter, getAdapter, getAuthTables, getMigrations, getSchema, getWithHooks, matchType, mergeSchema, parseAccountInput, parseAccountOutput, parseAdditionalUserInput, parseInputData, parseSessionInput, parseSessionOutput, parseUserInput, parseUserOutput, toZodSchema };
|
package/dist/db/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import "../crypto-CCyta8xj.mjs";
|
|
|
5
5
|
import "../jwt-CmxZAGe2.mjs";
|
|
6
6
|
import "../random-32E3cU5o.mjs";
|
|
7
7
|
import { a as parseAdditionalUserInput, c as parseSessionOutput, i as parseAccountOutput, l as parseUserInput, n as mergeSchema, o as parseInputData, r as parseAccountInput, s as parseSessionInput, u as parseUserOutput } from "../date-CMr04reD.mjs";
|
|
8
|
-
import { a as createInternalAdapter, c as matchType, i as toZodSchema, l as getSchema, n as convertToDB, o as getWithHooks, r as getAdapter, s as getMigrations, t as convertFromDB, u as createFieldAttribute } from "../db-
|
|
8
|
+
import { a as createInternalAdapter, c as matchType, i as toZodSchema, l as getSchema, n as convertToDB, o as getWithHooks, r as getAdapter, s as getMigrations, t as convertFromDB, u as createFieldAttribute } from "../db-CV59HpEF.mjs";
|
|
9
9
|
import "../dialect-HsWUfpYY.mjs";
|
|
10
10
|
import { t as getAuthTables } from "../get-tables-CKvSyDST.mjs";
|
|
11
11
|
import "../types-DCPpFKUB.mjs";
|
|
@@ -384,7 +384,7 @@ function getWithHooks(adapter, ctx) {
|
|
|
384
384
|
}) : customUpdated;
|
|
385
385
|
for (const hook of hooks || []) {
|
|
386
386
|
const toRun = hook[model]?.update?.after;
|
|
387
|
-
if (toRun) await toRun(updated, context);
|
|
387
|
+
if (toRun) await toRun(updated, context, actualData);
|
|
388
388
|
}
|
|
389
389
|
return updated;
|
|
390
390
|
}
|
|
@@ -410,7 +410,7 @@ function getWithHooks(adapter, ctx) {
|
|
|
410
410
|
}) : customUpdated;
|
|
411
411
|
for (const hook of hooks || []) {
|
|
412
412
|
const toRun = hook[model]?.update?.after;
|
|
413
|
-
if (toRun) await toRun(updated, context);
|
|
413
|
+
if (toRun) await toRun(updated, context, actualData);
|
|
414
414
|
}
|
|
415
415
|
return updated;
|
|
416
416
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as APIError } from "./api-
|
|
1
|
+
import { t as APIError } from "./api-BV65Y-Rk.mjs";
|
|
2
2
|
import { n as symmetricEncrypt, t as symmetricDecrypt } from "./crypto-CCyta8xj.mjs";
|
|
3
3
|
import { t as generateRandomString } from "./random-32E3cU5o.mjs";
|
|
4
4
|
import { c as setSessionCookie, s as setCookieCache } from "./cookies-BuvlgcA-.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as parseState, r as generateState } from "./utils-B03WRaGi.mjs";
|
|
2
|
-
import { O as handleOAuthUserInfo } from "./api-
|
|
2
|
+
import { O as handleOAuthUserInfo } from "./api-BV65Y-Rk.mjs";
|
|
3
3
|
import { c as setSessionCookie } from "./cookies-BuvlgcA-.mjs";
|
|
4
4
|
import { u as sessionMiddleware } from "./session-BB3oqApE.mjs";
|
|
5
5
|
import { BASE_ERROR_CODES } from "@gatwech/core/error";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as User$1 } from "./index-
|
|
2
|
-
import { n as DBPrimitive } from "./index-
|
|
1
|
+
import { g as User$1 } from "./index-DngQlUSI.mjs";
|
|
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
9
|
import * as zod381 from "zod";
|
|
10
10
|
import * as _gatwech_core_db14 from "@gatwech/core/db";
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -993,7 +993,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
993
993
|
query: zod381.ZodObject<{
|
|
994
994
|
id: zod381.ZodString;
|
|
995
995
|
}, zod_v4_core51.$strip>;
|
|
996
|
-
use: ((inputContext:
|
|
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;
|
|
@@ -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;
|
|
@@ -1434,7 +1434,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
|
|
|
1434
1434
|
body: zod381.ZodObject<{
|
|
1435
1435
|
keyId: zod381.ZodString;
|
|
1436
1436
|
}, zod_v4_core51.$strip>;
|
|
1437
|
-
use: ((inputContext:
|
|
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 ? {
|
|
@@ -2230,6 +2230,10 @@ interface AuditLogOptions {
|
|
|
2230
2230
|
headers?: Record<string, string> | undefined;
|
|
2231
2231
|
/**
|
|
2232
2232
|
* Configure how events are batched before they are sent
|
|
2233
|
+
*
|
|
2234
|
+
* @deprecated Ignored: each event is sent as it's recorded, in the
|
|
2235
|
+
* background. Use `advanced.backgroundTasks` to keep serverless
|
|
2236
|
+
* functions alive until it's sent.
|
|
2233
2237
|
*/
|
|
2234
2238
|
batch?: {
|
|
2235
2239
|
/**
|
|
@@ -2276,6 +2280,24 @@ interface AuditLogOptions {
|
|
|
2276
2280
|
* @default ["admin"]
|
|
2277
2281
|
*/
|
|
2278
2282
|
adminRoles?: string[] | undefined;
|
|
2283
|
+
/**
|
|
2284
|
+
* Organization member roles allowed to read the events of their
|
|
2285
|
+
* organization through `/audit-log/get-all-audit-logs`
|
|
2286
|
+
*
|
|
2287
|
+
* @default ["owner", "admin"]
|
|
2288
|
+
*/
|
|
2289
|
+
organizationAdminRoles?: string[] | undefined;
|
|
2290
|
+
/**
|
|
2291
|
+
* Include failed sign-ins and security decisions made on a user's account
|
|
2292
|
+
* before they were signed in in their own events. They are matched by the
|
|
2293
|
+
* email that was typed, in lower case or as the user's email is stored, so
|
|
2294
|
+
* anyone's attempt shows up; the IP address, user agent, visitor id and
|
|
2295
|
+
* details are left out. Only the latest 50 events since the account was
|
|
2296
|
+
* created are included.
|
|
2297
|
+
*
|
|
2298
|
+
* @default true
|
|
2299
|
+
*/
|
|
2300
|
+
showAttemptsOnOwnAccount?: boolean | undefined;
|
|
2279
2301
|
/**
|
|
2280
2302
|
* Custom schema for the audit log plugin
|
|
2281
2303
|
*/
|
|
@@ -2361,6 +2383,10 @@ declare const schema$1: {
|
|
|
2361
2383
|
type: "string";
|
|
2362
2384
|
required: true;
|
|
2363
2385
|
};
|
|
2386
|
+
path: {
|
|
2387
|
+
type: "string";
|
|
2388
|
+
required: false;
|
|
2389
|
+
};
|
|
2364
2390
|
ipAddress: {
|
|
2365
2391
|
type: "string";
|
|
2366
2392
|
required: false;
|
|
@@ -2634,9 +2660,37 @@ interface SentinelOptions {
|
|
|
2634
2660
|
* @default "block"
|
|
2635
2661
|
*/
|
|
2636
2662
|
action?: SecurityAction | undefined;
|
|
2663
|
+
/**
|
|
2664
|
+
* Maximum accounts per IP address within `ipWindowSeconds`. This
|
|
2665
|
+
* limit catches sign-ups that send no visitor id, or a different
|
|
2666
|
+
* one each time, so it is higher than the per-visitor limit to
|
|
2667
|
+
* allow for networks that share an address. Acts with `action`.
|
|
2668
|
+
*
|
|
2669
|
+
* @default 10
|
|
2670
|
+
*/
|
|
2671
|
+
maxAccountsPerIp?: number | undefined;
|
|
2672
|
+
/**
|
|
2673
|
+
* How long sign-ups are remembered per IP address, in seconds.
|
|
2674
|
+
* Clamped to between 1 and 365 days.
|
|
2675
|
+
*
|
|
2676
|
+
* @default 86400 (1 day)
|
|
2677
|
+
*/
|
|
2678
|
+
ipWindowSeconds?: number | undefined;
|
|
2679
|
+
/**
|
|
2680
|
+
* Challenge sign-ups whose visitor id is missing or wasn't
|
|
2681
|
+
* verified by the identification service. Without the service
|
|
2682
|
+
* (`kvUrl` and an API key), every visitor id is unverified.
|
|
2683
|
+
*
|
|
2684
|
+
* Visitor limits are only reliable with the identification
|
|
2685
|
+
* service, since a client can send any id otherwise.
|
|
2686
|
+
*
|
|
2687
|
+
* @default false
|
|
2688
|
+
*/
|
|
2689
|
+
requireVerifiedVisitor?: boolean | undefined;
|
|
2637
2690
|
} | undefined;
|
|
2638
2691
|
/**
|
|
2639
|
-
* Detect automated clients
|
|
2692
|
+
* Detect automated clients on sign-in, sign-up, password reset and
|
|
2693
|
+
* verification requests. `true` challenges them.
|
|
2640
2694
|
*/
|
|
2641
2695
|
botBlocking?: (boolean | {
|
|
2642
2696
|
action: SecurityAction;
|
|
@@ -2842,7 +2896,7 @@ declare function parsePowHeader(value: string | null | undefined): {
|
|
|
2842
2896
|
//#region src/plugins/sentinel/index.d.ts
|
|
2843
2897
|
declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
2844
2898
|
id: "sentinel";
|
|
2845
|
-
init(ctx: AuthContext<
|
|
2899
|
+
init(ctx: AuthContext<_gatwech_core57.PayvoAuthOptions>): {
|
|
2846
2900
|
options: {
|
|
2847
2901
|
databaseHooks: {
|
|
2848
2902
|
user: {
|
|
@@ -2855,7 +2909,7 @@ declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
2855
2909
|
emailVerified: boolean;
|
|
2856
2910
|
name: string;
|
|
2857
2911
|
image?: string | null | undefined;
|
|
2858
|
-
} & Record<string, unknown>, context: GenericEndpointContext<
|
|
2912
|
+
} & Record<string, unknown>, context: GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<{
|
|
2859
2913
|
data: {
|
|
2860
2914
|
normalizedEmail: string;
|
|
2861
2915
|
id: string;
|
|
@@ -2875,7 +2929,7 @@ declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
2875
2929
|
emailVerified: boolean;
|
|
2876
2930
|
name: string;
|
|
2877
2931
|
image?: string | null | undefined;
|
|
2878
|
-
} & Record<string, unknown>, context: GenericEndpointContext<
|
|
2932
|
+
} & Record<string, unknown>, context: GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
2879
2933
|
};
|
|
2880
2934
|
update: {
|
|
2881
2935
|
before(data: Partial<{
|
|
@@ -2903,28 +2957,28 @@ declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
2903
2957
|
};
|
|
2904
2958
|
};
|
|
2905
2959
|
} | undefined;
|
|
2906
|
-
onRequest(request: Request, ctx: AuthContext<
|
|
2960
|
+
onRequest(request: Request, ctx: AuthContext<_gatwech_core57.PayvoAuthOptions>): Promise<{
|
|
2907
2961
|
response: Response;
|
|
2908
2962
|
} | undefined>;
|
|
2909
2963
|
hooks: {
|
|
2910
2964
|
before: ({
|
|
2911
|
-
matcher(context:
|
|
2912
|
-
handler: (inputContext:
|
|
2965
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
2966
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
2913
2967
|
context: {
|
|
2914
2968
|
body: any;
|
|
2915
2969
|
};
|
|
2916
2970
|
} | undefined>;
|
|
2917
2971
|
} | {
|
|
2918
|
-
matcher(context:
|
|
2919
|
-
handler: (inputContext:
|
|
2972
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
2973
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<void>;
|
|
2920
2974
|
})[];
|
|
2921
2975
|
after: ({
|
|
2922
|
-
matcher(context:
|
|
2923
|
-
handler: (inputContext:
|
|
2976
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
2977
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<void>;
|
|
2924
2978
|
} | {
|
|
2925
|
-
matcher(context:
|
|
2926
|
-
handler: (inputContext:
|
|
2927
|
-
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;
|
|
2928
2982
|
body: ({
|
|
2929
2983
|
message?: string;
|
|
2930
2984
|
code?: string;
|
|
@@ -3019,6 +3073,10 @@ declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
3019
3073
|
type: "string";
|
|
3020
3074
|
required: true;
|
|
3021
3075
|
};
|
|
3076
|
+
path: {
|
|
3077
|
+
type: "string";
|
|
3078
|
+
required: false;
|
|
3079
|
+
};
|
|
3022
3080
|
ipAddress: {
|
|
3023
3081
|
type: "string";
|
|
3024
3082
|
required: false;
|
|
@@ -3111,6 +3169,9 @@ declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
3111
3169
|
maxAccountsPerVisitor?: number | undefined;
|
|
3112
3170
|
retentionSeconds?: number | undefined;
|
|
3113
3171
|
action?: SecurityAction | undefined;
|
|
3172
|
+
maxAccountsPerIp?: number | undefined;
|
|
3173
|
+
ipWindowSeconds?: number | undefined;
|
|
3174
|
+
requireVerifiedVisitor?: boolean | undefined;
|
|
3114
3175
|
} | undefined;
|
|
3115
3176
|
botBlocking?: (boolean | {
|
|
3116
3177
|
action: SecurityAction;
|
|
@@ -3164,7 +3225,7 @@ declare const AUDIT_LOG_ERROR_CODES: {
|
|
|
3164
3225
|
};
|
|
3165
3226
|
declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
3166
3227
|
id: "audit-log";
|
|
3167
|
-
init(ctx: AuthContext<
|
|
3228
|
+
init(ctx: AuthContext<_gatwech_core57.PayvoAuthOptions>): {
|
|
3168
3229
|
options: {
|
|
3169
3230
|
databaseHooks: {
|
|
3170
3231
|
user: {
|
|
@@ -3177,10 +3238,10 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3177
3238
|
emailVerified: boolean;
|
|
3178
3239
|
name: string;
|
|
3179
3240
|
image?: string | null | undefined;
|
|
3180
|
-
} & Record<string, unknown>, context:
|
|
3241
|
+
} & Record<string, unknown>, context: _gatwech_core57.GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
3181
3242
|
};
|
|
3182
3243
|
update: {
|
|
3183
|
-
|
|
3244
|
+
after(user: {
|
|
3184
3245
|
id: string;
|
|
3185
3246
|
createdAt: Date;
|
|
3186
3247
|
updatedAt: Date;
|
|
@@ -3188,18 +3249,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3188
3249
|
emailVerified: boolean;
|
|
3189
3250
|
name: string;
|
|
3190
3251
|
image?: string | null | undefined;
|
|
3191
|
-
}
|
|
3192
|
-
data: Partial<{
|
|
3193
|
-
id: string;
|
|
3194
|
-
createdAt: Date;
|
|
3195
|
-
updatedAt: Date;
|
|
3196
|
-
email: string;
|
|
3197
|
-
emailVerified: boolean;
|
|
3198
|
-
name: string;
|
|
3199
|
-
image?: string | null | undefined;
|
|
3200
|
-
}> & Record<string, unknown>;
|
|
3201
|
-
}>;
|
|
3202
|
-
after(user: {
|
|
3252
|
+
} & Record<string, unknown>, context: _gatwech_core57.GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined, data: (Partial<{
|
|
3203
3253
|
id: string;
|
|
3204
3254
|
createdAt: Date;
|
|
3205
3255
|
updatedAt: Date;
|
|
@@ -3207,7 +3257,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3207
3257
|
emailVerified: boolean;
|
|
3208
3258
|
name: string;
|
|
3209
3259
|
image?: string | null | undefined;
|
|
3210
|
-
} & Record<string, unknown
|
|
3260
|
+
}> & Record<string, unknown>) | undefined): Promise<void>;
|
|
3211
3261
|
};
|
|
3212
3262
|
delete: {
|
|
3213
3263
|
after(user: {
|
|
@@ -3218,7 +3268,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3218
3268
|
emailVerified: boolean;
|
|
3219
3269
|
name: string;
|
|
3220
3270
|
image?: string | null | undefined;
|
|
3221
|
-
} & Record<string, unknown>, context:
|
|
3271
|
+
} & Record<string, unknown>, context: _gatwech_core57.GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
3222
3272
|
};
|
|
3223
3273
|
};
|
|
3224
3274
|
session: {
|
|
@@ -3232,7 +3282,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3232
3282
|
token: string;
|
|
3233
3283
|
ipAddress?: string | null | undefined;
|
|
3234
3284
|
userAgent?: string | null | undefined;
|
|
3235
|
-
} & Record<string, unknown>, context:
|
|
3285
|
+
} & Record<string, unknown>, context: _gatwech_core57.GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
3236
3286
|
};
|
|
3237
3287
|
};
|
|
3238
3288
|
account: {
|
|
@@ -3251,7 +3301,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3251
3301
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
3252
3302
|
scope?: string | null | undefined;
|
|
3253
3303
|
password?: string | null | undefined;
|
|
3254
|
-
}, context:
|
|
3304
|
+
}, context: _gatwech_core57.GenericEndpointContext<_gatwech_core57.PayvoAuthOptions> | undefined): Promise<void>;
|
|
3255
3305
|
};
|
|
3256
3306
|
};
|
|
3257
3307
|
};
|
|
@@ -3259,12 +3309,12 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3259
3309
|
};
|
|
3260
3310
|
hooks: {
|
|
3261
3311
|
before: {
|
|
3262
|
-
matcher(context:
|
|
3263
|
-
handler: (inputContext:
|
|
3312
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
3313
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<void>;
|
|
3264
3314
|
}[];
|
|
3265
3315
|
after: {
|
|
3266
|
-
matcher(context:
|
|
3267
|
-
handler: (inputContext:
|
|
3316
|
+
matcher(context: _gatwech_core57.HookEndpointContext): boolean;
|
|
3317
|
+
handler: (inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<void>;
|
|
3268
3318
|
}[];
|
|
3269
3319
|
};
|
|
3270
3320
|
endpoints: {
|
|
@@ -3293,7 +3343,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3293
3343
|
} & {
|
|
3294
3344
|
asResponse?: boolean;
|
|
3295
3345
|
returnHeaders?: boolean;
|
|
3296
|
-
use?:
|
|
3346
|
+
use?: better_call271.Middleware[];
|
|
3297
3347
|
path?: string;
|
|
3298
3348
|
} & {
|
|
3299
3349
|
asResponse?: AsResponse | undefined;
|
|
@@ -3314,7 +3364,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3314
3364
|
}>;
|
|
3315
3365
|
options: {
|
|
3316
3366
|
method: "GET";
|
|
3317
|
-
use: ((inputContext:
|
|
3367
|
+
use: ((inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
3318
3368
|
session: {
|
|
3319
3369
|
session: Record<string, any> & {
|
|
3320
3370
|
id: string;
|
|
@@ -3461,7 +3511,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3461
3511
|
} & {
|
|
3462
3512
|
asResponse?: boolean;
|
|
3463
3513
|
returnHeaders?: boolean;
|
|
3464
|
-
use?:
|
|
3514
|
+
use?: better_call271.Middleware[];
|
|
3465
3515
|
path?: string;
|
|
3466
3516
|
} & {
|
|
3467
3517
|
asResponse?: AsResponse | undefined;
|
|
@@ -3482,7 +3532,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3482
3532
|
}>;
|
|
3483
3533
|
options: {
|
|
3484
3534
|
method: "GET";
|
|
3485
|
-
use: ((inputContext:
|
|
3535
|
+
use: ((inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
3486
3536
|
session: {
|
|
3487
3537
|
session: Record<string, any> & {
|
|
3488
3538
|
id: string;
|
|
@@ -3620,7 +3670,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3620
3670
|
} & {
|
|
3621
3671
|
asResponse?: boolean;
|
|
3622
3672
|
returnHeaders?: boolean;
|
|
3623
|
-
use?:
|
|
3673
|
+
use?: better_call271.Middleware[];
|
|
3624
3674
|
path?: string;
|
|
3625
3675
|
} & {
|
|
3626
3676
|
asResponse?: AsResponse | undefined;
|
|
@@ -3635,7 +3685,7 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3635
3685
|
}>;
|
|
3636
3686
|
options: {
|
|
3637
3687
|
method: "GET";
|
|
3638
|
-
use: ((inputContext:
|
|
3688
|
+
use: ((inputContext: better_call271.MiddlewareInputContext<better_call271.MiddlewareOptions>) => Promise<{
|
|
3639
3689
|
session: {
|
|
3640
3690
|
session: Record<string, any> & {
|
|
3641
3691
|
id: string;
|
|
@@ -3750,6 +3800,8 @@ declare const auditLog: (options?: AuditLogOptions | undefined) => {
|
|
|
3750
3800
|
database: boolean;
|
|
3751
3801
|
trackFailedSignIns: boolean;
|
|
3752
3802
|
adminRoles: string[];
|
|
3803
|
+
organizationAdminRoles: string[];
|
|
3804
|
+
showAttemptsOnOwnAccount: boolean;
|
|
3753
3805
|
remote?: {
|
|
3754
3806
|
apiUrl?: string | undefined;
|
|
3755
3807
|
apiKey?: string | undefined;
|