feat: 接入对象存储图片直传

This commit is contained in:
que01 committed 2026-10-12 00:55:30 +08:00
1 parent f57c0ca0ea
commit 84956b8fe2
14 files changed
+548 -15

No files matched your search

+5 -4
View File
@@ -10,9 +10,10 @@ ADMIN_PORT=3000
SESSION_SECRET=replace-with-a-long-random-value SESSION_SECRET=replace-with-a-long-random-value
DEFAULT_BRAND_ID=00000000-0000-0000-0000-000000000001 DEFAULT_BRAND_ID=00000000-0000-0000-0000-000000000001
SEED_ADMIN_PASSWORD=change-me-now-123 SEED_ADMIN_PASSWORD=change-me-now-123
OBJECT_STORAGE_ENDPOINT= OBJECT_STORAGE_ENDPOINT=http://localhost:9000
OBJECT_STORAGE_BUCKET= OBJECT_STORAGE_PUBLIC_URL=http://localhost:9000/personal-brand-media
OBJECT_STORAGE_ACCESS_KEY= OBJECT_STORAGE_BUCKET=personal-brand-media
OBJECT_STORAGE_SECRET_KEY= OBJECT_STORAGE_ACCESS_KEY=minioadmin
OBJECT_STORAGE_SECRET_KEY=minioadmin
WECHAT_APP_ID= WECHAT_APP_ID=
WECHAT_APP_SECRET= WECHAT_APP_SECRET=
+55 -2
View File
@@ -1,14 +1,51 @@
import { Image, Input, Space, Typography } from "antd"; import { InboxOutlined } from "@ant-design/icons";
import { Image, Input, Space, Typography, Upload, message } from "antd";
import { useState } from "react";
import { createApiClient } from "../lib/api.js";
interface ImageUrlFieldProps { interface ImageUrlFieldProps {
id?: string; id?: string;
value?: string; value?: string;
onChange?: (value: string) => void; onChange?: (value: string) => void;
placeholder?: string; placeholder?: string;
scope?: "brand" | "offering" | "trust";
} }
export function ImageUrlField({ id, value, onChange, placeholder }: ImageUrlFieldProps) { export function ImageUrlField({ id, value, onChange, placeholder, scope }: ImageUrlFieldProps) {
const imageUrl = typeof value === "string" ? value.trim() : ""; const imageUrl = typeof value === "string" ? value.trim() : "";
const [uploading, setUploading] = useState(false);
const client = createApiClient();
async function upload(file: File) {
if (!file.type.startsWith("image/")) {
message.error("仅支持图片文件");
return;
}
if (file.size > 10 * 1024 * 1024) {
message.error("图片不能超过 10MB");
return;
}
setUploading(true);
try {
const presign = await client.createPresignedUpload({
fileName: file.name,
contentType: file.type,
...(scope ? { scope } : {}),
});
const response = await fetch(presign.uploadUrl, {
method: "PUT",
headers: { "content-type": file.type },
body: file,
});
if (!response.ok) throw new Error(`upload failed: ${response.status}`);
onChange?.(presign.publicUrl);
} catch {
message.error("图片上传失败,请重试");
} finally {
setUploading(false);
}
}
return ( return (
<Space direction="vertical" size={8} style={{ width: "100%" }}> <Space direction="vertical" size={8} style={{ width: "100%" }}>
<Input <Input
@@ -17,6 +54,22 @@ export function ImageUrlField({ id, value, onChange, placeholder }: ImageUrlFiel
onChange={(event) => onChange?.(event.target.value)} onChange={(event) => onChange?.(event.target.value)}
placeholder={placeholder ?? "粘贴图片地址"} placeholder={placeholder ?? "粘贴图片地址"}
/> />
<Upload.Dragger
accept="image/*"
multiple={false}
showUploadList={false}
disabled={uploading}
beforeUpload={(file) => {
void upload(file);
return false;
}}
>
<p className="ant-upload-drag-icon">
<InboxOutlined />
</p>
<p className="ant-upload-text">{uploading ? "上传中..." : "点击或拖拽上传图片"}</p>
<p className="ant-upload-hint">JPG、PNG、WebP 或 AVIF,最大 10MB</p>
</Upload.Dragger>
{imageUrl ? ( {imageUrl ? (
<Space align="start"> <Space align="start">
<Image <Image
+8 -4
View File
@@ -201,14 +201,18 @@ export function BrandPage() {
<Form.Item <Form.Item
name="avatarUrl" name="avatarUrl"
label="头像图片地址" label="头像图片地址"
help="粘贴一张可公开访问的图片地址。" help="点击上传或粘贴一张可公开访问的图片地址。"
> >
<ImageUrlField /> <ImageUrlField scope="brand" />
</Form.Item> </Form.Item>
</Col> </Col>
<Col xs={24} md={12}> <Col xs={24} md={12}>
<Form.Item name="coverUrl" label="品牌封面图片地址" help="建议使用横向图片。"> <Form.Item
<ImageUrlField /> name="coverUrl"
label="品牌封面图片地址"
help="点击上传,或粘贴一张横向图片地址。"
>
<ImageUrlField scope="brand" />
</Form.Item> </Form.Item>
</Col> </Col>
</Row> </Row>
@@ -495,9 +495,9 @@ export function ServicesPage() {
<Form.Item <Form.Item
name="coverUrl" name="coverUrl"
label="封面图片地址" label="封面图片地址"
help="填写图片地址;图片上传能力将在后续媒体管理中提供。" help="点击上传,或粘贴服务/产品封面图片地址。"
> >
<ImageUrlField placeholder="粘贴服务或产品封面图片地址" /> <ImageUrlField placeholder="粘贴服务或产品封面图片地址" scope="offering" />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
name="sortOrder" name="sortOrder"
@@ -396,7 +396,7 @@ export function TrustContentPage() {
label="配图地址" label="配图地址"
help="粘贴一张可公开访问的图片地址,保存前会显示预览。" help="粘贴一张可公开访问的图片地址,保存前会显示预览。"
> >
<ImageUrlField placeholder="粘贴案例或经历配图地址" /> <ImageUrlField placeholder="粘贴案例或经历配图地址" scope="trust" />
</Form.Item> </Form.Item>
<Form.Item name="isPublished" label="公开状态"> <Form.Item name="isPublished" label="公开状态">
<Select <Select
+3 -1
View File
@@ -8,7 +8,7 @@
"lint": "eslint .", "lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit", "typecheck": "tsc -p tsconfig.json --noEmit",
"test": "tsx --test test/**/*.test.ts", "test": "tsx --test test/**/*.test.ts",
"test:integration": "pnpm build && node --env-file=.env test/run-integration.cjs", "test:integration": "pnpm build && node --env-file=.env test/run-integration.cjs && pnpm --filter @personal-brand/api exec tsx --test test/http.upload.test.js",
"clean": "rimraf dist", "clean": "rimraf dist",
"start": "node dist/main.js", "start": "node dist/main.js",
"db:generate": "prisma generate", "db:generate": "prisma generate",
@@ -17,6 +17,8 @@
"db:seed": "tsx prisma/seed.ts" "db:seed": "tsx prisma/seed.ts"
}, },
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.1149.0",
"@aws-sdk/s3-request-presigner": "^3.1149.0",
"@nestjs/common": "^11.0.11", "@nestjs/common": "^11.0.11",
"@nestjs/core": "^11.0.11", "@nestjs/core": "^11.0.11",
"@nestjs/platform-fastify": "^11.0.11", "@nestjs/platform-fastify": "^11.0.11",
+2
View File
@@ -13,6 +13,7 @@ import {
} from "./modules/public/public-workspace.controller.js"; } from "./modules/public/public-workspace.controller.js";
import { PublicBrandContextService } from "./modules/public/public-brand-context.service.js"; import { PublicBrandContextService } from "./modules/public/public-brand-context.service.js";
import { AdminConfigController } from "./modules/admin/admin-config.controller.js"; import { AdminConfigController } from "./modules/admin/admin-config.controller.js";
import { AdminUploadController } from "./modules/admin/admin-upload.controller.js";
import { PublicOfferingController } from "./modules/public/public-offering.controller.js"; import { PublicOfferingController } from "./modules/public/public-offering.controller.js";
import { PublicInquiryFormController } from "./modules/public/public-inquiry-form.controller.js"; import { PublicInquiryFormController } from "./modules/public/public-inquiry-form.controller.js";
import { CustomerInquirySubmissionController } from "./modules/customer/customer-inquiry-submission.controller.js"; import { CustomerInquirySubmissionController } from "./modules/customer/customer-inquiry-submission.controller.js";
@@ -61,6 +62,7 @@ export class HealthController {
AdminBookingController, AdminBookingController,
AdminConfigController, AdminConfigController,
AdminReleaseController, AdminReleaseController,
AdminUploadController,
], ],
providers: [ providers: [
PrismaService, PrismaService,
@@ -0,0 +1,97 @@
import { BadRequestException, Body, Controller, Get, Post, Req } from "@nestjs/common";
import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
import { createHash, randomUUID } from "node:crypto";
import type { FastifyRequest } from "fastify";
import { IsIn, IsOptional, IsString, MaxLength } from "class-validator";
import { AdminAccessService } from "../../admin-access.service.js";
export class PresignUploadDto {
@IsString()
@MaxLength(255)
fileName!: string;
@IsString()
@IsIn(["image/jpeg", "image/png", "image/webp", "image/avif"])
contentType!: string;
@IsOptional()
@IsString()
@MaxLength(64)
scope?: "brand" | "offering" | "trust";
}
class ObjectStorage {
private readonly client = new S3Client({
region: process.env.OBJECT_STORAGE_REGION || "us-east-1",
...(process.env.OBJECT_STORAGE_ENDPOINT
? { endpoint: process.env.OBJECT_STORAGE_ENDPOINT }
: {}),
forcePathStyle: Boolean(process.env.OBJECT_STORAGE_ENDPOINT),
credentials: {
accessKeyId: process.env.OBJECT_STORAGE_ACCESS_KEY || "",
secretAccessKey: process.env.OBJECT_STORAGE_SECRET_KEY || "",
},
});
private get bucket(): string {
const bucket = process.env.OBJECT_STORAGE_BUCKET;
if (!bucket) throw new BadRequestException("媒体上传尚未配置");
return bucket;
}
publicUrl(key: string): string {
const endpoint = process.env.OBJECT_STORAGE_PUBLIC_URL?.replace(/\/$/, "");
return endpoint ? `${endpoint}/${key}` : `/${key}`;
}
async presignPut(key: string, contentType: string): Promise<string> {
return getSignedUrl(
this.client,
new PutObjectCommand({ Bucket: this.bucket, Key: key, ContentType: contentType }),
{ expiresIn: 600 },
);
}
}
const allowedExtensions = new Map([
["image/jpeg", ".jpg"],
["image/png", ".png"],
["image/webp", ".webp"],
["image/avif", ".avif"],
]);
@Controller("admin/uploads")
export class AdminUploadController {
private readonly storage = new ObjectStorage();
constructor(private readonly access: AdminAccessService) {}
@Get("config")
config() {
const configured = Boolean(
process.env.OBJECT_STORAGE_BUCKET &&
process.env.OBJECT_STORAGE_ACCESS_KEY &&
process.env.OBJECT_STORAGE_SECRET_KEY,
);
return { configured };
}
@Post("presign")
async presign(@Req() request: FastifyRequest, @Body() body: PresignUploadDto) {
await this.access.requireBrand(request);
const extension = allowedExtensions.get(body.contentType);
if (!extension) throw new BadRequestException("仅支持 JPG、PNG、WebP 或 AVIF 图片");
const cleanName = body.fileName
.toLowerCase()
.replace(/[^a-z0-9._-]+/g, "-")
.slice(-64);
const digest = createHash("sha256")
.update(`${body.scope ?? "brand"}:${cleanName}:${randomUUID()}`)
.digest("hex")
.slice(0, 16);
const key = `media/${new Date().getFullYear()}/${digest}${extension}`;
const uploadUrl = await this.storage.presignPut(key, body.contentType);
return { uploadUrl, key, publicUrl: this.storage.publicUrl(key) };
}
}
+18
View File
@@ -0,0 +1,18 @@
import assert from "node:assert/strict";
import test from "node:test";
test("upload presign DTO rejects unsupported media type and oversized names", async () => {
const { PresignUploadDto } = await import("../dist/modules/admin/admin-upload.controller.js");
const validator = await import("class-validator");
const invalid = new PresignUploadDto();
invalid.fileName = "x".repeat(256);
invalid.contentType = "application/pdf";
const errors = await validator.validate(invalid);
assert.ok(errors.some((error) => error.property === "fileName"));
assert.ok(errors.some((error) => error.property === "contentType"));
const valid = new PresignUploadDto();
valid.fileName = "hero.jpg";
valid.contentType = "image/jpeg";
assert.deepEqual(await validator.validate(valid), []);
});
+17
View File
@@ -0,0 +1,17 @@
services:
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 12
+1
View File
@@ -19,4 +19,5 @@ services:
start_period: 5s start_period: 5s
volumes: volumes:
minio-data:
personal-brand-postgres: personal-brand-postgres:
+1 -1
View File
@@ -54,7 +54,7 @@ DEFAULT_BRAND_ID=<production-brand-id>
SEED_ADMIN_PASSWORD=<first-boot-admin-password> SEED_ADMIN_PASSWORD=<first-boot-admin-password>
``` ```
`DATABASE_URL` 使用最小权限数据库账号。`SESSION_SECRET` 不能复用示例值或开发值。微信与对象存储相关变量只在启用对应能力时配置,同样不能提交真实凭据。 `DATABASE_URL` 使用最小权限数据库账号。`SESSION_SECRET` 不能复用示例值或开发值。媒体上传使用 S3 兼容对象存储和预签名直传,生产环境必须配置独立的 `OBJECT_STORAGE_PUBLIC_URL`、最小权限访问密钥和专用 bucket。微信相关变量只在启用对应能力时配置,同样不能提交真实凭据。
### 2. 构建与迁移 ### 2. 构建与迁移
+20
View File
@@ -54,6 +54,16 @@ export interface AdminBrandMember {
isEnabled: boolean; isEnabled: boolean;
}; };
} }
export interface UploadConfig {
configured: boolean;
}
export interface PresignedUpload {
uploadUrl: string;
key: string;
publicUrl: string;
}
export type BrandUpdate = Partial<Omit<BrandProfile, "id">>; export type BrandUpdate = Partial<Omit<BrandProfile, "id">>;
export interface BrandReleaseSummary { export interface BrandReleaseSummary {
id: string; id: string;
@@ -869,6 +879,16 @@ export class ApiClient {
method: "DELETE", method: "DELETE",
}); });
} }
getUploadConfig(): Promise<UploadConfig> {
return this.request("/admin/uploads/config");
}
createPresignedUpload(body: {
fileName: string;
contentType: string;
scope?: "brand" | "offering" | "trust";
}): Promise<PresignedUpload> {
return this.request("/admin/uploads/presign", { method: "POST", body });
}
private async request<T>( private async request<T>(
path: string, path: string,
options: { method?: string; body?: unknown } = {}, options: { method?: string; body?: unknown } = {},
+318
View File
@@ -69,6 +69,12 @@ importers:
apps/api: apps/api:
dependencies: dependencies:
'@aws-sdk/client-s3':
specifier: ^3.1149.0
version: 3.1149.0
'@aws-sdk/s3-request-presigner':
specifier: ^3.1149.0
version: 3.1149.0
'@nestjs/common': '@nestjs/common':
specifier: ^11.0.11 specifier: ^11.0.11
version: 11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2) version: 11.2.5(class-transformer@0.5.1)(class-validator@0.14.4)(reflect-metadata@0.2.2)(rxjs@7.8.2)
@@ -324,6 +330,82 @@ packages:
react: ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 react: ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
react-dom: ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 react-dom: ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
'@aws-sdk/checksums@3.1001.2':
resolution: {integrity: sha512-gKRj5IXZ/O0ehk2rwfb55YygdNKNhK5N1l/Ztg/w06tk21AJtCPuyErETk2RS/6XOmpBkcZY6CN3GlQ2fWTh1g==}
engines: {node: '>=20.0.0'}
'@aws-sdk/client-s3@3.1149.0':
resolution: {integrity: sha512-wEccG+3/ap7iIBO4DbWwqNHh2u5Qm5OCQJzJaAvtVFIoZbp0qia8HIXv4rpnNmJJEX8205mlq67F9QJ0nKlcxg==}
engines: {node: '>=20.0.0'}
'@aws-sdk/core@3.978.2':
resolution: {integrity: sha512-ViOBLuGSSyPAmkKGJ6KJXtVN7MOEp3rnI7uH+kWxnHccvo8C9cvunEAnN5/oaZH1laQfsTBw7IOnmNkWlFZl2A==}
engines: {node: '>=20.0.0'}
'@aws-sdk/credential-provider-env@3.972.73':
resolution: {integrity: sha512-PxlFZiF5IPUsPnuVSqjM9jlmRwZhL0xx40ccWfZiLQS8TRnHQpegpK1uAidatWuEqbJtbbY97A2Sezikz2AMUw==}
engines: {node: '>=20.0.0'}
'@aws-sdk/credential-provider-http@3.972.75':
resolution: {integrity: sha512-Q/uIDy8eAVN7JgSKDg16F/f+hmNJj/ZyLJN8AkW2ofVdDgJVh8fO/A26iZ7YsvM2/k76hsf/u2lLAtyXsK8Ziw==}
engines: {node: '>=20.0.0'}
'@aws-sdk/credential-provider-ini@3.973.18':
resolution: {integrity: sha512-KoyjZ9vdjuxEQ8obAH06xKP8H0WKqGhwUZLMqAOiS7G0xgUAht4X8f0ASLC/vhNLCWGblZOD3VQHWyTROGJHLg==}
engines: {node: '>=20.0.0'}
'@aws-sdk/credential-provider-login@3.972.80':
resolution: {integrity: sha512-xF9A0gaO7k+1dYPFoo69OQatA9Ov0QuDZfqE8H0FLyIoOph+mlEC+I1Qo9UULupGuDfSYh+kVpfcDSxSYf/2fg==}
engines: {node: '>=20.0.0'}
'@aws-sdk/credential-provider-node@3.972.85':
resolution: {integrity: sha512-CrFcML/xImiSlquH4W3V6Npz3aSkPXHDVciAU1JOBN0vqjmkcz9H9up2sCHQqN76J/WrT+TJ580L8h2joksQrg==}
engines: {node: '>=20.0.0'}
'@aws-sdk/credential-provider-process@3.972.73':
resolution: {integrity: sha512-tyNnT4aVuOEXmKKKZPExBi828vRd9heshobBsKF0bov5EORHSJc1AGsHOMRP57sDt+dIuVASUOywaixiX26t4g==}
engines: {node: '>=20.0.0'}
'@aws-sdk/credential-provider-sso@3.973.17':
resolution: {integrity: sha512-gxKTWaUk2gSbBOH4m3NPRfEKcGXeDAOgHr7nNG5JktR1xZLo0R+DpMjbcleoHbB0uJREOG7hjIRE635IuBWsRQ==}
engines: {node: '>=20.0.0'}
'@aws-sdk/credential-provider-web-identity@3.972.79':
resolution: {integrity: sha512-/jn0Gs/qm6fs6nTIA5yncHayybz42SATZ3rNxCEBYPJ9v69PLrDRgk07E9xTT2gpRcNmDXXbi27ZbuU06N0Z6Q==}
engines: {node: '>=20.0.0'}
'@aws-sdk/middleware-sdk-s3@3.972.78':
resolution: {integrity: sha512-W1kXIqMBkfrpVTbOOUSt63D2mEM4882TLqGWXjkZ1OcJ2ggSEWzgyjlyVDIHu/goGJSREd5s/KQ9wAgVZ0djeQ==}
engines: {node: '>=20.0.0'}
'@aws-sdk/nested-clients@3.997.47':
resolution: {integrity: sha512-bovCKvDsLocNTzaj6VrrMVJ2BGROqO0JlwcGseO67a+I9Bo+08nUJhSQfZUIx4+A4a7I4101GEJd/AYm7dQ68w==}
engines: {node: '>=20.0.0'}
'@aws-sdk/s3-request-presigner@3.1149.0':
resolution: {integrity: sha512-baBynYmUAeUkcgY/PZJJsEFzVYLhbvQo9e0kVm5NA4zmNQornvoN5FID4gaDvxZVnZjXsBEcEygjtbYg1l2gMQ==}
engines: {node: '>=20.0.0'}
'@aws-sdk/signature-v4-multi-region@3.996.48':
resolution: {integrity: sha512-cFDXfEbXaGwbnpvR/DyqfxfjxpjXVRVthQLgkwvcfDS5u3+8G9WSj1X1Ag/pTRg/QOeOno1Tq3ycEdrKsCUcOA==}
engines: {node: '>=20.0.0'}
'@aws-sdk/token-providers@3.1149.0':
resolution: {integrity: sha512-CAwYyA8eVk1w6h8YgLvkjIOakWPwURaUFrP7BRVgkxTFUM+O87thyKsGKJ6rVPbP8eoEV10cBWQ5YfaYl3qSVQ==}
engines: {node: '>=20.0.0'}
'@aws-sdk/types@3.974.6':
resolution: {integrity: sha512-v/clNZzZnDxGyvpHMOGpJKVXFAExJzUNAAjaWGdcx8QAcXLGwTaOkw33p5SHAi0YAioK32xB3hWwOekRVfmfKg==}
engines: {node: '>=20.0.0'}
'@aws-sdk/xml-builder@3.972.41':
resolution: {integrity: sha512-ctjVSyCMegrWfXlx6VqzSBFI6UqmQ5ZlnfMhdLIiWmhoH8UAQxSCP5N3OpG7X3k4LnS7ou74C4mt20+bfTW2aQ==}
engines: {node: '>=20.0.0'}
'@aws/lambda-invoke-store@0.3.0':
resolution: {integrity: sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==}
engines: {node: '>=18.0.0'}
'@babel/code-frame@7.29.7': '@babel/code-frame@7.29.7':
resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==}
engines: {node: '>=6.9.0'} engines: {node: '>=6.9.0'}
@@ -2108,6 +2190,30 @@ packages:
resolution: {integrity: sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==} resolution: {integrity: sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==}
engines: {node: '>=4'} engines: {node: '>=4'}
'@smithy/core@3.35.2':
resolution: {integrity: sha512-ejTukBuP/Pg3t9N8Ux+0zKsXeHWm7p6W3HbXFOyltKasSxZwCFmvTut7kBdZSCF3m9y1bXXyVu6p2xuMFcsTyQ==}
engines: {node: '>=18.0.0'}
'@smithy/credential-provider-imds@4.5.2':
resolution: {integrity: sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg==}
engines: {node: '>=18.0.0'}
'@smithy/fetch-http-handler@5.8.0':
resolution: {integrity: sha512-ycSJu3tFAQ4v04CBB0agqFMVsSQ1iG3yw+SpgxRqKfaURpQD4CZ8Wn0zPMmSnOuTpTh65Vz+EA0rMrw089wvkA==}
engines: {node: '>=18.0.0'}
'@smithy/node-http-handler@4.12.1':
resolution: {integrity: sha512-ThMkboGeONWXAelq9FvGsuJC4rOi+qyC4/zhUF58xYpxUg5sQKx2VXZYJmtNjr4dSuBJ1HeJXETQILCz3wOHvw==}
engines: {node: '>=18.0.0'}
'@smithy/signature-v4@5.7.4':
resolution: {integrity: sha512-tHy0K0VtqNd5Y7Y41h0a0Lhh0L1GzC08dTWg0F7vRJWFtTENg7IZikf3wQkanYIRdb7ngoIPMTmqgUi401fEeQ==}
engines: {node: '>=18.0.0'}
'@smithy/types@4.19.0':
resolution: {integrity: sha512-r7jh49VJxGerfAcTQA6gXcKc+98zOp/tqRwzYjgOE+iSQsP6cEU1hq2QzbuipmP68QtYdY9wKEhiCQZIzHgZ4Q==}
engines: {node: '>=18.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==}
@@ -2914,6 +3020,9 @@ packages:
bl@4.1.0: bl@4.1.0:
resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}
bowser@2.14.1:
resolution: {integrity: sha512-tzPjzCxygAKWFOJP011oxFHs57HzIhOEracIgAePE4pqB3LikALKnSzUyU4MGs9/iCEUuHlAJTjTc5M+u7YEGg==}
brace-expansion@1.1.21: brace-expansion@1.1.21:
resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==} resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==}
@@ -5636,6 +5745,180 @@ snapshots:
react-dom: 19.3.0(react@19.3.0) react-dom: 19.3.0(react@19.3.0)
throttle-debounce: 5.0.2 throttle-debounce: 5.0.2
'@aws-sdk/checksums@3.1001.2':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/client-s3@3.1149.0':
dependencies:
'@aws-sdk/checksums': 3.1001.2
'@aws-sdk/core': 3.978.2
'@aws-sdk/credential-provider-node': 3.972.85
'@aws-sdk/middleware-sdk-s3': 3.972.78
'@aws-sdk/signature-v4-multi-region': 3.996.48
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/fetch-http-handler': 5.8.0
'@smithy/node-http-handler': 4.12.1
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/core@3.978.2':
dependencies:
'@aws-sdk/types': 3.974.6
'@aws-sdk/xml-builder': 3.972.41
'@aws/lambda-invoke-store': 0.3.0
'@smithy/core': 3.35.2
'@smithy/signature-v4': 5.7.4
'@smithy/types': 4.19.0
bowser: 2.14.1
tslib: 2.8.1
'@aws-sdk/credential-provider-env@3.972.73':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/credential-provider-http@3.972.75':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/fetch-http-handler': 5.8.0
'@smithy/node-http-handler': 4.12.1
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/credential-provider-ini@3.973.18':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/credential-provider-env': 3.972.73
'@aws-sdk/credential-provider-http': 3.972.75
'@aws-sdk/credential-provider-login': 3.972.80
'@aws-sdk/credential-provider-process': 3.972.73
'@aws-sdk/credential-provider-sso': 3.973.17
'@aws-sdk/credential-provider-web-identity': 3.972.79
'@aws-sdk/nested-clients': 3.997.47
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/credential-provider-imds': 4.5.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/credential-provider-login@3.972.80':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/nested-clients': 3.997.47
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/credential-provider-node@3.972.85':
dependencies:
'@aws-sdk/credential-provider-env': 3.972.73
'@aws-sdk/credential-provider-http': 3.972.75
'@aws-sdk/credential-provider-ini': 3.973.18
'@aws-sdk/credential-provider-process': 3.972.73
'@aws-sdk/credential-provider-sso': 3.973.17
'@aws-sdk/credential-provider-web-identity': 3.972.79
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/credential-provider-imds': 4.5.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/credential-provider-process@3.972.73':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/credential-provider-sso@3.973.17':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/nested-clients': 3.997.47
'@aws-sdk/token-providers': 3.1149.0
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/credential-provider-web-identity@3.972.79':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/nested-clients': 3.997.47
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/middleware-sdk-s3@3.972.78':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/signature-v4-multi-region': 3.996.48
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/nested-clients@3.997.47':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/signature-v4-multi-region': 3.996.48
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/fetch-http-handler': 5.8.0
'@smithy/node-http-handler': 4.12.1
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/s3-request-presigner@3.1149.0':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/signature-v4-multi-region': 3.996.48
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/signature-v4-multi-region@3.996.48':
dependencies:
'@aws-sdk/types': 3.974.6
'@smithy/signature-v4': 5.7.4
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/token-providers@3.1149.0':
dependencies:
'@aws-sdk/core': 3.978.2
'@aws-sdk/nested-clients': 3.997.47
'@aws-sdk/types': 3.974.6
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/types@3.974.6':
dependencies:
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws-sdk/xml-builder@3.972.41':
dependencies:
'@smithy/types': 4.19.0
tslib: 2.8.1
'@aws/lambda-invoke-store@0.3.0': {}
'@babel/code-frame@7.29.7': '@babel/code-frame@7.29.7':
dependencies: dependencies:
'@babel/helper-validator-identifier': 7.29.7 '@babel/helper-validator-identifier': 7.29.7
@@ -7368,6 +7651,39 @@ snapshots:
'@sindresorhus/is@0.7.0': {} '@sindresorhus/is@0.7.0': {}
'@smithy/core@3.35.2':
dependencies:
'@smithy/types': 4.19.0
tslib: 2.8.1
'@smithy/credential-provider-imds@4.5.2':
dependencies:
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@smithy/fetch-http-handler@5.8.0':
dependencies:
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@smithy/node-http-handler@4.12.1':
dependencies:
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@smithy/signature-v4@5.7.4':
dependencies:
'@smithy/core': 3.35.2
'@smithy/types': 4.19.0
tslib: 2.8.1
'@smithy/types@4.19.0':
dependencies:
tslib: 2.8.1
'@standard-schema/spec@1.1.0': {} '@standard-schema/spec@1.1.0': {}
'@stencil/core@2.22.3': {} '@stencil/core@2.22.3': {}
@@ -8305,6 +8621,8 @@ snapshots:
inherits: 2.0.4 inherits: 2.0.4
readable-stream: 3.6.2 readable-stream: 3.6.2
bowser@2.14.1: {}
brace-expansion@1.1.21: brace-expansion@1.1.21:
dependencies: dependencies:
balanced-match: 1.0.2 balanced-match: 1.0.2