@gatwech/auth 1.0.0-beta.21 → 1.0.0-beta.23
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/{audit-log-DgqHJ-uv.mjs → audit-log-DhRRCMrv.mjs} +21 -6
- 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 +15 -15
- package/dist/{client-Da7tq8m6.d.mts → client-CDaFOX7A.d.mts} +4 -4
- package/dist/{client-B00gkznv.d.mts → client-D8XKNpua.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-C-IDh5yy.d.mts → index-382PsmkK.d.mts} +2 -2
- package/dist/{index-BjCQ3jmE.d.mts → index-3lfPQHhX.d.mts} +118 -118
- package/dist/{index-CMG4Pnen.d.mts → index-B4aWSJEd.d.mts} +6 -6
- package/dist/{index-BWYXZVsV.d.mts → index-B5r4oL5q.d.mts} +5 -5
- package/dist/{index-BKy-8t2n.d.mts → index-B7iZf_Dl.d.mts} +449 -112
- package/dist/{index-VUyESU4p.d.mts → index-BhYE1_9j.d.mts} +1 -1
- package/dist/{index-IX1to9TB.d.mts → index-Blq8KrTy.d.mts} +33 -33
- package/dist/{index-oNlp4SvD.d.mts → index-C-z4TCHD.d.mts} +10 -10
- package/dist/{index-D1OZ2e4m.d.mts → index-C8F7PsET.d.mts} +13 -13
- package/dist/{index-TrOnY3pM.d.mts → index-CExSHSFz.d.mts} +169 -169
- package/dist/{index-iRoaTsOj.d.mts → index-CIxFDcfQ.d.mts} +2 -2
- package/dist/{index-BECNG13R.d.mts → index-COFPq-mg.d.mts} +13 -13
- package/dist/{index-YeXSxzhX.d.mts → index-CWwQ1Q7t.d.mts} +17 -17
- package/dist/{index-CbBQdS-u.d.mts → index-CWxKeTtE.d.mts} +6 -6
- package/dist/{index-cPt-00xm.d.mts → index-D0SgItjY.d.mts} +6 -6
- package/dist/{index-Bhc37y9F.d.mts → index-DCliG2n6.d.mts} +3 -3
- package/dist/{index-CM1rFdwV.d.mts → index-DPVukjga.d.mts} +9 -9
- package/dist/{index-WV7VzW2H.d.mts → index-DUu0ieh6.d.mts} +8 -8
- package/dist/{index-Bxive_YT.d.mts → index-De2a2OyC.d.mts} +9 -9
- package/dist/{index-CpH-1sse.d.mts → index-Dg6Ftb6f.d.mts} +9 -9
- package/dist/{index-Dt2I0G4X.d.mts → index-Dgyj1fTk.d.mts} +7 -7
- package/dist/{index-CTqynuxm.d.mts → index-DxIqV3rU.d.mts} +4 -4
- package/dist/{index-jEkJ2Zfk.d.mts → index-DxRAXHrZ.d.mts} +6 -6
- 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 +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 +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 +17 -17
- 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 +17 -17
- 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 +4 -4
- 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/{registry-CqG_3Qnx.mjs → registry-GztLf62p.mjs} +14 -2
- package/dist/{sentinel-B4Wo79HK.mjs → sentinel-CYtaI3eO.mjs} +264 -9
- package/dist/src/plugins/audit-log/events.d.ts +1 -0
- package/dist/src/plugins/audit-log/index.d.ts +45 -0
- package/dist/src/plugins/sentinel/actions.d.ts +2 -0
- package/dist/src/plugins/sentinel/geo.d.ts +11 -0
- package/dist/src/plugins/sentinel/index.d.ts +248 -3
- package/dist/src/plugins/sentinel/schema.d.ts +37 -0
- package/dist/src/plugins/sentinel/store.d.ts +34 -0
- package/dist/src/plugins/sentinel/types.d.ts +7 -0
- package/dist/src/utils/has-role.d.ts +5 -0
- package/dist/test-utils/index.d.mts +1044 -1044
- package/dist/test-utils/index.mjs +18 -18
- package/dist/types/index.d.mts +1 -1
- package/dist/{username-BHNvcvsY.mjs → username-DCp6yugu.mjs} +1 -1
- package/package.json +3 -3
package/dist/plugins/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as HIDE_METADATA } from "../utils-B03WRaGi.mjs";
|
|
2
2
|
import "../url-VB2gAbTI.mjs";
|
|
3
|
-
import "../api-
|
|
3
|
+
import "../api-BV65Y-Rk.mjs";
|
|
4
4
|
import "../get-request-ip-DSjrEpGo.mjs";
|
|
5
5
|
import "../json-D0TBLy4q.mjs";
|
|
6
6
|
import "../crypto-CCyta8xj.mjs";
|
|
@@ -19,34 +19,34 @@ import "../parser-D7EkhAjZ.mjs";
|
|
|
19
19
|
import "../plugin-helper-RJJBTOba.mjs";
|
|
20
20
|
import "../access-BM6jSA5j.mjs";
|
|
21
21
|
import "../access-bhklJd7m.mjs";
|
|
22
|
-
import { t as admin } from "../admin-
|
|
22
|
+
import { t as admin } from "../admin-rd-xHhnP.mjs";
|
|
23
23
|
import "../has-permission-Bvg8de8g.mjs";
|
|
24
|
-
import { t as anonymous } from "../anonymous-
|
|
25
|
-
import { a as lastLoginMethod, c as apiKey, i as oneTimeToken, l as defaultKeyHasher, n as createAuthMiddleware, o as API_KEY_TABLE_NAME, r as optionsMiddleware, s as ERROR_CODES, t as createAuthEndpoint } from "../plugins-
|
|
26
|
-
import { a as CREDENTIAL_SIGN_IN_PATHS, c as SIGN_IN_PATHS, i as AUDIT_EVENT_TYPES, l as VERIFICATION_PATHS, o as PATH_EVENTS, r as ALL_EVENT_TYPES, s as SECURITY_EVENT_TYPES } from "../registry-
|
|
27
|
-
import { n as auditLog, t as AUDIT_LOG_ERROR_CODES } from "../audit-log-
|
|
24
|
+
import { t as anonymous } from "../anonymous-qSasVeIe.mjs";
|
|
25
|
+
import { a as lastLoginMethod, c as apiKey, i as oneTimeToken, l as defaultKeyHasher, n as createAuthMiddleware, o as API_KEY_TABLE_NAME, r as optionsMiddleware, s as ERROR_CODES, t as createAuthEndpoint } from "../plugins-RSPSU3ro.mjs";
|
|
26
|
+
import { a as CREDENTIAL_SIGN_IN_PATHS, c as SIGN_IN_PATHS, i as AUDIT_EVENT_TYPES, l as VERIFICATION_PATHS, o as PATH_EVENTS, r as ALL_EVENT_TYPES, s as SECURITY_EVENT_TYPES } from "../registry-GztLf62p.mjs";
|
|
27
|
+
import { n as auditLog, t as AUDIT_LOG_ERROR_CODES } from "../audit-log-DhRRCMrv.mjs";
|
|
28
28
|
import { t as bearer } from "../bearer-DvQLM00l.mjs";
|
|
29
29
|
import { t as captcha } from "../captcha-DGP9lCRe.mjs";
|
|
30
30
|
import { t as customSession } from "../custom-session-DN_-pfi_.mjs";
|
|
31
31
|
import { n as deviceAuthorization, t as $deviceAuthorizationOptionsSchema } from "../device-authorization-BKnNhlsz.mjs";
|
|
32
32
|
import { t as deviceAuthorizationClient } from "../client-cBiytuOL.mjs";
|
|
33
|
-
import { t as emailOTP } from "../email-otp-
|
|
34
|
-
import { t as genericOAuth } from "../generic-oauth-
|
|
35
|
-
import { n as haveIBeenPwned, t as getPasswordBreachCount } from "../haveibeenpwned-
|
|
36
|
-
import { i as generateExportedKeyPair, n as getJwtToken, r as createJwk, t as jwt } from "../jwt-
|
|
37
|
-
import { t as magicLink } from "../magic-link-
|
|
38
|
-
import { t as multiSession } from "../multi-session-
|
|
39
|
-
import { t as oAuthProxy } from "../oauth-proxy-
|
|
40
|
-
import { t as oneTap } from "../one-tap-
|
|
41
|
-
import { n as parseRoles, t as organization } from "../organization-
|
|
33
|
+
import { t as emailOTP } from "../email-otp-BmgAht1S.mjs";
|
|
34
|
+
import { t as genericOAuth } from "../generic-oauth-C5_AXj2z.mjs";
|
|
35
|
+
import { n as haveIBeenPwned, t as getPasswordBreachCount } from "../haveibeenpwned-_3a5amT-.mjs";
|
|
36
|
+
import { i as generateExportedKeyPair, n as getJwtToken, r as createJwk, t as jwt } from "../jwt-Czv-v097.mjs";
|
|
37
|
+
import { t as magicLink } from "../magic-link-CJgE0Ngn.mjs";
|
|
38
|
+
import { t as multiSession } from "../multi-session-bveCXtQW.mjs";
|
|
39
|
+
import { t as oAuthProxy } from "../oauth-proxy-69n1xA8L.mjs";
|
|
40
|
+
import { t as oneTap } from "../one-tap-Cm1eHuqi.mjs";
|
|
41
|
+
import { n as parseRoles, t as organization } from "../organization-BK3ks97y.mjs";
|
|
42
42
|
import "../access-CrwEFPHE.mjs";
|
|
43
43
|
import "../permission-CDDWgA_O.mjs";
|
|
44
44
|
import { t as phoneNumber } from "../phone-number-Dqz8aeyF.mjs";
|
|
45
45
|
import { a as hasLeadingZeroBits, c as verifySolution, i as createNonce, n as POW_REASON_HEADER, o as parsePowHeader, r as POW_SOLUTION_HEADER, s as solveChallenge, t as POW_CHALLENGE_HEADER } from "../pow-DvkUopsK.mjs";
|
|
46
|
-
import { i as SENTINEL_ERROR_CODES, n as haversineDistanceKm, r as normalizeEmail, t as sentinel } from "../sentinel-
|
|
46
|
+
import { i as SENTINEL_ERROR_CODES, n as haversineDistanceKm, r as normalizeEmail, t as sentinel } from "../sentinel-CYtaI3eO.mjs";
|
|
47
47
|
import { n as TWO_FACTOR_ERROR_CODES, t as twoFactor } from "../two-factor-CDVjxx4f.mjs";
|
|
48
48
|
import { t as twoFactorClient } from "../client-BuveH3MN.mjs";
|
|
49
49
|
import { t as passkey } from "../passkey-JNQTz5a0.mjs";
|
|
50
|
-
import { n as USERNAME_ERROR_CODES, t as username } from "../username-
|
|
50
|
+
import { n as USERNAME_ERROR_CODES, t as username } from "../username-DCp6yugu.mjs";
|
|
51
51
|
|
|
52
52
|
export { $deviceAuthorizationOptionsSchema, ALL_EVENT_TYPES, API_KEY_TABLE_NAME, AUDIT_EVENT_TYPES, AUDIT_LOG_ERROR_CODES, CREDENTIAL_SIGN_IN_PATHS, ERROR_CODES, HIDE_METADATA, PATH_EVENTS, POW_CHALLENGE_HEADER, POW_REASON_HEADER, POW_SOLUTION_HEADER, SECURITY_EVENT_TYPES, SENTINEL_ERROR_CODES, SIGN_IN_PATHS, TWO_FACTOR_ERROR_CODES, USERNAME_ERROR_CODES, VERIFICATION_PATHS, admin, anonymous, apiKey, auditLog, bearer, captcha, createAuthEndpoint, createAuthMiddleware, createJwk, createNonce, customSession, defaultKeyHasher, deviceAuthorization, deviceAuthorizationClient, emailOTP, generateExportedKeyPair, genericOAuth, getJwtToken, getPasswordBreachCount, hasLeadingZeroBits, haveIBeenPwned, haversineDistanceKm, jwt, lastLoginMethod, magicLink, multiSession, normalizeEmail, oAuthProxy, oneTap, oneTimeToken, optionsMiddleware, organization, parsePowHeader, parseRoles, passkey, phoneNumber, sentinel, solveChallenge, twoFactor, twoFactorClient, username, verifySolution };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../helper-BgOIGHsu.mjs";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-3lfPQHhX.mjs";
|
|
3
3
|
import "../../types-DNQ9XQrB.mjs";
|
|
4
4
|
import "../../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import "../../plugins-Dy_FrD4Y.mjs";
|
|
6
|
-
import { a as JWKOptions, c as JwtOptions, i as getJwtToken, n as createJwk, o as JWSAlgorithms, r as generateExportedKeyPair, s as Jwk, t as jwt } from "../../index-
|
|
6
|
+
import { a as JWKOptions, c as JwtOptions, i as getJwtToken, n as createJwk, o as JWSAlgorithms, r as generateExportedKeyPair, s as Jwk, t as jwt } from "../../index-DPVukjga.mjs";
|
|
7
7
|
export { JWKOptions, JWSAlgorithms, Jwk, JwtOptions, createJwk, generateExportedKeyPair, getJwtToken, jwt };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../utils-B03WRaGi.mjs";
|
|
2
2
|
import "../../url-VB2gAbTI.mjs";
|
|
3
|
-
import "../../api-
|
|
3
|
+
import "../../api-BV65Y-Rk.mjs";
|
|
4
4
|
import "../../get-request-ip-DSjrEpGo.mjs";
|
|
5
5
|
import "../../json-D0TBLy4q.mjs";
|
|
6
6
|
import "../../crypto-CCyta8xj.mjs";
|
|
@@ -14,6 +14,6 @@ import "../../get-tables-CKvSyDST.mjs";
|
|
|
14
14
|
import "../../types-DCPpFKUB.mjs";
|
|
15
15
|
import "../../misc-fKH4d5XQ.mjs";
|
|
16
16
|
import "../../session-BB3oqApE.mjs";
|
|
17
|
-
import { i as generateExportedKeyPair, n as getJwtToken, r as createJwk, t as jwt } from "../../jwt-
|
|
17
|
+
import { i as generateExportedKeyPair, n as getJwtToken, r as createJwk, t as jwt } from "../../jwt-Czv-v097.mjs";
|
|
18
18
|
|
|
19
19
|
export { createJwk, generateExportedKeyPair, getJwtToken, jwt };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as magicLink } from "../../index-
|
|
1
|
+
import { t as magicLink } from "../../index-DxIqV3rU.mjs";
|
|
2
2
|
export { magicLink };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../utils-B03WRaGi.mjs";
|
|
2
2
|
import "../../url-VB2gAbTI.mjs";
|
|
3
|
-
import "../../api-
|
|
3
|
+
import "../../api-BV65Y-Rk.mjs";
|
|
4
4
|
import "../../get-request-ip-DSjrEpGo.mjs";
|
|
5
5
|
import "../../json-D0TBLy4q.mjs";
|
|
6
6
|
import "../../crypto-CCyta8xj.mjs";
|
|
@@ -14,6 +14,6 @@ import "../../get-tables-CKvSyDST.mjs";
|
|
|
14
14
|
import "../../types-DCPpFKUB.mjs";
|
|
15
15
|
import "../../misc-fKH4d5XQ.mjs";
|
|
16
16
|
import "../../session-BB3oqApE.mjs";
|
|
17
|
-
import { t as magicLink } from "../../magic-link-
|
|
17
|
+
import { t as magicLink } from "../../magic-link-CJgE0Ngn.mjs";
|
|
18
18
|
|
|
19
19
|
export { magicLink };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../utils-B03WRaGi.mjs";
|
|
2
2
|
import "../../url-VB2gAbTI.mjs";
|
|
3
|
-
import "../../api-
|
|
3
|
+
import "../../api-BV65Y-Rk.mjs";
|
|
4
4
|
import "../../get-request-ip-DSjrEpGo.mjs";
|
|
5
5
|
import "../../json-D0TBLy4q.mjs";
|
|
6
6
|
import "../../crypto-CCyta8xj.mjs";
|
|
@@ -14,6 +14,6 @@ import "../../get-tables-CKvSyDST.mjs";
|
|
|
14
14
|
import "../../types-DCPpFKUB.mjs";
|
|
15
15
|
import "../../misc-fKH4d5XQ.mjs";
|
|
16
16
|
import "../../session-BB3oqApE.mjs";
|
|
17
|
-
import { t as multiSession } from "../../multi-session-
|
|
17
|
+
import { t as multiSession } from "../../multi-session-bveCXtQW.mjs";
|
|
18
18
|
|
|
19
19
|
export { multiSession };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as oAuthProxy, t as OAuthProxyOptions } from "../../index-
|
|
1
|
+
import { n as oAuthProxy, t as OAuthProxyOptions } from "../../index-C-z4TCHD.mjs";
|
|
2
2
|
export { OAuthProxyOptions, oAuthProxy };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../utils-B03WRaGi.mjs";
|
|
2
2
|
import "../../url-VB2gAbTI.mjs";
|
|
3
|
-
import "../../api-
|
|
3
|
+
import "../../api-BV65Y-Rk.mjs";
|
|
4
4
|
import "../../get-request-ip-DSjrEpGo.mjs";
|
|
5
5
|
import "../../json-D0TBLy4q.mjs";
|
|
6
6
|
import "../../crypto-CCyta8xj.mjs";
|
|
@@ -14,6 +14,6 @@ import "../../get-tables-CKvSyDST.mjs";
|
|
|
14
14
|
import "../../types-DCPpFKUB.mjs";
|
|
15
15
|
import "../../misc-fKH4d5XQ.mjs";
|
|
16
16
|
import "../../session-BB3oqApE.mjs";
|
|
17
|
-
import { t as oAuthProxy } from "../../oauth-proxy-
|
|
17
|
+
import { t as oAuthProxy } from "../../oauth-proxy-69n1xA8L.mjs";
|
|
18
18
|
|
|
19
19
|
export { oAuthProxy };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as oneTap } from "../../index-
|
|
1
|
+
import { t as oneTap } from "../../index-CIxFDcfQ.mjs";
|
|
2
2
|
export { oneTap };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../utils-B03WRaGi.mjs";
|
|
2
2
|
import "../../url-VB2gAbTI.mjs";
|
|
3
|
-
import "../../api-
|
|
3
|
+
import "../../api-BV65Y-Rk.mjs";
|
|
4
4
|
import "../../get-request-ip-DSjrEpGo.mjs";
|
|
5
5
|
import "../../json-D0TBLy4q.mjs";
|
|
6
6
|
import "../../crypto-CCyta8xj.mjs";
|
|
@@ -14,6 +14,6 @@ import "../../get-tables-CKvSyDST.mjs";
|
|
|
14
14
|
import "../../types-DCPpFKUB.mjs";
|
|
15
15
|
import "../../misc-fKH4d5XQ.mjs";
|
|
16
16
|
import "../../session-BB3oqApE.mjs";
|
|
17
|
-
import { t as oneTap } from "../../one-tap-
|
|
17
|
+
import { t as oneTap } from "../../one-tap-Cm1eHuqi.mjs";
|
|
18
18
|
|
|
19
19
|
export { oneTap };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../helper-BgOIGHsu.mjs";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-3lfPQHhX.mjs";
|
|
3
3
|
import "../../types-DNQ9XQrB.mjs";
|
|
4
4
|
import "../../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import "../../plugins-Dy_FrD4Y.mjs";
|
|
6
|
-
import { t as oneTimeToken } from "../../index-
|
|
6
|
+
import { t as oneTimeToken } from "../../index-B5r4oL5q.mjs";
|
|
7
7
|
export { oneTimeToken };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../utils-B03WRaGi.mjs";
|
|
2
2
|
import "../../url-VB2gAbTI.mjs";
|
|
3
|
-
import "../../api-
|
|
3
|
+
import "../../api-BV65Y-Rk.mjs";
|
|
4
4
|
import "../../get-request-ip-DSjrEpGo.mjs";
|
|
5
5
|
import "../../json-D0TBLy4q.mjs";
|
|
6
6
|
import "../../crypto-CCyta8xj.mjs";
|
|
@@ -19,34 +19,34 @@ import "../../parser-D7EkhAjZ.mjs";
|
|
|
19
19
|
import "../../plugin-helper-RJJBTOba.mjs";
|
|
20
20
|
import "../../access-BM6jSA5j.mjs";
|
|
21
21
|
import "../../access-bhklJd7m.mjs";
|
|
22
|
-
import "../../admin-
|
|
22
|
+
import "../../admin-rd-xHhnP.mjs";
|
|
23
23
|
import "../../has-permission-Bvg8de8g.mjs";
|
|
24
|
-
import "../../anonymous-
|
|
25
|
-
import { i as oneTimeToken } from "../../plugins-
|
|
26
|
-
import "../../registry-
|
|
27
|
-
import "../../audit-log-
|
|
24
|
+
import "../../anonymous-qSasVeIe.mjs";
|
|
25
|
+
import { i as oneTimeToken } from "../../plugins-RSPSU3ro.mjs";
|
|
26
|
+
import "../../registry-GztLf62p.mjs";
|
|
27
|
+
import "../../audit-log-DhRRCMrv.mjs";
|
|
28
28
|
import "../../bearer-DvQLM00l.mjs";
|
|
29
29
|
import "../../captcha-DGP9lCRe.mjs";
|
|
30
30
|
import "../../custom-session-DN_-pfi_.mjs";
|
|
31
31
|
import "../../device-authorization-BKnNhlsz.mjs";
|
|
32
32
|
import "../../client-cBiytuOL.mjs";
|
|
33
|
-
import "../../email-otp-
|
|
34
|
-
import "../../generic-oauth-
|
|
35
|
-
import "../../haveibeenpwned-
|
|
36
|
-
import "../../jwt-
|
|
37
|
-
import "../../magic-link-
|
|
38
|
-
import "../../multi-session-
|
|
39
|
-
import "../../oauth-proxy-
|
|
40
|
-
import "../../one-tap-
|
|
41
|
-
import "../../organization-
|
|
33
|
+
import "../../email-otp-BmgAht1S.mjs";
|
|
34
|
+
import "../../generic-oauth-C5_AXj2z.mjs";
|
|
35
|
+
import "../../haveibeenpwned-_3a5amT-.mjs";
|
|
36
|
+
import "../../jwt-Czv-v097.mjs";
|
|
37
|
+
import "../../magic-link-CJgE0Ngn.mjs";
|
|
38
|
+
import "../../multi-session-bveCXtQW.mjs";
|
|
39
|
+
import "../../oauth-proxy-69n1xA8L.mjs";
|
|
40
|
+
import "../../one-tap-Cm1eHuqi.mjs";
|
|
41
|
+
import "../../organization-BK3ks97y.mjs";
|
|
42
42
|
import "../../access-CrwEFPHE.mjs";
|
|
43
43
|
import "../../permission-CDDWgA_O.mjs";
|
|
44
44
|
import "../../phone-number-Dqz8aeyF.mjs";
|
|
45
45
|
import "../../pow-DvkUopsK.mjs";
|
|
46
|
-
import "../../sentinel-
|
|
46
|
+
import "../../sentinel-CYtaI3eO.mjs";
|
|
47
47
|
import "../../two-factor-CDVjxx4f.mjs";
|
|
48
48
|
import "../../client-BuveH3MN.mjs";
|
|
49
49
|
import "../../passkey-JNQTz5a0.mjs";
|
|
50
|
-
import "../../username-
|
|
50
|
+
import "../../username-DCp6yugu.mjs";
|
|
51
51
|
|
|
52
52
|
export { oneTimeToken };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../helper-BgOIGHsu.mjs";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-3lfPQHhX.mjs";
|
|
3
3
|
import "../../types-DNQ9XQrB.mjs";
|
|
4
4
|
import "../../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import "../../plugins-Dy_FrD4Y.mjs";
|
|
6
6
|
import "../../index-CxlWnL9c.mjs";
|
|
7
7
|
import { a as memberAc, i as defaultStatements, n as defaultAc, o as ownerAc, r as defaultRoles, t as adminAc } from "../../index-QmocqGM-.mjs";
|
|
8
|
-
import { A as organizationRoleSchema, C as TeamInput, D as invitationSchema, E as defaultRolesSchema, F as OrganizationOptions, M as roleSchema, N as teamMemberSchema, O as invitationStatus, P as teamSchema, S as Team, T as TeamMemberInput, _ as MemberInput, a as organization, b as OrganizationRole, c as InferMember, d as InferOrganizationZodRolesFromOption, f as InferTeam, g as Member, h as InvitationStatus, i as TeamEndpoints, j as organizationSchema, k as memberSchema, l as InferOrganization, m as InvitationInput, n as OrganizationEndpoints, o as parseRoles, p as Invitation, r as OrganizationPlugin, s as InferInvitation, t as DynamicAccessControlEndpoints, u as InferOrganizationRolesFromOption, v as Organization, w as TeamMember, x as OrganizationSchema, y as OrganizationInput } from "../../index-
|
|
8
|
+
import { A as organizationRoleSchema, C as TeamInput, D as invitationSchema, E as defaultRolesSchema, F as OrganizationOptions, M as roleSchema, N as teamMemberSchema, O as invitationStatus, P as teamSchema, S as Team, T as TeamMemberInput, _ as MemberInput, a as organization, b as OrganizationRole, c as InferMember, d as InferOrganizationZodRolesFromOption, f as InferTeam, g as Member, h as InvitationStatus, i as TeamEndpoints, j as organizationSchema, k as memberSchema, l as InferOrganization, m as InvitationInput, n as OrganizationEndpoints, o as parseRoles, p as Invitation, r as OrganizationPlugin, s as InferInvitation, t as DynamicAccessControlEndpoints, u as InferOrganizationRolesFromOption, v as Organization, w as TeamMember, x as OrganizationSchema, y as OrganizationInput } from "../../index-CExSHSFz.mjs";
|
|
9
9
|
export { DynamicAccessControlEndpoints, InferInvitation, InferMember, InferOrganization, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, InferTeam, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationEndpoints, OrganizationInput, OrganizationOptions, OrganizationPlugin, OrganizationRole, OrganizationSchema, Team, TeamEndpoints, TeamInput, TeamMember, TeamMemberInput, adminAc, defaultAc, defaultRoles, defaultRolesSchema, defaultStatements, invitationSchema, invitationStatus, memberAc, memberSchema, organization, organizationRoleSchema, organizationSchema, ownerAc, parseRoles, roleSchema, teamMemberSchema, teamSchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../utils-B03WRaGi.mjs";
|
|
2
2
|
import "../../url-VB2gAbTI.mjs";
|
|
3
|
-
import "../../api-
|
|
3
|
+
import "../../api-BV65Y-Rk.mjs";
|
|
4
4
|
import "../../get-request-ip-DSjrEpGo.mjs";
|
|
5
5
|
import "../../json-D0TBLy4q.mjs";
|
|
6
6
|
import "../../crypto-CCyta8xj.mjs";
|
|
@@ -16,7 +16,7 @@ import "../../misc-fKH4d5XQ.mjs";
|
|
|
16
16
|
import "../../session-BB3oqApE.mjs";
|
|
17
17
|
import "../../parser-D7EkhAjZ.mjs";
|
|
18
18
|
import "../../access-BM6jSA5j.mjs";
|
|
19
|
-
import { n as parseRoles, t as organization } from "../../organization-
|
|
19
|
+
import { n as parseRoles, t as organization } from "../../organization-BK3ks97y.mjs";
|
|
20
20
|
import "../../access-CrwEFPHE.mjs";
|
|
21
21
|
import "../../permission-CDDWgA_O.mjs";
|
|
22
22
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../helper-BgOIGHsu.mjs";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-3lfPQHhX.mjs";
|
|
3
3
|
import "../../types-DNQ9XQrB.mjs";
|
|
4
4
|
import "../../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import "../../plugins-Dy_FrD4Y.mjs";
|
|
6
|
-
import { n as Passkey, r as PasskeyOptions, t as passkey } from "../../index-
|
|
6
|
+
import { n as Passkey, r as PasskeyOptions, t as passkey } from "../../index-COFPq-mg.mjs";
|
|
7
7
|
export { Passkey, PasskeyOptions, passkey };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../helper-BgOIGHsu.mjs";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-3lfPQHhX.mjs";
|
|
3
3
|
import "../../types-DNQ9XQrB.mjs";
|
|
4
4
|
import "../../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import "../../plugins-Dy_FrD4Y.mjs";
|
|
6
|
-
import { n as UserWithPhoneNumber, r as phoneNumber, t as PhoneNumberOptions } from "../../index-
|
|
6
|
+
import { n as UserWithPhoneNumber, r as phoneNumber, t as PhoneNumberOptions } from "../../index-Dgyj1fTk.mjs";
|
|
7
7
|
export { PhoneNumberOptions, UserWithPhoneNumber, phoneNumber };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import "../../helper-BgOIGHsu.mjs";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-3lfPQHhX.mjs";
|
|
3
3
|
import "../../types-DNQ9XQrB.mjs";
|
|
4
4
|
import "../../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import "../../plugins-Dy_FrD4Y.mjs";
|
|
6
6
|
import "../../index-CxlWnL9c.mjs";
|
|
7
|
-
import "../../index-
|
|
8
|
-
import "../../index-
|
|
9
|
-
import "../../index-
|
|
10
|
-
import "../../index-
|
|
11
|
-
import "../../index-
|
|
12
|
-
import "../../index-
|
|
13
|
-
import "../../index-
|
|
14
|
-
import "../../index-
|
|
15
|
-
import "../../index-
|
|
16
|
-
import "../../index-
|
|
17
|
-
import "../../index-
|
|
18
|
-
import "../../index-
|
|
19
|
-
import "../../index-
|
|
20
|
-
import "../../index-
|
|
21
|
-
import "../../index-
|
|
22
|
-
import "../../index-
|
|
7
|
+
import "../../index-Blq8KrTy.mjs";
|
|
8
|
+
import "../../index-B4aWSJEd.mjs";
|
|
9
|
+
import "../../index-B7iZf_Dl.mjs";
|
|
10
|
+
import "../../index-CWxKeTtE.mjs";
|
|
11
|
+
import "../../index-382PsmkK.mjs";
|
|
12
|
+
import "../../index-D0SgItjY.mjs";
|
|
13
|
+
import "../../index-DxRAXHrZ.mjs";
|
|
14
|
+
import "../../index-C8F7PsET.mjs";
|
|
15
|
+
import "../../index-DUu0ieh6.mjs";
|
|
16
|
+
import "../../index-DCliG2n6.mjs";
|
|
17
|
+
import "../../index-DPVukjga.mjs";
|
|
18
|
+
import "../../index-DxIqV3rU.mjs";
|
|
19
|
+
import "../../index-Dg6Ftb6f.mjs";
|
|
20
|
+
import "../../index-C-z4TCHD.mjs";
|
|
21
|
+
import "../../index-CIxFDcfQ.mjs";
|
|
22
|
+
import "../../index-B5r4oL5q.mjs";
|
|
23
23
|
import "../../index-QmocqGM-.mjs";
|
|
24
|
-
import "../../index-
|
|
25
|
-
import "../../index-
|
|
26
|
-
import "../../index-
|
|
27
|
-
import "../../index-
|
|
28
|
-
import "../../index-
|
|
29
|
-
import { t as sentinelClient } from "../../client-
|
|
24
|
+
import "../../index-CExSHSFz.mjs";
|
|
25
|
+
import "../../index-Dgyj1fTk.mjs";
|
|
26
|
+
import "../../index-CWwQ1Q7t.mjs";
|
|
27
|
+
import "../../index-COFPq-mg.mjs";
|
|
28
|
+
import "../../index-De2a2OyC.mjs";
|
|
29
|
+
import { t as sentinelClient } from "../../client-CDaFOX7A.mjs";
|
|
30
30
|
export { sentinelClient };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import "../../helper-BgOIGHsu.mjs";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-3lfPQHhX.mjs";
|
|
3
3
|
import "../../types-DNQ9XQrB.mjs";
|
|
4
4
|
import "../../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import "../../plugins-Dy_FrD4Y.mjs";
|
|
6
6
|
import "../../index-CxlWnL9c.mjs";
|
|
7
|
-
import "../../index-
|
|
8
|
-
import "../../index-
|
|
9
|
-
import { S as SentinelOptions, _ as haversineDistanceKm, b as GeoLocation, c as sentinel, d as POW_SOLUTION_HEADER, f as createNonce, g as verifySolution, h as solveChallenge, l as POW_CHALLENGE_HEADER, m as parsePowHeader, p as hasLeadingZeroBits, u as POW_REASON_HEADER, v as normalizeEmail, x as SecurityAction, y as SENTINEL_ERROR_CODES } from "../../index-
|
|
10
|
-
import "../../index-
|
|
11
|
-
import "../../index-
|
|
12
|
-
import "../../index-
|
|
13
|
-
import "../../index-
|
|
14
|
-
import "../../index-
|
|
15
|
-
import "../../index-
|
|
16
|
-
import "../../index-
|
|
17
|
-
import "../../index-
|
|
18
|
-
import "../../index-
|
|
19
|
-
import "../../index-
|
|
20
|
-
import "../../index-
|
|
21
|
-
import "../../index-
|
|
22
|
-
import "../../index-
|
|
7
|
+
import "../../index-Blq8KrTy.mjs";
|
|
8
|
+
import "../../index-B4aWSJEd.mjs";
|
|
9
|
+
import { S as SentinelOptions, _ as haversineDistanceKm, b as GeoLocation, c as sentinel, d as POW_SOLUTION_HEADER, f as createNonce, g as verifySolution, h as solveChallenge, l as POW_CHALLENGE_HEADER, m as parsePowHeader, p as hasLeadingZeroBits, u as POW_REASON_HEADER, v as normalizeEmail, x as SecurityAction, y as SENTINEL_ERROR_CODES } from "../../index-B7iZf_Dl.mjs";
|
|
10
|
+
import "../../index-CWxKeTtE.mjs";
|
|
11
|
+
import "../../index-382PsmkK.mjs";
|
|
12
|
+
import "../../index-D0SgItjY.mjs";
|
|
13
|
+
import "../../index-DxRAXHrZ.mjs";
|
|
14
|
+
import "../../index-C8F7PsET.mjs";
|
|
15
|
+
import "../../index-DUu0ieh6.mjs";
|
|
16
|
+
import "../../index-DCliG2n6.mjs";
|
|
17
|
+
import "../../index-DPVukjga.mjs";
|
|
18
|
+
import "../../index-DxIqV3rU.mjs";
|
|
19
|
+
import "../../index-Dg6Ftb6f.mjs";
|
|
20
|
+
import "../../index-C-z4TCHD.mjs";
|
|
21
|
+
import "../../index-CIxFDcfQ.mjs";
|
|
22
|
+
import "../../index-B5r4oL5q.mjs";
|
|
23
23
|
import "../../index-QmocqGM-.mjs";
|
|
24
|
-
import "../../index-
|
|
25
|
-
import "../../index-
|
|
26
|
-
import "../../index-
|
|
27
|
-
import "../../index-
|
|
28
|
-
import "../../index-
|
|
24
|
+
import "../../index-CExSHSFz.mjs";
|
|
25
|
+
import "../../index-Dgyj1fTk.mjs";
|
|
26
|
+
import "../../index-CWwQ1Q7t.mjs";
|
|
27
|
+
import "../../index-COFPq-mg.mjs";
|
|
28
|
+
import "../../index-De2a2OyC.mjs";
|
|
29
29
|
export { GeoLocation, POW_CHALLENGE_HEADER, POW_REASON_HEADER, POW_SOLUTION_HEADER, SENTINEL_ERROR_CODES, SecurityAction, SentinelOptions, createNonce, hasLeadingZeroBits, haversineDistanceKm, normalizeEmail, parsePowHeader, sentinel, solveChallenge, verifySolution };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../utils-B03WRaGi.mjs";
|
|
2
2
|
import "../../url-VB2gAbTI.mjs";
|
|
3
|
-
import "../../api-
|
|
3
|
+
import "../../api-BV65Y-Rk.mjs";
|
|
4
4
|
import "../../get-request-ip-DSjrEpGo.mjs";
|
|
5
5
|
import "../../json-D0TBLy4q.mjs";
|
|
6
6
|
import "../../crypto-CCyta8xj.mjs";
|
|
@@ -14,9 +14,9 @@ import "../../get-tables-CKvSyDST.mjs";
|
|
|
14
14
|
import "../../types-DCPpFKUB.mjs";
|
|
15
15
|
import "../../misc-fKH4d5XQ.mjs";
|
|
16
16
|
import "../../session-BB3oqApE.mjs";
|
|
17
|
-
import "../../registry-
|
|
18
|
-
import "../../haveibeenpwned-
|
|
17
|
+
import "../../registry-GztLf62p.mjs";
|
|
18
|
+
import "../../haveibeenpwned-_3a5amT-.mjs";
|
|
19
19
|
import { a as hasLeadingZeroBits, c as verifySolution, i as createNonce, n as POW_REASON_HEADER, o as parsePowHeader, r as POW_SOLUTION_HEADER, s as solveChallenge, t as POW_CHALLENGE_HEADER } from "../../pow-DvkUopsK.mjs";
|
|
20
|
-
import { i as SENTINEL_ERROR_CODES, n as haversineDistanceKm, r as normalizeEmail, t as sentinel } from "../../sentinel-
|
|
20
|
+
import { i as SENTINEL_ERROR_CODES, n as haversineDistanceKm, r as normalizeEmail, t as sentinel } from "../../sentinel-CYtaI3eO.mjs";
|
|
21
21
|
|
|
22
22
|
export { POW_CHALLENGE_HEADER, POW_REASON_HEADER, POW_SOLUTION_HEADER, SENTINEL_ERROR_CODES, createNonce, hasLeadingZeroBits, haversineDistanceKm, normalizeEmail, parsePowHeader, sentinel, solveChallenge, verifySolution };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../helper-BgOIGHsu.mjs";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-3lfPQHhX.mjs";
|
|
3
3
|
import "../../types-DNQ9XQrB.mjs";
|
|
4
4
|
import "../../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import "../../plugins-Dy_FrD4Y.mjs";
|
|
6
|
-
import { a as TwoFactorProvider, i as TwoFactorOptions, n as twoFactorClient, o as TwoFactorTable, r as TWO_FACTOR_ERROR_CODES, s as UserWithTwoFactor, t as twoFactor } from "../../index-
|
|
6
|
+
import { a as TwoFactorProvider, i as TwoFactorOptions, n as twoFactorClient, o as TwoFactorTable, r as TWO_FACTOR_ERROR_CODES, s as UserWithTwoFactor, t as twoFactor } from "../../index-CWwQ1Q7t.mjs";
|
|
7
7
|
export { TWO_FACTOR_ERROR_CODES, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../helper-BgOIGHsu.mjs";
|
|
2
2
|
import "../../plugins-Dy_FrD4Y.mjs";
|
|
3
|
-
import { n as username, r as USERNAME_ERROR_CODES, t as UsernameOptions } from "../../index-
|
|
3
|
+
import { n as username, r as USERNAME_ERROR_CODES, t as UsernameOptions } from "../../index-De2a2OyC.mjs";
|
|
4
4
|
export { USERNAME_ERROR_CODES, UsernameOptions, username };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../utils-B03WRaGi.mjs";
|
|
2
2
|
import "../../url-VB2gAbTI.mjs";
|
|
3
|
-
import "../../api-
|
|
3
|
+
import "../../api-BV65Y-Rk.mjs";
|
|
4
4
|
import "../../get-request-ip-DSjrEpGo.mjs";
|
|
5
5
|
import "../../json-D0TBLy4q.mjs";
|
|
6
6
|
import "../../crypto-CCyta8xj.mjs";
|
|
@@ -14,6 +14,6 @@ import "../../get-tables-CKvSyDST.mjs";
|
|
|
14
14
|
import "../../types-DCPpFKUB.mjs";
|
|
15
15
|
import "../../misc-fKH4d5XQ.mjs";
|
|
16
16
|
import "../../session-BB3oqApE.mjs";
|
|
17
|
-
import { n as USERNAME_ERROR_CODES, t as username } from "../../username-
|
|
17
|
+
import { n as USERNAME_ERROR_CODES, t as username } from "../../username-DCp6yugu.mjs";
|
|
18
18
|
|
|
19
19
|
export { USERNAME_ERROR_CODES, username };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as APIError } from "./api-
|
|
1
|
+
import { t as APIError } from "./api-BV65Y-Rk.mjs";
|
|
2
2
|
import { t as getIp } from "./get-request-ip-DSjrEpGo.mjs";
|
|
3
3
|
import { t as safeJSONParse } from "./json-D0TBLy4q.mjs";
|
|
4
4
|
import { t as generateRandomString } from "./random-32E3cU5o.mjs";
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
//#region src/utils/has-role.ts
|
|
2
|
+
/**
|
|
3
|
+
* Whether a user's role field, a single role or a comma separated list,
|
|
4
|
+
* includes one of the given roles
|
|
5
|
+
*/
|
|
6
|
+
function hasRole(roleField, roles) {
|
|
7
|
+
if (typeof roleField !== "string") return false;
|
|
8
|
+
return roleField.split(",").map((role) => role.trim()).some((role) => roles.includes(role));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
1
12
|
//#region src/plugins/audit-log/events.ts
|
|
2
13
|
/**
|
|
3
14
|
* Audit event types recorded by the audit log plugin
|
|
@@ -74,7 +85,8 @@ const SECURITY_EVENT_TYPES = {
|
|
|
74
85
|
FREE_TRIAL_ABUSE: "security_free_trial_abuse",
|
|
75
86
|
COMPROMISED_PASSWORD: "security_compromised_password",
|
|
76
87
|
STALE_ACCOUNT: "security_stale_account",
|
|
77
|
-
INVALID_EMAIL: "security_invalid_email"
|
|
88
|
+
INVALID_EMAIL: "security_invalid_email",
|
|
89
|
+
UNBLOCKED: "security_unblocked"
|
|
78
90
|
};
|
|
79
91
|
const ALL_EVENT_TYPES = [...Object.values(AUDIT_EVENT_TYPES), ...Object.values(SECURITY_EVENT_TYPES)];
|
|
80
92
|
/** Endpoints that complete a sign-in by creating a session */
|
|
@@ -191,4 +203,4 @@ function getAuditRecorder(context) {
|
|
|
191
203
|
}
|
|
192
204
|
|
|
193
205
|
//#endregion
|
|
194
|
-
export { CREDENTIAL_SIGN_IN_PATHS as a, SIGN_IN_PATHS as c, AUDIT_EVENT_TYPES as i, VERIFICATION_PATHS as l, registerAuditRecorder as n, PATH_EVENTS as o, ALL_EVENT_TYPES as r, SECURITY_EVENT_TYPES as s, getAuditRecorder as t };
|
|
206
|
+
export { CREDENTIAL_SIGN_IN_PATHS as a, SIGN_IN_PATHS as c, AUDIT_EVENT_TYPES as i, VERIFICATION_PATHS as l, registerAuditRecorder as n, PATH_EVENTS as o, ALL_EVENT_TYPES as r, SECURITY_EVENT_TYPES as s, getAuditRecorder as t, hasRole as u };
|