@gatwech/auth 1.0.0-beta.23 → 1.0.0-beta.25
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/api/index.d.mts +1 -1
- package/dist/{audit-log-DhRRCMrv.mjs → audit-log-CQnf8nrN.mjs} +442 -46
- package/dist/client/index.d.mts +1 -1
- package/dist/client/plugins/index.d.mts +45 -45
- package/dist/client/plugins/index.mjs +2 -2
- package/dist/client/react/index.d.mts +1 -1
- package/dist/{client-CMsC6-rl.mjs → client-BkpNva-h.mjs} +3 -2
- package/dist/{client-D8XKNpua.d.mts → client-g0OAVuPQ.d.mts} +1 -1
- package/dist/{client-CDaFOX7A.d.mts → client-zkWmSxqy.d.mts} +4 -1
- package/dist/cookies/index.d.mts +2 -2
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-CWxKeTtE.d.mts → index-B4HTudhm.d.mts} +6 -6
- package/dist/{index-C8F7PsET.d.mts → index-BHiF_ZfZ.d.mts} +13 -13
- package/dist/{index-382PsmkK.d.mts → index-BX55rZO5.d.mts} +2 -2
- package/dist/{index-DUu0ieh6.d.mts → index-BfwCJQfM.d.mts} +8 -8
- package/dist/{index-CIxFDcfQ.d.mts → index-BhbilPfs.d.mts} +2 -2
- package/dist/{index-CExSHSFz.d.mts → index-Bi-vEjDm.d.mts} +166 -166
- package/dist/{index-C-z4TCHD.d.mts → index-BifhxQ8O.d.mts} +10 -10
- package/dist/{index-CWwQ1Q7t.d.mts → index-BiomZttP.d.mts} +19 -19
- package/dist/{index-De2a2OyC.d.mts → index-BoHrBgTB.d.mts} +9 -9
- package/dist/{index-DPVukjga.d.mts → index-C5W_sTlp.d.mts} +9 -9
- package/dist/{index-D0SgItjY.d.mts → index-CNyQFga7.d.mts} +6 -6
- package/dist/{index-3lfPQHhX.d.mts → index-CTjXncwM.d.mts} +113 -113
- package/dist/{index-Dgyj1fTk.d.mts → index-CUUaJp3R.d.mts} +7 -7
- package/dist/{index-DCliG2n6.d.mts → index-CcJjgkwe.d.mts} +3 -3
- package/dist/{index-Dg6Ftb6f.d.mts → index-Cdfh66xb.d.mts} +9 -9
- package/dist/{index-COFPq-mg.d.mts → index-DBtm_waB.d.mts} +13 -13
- package/dist/{index-B7iZf_Dl.d.mts → index-DD_pxX-h.d.mts} +662 -354
- package/dist/{index-Blq8KrTy.d.mts → index-DRoa3BGG.d.mts} +1 -1
- package/dist/{index-DxIqV3rU.d.mts → index-M0IQ_DTL.d.mts} +4 -4
- package/dist/{index-DxRAXHrZ.d.mts → index-gRLqvVoc.d.mts} +6 -6
- package/dist/{index-B4aWSJEd.d.mts → index-i1L-uguJ.d.mts} +6 -6
- package/dist/{index-BhYE1_9j.d.mts → index-kBEBsEUr.d.mts} +1 -1
- package/dist/{index-B5r4oL5q.d.mts → index-mDmrBYrk.d.mts} +5 -5
- package/dist/index.d.mts +1 -1
- 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/oauth2/index.d.mts +1 -1
- package/dist/plugins/admin/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/audit-log/client.d.mts +23 -23
- 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 +2 -2
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/index.d.mts +23 -23
- package/dist/plugins/index.mjs +5 -5
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.mjs +4 -4
- package/dist/plugins/organization/index.d.mts +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/plugins/phone-number/index.d.mts +2 -2
- package/dist/plugins/sentinel/client.d.mts +23 -23
- package/dist/plugins/sentinel/client.mjs +2 -2
- 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/username/index.d.mts +1 -1
- package/dist/{registry-GztLf62p.mjs → registry-BjYhRF79.mjs} +69 -2
- package/dist/{sentinel-CYtaI3eO.mjs → sentinel-BttZLWPD.mjs} +109 -28
- package/dist/src/plugins/audit-log/error-codes.d.ts +7 -0
- package/dist/src/plugins/audit-log/events.d.ts +13 -0
- package/dist/src/plugins/audit-log/index.d.ts +114 -8
- package/dist/src/plugins/audit-log/integrity.d.ts +20 -0
- package/dist/src/plugins/audit-log/redact.d.ts +18 -0
- package/dist/src/plugins/audit-log/remote.d.ts +1 -0
- package/dist/src/plugins/audit-log/schema.d.ts +25 -0
- package/dist/src/plugins/audit-log/types.d.ts +73 -13
- package/dist/src/plugins/sentinel/actions.d.ts +0 -6
- package/dist/src/plugins/sentinel/client.d.ts +3 -0
- package/dist/src/plugins/sentinel/error-codes.d.ts +6 -0
- package/dist/src/plugins/sentinel/index.d.ts +80 -3
- package/dist/src/plugins/sentinel/types.d.ts +1 -1
- package/dist/test-utils/index.d.mts +273 -273
- package/dist/test-utils/index.mjs +4 -4
- package/dist/types/index.d.mts +1 -1
- package/package.json +3 -3
- /package/dist/{pow-DvkUopsK.mjs → pow-Vna_j4hx.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as User } from "./index-
|
|
1
|
+
import { g as User } from "./index-CTjXncwM.mjs";
|
|
2
2
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as better_call112 from "better-call";
|
|
4
4
|
import * as z$1 from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/phone-number/index.d.ts
|
|
@@ -136,7 +136,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
136
136
|
} & {
|
|
137
137
|
asResponse?: boolean;
|
|
138
138
|
returnHeaders?: boolean;
|
|
139
|
-
use?:
|
|
139
|
+
use?: better_call112.Middleware[];
|
|
140
140
|
path?: string;
|
|
141
141
|
} & {
|
|
142
142
|
asResponse?: AsResponse | undefined;
|
|
@@ -225,7 +225,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
225
225
|
} & {
|
|
226
226
|
asResponse?: boolean;
|
|
227
227
|
returnHeaders?: boolean;
|
|
228
|
-
use?:
|
|
228
|
+
use?: better_call112.Middleware[];
|
|
229
229
|
path?: string;
|
|
230
230
|
} & {
|
|
231
231
|
asResponse?: AsResponse | undefined;
|
|
@@ -307,7 +307,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
307
307
|
} & {
|
|
308
308
|
asResponse?: boolean;
|
|
309
309
|
returnHeaders?: boolean;
|
|
310
|
-
use?:
|
|
310
|
+
use?: better_call112.Middleware[];
|
|
311
311
|
path?: string;
|
|
312
312
|
} & {
|
|
313
313
|
asResponse?: AsResponse | undefined;
|
|
@@ -449,7 +449,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
449
449
|
} & {
|
|
450
450
|
asResponse?: boolean;
|
|
451
451
|
returnHeaders?: boolean;
|
|
452
|
-
use?:
|
|
452
|
+
use?: better_call112.Middleware[];
|
|
453
453
|
path?: string;
|
|
454
454
|
} & {
|
|
455
455
|
asResponse?: AsResponse | undefined;
|
|
@@ -517,7 +517,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
517
517
|
} & {
|
|
518
518
|
asResponse?: boolean;
|
|
519
519
|
returnHeaders?: boolean;
|
|
520
|
-
use?:
|
|
520
|
+
use?: better_call112.Middleware[];
|
|
521
521
|
path?: string;
|
|
522
522
|
} & {
|
|
523
523
|
asResponse?: AsResponse | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _gatwech_core38 from "@gatwech/core";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/haveibeenpwned/index.d.ts
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ interface HaveIBeenPwnedOptions {
|
|
|
13
13
|
}
|
|
14
14
|
declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
|
|
15
15
|
id: "haveIBeenPwned";
|
|
16
|
-
init(ctx:
|
|
16
|
+
init(ctx: _gatwech_core38.AuthContext<_gatwech_core38.PayvoAuthOptions>): {
|
|
17
17
|
context: {
|
|
18
18
|
password: {
|
|
19
19
|
hash(password: string): Promise<string>;
|
|
@@ -25,7 +25,7 @@ declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
|
|
|
25
25
|
minPasswordLength: number;
|
|
26
26
|
maxPasswordLength: number;
|
|
27
27
|
};
|
|
28
|
-
checkPassword: (userId: string, ctx:
|
|
28
|
+
checkPassword: (userId: string, ctx: _gatwech_core38.GenericEndpointContext<_gatwech_core38.PayvoAuthOptions>) => Promise<boolean>;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as Session, s as User } from "./index-BL_t8cRp-C4QYBsac.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _gatwech_core9 from "@gatwech/core";
|
|
3
|
+
import * as better_call125 from "better-call";
|
|
4
4
|
import * as z$1 from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/multi-session/index.d.ts
|
|
@@ -46,7 +46,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
|
|
|
46
46
|
} & {
|
|
47
47
|
asResponse?: boolean;
|
|
48
48
|
returnHeaders?: boolean;
|
|
49
|
-
use?:
|
|
49
|
+
use?: better_call125.Middleware[];
|
|
50
50
|
path?: string;
|
|
51
51
|
} & {
|
|
52
52
|
asResponse?: AsResponse | undefined;
|
|
@@ -102,7 +102,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
|
|
|
102
102
|
} & {
|
|
103
103
|
asResponse?: boolean;
|
|
104
104
|
returnHeaders?: boolean;
|
|
105
|
-
use?:
|
|
105
|
+
use?: better_call125.Middleware[];
|
|
106
106
|
path?: string;
|
|
107
107
|
} & {
|
|
108
108
|
asResponse?: AsResponse | undefined;
|
|
@@ -123,7 +123,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
|
|
|
123
123
|
sessionToken: z$1.ZodString;
|
|
124
124
|
}, z$1.core.$strip>;
|
|
125
125
|
requireHeaders: true;
|
|
126
|
-
use: ((inputContext:
|
|
126
|
+
use: ((inputContext: better_call125.MiddlewareInputContext<better_call125.MiddlewareOptions>) => Promise<{
|
|
127
127
|
session: {
|
|
128
128
|
session: Record<string, any> & {
|
|
129
129
|
id: string;
|
|
@@ -206,7 +206,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
|
|
|
206
206
|
} & {
|
|
207
207
|
asResponse?: boolean;
|
|
208
208
|
returnHeaders?: boolean;
|
|
209
|
-
use?:
|
|
209
|
+
use?: better_call125.Middleware[];
|
|
210
210
|
path?: string;
|
|
211
211
|
} & {
|
|
212
212
|
asResponse?: AsResponse | undefined;
|
|
@@ -225,7 +225,7 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
|
|
|
225
225
|
sessionToken: z$1.ZodString;
|
|
226
226
|
}, z$1.core.$strip>;
|
|
227
227
|
requireHeaders: true;
|
|
228
|
-
use: ((inputContext:
|
|
228
|
+
use: ((inputContext: better_call125.MiddlewareInputContext<better_call125.MiddlewareOptions>) => Promise<{
|
|
229
229
|
session: {
|
|
230
230
|
session: Record<string, any> & {
|
|
231
231
|
id: string;
|
|
@@ -278,8 +278,8 @@ declare const multiSession: (options?: MultiSessionConfig | undefined) => {
|
|
|
278
278
|
};
|
|
279
279
|
hooks: {
|
|
280
280
|
after: {
|
|
281
|
-
matcher: (context:
|
|
282
|
-
handler: (inputContext:
|
|
281
|
+
matcher: (context: _gatwech_core9.HookEndpointContext) => boolean;
|
|
282
|
+
handler: (inputContext: better_call125.MiddlewareInputContext<better_call125.MiddlewareOptions>) => Promise<void>;
|
|
283
283
|
}[];
|
|
284
284
|
};
|
|
285
285
|
$ERROR_CODES: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as better_call179 from "better-call";
|
|
3
3
|
import * as z$1 from "zod";
|
|
4
4
|
import * as _simplewebauthn_server0 from "@simplewebauthn/server";
|
|
5
5
|
import { AuthenticationResponseJSON, CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/server";
|
|
@@ -139,7 +139,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
139
139
|
} & {
|
|
140
140
|
asResponse?: boolean;
|
|
141
141
|
returnHeaders?: boolean;
|
|
142
|
-
use?:
|
|
142
|
+
use?: better_call179.Middleware[];
|
|
143
143
|
path?: string;
|
|
144
144
|
} & {
|
|
145
145
|
asResponse?: AsResponse | undefined;
|
|
@@ -150,7 +150,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
150
150
|
} : PublicKeyCredentialCreationOptionsJSON>;
|
|
151
151
|
options: {
|
|
152
152
|
method: "GET";
|
|
153
|
-
use: ((inputContext:
|
|
153
|
+
use: ((inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<{
|
|
154
154
|
session: {
|
|
155
155
|
session: Record<string, any> & {
|
|
156
156
|
id: string;
|
|
@@ -318,7 +318,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
318
318
|
} & {
|
|
319
319
|
asResponse?: boolean;
|
|
320
320
|
returnHeaders?: boolean;
|
|
321
|
-
use?:
|
|
321
|
+
use?: better_call179.Middleware[];
|
|
322
322
|
path?: string;
|
|
323
323
|
} & {
|
|
324
324
|
asResponse?: AsResponse | undefined;
|
|
@@ -443,7 +443,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
443
443
|
} & {
|
|
444
444
|
asResponse?: boolean;
|
|
445
445
|
returnHeaders?: boolean;
|
|
446
|
-
use?:
|
|
446
|
+
use?: better_call179.Middleware[];
|
|
447
447
|
path?: string;
|
|
448
448
|
} & {
|
|
449
449
|
asResponse?: AsResponse | undefined;
|
|
@@ -458,7 +458,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
458
458
|
response: z$1.ZodAny;
|
|
459
459
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
460
460
|
}, z$1.core.$strip>;
|
|
461
|
-
use: ((inputContext:
|
|
461
|
+
use: ((inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<{
|
|
462
462
|
session: {
|
|
463
463
|
session: Record<string, any> & {
|
|
464
464
|
id: string;
|
|
@@ -524,7 +524,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
524
524
|
} & {
|
|
525
525
|
asResponse?: boolean;
|
|
526
526
|
returnHeaders?: boolean;
|
|
527
|
-
use?:
|
|
527
|
+
use?: better_call179.Middleware[];
|
|
528
528
|
path?: string;
|
|
529
529
|
} & {
|
|
530
530
|
asResponse?: AsResponse | undefined;
|
|
@@ -626,7 +626,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
626
626
|
} & {
|
|
627
627
|
asResponse?: boolean;
|
|
628
628
|
returnHeaders?: boolean;
|
|
629
|
-
use?:
|
|
629
|
+
use?: better_call179.Middleware[];
|
|
630
630
|
path?: string;
|
|
631
631
|
} & {
|
|
632
632
|
asResponse?: AsResponse | undefined;
|
|
@@ -637,7 +637,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
637
637
|
} : Passkey[]>;
|
|
638
638
|
options: {
|
|
639
639
|
method: "GET";
|
|
640
|
-
use: ((inputContext:
|
|
640
|
+
use: ((inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<{
|
|
641
641
|
session: {
|
|
642
642
|
session: Record<string, any> & {
|
|
643
643
|
id: string;
|
|
@@ -720,7 +720,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
720
720
|
} & {
|
|
721
721
|
asResponse?: boolean;
|
|
722
722
|
returnHeaders?: boolean;
|
|
723
|
-
use?:
|
|
723
|
+
use?: better_call179.Middleware[];
|
|
724
724
|
path?: string;
|
|
725
725
|
} & {
|
|
726
726
|
asResponse?: AsResponse | undefined;
|
|
@@ -734,7 +734,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
734
734
|
body: z$1.ZodObject<{
|
|
735
735
|
id: z$1.ZodString;
|
|
736
736
|
}, z$1.core.$strip>;
|
|
737
|
-
use: ((inputContext:
|
|
737
|
+
use: ((inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<{
|
|
738
738
|
session: {
|
|
739
739
|
session: Record<string, any> & {
|
|
740
740
|
id: string;
|
|
@@ -820,7 +820,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
820
820
|
} & {
|
|
821
821
|
asResponse?: boolean;
|
|
822
822
|
returnHeaders?: boolean;
|
|
823
|
-
use?:
|
|
823
|
+
use?: better_call179.Middleware[];
|
|
824
824
|
path?: string;
|
|
825
825
|
} & {
|
|
826
826
|
asResponse?: AsResponse | undefined;
|
|
@@ -839,7 +839,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
839
839
|
id: z$1.ZodString;
|
|
840
840
|
name: z$1.ZodString;
|
|
841
841
|
}, z$1.core.$strip>;
|
|
842
|
-
use: ((inputContext:
|
|
842
|
+
use: ((inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<{
|
|
843
843
|
session: {
|
|
844
844
|
session: Record<string, any> & {
|
|
845
845
|
id: string;
|