fix schema import path

This commit is contained in:
dswbx
2025-07-07 16:09:29 +02:00
parent 43c8f14470
commit 88ec3432a0
97 changed files with 180 additions and 180 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { transformObject } from "core/utils";
import { DataPermissions } from "data";
import type { Hono } from "hono";
import { Controller, type ServerEnv } from "modules/Controller";
import { describeRoute, jsc, s, parse, InvalidSchemaError } from "core/object/schema";
import { describeRoute, jsc, s, parse, InvalidSchemaError } from "bknd/core";
export type AuthActionResponse = {
success: boolean;
+1 -1
View File
@@ -1,7 +1,7 @@
import { cookieConfig, jwtConfig } from "auth/authenticate/Authenticator";
import { CustomOAuthStrategy, OAuthStrategy, PasswordStrategy } from "auth/authenticate/strategies";
import { objectTransform } from "core/utils";
import { s } from "core/object/schema";
import { s } from "bknd/core";
export const Strategies = {
password: {
+1 -1
View File
@@ -8,7 +8,7 @@ import type { CookieOptions } from "hono/utils/cookie";
import type { ServerEnv } from "modules/Controller";
import { pick } from "lodash-es";
import { InvalidConditionsException } from "auth/errors";
import { s, parse, secret } from "core/object/schema";
import { s, parse, secret } from "bknd/core";
type Input = any; // workaround
export type JWTPayload = Parameters<typeof sign>[0];
@@ -3,7 +3,7 @@ import { hash, $console } from "core/utils";
import { Hono } from "hono";
import { compare as bcryptCompare, genSalt as bcryptGenSalt, hash as bcryptHash } from "bcryptjs";
import { Strategy } from "./Strategy";
import { s, parse, jsc } from "core/object/schema";
import { s, parse, jsc } from "bknd/core";
const schema = s
.object({
@@ -5,7 +5,7 @@ import type {
StrategyActions,
} from "../Authenticator";
import type { Hono } from "hono";
import { type s, parse } from "core/object/schema";
import { type s, parse } from "bknd/core";
export type StrategyMode = "form" | "external";
@@ -1,6 +1,6 @@
import type * as oauth from "oauth4webapi";
import { OAuthStrategy } from "./OAuthStrategy";
import { s } from "core/object/schema";
import { s } from "bknd/core";
type SupportedTypes = "oauth2" | "oidc";
@@ -6,7 +6,7 @@ import { getSignedCookie, setSignedCookie } from "hono/cookie";
import * as oauth from "oauth4webapi";
import * as issuers from "./issuers";
import { Strategy } from "auth/authenticate/strategies/Strategy";
import { s } from "core/object/schema";
import { s } from "bknd/core";
type ConfiguredIssuers = keyof typeof issuers;
type SupportedTypes = "oauth2" | "oidc";