@gatwech/auth 1.0.0-beta.24 → 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 +46 -46
- package/dist/client/plugins/index.mjs +2 -2
- package/dist/client/react/index.d.mts +15 -15
- package/dist/{client-CMsC6-rl.mjs → client-BkpNva-h.mjs} +3 -2
- package/dist/{client-CGV_kj99.d.mts → client-g0OAVuPQ.d.mts} +1 -1
- package/dist/{client-CT-acJeN.d.mts → client-zkWmSxqy.d.mts} +7 -4
- package/dist/cookies/index.d.mts +2 -2
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-Czr_eQFE.d.mts → index-B4HTudhm.d.mts} +6 -6
- package/dist/{index-DYqQWdEv.d.mts → index-BHiF_ZfZ.d.mts} +13 -13
- package/dist/{index-Dmjw6re9.d.mts → index-BX55rZO5.d.mts} +2 -2
- package/dist/{index-Clwezlxm.d.mts → index-BfwCJQfM.d.mts} +8 -8
- package/dist/{index-DGRGLg16.d.mts → index-BhbilPfs.d.mts} +2 -2
- package/dist/{index-JzSy-vFn.d.mts → index-Bi-vEjDm.d.mts} +166 -166
- package/dist/{index-Cl9ITXy1.d.mts → index-BifhxQ8O.d.mts} +10 -10
- package/dist/{index-DWGj7du8.d.mts → index-BiomZttP.d.mts} +19 -19
- package/dist/{index-Hoybqpnt.d.mts → index-BoHrBgTB.d.mts} +9 -9
- package/dist/{index-UDzaYKxq.d.mts → index-C5W_sTlp.d.mts} +9 -9
- package/dist/{index-CLhlur69.d.mts → index-CNyQFga7.d.mts} +6 -6
- package/dist/{index-CZtQ0rUe.d.mts → index-CTjXncwM.d.mts} +113 -113
- package/dist/{index-CGGitykk.d.mts → index-CUUaJp3R.d.mts} +7 -7
- package/dist/{index-D85KXOKz.d.mts → index-CcJjgkwe.d.mts} +3 -3
- package/dist/{index-B-i2ob-C.d.mts → index-Cdfh66xb.d.mts} +9 -9
- package/dist/{index-CHMYUshk.d.mts → index-DBtm_waB.d.mts} +13 -13
- package/dist/{index-DWSbFJWU.d.mts → index-DD_pxX-h.d.mts} +662 -354
- package/dist/{index-BYxt8qOP.d.mts → index-DRoa3BGG.d.mts} +33 -33
- package/dist/{index-D5cyFBEb.d.mts → index-M0IQ_DTL.d.mts} +4 -4
- package/dist/{index-rcUKPBBy.d.mts → index-gRLqvVoc.d.mts} +6 -6
- package/dist/{index-Dt6JhAV4.d.mts → index-i1L-uguJ.d.mts} +6 -6
- package/dist/{index-B6to9CaK.d.mts → index-kBEBsEUr.d.mts} +1 -1
- package/dist/{index-BRUQHEUF.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 +2 -2
- 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-b8XEetew.mjs → sentinel-BttZLWPD.mjs} +70 -14
- 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 +2 -2
- 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,14 +1,13 @@
|
|
|
1
1
|
import type { AuthContext, GenericEndpointContext } from "@gatwech/core";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
import type { User } from "../../types";
|
|
4
|
-
import { SENTINEL_ERROR_CODES } from "./actions";
|
|
5
4
|
import { schema } from "./schema";
|
|
6
5
|
import type { GeoLocation, SecurityAction, SentinelOptions } from "./types";
|
|
7
6
|
export { normalizeEmail } from "./email";
|
|
8
7
|
export { haversineDistanceKm } from "./geo";
|
|
9
8
|
export * from "./pow";
|
|
10
9
|
export type * from "./types";
|
|
11
|
-
export
|
|
10
|
+
export * from "./error-codes";
|
|
12
11
|
export declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
13
12
|
id: "sentinel";
|
|
14
13
|
init(ctx: AuthContext<import("@gatwech/core").PayvoAuthOptions>): {
|
|
@@ -335,12 +334,72 @@ export declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
335
334
|
operationId: string;
|
|
336
335
|
summary: string;
|
|
337
336
|
description: string;
|
|
337
|
+
responses: {
|
|
338
|
+
200: {
|
|
339
|
+
description: string;
|
|
340
|
+
content: {
|
|
341
|
+
"application/json": {
|
|
342
|
+
schema: {
|
|
343
|
+
type: "object";
|
|
344
|
+
properties: {
|
|
345
|
+
blocks: {
|
|
346
|
+
type: string;
|
|
347
|
+
items: {
|
|
348
|
+
type: string;
|
|
349
|
+
properties: {
|
|
350
|
+
id: {
|
|
351
|
+
type: string;
|
|
352
|
+
};
|
|
353
|
+
key: {
|
|
354
|
+
type: string;
|
|
355
|
+
};
|
|
356
|
+
feature: {
|
|
357
|
+
type: string;
|
|
358
|
+
};
|
|
359
|
+
kind: {
|
|
360
|
+
type: string;
|
|
361
|
+
enum: string[];
|
|
362
|
+
};
|
|
363
|
+
identifier: {
|
|
364
|
+
type: string;
|
|
365
|
+
};
|
|
366
|
+
account: {
|
|
367
|
+
type: string;
|
|
368
|
+
nullable: boolean;
|
|
369
|
+
};
|
|
370
|
+
blockedUntil: {
|
|
371
|
+
type: string;
|
|
372
|
+
format: string;
|
|
373
|
+
};
|
|
374
|
+
createdAt: {
|
|
375
|
+
type: string;
|
|
376
|
+
format: string;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
total: {
|
|
382
|
+
type: string;
|
|
383
|
+
};
|
|
384
|
+
limit: {
|
|
385
|
+
type: string;
|
|
386
|
+
};
|
|
387
|
+
offset: {
|
|
388
|
+
type: string;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
required: string[];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
};
|
|
338
397
|
};
|
|
339
398
|
};
|
|
340
399
|
} & {
|
|
341
400
|
use: any[];
|
|
342
401
|
};
|
|
343
|
-
path: "/sentinel/blocks";
|
|
402
|
+
path: "/sentinel/list-blocks";
|
|
344
403
|
};
|
|
345
404
|
unblock: {
|
|
346
405
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
@@ -406,6 +465,24 @@ export declare const sentinel: (options?: SentinelOptions | undefined) => {
|
|
|
406
465
|
operationId: string;
|
|
407
466
|
summary: string;
|
|
408
467
|
description: string;
|
|
468
|
+
responses: {
|
|
469
|
+
200: {
|
|
470
|
+
description: string;
|
|
471
|
+
content: {
|
|
472
|
+
"application/json": {
|
|
473
|
+
schema: {
|
|
474
|
+
type: "object";
|
|
475
|
+
properties: {
|
|
476
|
+
success: {
|
|
477
|
+
type: string;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
required: string[];
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
};
|
|
409
486
|
};
|
|
410
487
|
};
|
|
411
488
|
} & {
|
|
@@ -109,7 +109,7 @@ export interface SentinelOptions {
|
|
|
109
109
|
resolveGeo?: ((ip: string) => GeoLocation | null | Promise<GeoLocation | null>) | undefined;
|
|
110
110
|
} | undefined;
|
|
111
111
|
/**
|
|
112
|
-
* Roles allowed to list and lift blocks through `/sentinel/blocks` and
|
|
112
|
+
* Roles allowed to list and lift blocks through `/sentinel/list-blocks` and
|
|
113
113
|
* `/sentinel/unblock`
|
|
114
114
|
*
|
|
115
115
|
* @default ["admin"]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h as UnionToIntersection, u as Prettify$1 } from "../helper-BgOIGHsu.mjs";
|
|
2
|
-
import { J as InferRoute, U as IsSignal, Y as Auth, b as InferAPI, g as User, h as Session, z as InferErrorCodes } from "../index-
|
|
2
|
+
import { J as InferRoute, U as IsSignal, Y as Auth, b as InferAPI, g as User, h as Session, z as InferErrorCodes } from "../index-CTjXncwM.mjs";
|
|
3
3
|
import "../types-DNQ9XQrB.mjs";
|
|
4
4
|
import { a as OAuth2UserInfo, i as OAuth2Tokens, t as DBAdapter } from "../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import "../plugins-Dy_FrD4Y.mjs";
|
|
6
|
-
import { p as setCookieToHeader } from "../index-
|
|
6
|
+
import { p as setCookieToHeader } from "../index-kBEBsEUr.mjs";
|
|
7
7
|
import * as _gatwech_core64 from "@gatwech/core";
|
|
8
8
|
import { PayvoAuthClientOptions, PayvoAuthOptions } from "@gatwech/core";
|
|
9
9
|
import * as better_call301 from "better-call";
|
|
@@ -29,8 +29,8 @@ import "../admin-rd-xHhnP.mjs";
|
|
|
29
29
|
import "../has-permission-Bvg8de8g.mjs";
|
|
30
30
|
import "../anonymous-qSasVeIe.mjs";
|
|
31
31
|
import "../plugins-RSPSU3ro.mjs";
|
|
32
|
-
import "../registry-
|
|
33
|
-
import "../audit-log-
|
|
32
|
+
import "../registry-BjYhRF79.mjs";
|
|
33
|
+
import "../audit-log-CQnf8nrN.mjs";
|
|
34
34
|
import { t as bearer } from "../bearer-DvQLM00l.mjs";
|
|
35
35
|
import "../captcha-DGP9lCRe.mjs";
|
|
36
36
|
import "../custom-session-DN_-pfi_.mjs";
|
|
@@ -48,8 +48,8 @@ import "../organization-BK3ks97y.mjs";
|
|
|
48
48
|
import "../access-CrwEFPHE.mjs";
|
|
49
49
|
import "../permission-CDDWgA_O.mjs";
|
|
50
50
|
import "../phone-number-Dqz8aeyF.mjs";
|
|
51
|
-
import "../
|
|
52
|
-
import "../
|
|
51
|
+
import "../sentinel-BttZLWPD.mjs";
|
|
52
|
+
import "../pow-Vna_j4hx.mjs";
|
|
53
53
|
import "../two-factor-CDVjxx4f.mjs";
|
|
54
54
|
import "../client-BuveH3MN.mjs";
|
|
55
55
|
import "../passkey-JNQTz5a0.mjs";
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../helper-BgOIGHsu.mjs";
|
|
2
|
-
import { A as Where, B as InferPluginsFromClient, C as AdapterInstance, D as DBAdapterSchemaCreation, E as DBAdapterInstance, F as ClientStore, G as PayvoAuthClientPlugin, H as InferUserFromClient, I as InferActions, K as SessionQueryParams, L as InferAdditionalFromClient, M as AtomListener, N as ClientAtomListener, O as DBTransactionAdapter, P as ClientOptions, R as InferClientAPI, S as Adapter, T as DBAdapter, U as IsSignal, V as InferSessionFromClient, W as PayvoAuthClientOptions, _ as Verification, a as PayvoAuthRateLimitOptions, b as InferAPI, c as AdditionalSessionFieldsOutput, d as InferPluginTypes, f as InferSession, g as User, h as Session, i as PayvoAuthPlugin, j as init, k as TransactionAdapter, l as AdditionalUserFieldsInput, m as RateLimit, n as PayvoAuthCookies, o as Account, p as InferUser, q as Store, r as PayvoAuthOptions, s as AdditionalSessionFieldsInput, t as PayvoAuthAdvancedOptions, u as AdditionalUserFieldsOutput, v as FilterActions, w as AdapterSchemaCreation, x as InferSessionAPI, y as FilteredAPI, z as InferErrorCodes } from "../index-
|
|
2
|
+
import { A as Where, B as InferPluginsFromClient, C as AdapterInstance, D as DBAdapterSchemaCreation, E as DBAdapterInstance, F as ClientStore, G as PayvoAuthClientPlugin, H as InferUserFromClient, I as InferActions, K as SessionQueryParams, L as InferAdditionalFromClient, M as AtomListener, N as ClientAtomListener, O as DBTransactionAdapter, P as ClientOptions, R as InferClientAPI, S as Adapter, T as DBAdapter, U as IsSignal, V as InferSessionFromClient, W as PayvoAuthClientOptions, _ as Verification, a as PayvoAuthRateLimitOptions, b as InferAPI, c as AdditionalSessionFieldsOutput, d as InferPluginTypes, f as InferSession, g as User, h as Session, i as PayvoAuthPlugin, j as init, k as TransactionAdapter, l as AdditionalUserFieldsInput, m as RateLimit, n as PayvoAuthCookies, o as Account, p as InferUser, q as Store, r as PayvoAuthOptions, s as AdditionalSessionFieldsInput, t as PayvoAuthAdvancedOptions, u as AdditionalUserFieldsOutput, v as FilterActions, w as AdapterSchemaCreation, x as InferSessionAPI, y as FilteredAPI, z as InferErrorCodes } from "../index-CTjXncwM.mjs";
|
|
3
3
|
import "../types-DNQ9XQrB.mjs";
|
|
4
4
|
import "../index-BL_t8cRp-C4QYBsac.mjs";
|
|
5
5
|
import { n as InferPluginErrorCodes, t as InferOptionSchema } from "../plugins-Dy_FrD4Y.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gatwech/auth",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.25",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -415,8 +415,8 @@
|
|
|
415
415
|
"kysely": "^0.28.8",
|
|
416
416
|
"nanostores": "^1.0.1",
|
|
417
417
|
"zod": "^4.1.5",
|
|
418
|
-
"@gatwech/core": "1.0.0-beta.
|
|
419
|
-
"@gatwech/telemetry": "1.0.0-beta.
|
|
418
|
+
"@gatwech/core": "1.0.0-beta.25",
|
|
419
|
+
"@gatwech/telemetry": "1.0.0-beta.25"
|
|
420
420
|
},
|
|
421
421
|
"peerDependenciesOptional": {
|
|
422
422
|
"next": "^14.0.0 || ^15.0.0",
|
|
File without changes
|