@gatwech/auth 1.0.0-beta.20 → 1.0.0-beta.21
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/api/index.d.mts +2 -2
- package/dist/api/index.mjs +1 -1
- package/dist/{audit-log-DKsUWR8O.mjs → audit-log-DgqHJ-uv.mjs} +132 -63
- package/dist/{auth-vfCyIIeV.mjs → auth-BoEA9bN7.mjs} +14 -1
- package/dist/client/index.d.mts +2 -2
- package/dist/client/plugins/index.d.mts +47 -47
- package/dist/client/plugins/index.mjs +2 -2
- package/dist/client/react/index.d.mts +2 -2
- package/dist/{client-F67q-Lbi.d.mts → client-B00gkznv.d.mts} +1 -1
- package/dist/{client-4QEb0rUr.mjs → client-CMsC6-rl.mjs} +1 -1
- package/dist/{client-C_qmyez2.d.mts → client-Da7tq8m6.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/{index-BX7rl07Z.d.mts → index-BECNG13R.d.mts} +13 -13
- package/dist/{index-D57DuhZR.d.mts → index-BKy-8t2n.d.mts} +179 -126
- package/dist/{index-Df0KhQRf-BEa5tdwJ.d.mts → index-BL_t8cRp-C4QYBsac.d.mts} +56 -17
- package/dist/{index-D6ku0rUC.d.mts → index-BWYXZVsV.d.mts} +5 -5
- package/dist/{index-DwPAddfE.d.mts → index-Bhc37y9F.d.mts} +3 -3
- package/dist/{index-BNhJglHC.d.mts → index-BjCQ3jmE.d.mts} +119 -119
- package/dist/{index-CzpdkTdv.d.mts → index-Bxive_YT.d.mts} +9 -9
- package/dist/{index-DGeoJ4gu.d.mts → index-C-IDh5yy.d.mts} +2 -2
- package/dist/{index-Dnd8S4S4.d.mts → index-CM1rFdwV.d.mts} +9 -9
- package/dist/{index-CNd5jqLl.d.mts → index-CMG4Pnen.d.mts} +4 -4
- package/dist/{index-4I1YhYhk.d.mts → index-CTqynuxm.d.mts} +4 -4
- package/dist/{index-CP8x1TFq.d.mts → index-CbBQdS-u.d.mts} +6 -6
- package/dist/{index-DyXi7S2M.d.mts → index-CpH-1sse.d.mts} +10 -10
- package/dist/{index-CC920PPp.d.mts → index-D1OZ2e4m.d.mts} +14 -14
- package/dist/{index-CofuaNMl.d.mts → index-Dt2I0G4X.d.mts} +7 -7
- package/dist/{index-XfE0WjTN.d.mts → index-IX1to9TB.d.mts} +34 -34
- package/dist/{index-KhbNmMmG.d.mts → index-TrOnY3pM.d.mts} +170 -170
- package/dist/{index-CsxtcAO0.d.mts → index-VUyESU4p.d.mts} +1 -1
- package/dist/{index-CBiGsvDd.d.mts → index-WV7VzW2H.d.mts} +8 -8
- package/dist/{index-Bml-PCqP.d.mts → index-YeXSxzhX.d.mts} +19 -19
- package/dist/{index-BsSKcKgO.d.mts → index-cPt-00xm.d.mts} +6 -6
- package/dist/{index-sb-UFLuo.d.mts → index-iRoaTsOj.d.mts} +2 -2
- package/dist/{index-DFSRYWFI.d.mts → index-jEkJ2Zfk.d.mts} +6 -6
- package/dist/{index-DTkcY7xH.d.mts → index-oNlp4SvD.d.mts} +10 -10
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- 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/{kysely-adapter-Bkm1liPW.mjs → kysely-adapter-BidlNTiV.mjs} +4 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.mjs +1 -1
- package/dist/{organization-CkTKs7bx.mjs → organization-D4QMpChF.mjs} +1 -1
- package/dist/plugins/admin/index.d.mts +3 -3
- package/dist/plugins/admin/index.mjs +1 -1
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.mjs +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +3 -3
- package/dist/plugins/generic-oauth/index.mjs +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +1 -1
- package/dist/plugins/index.d.mts +23 -23
- package/dist/plugins/index.mjs +5 -5
- package/dist/plugins/jwt/index.d.mts +3 -3
- package/dist/plugins/jwt/index.mjs +1 -1
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/magic-link/index.mjs +1 -1
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +1 -1
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.mjs +1 -1
- package/dist/plugins/one-time-token/index.d.mts +3 -3
- package/dist/plugins/one-time-token/index.mjs +5 -5
- package/dist/plugins/organization/index.d.mts +3 -3
- package/dist/plugins/organization/index.mjs +2 -2
- package/dist/plugins/passkey/index.d.mts +3 -3
- package/dist/plugins/passkey/index.mjs +1 -1
- package/dist/plugins/phone-number/index.d.mts +3 -3
- package/dist/plugins/phone-number/index.mjs +1 -1
- 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 +3 -3
- package/dist/plugins/two-factor/index.d.mts +3 -3
- package/dist/plugins/two-factor/index.mjs +1 -1
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/{pow-OK01yPG3.mjs → pow-DvkUopsK.mjs} +17 -1
- package/dist/{sentinel-DiPqydKG.mjs → sentinel-B4Wo79HK.mjs} +295 -92
- 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/index.d.ts +10 -1
- 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 +1045 -1045
- package/dist/test-utils/index.mjs +7 -7
- package/dist/types/index.d.mts +2 -2
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _gatwech_core1 from "@gatwech/core";
|
|
3
|
+
import * as better_call100 from "better-call";
|
|
4
4
|
import * as z$1 from "zod";
|
|
5
5
|
import * as _gatwech_core_db1 from "@gatwech/core/db";
|
|
6
6
|
|
|
@@ -106,7 +106,7 @@ type UsernameOptions = {
|
|
|
106
106
|
};
|
|
107
107
|
declare const username: (options?: UsernameOptions | undefined) => {
|
|
108
108
|
id: "username";
|
|
109
|
-
init(ctx:
|
|
109
|
+
init(ctx: _gatwech_core1.AuthContext<_gatwech_core1.PayvoAuthOptions>): {
|
|
110
110
|
options: {
|
|
111
111
|
databaseHooks: {
|
|
112
112
|
user: {
|
|
@@ -119,7 +119,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
|
|
|
119
119
|
emailVerified: boolean;
|
|
120
120
|
name: string;
|
|
121
121
|
image?: string | null | undefined;
|
|
122
|
-
} & Record<string, unknown>, context:
|
|
122
|
+
} & Record<string, unknown>, context: _gatwech_core1.GenericEndpointContext<_gatwech_core1.PayvoAuthOptions> | undefined): Promise<{
|
|
123
123
|
data: {
|
|
124
124
|
displayUsername?: string | undefined;
|
|
125
125
|
username?: string | undefined;
|
|
@@ -142,7 +142,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
|
|
|
142
142
|
emailVerified: boolean;
|
|
143
143
|
name: string;
|
|
144
144
|
image?: string | null | undefined;
|
|
145
|
-
}> & Record<string, unknown>, context:
|
|
145
|
+
}> & Record<string, unknown>, context: _gatwech_core1.GenericEndpointContext<_gatwech_core1.PayvoAuthOptions> | undefined): Promise<{
|
|
146
146
|
data: {
|
|
147
147
|
displayUsername?: string | undefined;
|
|
148
148
|
username?: string | undefined;
|
|
@@ -182,7 +182,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
|
|
|
182
182
|
} & {
|
|
183
183
|
asResponse?: boolean;
|
|
184
184
|
returnHeaders?: boolean;
|
|
185
|
-
use?:
|
|
185
|
+
use?: better_call100.Middleware[];
|
|
186
186
|
path?: string;
|
|
187
187
|
} & {
|
|
188
188
|
asResponse?: AsResponse | undefined;
|
|
@@ -291,7 +291,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
|
|
|
291
291
|
} & {
|
|
292
292
|
asResponse?: boolean;
|
|
293
293
|
returnHeaders?: boolean;
|
|
294
|
-
use?:
|
|
294
|
+
use?: better_call100.Middleware[];
|
|
295
295
|
path?: string;
|
|
296
296
|
} & {
|
|
297
297
|
asResponse?: AsResponse | undefined;
|
|
@@ -340,8 +340,8 @@ declare const username: (options?: UsernameOptions | undefined) => {
|
|
|
340
340
|
};
|
|
341
341
|
hooks: {
|
|
342
342
|
before: {
|
|
343
|
-
matcher(context:
|
|
344
|
-
handler: (inputContext:
|
|
343
|
+
matcher(context: _gatwech_core1.HookEndpointContext): boolean;
|
|
344
|
+
handler: (inputContext: better_call100.MiddlewareInputContext<better_call100.MiddlewareOptions>) => Promise<void>;
|
|
345
345
|
}[];
|
|
346
346
|
};
|
|
347
347
|
$ERROR_CODES: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _gatwech_core48 from "@gatwech/core";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/captcha/constants.d.ts
|
|
4
4
|
declare const Providers: {
|
|
@@ -34,7 +34,7 @@ type CaptchaOptions = GoogleRecaptchaOptions | CloudflareTurnstileOptions | HCap
|
|
|
34
34
|
//#region src/plugins/captcha/index.d.ts
|
|
35
35
|
declare const captcha: (options: CaptchaOptions) => {
|
|
36
36
|
id: "captcha";
|
|
37
|
-
onRequest: (request: Request, ctx:
|
|
37
|
+
onRequest: (request: Request, ctx: _gatwech_core48.AuthContext<_gatwech_core48.PayvoAuthOptions>) => Promise<{
|
|
38
38
|
response: Response;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as Awaitable } from "./helper-BgOIGHsu.mjs";
|
|
2
|
-
import { On as index_d_exports, g as User, h as Session } from "./index-
|
|
2
|
+
import { On as index_d_exports, g as User, h as Session } from "./index-BjCQ3jmE.mjs";
|
|
3
3
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _gatwech_core10 from "@gatwech/core";
|
|
5
5
|
import { GenericEndpointContext } from "@gatwech/core";
|
|
6
|
-
import * as
|
|
6
|
+
import * as better_call120 from "better-call";
|
|
7
7
|
import * as z$1 from "zod";
|
|
8
8
|
import * as jose0 from "jose";
|
|
9
9
|
import { JSONWebKeySet, JWTPayload } from "jose";
|
|
@@ -250,7 +250,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
|
|
|
250
250
|
} & {
|
|
251
251
|
asResponse?: boolean;
|
|
252
252
|
returnHeaders?: boolean;
|
|
253
|
-
use?:
|
|
253
|
+
use?: better_call120.Middleware[];
|
|
254
254
|
path?: string;
|
|
255
255
|
} & {
|
|
256
256
|
asResponse?: AsResponse | undefined;
|
|
@@ -355,7 +355,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
|
|
|
355
355
|
} & {
|
|
356
356
|
asResponse?: boolean;
|
|
357
357
|
returnHeaders?: boolean;
|
|
358
|
-
use?:
|
|
358
|
+
use?: better_call120.Middleware[];
|
|
359
359
|
path?: string;
|
|
360
360
|
} & {
|
|
361
361
|
asResponse?: AsResponse | undefined;
|
|
@@ -371,7 +371,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
|
|
|
371
371
|
options: {
|
|
372
372
|
method: "GET";
|
|
373
373
|
requireHeaders: true;
|
|
374
|
-
use: ((inputContext:
|
|
374
|
+
use: ((inputContext: better_call120.MiddlewareInputContext<better_call120.MiddlewareOptions>) => Promise<{
|
|
375
375
|
session: {
|
|
376
376
|
session: Record<string, any> & {
|
|
377
377
|
id: string;
|
|
@@ -440,7 +440,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
|
|
|
440
440
|
} & {
|
|
441
441
|
asResponse?: boolean;
|
|
442
442
|
returnHeaders?: boolean;
|
|
443
|
-
use?:
|
|
443
|
+
use?: better_call120.Middleware[];
|
|
444
444
|
path?: string;
|
|
445
445
|
} & {
|
|
446
446
|
asResponse?: AsResponse | undefined;
|
|
@@ -476,8 +476,8 @@ declare const jwt: (options?: JwtOptions | undefined) => {
|
|
|
476
476
|
};
|
|
477
477
|
hooks: {
|
|
478
478
|
after: {
|
|
479
|
-
matcher(context:
|
|
480
|
-
handler: (inputContext:
|
|
479
|
+
matcher(context: _gatwech_core10.HookEndpointContext): boolean;
|
|
480
|
+
handler: (inputContext: better_call120.MiddlewareInputContext<better_call120.MiddlewareOptions>) => Promise<void>;
|
|
481
481
|
}[];
|
|
482
482
|
};
|
|
483
483
|
schema: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as User, h as Session } from "./index-
|
|
1
|
+
import { g as User, h as Session } from "./index-BjCQ3jmE.mjs";
|
|
2
2
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
3
3
|
import * as _gatwech_core0 from "@gatwech/core";
|
|
4
4
|
import { AuthContext, GenericEndpointContext } from "@gatwech/core";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_call97 from "better-call";
|
|
6
6
|
import { EndpointContext } from "better-call";
|
|
7
7
|
|
|
8
8
|
//#region src/plugins/anonymous/index.d.ts
|
|
@@ -77,7 +77,7 @@ declare const anonymous: (options?: AnonymousOptions | undefined) => {
|
|
|
77
77
|
} & {
|
|
78
78
|
asResponse?: boolean;
|
|
79
79
|
returnHeaders?: boolean;
|
|
80
|
-
use?:
|
|
80
|
+
use?: better_call97.Middleware[];
|
|
81
81
|
path?: string;
|
|
82
82
|
} & {
|
|
83
83
|
asResponse?: AsResponse | undefined;
|
|
@@ -142,7 +142,7 @@ declare const anonymous: (options?: AnonymousOptions | undefined) => {
|
|
|
142
142
|
hooks: {
|
|
143
143
|
after: {
|
|
144
144
|
matcher(ctx: _gatwech_core0.HookEndpointContext): boolean;
|
|
145
|
-
handler: (inputContext:
|
|
145
|
+
handler: (inputContext: better_call97.MiddlewareInputContext<better_call97.MiddlewareOptions>) => Promise<void>;
|
|
146
146
|
}[];
|
|
147
147
|
};
|
|
148
148
|
schema: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_call179 from "better-call";
|
|
2
2
|
import * as z$1 from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/magic-link/index.d.ts
|
|
@@ -89,7 +89,7 @@ declare const magicLink: (options: MagicLinkopts) => {
|
|
|
89
89
|
} & {
|
|
90
90
|
asResponse?: boolean;
|
|
91
91
|
returnHeaders?: boolean;
|
|
92
|
-
use?:
|
|
92
|
+
use?: better_call179.Middleware[];
|
|
93
93
|
path?: string;
|
|
94
94
|
} & {
|
|
95
95
|
asResponse?: AsResponse | undefined;
|
|
@@ -175,7 +175,7 @@ declare const magicLink: (options: MagicLinkopts) => {
|
|
|
175
175
|
} & {
|
|
176
176
|
asResponse?: boolean;
|
|
177
177
|
returnHeaders?: boolean;
|
|
178
|
-
use?:
|
|
178
|
+
use?: better_call179.Middleware[];
|
|
179
179
|
path?: string;
|
|
180
180
|
} & {
|
|
181
181
|
asResponse?: AsResponse | undefined;
|
|
@@ -214,7 +214,7 @@ declare const magicLink: (options: MagicLinkopts) => {
|
|
|
214
214
|
errorCallbackURL: z$1.ZodOptional<z$1.ZodString>;
|
|
215
215
|
newUserCallbackURL: z$1.ZodOptional<z$1.ZodString>;
|
|
216
216
|
}, z$1.core.$strip>;
|
|
217
|
-
use: ((inputContext:
|
|
217
|
+
use: ((inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<void>)[];
|
|
218
218
|
requireHeaders: true;
|
|
219
219
|
metadata: {
|
|
220
220
|
openapi: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _gatwech_core12 from "@gatwech/core";
|
|
2
|
+
import * as better_call130 from "better-call";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/bearer/index.d.ts
|
|
5
5
|
interface BearerOptions {
|
|
@@ -19,16 +19,16 @@ declare const bearer: (options?: BearerOptions | undefined) => {
|
|
|
19
19
|
id: "bearer";
|
|
20
20
|
hooks: {
|
|
21
21
|
before: {
|
|
22
|
-
matcher(context:
|
|
23
|
-
handler: (inputContext:
|
|
22
|
+
matcher(context: _gatwech_core12.HookEndpointContext): boolean;
|
|
23
|
+
handler: (inputContext: better_call130.MiddlewareInputContext<better_call130.MiddlewareOptions>) => Promise<{
|
|
24
24
|
context: {
|
|
25
25
|
headers: Headers;
|
|
26
26
|
};
|
|
27
27
|
} | undefined>;
|
|
28
28
|
}[];
|
|
29
29
|
after: {
|
|
30
|
-
matcher(context:
|
|
31
|
-
handler: (inputContext:
|
|
30
|
+
matcher(context: _gatwech_core12.HookEndpointContext): true;
|
|
31
|
+
handler: (inputContext: better_call130.MiddlewareInputContext<better_call130.MiddlewareOptions>) => Promise<void>;
|
|
32
32
|
}[];
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as Session, s as User } from "./index-
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import { o as Session, s as User } from "./index-BL_t8cRp-C4QYBsac.mjs";
|
|
2
|
+
import * as _gatwech_core8 from "@gatwech/core";
|
|
3
|
+
import * as better_call104 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_call104.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_call104.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_call104.MiddlewareInputContext<better_call104.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_call104.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_call104.MiddlewareInputContext<better_call104.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_core8.HookEndpointContext) => boolean;
|
|
282
|
+
handler: (inputContext: better_call104.MiddlewareInputContext<better_call104.MiddlewareOptions>) => Promise<void>;
|
|
283
283
|
}[];
|
|
284
284
|
};
|
|
285
285
|
$ERROR_CODES: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as User } from "./index-
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import { s as User } from "./index-BL_t8cRp-C4QYBsac.mjs";
|
|
2
|
+
import * as _gatwech_core24 from "@gatwech/core";
|
|
3
|
+
import * as better_call156 from "better-call";
|
|
4
4
|
import * as z$1 from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/email-otp/index.d.ts
|
|
@@ -71,7 +71,7 @@ interface EmailOTPOptions {
|
|
|
71
71
|
}
|
|
72
72
|
declare const emailOTP: (options: EmailOTPOptions) => {
|
|
73
73
|
id: "email-otp";
|
|
74
|
-
init(ctx:
|
|
74
|
+
init(ctx: _gatwech_core24.AuthContext<_gatwech_core24.PayvoAuthOptions>): {
|
|
75
75
|
options: {
|
|
76
76
|
emailVerification: {
|
|
77
77
|
sendVerificationEmail(data: {
|
|
@@ -102,7 +102,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
102
102
|
} & {
|
|
103
103
|
asResponse?: boolean;
|
|
104
104
|
returnHeaders?: boolean;
|
|
105
|
-
use?:
|
|
105
|
+
use?: better_call156.Middleware[];
|
|
106
106
|
path?: string;
|
|
107
107
|
} & {
|
|
108
108
|
asResponse?: AsResponse | undefined;
|
|
@@ -175,7 +175,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
175
175
|
} & {
|
|
176
176
|
asResponse?: boolean;
|
|
177
177
|
returnHeaders?: boolean;
|
|
178
|
-
use?:
|
|
178
|
+
use?: better_call156.Middleware[];
|
|
179
179
|
path?: string;
|
|
180
180
|
} & {
|
|
181
181
|
asResponse?: AsResponse | undefined;
|
|
@@ -265,7 +265,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
265
265
|
} & {
|
|
266
266
|
asResponse?: boolean;
|
|
267
267
|
returnHeaders?: boolean;
|
|
268
|
-
use?:
|
|
268
|
+
use?: better_call156.Middleware[];
|
|
269
269
|
path?: string;
|
|
270
270
|
} & {
|
|
271
271
|
asResponse?: AsResponse | undefined;
|
|
@@ -350,7 +350,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
350
350
|
} & {
|
|
351
351
|
asResponse?: boolean;
|
|
352
352
|
returnHeaders?: boolean;
|
|
353
|
-
use?:
|
|
353
|
+
use?: better_call156.Middleware[];
|
|
354
354
|
path?: string;
|
|
355
355
|
} & {
|
|
356
356
|
asResponse?: AsResponse | undefined;
|
|
@@ -485,7 +485,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
485
485
|
} & {
|
|
486
486
|
asResponse?: boolean;
|
|
487
487
|
returnHeaders?: boolean;
|
|
488
|
-
use?:
|
|
488
|
+
use?: better_call156.Middleware[];
|
|
489
489
|
path?: string;
|
|
490
490
|
} & {
|
|
491
491
|
asResponse?: AsResponse | undefined;
|
|
@@ -587,7 +587,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
587
587
|
} & {
|
|
588
588
|
asResponse?: boolean;
|
|
589
589
|
returnHeaders?: boolean;
|
|
590
|
-
use?:
|
|
590
|
+
use?: better_call156.Middleware[];
|
|
591
591
|
path?: string;
|
|
592
592
|
} & {
|
|
593
593
|
asResponse?: AsResponse | undefined;
|
|
@@ -668,7 +668,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
668
668
|
} & {
|
|
669
669
|
asResponse?: boolean;
|
|
670
670
|
returnHeaders?: boolean;
|
|
671
|
-
use?:
|
|
671
|
+
use?: better_call156.Middleware[];
|
|
672
672
|
path?: string;
|
|
673
673
|
} & {
|
|
674
674
|
asResponse?: AsResponse | undefined;
|
|
@@ -749,7 +749,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
749
749
|
} & {
|
|
750
750
|
asResponse?: boolean;
|
|
751
751
|
returnHeaders?: boolean;
|
|
752
|
-
use?:
|
|
752
|
+
use?: better_call156.Middleware[];
|
|
753
753
|
path?: string;
|
|
754
754
|
} & {
|
|
755
755
|
asResponse?: AsResponse | undefined;
|
|
@@ -802,8 +802,8 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
802
802
|
};
|
|
803
803
|
hooks: {
|
|
804
804
|
after: {
|
|
805
|
-
matcher(context:
|
|
806
|
-
handler: (inputContext:
|
|
805
|
+
matcher(context: _gatwech_core24.HookEndpointContext): boolean;
|
|
806
|
+
handler: (inputContext: better_call156.MiddlewareInputContext<better_call156.MiddlewareOptions>) => Promise<void>;
|
|
807
807
|
}[];
|
|
808
808
|
};
|
|
809
809
|
$ERROR_CODES: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as User } from "./index-
|
|
1
|
+
import { g as User } from "./index-BjCQ3jmE.mjs";
|
|
2
2
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as better_call113 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_call113.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_call113.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_call113.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_call113.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_call113.Middleware[];
|
|
521
521
|
path?: string;
|
|
522
522
|
} & {
|
|
523
523
|
asResponse?: AsResponse | undefined;
|