security: fix full audit findings (v0.32.0)
Full list of the audit's confirmed findings and their fixes: - Stored XSS via unescaped JSON-LD on the public recipe page (app/r/[id]/page.tsx) — escape < before injecting. - CSP allowed unsafe-eval in production — now dev-only (Next prod never eval()s; only its HMR does). - avatarUrl accepted any URL with no ownership check — now takes an avatarKey issued by avatar-presign, validated server-side, same pattern as recipe/review photos. - No session revocation on password change/reset — both now revoke other sessions (revokeOtherSessions: true, revokeSessionsOnPasswordReset). - Rate-limit bypass via spoofable X-Forwarded-For — take the last (proxy-appended) hop instead of the first (client-supplied) one, matching the single-Traefik-hop topology. - Webhook signing secrets stored plaintext — now AES-256-GCM encrypted like every other secret in this app, with a legacy- plaintext fallback for pre-existing rows (bare hex has no ":", our ciphertext format always does). - Better Auth's own rate limiter defaulted to in-memory storage, ineffective across replicas — now backed by the same Redis as lib/rate-limit.ts (secondaryStorage), with storeSessionInDatabase explicit so session storage itself doesn't move as a side effect. - Presigned upload URLs didn't bind the declared file size to the actual upload, letting a client under-declare size (and quota charge) then PUT an arbitrarily large object — switched to S3 presigned POST with a signed content-length-range condition, enforced by the storage server itself. - generateMetadata() on the recipe page skipped the visibility filter the page body uses, leaking a private recipe's title via <title> to any signed-in user with the id. - Block/unblock had no rate limit, unlike follow/unfollow. - AI quota was charged even when a user's own BYOK key was used (their own credentials/billing) — added an isByok flag through the config-resolution chain and skip the charge when set. Also wired BYOK into generate/generate-from-idea/translate/import-url, which never looked it up at all before. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,20 @@
|
|||||||
|
|
||||||
All notable changes to Epicure are documented here. This file is mirrored in-app at `/changelog` (and in the admin dashboard) via `apps/web/lib/changelog.ts` — update both together.
|
All notable changes to Epicure are documented here. This file is mirrored in-app at `/changelog` (and in the admin dashboard) via `apps/web/lib/changelog.ts` — update both together.
|
||||||
|
|
||||||
|
## 0.32.0 — 2026-07-14 17:10
|
||||||
|
|
||||||
|
### Security
|
||||||
|
- Fixed a stored-XSS hole in public recipe pages' embedded structured data, and tightened the production Content-Security-Policy so script injection like it can't execute even if a similar bug slips in again.
|
||||||
|
- Avatar photos now require proof you actually own the upload — previously any URL was accepted, including another user's uploaded photo key.
|
||||||
|
- Changing your password now signs out every other active session, and so does resetting a forgotten password.
|
||||||
|
- Fixed a rate-limit bypass on public share-link throttling caused by trusting a spoofable header.
|
||||||
|
- Webhook signing secrets are now encrypted at rest, matching how API keys and other secrets are already stored.
|
||||||
|
- Login/2FA/password-reset rate limiting now shares Redis instead of quietly resetting per server instance.
|
||||||
|
- Photo/avatar uploads are now size-capped by the storage server itself, not just a number the client could lie about.
|
||||||
|
- A private recipe's title could leak via its page's browser-tab title to any signed-in user who had the link — fixed to respect the same visibility rules as the page itself.
|
||||||
|
- Blocking/unblocking a user is now rate-limited, matching follow/unfollow.
|
||||||
|
- AI calls made with your own API key (Settings → AI Keys) no longer count against your monthly AI-call limit.
|
||||||
|
|
||||||
## 0.31.0 — 2026-07-14 16:35
|
## 0.31.0 — 2026-07-14 16:35
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -45,7 +45,14 @@ type Params = { params: Promise<{ id: string }> };
|
|||||||
|
|
||||||
export async function generateMetadata({ params }: Params): Promise<Metadata> {
|
export async function generateMetadata({ params }: Params): Promise<Metadata> {
|
||||||
const { id } = await params;
|
const { id } = await params;
|
||||||
const recipe = await db.query.recipes.findFirst({ where: eq(recipes.id, id) });
|
const session = await auth.api.getSession({ headers: await headers() });
|
||||||
|
if (!session) return { title: "Recipe" };
|
||||||
|
const recipe = await db.query.recipes.findFirst({
|
||||||
|
where: and(
|
||||||
|
eq(recipes.id, id),
|
||||||
|
or(eq(recipes.authorId, session.user.id), inArray(recipes.visibility, ["public", "unlisted"]))
|
||||||
|
),
|
||||||
|
});
|
||||||
return { title: recipe?.title ?? "Recipe" };
|
return { title: recipe?.title ?? "Recipe" };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export async function POST(req: NextRequest, { params }: Params) {
|
|||||||
},
|
},
|
||||||
{ ...aiConfig, userContext: privateBio ?? undefined },
|
{ ...aiConfig, userContext: privateBio ?? undefined },
|
||||||
(session!.user as { locale?: string }).locale ?? "en"
|
(session!.user as { locale?: string }).locale ?? "en"
|
||||||
)
|
), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
const adapted = result.data;
|
const adapted = result.data;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export async function POST(req: NextRequest) {
|
|||||||
},
|
},
|
||||||
{ ...config, userContext: privateBio ?? undefined },
|
{ ...config, userContext: privateBio ?? undefined },
|
||||||
locale
|
locale
|
||||||
)
|
), { skipQuota: config.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
const plan = result.data;
|
const plan = result.data;
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ export async function POST(req: NextRequest) {
|
|||||||
getUserPrivateBio(session!.user.id),
|
getUserPrivateBio(session!.user.id),
|
||||||
]);
|
]);
|
||||||
if (!configResult.ok) return configResult.response;
|
if (!configResult.ok) return configResult.response;
|
||||||
const model = resolveModel(configResult.data);
|
const aiConfig = configResult.data;
|
||||||
|
const model = resolveModel(aiConfig);
|
||||||
const bioContext = buildUserBioContext(privateBio);
|
const bioContext = buildUserBioContext(privateBio);
|
||||||
const locale = (session!.user as { locale?: string }).locale ?? "en";
|
const locale = (session!.user as { locale?: string }).locale ?? "en";
|
||||||
const lang = LANG[locale] ?? "English";
|
const lang = LANG[locale] ?? "English";
|
||||||
@@ -43,7 +44,7 @@ export async function POST(req: NextRequest) {
|
|||||||
model,
|
model,
|
||||||
system: `You are Epicure, a helpful culinary assistant answering general cooking questions — not tied to any specific recipe (techniques, substitutions, timing, equipment, food safety, etc). If asked who you are or what model/AI you're built on, say you're Epicure — never name the underlying model or provider. If a question has nothing to do with cooking or food, politely redirect. Keep answers under 200 words. Respond in ${lang}.${bioContext}`,
|
system: `You are Epicure, a helpful culinary assistant answering general cooking questions — not tied to any specific recipe (techniques, substitutions, timing, equipment, food safety, etc). If asked who you are or what model/AI you're built on, say you're Epicure — never name the underlying model or provider. If a question has nothing to do with cooking or food, politely redirect. Keep answers under 200 words. Respond in ${lang}.${bioContext}`,
|
||||||
prompt: parsed.data.question,
|
prompt: parsed.data.question,
|
||||||
})
|
}), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export async function POST(req: NextRequest, { params }: Params) {
|
|||||||
parsed.data.count,
|
parsed.data.count,
|
||||||
{ ...aiConfig, userContext: privateBio ?? undefined },
|
{ ...aiConfig, userContext: privateBio ?? undefined },
|
||||||
(session!.user as { locale?: string }).locale ?? "en"
|
(session!.user as { locale?: string }).locale ?? "en"
|
||||||
)
|
), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,10 @@ import { NextRequest, NextResponse } from "next/server";
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { requireSessionOrApiKey } from "@/lib/api-auth";
|
import { requireSessionOrApiKey } from "@/lib/api-auth";
|
||||||
import { applyRateLimit } from "@/lib/rate-limit";
|
import { applyRateLimit } from "@/lib/rate-limit";
|
||||||
import { withAiQuota } from "@/lib/ai/ai-error";
|
import { withAiQuota, resolveAiConfigOrError } from "@/lib/ai/ai-error";
|
||||||
import { generateRecipe } from "@/lib/ai/features/generate-recipe";
|
import { generateRecipe } from "@/lib/ai/features/generate-recipe";
|
||||||
import { getUserPrivateBio } from "@/lib/ai/user-bio";
|
import { getUserPrivateBio } from "@/lib/ai/user-bio";
|
||||||
|
import { withUserKey } from "@/lib/ai/resolve-user-key";
|
||||||
import { db, recipes, recipeIngredients, recipeSteps } from "@epicure/db";
|
import { db, recipes, recipeIngredients, recipeSteps } from "@epicure/db";
|
||||||
import { parseQuantity } from "@/lib/parse-quantity";
|
import { parseQuantity } from "@/lib/parse-quantity";
|
||||||
|
|
||||||
@@ -32,13 +33,18 @@ export async function POST(req: NextRequest) {
|
|||||||
const privateBio = await getUserPrivateBio(session!.user.id);
|
const privateBio = await getUserPrivateBio(session!.user.id);
|
||||||
const locale = (session!.user as { locale?: string }).locale ?? "en";
|
const locale = (session!.user as { locale?: string }).locale ?? "en";
|
||||||
|
|
||||||
|
const configResult = await resolveAiConfigOrError(() =>
|
||||||
|
withUserKey(session!.user.id, { provider: parsed.data.provider, model: parsed.data.model })
|
||||||
|
);
|
||||||
|
if (!configResult.ok) return configResult.response;
|
||||||
|
const aiConfig = configResult.data;
|
||||||
|
|
||||||
const result = await withAiQuota(session!.user.id, session!.user.tier as "free" | "pro", () =>
|
const result = await withAiQuota(session!.user.id, session!.user.tier as "free" | "pro", () =>
|
||||||
generateRecipe(parsed.data.title, {
|
generateRecipe(parsed.data.title, {
|
||||||
provider: parsed.data.provider,
|
...aiConfig,
|
||||||
model: parsed.data.model,
|
|
||||||
userContext: privateBio ?? undefined,
|
userContext: privateBio ?? undefined,
|
||||||
language: LANG[locale] ?? "English",
|
language: LANG[locale] ?? "English",
|
||||||
})
|
}), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
const recipe = result.data;
|
const recipe = result.data;
|
||||||
|
|||||||
@@ -2,9 +2,10 @@ import { NextRequest, NextResponse } from "next/server";
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { requireSessionOrApiKey } from "@/lib/api-auth";
|
import { requireSessionOrApiKey } from "@/lib/api-auth";
|
||||||
import { applyRateLimit } from "@/lib/rate-limit";
|
import { applyRateLimit } from "@/lib/rate-limit";
|
||||||
import { withAiQuota } from "@/lib/ai/ai-error";
|
import { withAiQuota, resolveAiConfigOrError } from "@/lib/ai/ai-error";
|
||||||
import { generateRecipe } from "@/lib/ai/features/generate-recipe";
|
import { generateRecipe } from "@/lib/ai/features/generate-recipe";
|
||||||
import { getUserPrivateBio } from "@/lib/ai/user-bio";
|
import { getUserPrivateBio } from "@/lib/ai/user-bio";
|
||||||
|
import { withUserKey } from "@/lib/ai/resolve-user-key";
|
||||||
|
|
||||||
const Schema = z.object({
|
const Schema = z.object({
|
||||||
prompt: z.string().min(3).max(500),
|
prompt: z.string().min(3).max(500),
|
||||||
@@ -29,14 +30,19 @@ export async function POST(req: NextRequest) {
|
|||||||
|
|
||||||
const privateBio = await getUserPrivateBio(session!.user.id);
|
const privateBio = await getUserPrivateBio(session!.user.id);
|
||||||
|
|
||||||
|
const configResult = await resolveAiConfigOrError(() =>
|
||||||
|
withUserKey(session!.user.id, { provider: parsed.data.provider, model: parsed.data.model })
|
||||||
|
);
|
||||||
|
if (!configResult.ok) return configResult.response;
|
||||||
|
const aiConfig = configResult.data;
|
||||||
|
|
||||||
const result = await withAiQuota(session!.user.id, session!.user.tier as "free" | "pro", () =>
|
const result = await withAiQuota(session!.user.id, session!.user.tier as "free" | "pro", () =>
|
||||||
generateRecipe(parsed.data.prompt, {
|
generateRecipe(parsed.data.prompt, {
|
||||||
provider: parsed.data.provider,
|
...aiConfig,
|
||||||
model: parsed.data.model,
|
|
||||||
language: parsed.data.language,
|
language: parsed.data.language,
|
||||||
difficulty: parsed.data.difficulty,
|
difficulty: parsed.data.difficulty,
|
||||||
userContext: privateBio ?? undefined,
|
userContext: privateBio ?? undefined,
|
||||||
})
|
}), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ export async function POST(req: NextRequest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const result = await withAiQuota(userId, session!.user.tier as "free" | "pro", () =>
|
const result = await withAiQuota(userId, session!.user.tier as "free" | "pro", () =>
|
||||||
importFromPhoto(parsed.data.imageBase64, parsed.data.mimeType, aiConfig, locale)
|
importFromPhoto(parsed.data.imageBase64, parsed.data.mimeType, aiConfig, locale),
|
||||||
|
{ skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
const recipe = result.data;
|
const recipe = result.data;
|
||||||
|
|||||||
@@ -2,9 +2,10 @@ import { NextRequest, NextResponse } from "next/server";
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { requireSessionOrApiKey } from "@/lib/api-auth";
|
import { requireSessionOrApiKey } from "@/lib/api-auth";
|
||||||
import { applyRateLimit } from "@/lib/rate-limit";
|
import { applyRateLimit } from "@/lib/rate-limit";
|
||||||
import { withAiQuota } from "@/lib/ai/ai-error";
|
import { withAiQuota, resolveAiConfigOrError } from "@/lib/ai/ai-error";
|
||||||
import { importFromUrl } from "@/lib/ai/features/import-url";
|
import { importFromUrl } from "@/lib/ai/features/import-url";
|
||||||
import { validateWebhookUrl } from "@/lib/validate-webhook-url";
|
import { validateWebhookUrl } from "@/lib/validate-webhook-url";
|
||||||
|
import { withUserKey } from "@/lib/ai/resolve-user-key";
|
||||||
|
|
||||||
const Schema = z.object({
|
const Schema = z.object({
|
||||||
url: z.string().url(),
|
url: z.string().url(),
|
||||||
@@ -30,11 +31,14 @@ export async function POST(req: NextRequest) {
|
|||||||
const limited = await applyRateLimit(`rl:ai:${session!.user.id}`, 10, 60);
|
const limited = await applyRateLimit(`rl:ai:${session!.user.id}`, 10, 60);
|
||||||
if (limited) return limited;
|
if (limited) return limited;
|
||||||
|
|
||||||
|
const configResult = await resolveAiConfigOrError(() =>
|
||||||
|
withUserKey(session!.user.id, { provider: parsed.data.provider, model: parsed.data.model })
|
||||||
|
);
|
||||||
|
if (!configResult.ok) return configResult.response;
|
||||||
|
const aiConfig = configResult.data;
|
||||||
|
|
||||||
const result = await withAiQuota(session!.user.id, session!.user.tier as "free" | "pro", () =>
|
const result = await withAiQuota(session!.user.id, session!.user.tier as "free" | "pro", () =>
|
||||||
importFromUrl(parsed.data.url, {
|
importFromUrl(parsed.data.url, aiConfig), { skipQuota: aiConfig.isByok }
|
||||||
provider: parsed.data.provider,
|
|
||||||
model: parsed.data.model,
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export async function POST(req: NextRequest) {
|
|||||||
},
|
},
|
||||||
{ ...config, userContext: privateBio ?? undefined },
|
{ ...config, userContext: privateBio ?? undefined },
|
||||||
locale
|
locale
|
||||||
)
|
), { skipQuota: config.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
const plan = result.data;
|
const plan = result.data;
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export async function POST(req: NextRequest, { params }: Params) {
|
|||||||
parsed.data.count,
|
parsed.data.count,
|
||||||
{ ...aiConfig, userContext: privateBio ?? undefined },
|
{ ...aiConfig, userContext: privateBio ?? undefined },
|
||||||
(session!.user as { locale?: string }).locale ?? "en"
|
(session!.user as { locale?: string }).locale ?? "en"
|
||||||
)
|
), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,8 @@ ${stepList || "None listed"}
|
|||||||
getUserPrivateBio(session!.user.id),
|
getUserPrivateBio(session!.user.id),
|
||||||
]);
|
]);
|
||||||
if (!configResult.ok) return configResult.response;
|
if (!configResult.ok) return configResult.response;
|
||||||
const model = resolveModel(configResult.data);
|
const aiConfig = configResult.data;
|
||||||
|
const model = resolveModel(aiConfig);
|
||||||
const bioContext = buildUserBioContext(privateBio);
|
const bioContext = buildUserBioContext(privateBio);
|
||||||
const locale = (session!.user as { locale?: string }).locale ?? "en";
|
const locale = (session!.user as { locale?: string }).locale ?? "en";
|
||||||
const lang = LANG[locale] ?? "English";
|
const lang = LANG[locale] ?? "English";
|
||||||
@@ -80,7 +81,7 @@ ${stepList || "None listed"}
|
|||||||
|
|
||||||
${recipeContext}${bioContext}`,
|
${recipeContext}${bioContext}`,
|
||||||
prompt: parsed.data.question,
|
prompt: parsed.data.question,
|
||||||
})
|
}), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ export async function POST(req: NextRequest) {
|
|||||||
getUserPrivateBio(session!.user.id),
|
getUserPrivateBio(session!.user.id),
|
||||||
]);
|
]);
|
||||||
if (!configResult.ok) return configResult.response;
|
if (!configResult.ok) return configResult.response;
|
||||||
const model = resolveModel(configResult.data);
|
const aiConfig = configResult.data;
|
||||||
|
const model = resolveModel(aiConfig);
|
||||||
const bioContext = buildUserBioContext(privateBio);
|
const bioContext = buildUserBioContext(privateBio);
|
||||||
|
|
||||||
const userContext = bioContext
|
const userContext = bioContext
|
||||||
@@ -62,7 +63,7 @@ export async function POST(req: NextRequest) {
|
|||||||
schema: IdeasSchema,
|
schema: IdeasSchema,
|
||||||
system: `Respond in ${lang}.`,
|
system: `Respond in ${lang}.`,
|
||||||
prompt,
|
prompt,
|
||||||
})
|
}), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export async function POST(req: NextRequest) {
|
|||||||
recipe.baseServings,
|
recipe.baseServings,
|
||||||
aiConfig,
|
aiConfig,
|
||||||
(session!.user as { locale?: string }).locale ?? "en"
|
(session!.user as { locale?: string }).locale ?? "en"
|
||||||
)
|
), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { withAiQuota, resolveAiConfigOrError } from "@/lib/ai/ai-error";
|
|||||||
import { applyRateLimit } from "@/lib/rate-limit";
|
import { applyRateLimit } from "@/lib/rate-limit";
|
||||||
import { getDefaultProviderWithKey } from "@/lib/ai/resolve-user-key";
|
import { getDefaultProviderWithKey } from "@/lib/ai/resolve-user-key";
|
||||||
import { substituteIngredient } from "@/lib/ai/features/substitute-ingredient";
|
import { substituteIngredient } from "@/lib/ai/features/substitute-ingredient";
|
||||||
|
import type { AiConfig } from "@/lib/ai/factory";
|
||||||
|
|
||||||
const Schema = z.object({
|
const Schema = z.object({
|
||||||
ingredient: z.string().min(1).max(200),
|
ingredient: z.string().min(1).max(200),
|
||||||
@@ -28,7 +29,7 @@ export async function POST(req: NextRequest) {
|
|||||||
? `recipe "${parsed.data.recipeTitle}"`
|
? `recipe "${parsed.data.recipeTitle}"`
|
||||||
: "a general recipe";
|
: "a general recipe";
|
||||||
|
|
||||||
let aiConfig;
|
let aiConfig: AiConfig;
|
||||||
if (parsed.data.provider) {
|
if (parsed.data.provider) {
|
||||||
aiConfig = { provider: parsed.data.provider, model: parsed.data.model };
|
aiConfig = { provider: parsed.data.provider, model: parsed.data.model };
|
||||||
} else {
|
} else {
|
||||||
@@ -40,7 +41,8 @@ export async function POST(req: NextRequest) {
|
|||||||
const locale = (session!.user as { locale?: string }).locale ?? "en";
|
const locale = (session!.user as { locale?: string }).locale ?? "en";
|
||||||
|
|
||||||
const result = await withAiQuota(session!.user.id, session!.user.tier as "free" | "pro", () =>
|
const result = await withAiQuota(session!.user.id, session!.user.tier as "free" | "pro", () =>
|
||||||
substituteIngredient(parsed.data.ingredient, context, aiConfig, locale)
|
substituteIngredient(parsed.data.ingredient, context, aiConfig, locale),
|
||||||
|
{ skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,9 @@ import { z } from "zod";
|
|||||||
import { and, eq } from "@epicure/db";
|
import { and, eq } from "@epicure/db";
|
||||||
import { db, recipes, recipeIngredients, recipeSteps } from "@epicure/db";
|
import { db, recipes, recipeIngredients, recipeSteps } from "@epicure/db";
|
||||||
import { requireSessionOrApiKey } from "@/lib/api-auth";
|
import { requireSessionOrApiKey } from "@/lib/api-auth";
|
||||||
import { withAiQuota } from "@/lib/ai/ai-error";
|
import { withAiQuota, resolveAiConfigOrError } from "@/lib/ai/ai-error";
|
||||||
import { translateRecipe } from "@/lib/ai/features/translate-recipe";
|
import { translateRecipe } from "@/lib/ai/features/translate-recipe";
|
||||||
|
import { withUserKey } from "@/lib/ai/resolve-user-key";
|
||||||
|
|
||||||
const Schema = z.object({
|
const Schema = z.object({
|
||||||
targetLanguage: z.string().min(2).max(50),
|
targetLanguage: z.string().min(2).max(50),
|
||||||
@@ -35,6 +36,12 @@ export async function POST(req: NextRequest, { params }: Params) {
|
|||||||
return NextResponse.json({ error: "Validation error", issues: parsed.error.issues }, { status: 400 });
|
return NextResponse.json({ error: "Validation error", issues: parsed.error.issues }, { status: 400 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const configResult = await resolveAiConfigOrError(() =>
|
||||||
|
withUserKey(session!.user.id, { provider: parsed.data.provider, model: parsed.data.model })
|
||||||
|
);
|
||||||
|
if (!configResult.ok) return configResult.response;
|
||||||
|
const aiConfig = configResult.data;
|
||||||
|
|
||||||
const result = await withAiQuota(session!.user.id, session!.user.tier as "free" | "pro", () =>
|
const result = await withAiQuota(session!.user.id, session!.user.tier as "free" | "pro", () =>
|
||||||
translateRecipe(
|
translateRecipe(
|
||||||
{
|
{
|
||||||
@@ -44,8 +51,8 @@ export async function POST(req: NextRequest, { params }: Params) {
|
|||||||
steps: recipe.steps,
|
steps: recipe.steps,
|
||||||
},
|
},
|
||||||
parsed.data.targetLanguage,
|
parsed.data.targetLanguage,
|
||||||
{ provider: parsed.data.provider, model: parsed.data.model }
|
aiConfig
|
||||||
)
|
), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
const translation = result.data;
|
const translation = result.data;
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export async function POST(req: NextRequest, { params }: Params) {
|
|||||||
{ ...aiConfig, userContext: privateBio ?? undefined },
|
{ ...aiConfig, userContext: privateBio ?? undefined },
|
||||||
parsed.data.directions,
|
parsed.data.directions,
|
||||||
(session!.user as { locale?: string }).locale ?? "en"
|
(session!.user as { locale?: string }).locale ?? "en"
|
||||||
)
|
), { skipQuota: aiConfig.isByok }
|
||||||
);
|
);
|
||||||
if (!result.ok) return result.response;
|
if (!result.ok) return result.response;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { NextRequest, NextResponse } from "next/server";
|
import { NextRequest, NextResponse } from "next/server";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { requireSession } from "@/lib/api-auth";
|
import { requireSession } from "@/lib/api-auth";
|
||||||
import { createPresignedUploadUrl } from "@/lib/storage";
|
import { createPresignedUploadPost } from "@/lib/storage";
|
||||||
import { checkAndIncrementTierLimit, TierLimitError } from "@/lib/tiers";
|
import { checkAndIncrementTierLimit, TierLimitError } from "@/lib/tiers";
|
||||||
|
|
||||||
const ALLOWED_TYPES = ["image/jpeg", "image/png", "image/webp", "image/avif"] as const;
|
const ALLOWED_TYPES = ["image/jpeg", "image/png", "image/webp", "image/avif"] as const;
|
||||||
@@ -39,7 +39,7 @@ export async function POST(req: NextRequest) {
|
|||||||
|
|
||||||
const ext = contentType.split("/")[1] ?? "jpg";
|
const ext = contentType.split("/")[1] ?? "jpg";
|
||||||
const key = `user-avatars/${session!.user.id}/${crypto.randomUUID()}.${ext}`;
|
const key = `user-avatars/${session!.user.id}/${crypto.randomUUID()}.${ext}`;
|
||||||
const url = await createPresignedUploadUrl(key, contentType);
|
const { url, fields } = await createPresignedUploadPost(key, contentType, MAX_FILE_SIZE);
|
||||||
|
|
||||||
return NextResponse.json({ url, key });
|
return NextResponse.json({ url, fields, key });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { NextRequest, NextResponse } from "next/server";
|
import { NextRequest, NextResponse } from "next/server";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { requireSession } from "@/lib/api-auth";
|
import { requireSession } from "@/lib/api-auth";
|
||||||
import { createPresignedUploadUrl } from "@/lib/storage";
|
import { createPresignedUploadPost } from "@/lib/storage";
|
||||||
import { db, recipes, eq, and } from "@epicure/db";
|
import { db, recipes, eq, and } from "@epicure/db";
|
||||||
import { checkAndIncrementTierLimit, TierLimitError } from "@/lib/tiers";
|
import { checkAndIncrementTierLimit, TierLimitError } from "@/lib/tiers";
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ export async function POST(req: NextRequest) {
|
|||||||
const ext = contentType.split("/")[1] ?? "jpg";
|
const ext = contentType.split("/")[1] ?? "jpg";
|
||||||
const folder = purpose === "review" ? "reviews" : "photos";
|
const folder = purpose === "review" ? "reviews" : "photos";
|
||||||
const key = `recipes/${recipeId}/${folder}/${session!.user.id}-${crypto.randomUUID()}.${ext}`;
|
const key = `recipes/${recipeId}/${folder}/${session!.user.id}-${crypto.randomUUID()}.${ext}`;
|
||||||
const url = await createPresignedUploadUrl(key, contentType);
|
const { url, fields } = await createPresignedUploadPost(key, contentType, MAX_FILE_SIZE);
|
||||||
|
|
||||||
return NextResponse.json({ url, key });
|
return NextResponse.json({ url, fields, key });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
import { NextRequest, NextResponse } from "next/server";
|
import { NextRequest, NextResponse } from "next/server";
|
||||||
import { db, users, userBlocks, userFollows, eq, and, or } from "@epicure/db";
|
import { db, users, userBlocks, userFollows, eq, and, or } from "@epicure/db";
|
||||||
import { requireSession } from "@/lib/api-auth";
|
import { requireSession } from "@/lib/api-auth";
|
||||||
|
import { applyRateLimit } from "@/lib/rate-limit";
|
||||||
|
|
||||||
type Params = { params: Promise<{ username: string }> };
|
type Params = { params: Promise<{ username: string }> };
|
||||||
|
|
||||||
export async function POST(_req: NextRequest, { params }: Params) {
|
export async function POST(_req: NextRequest, { params }: Params) {
|
||||||
const { session, response } = await requireSession();
|
const { session, response } = await requireSession();
|
||||||
if (response) return response;
|
if (response) return response;
|
||||||
|
|
||||||
|
const limited = await applyRateLimit(`rl:block:${session!.user.id}`, 30, 60);
|
||||||
|
if (limited) return limited;
|
||||||
|
|
||||||
const { username } = await params;
|
const { username } = await params;
|
||||||
|
|
||||||
const target = await db.query.users.findFirst({ where: eq(users.username, username) });
|
const target = await db.query.users.findFirst({ where: eq(users.username, username) });
|
||||||
@@ -31,6 +36,10 @@ export async function POST(_req: NextRequest, { params }: Params) {
|
|||||||
export async function DELETE(_req: NextRequest, { params }: Params) {
|
export async function DELETE(_req: NextRequest, { params }: Params) {
|
||||||
const { session, response } = await requireSession();
|
const { session, response } = await requireSession();
|
||||||
if (response) return response;
|
if (response) return response;
|
||||||
|
|
||||||
|
const limited = await applyRateLimit(`rl:block:${session!.user.id}`, 30, 60);
|
||||||
|
if (limited) return limited;
|
||||||
|
|
||||||
const { username } = await params;
|
const { username } = await params;
|
||||||
|
|
||||||
const target = await db.query.users.findFirst({ where: eq(users.username, username) });
|
const target = await db.query.users.findFirst({ where: eq(users.username, username) });
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { db, users, eq } from "@epicure/db";
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { gravatarUrl } from "@/lib/gravatar";
|
import { gravatarUrl } from "@/lib/gravatar";
|
||||||
import { USERNAME_PATTERN, isUsernameTaken } from "@/lib/username";
|
import { USERNAME_PATTERN, isUsernameTaken } from "@/lib/username";
|
||||||
|
import { isOwnedAvatarKey, getPublicUrl } from "@/lib/storage";
|
||||||
|
|
||||||
const PatchSchema = z.object({
|
const PatchSchema = z.object({
|
||||||
name: z.string().min(1).max(100).optional(),
|
name: z.string().min(1).max(100).optional(),
|
||||||
@@ -13,9 +14,12 @@ const PatchSchema = z.object({
|
|||||||
privateBio: z.string().max(2000).optional().nullable(),
|
privateBio: z.string().max(2000).optional().nullable(),
|
||||||
isPrivate: z.boolean().optional(),
|
isPrivate: z.boolean().optional(),
|
||||||
username: z.string().trim().toLowerCase().regex(USERNAME_PATTERN, "3-20 characters, lowercase letters, numbers, and underscores only").optional(),
|
username: z.string().trim().toLowerCase().regex(USERNAME_PATTERN, "3-20 characters, lowercase letters, numbers, and underscores only").optional(),
|
||||||
// A custom-uploaded avatar URL, or null to revert to the initials fallback
|
// The storage key returned by /api/v1/upload/avatar-presign (not a URL) —
|
||||||
// (or Gravatar, if useGravatar is on — see below).
|
// the server validates it was actually issued to this user and builds the
|
||||||
avatarUrl: z.string().url().max(2048).optional().nullable(),
|
// public URL itself, so a client can't point avatarUrl at an arbitrary or
|
||||||
|
// another user's object. `null` reverts to the initials fallback (or
|
||||||
|
// Gravatar, if useGravatar is on — see below).
|
||||||
|
avatarKey: z.string().max(500).optional().nullable(),
|
||||||
// Off by default (Settings → Profile) — Gravatar is looked up by an MD5
|
// Off by default (Settings → Profile) — Gravatar is looked up by an MD5
|
||||||
// hash of the user's email, sent to a third party.
|
// hash of the user's email, sent to a third party.
|
||||||
useGravatar: z.boolean().optional(),
|
useGravatar: z.boolean().optional(),
|
||||||
@@ -32,7 +36,7 @@ export async function PATCH(req: Request) {
|
|||||||
return NextResponse.json({ error: "Username already taken" }, { status: 409 });
|
return NextResponse.json({ error: "Username already taken" }, { status: 409 });
|
||||||
}
|
}
|
||||||
|
|
||||||
const { avatarUrl, useGravatar, ...rest } = body.data;
|
const { avatarKey, useGravatar, ...rest } = body.data;
|
||||||
const updates: Partial<typeof users.$inferInsert> = { ...rest };
|
const updates: Partial<typeof users.$inferInsert> = { ...rest };
|
||||||
|
|
||||||
// useGravatar is only ever toggled from the settings form, never alongside
|
// useGravatar is only ever toggled from the settings form, never alongside
|
||||||
@@ -45,13 +49,16 @@ export async function PATCH(req: Request) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (avatarUrl !== undefined) {
|
if (avatarKey !== undefined) {
|
||||||
if (avatarUrl === null) {
|
if (avatarKey === null) {
|
||||||
const gravatarOptedIn = useGravatar ?? (await getUseGravatar(session.user.id));
|
const gravatarOptedIn = useGravatar ?? (await getUseGravatar(session.user.id));
|
||||||
updates.avatarUrl = gravatarOptedIn ? gravatarUrl(session.user.email) : null;
|
updates.avatarUrl = gravatarOptedIn ? gravatarUrl(session.user.email) : null;
|
||||||
updates.hasCustomAvatar = false;
|
updates.hasCustomAvatar = false;
|
||||||
} else {
|
} else {
|
||||||
updates.avatarUrl = avatarUrl;
|
if (!isOwnedAvatarKey(avatarKey, session.user.id)) {
|
||||||
|
return NextResponse.json({ error: "Invalid avatar key" }, { status: 400 });
|
||||||
|
}
|
||||||
|
updates.avatarUrl = getPublicUrl(avatarKey);
|
||||||
updates.hasCustomAvatar = true;
|
updates.hasCustomAvatar = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { db, webhooks, eq } from "@epicure/db";
|
|||||||
import { requireSession } from "@/lib/api-auth";
|
import { requireSession } from "@/lib/api-auth";
|
||||||
import { validateWebhookUrl } from "@/lib/validate-webhook-url";
|
import { validateWebhookUrl } from "@/lib/validate-webhook-url";
|
||||||
import { WEBHOOK_EVENTS } from "@/lib/webhooks";
|
import { WEBHOOK_EVENTS } from "@/lib/webhooks";
|
||||||
|
import { encrypt } from "@/lib/encrypt";
|
||||||
|
|
||||||
const CreateWebhookBody = z.object({
|
const CreateWebhookBody = z.object({
|
||||||
url: z.string().min(1).max(2048),
|
url: z.string().min(1).max(2048),
|
||||||
@@ -64,7 +65,7 @@ export async function POST(req: NextRequest) {
|
|||||||
userId: session!.user.id,
|
userId: session!.user.id,
|
||||||
url: parsed.data.url,
|
url: parsed.data.url,
|
||||||
events: parsed.data.events,
|
events: parsed.data.events,
|
||||||
secret,
|
secret: encrypt(secret),
|
||||||
active: true,
|
active: true,
|
||||||
createdAt: now,
|
createdAt: now,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export default async function PublicRecipePage({ params }: Params) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Script id="recipe-jsonld" type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }} />
|
<Script id="recipe-jsonld" type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, "\\u003c") }} />
|
||||||
<div className="container mx-auto max-w-3xl px-4 py-8 space-y-8">
|
<div className="container mx-auto max-w-3xl px-4 py-8 space-y-8">
|
||||||
{/* Breadcrumb-style nav */}
|
{/* Breadcrumb-style nav */}
|
||||||
<div className="flex items-center gap-2 text-sm text-muted-foreground">
|
<div className="flex items-center gap-2 text-sm text-muted-foreground">
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { useTranslations } from "next-intl";
|
|||||||
import { Upload, X, Star } from "lucide-react";
|
import { Upload, X, Star } from "lucide-react";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { getPublicUrl } from "@/lib/storage";
|
import { getPublicUrl } from "@/lib/storage";
|
||||||
|
import { uploadToPresignedPost } from "@/lib/upload-client";
|
||||||
|
|
||||||
export type PhotoEntry = {
|
export type PhotoEntry = {
|
||||||
key: string;
|
key: string;
|
||||||
@@ -41,8 +42,9 @@ export function PhotoUploader({
|
|||||||
body: JSON.stringify({ recipeId, contentType: file.type, fileSize: file.size }),
|
body: JSON.stringify({ recipeId, contentType: file.type, fileSize: file.size }),
|
||||||
});
|
});
|
||||||
if (!res.ok) continue;
|
if (!res.ok) continue;
|
||||||
const { url, key } = await res.json() as { url: string; key: string };
|
const { url, fields, key } = await res.json() as { url: string; fields: Record<string, string>; key: string };
|
||||||
await fetch(url, { method: "PUT", body: file, headers: { "Content-Type": file.type } });
|
const uploaded = await uploadToPresignedPost(url, fields, file);
|
||||||
|
if (!uploaded) continue;
|
||||||
const isFirst = next.length === 0;
|
const isFirst = next.length === 0;
|
||||||
next = [...next, { key, isCover: isFirst, preview: URL.createObjectURL(file) }];
|
next = [...next, { key, isCover: isFirst, preview: URL.createObjectURL(file) }];
|
||||||
onChange(next);
|
onChange(next);
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { toast } from "sonner";
|
|||||||
import { Camera, Loader2, X } from "lucide-react";
|
import { Camera, Loader2, X } from "lucide-react";
|
||||||
import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
|
import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { uploadToPresignedPost } from "@/lib/upload-client";
|
||||||
|
|
||||||
export function AvatarUploader({
|
export function AvatarUploader({
|
||||||
name,
|
name,
|
||||||
@@ -37,22 +38,27 @@ export function AvatarUploader({
|
|||||||
toast.error(err.error ?? t("avatarUploadFailed"));
|
toast.error(err.error ?? t("avatarUploadFailed"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const { url } = await presignRes.json() as { url: string; key: string };
|
const { url, fields, key } = await presignRes.json() as { url: string; fields: Record<string, string>; key: string };
|
||||||
await fetch(url, { method: "PUT", body: file, headers: { "Content-Type": file.type } });
|
const uploaded = await uploadToPresignedPost(url, fields, file);
|
||||||
|
if (!uploaded) {
|
||||||
|
toast.error(t("avatarUploadFailed"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// The presigned PUT URL is already publicUrl/bucket/key with query-string
|
// Send back the storage key we were issued, not a client-derived URL —
|
||||||
// signing params appended — strip those to get the plain public GET URL.
|
// the server validates the key belongs to us and builds the public URL
|
||||||
|
// itself, so a client can't set avatarUrl to an arbitrary/unowned target.
|
||||||
const saveRes = await fetch("/api/v1/users/me", {
|
const saveRes = await fetch("/api/v1/users/me", {
|
||||||
method: "PATCH",
|
method: "PATCH",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify({ avatarUrl: url.split("?")[0] }),
|
body: JSON.stringify({ avatarKey: key }),
|
||||||
});
|
});
|
||||||
if (!saveRes.ok) {
|
if (!saveRes.ok) {
|
||||||
toast.error(t("avatarUploadFailed"));
|
toast.error(t("avatarUploadFailed"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const saved = await saveRes.json() as { avatarUrl?: string };
|
const saved = await saveRes.json() as { avatarUrl?: string };
|
||||||
onChange(saved.avatarUrl ?? url.split("?")[0]!, true);
|
onChange(saved.avatarUrl ?? null, true);
|
||||||
toast.success(t("avatarUploadSuccess"));
|
toast.success(t("avatarUploadSuccess"));
|
||||||
} finally {
|
} finally {
|
||||||
setUploading(false);
|
setUploading(false);
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export function SecurityForm({
|
|||||||
const { error } = await authClient.changePassword({
|
const { error } = await authClient.changePassword({
|
||||||
currentPassword,
|
currentPassword,
|
||||||
newPassword,
|
newPassword,
|
||||||
revokeOtherSessions: false,
|
revokeOtherSessions: true,
|
||||||
});
|
});
|
||||||
if (error) {
|
if (error) {
|
||||||
toast.error(error.message ?? t("passwordChangeFailed"));
|
toast.error(error.message ?? t("passwordChangeFailed"));
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { Button } from "@/components/ui/button";
|
|||||||
import { Textarea } from "@/components/ui/textarea";
|
import { Textarea } from "@/components/ui/textarea";
|
||||||
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
||||||
import { getPublicUrl } from "@/lib/storage";
|
import { getPublicUrl } from "@/lib/storage";
|
||||||
|
import { uploadToPresignedPost } from "@/lib/upload-client";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
type Review = {
|
type Review = {
|
||||||
@@ -93,8 +94,12 @@ export function CookedItReview({
|
|||||||
toast.error(t("reviewPhotoFailed"));
|
toast.error(t("reviewPhotoFailed"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const { url, key } = (await res.json()) as { url: string; key: string };
|
const { url, fields, key } = (await res.json()) as { url: string; fields: Record<string, string>; key: string };
|
||||||
await fetch(url, { method: "PUT", body: file, headers: { "Content-Type": file.type } });
|
const uploaded = await uploadToPresignedPost(url, fields, file);
|
||||||
|
if (!uploaded) {
|
||||||
|
toast.error(t("reviewPhotoFailed"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
setPhotoKey(key);
|
setPhotoKey(key);
|
||||||
setPreview(URL.createObjectURL(file));
|
setPreview(URL.createObjectURL(file));
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -47,26 +47,33 @@ type QuotaResult<T> = { ok: true; data: T } | { ok: false; response: NextRespons
|
|||||||
* throws — so a provider outage never silently burns a user's quota.
|
* throws — so a provider outage never silently burns a user's quota.
|
||||||
* Centralizes the TierLimitError → 403 and AI-failure → clean-JSON mapping
|
* Centralizes the TierLimitError → 403 and AI-failure → clean-JSON mapping
|
||||||
* that every AI route needs instead of repeating try/catch per route.
|
* that every AI route needs instead of repeating try/catch per route.
|
||||||
|
*
|
||||||
|
* Pass `skipQuota: true` when the resolved AiConfig used the caller's own
|
||||||
|
* BYOK key (config.isByok) — it's their own credentials/billing, so it
|
||||||
|
* shouldn't count against the platform's monthly AI-call limit.
|
||||||
*/
|
*/
|
||||||
export async function withAiQuota<T>(
|
export async function withAiQuota<T>(
|
||||||
userId: string,
|
userId: string,
|
||||||
tier: "free" | "pro",
|
tier: "free" | "pro",
|
||||||
fn: () => Promise<T>
|
fn: () => Promise<T>,
|
||||||
|
opts?: { skipQuota?: boolean }
|
||||||
): Promise<QuotaResult<T>> {
|
): Promise<QuotaResult<T>> {
|
||||||
try {
|
if (!opts?.skipQuota) {
|
||||||
await checkAndIncrementTierLimit(userId, tier, "aiCall");
|
try {
|
||||||
} catch (err) {
|
await checkAndIncrementTierLimit(userId, tier, "aiCall");
|
||||||
if (err instanceof TierLimitError) {
|
} catch (err) {
|
||||||
return { ok: false, response: NextResponse.json({ error: "AI call limit reached for your tier" }, { status: 403 }) };
|
if (err instanceof TierLimitError) {
|
||||||
|
return { ok: false, response: NextResponse.json({ error: "AI call limit reached for your tier" }, { status: 403 }) };
|
||||||
|
}
|
||||||
|
throw err;
|
||||||
}
|
}
|
||||||
throw err;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const data = await fn();
|
const data = await fn();
|
||||||
return { ok: true, data };
|
return { ok: true, data };
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
await refundAiCall(userId);
|
if (!opts?.skipQuota) await refundAiCall(userId);
|
||||||
return { ok: false, response: aiErrorResponse(err) };
|
return { ok: false, response: aiErrorResponse(err) };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ export type AiConfig = {
|
|||||||
provider?: AiProvider;
|
provider?: AiProvider;
|
||||||
model?: string;
|
model?: string;
|
||||||
apiKey?: string;
|
apiKey?: string;
|
||||||
|
/** True when apiKey is the caller's own BYOK key — their own credentials
|
||||||
|
* and billing, so platform AI-call quota shouldn't be charged for it. */
|
||||||
|
isByok?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function resolveModel(config: AiConfig = {}): LanguageModel {
|
export function resolveModel(config: AiConfig = {}): LanguageModel {
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export async function withUserKey(userId: string, config: AiConfig): Promise<AiC
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const apiKey = decrypt(row.encryptedKey);
|
const apiKey = decrypt(row.encryptedKey);
|
||||||
return { ...config, apiKey };
|
return { ...config, apiKey, isByok: true };
|
||||||
} catch {
|
} catch {
|
||||||
throw new ByokDecryptError(provider);
|
throw new ByokDecryptError(provider);
|
||||||
}
|
}
|
||||||
@@ -81,7 +81,7 @@ export async function getDefaultProviderWithKey(userId: string, useCase?: ModelU
|
|||||||
const row = keys.find((k) => k.provider === p);
|
const row = keys.find((k) => k.provider === p);
|
||||||
if (row) {
|
if (row) {
|
||||||
try {
|
try {
|
||||||
return { provider: p, apiKey: decrypt(row.encryptedKey) };
|
return { provider: p, apiKey: decrypt(row.encryptedKey), isByok: true };
|
||||||
} catch {
|
} catch {
|
||||||
throw new ByokDecryptError(p);
|
throw new ByokDecryptError(p);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,10 +6,32 @@ import { sendEmail, verifyEmailHtml, resetPasswordHtml, welcomeHtml } from "@/li
|
|||||||
import { isSignupsDisabled } from "@/lib/site-settings";
|
import { isSignupsDisabled } from "@/lib/site-settings";
|
||||||
import { findValidInvite, consumeInvite, INVITE_COOKIE } from "@/lib/invites";
|
import { findValidInvite, consumeInvite, INVITE_COOKIE } from "@/lib/invites";
|
||||||
import { generateUniqueUsername } from "@/lib/username";
|
import { generateUniqueUsername } from "@/lib/username";
|
||||||
|
import { getRedis } from "@/lib/redis";
|
||||||
|
|
||||||
|
// Without this, better-auth's own rate limiter (sign-in/sign-up/2FA/password
|
||||||
|
// reset throttles below) defaults to an in-process Map — fine for a single
|
||||||
|
// instance, but each replica gets its own independent counter the moment
|
||||||
|
// this app is ever scaled horizontally, multiplying the effective limit by
|
||||||
|
// the instance count. Backing it with the same Redis used elsewhere
|
||||||
|
// (lib/rate-limit.ts) makes the limit actually shared and enforceable.
|
||||||
|
const redisSecondaryStorage = {
|
||||||
|
async get(key: string) {
|
||||||
|
return getRedis().get(key);
|
||||||
|
},
|
||||||
|
async set(key: string, value: string, ttl?: number) {
|
||||||
|
if (ttl) await getRedis().set(key, value, "EX", ttl);
|
||||||
|
else await getRedis().set(key, value);
|
||||||
|
},
|
||||||
|
async delete(key: string) {
|
||||||
|
await getRedis().del(key);
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
export const auth = betterAuth({
|
export const auth = betterAuth({
|
||||||
trustedOrigins: [process.env["BETTER_AUTH_URL"] ?? "http://localhost:3000"],
|
trustedOrigins: [process.env["BETTER_AUTH_URL"] ?? "http://localhost:3000"],
|
||||||
|
|
||||||
|
secondaryStorage: redisSecondaryStorage,
|
||||||
|
|
||||||
// Explicit rather than relying on the isProduction default so dev/staging
|
// Explicit rather than relying on the isProduction default so dev/staging
|
||||||
// are protected too. Sign-in/sign-up/change-password/change-email get a
|
// are protected too. Sign-in/sign-up/change-password/change-email get a
|
||||||
// strict built-in 3-req/10s-per-IP rule (better-auth's default special
|
// strict built-in 3-req/10s-per-IP rule (better-auth's default special
|
||||||
@@ -34,6 +56,9 @@ export const auth = betterAuth({
|
|||||||
emailAndPassword: {
|
emailAndPassword: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
requireEmailVerification: true,
|
requireEmailVerification: true,
|
||||||
|
// A stolen session should not survive the account owner noticing and
|
||||||
|
// resetting their password.
|
||||||
|
revokeSessionsOnPasswordReset: true,
|
||||||
sendResetPassword: async ({ user, url }) => {
|
sendResetPassword: async ({ user, url }) => {
|
||||||
await sendEmail({
|
await sendEmail({
|
||||||
to: user.email,
|
to: user.email,
|
||||||
@@ -100,6 +125,12 @@ export const auth = betterAuth({
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
maxAge: 60 * 5,
|
maxAge: 60 * 5,
|
||||||
},
|
},
|
||||||
|
// secondaryStorage above is only meant to back the rate limiter — without
|
||||||
|
// this, better-auth would also move session storage itself into Redis
|
||||||
|
// (see internal-adapter.mjs's `storeInDb` checks), which is an unrelated,
|
||||||
|
// much bigger behavior change (session data no longer queryable from the
|
||||||
|
// `sessions` table at all) that nothing else in this app expects.
|
||||||
|
storeSessionInDatabase: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
databaseHooks: {
|
databaseHooks: {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// Mirrors CHANGELOG.md at the repo root — update both together.
|
// Mirrors CHANGELOG.md at the repo root — update both together.
|
||||||
export const APP_VERSION = "0.31.0";
|
export const APP_VERSION = "0.32.0";
|
||||||
|
|
||||||
export type ChangelogEntry = {
|
export type ChangelogEntry = {
|
||||||
version: string;
|
version: string;
|
||||||
@@ -11,6 +11,22 @@ export type ChangelogEntry = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const CHANGELOG: ChangelogEntry[] = [
|
export const CHANGELOG: ChangelogEntry[] = [
|
||||||
|
{
|
||||||
|
version: "0.32.0",
|
||||||
|
date: "2026-07-14 17:10",
|
||||||
|
security: [
|
||||||
|
"Fixed a stored-XSS hole in public recipe pages' embedded structured data, and tightened the production Content-Security-Policy so script injection like it can't execute even if a similar bug slips in again.",
|
||||||
|
"Avatar photos now require proof you actually own the upload — previously any URL was accepted, including another user's uploaded photo key.",
|
||||||
|
"Changing your password now signs out every other active session, and so does resetting a forgotten password.",
|
||||||
|
"Fixed a rate-limit bypass on public share-link throttling caused by trusting a spoofable header.",
|
||||||
|
"Webhook signing secrets are now encrypted at rest, matching how API keys and other secrets are already stored.",
|
||||||
|
"Login/2FA/password-reset rate limiting now shares Redis instead of quietly resetting per server instance.",
|
||||||
|
"Photo/avatar uploads are now size-capped by the storage server itself, not just a number the client could lie about.",
|
||||||
|
"A private recipe's title could leak via its page's browser-tab title to any signed-in user who had the link — fixed to respect the same visibility rules as the page itself.",
|
||||||
|
"Blocking/unblocking a user is now rate-limited, matching follow/unfollow.",
|
||||||
|
"AI calls made with your own API key (Settings → AI Keys) no longer count against your monthly AI-call limit.",
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
version: "0.31.0",
|
version: "0.31.0",
|
||||||
date: "2026-07-14 16:35",
|
date: "2026-07-14 16:35",
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ export function generateOpenApiSpec(): object {
|
|||||||
name: z.string().min(1).max(100).optional(), locale: z.string().max(10).optional(),
|
name: z.string().min(1).max(100).optional(), locale: z.string().max(10).optional(),
|
||||||
bio: z.string().max(500).nullable().optional(), privateBio: z.string().max(2000).nullable().optional(),
|
bio: z.string().max(500).nullable().optional(), privateBio: z.string().max(2000).nullable().optional(),
|
||||||
isPrivate: z.boolean().optional(), username: z.string().regex(USERNAME_PATTERN, "3-20 characters, lowercase letters, numbers, and underscores only").optional(),
|
isPrivate: z.boolean().optional(), username: z.string().regex(USERNAME_PATTERN, "3-20 characters, lowercase letters, numbers, and underscores only").optional(),
|
||||||
avatarUrl: z.string().url().max(2048).nullable().optional(), useGravatar: z.boolean().optional(),
|
avatarKey: z.string().max(500).nullable().optional().describe("Storage key returned by POST /upload/avatar-presign, not a URL — validated server-side against the caller's own uploads."), useGravatar: z.boolean().optional(),
|
||||||
}));
|
}));
|
||||||
const ModelPrefsRef = registry.register("ModelPrefs", z.object({
|
const ModelPrefsRef = registry.register("ModelPrefs", z.object({
|
||||||
id: z.string(), userId: z.string(),
|
id: z.string(), userId: z.string(),
|
||||||
@@ -450,7 +450,7 @@ export function generateOpenApiSpec(): object {
|
|||||||
recipeCount: z.number().int(), isFollowing: z.boolean(),
|
recipeCount: z.number().int(), isFollowing: z.boolean(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
registry.registerPath({ method: "patch", path: "/api/v1/users/me", summary: "Update your profile", description: "Toggling useGravatar or clearing avatarUrl re-derives the effective avatar (Gravatar or initials fallback).", security, request: { body: { content: { "application/json": { schema: UpdateMeRef } }, required: true } }, responses: { 200: { description: "Updated", content: { "application/json": { schema: z.object({ ok: z.boolean(), avatarUrl: z.string().nullable() }) } } }, 400: { description: "Validation error", content: { "application/json": { schema: ApiErrorRef } } }, 401: { description: "Unauthorized", content: { "application/json": { schema: ApiErrorRef } } }, 409: { description: "Username already taken", content: { "application/json": { schema: ApiErrorRef } } } } });
|
registry.registerPath({ method: "patch", path: "/api/v1/users/me", summary: "Update your profile", description: "Toggling useGravatar or clearing avatarKey re-derives the effective avatar (Gravatar or initials fallback).", security, request: { body: { content: { "application/json": { schema: UpdateMeRef } }, required: true } }, responses: { 200: { description: "Updated", content: { "application/json": { schema: z.object({ ok: z.boolean(), avatarUrl: z.string().nullable() }) } } }, 400: { description: "Validation error, or avatarKey wasn't issued to you by avatar-presign", content: { "application/json": { schema: ApiErrorRef } } }, 401: { description: "Unauthorized", content: { "application/json": { schema: ApiErrorRef } } }, 409: { description: "Username already taken", content: { "application/json": { schema: ApiErrorRef } } } } });
|
||||||
registry.registerPath({ method: "get", path: "/api/v1/users/me/export", summary: "Export all of your account data as a JSON file", description: "Rate-limited: 3 req/hour. Includes profile, recipes, social graph, collections, meal plans, pantry, shopping lists, webhooks, API keys, messages, and more.", security, responses: { 200: { description: "Downloadable JSON export", content: { "application/json": { schema: z.record(z.string(), z.unknown()) } } }, 401: { description: "Unauthorized", content: { "application/json": { schema: ApiErrorRef } } }, 429: { description: "Rate limited", content: { "application/json": { schema: ApiErrorRef } } } } });
|
registry.registerPath({ method: "get", path: "/api/v1/users/me/export", summary: "Export all of your account data as a JSON file", description: "Rate-limited: 3 req/hour. Includes profile, recipes, social graph, collections, meal plans, pantry, shopping lists, webhooks, API keys, messages, and more.", security, responses: { 200: { description: "Downloadable JSON export", content: { "application/json": { schema: z.record(z.string(), z.unknown()) } } }, 401: { description: "Unauthorized", content: { "application/json": { schema: ApiErrorRef } } }, 429: { description: "Rate limited", content: { "application/json": { schema: ApiErrorRef } } } } });
|
||||||
registry.registerPath({ method: "get", path: "/api/v1/users/me/model-prefs", summary: "Get your AI model provider/model preferences", security, responses: { 200: { description: "Preferences or null", content: { "application/json": { schema: ModelPrefsRef.nullable() } } }, 401: { description: "Unauthorized", content: { "application/json": { schema: ApiErrorRef } } } } });
|
registry.registerPath({ method: "get", path: "/api/v1/users/me/model-prefs", summary: "Get your AI model provider/model preferences", security, responses: { 200: { description: "Preferences or null", content: { "application/json": { schema: ModelPrefsRef.nullable() } } }, 401: { description: "Unauthorized", content: { "application/json": { schema: ApiErrorRef } } } } });
|
||||||
registry.registerPath({ method: "put", path: "/api/v1/users/me/model-prefs", summary: "Set your AI model provider/model preferences", security, request: { body: { content: { "application/json": { schema: UpdateModelPrefsRef } }, required: true } }, responses: { 200: { description: "Saved", content: { "application/json": { schema: z.object({ ok: z.boolean() }) } } }, 400: { description: "Invalid request", content: { "application/json": { schema: ApiErrorRef } } }, 401: { description: "Unauthorized", content: { "application/json": { schema: ApiErrorRef } } } } });
|
registry.registerPath({ method: "put", path: "/api/v1/users/me/model-prefs", summary: "Set your AI model provider/model preferences", security, request: { body: { content: { "application/json": { schema: UpdateModelPrefsRef } }, required: true } }, responses: { 200: { description: "Saved", content: { "application/json": { schema: z.object({ ok: z.boolean() }) } } }, 400: { description: "Invalid request", content: { "application/json": { schema: ApiErrorRef } } }, 401: { description: "Unauthorized", content: { "application/json": { schema: ApiErrorRef } } } } });
|
||||||
@@ -620,10 +620,14 @@ export function generateOpenApiSpec(): object {
|
|||||||
contentType: z.enum(["image/jpeg", "image/png", "image/webp", "image/avif"]),
|
contentType: z.enum(["image/jpeg", "image/png", "image/webp", "image/avif"]),
|
||||||
fileSize: z.number().int().positive().max(5 * 1024 * 1024, "File exceeds 5MB limit"),
|
fileSize: z.number().int().positive().max(5 * 1024 * 1024, "File exceeds 5MB limit"),
|
||||||
}));
|
}));
|
||||||
const PresignResponseRef = registry.register("PresignResponse", z.object({ url: z.string(), key: z.string() }));
|
const PresignResponseRef = registry.register("PresignResponse", z.object({
|
||||||
|
url: z.string().describe("POST this URL as multipart/form-data — include every field below, then the file itself last."),
|
||||||
|
fields: z.record(z.string(), z.string()).describe("Form fields to include in the upload POST, including a signed content-length-range condition that the storage server enforces (the declared fileSize can't be lied about)."),
|
||||||
|
key: z.string(),
|
||||||
|
}));
|
||||||
|
|
||||||
registry.registerPath({ method: "post", path: "/api/v1/upload/presign", summary: "Get a presigned S3 URL to upload a recipe or review photo", description: "Recipe photos: recipeId must be your own recipe. Review photos: recipe must be visible to you. Charges your tier's storage quota.", security, request: { body: { content: { "application/json": { schema: PresignUploadRef } }, required: true } }, responses: { 200: { description: "Presigned URL and object key", content: { "application/json": { schema: PresignResponseRef } } }, 400: { description: "Validation error", content: { "application/json": { schema: ApiErrorRef } } }, 403: { description: "Storage limit reached for your tier", content: { "application/json": { schema: ApiErrorRef } } }, 404: { description: "Not found", content: { "application/json": { schema: ApiErrorRef } } } } });
|
registry.registerPath({ method: "post", path: "/api/v1/upload/presign", summary: "Get a presigned S3 upload POST (URL + form fields) for a recipe or review photo", description: "Recipe photos: recipeId must be your own recipe. Review photos: recipe must be visible to you. Charges your tier's storage quota.", security, request: { body: { content: { "application/json": { schema: PresignUploadRef } }, required: true } }, responses: { 200: { description: "Presigned POST", content: { "application/json": { schema: PresignResponseRef } } }, 400: { description: "Validation error", content: { "application/json": { schema: ApiErrorRef } } }, 403: { description: "Storage limit reached for your tier", content: { "application/json": { schema: ApiErrorRef } } }, 404: { description: "Not found", content: { "application/json": { schema: ApiErrorRef } } } } });
|
||||||
registry.registerPath({ method: "post", path: "/api/v1/upload/avatar-presign", summary: "Get a presigned S3 URL to upload your avatar photo", description: "Charges your tier's storage quota.", security, request: { body: { content: { "application/json": { schema: PresignAvatarUploadRef } }, required: true } }, responses: { 200: { description: "Presigned URL and object key", content: { "application/json": { schema: PresignResponseRef } } }, 400: { description: "Validation error", content: { "application/json": { schema: ApiErrorRef } } }, 403: { description: "Storage limit reached for your tier", content: { "application/json": { schema: ApiErrorRef } } } } });
|
registry.registerPath({ method: "post", path: "/api/v1/upload/avatar-presign", summary: "Get a presigned S3 upload POST (URL + form fields) for your avatar photo", description: "Charges your tier's storage quota.", security, request: { body: { content: { "application/json": { schema: PresignAvatarUploadRef } }, required: true } }, responses: { 200: { description: "Presigned POST", content: { "application/json": { schema: PresignResponseRef } } }, 400: { description: "Validation error", content: { "application/json": { schema: ApiErrorRef } } }, 403: { description: "Storage limit reached for your tier", content: { "application/json": { schema: ApiErrorRef } } } } });
|
||||||
|
|
||||||
// --- Push notifications ---
|
// --- Push notifications ---
|
||||||
const PushSubscribeRef = registry.register("PushSubscribe", z.object({
|
const PushSubscribeRef = registry.register("PushSubscribe", z.object({
|
||||||
|
|||||||
+32
-5
@@ -1,5 +1,5 @@
|
|||||||
import { S3Client, PutObjectCommand, DeleteObjectCommand } from "@aws-sdk/client-s3";
|
import { S3Client, DeleteObjectCommand } from "@aws-sdk/client-s3";
|
||||||
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
import { createPresignedPost } from "@aws-sdk/s3-presigned-post";
|
||||||
|
|
||||||
const bucket = process.env["STORAGE_BUCKET"] || "epicure-uploads";
|
const bucket = process.env["STORAGE_BUCKET"] || "epicure-uploads";
|
||||||
const endpoint = process.env["STORAGE_ENDPOINT"] || "http://localhost:9000";
|
const endpoint = process.env["STORAGE_ENDPOINT"] || "http://localhost:9000";
|
||||||
@@ -32,9 +32,31 @@ const presignS3 = new S3Client({
|
|||||||
credentials,
|
credentials,
|
||||||
});
|
});
|
||||||
|
|
||||||
export async function createPresignedUploadUrl(key: string, contentType: string): Promise<string> {
|
/**
|
||||||
const command = new PutObjectCommand({ Bucket: bucket, Key: key, ContentType: contentType });
|
* A presigned PUT URL only signs Bucket/Key/ContentType — nothing binds the
|
||||||
return getSignedUrl(presignS3, command, { expiresIn: 300 });
|
* actual request body size to what the caller declared when it asked for the
|
||||||
|
* URL (and was charged storage-tier quota for), so a client could declare
|
||||||
|
* 1 byte and then PUT an arbitrarily large object. S3/MinIO's POST-policy
|
||||||
|
* upload flow is the fix: `content-length-range` is a *signed* condition,
|
||||||
|
* enforced by the storage server itself when it receives the upload — a
|
||||||
|
* mismatched Content-Length is rejected before the bytes are ever accepted,
|
||||||
|
* not just checked against something the client also controls.
|
||||||
|
*/
|
||||||
|
export async function createPresignedUploadPost(
|
||||||
|
key: string,
|
||||||
|
contentType: string,
|
||||||
|
maxBytes: number
|
||||||
|
): Promise<{ url: string; fields: Record<string, string> }> {
|
||||||
|
return createPresignedPost(presignS3, {
|
||||||
|
Bucket: bucket,
|
||||||
|
Key: key,
|
||||||
|
Conditions: [
|
||||||
|
["content-length-range", 0, maxBytes],
|
||||||
|
{ "Content-Type": contentType },
|
||||||
|
],
|
||||||
|
Fields: { "Content-Type": contentType },
|
||||||
|
Expires: 300,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function deleteObject(key: string): Promise<void> {
|
export async function deleteObject(key: string): Promise<void> {
|
||||||
@@ -60,3 +82,8 @@ export function isOwnedRecipePhotoKey(key: string, recipeId: string, userId: str
|
|||||||
export function isOwnedReviewPhotoKey(key: string, recipeId: string, userId: string): boolean {
|
export function isOwnedReviewPhotoKey(key: string, recipeId: string, userId: string): boolean {
|
||||||
return key.startsWith(`recipes/${recipeId}/reviews/${userId}-`);
|
return key.startsWith(`recipes/${recipeId}/reviews/${userId}-`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Same rationale as isOwnedRecipePhotoKey, for the avatar-presign key prefix. */
|
||||||
|
export function isOwnedAvatarKey(key: string, userId: string): boolean {
|
||||||
|
return key.startsWith(`user-avatars/${userId}/`);
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
/** Uploads a file to an S3/MinIO presigned POST URL (see lib/storage.ts's
|
||||||
|
* createPresignedUploadPost) — unlike a presigned PUT, the storage server
|
||||||
|
* itself rejects a mismatched size via the signed content-length-range
|
||||||
|
* condition, so this can't be used to upload past the declared limit. */
|
||||||
|
export async function uploadToPresignedPost(
|
||||||
|
url: string,
|
||||||
|
fields: Record<string, string>,
|
||||||
|
file: File
|
||||||
|
): Promise<boolean> {
|
||||||
|
const formData = new FormData();
|
||||||
|
for (const [key, value] of Object.entries(fields)) formData.append(key, value);
|
||||||
|
formData.append("file", file);
|
||||||
|
const res = await fetch(url, { method: "POST", body: formData });
|
||||||
|
return res.ok;
|
||||||
|
}
|
||||||
@@ -3,6 +3,16 @@ import { db } from "@epicure/db";
|
|||||||
import { webhooks, webhookDeliveries } from "@epicure/db";
|
import { webhooks, webhookDeliveries } from "@epicure/db";
|
||||||
import { eq, and } from "@epicure/db";
|
import { eq, and } from "@epicure/db";
|
||||||
import { safeFetch } from "@/lib/validate-webhook-url";
|
import { safeFetch } from "@/lib/validate-webhook-url";
|
||||||
|
import { decrypt } from "@/lib/encrypt";
|
||||||
|
|
||||||
|
// Secrets created before encryption-at-rest was added are a bare 64-char hex
|
||||||
|
// string (crypto.randomBytes(32).toString("hex")) with no ":" separators —
|
||||||
|
// encrypt()'s output is always "iv:authTag:ciphertext". Fall back to treating
|
||||||
|
// the value as already-plaintext rather than a hard migration, since this is
|
||||||
|
// only reached with a value this app itself generated (never user input).
|
||||||
|
function decryptWebhookSecret(stored: string): string {
|
||||||
|
return stored.split(":").length === 3 ? decrypt(stored) : stored;
|
||||||
|
}
|
||||||
|
|
||||||
export const WEBHOOK_EVENTS = [
|
export const WEBHOOK_EVENTS = [
|
||||||
"recipe.created",
|
"recipe.created",
|
||||||
@@ -27,7 +37,7 @@ export async function dispatchWebhook(userId: string, event: WebhookEvent, paylo
|
|||||||
await Promise.allSettled(
|
await Promise.allSettled(
|
||||||
filtered.map(async (hook) => {
|
filtered.map(async (hook) => {
|
||||||
const body = JSON.stringify({ event, payload, timestamp: new Date().toISOString() });
|
const body = JSON.stringify({ event, payload, timestamp: new Date().toISOString() });
|
||||||
const sig = crypto.createHmac("sha256", hook.secret).update(body).digest("hex");
|
const sig = crypto.createHmac("sha256", decryptWebhookSecret(hook.secret)).update(body).digest("hex");
|
||||||
let statusCode = 0;
|
let statusCode = 0;
|
||||||
let success = false;
|
let success = false;
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -4,6 +4,13 @@ const storagePublicUrl = process.env["STORAGE_PUBLIC_URL"] || "http://localhost:
|
|||||||
const storageUrl = new URL(storagePublicUrl);
|
const storageUrl = new URL(storagePublicUrl);
|
||||||
const storageOrigin = storageUrl.origin;
|
const storageOrigin = storageUrl.origin;
|
||||||
|
|
||||||
|
// unsafe-eval is only needed by Next.js dev's HMR/Fast Refresh — production
|
||||||
|
// builds never eval(), so drop it there instead of leaving XSS payloads a
|
||||||
|
// wide-open eval sink in the deployed app.
|
||||||
|
const scriptSrc = process.env.NODE_ENV === "production"
|
||||||
|
? "script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net"
|
||||||
|
: "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net";
|
||||||
|
|
||||||
const securityHeaders = [
|
const securityHeaders = [
|
||||||
{
|
{
|
||||||
key: "X-Content-Type-Options",
|
key: "X-Content-Type-Options",
|
||||||
@@ -33,7 +40,7 @@ const securityHeaders = [
|
|||||||
key: "Content-Security-Policy",
|
key: "Content-Security-Policy",
|
||||||
value: [
|
value: [
|
||||||
"default-src 'self'",
|
"default-src 'self'",
|
||||||
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net", // unsafe-eval needed by Next.js dev; tighten in prod. jsdelivr serves the Scalar API-reference bundle on /docs.
|
scriptSrc, // jsdelivr serves the Scalar API-reference bundle on /docs.
|
||||||
"style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net",
|
"style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net",
|
||||||
`img-src 'self' data: blob: ${storageOrigin} https://www.gravatar.com`,
|
`img-src 'self' data: blob: ${storageOrigin} https://www.gravatar.com`,
|
||||||
"font-src 'self' https://cdn.jsdelivr.net data:",
|
"font-src 'self' https://cdn.jsdelivr.net data:",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@epicure/web",
|
"name": "@epicure/web",
|
||||||
"version": "0.31.0",
|
"version": "0.32.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
"@ai-sdk/anthropic": "^3.0.86",
|
"@ai-sdk/anthropic": "^3.0.86",
|
||||||
"@ai-sdk/openai": "^3.0.74",
|
"@ai-sdk/openai": "^3.0.74",
|
||||||
"@asteasolutions/zod-to-openapi": "^7.3.4",
|
"@asteasolutions/zod-to-openapi": "^7.3.4",
|
||||||
"@aws-sdk/client-s3": "^3.1075.0",
|
"@aws-sdk/client-s3": "^3.1085.0",
|
||||||
"@aws-sdk/s3-request-presigner": "^3.1075.0",
|
"@aws-sdk/s3-presigned-post": "^3.1085.0",
|
||||||
"@base-ui/react": "^1.6.0",
|
"@base-ui/react": "^1.6.0",
|
||||||
"@dnd-kit/core": "^6.3.1",
|
"@dnd-kit/core": "^6.3.1",
|
||||||
"@dnd-kit/sortable": "^10.0.0",
|
"@dnd-kit/sortable": "^10.0.0",
|
||||||
|
|||||||
+13
-1
@@ -18,9 +18,21 @@ const IP_RATE_LIMITED_PATHS = ["/r/", "/s/"];
|
|||||||
const IP_RATE_LIMIT = 60;
|
const IP_RATE_LIMIT = 60;
|
||||||
const IP_RATE_LIMIT_WINDOW_SECONDS = 60;
|
const IP_RATE_LIMIT_WINDOW_SECONDS = 60;
|
||||||
|
|
||||||
|
// Epicure sits behind exactly one reverse proxy (Traefik — see traefik/epicure.yml).
|
||||||
|
// Each hop *appends* the address it saw to X-Forwarded-For, so with a single
|
||||||
|
// trusted hop in front of us, the rightmost entry is the address Traefik itself
|
||||||
|
// observed — i.e. the real client — while anything to its left (including the
|
||||||
|
// entire header, on a direct request with no proxy at all) is attacker-supplied
|
||||||
|
// and must not be trusted. Taking the leftmost entry, as before, let a client
|
||||||
|
// set an arbitrary X-Forwarded-For and get a fresh rate-limit bucket on every
|
||||||
|
// request. If another reverse proxy is ever added in front of Traefik, this
|
||||||
|
// needs to pop one more entry per added hop.
|
||||||
function getClientIp(request: NextRequest): string {
|
function getClientIp(request: NextRequest): string {
|
||||||
const forwardedFor = request.headers.get("x-forwarded-for");
|
const forwardedFor = request.headers.get("x-forwarded-for");
|
||||||
if (forwardedFor) return forwardedFor.split(",")[0]!.trim();
|
if (forwardedFor) {
|
||||||
|
const parts = forwardedFor.split(",");
|
||||||
|
return parts[parts.length - 1]!.trim();
|
||||||
|
}
|
||||||
return request.headers.get("x-real-ip") ?? "unknown";
|
return request.headers.get("x-real-ip") ?? "unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "epicure",
|
"name": "epicure",
|
||||||
"version": "0.31.0",
|
"version": "0.32.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "pnpm --filter web dev",
|
"dev": "pnpm --filter web dev",
|
||||||
|
|||||||
Generated
+209
-330
@@ -24,11 +24,11 @@ importers:
|
|||||||
specifier: ^7.3.4
|
specifier: ^7.3.4
|
||||||
version: 7.3.4(zod@3.25.76)
|
version: 7.3.4(zod@3.25.76)
|
||||||
'@aws-sdk/client-s3':
|
'@aws-sdk/client-s3':
|
||||||
specifier: ^3.1075.0
|
specifier: ^3.1085.0
|
||||||
version: 3.1075.0
|
version: 3.1085.0
|
||||||
'@aws-sdk/s3-request-presigner':
|
'@aws-sdk/s3-presigned-post':
|
||||||
specifier: ^3.1075.0
|
specifier: ^3.1085.0
|
||||||
version: 3.1075.0
|
version: 3.1085.0
|
||||||
'@base-ui/react':
|
'@base-ui/react':
|
||||||
specifier: ^1.6.0
|
specifier: ^1.6.0
|
||||||
version: 1.6.0(@types/react@19.2.17)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
version: 1.6.0(@types/react@19.2.17)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
@@ -257,111 +257,80 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
zod: ^3.20.2
|
zod: ^3.20.2
|
||||||
|
|
||||||
'@aws-crypto/crc32@5.2.0':
|
'@aws-sdk/checksums@3.1000.16':
|
||||||
resolution: {integrity: sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==}
|
resolution: {integrity: sha512-EKnvkXSmz3IpA99tCNuI+dLFXyZyClSm8zns9sB/elvkU+MTuomAs6toJMPMBf98/fICG/urXDkzGz0/c3yyAQ==}
|
||||||
engines: {node: '>=16.0.0'}
|
|
||||||
|
|
||||||
'@aws-crypto/crc32c@5.2.0':
|
|
||||||
resolution: {integrity: sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==}
|
|
||||||
|
|
||||||
'@aws-crypto/sha1-browser@5.2.0':
|
|
||||||
resolution: {integrity: sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==}
|
|
||||||
|
|
||||||
'@aws-crypto/sha256-browser@5.2.0':
|
|
||||||
resolution: {integrity: sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==}
|
|
||||||
|
|
||||||
'@aws-crypto/sha256-js@5.2.0':
|
|
||||||
resolution: {integrity: sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==}
|
|
||||||
engines: {node: '>=16.0.0'}
|
|
||||||
|
|
||||||
'@aws-crypto/supports-web-crypto@5.2.0':
|
|
||||||
resolution: {integrity: sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==}
|
|
||||||
|
|
||||||
'@aws-crypto/util@5.2.0':
|
|
||||||
resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==}
|
|
||||||
|
|
||||||
'@aws-sdk/checksums@3.1000.8':
|
|
||||||
resolution: {integrity: sha512-v0U9S7gBIme3OTgt1LdbAF4RpvavCc+4GK1+1xqAcqtbrHsEhjQo6R45LKcjhs/+WrRJij1Y0Gztw7QPAIeUfA==}
|
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/client-s3@3.1075.0':
|
'@aws-sdk/client-s3@3.1085.0':
|
||||||
resolution: {integrity: sha512-h1A6nIl1YX6Y45enGsTK7ef3ZrOnBiQJ1qF5R2K/nMWfsu6A9mc2Y5T66nxerABzyjjyyvign3MrzafnFoQKmA==}
|
resolution: {integrity: sha512-O0xe8sR50AYkwxlvRRsV0qytEO2dtXQTQ1CF3YBBdE5xtVkbu27H0vGa1mjQi1/+fbYM80AWEIPai5jZmXyubw==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/core@3.974.23':
|
'@aws-sdk/core@3.975.1':
|
||||||
resolution: {integrity: sha512-MiWR/uWjxjFXGzrE0Ghc5lWxUxzHsUWFhV+OX7M4cR9SrmrnZs6TXavnCWnzzdwJeFri34xQo81rvGNzK3c4BQ==}
|
resolution: {integrity: sha512-8qh/6EYb7hl/ZwVfQufhbMEZs1gQIc7GbdrIf4eprQJ7cv042+74nE6l3YDfyWNzb9iPXb8fRyYSHkNIk5eE6Q==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-env@3.972.49':
|
'@aws-sdk/credential-provider-env@3.972.57':
|
||||||
resolution: {integrity: sha512-liB3yQNHCM9k/gu/w36XHMKPluT7HTlnGUhRbBGSISDQkcr/Sy1zsZabiuvQj8WG5yW573u9RehrBvvnIQ9OEQ==}
|
resolution: {integrity: sha512-1RfJaF7SW1TOnvNGU7kaYjwUf5H3sfm+synGH1bHhRlqcnxCt3szebH3dmKEyY4tuGcbQ6ffzUT89cRitBV8OQ==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-http@3.972.51':
|
'@aws-sdk/credential-provider-http@3.972.59':
|
||||||
resolution: {integrity: sha512-XET0H2oofciJ5lMRWNIvRjAP7Q3wv2XT+JtJJEdhPWUMwe3TvQ9qcxonpu7vXmNngncvFpi4E2It+Tamas/naA==}
|
resolution: {integrity: sha512-sRCkpTiFnCdQvuaRVjQ6SVoHu6i7RUpurVo1c4F81HWhPvUJ7Wdp5MNtSdX1O29CNXc8em3O5m52hCjVtAD9SA==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-ini@3.972.56':
|
'@aws-sdk/credential-provider-ini@3.973.1':
|
||||||
resolution: {integrity: sha512-IAmc61hbgQiHht9U3x0tnRwz0lzdwOwD/i9voRgdJrKamF+JtmrBOsW9GwB7mfFonNWOWL4qARWYrF8veEMe3w==}
|
resolution: {integrity: sha512-6d8H6ZAh3ZPKZ6fe1nG2OWeZEZPtt9ravoD1dezPdPtsSkJRoxGAnFSHwKT3E/Te6fHE30zRzjV6TD12rvF6yQ==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-login@3.972.55':
|
'@aws-sdk/credential-provider-login@3.972.63':
|
||||||
resolution: {integrity: sha512-hBBkANo3cDn+h2qxxzER4a+J8JCO9o9Z/YYmU7iky6AcaarX5RRdRcHNC6SLdwY0vAXQygn6soUbDqPn3GghaA==}
|
resolution: {integrity: sha512-GREWRrMj0XnNKMaVa/Mauoaui26qBEHu71WWqXbwZOu/jFQOnPZjTf7u0KtGKC8VGa6VUs9kDWGgocrKNLS9vw==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-node@3.972.58':
|
'@aws-sdk/credential-provider-node@3.972.66':
|
||||||
resolution: {integrity: sha512-OyCLVmSI7pZO8hxwNVX6pXhTVlJqRBTp+ijdEfJSUj0RyjHnF602OfAarOzGq6wkGodeFkYBt8MmJ6A6ycRgWw==}
|
resolution: {integrity: sha512-f+qjRXZpz7sgzbc4QB+6nLKfyKFgRRXzWdXbsKPv/VhVRyHsDyq4yBWC/B75BAJpFIcUeI2XR/3gdWJ677zB4A==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-process@3.972.49':
|
'@aws-sdk/credential-provider-process@3.972.57':
|
||||||
resolution: {integrity: sha512-C8h36lBuC/RnBSsjlO+dn6xZm3KbAl5vpJaVPAfQnMmz2/OISmKOc8XZcqMQgO2ADwBYNRMM6Kf3vz9G/TulMQ==}
|
resolution: {integrity: sha512-TiVQhuU0pbhIZAUZacbPHMyzrIdiH+lnx+PMY/Pu/b93dJrq3wdZwzUJ0TPpvNxaqbHsxJvQZW3/h/beLiKq7Q==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-sso@3.972.55':
|
'@aws-sdk/credential-provider-sso@3.973.1':
|
||||||
resolution: {integrity: sha512-1FkOz74Ea5QGS9jtIoXp55T/IkSS3spv+nLTT07fRY/+T5xmEOqaYBVIaEmX4zTNvbV6g2lrtlaVKWEoNyJt3w==}
|
resolution: {integrity: sha512-3foTZUJ4821Ij60X7K3NJroygiZLnbBmarN+T//O2cjkISan90zElN3NBmgSlDrTQ7Gs6z/yO8V7h60QNcDZHQ==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-web-identity@3.972.55':
|
'@aws-sdk/credential-provider-web-identity@3.972.63':
|
||||||
resolution: {integrity: sha512-g2BoECD1q01kTPByi56+VLVvdWDzMkKIcr77qixpqH0okw2t0U5CoPv+6S8v/D1Y2Wa6QKKtn6XAtDzP+Kfpvg==}
|
resolution: {integrity: sha512-8qZLFhM69eKcS37m459ctPR05Qimycm/74OPVioe6wNZabMT54GYhwBju0+J656RkMasNSawWQu+c8CmBe3TUQ==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/middleware-flexible-checksums@3.974.33':
|
'@aws-sdk/middleware-sdk-s3@3.972.62':
|
||||||
resolution: {integrity: sha512-qMgQSPemQq2/eW/e/0+SpY4kYR5L7dUgBiVdEc5bd+ztHNv07ZMYiI+sTiir3TgKndFfglSw/VFi7oZJ6bZ63g==}
|
resolution: {integrity: sha512-k8JJwYXVYlOOjWnPZDThQS1xDFJgi5Dokt73qFlDtrZAbdcint5aIdjB9XgJAAQVP5OoqcefQmh1FYXiPpvsvw==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/middleware-sdk-s3@3.972.54':
|
'@aws-sdk/nested-clients@3.997.31':
|
||||||
resolution: {integrity: sha512-GDfDQ0gwLFRKN9gWIKcmVrHJ3e7XagnY7N1LLzMVNgnOnuY7f/ALgmy3CuBjosWD95T/Z6e+gs1IeWmLPkyLKQ==}
|
resolution: {integrity: sha512-BDHTpwcsZHEBNEJzOg/B1BkFYJxAXY50dau/NyVWs3d51F0WgIUGSWZot/Os+N3KpDhXeaXnz37mWffAvduREw==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/nested-clients@3.997.23':
|
'@aws-sdk/s3-presigned-post@3.1085.0':
|
||||||
resolution: {integrity: sha512-gO93ZPsI2bxeFZD42f1/qjDw6FAZkNZcKRO94LIiT03fzOmcJ9e/tunxjVjA1Rl69ClmVJzz8H3G9CdKef10PA==}
|
resolution: {integrity: sha512-3xBJlcanWVv1LqMKebIYGgN/ufO/tB6Uo8SKqMFIxBRcxt14ONaSldv5Oh4CrqTuj2JkNg7ZVCofPSGSoP8iqw==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/s3-request-presigner@3.1075.0':
|
'@aws-sdk/signature-v4-multi-region@3.996.39':
|
||||||
resolution: {integrity: sha512-++ftTvAGZSTuzFVHEPk8lLi7mybBD8PzJ9USWBvwnE4kSrXOyqYVJ5Ixd06xUEWS/xsrhpkI07mzCLGIxrRymA==}
|
resolution: {integrity: sha512-8+srXqYIF8KYMLC4FxMLEM5Ek7kUNibJu1R4m8/fUhhNYIZZz26oGtKkCr8I/HiG2fFQxBvaGgQZT4/mqRCSnA==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/signature-v4-multi-region@3.996.35':
|
'@aws-sdk/token-providers@3.1083.0':
|
||||||
resolution: {integrity: sha512-6L/VWs+Wch2stHemCGTmUNqKLMzURxQDK5boNG3Jn3kAOp71meDUuS5sbObpEvFxHDq0uWeSLFDNSYsjNt+Dlg==}
|
resolution: {integrity: sha512-s0woKnxuHrExLc5L2ArIH5BMkbonHPtt+5hSBM8oknp9M6QTuUmmAmJ2E0EdzCGONrO+8+ADPqvv6UX0nNcc7A==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/token-providers@3.1074.0':
|
'@aws-sdk/types@3.974.0':
|
||||||
resolution: {integrity: sha512-pv80IzgGW4RnXWtft692chZOM9i6PhebVsLCcnaM4dBEPZva2fE6FXAHs76G7Rc7s3yGyX/68G0nZMrUy+Vmpg==}
|
resolution: {integrity: sha512-QIBrw90CDm4O0UaIIzkU6DrFdeJzEb2Va5EPEVpyldj6sHJxB6cshhStJuhZxk3wR3PmjJlYsjPmY1kNb+KGBg==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/types@3.973.13':
|
'@aws-sdk/xml-builder@3.972.34':
|
||||||
resolution: {integrity: sha512-pEHZqRkAlHfnfAU9tK+WpKv/gBNjGJrHMgA3A0iYRGyswBS2t0pfez+lWlwktb3Bqa0ovh7w/QJTFwp3fDxLNg==}
|
resolution: {integrity: sha512-wHhWL1y7sN3enBA8POrPpQM5jCcmu2ozyhbRei4c8OjVcEaEs6yLucLa/pla457ggS/ysuy7bosagz3HaJkZXA==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@aws-sdk/util-locate-window@3.965.8':
|
'@aws/lambda-invoke-store@0.3.0':
|
||||||
resolution: {integrity: sha512-uUbMs1cBZPafD0ohUj6EwNf0fPZ534NvBxHox4hjX+0Rxq5paSYUem7+hi833pYrzrcnBATKIYpR02MDXT5M9g==}
|
resolution: {integrity: sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==}
|
||||||
engines: {node: '>=20.0.0'}
|
|
||||||
|
|
||||||
'@aws-sdk/xml-builder@3.972.31':
|
|
||||||
resolution: {integrity: sha512-SzE4Pgyl+hDF+BuyuzxUSpwnuUu9lJuO1YGgteG89/4Qv0+2IQiVQqdbPV32IozLvXWQChPQcdkk/sKvb1QHiQ==}
|
|
||||||
engines: {node: '>=20.0.0'}
|
|
||||||
|
|
||||||
'@aws/lambda-invoke-store@0.2.4':
|
|
||||||
resolution: {integrity: sha512-iY8yvjE0y651BixKNPgmv1WrQc+GZ142sb0z4gYnChDDY2YqI4P/jsSopBWrKfAt7LOJAkOXt7rC/hms+WclQQ==}
|
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
'@babel/code-frame@7.29.7':
|
'@babel/code-frame@7.29.7':
|
||||||
@@ -1911,42 +1880,30 @@ packages:
|
|||||||
resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==}
|
resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
'@smithy/core@3.26.0':
|
'@smithy/core@3.29.3':
|
||||||
resolution: {integrity: sha512-mLUktFAn+Pa2agl1J7VgtYNFWCX8/b4GMJSK1hCu4YCvtBfM6F8Os3EP4ry+DFFlXOf3wyvlgXhuUdFoy52D3g==}
|
resolution: {integrity: sha512-L+Ys6ecjk5vwPMAKHBpPKlJ3DkqwNcnfEISXBZIsVvWG/XKXfsAP8mwIYlTeLcd2ElHdesPI8OuOmJSFAPhm6A==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
'@smithy/credential-provider-imds@4.4.2':
|
'@smithy/credential-provider-imds@4.4.8':
|
||||||
resolution: {integrity: sha512-18UMDMyrAbDcpmL1gLUA7ww0fRTcdCrSjSJOi2Sbld+tVjwD/pW+OAwjlScFLR7vvBnhZrIPQ7kVuTf1mnJLug==}
|
resolution: {integrity: sha512-q9J7JTiXrAhB8sDp4px97uEPT7CwKH61Co78grdNQvU8QZAdiuaSRhP0tUVf2ogy36RZTrlMU1rBmDEH+cnkiA==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
'@smithy/fetch-http-handler@5.5.2':
|
'@smithy/fetch-http-handler@5.6.5':
|
||||||
resolution: {integrity: sha512-Ei/UK/QMhq0rKaMqGPlOAkE2yS9DZeYmZdk1RAKc3vp3zxgleZHZyBLlZv8yLsxljX4svCRuMTD6u3LLIcU4Bg==}
|
resolution: {integrity: sha512-SuqeisTyPoiIPtIYru/sGxGyXzmZ+8nnFOhC+qRPglt06Ebd1yH//CDltZB2J/3WBNVhwfUaZ0EtHB3cm2X32g==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
'@smithy/is-array-buffer@2.2.0':
|
'@smithy/node-http-handler@4.9.5':
|
||||||
resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==}
|
resolution: {integrity: sha512-bNqdxTQTxmLbomSmlkZFz8L6B/feQ2HHzw4L2zY7Ecp2XffYAZq2uzdWDdxJHJFbEvqd+SRuluJso0P8+xPdbw==}
|
||||||
engines: {node: '>=14.0.0'}
|
|
||||||
|
|
||||||
'@smithy/node-http-handler@4.8.2':
|
|
||||||
resolution: {integrity: sha512-wfl1uwrAqMH9/pi4kqBo5LBcFwrJLxuDLqL7p7qNcJIFcyZDUc6pzhYk4CYv+DP7fIUpQCZumwNnkhPKS52osQ==}
|
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
'@smithy/signature-v4@5.5.2':
|
'@smithy/signature-v4@5.6.4':
|
||||||
resolution: {integrity: sha512-7xHpmPY4rt0IOmeAA8EfjgEH8isT+587TCdy9H6a7d4OMi5CQ0oEHhWllunvPu4j4Cq0vTFwdxXN/kABWPjdyA==}
|
resolution: {integrity: sha512-B89bpf2t/y/wia6LZ+4JfHXYQT9PnVftsH05rgJKKIStS7r/4XSs9HOjtPoLtgcA6HCW9jVqX5DBbq7E0PAkiQ==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
'@smithy/types@4.15.0':
|
'@smithy/types@4.16.1':
|
||||||
resolution: {integrity: sha512-Z5TAOxygoFvybJV3igo5SloFflSokHx2hu1eFA+DxDTcn+FtKxUSui+rbTRG1pAafMA888Z3MVvCWUuvCrTXjg==}
|
resolution: {integrity: sha512-0JFs3V2y2M9tKW5na/qxe69Zv+uxLMO7QBbhxF/FHu/Gp2NFZAAL9tWl9PU02xxo07pb3G9FTyjNc6D5uZrJIg==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
|
|
||||||
'@smithy/util-buffer-from@2.2.0':
|
|
||||||
resolution: {integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==}
|
|
||||||
engines: {node: '>=14.0.0'}
|
|
||||||
|
|
||||||
'@smithy/util-utf8@2.3.0':
|
|
||||||
resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==}
|
|
||||||
engines: {node: '>=14.0.0'}
|
|
||||||
|
|
||||||
'@standard-schema/spec@1.1.0':
|
'@standard-schema/spec@1.1.0':
|
||||||
resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
|
resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
|
||||||
|
|
||||||
@@ -5597,243 +5554,180 @@ snapshots:
|
|||||||
openapi3-ts: 4.6.0
|
openapi3-ts: 4.6.0
|
||||||
zod: 3.25.76
|
zod: 3.25.76
|
||||||
|
|
||||||
'@aws-crypto/crc32@5.2.0':
|
'@aws-sdk/checksums@3.1000.16':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-crypto/util': 5.2.0
|
'@aws-sdk/core': 3.975.1
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/types': 3.974.0
|
||||||
|
'@smithy/core': 3.29.3
|
||||||
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-crypto/crc32c@5.2.0':
|
'@aws-sdk/client-s3@3.1085.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-crypto/util': 5.2.0
|
'@aws-sdk/checksums': 3.1000.16
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/core': 3.975.1
|
||||||
|
'@aws-sdk/credential-provider-node': 3.972.66
|
||||||
|
'@aws-sdk/middleware-sdk-s3': 3.972.62
|
||||||
|
'@aws-sdk/signature-v4-multi-region': 3.996.39
|
||||||
|
'@aws-sdk/types': 3.974.0
|
||||||
|
'@smithy/core': 3.29.3
|
||||||
|
'@smithy/fetch-http-handler': 5.6.5
|
||||||
|
'@smithy/node-http-handler': 4.9.5
|
||||||
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-crypto/sha1-browser@5.2.0':
|
'@aws-sdk/core@3.975.1':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-crypto/supports-web-crypto': 5.2.0
|
'@aws-sdk/types': 3.974.0
|
||||||
'@aws-crypto/util': 5.2.0
|
'@aws-sdk/xml-builder': 3.972.34
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws/lambda-invoke-store': 0.3.0
|
||||||
'@aws-sdk/util-locate-window': 3.965.8
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/util-utf8': 2.3.0
|
'@smithy/signature-v4': 5.6.4
|
||||||
tslib: 2.8.1
|
'@smithy/types': 4.16.1
|
||||||
|
|
||||||
'@aws-crypto/sha256-browser@5.2.0':
|
|
||||||
dependencies:
|
|
||||||
'@aws-crypto/sha256-js': 5.2.0
|
|
||||||
'@aws-crypto/supports-web-crypto': 5.2.0
|
|
||||||
'@aws-crypto/util': 5.2.0
|
|
||||||
'@aws-sdk/types': 3.973.13
|
|
||||||
'@aws-sdk/util-locate-window': 3.965.8
|
|
||||||
'@smithy/util-utf8': 2.3.0
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@aws-crypto/sha256-js@5.2.0':
|
|
||||||
dependencies:
|
|
||||||
'@aws-crypto/util': 5.2.0
|
|
||||||
'@aws-sdk/types': 3.973.13
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@aws-crypto/supports-web-crypto@5.2.0':
|
|
||||||
dependencies:
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@aws-crypto/util@5.2.0':
|
|
||||||
dependencies:
|
|
||||||
'@aws-sdk/types': 3.973.13
|
|
||||||
'@smithy/util-utf8': 2.3.0
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@aws-sdk/checksums@3.1000.8':
|
|
||||||
dependencies:
|
|
||||||
'@aws-crypto/crc32': 5.2.0
|
|
||||||
'@aws-crypto/crc32c': 5.2.0
|
|
||||||
'@aws-crypto/util': 5.2.0
|
|
||||||
'@aws-sdk/core': 3.974.23
|
|
||||||
'@aws-sdk/types': 3.973.13
|
|
||||||
'@smithy/core': 3.26.0
|
|
||||||
'@smithy/types': 4.15.0
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@aws-sdk/client-s3@3.1075.0':
|
|
||||||
dependencies:
|
|
||||||
'@aws-crypto/sha1-browser': 5.2.0
|
|
||||||
'@aws-crypto/sha256-browser': 5.2.0
|
|
||||||
'@aws-crypto/sha256-js': 5.2.0
|
|
||||||
'@aws-sdk/core': 3.974.23
|
|
||||||
'@aws-sdk/credential-provider-node': 3.972.58
|
|
||||||
'@aws-sdk/middleware-flexible-checksums': 3.974.33
|
|
||||||
'@aws-sdk/middleware-sdk-s3': 3.972.54
|
|
||||||
'@aws-sdk/signature-v4-multi-region': 3.996.35
|
|
||||||
'@aws-sdk/types': 3.973.13
|
|
||||||
'@smithy/core': 3.26.0
|
|
||||||
'@smithy/fetch-http-handler': 5.5.2
|
|
||||||
'@smithy/node-http-handler': 4.8.2
|
|
||||||
'@smithy/types': 4.15.0
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@aws-sdk/core@3.974.23':
|
|
||||||
dependencies:
|
|
||||||
'@aws-sdk/types': 3.973.13
|
|
||||||
'@aws-sdk/xml-builder': 3.972.31
|
|
||||||
'@aws/lambda-invoke-store': 0.2.4
|
|
||||||
'@smithy/core': 3.26.0
|
|
||||||
'@smithy/signature-v4': 5.5.2
|
|
||||||
'@smithy/types': 4.15.0
|
|
||||||
bowser: 2.14.1
|
bowser: 2.14.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-env@3.972.49':
|
'@aws-sdk/credential-provider-env@3.972.57':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/core': 3.974.23
|
'@aws-sdk/core': 3.975.1
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/types': 3.974.0
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-http@3.972.51':
|
'@aws-sdk/credential-provider-http@3.972.59':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/core': 3.974.23
|
'@aws-sdk/core': 3.975.1
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/types': 3.974.0
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/fetch-http-handler': 5.5.2
|
'@smithy/fetch-http-handler': 5.6.5
|
||||||
'@smithy/node-http-handler': 4.8.2
|
'@smithy/node-http-handler': 4.9.5
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-ini@3.972.56':
|
'@aws-sdk/credential-provider-ini@3.973.1':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/core': 3.974.23
|
'@aws-sdk/core': 3.975.1
|
||||||
'@aws-sdk/credential-provider-env': 3.972.49
|
'@aws-sdk/credential-provider-env': 3.972.57
|
||||||
'@aws-sdk/credential-provider-http': 3.972.51
|
'@aws-sdk/credential-provider-http': 3.972.59
|
||||||
'@aws-sdk/credential-provider-login': 3.972.55
|
'@aws-sdk/credential-provider-login': 3.972.63
|
||||||
'@aws-sdk/credential-provider-process': 3.972.49
|
'@aws-sdk/credential-provider-process': 3.972.57
|
||||||
'@aws-sdk/credential-provider-sso': 3.972.55
|
'@aws-sdk/credential-provider-sso': 3.973.1
|
||||||
'@aws-sdk/credential-provider-web-identity': 3.972.55
|
'@aws-sdk/credential-provider-web-identity': 3.972.63
|
||||||
'@aws-sdk/nested-clients': 3.997.23
|
'@aws-sdk/nested-clients': 3.997.31
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/types': 3.974.0
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/credential-provider-imds': 4.4.2
|
'@smithy/credential-provider-imds': 4.4.8
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-login@3.972.55':
|
'@aws-sdk/credential-provider-login@3.972.63':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/core': 3.974.23
|
'@aws-sdk/core': 3.975.1
|
||||||
'@aws-sdk/nested-clients': 3.997.23
|
'@aws-sdk/nested-clients': 3.997.31
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/types': 3.974.0
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-node@3.972.58':
|
'@aws-sdk/credential-provider-node@3.972.66':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/credential-provider-env': 3.972.49
|
'@aws-sdk/credential-provider-env': 3.972.57
|
||||||
'@aws-sdk/credential-provider-http': 3.972.51
|
'@aws-sdk/credential-provider-http': 3.972.59
|
||||||
'@aws-sdk/credential-provider-ini': 3.972.56
|
'@aws-sdk/credential-provider-ini': 3.973.1
|
||||||
'@aws-sdk/credential-provider-process': 3.972.49
|
'@aws-sdk/credential-provider-process': 3.972.57
|
||||||
'@aws-sdk/credential-provider-sso': 3.972.55
|
'@aws-sdk/credential-provider-sso': 3.973.1
|
||||||
'@aws-sdk/credential-provider-web-identity': 3.972.55
|
'@aws-sdk/credential-provider-web-identity': 3.972.63
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/types': 3.974.0
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/credential-provider-imds': 4.4.2
|
'@smithy/credential-provider-imds': 4.4.8
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-process@3.972.49':
|
'@aws-sdk/credential-provider-process@3.972.57':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/core': 3.974.23
|
'@aws-sdk/core': 3.975.1
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/types': 3.974.0
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-sso@3.972.55':
|
'@aws-sdk/credential-provider-sso@3.973.1':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/core': 3.974.23
|
'@aws-sdk/core': 3.975.1
|
||||||
'@aws-sdk/nested-clients': 3.997.23
|
'@aws-sdk/nested-clients': 3.997.31
|
||||||
'@aws-sdk/token-providers': 3.1074.0
|
'@aws-sdk/token-providers': 3.1083.0
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/types': 3.974.0
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/credential-provider-web-identity@3.972.55':
|
'@aws-sdk/credential-provider-web-identity@3.972.63':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/core': 3.974.23
|
'@aws-sdk/core': 3.975.1
|
||||||
'@aws-sdk/nested-clients': 3.997.23
|
'@aws-sdk/nested-clients': 3.997.31
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/types': 3.974.0
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/middleware-flexible-checksums@3.974.33':
|
'@aws-sdk/middleware-sdk-s3@3.972.62':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/checksums': 3.1000.8
|
'@aws-sdk/core': 3.975.1
|
||||||
|
'@aws-sdk/signature-v4-multi-region': 3.996.39
|
||||||
|
'@aws-sdk/types': 3.974.0
|
||||||
|
'@smithy/core': 3.29.3
|
||||||
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/middleware-sdk-s3@3.972.54':
|
'@aws-sdk/nested-clients@3.997.31':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/core': 3.974.23
|
'@aws-sdk/core': 3.975.1
|
||||||
'@aws-sdk/signature-v4-multi-region': 3.996.35
|
'@aws-sdk/signature-v4-multi-region': 3.996.39
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/types': 3.974.0
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/fetch-http-handler': 5.6.5
|
||||||
|
'@smithy/node-http-handler': 4.9.5
|
||||||
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/nested-clients@3.997.23':
|
'@aws-sdk/s3-presigned-post@3.1085.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-crypto/sha256-browser': 5.2.0
|
'@aws-sdk/client-s3': 3.1085.0
|
||||||
'@aws-crypto/sha256-js': 5.2.0
|
'@aws-sdk/core': 3.975.1
|
||||||
'@aws-sdk/core': 3.974.23
|
'@aws-sdk/types': 3.974.0
|
||||||
'@aws-sdk/signature-v4-multi-region': 3.996.35
|
'@smithy/core': 3.29.3
|
||||||
'@aws-sdk/types': 3.973.13
|
'@smithy/signature-v4': 5.6.4
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/types': 4.16.1
|
||||||
'@smithy/fetch-http-handler': 5.5.2
|
|
||||||
'@smithy/node-http-handler': 4.8.2
|
|
||||||
'@smithy/types': 4.15.0
|
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/s3-request-presigner@3.1075.0':
|
'@aws-sdk/signature-v4-multi-region@3.996.39':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/core': 3.974.23
|
'@aws-sdk/types': 3.974.0
|
||||||
'@aws-sdk/signature-v4-multi-region': 3.996.35
|
'@smithy/signature-v4': 5.6.4
|
||||||
'@aws-sdk/types': 3.973.13
|
'@smithy/types': 4.16.1
|
||||||
'@smithy/core': 3.26.0
|
|
||||||
'@smithy/types': 4.15.0
|
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/signature-v4-multi-region@3.996.35':
|
'@aws-sdk/token-providers@3.1083.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/types': 3.973.13
|
'@aws-sdk/core': 3.975.1
|
||||||
'@smithy/signature-v4': 5.5.2
|
'@aws-sdk/nested-clients': 3.997.31
|
||||||
'@smithy/types': 4.15.0
|
'@aws-sdk/types': 3.974.0
|
||||||
|
'@smithy/core': 3.29.3
|
||||||
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/token-providers@3.1074.0':
|
'@aws-sdk/types@3.974.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-sdk/core': 3.974.23
|
'@smithy/types': 4.16.1
|
||||||
'@aws-sdk/nested-clients': 3.997.23
|
|
||||||
'@aws-sdk/types': 3.973.13
|
|
||||||
'@smithy/core': 3.26.0
|
|
||||||
'@smithy/types': 4.15.0
|
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/types@3.973.13':
|
'@aws-sdk/xml-builder@3.972.34':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@aws-sdk/util-locate-window@3.965.8':
|
'@aws/lambda-invoke-store@0.3.0': {}
|
||||||
dependencies:
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@aws-sdk/xml-builder@3.972.31':
|
|
||||||
dependencies:
|
|
||||||
'@smithy/types': 4.15.0
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@aws/lambda-invoke-store@0.2.4': {}
|
|
||||||
|
|
||||||
'@babel/code-frame@7.29.7':
|
'@babel/code-frame@7.29.7':
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -6048,7 +5942,7 @@ snapshots:
|
|||||||
|
|
||||||
'@bcoe/v8-coverage@1.0.2': {}
|
'@bcoe/v8-coverage@1.0.2': {}
|
||||||
|
|
||||||
'@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)':
|
'@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@better-auth/utils': 0.4.2
|
'@better-auth/utils': 0.4.2
|
||||||
'@better-fetch/fetch': 1.3.1
|
'@better-fetch/fetch': 1.3.1
|
||||||
@@ -6062,38 +5956,38 @@ snapshots:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@opentelemetry/api': 1.9.1
|
'@opentelemetry/api': 1.9.1
|
||||||
|
|
||||||
'@better-auth/drizzle-adapter@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(drizzle-orm@0.44.7(@opentelemetry/api@1.9.1)(kysely@0.29.2)(postgres@3.4.9))':
|
'@better-auth/drizzle-adapter@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(drizzle-orm@0.44.7(@opentelemetry/api@1.9.1)(kysely@0.29.2)(postgres@3.4.9))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
||||||
'@better-auth/utils': 0.4.2
|
'@better-auth/utils': 0.4.2
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
drizzle-orm: 0.44.7(@opentelemetry/api@1.9.1)(kysely@0.29.2)(postgres@3.4.9)
|
drizzle-orm: 0.44.7(@opentelemetry/api@1.9.1)(kysely@0.29.2)(postgres@3.4.9)
|
||||||
|
|
||||||
'@better-auth/kysely-adapter@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(kysely@0.29.2)':
|
'@better-auth/kysely-adapter@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(kysely@0.29.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
||||||
'@better-auth/utils': 0.4.2
|
'@better-auth/utils': 0.4.2
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
kysely: 0.29.2
|
kysely: 0.29.2
|
||||||
|
|
||||||
'@better-auth/memory-adapter@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)':
|
'@better-auth/memory-adapter@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
||||||
'@better-auth/utils': 0.4.2
|
'@better-auth/utils': 0.4.2
|
||||||
|
|
||||||
'@better-auth/mongo-adapter@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)':
|
'@better-auth/mongo-adapter@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
||||||
'@better-auth/utils': 0.4.2
|
'@better-auth/utils': 0.4.2
|
||||||
|
|
||||||
'@better-auth/prisma-adapter@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)':
|
'@better-auth/prisma-adapter@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
||||||
'@better-auth/utils': 0.4.2
|
'@better-auth/utils': 0.4.2
|
||||||
|
|
||||||
'@better-auth/telemetry@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)':
|
'@better-auth/telemetry@1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
||||||
'@better-auth/utils': 0.4.2
|
'@better-auth/utils': 0.4.2
|
||||||
'@better-fetch/fetch': 1.3.1
|
'@better-fetch/fetch': 1.3.1
|
||||||
|
|
||||||
@@ -7016,52 +6910,37 @@ snapshots:
|
|||||||
|
|
||||||
'@sindresorhus/merge-streams@4.0.0': {}
|
'@sindresorhus/merge-streams@4.0.0': {}
|
||||||
|
|
||||||
'@smithy/core@3.26.0':
|
'@smithy/core@3.29.3':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@aws-crypto/crc32': 5.2.0
|
'@smithy/types': 4.16.1
|
||||||
'@smithy/types': 4.15.0
|
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@smithy/credential-provider-imds@4.4.2':
|
'@smithy/credential-provider-imds@4.4.8':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@smithy/fetch-http-handler@5.5.2':
|
'@smithy/fetch-http-handler@5.6.5':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@smithy/is-array-buffer@2.2.0':
|
'@smithy/node-http-handler@4.9.5':
|
||||||
dependencies:
|
dependencies:
|
||||||
|
'@smithy/core': 3.29.3
|
||||||
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@smithy/node-http-handler@4.8.2':
|
'@smithy/signature-v4@5.6.4':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@smithy/core': 3.26.0
|
'@smithy/core': 3.29.3
|
||||||
'@smithy/types': 4.15.0
|
'@smithy/types': 4.16.1
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@smithy/signature-v4@5.5.2':
|
'@smithy/types@4.16.1':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@smithy/core': 3.26.0
|
|
||||||
'@smithy/types': 4.15.0
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@smithy/types@4.15.0':
|
|
||||||
dependencies:
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@smithy/util-buffer-from@2.2.0':
|
|
||||||
dependencies:
|
|
||||||
'@smithy/is-array-buffer': 2.2.0
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@smithy/util-utf8@2.3.0':
|
|
||||||
dependencies:
|
|
||||||
'@smithy/util-buffer-from': 2.2.0
|
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@standard-schema/spec@1.1.0': {}
|
'@standard-schema/spec@1.1.0': {}
|
||||||
@@ -7722,13 +7601,13 @@ snapshots:
|
|||||||
|
|
||||||
better-auth@1.6.20(@opentelemetry/api@1.9.1)(drizzle-kit@0.31.10)(drizzle-orm@0.44.7(@opentelemetry/api@1.9.1)(kysely@0.29.2)(postgres@3.4.9))(next@16.2.9(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vitest@4.1.9):
|
better-auth@1.6.20(@opentelemetry/api@1.9.1)(drizzle-kit@0.31.10)(drizzle-orm@0.44.7(@opentelemetry/api@1.9.1)(kysely@0.29.2)(postgres@3.4.9))(next@16.2.9(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vitest@4.1.9):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
'@better-auth/core': 1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0)
|
||||||
'@better-auth/drizzle-adapter': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(drizzle-orm@0.44.7(@opentelemetry/api@1.9.1)(kysely@0.29.2)(postgres@3.4.9))
|
'@better-auth/drizzle-adapter': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(drizzle-orm@0.44.7(@opentelemetry/api@1.9.1)(kysely@0.29.2)(postgres@3.4.9))
|
||||||
'@better-auth/kysely-adapter': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(kysely@0.29.2)
|
'@better-auth/kysely-adapter': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(kysely@0.29.2)
|
||||||
'@better-auth/memory-adapter': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)
|
'@better-auth/memory-adapter': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)
|
||||||
'@better-auth/mongo-adapter': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)
|
'@better-auth/mongo-adapter': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)
|
||||||
'@better-auth/prisma-adapter': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)
|
'@better-auth/prisma-adapter': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)
|
||||||
'@better-auth/telemetry': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@4.4.3))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)
|
'@better-auth/telemetry': 1.6.20(@better-auth/core@1.6.20(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@opentelemetry/api@1.9.1)(better-call@1.3.6(zod@3.25.76))(jose@6.2.3)(kysely@0.29.2)(nanostores@1.3.0))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)
|
||||||
'@better-auth/utils': 0.4.2
|
'@better-auth/utils': 0.4.2
|
||||||
'@better-fetch/fetch': 1.3.1
|
'@better-fetch/fetch': 1.3.1
|
||||||
'@noble/ciphers': 2.2.0
|
'@noble/ciphers': 2.2.0
|
||||||
|
|||||||
Reference in New Issue
Block a user