diff --git a/.dockerignore b/.dockerignore index bc16e55..5989a89 100644 --- a/.dockerignore +++ b/.dockerignore @@ -18,3 +18,7 @@ __pycache__ node_modules evidence .DS_Store +.pnpm-store +dist +src/generated +*.tsbuildinfo diff --git a/.env.example b/.env.example index d99d26a..3c0f970 100644 --- a/.env.example +++ b/.env.example @@ -14,7 +14,25 @@ IDEMPOTENCY_TTL_SECONDS=86400 S3_ENDPOINT=http://s3:9000 S3_REGION=us-east-1 S3_BUCKET=messenger-attachments +# Compose: root is used only by RustFS and the one-shot bootstrap. +S3_ROOT_ACCESS_KEY_ID=LABSTORAGE +S3_ROOT_SECRET_ACCESS_KEY=local_app_storage_password +S3_API_ACCESS_KEY_ID=LABAPI +S3_API_SECRET_ACCESS_KEY=local_api_storage_password +S3_RECONCILER_ACCESS_KEY_ID=LABRECONCILER +S3_RECONCILER_SECRET_ACCESS_KEY=local_reconciler_storage_password +# Running outside Compose: files must contain the selected restricted role's keys. S3_ACCESS_KEY_ID_FILE=/run/secrets/s3_access_key_id S3_SECRET_ACCESS_KEY_FILE=/run/secrets/s3_secret_access_key MAX_UPLOAD_BYTES=10485760 MAX_IMAGE_PIXELS=40000000 +# Total time to receive an upload body, even if bytes continue arriving. +UPLOAD_BODY_TIMEOUT_MS=15000 +S3_PUBLIC_PORT=9000 +S3_PUBLIC_ENDPOINT=http://127.0.0.1:9000 +DIRECT_UPLOAD_TTL_SECONDS=60 +# Optional per-stage upload diagnostics; keep disabled outside experiments. +UPLOAD_MEMORY_PROFILE=0 +# S3 orphan cleanup: grace period and pause between reconciliation passes. +ORPHAN_GRACE_SECONDS=600 +RECONCILE_INTERVAL_SECONDS=60 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..481b0c1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +infra/*.sh text eol=lf +scripts/*.sh text eol=lf +scripts/*.cmd text eol=crlf diff --git a/.oxlintrc.json b/.oxlintrc.json new file mode 100644 index 0000000..fd93265 --- /dev/null +++ b/.oxlintrc.json @@ -0,0 +1,11 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "ignorePatterns": ["src/generated/**"], + "rules": { + "typescript/no-explicit-any": "off", + "typescript/no-floating-promises": "error" + }, + "env": { + "node": true + } +} diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..a20502b --- /dev/null +++ b/.prettierrc @@ -0,0 +1,4 @@ +{ + "singleQuote": true, + "trailingComma": "all" +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c2a502c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,64 @@ +FROM node:24.20.0-bookworm-slim AS base + +WORKDIR /app +RUN apt-get update \ + && apt-get install -y --no-install-recommends openssl \ + && rm -rf /var/lib/apt/lists/* +RUN npm install --global pnpm@10.14.0 + +FROM base AS dependencies + +COPY package.json pnpm-lock.yaml ./ +RUN pnpm install --frozen-lockfile + +FROM dependencies AS migrate + +COPY prisma ./prisma +COPY prisma.config.ts ./ +CMD ["pnpm", "db:deploy"] + +FROM migrate AS build + +COPY nest-cli.json tsconfig.json tsconfig.build.json ./ +COPY src ./src +RUN pnpm build + +FROM base AS production-dependencies + +COPY package.json pnpm-lock.yaml ./ +RUN pnpm install --prod --frozen-lockfile + +FROM production-dependencies AS storage-init + +COPY infra/rustfs ./infra/rustfs +CMD ["node", "infra/rustfs/bootstrap.mjs"] + +FROM node:24.20.0-bookworm-slim AS runtime + +RUN apt-get update \ + && apt-get install -y --no-install-recommends curl \ + && rm -rf /var/lib/apt/lists/* + +ENV NODE_ENV=production \ + APP_HOST=0.0.0.0 \ + APP_PORT=8080 + +WORKDIR /app + +RUN groupadd --system --gid 10001 app \ + && useradd --system --uid 10001 --gid app --home-dir /app --shell /usr/sbin/nologin app + +RUN mkdir -p /app/data && chown 10001:10001 /app/data + +COPY --from=production-dependencies --chown=10001:10001 /app/node_modules ./node_modules +COPY --from=build --chown=10001:10001 /app/dist ./dist +COPY --from=build --chown=10001:10001 /app/package.json ./package.json +COPY --chown=10001:10001 contracts ./contracts + +USER 10001:10001 +EXPOSE 8080 + +HEALTHCHECK --interval=30s --timeout=3s --start-period=15s --retries=3 \ + CMD curl --fail --silent --show-error --max-time 2 --output /dev/null "http://127.0.0.1:${APP_PORT:-8080}/health/ready" + +CMD ["node", "dist/main.js"] diff --git a/Dockerfile.example b/Dockerfile.example deleted file mode 100644 index e333a12..0000000 --- a/Dockerfile.example +++ /dev/null @@ -1,8 +0,0 @@ -# Teaching outline, not a runnable Dockerfile. Implement your own Dockerfile. -# 1. Choose a runtime/toolchain version and pin the base image tag/digest. -# 2. Copy dependency manifests first; install from the language lockfile. -# 3. Copy source and build. For compiled languages use a separate runtime stage. -# 4. Run the HTTP process as PID 1; listen on 0.0.0.0:8080. -# 5. Add non-root, signals and healthcheck according to the current rubric. -# 6. Pass runtime config/secrets at startup, never COPY .env or secret files. -# This file deliberately has no FROM/CMD: selecting/implementing them is the task. diff --git a/REPORT.md b/REPORT.md index 9ad2b84..df0d475 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,37 +1,186 @@ # Отчёт — лабораторная 4 -- Автор, группа: TODO -- Целевая оценка; выбранный трек 5, если нужен: TODO -- Commit/PR: TODO после публикации -- Использованные источники, библиотеки и помощь ИИ: TODO +- Автор, группа: **Пинаев Олег Константинович, БПИ2302**. +- Целевая оценка: **5, трек 1 — прямой upload по presigned URL**. +- Версия: локальная реализация, PR пока не опубликован. Образы API и SHA-256 исходников/конфигурации на момент проверки сохранены в [final-regression.json](evidence/final-regression.json). После проверки оформлены отчёт и документация, удалены устаревшие результаты; код приложения не менялся. +- Источники: `README.md`, `COURSE.md`, `contracts/`, документация Node.js, Nginx, Sharp, AWS S3 и RustFS. ИИ использовался при разработке, подготовке проверок, замеров и отчёта. ## Запуск из чистого clone -TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных. +Нужны Docker Desktop с Linux-контейнерами и Compose, Python **3.9+**, Node.js **24.20.0**, pnpm **10.14.0**. На Windows restart-hook использует Git Bash; при нестандартной установке задаётся `GIT_BASH`. Наблюдатели памяти используют Linux `/proc` и cgroup v2 внутри контейнеров. + +Образы закреплены: `node:24.20.0-bookworm-slim`, `postgres:17.6-bookworm`, `redis:7.4.5-alpine`, `nginx:1.30.6-alpine`, `rustfs/rustfs:1.0.4`. Приложение — NestJS 12 / Fastify 5, Prisma 7.10.0, Sharp 0.35.5; конкретные зависимости закреплены в `pnpm-lock.yaml`. + +```sh +cp .env.example .env +pnpm install --frozen-lockfile +docker compose --env-file .env config --quiet +docker compose --env-file .env up -d --build --wait --wait-timeout 180 +chmod +x scripts/restart.sh scripts/stop-one.sh +python -X utf8 test/final-regression.py +``` + +`migrate` применяет миграции PostgreSQL. Одноразовый `s3-init` создаёт приватный bucket и ограниченные роли. API ждут миграции, хранилища и bootstrap; Nginx и reconciler — готовность API. Повторный bootstrap идемпотентен. Перед проверками должны быть healthy все семь runtime-контейнеров и доступны обе API через `/health/ready`. При обновлении существующего стенда возможен переходный unhealthy Nginx во время смены upstream; runner ждёт фактического восстановления маршрутов. + +API доступен на **http://127.0.0.1:8080**, документация — `/swagger` и `/docs`, OpenAPI — `/swagger-json`. **127.0.0.1:9000** — отдельный listener Nginx для presigned PUT, не открытая консоль RustFS. + +| Настройка | Фактическое использование | +| --- | --- | +| `APP_PORT` | Публичный порт Nginx; внутри API всегда 8080 | +| `S3_PUBLIC_PORT`, `S3_PUBLIC_ENDPOINT` | Listener PUT и origin подписи; адрес и порт должны совпадать | +| `S3_ENDPOINT`, `S3_REGION`, `S3_BUCKET` | В Compose закреплены как `http://s3:9000`, `us-east-1`, `messenger-attachments`; одноимённые поля примера не переопределяют эти константы | +| `POSTGRES_DB/USER/PASSWORD` | Общая БД; Compose собирает `DATABASE_URL`, адрес Redis задаёт через `CACHE_URL` | +| `SESSION_TTL_SECONDS`, `IDEMPOTENCY_TTL_SECONDS` | По умолчанию 3600 и 86400 с; сессии и идемпотентность хранятся в PostgreSQL | +| `DB_POOL_MAX`, `CACHE_PREFIX` | По умолчанию 15 соединений на API и общее пространство ключей Redis; у сверщика пул 2 | +| `S3_ROOT_*`, `S3_API_*`, `S3_RECONCILER_*` | Раздельные credentials bootstrap, API и сверщика | +| `MAX_UPLOAD_BYTES`, `MAX_IMAGE_PIXELS` | Не более 10485760 байт и 40000000 пикселей; можно уменьшить | +| `UPLOAD_BODY_TIMEOUT_MS` | Общий срок приёма тела, по умолчанию 15000 мс | +| `DIRECT_UPLOAD_TTL_SECONDS` | Максимальный срок URL, по умолчанию 60 с, допустимо 1–300 с | +| `ORPHAN_GRACE_SECONDS`, `RECONCILE_INTERVAL_SECONDS` | Grace 600 с и пауза между проходами 60 с | +| `UPLOAD_MEMORY_PROFILE` | `0` штатно; `1` только для подробного эксперимента | + ## Архитектура и решения -TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab3, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации. +```mermaid +flowchart LR + C[Клиент] --> N[Nginx: API] + N --> A1[API 1] + N --> A2[API 2] + A1 --> P[(PostgreSQL)] + A2 --> P + A1 --> R[(Redis: общий кеш)] + A2 --> R + A1 --> S[(RustFS: приватный bucket)] + A2 --> S + C --> U[Nginx: presigned PUT] + U --> S + W[Reconciler] --> P + W --> S +``` + +### Proxy upload и скачивание + +`POST /api/v1/chats/{chat_id}/attachments` принимает сырые PNG/JPEG. Fastify собирает ограниченный Buffer; сервис проверяет участие в чате, filename, фактический формат и MIME. Sharp сначала читает размеры и число страниц, отклоняет более 40 млн пикселей, затем выполняет полное декодирование через `stats()`. Оригинал не перекодируется. Пустые имена, `/`, `\` и управляющие символы отклоняются; filename не используется как S3-путь. + +Сервер назначает ключ `originals//`. API сохраняет объект, считает SHA-256 и записывает метаданные в PostgreSQL; только после успеха возвращает **201 ready**, `variants=[]`, `error_code=null`. Вложение прикрепляется к сообщению через `attachment_ids`. Чужое/неизвестное вложение и файл другого чата дают 404; другое содержимое с прежним Idempotency-Key — 409. + +`GET /api/v1/attachments/{id}/content` проверяет членство в чате и передаёт поток RustFS клиенту, без сбора целого файла в Buffer и без redirect. Bucket приватен, анонимный GET проверяется отдельно. + +Приём тела ограничен 15 с с заголовков; новые байты не продлевают срок. Таймер снимается после получения тела, проверка и запись имеют отдельные бюджеты. При обрыве неполное тело не попадает в сервис вложений. Для раннего 413 остаток тела ограниченно вычитывается и отбрасывается перед ответом: закрытие upstream не должно превращать 413 в 502 у Nginx. Discard ограничен объёмом и оставшимся исходным сроком приёма, остаток не собирается в память. Нормальный upload по-прежнему использует Buffer до 10 MiB. + +### Согласованность PostgreSQL и RustFS + +Распределённой атомарной транзакции между ними нет. Upload держит транзакционную advisory-блокировку по object key от PUT до завершения метаданных. При ошибке выполняется компенсация под той же блокировкой: повторная проверка записи, возврат уже подтверждённого вложения либо удаление неучтённого объекта. Ошибка БД не трактуется как отсутствие метаданных. + +Отдельный `reconciler` выполняет последовательные проходы; после завершения прохода ждёт 60 с. Grace — 10 минут. Сверщик рассматривает только управляемые UUID-ключи, проверяет БД, возраст, блокировку и свежий HEAD, затем повторно проверяет метаданные перед DELETE. Свежие и связанные объекты сохраняются. Отсутствующий файл существующего Attachment диагностируется, метаданные автоматически не удаляются. Есть dry-run и повторяемый apply. Успех обновляет health-marker, ошибка снимает готовность сверщика. + +Транзакция работы с объектом ограничена 20 с, ожидание транзакции — 5 с, idle-транзакция — 15 с. Подключение и SQL — 5 с. S3-операции имеют собственные таймауты; direct-чтение в файл — бюджет 15 с. Падение писателя освобождает транзакционную блокировку. + +### Presigned upload: трек 1 + +Клиент считает SHA-256 и вызывает `POST /api/v1/chats/{chat_id}/attachment-uploads` с filename, MIME, размером и checksum. API проверяет доступ, резервирует ожидаемую загрузку в БД и выдаёт короткий PUT URL. Ключ уникален: `staging//`. Подпись связывает ключ, Content-Length, Content-Type, SHA-256 и `If-None-Match: *`; больший TTL клиент запросить не может. + +Байты идут через специальный listener Nginx в RustFS, минуя NestJS. Затем владелец вызывает `complete`. API снова проверяет доступ и срок, потоково читает объект во временный файл, ограничивает длину и считает SHA-256, проверяет изображение через Sharp. Условный серверный COPY публикует `originals`; в одной транзакции PostgreSQL создаётся ready Attachment и разрешение отмечается completed. Временный файл удаляется и не является хранилищем готового оригинала. + +Повтор complete возвращает тот же Attachment. Конкурирующий complete может получить 409 и повториться с прежним ID. Staging и original разделены: повтор PUT по ещё действующей ссылке не меняет готовое вложение. Неверные размер/hash дают 400/413, изображение — 415; нет файла или срок истёк — 409. Старый staging удаляется после истечения разрешения и grace; история разрешений остаётся в БД. + +API получает CRUD для `originals/*` и `staging/*`, без LIST. Сверщик получает ограниченный LIST/GET/HEAD/DELETE, без PUT. Root доступен только RustFS и bootstrap. Listener PUT пропускает только PUT/OPTIONS на staging-пути. ## Доказательства критериев -| Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства | -| --- | --- | --- | --- | -| Публичный smoke | make test | TODO | TODO | -| Остальные пункты уровня 3 | TODO | TODO | TODO | -| Все пункты уровня 4, если заявлен | TODO | TODO | TODO | -| Выбранный трек 5, если заявлен | TODO | TODO | TODO | -TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены. +| Критерий | Команда/сценарий | Результат / доказательство | +| --- | --- | --- | +| Структура и ссылки | `python -X utf8 scripts/check_contract.py` | PASS, офлайн-проверка отдельно от приложения | +| Сборка, линтер, unit | `docker compose build`, `pnpm lint`, `pnpm test --runInBand` | Образы собраны; линтер PASS, 9 suites / **47 tests** PASS | +| Обязательный API | `tests/smoke.py --base-url http://127.0.0.1:8080` до и после отказов | PASS: сессии, сообщения, идемпотентность, файл, SHA-256, запрет постороннему | +| Форматы и лимиты | `test/attachments.py --lifecycle` | PNG/JPEG побайтно; неверные MIME/изображения/filename, >10 MiB и >40 млн пикселей отклонены | +| Ответ на большой body | `test/oversized-uploads.py` | **16** Content-Length/chunked-запросов → канонический 413; обе API, следующая загрузка работает. [JSON](evidence/oversized-uploads.json) | +| ACL и связь с сообщением | `test/attachments.py --lifecycle` | Чужой ID/чат — 404; дубли ID — 400, конфликт idem-key — 409 | +| Приватность и отказ S3 | `test/attachments.py --lifecycle` | Анонимный GET — 403; при остановке S3 metadata — 200, content/upload/readiness API — 503; LB исключает неготовые API; после восстановления оригинал доступен | +| Сохранность после restart | `test/hooks.py`, публичный persistence-hook | Все **7 runtime** действительно перезапущены, ID контейнеров сохранены, прежние данные/сессия/файл доступны. [Состояния](evidence/hooks.json) | +| Отказ каждой API | `test/hooks.py`, публичный failover-hook | Обе API остановлены по отдельности, другие сервисы не перезапускались; запись восстановилась за **4,206 / 4,127 с**, подтверждённые сообщения сохранены, без дублей | +| Download другой репликой, Swagger | `test/replicas.py --base-url http://127.0.0.1:8080` | Канонические пути/схемы на обеих API; файл и idem-replay доступны после остановки загрузившей реплики | +| Обрыв и deadline | `test/upload-interruption.py` | PASS на обеих API и Nginx: нет bytes/metadata после обрыва, медленная передача → 408, следующий upload/download работает. [JSON](evidence/upload-interruption.json) | +| Сбой между PUT и БД, очистка | `test/run-reconcile.py` | Реальное завершение writer после PUT, DB outage, dry-run/apply, orphan-delete, защита активного/свежего/связанного, повтор и missing-report — PASS | +| Ограниченные S3-роли | `test/s3-permissions.mjs` через `s3-init` | API без LIST, scanner без PUT; чужие bucket/префиксы, IAM и bucket policy запрещены; anonymous access закрыт | +| Presigned и негативные сценарии | `test/direct-uploads.py` | ACL, подпись/заголовки/checksum, PNG/JPEG/MIME/pixels, expiry, concurrent/replay complete, staging cleanup и proxy — PASS. [JSON](evidence/direct-uploads.json) | +| Гарантии выбранного S3 | `test/s3-direct-capabilities.mjs` через `s3-init` | RustFS 1.0.4 проверяет SHA-256, create-only PUT и условный COPY | +| ≥10 upload и RAM | `test/direct-upload-load.py` | **128/128** upload/download, без ошибок, OOM и рестартов API; точный прогрев. [JSON](evidence/direct-upload-load.json) | +| Трек 1: ≥2 размера, сеть и RAM | `test/direct-upload-benchmark.py --restart-api --rounds 2` | 24 измеряемых upload, два размера, полный flow, RSS и RX+TX. [JSON](evidence/direct-upload-benchmark-restarted.json) | + ## Эксперименты и отказы -TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения. +### Гипотеза и среда + +Гипотеза: прямой PUT с серверным COPY уменьшит трафик API; при параллельных больших upload отсутствие нескольких полных входных Buffer должно уменьшить пик памяти. Проверка изображения остаётся на API, поэтому нулевой трафик и гарантированное снижение RSS одиночного запроса не ожидаются. + +Вход — детерминированные плохо сжимаемые PNG: **512×512, 787247 байт (~0,75 MiB)** и **1792×1792, 9638577 байт (~9,19 MiB)**. Две API во всех вариантах; PG/Redis/RustFS между сериями не перезапускаются. У direct измеряется весь flow: выдача URL, PUT и complete. Скачивания выполняются после измерения. Прозрачных повторов запросов нет. + +Основная память — RSS **главного Node-процесса API**, отдельно по репликам, через `/proc//status` каждые 50 мс. Наблюдатели в эту RSS не входят. Cgroup memory контейнера, включающая наблюдатель и файловый кеш, сохраняется отдельно. Табличный RSS — наибольший наблюдавшийся пик **одной** реплики. Сеть — RX+TX обеих API, включая БД/S3 и healthchecks. + +### Последовательный upload: два размера + +Перед каждой серией обе API перезапускаются; четыре прогревочные загрузки со скачиванием, подтверждён прогрев обеих API. Затем три измеряемые загрузки. Два раунда, во втором порядок режимов обратный. Все восемь серий прошли: **24/24**, без OOM, исходные байты проверены, fixtures удалены. Диапазоны ниже — по двум раундам, трафик на три файла. + +| Файл | Proxy RX+TX, MiB | Direct RX+TX, MiB | Proxy RSS, MiB | Direct RSS, MiB | +| --- | ---: | ---: | ---: | ---: | +| 0,75 MiB | 4,555–4,572 | 2,325–2,330 | 190,12–192,58 | 195,95–198,17 | +| 9,19 MiB | 55,510–55,861 | 27,687–27,750 | 233,62–238,40 | 245,64–248,80 | + +Трафик API сократился примерно вдвое. Direct исключает передачу клиентского файла через API в S3, но API читает его из S3 для проверки; публикация — server-side COPY. **Снижение RSS в последовательной серии не подтвердилось:** у direct пик был выше. Этот результат не подменяется более удачным последующим прогоном. + +### Конкуренция 1 / 5 / 10 + +Большой файл, два раунда с обратным порядком, по две волны каждого уровня. Перед каждым случаем API перезапускаются; временный docker-exec клиент делает **ровно две** прогревочные загрузки/скачивания на каждой API по внутреннему адресу и завершается. Измеряемые запросы идут через публичный Nginx. Адресный прогрев устраняет ситуацию, когда все complete при обычной последовательности запросов попадали на одну реплику. + +Все клиенты отправляют заголовки и незавершённое тело до барьера, затем порциями передают остаток за 2 с. У direct второй барьер одновременно выпускает complete и нагружает проверку изображений API. Это closed-loop волны с pacing, не постоянный arrival rate и не поиск предельной производительности. + +| Одновременных загрузок всего | Proxy RSS, MiB | Direct RSS, MiB | +| --- | ---: | ---: | +| 1 | 244,19–252,16 | 240,58–242,36 | +| 5 | 301,10–303,25 | 264,11–273,75 | +| 10 | 369,99–379,35 | 296,47–313,26 | + +Все **128 загрузок и 128 скачиваний** прошли; ошибок, OOM и рестартов API внутри серии нет. При N=10 каждая API завершила по 10 загрузок за две волны. Direct снизил пик одной API на **10–12% при N=5**, **17–20% при N=10**, в обоих раундах. Максимальный прирост от прогретого baseline при N=10 — **149,93–150,64 MiB** у proxy против **71,76–84,69 MiB** у direct. + +| N=10, раунды 1 / 2 | Proxy | Direct | +| --- | ---: | ---: | +| Успешных upload/с | 0,868 / 1,144 | 0,830 / 0,760 | +| p50 полного времени, с | 11,082 / 8,257 | 11,782 / 12,860 | +| p95, с | 13,762 / 10,847 | 12,011 / 13,849 | +| p99, с | 13,806 / 10,851 | 12,075 / 13,949 | + + +### Разбор расхода памяти + +Дополнительно сняты 24 HTTP-upload по этапам и **48 вызовов реального валидатора** в 16 свежих процессах: Buffer/файл, обычный/выключенный кеш Sharp, два размера и два раунда. Принудительная GC и очистка кеша выполнялись только после измеряемой серии в отдельном процессе; в рабочем API их нет. + +Для большого файла медиана прироста `arrayBuffers` при приёме proxy — **18,38 MiB**, при direct-чтении S3 — **9,04 MiB**. Основной скачок RSS на `Sharp.stats()` — около **9,88 / 9,75 MiB**, при почти неизменной JS-куче. В изолированном валидаторе с обычным кешем RSS — **162,64–167,71 MiB для Buffer** против **130,26–149,82 MiB для файла**. После диагностической GC буферы уменьшались с ~9,35 до 0,16 MiB; RSS даже после очистки кеша не всегда падала. + +Поток уменьшает необходимость держать целые входные Buffer, но не устраняет декодирование и удержание выделенной памяти. Наблюдение само меняет тайминги: в профилированной HTTP-серии порядок RSS-пиков был противоположен последовательной серии без профиля. Экономия под нагрузкой подтверждается отдельным N=1/5/10 прогоном **без** внутреннего профилировщика. + +### Отказы + +| Воздействие | Ожидание | Наблюдение | +| --- | --- | --- | +| Остановка API | Запись восстановится ≤10 с, данные/сессия сохранятся | PASS для обеих: 4,206 / 4,127 с, 1 / 2 переходные ошибки, подтверждённые записи сохранены | +| Полный restart | Те же данные и токен после рестарта всех хранилищ | PASS; StartedAt изменился у всех семи runtime, ID контейнеров сохранены | +| Остановка RustFS | Readiness/upload/content — 503, metadata доступны | PASS; после восстановления оригинал скачивается побайтно | +| Writer завершён после PUT до БД | Orphan будет обнаружен и безопасно удалён | PASS: dry-run не удаляет, apply удаляет, повтор безопасен | +| БД недоступна при сверке | Ошибка не означает «объект ничей» | PASS, небезопасного удаления нет | +| Пропали байты существующего Attachment | Диагностика без удаления метаданных | PASS, missing отражён в отчёте | +| Обрыв / медленная передача | Нет неполного вложения, срок приёма ограничен | PASS на обеих API и Nginx, 408, следующий upload/download успешен | +| Истёкшая/подменённая подпись | Не публиковать вложение | PASS: PUT отклонён, expired complete — 409, старый staging очищается | +| Повтор PUT/complete после публикации | Оригинал не изменится | PASS: create-only PUT, идемпотентный complete, исходные байты сохранены | -| Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных | -| --- | --- | --- | --- | -| TODO | TODO | TODO | TODO | ## Ограничения и следующие шаги -TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза. +Proxy буферизует до 10 MiB и не является сквозным streaming upload. Sharp расходует память декодированных пикселей. Grace не заменяет контроль писателей: прямые изменения S3/БД в обход блокировок не поддерживаются. Сбой между хранилищами может оставить объект до следующей безопасной сверки. История разрешений direct сохраняется; отдельная политика её хранения не реализована. + +Серии локальные и короткие: два раунда, общие фоновые процессы/кеши, периодическое сэмплирование, генератор на том же хосте. Быстрые пики могли быть пропущены; это наблюдавшиеся значения, не верхняя граница RAM. Общая память RustFS/ОС/стенда не объявляется сэкономленной. Длительная нагрузка, большие чаты и другая машина этими сериями не проверены. + +Итог исследования: direct примерно вдвое уменьшил трафик API на двух размерах. При последовательном upload преимущества RSS нет; при десяти одновременных больших upload пик одной API снизился на 17–20% в обоих раундах, все запросы успешны. Следующий шаг — больше повторов на выделенном хосте, независимый генератор и профиль нативных выделений декодера. diff --git a/compose.example.yaml b/compose.example.yaml deleted file mode 100644 index 76a785f..0000000 --- a/compose.example.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# Topology worksheet, deliberately NOT a runnable stack (no application supplied). -# Implement compose.yaml or stack.yaml; do not submit this empty file as deployment. -# Service names below are logical roles, not imposed container names. -x-lab-number: 4 -x-required-roles: - - api - - postgres - - load_balancer - - s3 -# TODO: implement real images/builds, network wiring, volumes, healthchecks, -# credentials and bootstrap. Details: contracts/infrastructure.json and README.md. -services: {} diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..7ba90c4 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,189 @@ +services: + api: + build: + context: . + target: runtime + restart: unless-stopped + init: true + deploy: + replicas: 2 + command: ['sh', '-c', 'INSTANCE_ID=$$(hostname) exec node dist/main.js'] + environment: + NODE_ENV: production + UPLOAD_MEMORY_PROFILE: ${UPLOAD_MEMORY_PROFILE:-0} + APP_ENV: ${APP_ENV:-lab} + APP_HOST: 0.0.0.0 + APP_PORT: 8080 + DATABASE_URL: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-local_dev_password}@postgres:5432/${POSTGRES_DB:-chat} + DB_POOL_MAX: ${DB_POOL_MAX:-15} + CACHE_URL: redis://redis:6379/0 + CACHE_PREFIX: ${CACHE_PREFIX:-messenger:cache:v1} + SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600} + IDEMPOTENCY_TTL_SECONDS: ${IDEMPOTENCY_TTL_SECONDS:-86400} + S3_ENDPOINT: http://s3:9000 + S3_REGION: us-east-1 + S3_BUCKET: messenger-attachments + S3_PUBLIC_ENDPOINT: ${S3_PUBLIC_ENDPOINT:-http://127.0.0.1:${S3_PUBLIC_PORT:-9000}} + DIRECT_UPLOAD_TTL_SECONDS: ${DIRECT_UPLOAD_TTL_SECONDS:-60} + S3_ACCESS_KEY_ID: ${S3_API_ACCESS_KEY_ID:-LABAPI} + S3_SECRET_ACCESS_KEY: ${S3_API_SECRET_ACCESS_KEY:-local_api_storage_password} + MAX_UPLOAD_BYTES: ${MAX_UPLOAD_BYTES:-10485760} + MAX_IMAGE_PIXELS: ${MAX_IMAGE_PIXELS:-40000000} + UPLOAD_BODY_TIMEOUT_MS: ${UPLOAD_BODY_TIMEOUT_MS:-15000} + depends_on: + migrate: + condition: service_completed_successfully + postgres: + condition: service_healthy + redis: + condition: service_healthy + s3-init: + condition: service_completed_successfully + healthcheck: + test: + - CMD + - curl + - --fail + - --silent + - --show-error + - --max-time + - '2' + - --output + - /dev/null + - http://127.0.0.1:8080/health/ready + interval: 10s + timeout: 3s + start_period: 20s + retries: 5 + stop_grace_period: 30s + + reconciler: + build: + context: . + target: runtime + command: ['node', 'dist/Attachment/reconcile.cli.js', '--watch', '--apply'] + restart: unless-stopped + init: true + environment: + NODE_ENV: production + DATABASE_URL: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-local_dev_password}@postgres:5432/${POSTGRES_DB:-chat} + DB_POOL_MAX: 2 + S3_ENDPOINT: http://s3:9000 + S3_REGION: us-east-1 + S3_BUCKET: messenger-attachments + S3_ACCESS_KEY_ID: ${S3_RECONCILER_ACCESS_KEY_ID:-LABRECONCILER} + S3_SECRET_ACCESS_KEY: ${S3_RECONCILER_SECRET_ACCESS_KEY:-local_reconciler_storage_password} + ORPHAN_GRACE_SECONDS: ${ORPHAN_GRACE_SECONDS:-600} + RECONCILE_INTERVAL_SECONDS: ${RECONCILE_INTERVAL_SECONDS:-60} + depends_on: + api: + condition: service_healthy + healthcheck: + test: ['CMD', 'node', 'dist/Attachment/reconcile-health.js'] + interval: 10s + timeout: 5s + start_period: 30s + retries: 5 + stop_grace_period: 30s + + nginx: + image: nginx:1.30.6-alpine + restart: unless-stopped + ports: + - '127.0.0.1:${APP_PORT:-8080}:80' + - '127.0.0.1:${S3_PUBLIC_PORT:-9000}:9000' + volumes: + - ./infra/nginx.conf:/etc/nginx/nginx.conf:ro + - ./infra/start-nginx.sh:/etc/nginx/start-nginx.sh:ro + entrypoint: ['/bin/sh', '/etc/nginx/start-nginx.sh'] + depends_on: + api: + condition: service_healthy + healthcheck: + test: ['CMD', 'wget', '-q', '-T', '2', '-t', '1', '-O', '/dev/null', 'http://127.0.0.1/health/ready'] + interval: 5s + timeout: 3s + start_period: 10s + retries: 5 + + migrate: + build: + context: . + target: migrate + environment: + DATABASE_URL: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-local_dev_password}@postgres:5432/${POSTGRES_DB:-chat} + depends_on: + postgres: + condition: service_healthy + + postgres: + image: postgres:17.6-bookworm + restart: unless-stopped + environment: + POSTGRES_DB: ${POSTGRES_DB:-chat} + POSTGRES_USER: ${POSTGRES_USER:-app} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-local_dev_password} + volumes: + - postgres_data:/var/lib/postgresql/data + healthcheck: + test: ['CMD-SHELL', 'pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB"'] + interval: 5s + timeout: 3s + start_period: 10s + retries: 10 + stop_grace_period: 30s + + redis: + image: redis:7.4.5-alpine + restart: unless-stopped + command: + ['redis-server', '--appendonly', 'yes', '--appendfsync', 'everysec'] + volumes: + - redis_data:/data + healthcheck: + test: ['CMD', 'redis-cli', 'ping'] + interval: 5s + timeout: 3s + retries: 10 + stop_grace_period: 30s + + s3: + image: rustfs/rustfs:1.0.4 + restart: unless-stopped + environment: + RUSTFS_ACCESS_KEY: ${S3_ROOT_ACCESS_KEY_ID:-${S3_ACCESS_KEY_ID:-LABSTORAGE}} + RUSTFS_SECRET_KEY: ${S3_ROOT_SECRET_ACCESS_KEY:-${S3_SECRET_ACCESS_KEY:-local_app_storage_password}} + RUSTFS_VOLUMES: /data + RUSTFS_ADDRESS: 0.0.0.0:9000 + RUSTFS_CONSOLE_ENABLE: 'false' + volumes: + - s3_data:/data + healthcheck: + test: ['CMD', 'curl', '--fail', '--silent', 'http://127.0.0.1:9000/health'] + interval: 5s + timeout: 3s + retries: 10 + start_period: 30s + + s3-init: + build: + context: . + target: storage-init + environment: + S3_ENDPOINT: http://s3:9000 + S3_REGION: us-east-1 + S3_BUCKET: messenger-attachments + S3_ACCESS_KEY_ID: ${S3_ROOT_ACCESS_KEY_ID:-${S3_ACCESS_KEY_ID:-LABSTORAGE}} + S3_SECRET_ACCESS_KEY: ${S3_ROOT_SECRET_ACCESS_KEY:-${S3_SECRET_ACCESS_KEY:-local_app_storage_password}} + S3_API_ACCESS_KEY_ID: ${S3_API_ACCESS_KEY_ID:-LABAPI} + S3_API_SECRET_ACCESS_KEY: ${S3_API_SECRET_ACCESS_KEY:-local_api_storage_password} + S3_RECONCILER_ACCESS_KEY_ID: ${S3_RECONCILER_ACCESS_KEY_ID:-LABRECONCILER} + S3_RECONCILER_SECRET_ACCESS_KEY: ${S3_RECONCILER_SECRET_ACCESS_KEY:-local_reconciler_storage_password} + depends_on: + s3: + condition: service_healthy + +volumes: + postgres_data: + redis_data: + s3_data: diff --git a/evidence/direct-upload-benchmark-restarted.json b/evidence/direct-upload-benchmark-restarted.json new file mode 100644 index 0000000..b1cac52 --- /dev/null +++ b/evidence/direct-upload-benchmark-restarted.json @@ -0,0 +1,491 @@ +{ + "status": "passed", + "repeats": 3, + "rounds": 2, + "restartApiBeforeCase": true, + "warmupUploadsPerCase": 4, + "cases": [ + { + "round": 1, + "mode": "proxy", + "sidePixels": 512, + "fileBytes": 787247, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T17:33:36.551142187Z", + "healthy 2026-11-11T17:33:36.531080027Z" + ], + "warmupInstances": [ + "25bc3a55a217", + "f44d705c0959" + ], + "successfulUploads": 3, + "elapsedSeconds": 0.4835730000049807, + "memory": [ + { + "instance": "f44d705c0959", + "event": "summary", + "pid": 8, + "baselineRssBytes": 197386240, + "sampledPeakRssBytes": 199352320, + "finalRssBytes": 199352320, + "baselineCgroupBytes": 148238336, + "sampledPeakCgroupBytes": 150237184, + "finalCgroupBytes": 150036480, + "lifetimeHwmBeforeBytes": 197386240, + "lifetimeHwmAfterBytes": 199352320, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 1596189, + "networkTxBytes": 1600897, + "samples": 10, + "maxSampleGapMs": 51.437545999999884, + "durationMs": 451.85021800000004 + }, + { + "instance": "25bc3a55a217", + "event": "summary", + "pid": 7, + "baselineRssBytes": 197595136, + "sampledPeakRssBytes": 199168000, + "finalRssBytes": 199168000, + "baselineCgroupBytes": 148316160, + "sampledPeakCgroupBytes": 150261760, + "finalCgroupBytes": 150056960, + "lifetimeHwmBeforeBytes": 197595136, + "lifetimeHwmAfterBytes": 199168000, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 800027, + "networkTxBytes": 796656, + "samples": 10, + "maxSampleGapMs": 51.34110900000019, + "durationMs": 452.10706600000003 + } + ], + "apiRxBytes": 2396216, + "apiTxBytes": 2397553 + }, + { + "round": 1, + "mode": "direct", + "sidePixels": 512, + "fileBytes": 787247, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T17:34:04.643158493Z", + "healthy 2026-11-11T17:34:04.540637899Z" + ], + "warmupInstances": [ + "25bc3a55a217", + "f44d705c0959" + ], + "successfulUploads": 3, + "elapsedSeconds": 2.872334599989699, + "memory": [ + { + "instance": "f44d705c0959", + "event": "summary", + "pid": 6, + "baselineRssBytes": 201015296, + "sampledPeakRssBytes": 205471744, + "finalRssBytes": 205471744, + "baselineCgroupBytes": 151277568, + "sampledPeakCgroupBytes": 157130752, + "finalCgroupBytes": 156672000, + "lifetimeHwmBeforeBytes": 201015296, + "lifetimeHwmAfterBytes": 205471744, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 2385418, + "networkTxBytes": 35155, + "samples": 52, + "maxSampleGapMs": 98.02254300000004, + "durationMs": 2643.529019 + }, + { + "instance": "25bc3a55a217", + "event": "summary", + "pid": 6, + "baselineRssBytes": 200581120, + "sampledPeakRssBytes": 200712192, + "finalRssBytes": 200712192, + "baselineCgroupBytes": 151232512, + "sampledPeakCgroupBytes": 152133632, + "finalCgroupBytes": 152080384, + "lifetimeHwmBeforeBytes": 200581120, + "lifetimeHwmAfterBytes": 200712192, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 8425, + "networkTxBytes": 13670, + "samples": 51, + "maxSampleGapMs": 105.99864699999989, + "durationMs": 2640.8270039999998 + } + ], + "apiRxBytes": 2393843, + "apiTxBytes": 48825 + }, + { + "round": 1, + "mode": "proxy", + "sidePixels": 1792, + "fileBytes": 9638577, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T17:34:32.616460164Z", + "healthy 2026-11-11T17:34:32.511421194Z" + ], + "warmupInstances": [ + "25bc3a55a217", + "f44d705c0959" + ], + "successfulUploads": 3, + "elapsedSeconds": 3.1178796000021975, + "memory": [ + { + "instance": "f44d705c0959", + "event": "summary", + "pid": 7, + "baselineRssBytes": 229691392, + "sampledPeakRssBytes": 242667520, + "finalRssBytes": 242667520, + "baselineCgroupBytes": 180113408, + "sampledPeakCgroupBytes": 195690496, + "finalCgroupBytes": 194109440, + "lifetimeHwmBeforeBytes": 238940160, + "lifetimeHwmAfterBytes": 242667520, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9722827, + "networkTxBytes": 9678622, + "samples": 57, + "maxSampleGapMs": 66.09682399999838, + "durationMs": 2866.474058 + }, + { + "instance": "25bc3a55a217", + "event": "summary", + "pid": 7, + "baselineRssBytes": 231923712, + "sampledPeakRssBytes": 244973568, + "finalRssBytes": 244973568, + "baselineCgroupBytes": 182202368, + "sampledPeakCgroupBytes": 198656000, + "finalCgroupBytes": 196403200, + "lifetimeHwmBeforeBytes": 240717824, + "lifetimeHwmAfterBytes": 244973568, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 19453421, + "networkTxBytes": 19351973, + "samples": 56, + "maxSampleGapMs": 69.09787999999935, + "durationMs": 2864.6600660000004 + } + ], + "apiRxBytes": 29176248, + "apiTxBytes": 29030595 + }, + { + "round": 1, + "mode": "direct", + "sidePixels": 1792, + "fileBytes": 9638577, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T17:35:08.126491359Z", + "healthy 2026-11-11T17:35:08.194727176Z" + ], + "warmupInstances": [ + "25bc3a55a217", + "f44d705c0959" + ], + "successfulUploads": 3, + "elapsedSeconds": 3.538487499987241, + "memory": [ + { + "instance": "f44d705c0959", + "event": "summary", + "pid": 6, + "baselineRssBytes": 243318784, + "sampledPeakRssBytes": 243318784, + "finalRssBytes": 243318784, + "baselineCgroupBytes": 194019328, + "sampledPeakCgroupBytes": 195526656, + "finalCgroupBytes": 195526656, + "lifetimeHwmBeforeBytes": 252203008, + "lifetimeHwmAfterBytes": 252203008, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 7683, + "networkTxBytes": 12520, + "samples": 66, + "maxSampleGapMs": 56.471386999999595, + "durationMs": 3257.1643679999997 + }, + { + "instance": "25bc3a55a217", + "event": "summary", + "pid": 6, + "baselineRssBytes": 241340416, + "sampledPeakRssBytes": 257572864, + "finalRssBytes": 257572864, + "baselineCgroupBytes": 192012288, + "sampledPeakCgroupBytes": 219344896, + "finalCgroupBytes": 209281024, + "lifetimeHwmBeforeBytes": 250687488, + "lifetimeHwmAfterBytes": 257572864, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 28969512, + "networkTxBytes": 41773, + "samples": 65, + "maxSampleGapMs": 53.53805800000009, + "durationMs": 3254.3833879999993 + } + ], + "apiRxBytes": 28977195, + "apiTxBytes": 54293 + }, + { + "round": 2, + "mode": "direct", + "sidePixels": 512, + "fileBytes": 787247, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T17:35:46.63537715Z", + "healthy 2026-11-11T17:35:46.678041266Z" + ], + "warmupInstances": [ + "25bc3a55a217", + "f44d705c0959" + ], + "successfulUploads": 3, + "elapsedSeconds": 1.5461034000036307, + "memory": [ + { + "instance": "f44d705c0959", + "event": "summary", + "pid": 7, + "baselineRssBytes": 203808768, + "sampledPeakRssBytes": 203939840, + "finalRssBytes": 203939840, + "baselineCgroupBytes": 154058752, + "sampledPeakCgroupBytes": 155017216, + "finalCgroupBytes": 154923008, + "lifetimeHwmBeforeBytes": 203808768, + "lifetimeHwmAfterBytes": 203939840, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 7282, + "networkTxBytes": 12118, + "samples": 29, + "maxSampleGapMs": 82.84940600000027, + "durationMs": 1436.521577 + }, + { + "instance": "25bc3a55a217", + "event": "summary", + "pid": 6, + "baselineRssBytes": 199536640, + "sampledPeakRssBytes": 207794176, + "finalRssBytes": 207794176, + "baselineCgroupBytes": 149803008, + "sampledPeakCgroupBytes": 159301632, + "finalCgroupBytes": 159170560, + "lifetimeHwmBeforeBytes": 199536640, + "lifetimeHwmAfterBytes": 207794176, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 2384820, + "networkTxBytes": 33967, + "samples": 30, + "maxSampleGapMs": 65.22268299999996, + "durationMs": 1425.3379689999997 + } + ], + "apiRxBytes": 2392102, + "apiTxBytes": 46085 + }, + { + "round": 2, + "mode": "proxy", + "sidePixels": 512, + "fileBytes": 787247, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T17:36:14.736162695Z", + "healthy 2026-11-11T17:36:14.760181065Z" + ], + "warmupInstances": [ + "25bc3a55a217", + "f44d705c0959" + ], + "successfulUploads": 3, + "elapsedSeconds": 0.42918659999850206, + "memory": [ + { + "instance": "f44d705c0959", + "event": "summary", + "pid": 7, + "baselineRssBytes": 200491008, + "sampledPeakRssBytes": 201932800, + "finalRssBytes": 201932800, + "baselineCgroupBytes": 150675456, + "sampledPeakCgroupBytes": 152555520, + "finalCgroupBytes": 152461312, + "lifetimeHwmBeforeBytes": 200491008, + "lifetimeHwmAfterBytes": 201932800, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 1594936, + "networkTxBytes": 1589334, + "samples": 9, + "maxSampleGapMs": 52.79885599999989, + "durationMs": 400.85065099999997 + }, + { + "instance": "25bc3a55a217", + "event": "summary", + "pid": 7, + "baselineRssBytes": 200245248, + "sampledPeakRssBytes": 200507392, + "finalRssBytes": 200507392, + "baselineCgroupBytes": 150880256, + "sampledPeakCgroupBytes": 151240704, + "finalCgroupBytes": 151207936, + "lifetimeHwmBeforeBytes": 200245248, + "lifetimeHwmAfterBytes": 200507392, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 797831, + "networkTxBytes": 794535, + "samples": 9, + "maxSampleGapMs": 50.77773900000011, + "durationMs": 400.2487940000001 + } + ], + "apiRxBytes": 2392767, + "apiTxBytes": 2383869 + }, + { + "round": 2, + "mode": "direct", + "sidePixels": 1792, + "fileBytes": 9638577, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T17:36:40.239402109Z", + "healthy 2026-11-11T17:36:40.210874393Z" + ], + "warmupInstances": [ + "25bc3a55a217", + "f44d705c0959" + ], + "successfulUploads": 3, + "elapsedSeconds": 4.982343700015917, + "memory": [ + { + "instance": "f44d705c0959", + "event": "summary", + "pid": 7, + "baselineRssBytes": 223092736, + "sampledPeakRssBytes": 223092736, + "finalRssBytes": 220209152, + "baselineCgroupBytes": 174321664, + "sampledPeakCgroupBytes": 176312320, + "finalCgroupBytes": 176001024, + "lifetimeHwmBeforeBytes": 238923776, + "lifetimeHwmAfterBytes": 238923776, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9356, + "networkTxBytes": 15273, + "samples": 91, + "maxSampleGapMs": 57.82966000000124, + "durationMs": 4577.512455 + }, + { + "instance": "25bc3a55a217", + "event": "summary", + "pid": 7, + "baselineRssBytes": 244051968, + "sampledPeakRssBytes": 260890624, + "finalRssBytes": 260759552, + "baselineCgroupBytes": 197177344, + "sampledPeakCgroupBytes": 228503552, + "finalCgroupBytes": 218468352, + "lifetimeHwmBeforeBytes": 253472768, + "lifetimeHwmAfterBytes": 260890624, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 28999470, + "networkTxBytes": 73576, + "samples": 91, + "maxSampleGapMs": 68.75278199999957, + "durationMs": 4573.949913 + } + ], + "apiRxBytes": 29008826, + "apiTxBytes": 88849 + }, + { + "round": 2, + "mode": "proxy", + "sidePixels": 1792, + "fileBytes": 9638577, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T17:37:17.834748093Z", + "healthy 2026-11-11T17:37:17.891433327Z" + ], + "warmupInstances": [ + "25bc3a55a217", + "f44d705c0959" + ], + "successfulUploads": 3, + "elapsedSeconds": 5.799873500014655, + "memory": [ + { + "instance": "f44d705c0959", + "event": "summary", + "pid": 6, + "baselineRssBytes": 222253056, + "sampledPeakRssBytes": 249942016, + "finalRssBytes": 249679872, + "baselineCgroupBytes": 179466240, + "sampledPeakCgroupBytes": 211116032, + "finalCgroupBytes": 211079168, + "lifetimeHwmBeforeBytes": 245264384, + "lifetimeHwmAfterBytes": 249942016, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 19638145, + "networkTxBytes": 19529049, + "samples": 104, + "maxSampleGapMs": 79.66721099999995, + "durationMs": 5368.300846 + }, + { + "instance": "25bc3a55a217", + "event": "summary", + "pid": 7, + "baselineRssBytes": 240148480, + "sampledPeakRssBytes": 249978880, + "finalRssBytes": 248406016, + "baselineCgroupBytes": 196096000, + "sampledPeakCgroupBytes": 208592896, + "finalCgroupBytes": 208531456, + "lifetimeHwmBeforeBytes": 240148480, + "lifetimeHwmAfterBytes": 249978880, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9723561, + "networkTxBytes": 9683497, + "samples": 105, + "maxSampleGapMs": 76.43506200000047, + "durationMs": 5396.637092999999 + } + ], + "apiRxBytes": 29361706, + "apiTxBytes": 29212546 + } + ], + "method": "One upload at a time; measured direct flow includes grant, PUT, and complete with full image validation. Download verification is outside the measurement window. RSS sampling 50 ms; network counters sum non-loopback API interfaces, including DB/S3/background health traffic. Probe RSS excluded.", + "fixturesRemoved": true +} diff --git a/evidence/direct-upload-load.json b/evidence/direct-upload-load.json new file mode 100644 index 0000000..c89f5db --- /dev/null +++ b/evidence/direct-upload-load.json @@ -0,0 +1,1691 @@ +{ + "status": "passed", + "cases": [ + { + "round": 1, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "proxy", + "concurrency": 1, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:28:15.762535023Z", + "healthy 2026-11-11T19:28:15.759108864Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 1, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 2.9909845999791287 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 1, + "attempts": [ + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 2.8735812999948394 + } + ] + } + ], + "verifiedDownloads": 2, + "elapsedSeconds": 5.8672404999961145, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 7, + "baselineRssBytes": 240050176, + "sampledPeakRssBytes": 252329984, + "finalRssBytes": 252329984, + "baselineCgroupBytes": 189923328, + "sampledPeakCgroupBytes": 205668352, + "finalCgroupBytes": 204083200, + "lifetimeHwmBeforeBytes": 249171968, + "lifetimeHwmAfterBytes": 252329984, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9739261, + "networkTxBytes": 9687928, + "samples": 108, + "maxSampleGapMs": 68.96937799999978, + "durationMs": 5392.837695 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 7, + "baselineRssBytes": 246874112, + "sampledPeakRssBytes": 256049152, + "finalRssBytes": 256049152, + "baselineCgroupBytes": 196927488, + "sampledPeakCgroupBytes": 208719872, + "finalCgroupBytes": 207872000, + "lifetimeHwmBeforeBytes": 256200704, + "lifetimeHwmAfterBytes": 256200704, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9745212, + "networkTxBytes": 9693464, + "samples": 107, + "maxSampleGapMs": 69.83061999999882, + "durationMs": 5390.748427999999 + } + ], + "successfulUploads": 2, + "failedUploads": 0, + "successfulUploadsPerSecond": 0.3408757490001176, + "instances": { + "06745710386f": 1, + "70399a7be84c": 1 + }, + "latencySeconds": { + "median": 2.932282949986984, + "max": 2.9909845999791287 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 1, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "direct", + "concurrency": 1, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:29:04.08283828Z", + "healthy 2026-11-11T19:29:04.109254791Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 1, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.3436025000119116 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 1, + "attempts": [ + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 3.2785554000001866 + } + ] + } + ], + "verifiedDownloads": 2, + "elapsedSeconds": 6.624102700006915, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 6, + "baselineRssBytes": 237162496, + "sampledPeakRssBytes": 249483264, + "finalRssBytes": 239955968, + "baselineCgroupBytes": 187117568, + "sampledPeakCgroupBytes": 210444288, + "finalCgroupBytes": 191852544, + "lifetimeHwmBeforeBytes": 244146176, + "lifetimeHwmAfterBytes": 249483264, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9660556, + "networkTxBytes": 20897, + "samples": 118, + "maxSampleGapMs": 110.72102000000086, + "durationMs": 6080.539098 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 7, + "baselineRssBytes": 242610176, + "sampledPeakRssBytes": 252268544, + "finalRssBytes": 242954240, + "baselineCgroupBytes": 192634880, + "sampledPeakCgroupBytes": 214122496, + "finalCgroupBytes": 194457600, + "lifetimeHwmBeforeBytes": 251793408, + "lifetimeHwmAfterBytes": 252268544, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9663697, + "networkTxBytes": 26253, + "samples": 120, + "maxSampleGapMs": 75.95169999999962, + "durationMs": 6079.048680999999 + } + ], + "successfulUploads": 2, + "failedUploads": 0, + "successfulUploadsPerSecond": 0.30192768599404596, + "instances": { + "06745710386f": 1, + "70399a7be84c": 1 + }, + "latencySeconds": { + "median": 3.311078950006049, + "max": 3.3436025000119116 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 1, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "proxy", + "concurrency": 5, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:29:43.482769421Z", + "healthy 2026-11-11T19:29:43.431919293Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 5, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.4132181000022683 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 3.3718942999839783 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 3.349591399979545 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.2967689000070095 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.3883328000083566 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 5, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 4.52424090000568 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 5.017906099994434 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 4.505214000004344 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 4.512335100007476 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 4.504840599984163 + } + ] + } + ], + "verifiedDownloads": 10, + "elapsedSeconds": 8.433824400010053, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 7, + "baselineRssBytes": 232280064, + "sampledPeakRssBytes": 315727872, + "finalRssBytes": 315727872, + "baselineCgroupBytes": 182472704, + "sampledPeakCgroupBytes": 271585280, + "finalCgroupBytes": 267390976, + "lifetimeHwmBeforeBytes": 241209344, + "lifetimeHwmAfterBytes": 315727872, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 48707191, + "networkTxBytes": 48474461, + "samples": 147, + "maxSampleGapMs": 79.72259200000008, + "durationMs": 7740.929064000001 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 8, + "baselineRssBytes": 234745856, + "sampledPeakRssBytes": 304783360, + "finalRssBytes": 304783360, + "baselineCgroupBytes": 184680448, + "sampledPeakCgroupBytes": 259829760, + "finalCgroupBytes": 256655360, + "lifetimeHwmBeforeBytes": 243851264, + "lifetimeHwmAfterBytes": 304783360, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 48697825, + "networkTxBytes": 48455813, + "samples": 147, + "maxSampleGapMs": 91.39657100000113, + "durationMs": 7737.993219999999 + } + ], + "successfulUploads": 10, + "failedUploads": 0, + "successfulUploadsPerSecond": 1.1857017084666928, + "instances": { + "06745710386f": 5, + "70399a7be84c": 5 + }, + "latencySeconds": { + "median": 3.959029349993216, + "max": 5.017906099994434 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 1, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "direct", + "concurrency": 5, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:30:28.220513363Z", + "healthy 2026-11-11T19:30:28.263761925Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 5, + "attempts": [ + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 5.506642499996815 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 5.500083899998572 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 5.397307600011118 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 5.447577400016598 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 5.371691899985308 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 5, + "attempts": [ + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.618930600001477 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 6.599525099998573 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.68031220001285 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 6.619681100011803 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.595991700014565 + } + ] + } + ], + "verifiedDownloads": 10, + "elapsedSeconds": 12.189363500016043, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 7, + "baselineRssBytes": 243077120, + "sampledPeakRssBytes": 268234752, + "finalRssBytes": 267972608, + "baselineCgroupBytes": 193593344, + "sampledPeakCgroupBytes": 245465088, + "finalCgroupBytes": 229277696, + "lifetimeHwmBeforeBytes": 252354560, + "lifetimeHwmAfterBytes": 268234752, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 38849117, + "networkTxBytes": 212972, + "samples": 214, + "maxSampleGapMs": 130.24354200000016, + "durationMs": 11183.339825 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 8, + "baselineRssBytes": 236195840, + "sampledPeakRssBytes": 276934656, + "finalRssBytes": 276934656, + "baselineCgroupBytes": 186232832, + "sampledPeakCgroupBytes": 266588160, + "finalCgroupBytes": 238002176, + "lifetimeHwmBeforeBytes": 239357952, + "lifetimeHwmAfterBytes": 276934656, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 58149074, + "networkTxBytes": 282040, + "samples": 213, + "maxSampleGapMs": 129.0504179999989, + "durationMs": 11181.662002 + } + ], + "successfulUploads": 10, + "failedUploads": 0, + "successfulUploadsPerSecond": 0.8203873811776011, + "instances": { + "06745710386f": 4, + "70399a7be84c": 6 + }, + "latencySeconds": { + "median": 6.05131710000569, + "max": 6.68031220001285 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 1, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "proxy", + "concurrency": 10, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:31:20.525150073Z", + "healthy 2026-11-11T19:31:20.566379419Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 10, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 13.751046299992595 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 13.306933399988338 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 13.73486120000598 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 13.80633449999732 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 12.95367780001834 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 12.999463700019987 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 12.964794300001813 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 13.08274439998786 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 13.513073999987682 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 13.761873299983563 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 10, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 9.146038400009274 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 9.179207899986068 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 9.04195620000246 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 9.150118199991994 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 9.166120699985186 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 9.02908850001404 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 9.191321399994195 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 8.934668000001693 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 9.21010070000193 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 9.200294899987057 + } + ] + } + ], + "verifiedDownloads": 20, + "elapsedSeconds": 23.03095280000707, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 8, + "baselineRssBytes": 233218048, + "sampledPeakRssBytes": 376958976, + "finalRssBytes": 369618944, + "baselineCgroupBytes": 199659520, + "sampledPeakCgroupBytes": 370569216, + "finalCgroupBytes": 364982272, + "lifetimeHwmBeforeBytes": 243290112, + "lifetimeHwmAfterBytes": 376958976, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 97910635, + "networkTxBytes": 97382630, + "samples": 387, + "maxSampleGapMs": 136.13194799999837, + "durationMs": 21143.752888000003 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 8, + "baselineRssBytes": 230002688, + "sampledPeakRssBytes": 387960832, + "finalRssBytes": 381145088, + "baselineCgroupBytes": 196136960, + "sampledPeakCgroupBytes": 386473984, + "finalCgroupBytes": 380837888, + "lifetimeHwmBeforeBytes": 239550464, + "lifetimeHwmAfterBytes": 387960832, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 97691853, + "networkTxBytes": 97137196, + "samples": 390, + "maxSampleGapMs": 126.43667199999982, + "durationMs": 21121.465605999998 + } + ], + "successfulUploads": 20, + "failedUploads": 0, + "successfulUploadsPerSecond": 0.8683965519652257, + "instances": { + "06745710386f": 10, + "70399a7be84c": 10 + }, + "latencySeconds": { + "median": 11.081889250010136, + "max": 13.80633449999732 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 1, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "direct", + "concurrency": 10, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:32:26.092126399Z", + "healthy 2026-11-11T19:32:26.07366984Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 10, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 12.008182700024918 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 11.814847800007556 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 12.075362199975643 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 11.589125200000126 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 11.968510100006824 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 11.926892499992391 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 11.783111700002337 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 11.831944000005024 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 11.956751999998232 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 11.8854483999894 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 10, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 11.41199539997615 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 12.01050989999203 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 11.171627800009446 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 11.39264059998095 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 11.349005500000203 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 11.625117999996291 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 11.76936440001009 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 11.464401000004727 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 11.781782400008524 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 11.40024099999573 + } + ] + } + ], + "verifiedDownloads": 20, + "elapsedSeconds": 24.0893381999922, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 7, + "baselineRssBytes": 239562752, + "sampledPeakRssBytes": 296779776, + "finalRssBytes": 296779776, + "baselineCgroupBytes": 205971456, + "sampledPeakCgroupBytes": 331833344, + "finalCgroupBytes": 286294016, + "lifetimeHwmBeforeBytes": 248999936, + "lifetimeHwmAfterBytes": 296779776, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 97759957, + "networkTxBytes": 1177136, + "samples": 405, + "maxSampleGapMs": 224.02848300000187, + "durationMs": 22096.029285 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 7, + "baselineRssBytes": 235626496, + "sampledPeakRssBytes": 310870016, + "finalRssBytes": 310870016, + "baselineCgroupBytes": 202883072, + "sampledPeakCgroupBytes": 335257600, + "finalCgroupBytes": 302350336, + "lifetimeHwmBeforeBytes": 243167232, + "lifetimeHwmAfterBytes": 310870016, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 97693143, + "networkTxBytes": 1107284, + "samples": 409, + "maxSampleGapMs": 202.85023799999908, + "durationMs": 22094.589723999998 + } + ], + "successfulUploads": 20, + "failedUploads": 0, + "successfulUploadsPerSecond": 0.830242816716587, + "instances": { + "06745710386f": 10, + "70399a7be84c": 10 + }, + "latencySeconds": { + "median": 11.78244705000543, + "max": 12.075362199975643 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 2, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "direct", + "concurrency": 1, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:33:42.817666657Z", + "healthy 2026-11-11T19:33:42.817968003Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 1, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.050082300003851 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 1, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.7023100000224076 + } + ] + } + ], + "verifiedDownloads": 2, + "elapsedSeconds": 6.753963499999372, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 7, + "baselineRssBytes": 244305920, + "sampledPeakRssBytes": 254136320, + "finalRssBytes": 250777600, + "baselineCgroupBytes": 210907136, + "sampledPeakCgroupBytes": 231776256, + "finalCgroupBytes": 219033600, + "lifetimeHwmBeforeBytes": 253681664, + "lifetimeHwmAfterBytes": 254136320, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 19320219, + "networkTxBytes": 37592, + "samples": 123, + "maxSampleGapMs": 72.7202099999995, + "durationMs": 6201.2047299999995 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 6, + "baselineRssBytes": 240705536, + "sampledPeakRssBytes": 240705536, + "finalRssBytes": 240705536, + "baselineCgroupBytes": 208543744, + "sampledPeakCgroupBytes": 210804736, + "finalCgroupBytes": 210661376, + "lifetimeHwmBeforeBytes": 249921536, + "lifetimeHwmAfterBytes": 249921536, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 7468, + "networkTxBytes": 11382, + "samples": 124, + "maxSampleGapMs": 69.13388699999996, + "durationMs": 6202.7764609999995 + } + ], + "successfulUploads": 2, + "failedUploads": 0, + "successfulUploadsPerSecond": 0.2961224175997081, + "instances": { + "06745710386f": 2 + }, + "latencySeconds": { + "median": 3.3761961500131292, + "max": 3.7023100000224076 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 2, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "proxy", + "concurrency": 1, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:34:35.204535781Z", + "healthy 2026-11-11T19:34:35.163481791Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 1, + "attempts": [ + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 2.5015220000059344 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 1, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 2.883725499996217 + } + ] + } + ], + "verifiedDownloads": 2, + "elapsedSeconds": 5.386466299998574, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 7, + "baselineRssBytes": 232296448, + "sampledPeakRssBytes": 264409088, + "finalRssBytes": 264409088, + "baselineCgroupBytes": 183582720, + "sampledPeakCgroupBytes": 217526272, + "finalCgroupBytes": 217399296, + "lifetimeHwmBeforeBytes": 241569792, + "lifetimeHwmAfterBytes": 264409088, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9736681, + "networkTxBytes": 9687742, + "samples": 107, + "maxSampleGapMs": 70.94756899999993, + "durationMs": 5395.863852999999 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 6, + "baselineRssBytes": 239845376, + "sampledPeakRssBytes": 262389760, + "finalRssBytes": 262389760, + "baselineCgroupBytes": 190824448, + "sampledPeakCgroupBytes": 216768512, + "finalCgroupBytes": 215085056, + "lifetimeHwmBeforeBytes": 249204736, + "lifetimeHwmAfterBytes": 262389760, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9765616, + "networkTxBytes": 9742346, + "samples": 107, + "maxSampleGapMs": 60.50019099999918, + "durationMs": 5395.571382999999 + } + ], + "successfulUploads": 2, + "failedUploads": 0, + "successfulUploadsPerSecond": 0.3713009399131541, + "instances": { + "06745710386f": 1, + "70399a7be84c": 1 + }, + "latencySeconds": { + "median": 2.6926237500010757, + "max": 2.883725499996217 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 2, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "direct", + "concurrency": 5, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:35:04.80836889Z", + "healthy 2026-11-11T19:35:04.762121183Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 5, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 6.090482300001895 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.044500299991341 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.001677799999015 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 6.13799819999258 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 6.153891099995235 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 5, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 6.5491729999776 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 6.537047400022857 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.395100199995795 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 6.478241499979049 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.435333600005833 + } + ] + } + ], + "verifiedDownloads": 10, + "elapsedSeconds": 12.71539960001246, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 8, + "baselineRssBytes": 239570944, + "sampledPeakRssBytes": 287043584, + "finalRssBytes": 287043584, + "baselineCgroupBytes": 191733760, + "sampledPeakCgroupBytes": 283140096, + "finalCgroupBytes": 253861888, + "lifetimeHwmBeforeBytes": 249958400, + "lifetimeHwmAfterBytes": 287043584, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 58731221, + "networkTxBytes": 815758, + "samples": 220, + "maxSampleGapMs": 102.0806819999998, + "durationMs": 11664.130637000002 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 8, + "baselineRssBytes": 234942464, + "sampledPeakRssBytes": 260947968, + "finalRssBytes": 260554752, + "baselineCgroupBytes": 187072512, + "sampledPeakCgroupBytes": 253792256, + "finalCgroupBytes": 235114496, + "lifetimeHwmBeforeBytes": 244523008, + "lifetimeHwmAfterBytes": 260947968, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 39026659, + "networkTxBytes": 423884, + "samples": 220, + "maxSampleGapMs": 130.8814050000001, + "durationMs": 11662.692707 + } + ], + "successfulUploads": 10, + "failedUploads": 0, + "successfulUploadsPerSecond": 0.7864479540218461, + "instances": { + "06745710386f": 6, + "70399a7be84c": 4 + }, + "latencySeconds": { + "median": 6.274495649995515, + "max": 6.5491729999776 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 2, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "proxy", + "concurrency": 5, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:35:54.266794401Z", + "healthy 2026-11-11T19:35:54.29579183Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 5, + "attempts": [ + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 3.313278099987656 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 3.183639299997594 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.421371900010854 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.313202799996361 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 3.412290300009772 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 5, + "attempts": [ + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 3.6783998000028078 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.888752500002738 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 3.6283165000204463 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.6235459000163246 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 3.8318259999796283 + } + ] + } + ], + "verifiedDownloads": 10, + "elapsedSeconds": 7.312995999993291, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 8, + "baselineRssBytes": 239230976, + "sampledPeakRssBytes": 317980672, + "finalRssBytes": 297926656, + "baselineCgroupBytes": 205189120, + "sampledPeakCgroupBytes": 288337920, + "finalCgroupBytes": 269893632, + "lifetimeHwmBeforeBytes": 248774656, + "lifetimeHwmAfterBytes": 317980672, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 48982460, + "networkTxBytes": 48775931, + "samples": 129, + "maxSampleGapMs": 80.68755199999941, + "durationMs": 6712.578996999999 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 7, + "baselineRssBytes": 224325632, + "sampledPeakRssBytes": 285601792, + "finalRssBytes": 283897856, + "baselineCgroupBytes": 184360960, + "sampledPeakCgroupBytes": 251465728, + "finalCgroupBytes": 249847808, + "lifetimeHwmBeforeBytes": 233320448, + "lifetimeHwmAfterBytes": 285732864, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 49049688, + "networkTxBytes": 48886982, + "samples": 131, + "maxSampleGapMs": 77.94031499999983, + "durationMs": 6710.620733999999 + } + ], + "successfulUploads": 10, + "failedUploads": 0, + "successfulUploadsPerSecond": 1.367428616125207, + "instances": { + "06745710386f": 5, + "70399a7be84c": 5 + }, + "latencySeconds": { + "median": 3.5224589000135893, + "max": 3.888752500002738 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 2, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "direct", + "concurrency": 10, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:36:34.97489617Z", + "healthy 2026-11-11T19:36:34.937650291Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 10, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 13.948548999993363 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 13.463717200007522 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 13.697613700001966 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 13.539534100011224 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 13.626410099997884 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 13.733172200008994 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 13.36657880002167 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 13.848508100025356 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 13.74700160001521 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 13.764020300004631 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 10, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 12.119535700010601 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 12.354391500004567 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 12.17195299998275 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 11.978651400015224 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 12.324364800006151 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 12.127431500004604 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 12.263548799994169 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 12.1140564000234 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 12.189706199977081 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 12.178231400001096 + } + ] + } + ], + "verifiedDownloads": 20, + "elapsedSeconds": 26.306097199994838, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 7, + "baselineRssBytes": 239673344, + "sampledPeakRssBytes": 328474624, + "finalRssBytes": 309538816, + "baselineCgroupBytes": 203685888, + "sampledPeakCgroupBytes": 363474944, + "finalCgroupBytes": 300146688, + "lifetimeHwmBeforeBytes": 253001728, + "lifetimeHwmAfterBytes": 328605696, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 98238728, + "networkTxBytes": 1478055, + "samples": 430, + "maxSampleGapMs": 491.3829590000005, + "durationMs": 24130.284267 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 6, + "baselineRssBytes": 238608384, + "sampledPeakRssBytes": 303349760, + "finalRssBytes": 284012544, + "baselineCgroupBytes": 199929856, + "sampledPeakCgroupBytes": 343502848, + "finalCgroupBytes": 279085056, + "lifetimeHwmBeforeBytes": 247537664, + "lifetimeHwmAfterBytes": 303349760, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 98060402, + "networkTxBytes": 1383801, + "samples": 433, + "maxSampleGapMs": 875.3207939999993, + "durationMs": 24138.309214 + } + ], + "successfulUploads": 20, + "failedUploads": 0, + "successfulUploadsPerSecond": 0.7602800159958325, + "instances": { + "06745710386f": 10, + "70399a7be84c": 10 + }, + "latencySeconds": { + "median": 12.860485150013119, + "max": 13.948548999993363 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + }, + { + "round": 2, + "sidePixels": 1792, + "fileBytes": 9638577, + "mode": "proxy", + "concurrency": 10, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T19:37:44.314886868Z", + "healthy 2026-11-11T19:37:44.287455838Z" + ], + "warmupCounts": { + "06745710386f": 2, + "70399a7be84c": 2 + }, + "waves": [ + { + "wave": 1, + "incompleteBodiesAtBarrier": 10, + "attempts": [ + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.630414299987024 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 5.976721999992151 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 5.527987499983283 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 6.608402499987278 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 5.993938600004185 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.593848199991044 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 5.922872099996312 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.524411599995801 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 6.562311399989994 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 6.571550499997102 + } + ] + }, + { + "wave": 2, + "incompleteBodiesAtBarrier": 10, + "attempts": [ + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 10.850992799998494 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 10.836249799991492 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 10.836743199994089 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 10.824716099974466 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 10.243556399975205 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 10.847219600022072 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 10.812562300008722 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 10.461455300013768 + }, + { + "ok": true, + "instance": "06745710386f", + "elapsedSeconds": 10.786018199985847 + }, + { + "ok": true, + "instance": "70399a7be84c", + "elapsedSeconds": 9.884302799997386 + } + ] + } + ], + "verifiedDownloads": 20, + "elapsedSeconds": 17.485761499992805, + "memory": [ + { + "instance": "06745710386f", + "event": "summary", + "pid": 7, + "baselineRssBytes": 230215680, + "sampledPeakRssBytes": 374562816, + "finalRssBytes": 351649792, + "baselineCgroupBytes": 198754304, + "sampledPeakCgroupBytes": 350515200, + "finalCgroupBytes": 327200768, + "lifetimeHwmBeforeBytes": 239247360, + "lifetimeHwmAfterBytes": 374956032, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 97618501, + "networkTxBytes": 97069822, + "samples": 291, + "maxSampleGapMs": 318.45665400000144, + "durationMs": 16042.870839000001 + }, + { + "instance": "70399a7be84c", + "event": "summary", + "pid": 6, + "baselineRssBytes": 240558080, + "sampledPeakRssBytes": 397774848, + "finalRssBytes": 378740736, + "baselineCgroupBytes": 209719296, + "sampledPeakCgroupBytes": 372944896, + "finalCgroupBytes": 352673792, + "lifetimeHwmBeforeBytes": 249761792, + "lifetimeHwmAfterBytes": 397774848, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 97619255, + "networkTxBytes": 97032586, + "samples": 290, + "maxSampleGapMs": 313.6054499999991, + "durationMs": 16040.087114 + } + ], + "successfulUploads": 20, + "failedUploads": 0, + "successfulUploadsPerSecond": 1.1437877612598244, + "instances": { + "06745710386f": 10, + "70399a7be84c": 10 + }, + "latencySeconds": { + "median": 8.257358549992205, + "max": 10.850992799998494 + }, + "apiIdentityUnchanged": true, + "apiReadyAfterCase": true + } + ], + "settings": { + "sizes": [ + 1792 + ], + "concurrency": [ + 1, + 5, + 10 + ], + "rounds": 2, + "waves": 2, + "upload_seconds": 2 + }, + "method": "Fresh API restart per case, exactly 2 verified warm-up uploads per replica via internal API addresses; temporary docker-exec client exits before measurement. Measured uploads use public Nginx. Two paced waves by default; all bodies are incomplete at the upload barrier, direct completes start at a second barrier. Full workflow latency includes grant/PUT/complete. External per-API-process RSS sampling at 50 ms; cgroup memory recorded separately. Independent replica peaks are not summed. No retries. Download verification is outside the measurement window.", + "fixturesRemoved": true +} diff --git a/evidence/direct-upload-memory-profile.json b/evidence/direct-upload-memory-profile.json new file mode 100644 index 0000000..4645a91 --- /dev/null +++ b/evidence/direct-upload-memory-profile.json @@ -0,0 +1,17035 @@ +{ + "status": "passed", + "repeats": 3, + "rounds": 2, + "restartApiBeforeCase": true, + "warmupUploadsPerCase": 4, + "cases": [ + { + "round": 1, + "mode": "proxy", + "sidePixels": 512, + "fileBytes": 787247, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T18:34:22.021431662Z", + "healthy 2026-11-11T18:34:22.045873009Z" + ], + "warmupInstances": [ + "073aad49213a", + "ca7302f05bcf" + ], + "requestIds": [ + "9c71f888-a3f1-4983-b4ba-29630c1b7e7c", + "47960cb9-e8da-4982-a5da-87dc79ece17b", + "44f659ad-a99b-4dd6-a62a-d1244221dcef" + ], + "successfulUploads": 3, + "elapsedSeconds": 0.9994069999956992, + "memory": [ + { + "instance": "ca7302f05bcf", + "event": "summary", + "pid": 7, + "baselineRssBytes": 196657152, + "sampledPeakRssBytes": 198230016, + "finalRssBytes": 198230016, + "baselineCgroupBytes": 147320832, + "sampledPeakCgroupBytes": 149598208, + "finalCgroupBytes": 149598208, + "lifetimeHwmBeforeBytes": 196657152, + "lifetimeHwmAfterBytes": 198230016, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 799172, + "networkTxBytes": 801235, + "samples": 19, + "maxSampleGapMs": 58.16702099999975, + "durationMs": 933.0319519999998 + }, + { + "instance": "073aad49213a", + "event": "summary", + "pid": 7, + "baselineRssBytes": 198463488, + "sampledPeakRssBytes": 201216000, + "finalRssBytes": 201216000, + "baselineCgroupBytes": 149348352, + "sampledPeakCgroupBytes": 152903680, + "finalCgroupBytes": 152657920, + "lifetimeHwmBeforeBytes": 198463488, + "lifetimeHwmAfterBytes": 201216000, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 1596362, + "networkTxBytes": 1591498, + "samples": 19, + "maxSampleGapMs": 59.25241099999994, + "durationMs": 925.2087860000001 + } + ], + "apiRxBytes": 2395534, + "apiTxBytes": 2392733, + "idleAfterFiveSeconds": [ + { + "instance": "ca7302f05bcf", + "event": "snapshot", + "rss": 198230016, + "hwm": 198230016, + "oom": 0, + "oomKill": 0, + "rx": 4005384, + "tx": 4012899, + "cgroup": 149712896 + }, + { + "instance": "073aad49213a", + "event": "snapshot", + "rss": 201216000, + "hwm": 201216000, + "oom": 0, + "oomKill": 0, + "rx": 4802183, + "tx": 4802044, + "cgroup": 152752128 + } + ], + "profiles": [ + { + "mode": "proxy", + "requestId": "9c71f888-a3f1-4983-b4ba-29630c1b7e7c", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 372.3479959999986, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 56.89017199999944, + "before": { + "rss": 198463488, + "heapTotal": 117960704, + "heapUsed": 55462288, + "external": 21426897, + "arrayBuffers": 6737305 + }, + "after": { + "rss": 198463488, + "heapTotal": 117960704, + "heapUsed": 55565256, + "external": 23001835, + "arrayBuffers": 8312243 + }, + "peak": { + "rss": 198463488, + "heapTotal": 117960704, + "heapUsed": 55565256, + "external": 23001835, + "arrayBuffers": 8312243 + }, + "samples": 3, + "maxSampleGapMs": 21.592800000000352, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 57.09585700000025, + "durationMs": 3.7500509999990754, + "before": { + "rss": 198463488, + "heapTotal": 117960704, + "heapUsed": 55566736, + "external": 23001835, + "arrayBuffers": 8312243 + }, + "after": { + "rss": 198463488, + "heapTotal": 117960704, + "heapUsed": 55654936, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "peak": { + "rss": 198463488, + "heapTotal": 117960704, + "heapUsed": 55654936, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "samples": 1, + "maxSampleGapMs": 3.690887999999177, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 60.996745000000374, + "durationMs": 1.4026789999988978, + "before": { + "rss": 198463488, + "heapTotal": 117960704, + "heapUsed": 55656184, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "after": { + "rss": 198594560, + "heapTotal": 117960704, + "heapUsed": 55695160, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "peak": { + "rss": 198594560, + "heapTotal": 117960704, + "heapUsed": 55695160, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "samples": 2, + "maxSampleGapMs": 0.7745489999997517, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 62.55528500000037, + "durationMs": 97.17490399999951, + "before": { + "rss": 198594560, + "heapTotal": 117960704, + "heapUsed": 55696408, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "after": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 55735312, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "peak": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 55735312, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "samples": 5, + "maxSampleGapMs": 21.64940899999965, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 159.8775740000001, + "durationMs": 0.09708399999908579, + "before": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 55736560, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "after": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 55738256, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "peak": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 55738256, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "samples": 1, + "maxSampleGapMs": 0.028947999999218155, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 160.04655900000034, + "durationMs": 8.7638220000008, + "before": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 55739504, + "external": 23002011, + "arrayBuffers": 8312419 + }, + "after": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 55860272, + "external": 23002117, + "arrayBuffers": 8312525 + }, + "peak": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 55860272, + "external": 23002117, + "arrayBuffers": 8312525 + }, + "samples": 2, + "maxSampleGapMs": 5.894699000000401, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 168.95103299999937, + "durationMs": 182.6275280000009, + "before": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 55861520, + "external": 23002117, + "arrayBuffers": 8312525 + }, + "after": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 56184472, + "external": 23002506, + "arrayBuffers": 8312914 + }, + "peak": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 56184472, + "external": 23002506, + "arrayBuffers": 8312914 + }, + "samples": 9, + "maxSampleGapMs": 24.885974000000715, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 351.7560319999993, + "durationMs": 1.8638520000022254, + "before": { + "rss": 199512064, + "heapTotal": 117960704, + "heapUsed": 56231320, + "external": 23002506, + "arrayBuffers": 8312914 + }, + "after": { + "rss": 199643136, + "heapTotal": 117960704, + "heapUsed": 56197104, + "external": 23002506, + "arrayBuffers": 8312914 + }, + "peak": { + "rss": 199643136, + "heapTotal": 117960704, + "heapUsed": 56231320, + "external": 23002506, + "arrayBuffers": 8312914 + }, + "samples": 1, + "maxSampleGapMs": 1.7978470000016387, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 353.89189499999884, + "durationMs": 14.383761000000959, + "before": { + "rss": 199643136, + "heapTotal": 117960704, + "heapUsed": 56198352, + "external": 23002506, + "arrayBuffers": 8312914 + }, + "after": { + "rss": 199643136, + "heapTotal": 117960704, + "heapUsed": 56333096, + "external": 23003218, + "arrayBuffers": 8313626 + }, + "peak": { + "rss": 199643136, + "heapTotal": 117960704, + "heapUsed": 56333096, + "external": 23003218, + "arrayBuffers": 8313626 + }, + "samples": 2, + "maxSampleGapMs": 11.073927000001277, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 368.442097000001, + "durationMs": 3.5148909999988973, + "before": { + "rss": 199643136, + "heapTotal": 117960704, + "heapUsed": 56334344, + "external": 23003218, + "arrayBuffers": 8313626 + }, + "after": { + "rss": 199643136, + "heapTotal": 117960704, + "heapUsed": 56344056, + "external": 23003218, + "arrayBuffers": 8313626 + }, + "peak": { + "rss": 199643136, + "heapTotal": 117960704, + "heapUsed": 56344056, + "external": 23003218, + "arrayBuffers": 8313626 + }, + "samples": 1, + "maxSampleGapMs": 3.446875000001455, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "proxy", + "requestId": "47960cb9-e8da-4982-a5da-87dc79ece17b", + "instance": "ca7302f05bcf", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 270.8925799999997, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 104.10091100000136, + "before": { + "rss": 196657152, + "heapTotal": 118484992, + "heapUsed": 55968864, + "external": 21429041, + "arrayBuffers": 6739257 + }, + "after": { + "rss": 196657152, + "heapTotal": 118484992, + "heapUsed": 56076008, + "external": 23003979, + "arrayBuffers": 8314195 + }, + "peak": { + "rss": 196657152, + "heapTotal": 118484992, + "heapUsed": 56076008, + "external": 23003979, + "arrayBuffers": 8314195 + }, + "samples": 5, + "maxSampleGapMs": 25.760216999999102, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 104.35752000000139, + "durationMs": 7.866945000001579, + "before": { + "rss": 196657152, + "heapTotal": 118484992, + "heapUsed": 56077488, + "external": 23003979, + "arrayBuffers": 8314195 + }, + "after": { + "rss": 196657152, + "heapTotal": 118484992, + "heapUsed": 56167384, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "peak": { + "rss": 196657152, + "heapTotal": 118484992, + "heapUsed": 56167384, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "samples": 2, + "maxSampleGapMs": 4.165515000000596, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 112.55979800000205, + "durationMs": 1.929627999998047, + "before": { + "rss": 196657152, + "heapTotal": 118484992, + "heapUsed": 56168632, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "after": { + "rss": 196788224, + "heapTotal": 118484992, + "heapUsed": 56199424, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "peak": { + "rss": 196788224, + "heapTotal": 118484992, + "heapUsed": 56199424, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "samples": 1, + "maxSampleGapMs": 1.0700529999994615, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 114.59388500000205, + "durationMs": 64.80235800000082, + "before": { + "rss": 196788224, + "heapTotal": 118484992, + "heapUsed": 56200672, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "after": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56245968, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "peak": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56245968, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "samples": 4, + "maxSampleGapMs": 20.638629000000947, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 180.20417600000292, + "durationMs": 0.1477519999971264, + "before": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56247216, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "after": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56248912, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "peak": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56248912, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "samples": 1, + "maxSampleGapMs": 0.040069999999104766, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 180.43251800000144, + "durationMs": 11.453729000000749, + "before": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56250160, + "external": 23004155, + "arrayBuffers": 8314371 + }, + "after": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56371152, + "external": 23004261, + "arrayBuffers": 8314477 + }, + "peak": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56371152, + "external": 23004261, + "arrayBuffers": 8314477 + }, + "samples": 2, + "maxSampleGapMs": 10.199061999999685, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 192.03132600000026, + "durationMs": 64.33239700000195, + "before": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56372400, + "external": 23004261, + "arrayBuffers": 8314477 + }, + "after": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56688064, + "external": 23004650, + "arrayBuffers": 8314866 + }, + "peak": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56688064, + "external": 23004650, + "arrayBuffers": 8314866 + }, + "samples": 4, + "maxSampleGapMs": 21.682702999998583, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 256.5459050000027, + "durationMs": 0.642915999997058, + "before": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56689312, + "external": 23004650, + "arrayBuffers": 8314866 + }, + "after": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56690576, + "external": 23004650, + "arrayBuffers": 8314866 + }, + "peak": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56690576, + "external": 23004650, + "arrayBuffers": 8314866 + }, + "samples": 1, + "maxSampleGapMs": 0.5639239999982237, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 257.2695760000024, + "durationMs": 12.43131799999901, + "before": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56691824, + "external": 23004650, + "arrayBuffers": 8314866 + }, + "after": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56830216, + "external": 23005362, + "arrayBuffers": 8315578 + }, + "peak": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56830216, + "external": 23005362, + "arrayBuffers": 8315578 + }, + "samples": 1, + "maxSampleGapMs": 12.393718999999692, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 269.8594460000022, + "durationMs": 0.7882790000003297, + "before": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56831464, + "external": 23005362, + "arrayBuffers": 8315578 + }, + "after": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56841776, + "external": 23005362, + "arrayBuffers": 8315578 + }, + "peak": { + "rss": 198230016, + "heapTotal": 118484992, + "heapUsed": 56841776, + "external": 23005362, + "arrayBuffers": 8315578 + }, + "samples": 1, + "maxSampleGapMs": 0.725828000002366, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "proxy", + "requestId": "44f659ad-a99b-4dd6-a62a-d1244221dcef", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 223.50928499999645, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 91.1107189999966, + "before": { + "rss": 199643136, + "heapTotal": 117960704, + "heapUsed": 56377784, + "external": 23003218, + "arrayBuffers": 8313626 + }, + "after": { + "rss": 200429568, + "heapTotal": 117960704, + "heapUsed": 56498136, + "external": 24578156, + "arrayBuffers": 9888564 + }, + "peak": { + "rss": 200429568, + "heapTotal": 117960704, + "heapUsed": 56498136, + "external": 24578156, + "arrayBuffers": 9888564 + }, + "samples": 4, + "maxSampleGapMs": 34.83200199999919, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 91.26019799999995, + "durationMs": 2.807227999997849, + "before": { + "rss": 200429568, + "heapTotal": 117960704, + "heapUsed": 56499536, + "external": 24578156, + "arrayBuffers": 9888564 + }, + "after": { + "rss": 200429568, + "heapTotal": 117960704, + "heapUsed": 56562216, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "peak": { + "rss": 200429568, + "heapTotal": 117960704, + "heapUsed": 56562216, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "samples": 1, + "maxSampleGapMs": 2.754328999999416, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 94.23801799999637, + "durationMs": 1.3546470000001136, + "before": { + "rss": 200429568, + "heapTotal": 117960704, + "heapUsed": 56563464, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "after": { + "rss": 200429568, + "heapTotal": 117960704, + "heapUsed": 56624216, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "peak": { + "rss": 200429568, + "heapTotal": 117960704, + "heapUsed": 56624216, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "samples": 2, + "maxSampleGapMs": 0.8043239999969956, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 95.73501699999906, + "durationMs": 42.41758900000059, + "before": { + "rss": 200429568, + "heapTotal": 117960704, + "heapUsed": 56625464, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "after": { + "rss": 201084928, + "heapTotal": 117960704, + "heapUsed": 56647480, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "peak": { + "rss": 201084928, + "heapTotal": 117960704, + "heapUsed": 56647480, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "samples": 3, + "maxSampleGapMs": 20.76593700000012, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 138.27302599999894, + "durationMs": 0.06387499999982538, + "before": { + "rss": 201084928, + "heapTotal": 117960704, + "heapUsed": 56648728, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "after": { + "rss": 201084928, + "heapTotal": 117960704, + "heapUsed": 56650424, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "peak": { + "rss": 201084928, + "heapTotal": 117960704, + "heapUsed": 56650424, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "samples": 1, + "maxSampleGapMs": 0.019910999999410706, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 138.3703119999991, + "durationMs": 5.596543999999994, + "before": { + "rss": 201084928, + "heapTotal": 117960704, + "heapUsed": 56651672, + "external": 24578332, + "arrayBuffers": 9888740 + }, + "after": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 56773656, + "external": 24578438, + "arrayBuffers": 9888846 + }, + "peak": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 56773656, + "external": 24578438, + "arrayBuffers": 9888846 + }, + "samples": 1, + "maxSampleGapMs": 5.569561000000249, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 144.1162979999972, + "durationMs": 71.40843400000085, + "before": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 56774904, + "external": 24578438, + "arrayBuffers": 9888846 + }, + "after": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57087704, + "external": 24578827, + "arrayBuffers": 9889235 + }, + "peak": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57087704, + "external": 24578827, + "arrayBuffers": 9889235 + }, + "samples": 4, + "maxSampleGapMs": 20.420681999999942, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 215.644225, + "durationMs": 0.579554999996617, + "before": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57088952, + "external": 24578827, + "arrayBuffers": 9889235 + }, + "after": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57090216, + "external": 24578827, + "arrayBuffers": 9889235 + }, + "peak": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57090216, + "external": 24578827, + "arrayBuffers": 9889235 + }, + "samples": 1, + "maxSampleGapMs": 0.5433610000000044, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 216.32261799999833, + "durationMs": 6.110652999999729, + "before": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57091464, + "external": 24578827, + "arrayBuffers": 9889235 + }, + "after": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57221576, + "external": 24579539, + "arrayBuffers": 9889947 + }, + "peak": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57221576, + "external": 24579539, + "arrayBuffers": 9889947 + }, + "samples": 2, + "maxSampleGapMs": 4.853098999999929, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 222.5906389999982, + "durationMs": 0.7330650000003516, + "before": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57222824, + "external": 24579539, + "arrayBuffers": 9889947 + }, + "after": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57233064, + "external": 24579539, + "arrayBuffers": 9889947 + }, + "peak": { + "rss": 201216000, + "heapTotal": 117960704, + "heapUsed": 57233064, + "external": 24579539, + "arrayBuffers": 9889947 + }, + "samples": 1, + "maxSampleGapMs": 0.6740859999990789, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + } + ] + }, + { + "round": 1, + "mode": "direct", + "sidePixels": 512, + "fileBytes": 787247, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T18:34:57.674213241Z", + "healthy 2026-11-11T18:34:57.70944835Z" + ], + "warmupInstances": [ + "073aad49213a", + "ca7302f05bcf" + ], + "requestIds": [ + "03bf5771-758d-41bd-bf57-8a4b86d3ec71", + "b245154d-ef89-4997-b0c7-9d6532ff9a2d", + "b4065e36-8026-408f-9921-4daa1e543478" + ], + "successfulUploads": 3, + "elapsedSeconds": 0.928214499988826, + "memory": [ + { + "instance": "ca7302f05bcf", + "event": "summary", + "pid": 7, + "baselineRssBytes": 205713408, + "sampledPeakRssBytes": 205713408, + "finalRssBytes": 205713408, + "baselineCgroupBytes": 156246016, + "sampledPeakCgroupBytes": 157016064, + "finalCgroupBytes": 157016064, + "lifetimeHwmBeforeBytes": 205713408, + "lifetimeHwmAfterBytes": 205713408, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 6291, + "networkTxBytes": 10521, + "samples": 19, + "maxSampleGapMs": 50.917711000000054, + "durationMs": 858.418408 + }, + { + "instance": "073aad49213a", + "event": "summary", + "pid": 7, + "baselineRssBytes": 199090176, + "sampledPeakRssBytes": 205774848, + "finalRssBytes": 205774848, + "baselineCgroupBytes": 150196224, + "sampledPeakCgroupBytes": 157466624, + "finalCgroupBytes": 157466624, + "lifetimeHwmBeforeBytes": 199090176, + "lifetimeHwmAfterBytes": 205774848, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 2383701, + "networkTxBytes": 32040, + "samples": 18, + "maxSampleGapMs": 51.046738000000005, + "durationMs": 856.8868419999999 + } + ], + "apiRxBytes": 2389992, + "apiTxBytes": 42561, + "idleAfterFiveSeconds": [ + { + "instance": "ca7302f05bcf", + "event": "snapshot", + "rss": 205844480, + "hwm": 205844480, + "oom": 0, + "oomKill": 0, + "rx": 3209408, + "tx": 1651062, + "cgroup": 157159424 + }, + { + "instance": "073aad49213a", + "event": "snapshot", + "rss": 206823424, + "hwm": 206823424, + "oom": 0, + "oomKill": 0, + "rx": 5584539, + "tx": 1669679, + "cgroup": 158334976 + } + ], + "profiles": [ + { + "mode": "direct", + "requestId": "03bf5771-758d-41bd-bf57-8a4b86d3ec71", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 198.54134800000065, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 3.393509000001359, + "before": { + "rss": 199090176, + "heapTotal": 119009280, + "heapUsed": 58607712, + "external": 21440037, + "arrayBuffers": 6746369 + }, + "after": { + "rss": 199221248, + "heapTotal": 119009280, + "heapUsed": 58943376, + "external": 21440483, + "arrayBuffers": 6746815 + }, + "peak": { + "rss": 199221248, + "heapTotal": 119009280, + "heapUsed": 58943376, + "external": 21440483, + "arrayBuffers": 6746815 + }, + "samples": 1, + "maxSampleGapMs": 3.393509000001359, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 3.5301670000008016, + "durationMs": 14.675294999999096, + "before": { + "rss": 199221248, + "heapTotal": 119009280, + "heapUsed": 58698584, + "external": 21440483, + "arrayBuffers": 6746815 + }, + "after": { + "rss": 199221248, + "heapTotal": 119009280, + "heapUsed": 59220464, + "external": 21442582, + "arrayBuffers": 6748914 + }, + "peak": { + "rss": 199221248, + "heapTotal": 119009280, + "heapUsed": 59220464, + "external": 21442582, + "arrayBuffers": 6748914 + }, + "samples": 1, + "maxSampleGapMs": 14.61066799999935, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 18.31387900000118, + "durationMs": 6.958097999999154, + "before": { + "rss": 199221248, + "heapTotal": 119009280, + "heapUsed": 59221712, + "external": 21442582, + "arrayBuffers": 6748914 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59530280, + "external": 21573358, + "arrayBuffers": 6879690 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59530280, + "external": 21573358, + "arrayBuffers": 6879690 + }, + "samples": 2, + "maxSampleGapMs": 5.038618000000497, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 25.449265000001105, + "durationMs": 8.232253999998647, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59531528, + "external": 21573358, + "arrayBuffers": 6879690 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59695376, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59695376, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "samples": 1, + "maxSampleGapMs": 8.085512999999992, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 33.784333999999944, + "durationMs": 0.05927400000109628, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59696624, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59697960, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59697960, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "samples": 1, + "maxSampleGapMs": 0.02601900000081514, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 33.87779899999987, + "durationMs": 0.8288830000001326, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59699208, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59730112, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59730112, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "samples": 1, + "maxSampleGapMs": 0.801008999998885, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 34.76860900000065, + "durationMs": 36.8130340000007, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59731360, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59773480, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59773480, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "samples": 3, + "maxSampleGapMs": 20.416724000000613, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 71.69050100000095, + "durationMs": 0.03679999999985739, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59774728, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59775680, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59775680, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "samples": 1, + "maxSampleGapMs": 0.006171999999423861, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 71.75633200000084, + "durationMs": 34.94022799999948, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 59776928, + "external": 23017596, + "arrayBuffers": 8323928 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60102224, + "external": 23018916, + "arrayBuffers": 8325248 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60102224, + "external": 23018916, + "arrayBuffers": 8325248 + }, + "samples": 3, + "maxSampleGapMs": 20.3484980000012, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 106.89570600000116, + "durationMs": 6.853178999999727, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60103472, + "external": 23018916, + "arrayBuffers": 8325248 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60291944, + "external": 23020232, + "arrayBuffers": 8326564 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60291944, + "external": 23020232, + "arrayBuffers": 8326564 + }, + "samples": 1, + "maxSampleGapMs": 6.800950000000739, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 113.87243699999999, + "durationMs": 1.3378760000014154, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60293192, + "external": 23020232, + "arrayBuffers": 8326564 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60301560, + "external": 23020440, + "arrayBuffers": 8326772 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60301560, + "external": 23020440, + "arrayBuffers": 8326772 + }, + "samples": 1, + "maxSampleGapMs": 1.3071560000007594, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 115.27479400000084, + "durationMs": 81.8369760000005, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60302808, + "external": 23020440, + "arrayBuffers": 8326772 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60570984, + "external": 23020736, + "arrayBuffers": 8327068 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60570984, + "external": 23020736, + "arrayBuffers": 8327068 + }, + "samples": 5, + "maxSampleGapMs": 20.393543000000136, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 197.3706570000013, + "durationMs": 0.9554549999993469, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60572232, + "external": 23020736, + "arrayBuffers": 8327068 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60581784, + "external": 23020736, + "arrayBuffers": 8327068 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60581784, + "external": 23020736, + "arrayBuffers": 8327068 + }, + "samples": 1, + "maxSampleGapMs": 0.8686479999996664, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "direct", + "requestId": "b245154d-ef89-4997-b0c7-9d6532ff9a2d", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 203.66571400000066, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 3.1982570000000123, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60616232, + "external": 23020736, + "arrayBuffers": 8327068 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60692736, + "external": 23021182, + "arrayBuffers": 8327514 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60692736, + "external": 23021182, + "arrayBuffers": 8327514 + }, + "samples": 1, + "maxSampleGapMs": 3.1982570000000123, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 3.3272460000007413, + "durationMs": 14.366640000000189, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 60694136, + "external": 23021182, + "arrayBuffers": 8327514 + }, + "after": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 61178728, + "external": 23023281, + "arrayBuffers": 8329613 + }, + "peak": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 61178728, + "external": 23023281, + "arrayBuffers": 8329613 + }, + "samples": 1, + "maxSampleGapMs": 14.333293000001504, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 17.808575999999448, + "durationMs": 7.809619999999995, + "before": { + "rss": 199352320, + "heapTotal": 119009280, + "heapUsed": 61179976, + "external": 23023281, + "arrayBuffers": 8329613 + }, + "after": { + "rss": 199483392, + "heapTotal": 119009280, + "heapUsed": 61477464, + "external": 23154057, + "arrayBuffers": 8460389 + }, + "peak": { + "rss": 199483392, + "heapTotal": 119009280, + "heapUsed": 61477464, + "external": 23154057, + "arrayBuffers": 8460389 + }, + "samples": 2, + "maxSampleGapMs": 5.578306999999768, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 25.80549400000018, + "durationMs": 9.778340999999273, + "before": { + "rss": 199483392, + "heapTotal": 119009280, + "heapUsed": 61478712, + "external": 23154057, + "arrayBuffers": 8460389 + }, + "after": { + "rss": 200400896, + "heapTotal": 119009280, + "heapUsed": 61654880, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "peak": { + "rss": 200400896, + "heapTotal": 119009280, + "heapUsed": 61654880, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "samples": 1, + "maxSampleGapMs": 9.692864999999074, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 35.75074500000119, + "durationMs": 0.1850109999995766, + "before": { + "rss": 200400896, + "heapTotal": 119009280, + "heapUsed": 61656128, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "after": { + "rss": 200400896, + "heapTotal": 119009280, + "heapUsed": 61657592, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "peak": { + "rss": 200400896, + "heapTotal": 119009280, + "heapUsed": 61657592, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "samples": 1, + "maxSampleGapMs": 0.1185459999996965, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 36.013278000000355, + "durationMs": 1.6111739999996644, + "before": { + "rss": 200400896, + "heapTotal": 119009280, + "heapUsed": 62044352, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "after": { + "rss": 200400896, + "heapTotal": 119009280, + "heapUsed": 61711472, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "peak": { + "rss": 200400896, + "heapTotal": 119009280, + "heapUsed": 62044352, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "samples": 1, + "maxSampleGapMs": 1.5434599999989587, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 37.72791900000084, + "durationMs": 40.526143999999476, + "before": { + "rss": 200400896, + "heapTotal": 119009280, + "heapUsed": 61712720, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "after": { + "rss": 201056256, + "heapTotal": 119009280, + "heapUsed": 61734848, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "peak": { + "rss": 201056256, + "heapTotal": 119009280, + "heapUsed": 61734848, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "samples": 3, + "maxSampleGapMs": 22.709326000000146, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 78.40867500000058, + "durationMs": 0.05411199999980454, + "before": { + "rss": 201056256, + "heapTotal": 119009280, + "heapUsed": 61736096, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "after": { + "rss": 201056256, + "heapTotal": 119009280, + "heapUsed": 61737048, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "peak": { + "rss": 201056256, + "heapTotal": 119009280, + "heapUsed": 61737048, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "samples": 1, + "maxSampleGapMs": 0.009468000000197208, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 78.50126799999998, + "durationMs": 33.93388500000037, + "before": { + "rss": 201056256, + "heapTotal": 119009280, + "heapUsed": 61738296, + "external": 24598295, + "arrayBuffers": 9904627 + }, + "after": { + "rss": 201449472, + "heapTotal": 119009280, + "heapUsed": 62063736, + "external": 24599615, + "arrayBuffers": 9905947 + }, + "peak": { + "rss": 201449472, + "heapTotal": 119009280, + "heapUsed": 62063736, + "external": 24599615, + "arrayBuffers": 9905947 + }, + "samples": 3, + "maxSampleGapMs": 20.579687999999805, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 112.61017300000094, + "durationMs": 5.853465000000142, + "before": { + "rss": 201449472, + "heapTotal": 119009280, + "heapUsed": 62064984, + "external": 24599615, + "arrayBuffers": 9905947 + }, + "after": { + "rss": 201580544, + "heapTotal": 119009280, + "heapUsed": 62254976, + "external": 24600931, + "arrayBuffers": 9907263 + }, + "peak": { + "rss": 201580544, + "heapTotal": 119009280, + "heapUsed": 62254976, + "external": 24600931, + "arrayBuffers": 9907263 + }, + "samples": 1, + "maxSampleGapMs": 5.774694000001546, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 118.58663900000101, + "durationMs": 1.5042259999991074, + "before": { + "rss": 201580544, + "heapTotal": 119009280, + "heapUsed": 62256224, + "external": 24600931, + "arrayBuffers": 9907263 + }, + "after": { + "rss": 201580544, + "heapTotal": 119009280, + "heapUsed": 62276288, + "external": 24601139, + "arrayBuffers": 9907471 + }, + "peak": { + "rss": 201580544, + "heapTotal": 119009280, + "heapUsed": 62276288, + "external": 24601139, + "arrayBuffers": 9907471 + }, + "samples": 1, + "maxSampleGapMs": 1.4718149999989691, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 120.1971420000009, + "durationMs": 82.16806499999984, + "before": { + "rss": 201580544, + "heapTotal": 119009280, + "heapUsed": 62277536, + "external": 24601139, + "arrayBuffers": 9907471 + }, + "after": { + "rss": 201842688, + "heapTotal": 119009280, + "heapUsed": 62544456, + "external": 24601435, + "arrayBuffers": 9907767 + }, + "peak": { + "rss": 201842688, + "heapTotal": 119009280, + "heapUsed": 62544456, + "external": 24601435, + "arrayBuffers": 9907767 + }, + "samples": 5, + "maxSampleGapMs": 20.353272999998808, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 202.53128099999958, + "durationMs": 0.9330280000012863, + "before": { + "rss": 201842688, + "heapTotal": 119009280, + "heapUsed": 62890896, + "external": 24601435, + "arrayBuffers": 9907767 + }, + "after": { + "rss": 201842688, + "heapTotal": 119009280, + "heapUsed": 62564560, + "external": 24601435, + "arrayBuffers": 9907767 + }, + "peak": { + "rss": 201842688, + "heapTotal": 119009280, + "heapUsed": 62890896, + "external": 24601435, + "arrayBuffers": 9907767 + }, + "samples": 1, + "maxSampleGapMs": 0.7585140000010142, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "direct", + "requestId": "b4065e36-8026-408f-9921-4daa1e543478", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 201.85958799999935, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 4.3757819999991625, + "before": { + "rss": 201973760, + "heapTotal": 119009280, + "heapUsed": 62599000, + "external": 24601435, + "arrayBuffers": 9907767 + }, + "after": { + "rss": 201973760, + "heapTotal": 119009280, + "heapUsed": 62677832, + "external": 24601881, + "arrayBuffers": 9908213 + }, + "peak": { + "rss": 201973760, + "heapTotal": 119009280, + "heapUsed": 62677832, + "external": 24601881, + "arrayBuffers": 9908213 + }, + "samples": 1, + "maxSampleGapMs": 4.3757819999991625, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 4.50392599999941, + "durationMs": 14.542199000001347, + "before": { + "rss": 201973760, + "heapTotal": 119009280, + "heapUsed": 62679232, + "external": 24601881, + "arrayBuffers": 9908213 + }, + "after": { + "rss": 202498048, + "heapTotal": 119009280, + "heapUsed": 63379304, + "external": 24603980, + "arrayBuffers": 9910312 + }, + "peak": { + "rss": 202498048, + "heapTotal": 119009280, + "heapUsed": 63379304, + "external": 24603980, + "arrayBuffers": 9910312 + }, + "samples": 1, + "maxSampleGapMs": 14.498162000001685, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 19.214265000000523, + "durationMs": 5.9117109999988315, + "before": { + "rss": 202498048, + "heapTotal": 119009280, + "heapUsed": 63183872, + "external": 24603980, + "arrayBuffers": 9910312 + }, + "after": { + "rss": 202891264, + "heapTotal": 119009280, + "heapUsed": 63485384, + "external": 24734004, + "arrayBuffers": 10040336 + }, + "peak": { + "rss": 202891264, + "heapTotal": 119009280, + "heapUsed": 63485384, + "external": 24734004, + "arrayBuffers": 10040336 + }, + "samples": 2, + "maxSampleGapMs": 3.643808999999237, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 25.252604999999676, + "durationMs": 13.247085999999399, + "before": { + "rss": 202891264, + "heapTotal": 119009280, + "heapUsed": 63486632, + "external": 24734004, + "arrayBuffers": 10040336 + }, + "after": { + "rss": 204464128, + "heapTotal": 119271424, + "heapUsed": 63913464, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "peak": { + "rss": 204464128, + "heapTotal": 119271424, + "heapUsed": 63913464, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "samples": 1, + "maxSampleGapMs": 13.214381999998295, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 38.63451200000054, + "durationMs": 0.07273699999859673, + "before": { + "rss": 204464128, + "heapTotal": 119271424, + "heapUsed": 63664400, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "after": { + "rss": 204464128, + "heapTotal": 119271424, + "heapUsed": 63665736, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "peak": { + "rss": 204464128, + "heapTotal": 119271424, + "heapUsed": 63665736, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "samples": 1, + "maxSampleGapMs": 0.0320240000000922, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 38.748310999999376, + "durationMs": 1.0701179999996384, + "before": { + "rss": 204464128, + "heapTotal": 119271424, + "heapUsed": 63666984, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "after": { + "rss": 204464128, + "heapTotal": 119533568, + "heapUsed": 63739232, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "peak": { + "rss": 204464128, + "heapTotal": 119533568, + "heapUsed": 63739232, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "samples": 1, + "maxSampleGapMs": 1.0226279999988037, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 39.915751999998974, + "durationMs": 35.441140000000814, + "before": { + "rss": 204464128, + "heapTotal": 119533568, + "heapUsed": 63740480, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "after": { + "rss": 204726272, + "heapTotal": 119533568, + "heapUsed": 63763360, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "peak": { + "rss": 204726272, + "heapTotal": 119533568, + "heapUsed": 63763360, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "samples": 3, + "maxSampleGapMs": 20.2826129999994, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 75.48983000000044, + "durationMs": 0.052283999999417574, + "before": { + "rss": 204726272, + "heapTotal": 119533568, + "heapUsed": 63764608, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "after": { + "rss": 204726272, + "heapTotal": 119533568, + "heapUsed": 63765560, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "peak": { + "rss": 204726272, + "heapTotal": 119533568, + "heapUsed": 63765560, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "samples": 1, + "maxSampleGapMs": 0.008062999999310705, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 75.58736399999907, + "durationMs": 35.18383300000096, + "before": { + "rss": 204726272, + "heapTotal": 119533568, + "heapUsed": 63766808, + "external": 26178994, + "arrayBuffers": 11485326 + }, + "after": { + "rss": 204988416, + "heapTotal": 119533568, + "heapUsed": 64091048, + "external": 26245850, + "arrayBuffers": 11552182 + }, + "peak": { + "rss": 204988416, + "heapTotal": 119533568, + "heapUsed": 64091048, + "external": 26245850, + "arrayBuffers": 11552182 + }, + "samples": 3, + "maxSampleGapMs": 20.325843000000532, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 110.90566899999976, + "durationMs": 7.072206999999253, + "before": { + "rss": 204988416, + "heapTotal": 119533568, + "heapUsed": 64092296, + "external": 26245850, + "arrayBuffers": 11552182 + }, + "after": { + "rss": 205512704, + "heapTotal": 119533568, + "heapUsed": 64309800, + "external": 26247166, + "arrayBuffers": 11553498 + }, + "peak": { + "rss": 205512704, + "heapTotal": 119533568, + "heapUsed": 64309800, + "external": 26247166, + "arrayBuffers": 11553498 + }, + "samples": 1, + "maxSampleGapMs": 7.025644999999713, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 118.11336800000026, + "durationMs": 1.4984860000004119, + "before": { + "rss": 205512704, + "heapTotal": 119533568, + "heapUsed": 64311048, + "external": 26247166, + "arrayBuffers": 11553498 + }, + "after": { + "rss": 205512704, + "heapTotal": 119533568, + "heapUsed": 64319632, + "external": 26247374, + "arrayBuffers": 11553706 + }, + "peak": { + "rss": 205512704, + "heapTotal": 119533568, + "heapUsed": 64319632, + "external": 26247374, + "arrayBuffers": 11553706 + }, + "samples": 1, + "maxSampleGapMs": 1.4598220000007132, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 119.88646399999925, + "durationMs": 80.47605300000032, + "before": { + "rss": 205512704, + "heapTotal": 119533568, + "heapUsed": 64320880, + "external": 26247374, + "arrayBuffers": 11553706 + }, + "after": { + "rss": 205774848, + "heapTotal": 119533568, + "heapUsed": 64585848, + "external": 26247670, + "arrayBuffers": 11554002 + }, + "peak": { + "rss": 205774848, + "heapTotal": 119533568, + "heapUsed": 64585848, + "external": 26247670, + "arrayBuffers": 11554002 + }, + "samples": 5, + "maxSampleGapMs": 20.439595999998346, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 200.52041699999972, + "durationMs": 1.0725509999992937, + "before": { + "rss": 205774848, + "heapTotal": 119533568, + "heapUsed": 64587096, + "external": 26247670, + "arrayBuffers": 11554002 + }, + "after": { + "rss": 205774848, + "heapTotal": 119533568, + "heapUsed": 64596560, + "external": 26247670, + "arrayBuffers": 11554002 + }, + "peak": { + "rss": 205774848, + "heapTotal": 119533568, + "heapUsed": 64596560, + "external": 26247670, + "arrayBuffers": 11554002 + }, + "samples": 1, + "maxSampleGapMs": 1.0331889999997657, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + } + ] + }, + { + "round": 1, + "mode": "proxy", + "sidePixels": 1792, + "fileBytes": 9638577, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T18:35:30.218010779Z", + "healthy 2026-11-11T18:35:30.252327532Z" + ], + "warmupInstances": [ + "073aad49213a", + "ca7302f05bcf" + ], + "requestIds": [ + "1d47a6eb-a9ad-4ba2-bcd2-6ac79e5fcec4", + "80a252a2-cf79-41d8-85b4-64395a050bbb", + "73deae81-d102-453c-a910-f85746fa8ad7" + ], + "successfulUploads": 3, + "elapsedSeconds": 4.586954300000798, + "memory": [ + { + "instance": "ca7302f05bcf", + "event": "summary", + "pid": 6, + "baselineRssBytes": 245829632, + "sampledPeakRssBytes": 266633216, + "finalRssBytes": 266633216, + "baselineCgroupBytes": 196808704, + "sampledPeakCgroupBytes": 220119040, + "finalCgroupBytes": 219119616, + "lifetimeHwmBeforeBytes": 255078400, + "lifetimeHwmAfterBytes": 266633216, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 19466605, + "networkTxBytes": 19349020, + "samples": 82, + "maxSampleGapMs": 98.35061599999972, + "durationMs": 4241.279676 + }, + { + "instance": "073aad49213a", + "event": "summary", + "pid": 6, + "baselineRssBytes": 230584320, + "sampledPeakRssBytes": 242995200, + "finalRssBytes": 242995200, + "baselineCgroupBytes": 181633024, + "sampledPeakCgroupBytes": 195694592, + "finalCgroupBytes": 195248128, + "lifetimeHwmBeforeBytes": 239497216, + "lifetimeHwmAfterBytes": 242995200, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9724171, + "networkTxBytes": 9674653, + "samples": 83, + "maxSampleGapMs": 81.47632800000065, + "durationMs": 4229.718916 + } + ], + "apiRxBytes": 29190776, + "apiTxBytes": 29023673, + "idleAfterFiveSeconds": [ + { + "instance": "ca7302f05bcf", + "event": "snapshot", + "rss": 266633216, + "hwm": 266633216, + "oom": 0, + "oomKill": 0, + "rx": 58283272, + "tx": 58146527, + "cgroup": 218988544 + }, + { + "instance": "073aad49213a", + "event": "snapshot", + "rss": 242995200, + "hwm": 242995200, + "oom": 0, + "oomKill": 0, + "rx": 48527885, + "tx": 48393934, + "cgroup": 195358720 + } + ], + "profiles": [ + { + "mode": "proxy", + "requestId": "1d47a6eb-a9ad-4ba2-bcd2-6ac79e5fcec4", + "instance": "ca7302f05bcf", + "pid": 6, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 998.7955890000012, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 409.7332209999986, + "before": { + "rss": 245829632, + "heapTotal": 119009280, + "heapUsed": 47891640, + "external": 17594649, + "arrayBuffers": 2905249 + }, + "after": { + "rss": 245829632, + "heapTotal": 119009280, + "heapUsed": 48276144, + "external": 36872247, + "arrayBuffers": 22182847 + }, + "peak": { + "rss": 245829632, + "heapTotal": 119009280, + "heapUsed": 48276144, + "external": 36872247, + "arrayBuffers": 22182847 + }, + "samples": 21, + "maxSampleGapMs": 21.8660970000019, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 413.75431799999933, + "durationMs": 4.171265000000858, + "before": { + "rss": 245829632, + "heapTotal": 119009280, + "heapUsed": 48277624, + "external": 36872247, + "arrayBuffers": 22182847 + }, + "after": { + "rss": 245829632, + "heapTotal": 119009280, + "heapUsed": 48369064, + "external": 36872423, + "arrayBuffers": 22183023 + }, + "peak": { + "rss": 245829632, + "heapTotal": 119009280, + "heapUsed": 48369064, + "external": 36872423, + "arrayBuffers": 22183023 + }, + "samples": 1, + "maxSampleGapMs": 4.021703999998863, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 418.08453999999983, + "durationMs": 10.978392000000895, + "before": { + "rss": 245829632, + "heapTotal": 119009280, + "heapUsed": 48390056, + "external": 36872423, + "arrayBuffers": 22183023 + }, + "after": { + "rss": 246091776, + "heapTotal": 52948992, + "heapUsed": 44858376, + "external": 36867830, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 246091776, + "heapTotal": 119009280, + "heapUsed": 48390056, + "external": 36872423, + "arrayBuffers": 22183023 + }, + "samples": 2, + "maxSampleGapMs": 10.508209999999963, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 429.1654720000006, + "durationMs": 242.25775900000008, + "before": { + "rss": 246091776, + "heapTotal": 52948992, + "heapUsed": 44859624, + "external": 36867830, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 44972696, + "external": 36867830, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 44972696, + "external": 36867830, + "arrayBuffers": 19691809 + }, + "samples": 12, + "maxSampleGapMs": 20.570263999998133, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 671.5342100000016, + "durationMs": 0.058382999999594176, + "before": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 44973944, + "external": 36867830, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 44975640, + "external": 36867830, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 44975640, + "external": 36867830, + "arrayBuffers": 19691809 + }, + "samples": 1, + "maxSampleGapMs": 0.019838000000163447, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 671.6311840000017, + "durationMs": 3.801002000000153, + "before": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 44976888, + "external": 36867830, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45109072, + "external": 34376722, + "arrayBuffers": 19691915 + }, + "peak": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45109072, + "external": 36867830, + "arrayBuffers": 19691915 + }, + "samples": 2, + "maxSampleGapMs": 2.2045499999985623, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 675.5402350000004, + "durationMs": 308.875505, + "before": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45110320, + "external": 34376722, + "arrayBuffers": 19691915 + }, + "after": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45771432, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "peak": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45771432, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "samples": 16, + "maxSampleGapMs": 20.645728999999847, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 984.5797300000013, + "durationMs": 6.447109000000637, + "before": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45586112, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "after": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45587376, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "peak": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45587376, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "samples": 1, + "maxSampleGapMs": 6.398370000002615, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 991.249953999999, + "durationMs": 6.05670900000041, + "before": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45588624, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "after": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45913864, + "external": 34377868, + "arrayBuffers": 19693061 + }, + "peak": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45913864, + "external": 34377868, + "arrayBuffers": 19693061 + }, + "samples": 2, + "maxSampleGapMs": 3.293385999997554, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 997.4497310000006, + "durationMs": 0.8695389999993495, + "before": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45915136, + "external": 34377868, + "arrayBuffers": 19693061 + }, + "after": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45750552, + "external": 34377868, + "arrayBuffers": 19693061 + }, + "peak": { + "rss": 256446464, + "heapTotal": 52948992, + "heapUsed": 45915136, + "external": 34377868, + "arrayBuffers": 19693061 + }, + "samples": 1, + "maxSampleGapMs": 0.8198259999990114, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "proxy", + "requestId": "80a252a2-cf79-41d8-85b4-64395a050bbb", + "instance": "073aad49213a", + "pid": 6, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 1532.9050209999987, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 398.2551549999989, + "before": { + "rss": 230584320, + "heapTotal": 55308288, + "heapUsed": 46289040, + "external": 43814075, + "arrayBuffers": 414035 + }, + "after": { + "rss": 230584320, + "heapTotal": 52162560, + "heapUsed": 44447680, + "external": 34376440, + "arrayBuffers": 19691633 + }, + "peak": { + "rss": 230584320, + "heapTotal": 55308288, + "heapUsed": 47035840, + "external": 43814075, + "arrayBuffers": 19691633 + }, + "samples": 18, + "maxSampleGapMs": 47.211151000003156, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 398.4012539999967, + "durationMs": 22.981996000002255, + "before": { + "rss": 230584320, + "heapTotal": 52162560, + "heapUsed": 44449160, + "external": 34376440, + "arrayBuffers": 19691633 + }, + "after": { + "rss": 230584320, + "heapTotal": 52162560, + "heapUsed": 44544112, + "external": 34376616, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 230584320, + "heapTotal": 52162560, + "heapUsed": 44544112, + "external": 34376616, + "arrayBuffers": 19691809 + }, + "samples": 1, + "maxSampleGapMs": 22.937729000001127, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 421.62417399999686, + "durationMs": 9.750284000001557, + "before": { + "rss": 230584320, + "heapTotal": 52162560, + "heapUsed": 44545360, + "external": 34376616, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 230584320, + "heapTotal": 52162560, + "heapUsed": 44587864, + "external": 34376616, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 230584320, + "heapTotal": 52162560, + "heapUsed": 44587864, + "external": 34376616, + "arrayBuffers": 19691809 + }, + "samples": 2, + "maxSampleGapMs": 9.136261999999988, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 431.4901030000001, + "durationMs": 702.5621779999965, + "before": { + "rss": 230584320, + "heapTotal": 52162560, + "heapUsed": 44589112, + "external": 34376616, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 242864128, + "heapTotal": 52965376, + "heapUsed": 43629304, + "external": 34375940, + "arrayBuffers": 10053232 + }, + "peak": { + "rss": 242864128, + "heapTotal": 52965376, + "heapUsed": 44589112, + "external": 34376616, + "arrayBuffers": 19691809 + }, + "samples": 34, + "maxSampleGapMs": 30.546143999999913, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 1134.1972319999986, + "durationMs": 0.08530099999916274, + "before": { + "rss": 242864128, + "heapTotal": 52965376, + "heapUsed": 43630552, + "external": 34375940, + "arrayBuffers": 10053232 + }, + "after": { + "rss": 242864128, + "heapTotal": 52965376, + "heapUsed": 43632248, + "external": 34375940, + "arrayBuffers": 10053232 + }, + "peak": { + "rss": 242864128, + "heapTotal": 52965376, + "heapUsed": 43632248, + "external": 34375940, + "arrayBuffers": 10053232 + }, + "samples": 1, + "maxSampleGapMs": 0.02389699999912409, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 1134.3501819999983, + "durationMs": 10.050306000001001, + "before": { + "rss": 242864128, + "heapTotal": 52965376, + "heapUsed": 43633496, + "external": 34375940, + "arrayBuffers": 10053232 + }, + "after": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 43771096, + "external": 24737469, + "arrayBuffers": 10053338 + }, + "peak": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 43771096, + "external": 34375940, + "arrayBuffers": 10053338 + }, + "samples": 2, + "maxSampleGapMs": 8.936087000001862, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 1144.6300239999982, + "durationMs": 331.65250599999854, + "before": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 43772344, + "external": 24737469, + "arrayBuffers": 10053338 + }, + "after": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44225488, + "external": 24737902, + "arrayBuffers": 10053771 + }, + "peak": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44225488, + "external": 24737902, + "arrayBuffers": 10053771 + }, + "samples": 16, + "maxSampleGapMs": 28.58958900000289, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 1481.5199169999978, + "durationMs": 14.87654300000213, + "before": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44226736, + "external": 24737902, + "arrayBuffers": 10053771 + }, + "after": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44228000, + "external": 24737902, + "arrayBuffers": 10053771 + }, + "peak": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44228000, + "external": 24737902, + "arrayBuffers": 10053771 + }, + "samples": 1, + "maxSampleGapMs": 14.796367000002647, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 1496.5732699999971, + "durationMs": 35.104284000000916, + "before": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44229248, + "external": 24737902, + "arrayBuffers": 10053771 + }, + "after": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44382728, + "external": 24738615, + "arrayBuffers": 10054484 + }, + "peak": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44382728, + "external": 24738615, + "arrayBuffers": 10054484 + }, + "samples": 2, + "maxSampleGapMs": 28.273936999998114, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 1531.8025849999976, + "durationMs": 0.7637859999995271, + "before": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44383976, + "external": 24738615, + "arrayBuffers": 10054484 + }, + "after": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44396168, + "external": 24738615, + "arrayBuffers": 10054484 + }, + "peak": { + "rss": 242995200, + "heapTotal": 52965376, + "heapUsed": 44396168, + "external": 24738615, + "arrayBuffers": 10054484 + }, + "samples": 1, + "maxSampleGapMs": 0.6770619999988412, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "proxy", + "requestId": "73deae81-d102-453c-a910-f85746fa8ad7", + "instance": "ca7302f05bcf", + "pid": 6, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 1647.1745159999991, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 795.071398, + "before": { + "rss": 256446464, + "heapTotal": 56094720, + "heapUsed": 45775448, + "external": 34378460, + "arrayBuffers": 19693653 + }, + "after": { + "rss": 266145792, + "heapTotal": 56094720, + "heapUsed": 46116144, + "external": 53656058, + "arrayBuffers": 38971251 + }, + "peak": { + "rss": 266145792, + "heapTotal": 56094720, + "heapUsed": 46116144, + "external": 53656058, + "arrayBuffers": 38971251 + }, + "samples": 29, + "maxSampleGapMs": 149.42470400000093, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 802.7123429999992, + "durationMs": 42.8154289999984, + "before": { + "rss": 266145792, + "heapTotal": 56094720, + "heapUsed": 46117544, + "external": 53656058, + "arrayBuffers": 38971251 + }, + "after": { + "rss": 265977856, + "heapTotal": 52178944, + "heapUsed": 43847592, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 266145792, + "heapTotal": 56094720, + "heapUsed": 46117544, + "external": 53656058, + "arrayBuffers": 38971251 + }, + "samples": 2, + "maxSampleGapMs": 41.468542999999045, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 845.6987689999987, + "durationMs": 6.679767000001448, + "before": { + "rss": 265977856, + "heapTotal": 52178944, + "heapUsed": 43848664, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 265977856, + "heapTotal": 52178944, + "heapUsed": 43969976, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 265977856, + "heapTotal": 52178944, + "heapUsed": 43969976, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "samples": 1, + "maxSampleGapMs": 6.607398000000103, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 852.5053029999981, + "durationMs": 517.6969210000025, + "before": { + "rss": 265977856, + "heapTotal": 52178944, + "heapUsed": 43971032, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 266633216, + "heapTotal": 52178944, + "heapUsed": 44409640, + "external": 34376862, + "arrayBuffers": 19692731 + }, + "peak": { + "rss": 266633216, + "heapTotal": 52178944, + "heapUsed": 44409640, + "external": 34376862, + "arrayBuffers": 19692731 + }, + "samples": 25, + "maxSampleGapMs": 41.14748899999904, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 1370.3616669999974, + "durationMs": 0.08746900000187452, + "before": { + "rss": 266633216, + "heapTotal": 52178944, + "heapUsed": 44410712, + "external": 34376862, + "arrayBuffers": 19692731 + }, + "after": { + "rss": 266633216, + "heapTotal": 52178944, + "heapUsed": 44412408, + "external": 34376862, + "arrayBuffers": 19692731 + }, + "peak": { + "rss": 266633216, + "heapTotal": 52178944, + "heapUsed": 44412408, + "external": 34376862, + "arrayBuffers": 19692731 + }, + "samples": 1, + "maxSampleGapMs": 0.030482000001939014, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 1370.5025769999993, + "durationMs": 4.752142999997886, + "before": { + "rss": 266633216, + "heapTotal": 52178944, + "heapUsed": 44413472, + "external": 34376862, + "arrayBuffers": 19692731 + }, + "after": { + "rss": 266633216, + "heapTotal": 52178944, + "heapUsed": 44545416, + "external": 34376968, + "arrayBuffers": 19692837 + }, + "peak": { + "rss": 266633216, + "heapTotal": 52178944, + "heapUsed": 44545416, + "external": 34376968, + "arrayBuffers": 19692837 + }, + "samples": 1, + "maxSampleGapMs": 4.6995459999998275, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 1375.4401359999974, + "durationMs": 252.14609500000006, + "before": { + "rss": 266633216, + "heapTotal": 52178944, + "heapUsed": 44546472, + "external": 34376968, + "arrayBuffers": 19692837 + }, + "after": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44203360, + "external": 34376477, + "arrayBuffers": 19692346 + }, + "peak": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44850376, + "external": 34377100, + "arrayBuffers": 19692969 + }, + "samples": 13, + "maxSampleGapMs": 20.39686100000108, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 1627.7131999999983, + "durationMs": 7.374241000001348, + "before": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44204432, + "external": 34376477, + "arrayBuffers": 19692346 + }, + "after": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44205696, + "external": 34376477, + "arrayBuffers": 19692346 + }, + "peak": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44205696, + "external": 34376477, + "arrayBuffers": 19692346 + }, + "samples": 1, + "maxSampleGapMs": 7.330957000001945, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 1635.2965149999982, + "durationMs": 6.375996999999188, + "before": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44206752, + "external": 34376477, + "arrayBuffers": 19692346 + }, + "after": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44343464, + "external": 34377190, + "arrayBuffers": 19693059 + }, + "peak": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44343464, + "external": 34377190, + "arrayBuffers": 19693059 + }, + "samples": 2, + "maxSampleGapMs": 3.4039969999976165, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 1641.8036769999999, + "durationMs": 4.986249999998108, + "before": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44344536, + "external": 34377190, + "arrayBuffers": 19693059 + }, + "after": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44354648, + "external": 34377190, + "arrayBuffers": 19693059 + }, + "peak": { + "rss": 266633216, + "heapTotal": 53227520, + "heapUsed": 44354648, + "external": 34377190, + "arrayBuffers": 19693059 + }, + "samples": 1, + "maxSampleGapMs": 4.9442329999983485, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + } + ] + }, + { + "round": 1, + "mode": "direct", + "sidePixels": 1792, + "fileBytes": 9638577, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T18:36:16.722483383Z", + "healthy 2026-11-11T18:36:16.704101156Z" + ], + "warmupInstances": [ + "073aad49213a", + "ca7302f05bcf" + ], + "requestIds": [ + "f16f55e3-b99d-4251-ac6e-6e61235707b1", + "d952274f-0dc2-4f67-a86d-6fce7a6c4e22", + "b8d83aee-6b01-48eb-8216-82ea7fae5acb" + ], + "successfulUploads": 3, + "elapsedSeconds": 7.873754800006282, + "memory": [ + { + "instance": "ca7302f05bcf", + "event": "summary", + "pid": 6, + "baselineRssBytes": 239730688, + "sampledPeakRssBytes": 249954304, + "finalRssBytes": 240320512, + "baselineCgroupBytes": 190562304, + "sampledPeakCgroupBytes": 212611072, + "finalCgroupBytes": 192761856, + "lifetimeHwmBeforeBytes": 239730688, + "lifetimeHwmAfterBytes": 249954304, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9664908, + "networkTxBytes": 27013, + "samples": 137, + "maxSampleGapMs": 99.57990100000097, + "durationMs": 7228.984685 + }, + { + "instance": "073aad49213a", + "event": "summary", + "pid": 7, + "baselineRssBytes": 244125696, + "sampledPeakRssBytes": 250929152, + "finalRssBytes": 250929152, + "baselineCgroupBytes": 194752512, + "sampledPeakCgroupBytes": 213008384, + "finalCgroupBytes": 203165696, + "lifetimeHwmBeforeBytes": 253632512, + "lifetimeHwmAfterBytes": 253632512, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 19324117, + "networkTxBytes": 42208, + "samples": 132, + "maxSampleGapMs": 211.30507099999886, + "durationMs": 7227.200357000001 + } + ], + "apiRxBytes": 28989025, + "apiTxBytes": 69221, + "idleAfterFiveSeconds": [ + { + "instance": "ca7302f05bcf", + "event": "snapshot", + "rss": 240320512, + "hwm": 249954304, + "oom": 0, + "oomKill": 0, + "rx": 29017511, + "tx": 9748191, + "cgroup": 192872448 + }, + { + "instance": "073aad49213a", + "event": "snapshot", + "rss": 251060224, + "hwm": 253632512, + "oom": 0, + "oomKill": 0, + "rx": 77301336, + "tx": 29115860, + "cgroup": 203255808 + } + ], + "profiles": [ + { + "mode": "direct", + "requestId": "f16f55e3-b99d-4251-ac6e-6e61235707b1", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 773.1408269999993, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 3.1299010000002454, + "before": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 46613632, + "external": 21803240, + "arrayBuffers": 7115033 + }, + "after": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 46700464, + "external": 21803686, + "arrayBuffers": 7115479 + }, + "peak": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 46700464, + "external": 21803686, + "arrayBuffers": 7115479 + }, + "samples": 1, + "maxSampleGapMs": 3.1299010000002454, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 3.2649509999973816, + "durationMs": 14.497779000001174, + "before": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 46701864, + "external": 21803686, + "arrayBuffers": 7115479 + }, + "after": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 47186600, + "external": 21805787, + "arrayBuffers": 7117580 + }, + "peak": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 47186600, + "external": 21805787, + "arrayBuffers": 7117580 + }, + "samples": 1, + "maxSampleGapMs": 14.446477000001323, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 17.954610999997385, + "durationMs": 40.13048300000082, + "before": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 47187848, + "external": 21805787, + "arrayBuffers": 7117580 + }, + "after": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 47510816, + "external": 21834450, + "arrayBuffers": 7146243 + }, + "peak": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 47510816, + "external": 21834450, + "arrayBuffers": 7146243 + }, + "samples": 3, + "maxSampleGapMs": 20.365497999999207, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 58.263897000000725, + "durationMs": 113.06365000000005, + "before": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 47512064, + "external": 21834450, + "arrayBuffers": 7146243 + }, + "after": { + "rss": 239878144, + "heapTotal": 119025664, + "heapUsed": 44306256, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "peak": { + "rss": 244125696, + "heapTotal": 119025664, + "heapUsed": 48046608, + "external": 31992530, + "arrayBuffers": 17304323 + }, + "samples": 7, + "maxSampleGapMs": 24.8143020000025, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 171.44585499999812, + "durationMs": 0.07092800000100397, + "before": { + "rss": 239878144, + "heapTotal": 119025664, + "heapUsed": 44307504, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "after": { + "rss": 239878144, + "heapTotal": 119025664, + "heapUsed": 44308840, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "peak": { + "rss": 239878144, + "heapTotal": 119025664, + "heapUsed": 44308840, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "samples": 1, + "maxSampleGapMs": 0.029893999999330845, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 171.55827599999975, + "durationMs": 1.0060499999999593, + "before": { + "rss": 239878144, + "heapTotal": 119025664, + "heapUsed": 44310088, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "after": { + "rss": 239878144, + "heapTotal": 119025664, + "heapUsed": 44362736, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "peak": { + "rss": 239878144, + "heapTotal": 119025664, + "heapUsed": 44362736, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "samples": 1, + "maxSampleGapMs": 0.9730430000017805, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 172.63420699999915, + "durationMs": 229.48014200000034, + "before": { + "rss": 239878144, + "heapTotal": 119025664, + "heapUsed": 44363984, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "after": { + "rss": 250232832, + "heapTotal": 119025664, + "heapUsed": 44404272, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "peak": { + "rss": 250232832, + "heapTotal": 119025664, + "heapUsed": 44404272, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "samples": 12, + "maxSampleGapMs": 20.633955999997852, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 402.25333899999896, + "durationMs": 0.06965199999831384, + "before": { + "rss": 250232832, + "heapTotal": 119025664, + "heapUsed": 44405520, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "after": { + "rss": 250232832, + "heapTotal": 119025664, + "heapUsed": 44406472, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "peak": { + "rss": 250232832, + "heapTotal": 119025664, + "heapUsed": 44406472, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "samples": 1, + "maxSampleGapMs": 0.009698999998363433, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 402.37763500000074, + "durationMs": 214.29640899999868, + "before": { + "rss": 250232832, + "heapTotal": 119025664, + "heapUsed": 44407720, + "external": 21051919, + "arrayBuffers": 10946759 + }, + "after": { + "rss": 250232832, + "heapTotal": 119025664, + "heapUsed": 45209144, + "external": 21054161, + "arrayBuffers": 10949001 + }, + "peak": { + "rss": 250232832, + "heapTotal": 119025664, + "heapUsed": 45209144, + "external": 21054161, + "arrayBuffers": 10949001 + }, + "samples": 12, + "maxSampleGapMs": 21.90738699999929, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 617.0942020000002, + "durationMs": 8.478945999999269, + "before": { + "rss": 250232832, + "heapTotal": 119025664, + "heapUsed": 45210392, + "external": 21054161, + "arrayBuffers": 10949001 + }, + "after": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45439424, + "external": 21055479, + "arrayBuffers": 10950319 + }, + "peak": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45439424, + "external": 21055479, + "arrayBuffers": 10950319 + }, + "samples": 1, + "maxSampleGapMs": 8.424843000000692, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 625.7151589999994, + "durationMs": 7.061262999999599, + "before": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45440672, + "external": 21055479, + "arrayBuffers": 10950319 + }, + "after": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45465736, + "external": 21055687, + "arrayBuffers": 10950527 + }, + "peak": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45465736, + "external": 21055687, + "arrayBuffers": 10950527 + }, + "samples": 2, + "maxSampleGapMs": 6.816021999999066, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 632.8786489999984, + "durationMs": 138.9868439999991, + "before": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45466984, + "external": 21055687, + "arrayBuffers": 10950527 + }, + "after": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45745088, + "external": 21055983, + "arrayBuffers": 10950823 + }, + "peak": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45745088, + "external": 21055983, + "arrayBuffers": 10950823 + }, + "samples": 7, + "maxSampleGapMs": 20.86561100000108, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 772.0672739999973, + "durationMs": 0.8111660000031407, + "before": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45746160, + "external": 21055983, + "arrayBuffers": 10950823 + }, + "after": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45756488, + "external": 21055983, + "arrayBuffers": 10950823 + }, + "peak": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45756488, + "external": 21055983, + "arrayBuffers": 10950823 + }, + "samples": 1, + "maxSampleGapMs": 0.7432040000021516, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "direct", + "requestId": "d952274f-0dc2-4f67-a86d-6fce7a6c4e22", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 2638.003762999997, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 4.687512999997125, + "before": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45792552, + "external": 21055983, + "arrayBuffers": 10950823 + }, + "after": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45882896, + "external": 21056429, + "arrayBuffers": 10951269 + }, + "peak": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45882896, + "external": 21056429, + "arrayBuffers": 10951269 + }, + "samples": 1, + "maxSampleGapMs": 4.687512999997125, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 4.843053000000509, + "durationMs": 26.173540999996476, + "before": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 45884104, + "external": 21056429, + "arrayBuffers": 10951269 + }, + "after": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 46527120, + "external": 21124066, + "arrayBuffers": 11018906 + }, + "peak": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 46527120, + "external": 21124066, + "arrayBuffers": 11018906 + }, + "samples": 2, + "maxSampleGapMs": 15.497693000001163, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 31.260042999998404, + "durationMs": 23.059056999998575, + "before": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 46378600, + "external": 21124066, + "arrayBuffers": 11018906 + }, + "after": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 46691496, + "external": 21219337, + "arrayBuffers": 11114177 + }, + "peak": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 46691496, + "external": 21219337, + "arrayBuffers": 11114177 + }, + "samples": 2, + "maxSampleGapMs": 13.674231999997573, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 54.635432999999466, + "durationMs": 1779.9428679999983, + "before": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 46692568, + "external": 21219337, + "arrayBuffers": 11114177 + }, + "after": { + "rss": 249880576, + "heapTotal": 52178944, + "heapUsed": 44759816, + "external": 22164505, + "arrayBuffers": 12060721 + }, + "peak": { + "rss": 250363904, + "heapTotal": 119025664, + "heapUsed": 47143056, + "external": 29542409, + "arrayBuffers": 19437249 + }, + "samples": 43, + "maxSampleGapMs": 218.7400349999989, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 1835.2662359999995, + "durationMs": 0.7654849999998987, + "before": { + "rss": 249880576, + "heapTotal": 52178944, + "heapUsed": 44760888, + "external": 22164505, + "arrayBuffers": 12060721 + }, + "after": { + "rss": 249880576, + "heapTotal": 52178944, + "heapUsed": 44762224, + "external": 22164505, + "arrayBuffers": 12060721 + }, + "peak": { + "rss": 249880576, + "heapTotal": 52178944, + "heapUsed": 44762224, + "external": 22164505, + "arrayBuffers": 12060721 + }, + "samples": 1, + "maxSampleGapMs": 0.17032599999947706, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 1836.3818049999973, + "durationMs": 4.489056000002165, + "before": { + "rss": 249880576, + "heapTotal": 52178944, + "heapUsed": 44763280, + "external": 22164505, + "arrayBuffers": 12060721 + }, + "after": { + "rss": 249880576, + "heapTotal": 52178944, + "heapUsed": 44806160, + "external": 22164505, + "arrayBuffers": 12060721 + }, + "peak": { + "rss": 249880576, + "heapTotal": 52178944, + "heapUsed": 44806160, + "external": 22164505, + "arrayBuffers": 12060721 + }, + "samples": 2, + "maxSampleGapMs": 2.2172239999999874, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 1842.4211079999986, + "durationMs": 365.0194010000014, + "before": { + "rss": 249880576, + "heapTotal": 52178944, + "heapUsed": 44807232, + "external": 22164505, + "arrayBuffers": 12060721 + }, + "after": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44083624, + "external": 22164505, + "arrayBuffers": 633605 + }, + "peak": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44849288, + "external": 22164505, + "arrayBuffers": 12060721 + }, + "samples": 17, + "maxSampleGapMs": 42.136734000003344, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 2207.5855239999983, + "durationMs": 0.08344600000054925, + "before": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44084696, + "external": 22164505, + "arrayBuffers": 633605 + }, + "after": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44085648, + "external": 22164505, + "arrayBuffers": 633605 + }, + "peak": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44085648, + "external": 22164505, + "arrayBuffers": 633605 + }, + "samples": 1, + "maxSampleGapMs": 0.009560999998939224, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 2207.732770999999, + "durationMs": 214.0990469999997, + "before": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44086704, + "external": 22164505, + "arrayBuffers": 633605 + }, + "after": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44512616, + "external": 10738709, + "arrayBuffers": 634925 + }, + "peak": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44512616, + "external": 22164505, + "arrayBuffers": 634925 + }, + "samples": 11, + "maxSampleGapMs": 21.64787499999875, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 2422.3212779999994, + "durationMs": 12.829380999999557, + "before": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44513688, + "external": 10738709, + "arrayBuffers": 634925 + }, + "after": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44736128, + "external": 10740027, + "arrayBuffers": 636243 + }, + "peak": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44736128, + "external": 10740027, + "arrayBuffers": 636243 + }, + "samples": 2, + "maxSampleGapMs": 8.835580999999365, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 2435.2990900000004, + "durationMs": 16.504962999999407, + "before": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44737200, + "external": 10740027, + "arrayBuffers": 636243 + }, + "after": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44758568, + "external": 10740235, + "arrayBuffers": 636451 + }, + "peak": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44758568, + "external": 10740235, + "arrayBuffers": 636451 + }, + "samples": 2, + "maxSampleGapMs": 11.73749400000088, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 2451.9457059999986, + "durationMs": 184.7285379999994, + "before": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 44759640, + "external": 10740235, + "arrayBuffers": 636451 + }, + "after": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 45039960, + "external": 10740531, + "arrayBuffers": 636747 + }, + "peak": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 45039960, + "external": 10740531, + "arrayBuffers": 636747 + }, + "samples": 10, + "maxSampleGapMs": 21.17329299999983, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 2636.851209999997, + "durationMs": 0.9088560000018333, + "before": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 45041032, + "external": 10740531, + "arrayBuffers": 636747 + }, + "after": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 45052000, + "external": 10740531, + "arrayBuffers": 636747 + }, + "peak": { + "rss": 250929152, + "heapTotal": 55324672, + "heapUsed": 45052000, + "external": 10740531, + "arrayBuffers": 636747 + }, + "samples": 1, + "maxSampleGapMs": 0.8567370000018855, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "direct", + "requestId": "b8d83aee-6b01-48eb-8216-82ea7fae5acb", + "instance": "ca7302f05bcf", + "pid": 6, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 1443.479846000002, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 3.1674000000020897, + "before": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 50064288, + "external": 16696489, + "arrayBuffers": 2003013 + }, + "after": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 50140360, + "external": 16696935, + "arrayBuffers": 2003459 + }, + "peak": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 50140360, + "external": 16696935, + "arrayBuffers": 2003459 + }, + "samples": 1, + "maxSampleGapMs": 3.1674000000020897, + "sharpBefore": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 3.344053000000713, + "durationMs": 50.33221500000218, + "before": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 50141840, + "external": 16696935, + "arrayBuffers": 2003459 + }, + "after": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 50970120, + "external": 16699958, + "arrayBuffers": 2006482 + }, + "peak": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 50970120, + "external": 16699958, + "arrayBuffers": 2006482 + }, + "samples": 3, + "maxSampleGapMs": 22.490883000002214, + "sharpBefore": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 53.804329000002326, + "durationMs": 40.922709999998915, + "before": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 50971368, + "external": 16699958, + "arrayBuffers": 2006482 + }, + "after": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 51290224, + "external": 16714141, + "arrayBuffers": 2020665 + }, + "peak": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 51290224, + "external": 16714141, + "arrayBuffers": 2020665 + }, + "samples": 3, + "maxSampleGapMs": 19.615398000001733, + "sharpBefore": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 94.87896100000216, + "durationMs": 432.3317419999985, + "before": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 51291472, + "external": 16714141, + "arrayBuffers": 2020665 + }, + "after": { + "rss": 239730688, + "heapTotal": 56356864, + "heapUsed": 47109816, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "peak": { + "rss": 239730688, + "heapTotal": 119009280, + "heapUsed": 52065952, + "external": 25561501, + "arrayBuffers": 10868025 + }, + "samples": 20, + "maxSampleGapMs": 39.90537399999812, + "sharpBefore": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 527.3809650000003, + "durationMs": 0.1156810000029509, + "before": { + "rss": 239730688, + "heapTotal": 56356864, + "heapUsed": 47111064, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "after": { + "rss": 239730688, + "heapTotal": 56356864, + "heapUsed": 47112400, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "peak": { + "rss": 239730688, + "heapTotal": 56356864, + "heapUsed": 47112400, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "samples": 1, + "maxSampleGapMs": 0.05132000000230619, + "sharpBefore": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 527.5635420000035, + "durationMs": 1.7922359999975015, + "before": { + "rss": 239730688, + "heapTotal": 56356864, + "heapUsed": 47117504, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "after": { + "rss": 239730688, + "heapTotal": 56356864, + "heapUsed": 47165120, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "peak": { + "rss": 239730688, + "heapTotal": 56356864, + "heapUsed": 47165120, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "samples": 1, + "maxSampleGapMs": 1.652087999998912, + "sharpBefore": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 529.476676000002, + "durationMs": 502.47406000000046, + "before": { + "rss": 239730688, + "heapTotal": 56356864, + "heapUsed": 47166368, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "after": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47232576, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "peak": { + "rss": 249954304, + "heapTotal": 56356864, + "heapUsed": 47232576, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "samples": 25, + "maxSampleGapMs": 27.38207599999805, + "sharpBefore": { + "memory": { + "current": 9, + "high": 12, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 1032.1062300000012, + "durationMs": 0.06778699999995297, + "before": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47233824, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "after": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47234776, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "peak": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47234776, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "samples": 1, + "maxSampleGapMs": 0.01241699999809498, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 1032.237341, + "durationMs": 203.8171930000026, + "before": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47236024, + "external": 17331643, + "arrayBuffers": 2638167 + }, + "after": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47665584, + "external": 17332963, + "arrayBuffers": 2639487 + }, + "peak": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47665584, + "external": 17332963, + "arrayBuffers": 2639487 + }, + "samples": 10, + "maxSampleGapMs": 24.23168000000078, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 1236.219672000003, + "durationMs": 15.739541999999346, + "before": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47666832, + "external": 17332963, + "arrayBuffers": 2639487 + }, + "after": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47884560, + "external": 17334281, + "arrayBuffers": 2640805 + }, + "peak": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47884560, + "external": 17334281, + "arrayBuffers": 2640805 + }, + "samples": 2, + "maxSampleGapMs": 11.728374000002077, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 1253.0678690000022, + "durationMs": 17.897138000000268, + "before": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47885808, + "external": 17334281, + "arrayBuffers": 2640805 + }, + "after": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47898816, + "external": 17334489, + "arrayBuffers": 2641013 + }, + "peak": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47898816, + "external": 17334489, + "arrayBuffers": 2641013 + }, + "samples": 2, + "maxSampleGapMs": 10.799877000001288, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 1271.136013000003, + "durationMs": 171.11821199999758, + "before": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 47900064, + "external": 17334489, + "arrayBuffers": 2641013 + }, + "after": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 48178144, + "external": 17334785, + "arrayBuffers": 2641309 + }, + "peak": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 48178144, + "external": 17334785, + "arrayBuffers": 2641309 + }, + "samples": 9, + "maxSampleGapMs": 23.651976000001014, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 1442.4349200000033, + "durationMs": 0.8139849999970465, + "before": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 48179392, + "external": 17334785, + "arrayBuffers": 2641309 + }, + "after": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 48191200, + "external": 17334785, + "arrayBuffers": 2641309 + }, + "peak": { + "rss": 240320512, + "heapTotal": 56356864, + "heapUsed": 48191200, + "external": 17334785, + "arrayBuffers": 2641309 + }, + "samples": 1, + "maxSampleGapMs": 0.742882999998983, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + } + ] + }, + { + "round": 2, + "mode": "direct", + "sidePixels": 512, + "fileBytes": 787247, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T18:37:00.865730085Z", + "healthy 2026-11-11T18:37:00.83771445Z" + ], + "warmupInstances": [ + "073aad49213a", + "ca7302f05bcf" + ], + "requestIds": [ + "7a3f6b25-78c6-4b5c-9ec0-af136236f5b0", + "31e16471-fe49-4552-beca-d72edab36f78", + "1d3e53d1-45d2-4cc0-b90e-3c69d368c119" + ], + "successfulUploads": 3, + "elapsedSeconds": 1.1129824999952689, + "memory": [ + { + "instance": "ca7302f05bcf", + "event": "summary", + "pid": 7, + "baselineRssBytes": 199675904, + "sampledPeakRssBytes": 200331264, + "finalRssBytes": 200331264, + "baselineCgroupBytes": 150511616, + "sampledPeakCgroupBytes": 151662592, + "finalCgroupBytes": 151662592, + "lifetimeHwmBeforeBytes": 199675904, + "lifetimeHwmAfterBytes": 200331264, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 7347, + "networkTxBytes": 11986, + "samples": 22, + "maxSampleGapMs": 61.11182199999985, + "durationMs": 1036.1785879999998 + }, + { + "instance": "073aad49213a", + "event": "summary", + "pid": 6, + "baselineRssBytes": 202416128, + "sampledPeakRssBytes": 209625088, + "finalRssBytes": 209625088, + "baselineCgroupBytes": 153133056, + "sampledPeakCgroupBytes": 161464320, + "finalCgroupBytes": 161046528, + "lifetimeHwmBeforeBytes": 202416128, + "lifetimeHwmAfterBytes": 209625088, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 2384687, + "networkTxBytes": 33967, + "samples": 22, + "maxSampleGapMs": 62.77658499999961, + "durationMs": 1031.9200489999998 + } + ], + "apiRxBytes": 2392034, + "apiTxBytes": 45953, + "idleAfterFiveSeconds": [ + { + "instance": "ca7302f05bcf", + "event": "snapshot", + "rss": 201379840, + "hwm": 201379840, + "oom": 0, + "oomKill": 0, + "rx": 3212773, + "tx": 1655877, + "cgroup": 152719360 + }, + { + "instance": "073aad49213a", + "event": "snapshot", + "rss": 210280448, + "hwm": 210280448, + "oom": 0, + "oomKill": 0, + "rx": 5587231, + "tx": 1674106, + "cgroup": 161828864 + } + ], + "profiles": [ + { + "mode": "direct", + "requestId": "7a3f6b25-78c6-4b5c-9ec0-af136236f5b0", + "instance": "073aad49213a", + "pid": 6, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 203.3371929999994, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 4.0996459999987565, + "before": { + "rss": 202416128, + "heapTotal": 117698560, + "heapUsed": 59783752, + "external": 21443104, + "arrayBuffers": 6749244 + }, + "after": { + "rss": 202416128, + "heapTotal": 117698560, + "heapUsed": 59972976, + "external": 21443550, + "arrayBuffers": 6749690 + }, + "peak": { + "rss": 202416128, + "heapTotal": 117698560, + "heapUsed": 59972976, + "external": 21443550, + "arrayBuffers": 6749690 + }, + "samples": 1, + "maxSampleGapMs": 4.0996459999987565, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 4.268521999998484, + "durationMs": 15.949287999999797, + "before": { + "rss": 202416128, + "heapTotal": 117698560, + "heapUsed": 59874040, + "external": 21443550, + "arrayBuffers": 6749690 + }, + "after": { + "rss": 202416128, + "heapTotal": 117698560, + "heapUsed": 60395392, + "external": 21445649, + "arrayBuffers": 6751789 + }, + "peak": { + "rss": 202416128, + "heapTotal": 117698560, + "heapUsed": 60395392, + "external": 21445649, + "arrayBuffers": 6751789 + }, + "samples": 1, + "maxSampleGapMs": 15.888076999999612, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 20.333628999997018, + "durationMs": 6.798683000000892, + "before": { + "rss": 202416128, + "heapTotal": 117698560, + "heapUsed": 60396640, + "external": 21445649, + "arrayBuffers": 6751789 + }, + "after": { + "rss": 202416128, + "heapTotal": 117698560, + "heapUsed": 60698760, + "external": 21576425, + "arrayBuffers": 6882565 + }, + "peak": { + "rss": 202416128, + "heapTotal": 117698560, + "heapUsed": 60698760, + "external": 21576425, + "arrayBuffers": 6882565 + }, + "samples": 2, + "maxSampleGapMs": 4.273436999999831, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 27.268410000000586, + "durationMs": 7.299775999999838, + "before": { + "rss": 202416128, + "heapTotal": 117698560, + "heapUsed": 60700008, + "external": 21576425, + "arrayBuffers": 6882565 + }, + "after": { + "rss": 202547200, + "heapTotal": 117698560, + "heapUsed": 60863128, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "peak": { + "rss": 202547200, + "heapTotal": 117698560, + "heapUsed": 60863128, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "samples": 1, + "maxSampleGapMs": 7.260910000000877, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 34.67132199999833, + "durationMs": 0.05652800000098068, + "before": { + "rss": 202547200, + "heapTotal": 117698560, + "heapUsed": 60864376, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "after": { + "rss": 202547200, + "heapTotal": 117698560, + "heapUsed": 60865712, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "peak": { + "rss": 202547200, + "heapTotal": 117698560, + "heapUsed": 60865712, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "samples": 1, + "maxSampleGapMs": 0.025568000000930624, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 34.76065499999822, + "durationMs": 2.101890000001731, + "before": { + "rss": 202547200, + "heapTotal": 117698560, + "heapUsed": 60866960, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "after": { + "rss": 202547200, + "heapTotal": 117698560, + "heapUsed": 60897864, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "peak": { + "rss": 202547200, + "heapTotal": 117698560, + "heapUsed": 60897864, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "samples": 1, + "maxSampleGapMs": 2.0759090000028664, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 37.10927299999821, + "durationMs": 42.289960000001884, + "before": { + "rss": 202547200, + "heapTotal": 117698560, + "heapUsed": 60899112, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "after": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 60933392, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "peak": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 60933392, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "samples": 3, + "maxSampleGapMs": 20.349758000000293, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 79.55428599999868, + "durationMs": 0.08684300000095391, + "before": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 60934640, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "after": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 60935592, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "peak": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 60935592, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "samples": 1, + "maxSampleGapMs": 0.00778800000261981, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 79.68717800000013, + "durationMs": 31.35883399999875, + "before": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 60936840, + "external": 23020663, + "arrayBuffers": 8326803 + }, + "after": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61273232, + "external": 23021983, + "arrayBuffers": 8328123 + }, + "peak": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61273232, + "external": 23021983, + "arrayBuffers": 8328123 + }, + "samples": 3, + "maxSampleGapMs": 20.32095599999957, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 111.15044299999863, + "durationMs": 5.8478439999998955, + "before": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61274480, + "external": 23021983, + "arrayBuffers": 8328123 + }, + "after": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61470984, + "external": 23023299, + "arrayBuffers": 8329439 + }, + "peak": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61470984, + "external": 23023299, + "arrayBuffers": 8329439 + }, + "samples": 1, + "maxSampleGapMs": 5.81637899999987, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 117.15558999999848, + "durationMs": 1.5850370000007388, + "before": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61472232, + "external": 23023299, + "arrayBuffers": 8329439 + }, + "after": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61480600, + "external": 23023507, + "arrayBuffers": 8329647 + }, + "peak": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61480600, + "external": 23023507, + "arrayBuffers": 8329647 + }, + "samples": 1, + "maxSampleGapMs": 1.4927559999996447, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 118.87039699999877, + "durationMs": 82.97073499999897, + "before": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61481848, + "external": 23023507, + "arrayBuffers": 8329647 + }, + "after": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61750320, + "external": 23023803, + "arrayBuffers": 8329943 + }, + "peak": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61750320, + "external": 23023803, + "arrayBuffers": 8329943 + }, + "samples": 5, + "maxSampleGapMs": 20.42798500000208, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 202.23700699999972, + "durationMs": 0.8723959999988438, + "before": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61751568, + "external": 23023803, + "arrayBuffers": 8329943 + }, + "after": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61761384, + "external": 23023803, + "arrayBuffers": 8329943 + }, + "peak": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61761384, + "external": 23023803, + "arrayBuffers": 8329943 + }, + "samples": 1, + "maxSampleGapMs": 0.7595519999995304, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "direct", + "requestId": "31e16471-fe49-4552-beca-d72edab36f78", + "instance": "073aad49213a", + "pid": 6, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 347.59893100000045, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 4.648003999998764, + "before": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61798080, + "external": 23023803, + "arrayBuffers": 8329943 + }, + "after": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61883344, + "external": 23024249, + "arrayBuffers": 8330389 + }, + "peak": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61883344, + "external": 23024249, + "arrayBuffers": 8330389 + }, + "samples": 1, + "maxSampleGapMs": 4.648003999998764, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 4.794047999999748, + "durationMs": 12.105231000001368, + "before": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 61884744, + "external": 23024249, + "arrayBuffers": 8330389 + }, + "after": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 62362136, + "external": 23026348, + "arrayBuffers": 8332488 + }, + "peak": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 62362136, + "external": 23026348, + "arrayBuffers": 8332488 + }, + "samples": 1, + "maxSampleGapMs": 12.066071000001102, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 17.041832999999315, + "durationMs": 6.1872480000020005, + "before": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 62363384, + "external": 23026348, + "arrayBuffers": 8332488 + }, + "after": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 62653896, + "external": 23156372, + "arrayBuffers": 8462512 + }, + "peak": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 62653896, + "external": 23156372, + "arrayBuffers": 8462512 + }, + "samples": 2, + "maxSampleGapMs": 3.506296999999904, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 23.351282999999967, + "durationMs": 7.839585000001534, + "before": { + "rss": 203202560, + "heapTotal": 117698560, + "heapUsed": 62655144, + "external": 23156372, + "arrayBuffers": 8462512 + }, + "after": { + "rss": 203988992, + "heapTotal": 117698560, + "heapUsed": 63073288, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "peak": { + "rss": 203988992, + "heapTotal": 117698560, + "heapUsed": 63073288, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "samples": 1, + "maxSampleGapMs": 7.807872000001225, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 31.322868999999628, + "durationMs": 0.07834899999943445, + "before": { + "rss": 203988992, + "heapTotal": 117698560, + "heapUsed": 62856720, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "after": { + "rss": 203988992, + "heapTotal": 117698560, + "heapUsed": 62858056, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "peak": { + "rss": 203988992, + "heapTotal": 117698560, + "heapUsed": 62858056, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "samples": 1, + "maxSampleGapMs": 0.035707999999431195, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 31.43865100000039, + "durationMs": 1.6019259999993665, + "before": { + "rss": 203988992, + "heapTotal": 117698560, + "heapUsed": 62859304, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "after": { + "rss": 204120064, + "heapTotal": 117698560, + "heapUsed": 62905136, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "peak": { + "rss": 204120064, + "heapTotal": 117698560, + "heapUsed": 62905136, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "samples": 1, + "maxSampleGapMs": 1.5743919999986247, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 33.16977699999916, + "durationMs": 81.01260100000218, + "before": { + "rss": 204120064, + "heapTotal": 117698560, + "heapUsed": 62906384, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "after": { + "rss": 204775424, + "heapTotal": 117698560, + "heapUsed": 62931360, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "peak": { + "rss": 204775424, + "heapTotal": 117698560, + "heapUsed": 62931360, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "samples": 5, + "maxSampleGapMs": 20.667311999997764, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 114.35603800000172, + "durationMs": 0.08202199999868753, + "before": { + "rss": 204775424, + "heapTotal": 117698560, + "heapUsed": 62932608, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "after": { + "rss": 204775424, + "heapTotal": 117698560, + "heapUsed": 62933560, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "peak": { + "rss": 204775424, + "heapTotal": 117698560, + "heapUsed": 62933560, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "samples": 1, + "maxSampleGapMs": 0.013298000001668697, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 114.5445209999998, + "durationMs": 140.51452499999868, + "before": { + "rss": 204775424, + "heapTotal": 117698560, + "heapUsed": 62934808, + "external": 24601362, + "arrayBuffers": 9907502 + }, + "after": { + "rss": 205299712, + "heapTotal": 118222848, + "heapUsed": 63789088, + "external": 24602682, + "arrayBuffers": 9908822 + }, + "peak": { + "rss": 205299712, + "heapTotal": 118222848, + "heapUsed": 63789088, + "external": 24602682, + "arrayBuffers": 9908822 + }, + "samples": 6, + "maxSampleGapMs": 40.22424200000023, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 255.32760400000188, + "durationMs": 9.030655999998999, + "before": { + "rss": 205299712, + "heapTotal": 118222848, + "heapUsed": 63273952, + "external": 24602682, + "arrayBuffers": 9908822 + }, + "after": { + "rss": 205430784, + "heapTotal": 118222848, + "heapUsed": 63464400, + "external": 24603998, + "arrayBuffers": 9910138 + }, + "peak": { + "rss": 205430784, + "heapTotal": 118222848, + "heapUsed": 63464400, + "external": 24603998, + "arrayBuffers": 9910138 + }, + "samples": 1, + "maxSampleGapMs": 8.942571999999927, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 264.52763100000084, + "durationMs": 1.77853099999993, + "before": { + "rss": 205430784, + "heapTotal": 118222848, + "heapUsed": 63465648, + "external": 24603998, + "arrayBuffers": 9910138 + }, + "after": { + "rss": 205430784, + "heapTotal": 118484992, + "heapUsed": 63486720, + "external": 24604206, + "arrayBuffers": 9910346 + }, + "peak": { + "rss": 205430784, + "heapTotal": 118484992, + "heapUsed": 63486720, + "external": 24604206, + "arrayBuffers": 9910346 + }, + "samples": 1, + "maxSampleGapMs": 1.7229040000020177, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 266.47989600000074, + "durationMs": 80.21660799999881, + "before": { + "rss": 205430784, + "heapTotal": 118484992, + "heapUsed": 63487968, + "external": 24604206, + "arrayBuffers": 9910346 + }, + "after": { + "rss": 205692928, + "heapTotal": 118484992, + "heapUsed": 63755936, + "external": 24604502, + "arrayBuffers": 9910642 + }, + "peak": { + "rss": 205692928, + "heapTotal": 118484992, + "heapUsed": 63755936, + "external": 24604502, + "arrayBuffers": 9910642 + }, + "samples": 5, + "maxSampleGapMs": 20.36909999999989, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 346.8211489999994, + "durationMs": 0.580630000000383, + "before": { + "rss": 205692928, + "heapTotal": 118484992, + "heapUsed": 63757184, + "external": 24604502, + "arrayBuffers": 9910642 + }, + "after": { + "rss": 205692928, + "heapTotal": 118484992, + "heapUsed": 63767584, + "external": 24604502, + "arrayBuffers": 9910642 + }, + "peak": { + "rss": 205692928, + "heapTotal": 118484992, + "heapUsed": 63767584, + "external": 24604502, + "arrayBuffers": 9910642 + }, + "samples": 1, + "maxSampleGapMs": 0.5420210000011139, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "direct", + "requestId": "1d3e53d1-45d2-4cc0-b90e-3c69d368c119", + "instance": "073aad49213a", + "pid": 6, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 208.0317869999999, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 3.6721330000000307, + "before": { + "rss": 205955072, + "heapTotal": 118484992, + "heapUsed": 64150872, + "external": 24605424, + "arrayBuffers": 9911564 + }, + "after": { + "rss": 206086144, + "heapTotal": 118484992, + "heapUsed": 64226832, + "external": 24605870, + "arrayBuffers": 9912010 + }, + "peak": { + "rss": 206086144, + "heapTotal": 118484992, + "heapUsed": 64226832, + "external": 24605870, + "arrayBuffers": 9912010 + }, + "samples": 1, + "maxSampleGapMs": 3.6721330000000307, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 3.785280000000057, + "durationMs": 20.463369999997667, + "before": { + "rss": 206086144, + "heapTotal": 118484992, + "heapUsed": 64228232, + "external": 24605870, + "arrayBuffers": 9912010 + }, + "after": { + "rss": 206479360, + "heapTotal": 118484992, + "heapUsed": 64735096, + "external": 24673503, + "arrayBuffers": 9979643 + }, + "peak": { + "rss": 206479360, + "heapTotal": 118484992, + "heapUsed": 64735096, + "external": 24673503, + "arrayBuffers": 9979643 + }, + "samples": 2, + "maxSampleGapMs": 17.051229000000603, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 24.38047699999879, + "durationMs": 7.98408500000005, + "before": { + "rss": 206479360, + "heapTotal": 118484992, + "heapUsed": 64736344, + "external": 24673503, + "arrayBuffers": 9979643 + }, + "after": { + "rss": 207003648, + "heapTotal": 118484992, + "heapUsed": 65034264, + "external": 24804279, + "arrayBuffers": 10110419 + }, + "peak": { + "rss": 207003648, + "heapTotal": 118484992, + "heapUsed": 65034264, + "external": 24804279, + "arrayBuffers": 10110419 + }, + "samples": 1, + "maxSampleGapMs": 7.9005660000002536, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 32.578410999998596, + "durationMs": 8.13521000000037, + "before": { + "rss": 207003648, + "heapTotal": 118484992, + "heapUsed": 65035512, + "external": 24804279, + "arrayBuffers": 10110419 + }, + "after": { + "rss": 208576512, + "heapTotal": 118484992, + "heapUsed": 65225656, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "peak": { + "rss": 208576512, + "heapTotal": 118484992, + "heapUsed": 65225656, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "samples": 1, + "maxSampleGapMs": 8.082934999998542, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 40.820182999999815, + "durationMs": 0.06702399999994668, + "before": { + "rss": 208576512, + "heapTotal": 118484992, + "heapUsed": 65226904, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "after": { + "rss": 208576512, + "heapTotal": 118484992, + "heapUsed": 65228240, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "peak": { + "rss": 208576512, + "heapTotal": 118484992, + "heapUsed": 65228240, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "samples": 1, + "maxSampleGapMs": 0.028773000001820037, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 40.92752499999915, + "durationMs": 1.3603039999979956, + "before": { + "rss": 208576512, + "heapTotal": 118484992, + "heapUsed": 65229488, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "after": { + "rss": 208838656, + "heapTotal": 118484992, + "heapUsed": 65305792, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "peak": { + "rss": 208838656, + "heapTotal": 118484992, + "heapUsed": 65686584, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "samples": 2, + "maxSampleGapMs": 1.02083599999969, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 42.37104499999987, + "durationMs": 40.41331799999898, + "before": { + "rss": 208838656, + "heapTotal": 118484992, + "heapUsed": 65307040, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "after": { + "rss": 208838656, + "heapTotal": 118484992, + "heapUsed": 65329920, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "peak": { + "rss": 208838656, + "heapTotal": 118484992, + "heapUsed": 65329920, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "samples": 3, + "maxSampleGapMs": 20.284937000000355, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 82.86216099999729, + "durationMs": 0.03973000000041793, + "before": { + "rss": 208838656, + "heapTotal": 118484992, + "heapUsed": 65331168, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "after": { + "rss": 208838656, + "heapTotal": 118484992, + "heapUsed": 65332120, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "peak": { + "rss": 208838656, + "heapTotal": 118484992, + "heapUsed": 65332120, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "samples": 1, + "maxSampleGapMs": 0.005831999998918036, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 82.93112299999848, + "durationMs": 34.15089599999919, + "before": { + "rss": 208838656, + "heapTotal": 118484992, + "heapUsed": 65333368, + "external": 26248517, + "arrayBuffers": 11554657 + }, + "after": { + "rss": 209100800, + "heapTotal": 118484992, + "heapUsed": 65654992, + "external": 26249837, + "arrayBuffers": 11555977 + }, + "peak": { + "rss": 209100800, + "heapTotal": 118484992, + "heapUsed": 65654992, + "external": 26249837, + "arrayBuffers": 11555977 + }, + "samples": 2, + "maxSampleGapMs": 17.933131000001595, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 117.31085600000006, + "durationMs": 7.080562999999529, + "before": { + "rss": 209100800, + "heapTotal": 118484992, + "heapUsed": 65656240, + "external": 26249837, + "arrayBuffers": 11555977 + }, + "after": { + "rss": 209362944, + "heapTotal": 118484992, + "heapUsed": 65845616, + "external": 26251150, + "arrayBuffers": 11557290 + }, + "peak": { + "rss": 209362944, + "heapTotal": 118484992, + "heapUsed": 65845616, + "external": 26251150, + "arrayBuffers": 11557290 + }, + "samples": 2, + "maxSampleGapMs": 4.116683000000194, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 124.56517999999778, + "durationMs": 1.2470009999997274, + "before": { + "rss": 209362944, + "heapTotal": 118484992, + "heapUsed": 65846864, + "external": 26251150, + "arrayBuffers": 11557290 + }, + "after": { + "rss": 209362944, + "heapTotal": 118484992, + "heapUsed": 65855448, + "external": 26251358, + "arrayBuffers": 11557498 + }, + "peak": { + "rss": 209362944, + "heapTotal": 118484992, + "heapUsed": 65855448, + "external": 26251358, + "arrayBuffers": 11557498 + }, + "samples": 1, + "maxSampleGapMs": 1.1991989999987709, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 125.88931699999739, + "durationMs": 81.03557, + "before": { + "rss": 209362944, + "heapTotal": 118484992, + "heapUsed": 65856696, + "external": 26251358, + "arrayBuffers": 11557498 + }, + "after": { + "rss": 209625088, + "heapTotal": 118484992, + "heapUsed": 66126968, + "external": 26251654, + "arrayBuffers": 11557794 + }, + "peak": { + "rss": 209625088, + "heapTotal": 118484992, + "heapUsed": 66126968, + "external": 26251654, + "arrayBuffers": 11557794 + }, + "samples": 5, + "maxSampleGapMs": 20.391489000001457, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 207.06488799999715, + "durationMs": 0.7856900000006135, + "before": { + "rss": 209625088, + "heapTotal": 118484992, + "heapUsed": 66128216, + "external": 26251654, + "arrayBuffers": 11557794 + }, + "after": { + "rss": 209625088, + "heapTotal": 118484992, + "heapUsed": 66137680, + "external": 26251654, + "arrayBuffers": 11557794 + }, + "peak": { + "rss": 209625088, + "heapTotal": 118484992, + "heapUsed": 66137680, + "external": 26251654, + "arrayBuffers": 11557794 + }, + "samples": 1, + "maxSampleGapMs": 0.6454969999977038, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + } + ] + }, + { + "round": 2, + "mode": "proxy", + "sidePixels": 512, + "fileBytes": 787247, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T18:37:35.417247762Z", + "healthy 2026-11-11T18:37:35.33003099Z" + ], + "warmupInstances": [ + "073aad49213a", + "ca7302f05bcf" + ], + "requestIds": [ + "82f3516b-a67c-4ad6-87af-ae9088e8f265", + "272a3915-a84a-4910-94b8-82aa6c34eeab", + "cfbcb5e8-cefd-4483-a63f-874c1e452cb7" + ], + "successfulUploads": 3, + "elapsedSeconds": 0.5627516999957152, + "memory": [ + { + "instance": "ca7302f05bcf", + "event": "summary", + "pid": 7, + "baselineRssBytes": 204926976, + "sampledPeakRssBytes": 209121280, + "finalRssBytes": 209121280, + "baselineCgroupBytes": 155586560, + "sampledPeakCgroupBytes": 160194560, + "finalCgroupBytes": 159928320, + "lifetimeHwmBeforeBytes": 204926976, + "lifetimeHwmAfterBytes": 209121280, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 1593810, + "networkTxBytes": 1592832, + "samples": 12, + "maxSampleGapMs": 53.221547999999984, + "durationMs": 551.5673200000001 + }, + { + "instance": "073aad49213a", + "event": "summary", + "pid": 6, + "baselineRssBytes": 200769536, + "sampledPeakRssBytes": 201555968, + "finalRssBytes": 201555968, + "baselineCgroupBytes": 151216128, + "sampledPeakCgroupBytes": 152330240, + "finalCgroupBytes": 152330240, + "lifetimeHwmBeforeBytes": 200769536, + "lifetimeHwmAfterBytes": 201555968, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 797435, + "networkTxBytes": 795327, + "samples": 12, + "maxSampleGapMs": 50.80032399999982, + "durationMs": 530.186927 + } + ], + "apiRxBytes": 2391245, + "apiTxBytes": 2388159, + "idleAfterFiveSeconds": [ + { + "instance": "ca7302f05bcf", + "event": "snapshot", + "rss": 209252352, + "hwm": 209252352, + "oom": 0, + "oomKill": 0, + "rx": 4795458, + "tx": 4796822, + "cgroup": 160452608 + }, + { + "instance": "073aad49213a", + "event": "snapshot", + "rss": 201687040, + "hwm": 201687040, + "oom": 0, + "oomKill": 0, + "rx": 3999063, + "tx": 4000345, + "cgroup": 152870912 + } + ], + "profiles": [ + { + "mode": "proxy", + "requestId": "82f3516b-a67c-4ad6-87af-ae9088e8f265", + "instance": "ca7302f05bcf", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 206.6239459999997, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 60.44277599999987, + "before": { + "rss": 204926976, + "heapTotal": 117698560, + "heapUsed": 54157840, + "external": 21358896, + "arrayBuffers": 6669112 + }, + "after": { + "rss": 204926976, + "heapTotal": 117698560, + "heapUsed": 54278600, + "external": 22933834, + "arrayBuffers": 8244050 + }, + "peak": { + "rss": 204926976, + "heapTotal": 117698560, + "heapUsed": 54278600, + "external": 22933834, + "arrayBuffers": 8244050 + }, + "samples": 3, + "maxSampleGapMs": 20.58143100000052, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 60.63242600000012, + "durationMs": 3.32714500000111, + "before": { + "rss": 204926976, + "heapTotal": 117698560, + "heapUsed": 54280080, + "external": 22933834, + "arrayBuffers": 8244050 + }, + "after": { + "rss": 205058048, + "heapTotal": 117698560, + "heapUsed": 54602752, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "peak": { + "rss": 205058048, + "heapTotal": 117698560, + "heapUsed": 54602752, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "samples": 2, + "maxSampleGapMs": 1.7801130000007106, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 65.71670799999993, + "durationMs": 7.464289999999892, + "before": { + "rss": 205058048, + "heapTotal": 117698560, + "heapUsed": 54377776, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "after": { + "rss": 205058048, + "heapTotal": 117698560, + "heapUsed": 54408568, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "peak": { + "rss": 205058048, + "heapTotal": 117698560, + "heapUsed": 54408568, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "samples": 1, + "maxSampleGapMs": 1.3577779999995983, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 73.31750000000102, + "durationMs": 63.56583599999976, + "before": { + "rss": 205058048, + "heapTotal": 117698560, + "heapUsed": 54409816, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "after": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54445232, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "peak": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54445232, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "samples": 4, + "maxSampleGapMs": 20.81783599999835, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 137.0194330000013, + "durationMs": 0.07718199999908393, + "before": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54446480, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "after": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54448176, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "peak": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54448176, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "samples": 1, + "maxSampleGapMs": 0.02463999999963562, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 137.14809100000093, + "durationMs": 5.146609999999782, + "before": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54449424, + "external": 22934010, + "arrayBuffers": 8244226 + }, + "after": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54569416, + "external": 22934116, + "arrayBuffers": 8244332 + }, + "peak": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54569416, + "external": 22934116, + "arrayBuffers": 8244332 + }, + "samples": 1, + "maxSampleGapMs": 5.10535499999969, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 142.44468400000005, + "durationMs": 54.15340300000025, + "before": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54570664, + "external": 22934116, + "arrayBuffers": 8244332 + }, + "after": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54905464, + "external": 23000041, + "arrayBuffers": 8310257 + }, + "peak": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54905464, + "external": 23000041, + "arrayBuffers": 8310257 + }, + "samples": 4, + "maxSampleGapMs": 20.574572999999873, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 196.70764299999973, + "durationMs": 0.5370060000004742, + "before": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54906712, + "external": 23000041, + "arrayBuffers": 8310257 + }, + "after": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54907976, + "external": 23000041, + "arrayBuffers": 8310257 + }, + "peak": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54907976, + "external": 23000041, + "arrayBuffers": 8310257 + }, + "samples": 1, + "maxSampleGapMs": 0.5028870000005554, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 197.30205800000113, + "durationMs": 8.423969999999827, + "before": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 54909224, + "external": 23000041, + "arrayBuffers": 8310257 + }, + "after": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 55054872, + "external": 23000751, + "arrayBuffers": 8310967 + }, + "peak": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 55054872, + "external": 23000751, + "arrayBuffers": 8310967 + }, + "samples": 1, + "maxSampleGapMs": 6.629463000001124, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 205.8612260000009, + "durationMs": 0.6111019999989367, + "before": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 55056120, + "external": 23000751, + "arrayBuffers": 8310967 + }, + "after": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 55065720, + "external": 23000751, + "arrayBuffers": 8310967 + }, + "peak": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 55065720, + "external": 23000751, + "arrayBuffers": 8310967 + }, + "samples": 1, + "maxSampleGapMs": 0.5623539999996865, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "proxy", + "requestId": "272a3915-a84a-4910-94b8-82aa6c34eeab", + "instance": "073aad49213a", + "pid": 6, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 156.43710600000122, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 38.754815000000235, + "before": { + "rss": 200769536, + "heapTotal": 117436416, + "heapUsed": 54643984, + "external": 21358605, + "arrayBuffers": 6669013 + }, + "after": { + "rss": 200769536, + "heapTotal": 117436416, + "heapUsed": 54755568, + "external": 22933543, + "arrayBuffers": 8243951 + }, + "peak": { + "rss": 200769536, + "heapTotal": 117436416, + "heapUsed": 54755568, + "external": 22933543, + "arrayBuffers": 8243951 + }, + "samples": 2, + "maxSampleGapMs": 20.116181000001234, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 38.928641000000425, + "durationMs": 2.8100780000004306, + "before": { + "rss": 200769536, + "heapTotal": 117436416, + "heapUsed": 54757048, + "external": 22933543, + "arrayBuffers": 8243951 + }, + "after": { + "rss": 200769536, + "heapTotal": 117436416, + "heapUsed": 54847168, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "peak": { + "rss": 200769536, + "heapTotal": 117436416, + "heapUsed": 54847168, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "samples": 2, + "maxSampleGapMs": 1.3595509999995556, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 41.89417599999979, + "durationMs": 1.1401000000005297, + "before": { + "rss": 200769536, + "heapTotal": 117436416, + "heapUsed": 54848416, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "after": { + "rss": 200769536, + "heapTotal": 117436416, + "heapUsed": 54879768, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "peak": { + "rss": 200769536, + "heapTotal": 117436416, + "heapUsed": 54879768, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "samples": 1, + "maxSampleGapMs": 1.088807000000088, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 43.17493800000011, + "durationMs": 61.33294999999998, + "before": { + "rss": 200769536, + "heapTotal": 117436416, + "heapUsed": 54881016, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "after": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 54922832, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "peak": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 54922832, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "samples": 4, + "maxSampleGapMs": 20.353861999999936, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 104.63637200000085, + "durationMs": 0.06985299999905692, + "before": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 54924080, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "after": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 54925776, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "peak": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 54925776, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "samples": 1, + "maxSampleGapMs": 0.02162799999859999, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 104.76145800000086, + "durationMs": 4.65901599999961, + "before": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 54927024, + "external": 22933719, + "arrayBuffers": 8244127 + }, + "after": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 55047296, + "external": 22933825, + "arrayBuffers": 8244233 + }, + "peak": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 55047296, + "external": 22933825, + "arrayBuffers": 8244233 + }, + "samples": 1, + "maxSampleGapMs": 4.61823000000004, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 109.846904, + "durationMs": 39.0299500000001, + "before": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 55048544, + "external": 22933825, + "arrayBuffers": 8244233 + }, + "after": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 55364896, + "external": 22999750, + "arrayBuffers": 8310158 + }, + "peak": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 55364896, + "external": 22999750, + "arrayBuffers": 8310158 + }, + "samples": 3, + "maxSampleGapMs": 19.408416000000216, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 149.07186700000057, + "durationMs": 0.545481999999538, + "before": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 55366144, + "external": 22999750, + "arrayBuffers": 8310158 + }, + "after": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 55367408, + "external": 22999750, + "arrayBuffers": 8310158 + }, + "peak": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 55367408, + "external": 22999750, + "arrayBuffers": 8310158 + }, + "samples": 1, + "maxSampleGapMs": 0.5015829999993002, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 149.66146900000058, + "durationMs": 5.9252269999997225, + "before": { + "rss": 201424896, + "heapTotal": 117436416, + "heapUsed": 55368656, + "external": 22999750, + "arrayBuffers": 8310158 + }, + "after": { + "rss": 201555968, + "heapTotal": 117436416, + "heapUsed": 55502344, + "external": 23000462, + "arrayBuffers": 8310870 + }, + "peak": { + "rss": 201555968, + "heapTotal": 117436416, + "heapUsed": 55502344, + "external": 23000462, + "arrayBuffers": 8310870 + }, + "samples": 1, + "maxSampleGapMs": 5.898702999998932, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 155.71194800000012, + "durationMs": 0.5864519999995537, + "before": { + "rss": 201555968, + "heapTotal": 117436416, + "heapUsed": 55503592, + "external": 23000462, + "arrayBuffers": 8310870 + }, + "after": { + "rss": 201555968, + "heapTotal": 117436416, + "heapUsed": 55513848, + "external": 23000462, + "arrayBuffers": 8310870 + }, + "peak": { + "rss": 201555968, + "heapTotal": 117436416, + "heapUsed": 55513848, + "external": 23000462, + "arrayBuffers": 8310870 + }, + "samples": 1, + "maxSampleGapMs": 0.5436639999988984, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "proxy", + "requestId": "cfbcb5e8-cefd-4483-a63f-874c1e452cb7", + "instance": "ca7302f05bcf", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 123.67261800000051, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 21.4513220000008, + "before": { + "rss": 206499840, + "heapTotal": 117698560, + "heapUsed": 55102872, + "external": 23000751, + "arrayBuffers": 8310967 + }, + "after": { + "rss": 207286272, + "heapTotal": 117698560, + "heapUsed": 55202832, + "external": 24575689, + "arrayBuffers": 9885905 + }, + "peak": { + "rss": 207286272, + "heapTotal": 117698560, + "heapUsed": 55202832, + "external": 24575689, + "arrayBuffers": 9885905 + }, + "samples": 2, + "maxSampleGapMs": 19.88610300000073, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 21.57571000000098, + "durationMs": 2.1735439999993105, + "before": { + "rss": 207286272, + "heapTotal": 117698560, + "heapUsed": 55204232, + "external": 24575689, + "arrayBuffers": 9885905 + }, + "after": { + "rss": 207286272, + "heapTotal": 117698560, + "heapUsed": 55675856, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "peak": { + "rss": 207286272, + "heapTotal": 117698560, + "heapUsed": 55675856, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "samples": 1, + "maxSampleGapMs": 2.1357520000001387, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 23.94379900000058, + "durationMs": 0.9167349999988801, + "before": { + "rss": 207286272, + "heapTotal": 117960704, + "heapUsed": 55301536, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "after": { + "rss": 207286272, + "heapTotal": 117960704, + "heapUsed": 55335304, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "peak": { + "rss": 207286272, + "heapTotal": 117960704, + "heapUsed": 55335304, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "samples": 1, + "maxSampleGapMs": 0.8530809999992925, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 24.963744000000588, + "durationMs": 49.6879689999987, + "before": { + "rss": 207286272, + "heapTotal": 117960704, + "heapUsed": 55336552, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "after": { + "rss": 208990208, + "heapTotal": 117960704, + "heapUsed": 55358568, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "peak": { + "rss": 208990208, + "heapTotal": 117960704, + "heapUsed": 55358568, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "samples": 3, + "maxSampleGapMs": 20.329412999999477, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 74.78601900000103, + "durationMs": 0.06764899999870977, + "before": { + "rss": 208990208, + "heapTotal": 117960704, + "heapUsed": 55359816, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "after": { + "rss": 208990208, + "heapTotal": 117960704, + "heapUsed": 55361512, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "peak": { + "rss": 208990208, + "heapTotal": 117960704, + "heapUsed": 55361512, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "samples": 1, + "maxSampleGapMs": 0.02338199999940116, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 74.89212199999929, + "durationMs": 4.641281000000163, + "before": { + "rss": 208990208, + "heapTotal": 117960704, + "heapUsed": 55362760, + "external": 24575865, + "arrayBuffers": 9886081 + }, + "after": { + "rss": 208990208, + "heapTotal": 118222848, + "heapUsed": 55490688, + "external": 24575971, + "arrayBuffers": 9886187 + }, + "peak": { + "rss": 208990208, + "heapTotal": 118222848, + "heapUsed": 55490688, + "external": 24575971, + "arrayBuffers": 9886187 + }, + "samples": 1, + "maxSampleGapMs": 4.609329999999318, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 79.67366100000072, + "durationMs": 37.085643000000346, + "before": { + "rss": 208990208, + "heapTotal": 118222848, + "heapUsed": 55491936, + "external": 24575971, + "arrayBuffers": 9886187 + }, + "after": { + "rss": 208990208, + "heapTotal": 118222848, + "heapUsed": 55805472, + "external": 24576360, + "arrayBuffers": 9886576 + }, + "peak": { + "rss": 208990208, + "heapTotal": 118222848, + "heapUsed": 55805472, + "external": 24576360, + "arrayBuffers": 9886576 + }, + "samples": 3, + "maxSampleGapMs": 19.90165100000013, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 116.90423700000065, + "durationMs": 0.632261999999173, + "before": { + "rss": 208990208, + "heapTotal": 118222848, + "heapUsed": 55806720, + "external": 24576360, + "arrayBuffers": 9886576 + }, + "after": { + "rss": 208990208, + "heapTotal": 118222848, + "heapUsed": 55807984, + "external": 24576360, + "arrayBuffers": 9886576 + }, + "peak": { + "rss": 208990208, + "heapTotal": 118222848, + "heapUsed": 55807984, + "external": 24576360, + "arrayBuffers": 9886576 + }, + "samples": 1, + "maxSampleGapMs": 0.5929729999988922, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 117.60389100000066, + "durationMs": 4.773095999998986, + "before": { + "rss": 208990208, + "heapTotal": 118222848, + "heapUsed": 55809232, + "external": 24576360, + "arrayBuffers": 9886576 + }, + "after": { + "rss": 209121280, + "heapTotal": 118222848, + "heapUsed": 55939600, + "external": 24577070, + "arrayBuffers": 9887286 + }, + "peak": { + "rss": 209121280, + "heapTotal": 118222848, + "heapUsed": 55939600, + "external": 24577070, + "arrayBuffers": 9887286 + }, + "samples": 1, + "maxSampleGapMs": 4.743752999998833, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 122.67938800000047, + "durationMs": 0.7635659999996278, + "before": { + "rss": 209121280, + "heapTotal": 118222848, + "heapUsed": 55940848, + "external": 24577070, + "arrayBuffers": 9887286 + }, + "after": { + "rss": 209121280, + "heapTotal": 118222848, + "heapUsed": 55950560, + "external": 24577070, + "arrayBuffers": 9887286 + }, + "peak": { + "rss": 209121280, + "heapTotal": 118222848, + "heapUsed": 55950560, + "external": 24577070, + "arrayBuffers": 9887286 + }, + "samples": 1, + "maxSampleGapMs": 0.6995719999995345, + "sharpBefore": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + } + ] + }, + { + "round": 2, + "mode": "direct", + "sidePixels": 1792, + "fileBytes": 9638577, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T18:38:05.594003352Z", + "healthy 2026-11-11T18:38:05.56677347Z" + ], + "warmupInstances": [ + "073aad49213a", + "ca7302f05bcf" + ], + "requestIds": [ + "171c8e12-0e37-4574-b1cb-01e83de8f937", + "276679cc-540c-46bd-b3dc-920057a3c627", + "90e141e6-33c5-4f8d-a80c-1c4dc224571d" + ], + "successfulUploads": 3, + "elapsedSeconds": 4.497555999987526, + "memory": [ + { + "instance": "ca7302f05bcf", + "event": "summary", + "pid": 7, + "baselineRssBytes": 239091712, + "sampledPeakRssBytes": 239091712, + "finalRssBytes": 236208128, + "baselineCgroupBytes": 195153920, + "sampledPeakCgroupBytes": 196796416, + "finalCgroupBytes": 196374528, + "lifetimeHwmBeforeBytes": 251244544, + "lifetimeHwmAfterBytes": 251244544, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9686, + "networkTxBytes": 15405, + "samples": 82, + "maxSampleGapMs": 64.27588699999978, + "durationMs": 4135.0559809999995 + }, + { + "instance": "073aad49213a", + "event": "summary", + "pid": 7, + "baselineRssBytes": 224083968, + "sampledPeakRssBytes": 238972928, + "finalRssBytes": 219893760, + "baselineCgroupBytes": 179838976, + "sampledPeakCgroupBytes": 209137664, + "finalCgroupBytes": 179965952, + "lifetimeHwmBeforeBytes": 236687360, + "lifetimeHwmAfterBytes": 239235072, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 28997059, + "networkTxBytes": 75958, + "samples": 82, + "maxSampleGapMs": 61.731840000000375, + "durationMs": 4132.450025 + } + ], + "apiRxBytes": 29006745, + "apiTxBytes": 91363, + "idleAfterFiveSeconds": [ + { + "instance": "ca7302f05bcf", + "event": "snapshot", + "rss": 236208128, + "hwm": 251244544, + "oom": 0, + "oomKill": 0, + "rx": 38743180, + "tx": 19481284, + "cgroup": 200167424 + }, + { + "instance": "073aad49213a", + "event": "snapshot", + "rss": 219893760, + "hwm": 239235072, + "oom": 0, + "oomKill": 0, + "rx": 67814025, + "tx": 19618015, + "cgroup": 184025088 + } + ], + "profiles": [ + { + "mode": "direct", + "requestId": "171c8e12-0e37-4574-b1cb-01e83de8f937", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 690.7901720000009, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 5.960204000002705, + "before": { + "rss": 224083968, + "heapTotal": 118484992, + "heapUsed": 45078192, + "external": 22113882, + "arrayBuffers": 7424999 + }, + "after": { + "rss": 224083968, + "heapTotal": 118484992, + "heapUsed": 45204984, + "external": 22114328, + "arrayBuffers": 7425445 + }, + "peak": { + "rss": 224083968, + "heapTotal": 118484992, + "heapUsed": 45204984, + "external": 22114328, + "arrayBuffers": 7425445 + }, + "samples": 1, + "maxSampleGapMs": 5.960204000002705, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 6.1244970000007015, + "durationMs": 15.835755000000063, + "before": { + "rss": 224083968, + "heapTotal": 118484992, + "heapUsed": 45206384, + "external": 22114328, + "arrayBuffers": 7425445 + }, + "after": { + "rss": 224083968, + "heapTotal": 118484992, + "heapUsed": 45721352, + "external": 22116429, + "arrayBuffers": 7427546 + }, + "peak": { + "rss": 224083968, + "heapTotal": 118484992, + "heapUsed": 45721352, + "external": 22116429, + "arrayBuffers": 7427546 + }, + "samples": 2, + "maxSampleGapMs": 15.080335999999079, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 22.058548000000883, + "durationMs": 14.749877000002016, + "before": { + "rss": 224083968, + "heapTotal": 118484992, + "heapUsed": 45722600, + "external": 22116429, + "arrayBuffers": 7427546 + }, + "after": { + "rss": 224083968, + "heapTotal": 118484992, + "heapUsed": 46091552, + "external": 22127908, + "arrayBuffers": 7439025 + }, + "peak": { + "rss": 224083968, + "heapTotal": 118484992, + "heapUsed": 46091552, + "external": 22127908, + "arrayBuffers": 7439025 + }, + "samples": 1, + "maxSampleGapMs": 14.712149000002682, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 36.97745700000087, + "durationMs": 171.02950799999962, + "before": { + "rss": 224083968, + "heapTotal": 118484992, + "heapUsed": 46092808, + "external": 22127908, + "arrayBuffers": 7439025 + }, + "after": { + "rss": 219856896, + "heapTotal": 118239232, + "heapUsed": 43811776, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "peak": { + "rss": 224608256, + "heapTotal": 118484992, + "heapUsed": 46649048, + "external": 29270656, + "arrayBuffers": 14058161 + }, + "samples": 9, + "maxSampleGapMs": 29.584287000001495, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 208.30343300000095, + "durationMs": 0.19678600000042934, + "before": { + "rss": 219856896, + "heapTotal": 118239232, + "heapUsed": 43813024, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "after": { + "rss": 219856896, + "heapTotal": 118239232, + "heapUsed": 43814360, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "peak": { + "rss": 219856896, + "heapTotal": 118239232, + "heapUsed": 43814360, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "samples": 1, + "maxSampleGapMs": 0.05814299999838113, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 208.57579400000031, + "durationMs": 5.879382999999507, + "before": { + "rss": 219856896, + "heapTotal": 118239232, + "heapUsed": 43815608, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "after": { + "rss": 219856896, + "heapTotal": 118239232, + "heapUsed": 43865104, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "peak": { + "rss": 219856896, + "heapTotal": 118239232, + "heapUsed": 43865104, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "samples": 1, + "maxSampleGapMs": 5.83933099999922, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 214.71381400000246, + "durationMs": 288.05840499999977, + "before": { + "rss": 219856896, + "heapTotal": 118239232, + "heapUsed": 43866352, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "after": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 43921136, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "peak": { + "rss": 232046592, + "heapTotal": 118239232, + "heapUsed": 43921136, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "samples": 16, + "maxSampleGapMs": 20.410509000001184, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 502.9071040000017, + "durationMs": 0.0417410000009113, + "before": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 43922384, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "after": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 43923336, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "peak": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 43923336, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "samples": 1, + "maxSampleGapMs": 0.008945000001403969, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 502.97843600000124, + "durationMs": 92.14333900000202, + "before": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 43924584, + "external": 11828527, + "arrayBuffers": 1723367 + }, + "after": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44345792, + "external": 11829847, + "arrayBuffers": 1724687 + }, + "peak": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44345792, + "external": 11829847, + "arrayBuffers": 1724687 + }, + "samples": 5, + "maxSampleGapMs": 20.45869600000151, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 595.2584690000003, + "durationMs": 5.86591000000044, + "before": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44347040, + "external": 11829847, + "arrayBuffers": 1724687 + }, + "after": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44566512, + "external": 11831165, + "arrayBuffers": 1726005 + }, + "peak": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44566512, + "external": 11831165, + "arrayBuffers": 1726005 + }, + "samples": 2, + "maxSampleGapMs": 3.181137999999919, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 601.2389770000009, + "durationMs": 6.3846489999996265, + "before": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44567760, + "external": 11831165, + "arrayBuffers": 1726005 + }, + "after": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44579472, + "external": 11831373, + "arrayBuffers": 1726213 + }, + "peak": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44579472, + "external": 11831373, + "arrayBuffers": 1726213 + }, + "samples": 1, + "maxSampleGapMs": 6.353626000000077, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 607.7445600000028, + "durationMs": 81.89729299999817, + "before": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44580720, + "external": 11831373, + "arrayBuffers": 1726213 + }, + "after": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44856184, + "external": 11831669, + "arrayBuffers": 1726509 + }, + "peak": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44856184, + "external": 11831669, + "arrayBuffers": 1726509 + }, + "samples": 5, + "maxSampleGapMs": 20.35261399999945, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 689.7937010000023, + "durationMs": 0.7905570000002626, + "before": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44857432, + "external": 11831669, + "arrayBuffers": 1726509 + }, + "after": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44869688, + "external": 11831669, + "arrayBuffers": 1726509 + }, + "peak": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 44869688, + "external": 11831669, + "arrayBuffers": 1726509 + }, + "samples": 1, + "maxSampleGapMs": 0.7580550000020594, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "direct", + "requestId": "276679cc-540c-46bd-b3dc-920057a3c627", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 876.5754070000003, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 3.4821049999991374, + "before": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 45263008, + "external": 11832591, + "arrayBuffers": 1727431 + }, + "after": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 45354088, + "external": 11833037, + "arrayBuffers": 1727877 + }, + "peak": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 45354088, + "external": 11833037, + "arrayBuffers": 1727877 + }, + "samples": 1, + "maxSampleGapMs": 3.4821049999991374, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 3.698038999998971, + "durationMs": 13.79340200000297, + "before": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 45355488, + "external": 11833037, + "arrayBuffers": 1727877 + }, + "after": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 45839536, + "external": 11835138, + "arrayBuffers": 1729978 + }, + "peak": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 45839536, + "external": 11835138, + "arrayBuffers": 1729978 + }, + "samples": 1, + "maxSampleGapMs": 13.732632000002923, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 17.632047999999486, + "durationMs": 16.27257599999939, + "before": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 45840784, + "external": 11835138, + "arrayBuffers": 1729978 + }, + "after": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 46166888, + "external": 11892761, + "arrayBuffers": 1787601 + }, + "peak": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 46166888, + "external": 11892761, + "arrayBuffers": 1787601 + }, + "samples": 2, + "maxSampleGapMs": 11.06644999999844, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 34.1132749999997, + "durationMs": 124.03348299999925, + "before": { + "rss": 222457856, + "heapTotal": 118239232, + "heapUsed": 46168136, + "external": 11892761, + "arrayBuffers": 1787601 + }, + "after": { + "rss": 222326784, + "heapTotal": 118501376, + "heapUsed": 43802576, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "peak": { + "rss": 222457856, + "heapTotal": 118501376, + "heapUsed": 46821976, + "external": 22004623, + "arrayBuffers": 11900807 + }, + "samples": 7, + "maxSampleGapMs": 20.468744999998307, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 158.33266000000003, + "durationMs": 0.1082700000006298, + "before": { + "rss": 222326784, + "heapTotal": 118501376, + "heapUsed": 43803824, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "after": { + "rss": 222326784, + "heapTotal": 118501376, + "heapUsed": 43805192, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "peak": { + "rss": 222326784, + "heapTotal": 118501376, + "heapUsed": 43805192, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "samples": 1, + "maxSampleGapMs": 0.059044000001449604, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 158.4949779999988, + "durationMs": 4.969461000000592, + "before": { + "rss": 222326784, + "heapTotal": 118501376, + "heapUsed": 43806440, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "after": { + "rss": 222326784, + "heapTotal": 118501376, + "heapUsed": 43881544, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "peak": { + "rss": 222326784, + "heapTotal": 118501376, + "heapUsed": 43881544, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "samples": 2, + "maxSampleGapMs": 4.048114000001078, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 163.62673799999902, + "durationMs": 452.3153770000026, + "before": { + "rss": 222326784, + "heapTotal": 118501376, + "heapUsed": 43882792, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "after": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 43968368, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "peak": { + "rss": 232550400, + "heapTotal": 118501376, + "heapUsed": 43968368, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "samples": 22, + "maxSampleGapMs": 28.141411000000517, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 616.1913869999989, + "durationMs": 0.11746300000231713, + "before": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 43969440, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "after": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 43970392, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "peak": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 43970392, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "samples": 1, + "maxSampleGapMs": 0.018459999999322463, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 616.3833500000001, + "durationMs": 114.36082499999975, + "before": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 43971448, + "external": 22004623, + "arrayBuffers": 1284007 + }, + "after": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44386104, + "external": 11389111, + "arrayBuffers": 1285327 + }, + "peak": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44386104, + "external": 22004623, + "arrayBuffers": 1285327 + }, + "samples": 6, + "maxSampleGapMs": 22.408510999997816, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 730.9114420000005, + "durationMs": 13.605662999998458, + "before": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44387176, + "external": 11389111, + "arrayBuffers": 1285327 + }, + "after": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44605520, + "external": 11455965, + "arrayBuffers": 1352181 + }, + "peak": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44605520, + "external": 11455965, + "arrayBuffers": 1352181 + }, + "samples": 2, + "maxSampleGapMs": 8.48583299999882, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 744.6754829999991, + "durationMs": 13.518740999999864, + "before": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44606592, + "external": 11455965, + "arrayBuffers": 1352181 + }, + "after": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44632576, + "external": 11456173, + "arrayBuffers": 1352389 + }, + "peak": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44632576, + "external": 11456173, + "arrayBuffers": 1352389 + }, + "samples": 2, + "maxSampleGapMs": 13.293136000000231, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 758.2849520000018, + "durationMs": 116.80625799999689, + "before": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44633648, + "external": 11456173, + "arrayBuffers": 1352389 + }, + "after": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44902000, + "external": 11456469, + "arrayBuffers": 1352685 + }, + "peak": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44902000, + "external": 11456469, + "arrayBuffers": 1352685 + }, + "samples": 6, + "maxSampleGapMs": 20.421723999999813, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 875.2136140000002, + "durationMs": 1.098855000000185, + "before": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44903072, + "external": 11456469, + "arrayBuffers": 1352685 + }, + "after": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44914040, + "external": 11456469, + "arrayBuffers": 1352685 + }, + "peak": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44914040, + "external": 11456469, + "arrayBuffers": 1352685 + }, + "samples": 1, + "maxSampleGapMs": 1.0593640000006417, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "direct", + "requestId": "90e141e6-33c5-4f8d-a80c-1c4dc224571d", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 784.8453929999996, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 4.122249000000011, + "before": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 44954640, + "external": 11456469, + "arrayBuffers": 1352685 + }, + "after": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 45041968, + "external": 11456915, + "arrayBuffers": 1353131 + }, + "peak": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 45041968, + "external": 11456915, + "arrayBuffers": 1353131 + }, + "samples": 1, + "maxSampleGapMs": 4.122249000000011, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_lookup", + "startedMs": 4.256407999997464, + "durationMs": 13.235303000001295, + "before": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 45043176, + "external": 11456915, + "arrayBuffers": 1353131 + }, + "after": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 45532376, + "external": 11459016, + "arrayBuffers": 1355232 + }, + "peak": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 45532376, + "external": 11459016, + "arrayBuffers": 1355232 + }, + "samples": 1, + "maxSampleGapMs": 13.193569999999454, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_get_headers", + "startedMs": 17.615583999999217, + "durationMs": 14.747105999998894, + "before": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 45533432, + "external": 11459016, + "arrayBuffers": 1355232 + }, + "after": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 45844272, + "external": 11496367, + "arrayBuffers": 1392583 + }, + "peak": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 45844272, + "external": 11496367, + "arrayBuffers": 1392583 + }, + "samples": 2, + "maxSampleGapMs": 11.698787999997876, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_stream_sha256_to_file", + "startedMs": 32.485892999997304, + "durationMs": 229.70055499999944, + "before": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 45845344, + "external": 11496367, + "arrayBuffers": 1392583 + }, + "after": { + "rss": 231370752, + "heapTotal": 118501376, + "heapUsed": 44215688, + "external": 16519871, + "arrayBuffers": 6416087 + }, + "peak": { + "rss": 232026112, + "heapTotal": 118501376, + "heapUsed": 46539664, + "external": 25586607, + "arrayBuffers": 15482823 + }, + "samples": 12, + "maxSampleGapMs": 20.64133700000093, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256_finalize", + "startedMs": 262.3603649999968, + "durationMs": 0.08805600000050617, + "before": { + "rss": 231370752, + "heapTotal": 118501376, + "heapUsed": 44216760, + "external": 16519871, + "arrayBuffers": 6416087 + }, + "after": { + "rss": 231370752, + "heapTotal": 118501376, + "heapUsed": 44218096, + "external": 16519871, + "arrayBuffers": 6416087 + }, + "peak": { + "rss": 231370752, + "heapTotal": 118501376, + "heapUsed": 44218096, + "external": 16519871, + "arrayBuffers": 6416087 + }, + "samples": 1, + "maxSampleGapMs": 0.042392999999719905, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 262.48720499999763, + "durationMs": 1.6968440000018745, + "before": { + "rss": 231370752, + "heapTotal": 118501376, + "heapUsed": 44219152, + "external": 16519871, + "arrayBuffers": 6416087 + }, + "after": { + "rss": 231370752, + "heapTotal": 118501376, + "heapUsed": 44461000, + "external": 16519871, + "arrayBuffers": 6416087 + }, + "peak": { + "rss": 231370752, + "heapTotal": 118501376, + "heapUsed": 44461000, + "external": 16519871, + "arrayBuffers": 6416087 + }, + "samples": 2, + "maxSampleGapMs": 1.0770169999996142, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 264.35801199999696, + "durationMs": 324.0320490000013, + "before": { + "rss": 231370752, + "heapTotal": 118501376, + "heapUsed": 44462072, + "external": 16519871, + "arrayBuffers": 6416087 + }, + "after": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 44988600, + "external": 16522006, + "arrayBuffers": 6418030 + }, + "peak": { + "rss": 239235072, + "heapTotal": 118763520, + "heapUsed": 44988600, + "external": 16522006, + "arrayBuffers": 6418030 + }, + "samples": 16, + "maxSampleGapMs": 25.669511000000057, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 588.5311729999994, + "durationMs": 0.14682399999946938, + "before": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 44989672, + "external": 16522006, + "arrayBuffers": 6418030 + }, + "after": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 44990624, + "external": 16522006, + "arrayBuffers": 6418030 + }, + "peak": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 44990624, + "external": 16522006, + "arrayBuffers": 6418030 + }, + "samples": 1, + "maxSampleGapMs": 0.010717000001022825, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_copy", + "startedMs": 588.7240549999988, + "durationMs": 96.87421099999847, + "before": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 44991680, + "external": 16522006, + "arrayBuffers": 6418030 + }, + "after": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45343232, + "external": 16523326, + "arrayBuffers": 6419350 + }, + "peak": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45343232, + "external": 16523326, + "arrayBuffers": 6419350 + }, + "samples": 6, + "maxSampleGapMs": 20.423413000000437, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 685.7210919999998, + "durationMs": 7.031165000000328, + "before": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45344304, + "external": 16523326, + "arrayBuffers": 6419350 + }, + "after": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45552624, + "external": 16524644, + "arrayBuffers": 6420668 + }, + "peak": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45552624, + "external": 16524644, + "arrayBuffers": 6420668 + }, + "samples": 1, + "maxSampleGapMs": 6.9916640000010375, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "temp_file_cleanup", + "startedMs": 692.8825129999968, + "durationMs": 8.211683000001358, + "before": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45553680, + "external": 16524644, + "arrayBuffers": 6420668 + }, + "after": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45567768, + "external": 16524852, + "arrayBuffers": 6420876 + }, + "peak": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45567768, + "external": 16524852, + "arrayBuffers": 6420876 + }, + "samples": 2, + "maxSampleGapMs": 6.439108999999007, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "staging_delete", + "startedMs": 701.2420669999992, + "durationMs": 82.65759600000092, + "before": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45568840, + "external": 16524852, + "arrayBuffers": 6420876 + }, + "after": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45835976, + "external": 16525148, + "arrayBuffers": 6421172 + }, + "peak": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45835976, + "external": 16525148, + "arrayBuffers": 6421172 + }, + "samples": 5, + "maxSampleGapMs": 20.424717999998393, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 784.0335930000001, + "durationMs": 0.6372219999975641, + "before": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45837048, + "external": 16525148, + "arrayBuffers": 6421172 + }, + "after": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45846176, + "external": 16525148, + "arrayBuffers": 6421172 + }, + "peak": { + "rss": 219893760, + "heapTotal": 118763520, + "heapUsed": 45846176, + "external": 16525148, + "arrayBuffers": 6421172 + }, + "samples": 1, + "maxSampleGapMs": 0.5955629999989469, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + } + ] + }, + { + "round": 2, + "mode": "proxy", + "sidePixels": 1792, + "fileBytes": 9638577, + "apiStatesAfterRestart": [ + "healthy 2026-11-11T18:38:47.832762378Z", + "healthy 2026-11-11T18:38:47.806128049Z" + ], + "warmupInstances": [ + "073aad49213a", + "ca7302f05bcf" + ], + "requestIds": [ + "94d81bb5-891c-4267-ba46-521fb6843510", + "19ccca18-5ecd-4503-aab3-376f8fd38364", + "bd7aeabc-9209-4097-9584-f967aa6ec9c1" + ], + "successfulUploads": 3, + "elapsedSeconds": 3.4792143999948166, + "memory": [ + { + "instance": "ca7302f05bcf", + "event": "summary", + "pid": 7, + "baselineRssBytes": 238403584, + "sampledPeakRssBytes": 247840768, + "finalRssBytes": 245481472, + "baselineCgroupBytes": 201498624, + "sampledPeakCgroupBytes": 213721088, + "finalCgroupBytes": 213721088, + "lifetimeHwmBeforeBytes": 248479744, + "lifetimeHwmAfterBytes": 248479744, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 9979943, + "networkTxBytes": 9981991, + "samples": 64, + "maxSampleGapMs": 92.66947099999925, + "durationMs": 3200.88785 + }, + { + "instance": "073aad49213a", + "event": "summary", + "pid": 7, + "baselineRssBytes": 228487168, + "sampledPeakRssBytes": 255348736, + "finalRssBytes": 255086592, + "baselineCgroupBytes": 193400832, + "sampledPeakCgroupBytes": 225824768, + "finalCgroupBytes": 225538048, + "lifetimeHwmBeforeBytes": 239955968, + "lifetimeHwmAfterBytes": 255348736, + "oomDelta": 0, + "oomKillDelta": 0, + "networkRxBytes": 19498279, + "networkTxBytes": 19432912, + "samples": 63, + "maxSampleGapMs": 67.61875499999951, + "durationMs": 3200.2119280000006 + } + ], + "apiRxBytes": 29478222, + "apiTxBytes": 29414903, + "idleAfterFiveSeconds": [ + { + "instance": "ca7302f05bcf", + "event": "snapshot", + "rss": 245088256, + "hwm": 248479744, + "oom": 0, + "oomKill": 0, + "rx": 49014514, + "tx": 48981620, + "cgroup": 214216704 + }, + { + "instance": "073aad49213a", + "event": "snapshot", + "rss": 254824448, + "hwm": 255348736, + "oom": 0, + "oomKill": 0, + "rx": 58294009, + "tx": 58143005, + "cgroup": 225521664 + } + ], + "profiles": [ + { + "mode": "proxy", + "requestId": "94d81bb5-891c-4267-ba46-521fb6843510", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 900.6164839999983, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 327.16628899999705, + "before": { + "rss": 228487168, + "heapTotal": 118222848, + "heapUsed": 47528208, + "external": 19901967, + "arrayBuffers": 5212567 + }, + "after": { + "rss": 228618240, + "heapTotal": 118222848, + "heapUsed": 47947896, + "external": 39179565, + "arrayBuffers": 24490165 + }, + "peak": { + "rss": 228618240, + "heapTotal": 118222848, + "heapUsed": 47947896, + "external": 39179565, + "arrayBuffers": 24490165 + }, + "samples": 17, + "maxSampleGapMs": 21.404959999999846, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 327.3093569999983, + "durationMs": 10.086868999998842, + "before": { + "rss": 228618240, + "heapTotal": 118222848, + "heapUsed": 47949376, + "external": 39179565, + "arrayBuffers": 24490165 + }, + "after": { + "rss": 228618240, + "heapTotal": 118222848, + "heapUsed": 48040968, + "external": 39179741, + "arrayBuffers": 24490341 + }, + "peak": { + "rss": 228618240, + "heapTotal": 118222848, + "heapUsed": 48040968, + "external": 39179741, + "arrayBuffers": 24490341 + }, + "samples": 1, + "maxSampleGapMs": 10.038166999998793, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 347.2253549999987, + "durationMs": 28.10115399999995, + "before": { + "rss": 228618240, + "heapTotal": 118222848, + "heapUsed": 48043968, + "external": 39179741, + "arrayBuffers": 24490341 + }, + "after": { + "rss": 228880384, + "heapTotal": 118222848, + "heapUsed": 48337448, + "external": 39179903, + "arrayBuffers": 24490503 + }, + "peak": { + "rss": 228880384, + "heapTotal": 118222848, + "heapUsed": 48337448, + "external": 39179903, + "arrayBuffers": 24490503 + }, + "samples": 2, + "maxSampleGapMs": 17.164999000000535, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 375.455708999998, + "durationMs": 326.1580360000007, + "before": { + "rss": 228880384, + "heapTotal": 118222848, + "heapUsed": 48338696, + "external": 39179903, + "arrayBuffers": 24490503 + }, + "after": { + "rss": 238972928, + "heapTotal": 52162560, + "heapUsed": 44780432, + "external": 39176070, + "arrayBuffers": 10053710 + }, + "peak": { + "rss": 239235072, + "heapTotal": 118222848, + "heapUsed": 48480832, + "external": 39180663, + "arrayBuffers": 24491263 + }, + "samples": 17, + "maxSampleGapMs": 21.66867899999852, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 701.7500079999991, + "durationMs": 0.05402899999899091, + "before": { + "rss": 238972928, + "heapTotal": 52162560, + "heapUsed": 44781680, + "external": 39176070, + "arrayBuffers": 10053710 + }, + "after": { + "rss": 238972928, + "heapTotal": 52162560, + "heapUsed": 44783376, + "external": 39176070, + "arrayBuffers": 10053710 + }, + "peak": { + "rss": 238972928, + "heapTotal": 52162560, + "heapUsed": 44783376, + "external": 39176070, + "arrayBuffers": 10053710 + }, + "samples": 1, + "maxSampleGapMs": 0.020526000000245403, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 701.8370079999986, + "durationMs": 3.3199539999986882, + "before": { + "rss": 238972928, + "heapTotal": 52162560, + "heapUsed": 44784624, + "external": 39176070, + "arrayBuffers": 10053710 + }, + "after": { + "rss": 238972928, + "heapTotal": 52162560, + "heapUsed": 44913344, + "external": 24738623, + "arrayBuffers": 10053816 + }, + "peak": { + "rss": 238972928, + "heapTotal": 52162560, + "heapUsed": 44913344, + "external": 39176070, + "arrayBuffers": 10053816 + }, + "samples": 1, + "maxSampleGapMs": 3.2513959999996587, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 705.2726889999976, + "durationMs": 173.1156919999994, + "before": { + "rss": 238972928, + "heapTotal": 52162560, + "heapUsed": 44914592, + "external": 24738623, + "arrayBuffers": 10053816 + }, + "after": { + "rss": 238317568, + "heapTotal": 52162560, + "heapUsed": 45316304, + "external": 24739056, + "arrayBuffers": 10054249 + }, + "peak": { + "rss": 238972928, + "heapTotal": 52162560, + "heapUsed": 45316304, + "external": 24739056, + "arrayBuffers": 10054249 + }, + "samples": 9, + "maxSampleGapMs": 20.440805000002, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 881.3508699999984, + "durationMs": 9.203690000002098, + "before": { + "rss": 238317568, + "heapTotal": 52162560, + "heapUsed": 45317552, + "external": 24739056, + "arrayBuffers": 10054249 + }, + "after": { + "rss": 238317568, + "heapTotal": 52162560, + "heapUsed": 45318816, + "external": 24739056, + "arrayBuffers": 10054249 + }, + "peak": { + "rss": 238317568, + "heapTotal": 52162560, + "heapUsed": 45318816, + "external": 24739056, + "arrayBuffers": 10054249 + }, + "samples": 1, + "maxSampleGapMs": 9.033897000001161, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 890.6922649999979, + "durationMs": 6.473207000002731, + "before": { + "rss": 238317568, + "heapTotal": 52162560, + "heapUsed": 45320064, + "external": 24739056, + "arrayBuffers": 10054249 + }, + "after": { + "rss": 238317568, + "heapTotal": 52162560, + "heapUsed": 45471920, + "external": 24739769, + "arrayBuffers": 10054962 + }, + "peak": { + "rss": 238317568, + "heapTotal": 52162560, + "heapUsed": 45471920, + "external": 24739769, + "arrayBuffers": 10054962 + }, + "samples": 2, + "maxSampleGapMs": 3.633220000003348, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 897.3697699999975, + "durationMs": 1.5407230000018899, + "before": { + "rss": 238317568, + "heapTotal": 52162560, + "heapUsed": 45473168, + "external": 24739769, + "arrayBuffers": 10054962 + }, + "after": { + "rss": 238317568, + "heapTotal": 52162560, + "heapUsed": 45483992, + "external": 24739769, + "arrayBuffers": 10054962 + }, + "peak": { + "rss": 238317568, + "heapTotal": 52162560, + "heapUsed": 45483992, + "external": 24739769, + "arrayBuffers": 10054962 + }, + "samples": 1, + "maxSampleGapMs": 1.37068200000067, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "proxy", + "requestId": "19ccca18-5ecd-4503-aab3-376f8fd38364", + "instance": "ca7302f05bcf", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 1172.206169000001, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 331.33503700000074, + "before": { + "rss": 237223936, + "heapTotal": 119271424, + "heapUsed": 46786368, + "external": 17576051, + "arrayBuffers": 2886651 + }, + "after": { + "rss": 237223936, + "heapTotal": 119271424, + "heapUsed": 47351824, + "external": 36853649, + "arrayBuffers": 22164249 + }, + "peak": { + "rss": 237223936, + "heapTotal": 119271424, + "heapUsed": 47351824, + "external": 36853649, + "arrayBuffers": 22164249 + }, + "samples": 15, + "maxSampleGapMs": 27.767697000002954, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 333.9665780000032, + "durationMs": 5.361551999998483, + "before": { + "rss": 237223936, + "heapTotal": 119271424, + "heapUsed": 47353304, + "external": 36853649, + "arrayBuffers": 22164249 + }, + "after": { + "rss": 237223936, + "heapTotal": 119271424, + "heapUsed": 47434584, + "external": 36853825, + "arrayBuffers": 22164425 + }, + "peak": { + "rss": 237223936, + "heapTotal": 119271424, + "heapUsed": 47434584, + "external": 36853825, + "arrayBuffers": 22164425 + }, + "samples": 1, + "maxSampleGapMs": 4.847094000000652, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 339.487849000001, + "durationMs": 16.87735800000155, + "before": { + "rss": 237223936, + "heapTotal": 119271424, + "heapUsed": 47435832, + "external": 36853825, + "arrayBuffers": 22164425 + }, + "after": { + "rss": 237355008, + "heapTotal": 119271424, + "heapUsed": 47489888, + "external": 36853825, + "arrayBuffers": 22164425 + }, + "peak": { + "rss": 237355008, + "heapTotal": 119271424, + "heapUsed": 47489888, + "external": 36853825, + "arrayBuffers": 22164425 + }, + "samples": 2, + "maxSampleGapMs": 13.693583000000217, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 356.5262849999999, + "durationMs": 512.416379000002, + "before": { + "rss": 237355008, + "heapTotal": 119271424, + "heapUsed": 47491136, + "external": 36853825, + "arrayBuffers": 22164425 + }, + "after": { + "rss": 247709696, + "heapTotal": 53211136, + "heapUsed": 44659888, + "external": 36849232, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 247709696, + "heapTotal": 119271424, + "heapUsed": 47534976, + "external": 36853825, + "arrayBuffers": 22164425 + }, + "samples": 22, + "maxSampleGapMs": 53.09629099999802, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 869.093208000002, + "durationMs": 0.07618100000036065, + "before": { + "rss": 247709696, + "heapTotal": 53211136, + "heapUsed": 44661136, + "external": 36849232, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 247709696, + "heapTotal": 53211136, + "heapUsed": 44662832, + "external": 36849232, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 247709696, + "heapTotal": 53211136, + "heapUsed": 44662832, + "external": 36849232, + "arrayBuffers": 19691809 + }, + "samples": 1, + "maxSampleGapMs": 0.023198999999294756, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 869.2212319999999, + "durationMs": 4.716985000002751, + "before": { + "rss": 247709696, + "heapTotal": 53211136, + "heapUsed": 44664080, + "external": 36849232, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 247709696, + "heapTotal": 53211136, + "heapUsed": 44798944, + "external": 34376722, + "arrayBuffers": 19691915 + }, + "peak": { + "rss": 247709696, + "heapTotal": 53211136, + "heapUsed": 44798944, + "external": 36849232, + "arrayBuffers": 19691915 + }, + "samples": 1, + "maxSampleGapMs": 4.656637000000046, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 874.2275120000013, + "durationMs": 282.71429999999964, + "before": { + "rss": 247709696, + "heapTotal": 53211136, + "heapUsed": 44800192, + "external": 34376722, + "arrayBuffers": 19691915 + }, + "after": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45732904, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "peak": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45732904, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "samples": 15, + "maxSampleGapMs": 20.910061999999016, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 1157.1314789999997, + "durationMs": 7.820751000002929, + "before": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45281432, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "after": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45282696, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "peak": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45282696, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "samples": 1, + "maxSampleGapMs": 7.761220000000321, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 1165.1384720000024, + "durationMs": 5.550199999997858, + "before": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45283944, + "external": 34377155, + "arrayBuffers": 19692348 + }, + "after": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45430040, + "external": 34377868, + "arrayBuffers": 19693061 + }, + "peak": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45430040, + "external": 34377868, + "arrayBuffers": 19693061 + }, + "samples": 2, + "maxSampleGapMs": 4.866931000000477, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 1170.8337330000031, + "durationMs": 1.1321829999978945, + "before": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45431288, + "external": 34377868, + "arrayBuffers": 19693061 + }, + "after": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45444136, + "external": 34377868, + "arrayBuffers": 19693061 + }, + "peak": { + "rss": 247840768, + "heapTotal": 53211136, + "heapUsed": 45444136, + "external": 34377868, + "arrayBuffers": 19693061 + }, + "samples": 1, + "maxSampleGapMs": 1.0735160000003816, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + }, + { + "mode": "proxy", + "requestId": "bd7aeabc-9209-4097-9584-f967aa6ec9c1", + "instance": "073aad49213a", + "pid": 7, + "status": 201, + "finished": true, + "intervalMs": 20, + "durationMs": 1086.5139459999991, + "stages": [ + { + "name": "receive_and_authenticate", + "startedMs": 0, + "durationMs": 494.1863630000007, + "before": { + "rss": 237793280, + "heapTotal": 55308288, + "heapUsed": 44978256, + "external": 24739277, + "arrayBuffers": 10054470 + }, + "after": { + "rss": 246042624, + "heapTotal": 51916800, + "heapUsed": 43758512, + "external": 34375764, + "arrayBuffers": 19691633 + }, + "peak": { + "rss": 246181888, + "heapTotal": 55308288, + "heapUsed": 45882536, + "external": 44017353, + "arrayBuffers": 29332546 + }, + "samples": 21, + "maxSampleGapMs": 57.15478200000143, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "authorize_and_validate_fields", + "startedMs": 494.7660189999988, + "durationMs": 4.146704000002501, + "before": { + "rss": 246042624, + "heapTotal": 51916800, + "heapUsed": 43759912, + "external": 34375764, + "arrayBuffers": 19691633 + }, + "after": { + "rss": 246042624, + "heapTotal": 51916800, + "heapUsed": 43888832, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 246042624, + "heapTotal": 51916800, + "heapUsed": 43888832, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "samples": 1, + "maxSampleGapMs": 3.396381000002293, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_metadata", + "startedMs": 499.03423699999985, + "durationMs": 1.8129359999984445, + "before": { + "rss": 246042624, + "heapTotal": 51916800, + "heapUsed": 43890080, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 246042624, + "heapTotal": 51916800, + "heapUsed": 43924768, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 246042624, + "heapTotal": 51916800, + "heapUsed": 43924768, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "samples": 1, + "maxSampleGapMs": 1.7811779999974533, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sharp_decode_stats", + "startedMs": 500.9862099999991, + "durationMs": 313.94535800000085, + "before": { + "rss": 246042624, + "heapTotal": 51916800, + "heapUsed": 43926016, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 255348736, + "heapTotal": 51916800, + "heapUsed": 43970016, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 255348736, + "heapTotal": 51916800, + "heapUsed": 43970016, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "samples": 17, + "maxSampleGapMs": 21.93818100000135, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "image_validated", + "startedMs": 815.0525119999984, + "durationMs": 0.05928200000198558, + "before": { + "rss": 255348736, + "heapTotal": 51916800, + "heapUsed": 43971264, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 255348736, + "heapTotal": 51916800, + "heapUsed": 43972960, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "peak": { + "rss": 255348736, + "heapTotal": 51916800, + "heapUsed": 43972960, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "samples": 1, + "maxSampleGapMs": 0.0210399999996298, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_lock", + "startedMs": 815.1567219999997, + "durationMs": 4.731120000000374, + "before": { + "rss": 255348736, + "heapTotal": 51916800, + "heapUsed": 43974208, + "external": 34375940, + "arrayBuffers": 19691809 + }, + "after": { + "rss": 255348736, + "heapTotal": 51916800, + "heapUsed": 44101072, + "external": 34376046, + "arrayBuffers": 19691915 + }, + "peak": { + "rss": 255348736, + "heapTotal": 51916800, + "heapUsed": 44101072, + "external": 34376046, + "arrayBuffers": 19691915 + }, + "samples": 1, + "maxSampleGapMs": 4.676833000001352, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "s3_put", + "startedMs": 820.1196920000002, + "durationMs": 247.41361799999868, + "before": { + "rss": 255348736, + "heapTotal": 51916800, + "heapUsed": 44105312, + "external": 34376046, + "arrayBuffers": 19691915 + }, + "after": { + "rss": 255086592, + "heapTotal": 51916800, + "heapUsed": 44571968, + "external": 34376479, + "arrayBuffers": 19692348 + }, + "peak": { + "rss": 255348736, + "heapTotal": 51916800, + "heapUsed": 44571968, + "external": 34376479, + "arrayBuffers": 19692348 + }, + "samples": 13, + "maxSampleGapMs": 20.654975000001286, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "sha256", + "startedMs": 1067.6792529999984, + "durationMs": 11.143697999999858, + "before": { + "rss": 255086592, + "heapTotal": 51916800, + "heapUsed": 44573216, + "external": 34376479, + "arrayBuffers": 19692348 + }, + "after": { + "rss": 255086592, + "heapTotal": 51916800, + "heapUsed": 44574480, + "external": 34376479, + "arrayBuffers": 19692348 + }, + "peak": { + "rss": 255086592, + "heapTotal": 51916800, + "heapUsed": 44574480, + "external": 34376479, + "arrayBuffers": 19692348 + }, + "samples": 1, + "maxSampleGapMs": 11.075377999997727, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "db_insert_and_commit", + "startedMs": 1078.9855629999984, + "durationMs": 5.973111999999674, + "before": { + "rss": 255086592, + "heapTotal": 51916800, + "heapUsed": 44575728, + "external": 34376479, + "arrayBuffers": 19692348 + }, + "after": { + "rss": 255086592, + "heapTotal": 52965376, + "heapUsed": 44049184, + "external": 34375338, + "arrayBuffers": 19691207 + }, + "peak": { + "rss": 255086592, + "heapTotal": 52965376, + "heapUsed": 44671224, + "external": 34376479, + "arrayBuffers": 19692348 + }, + "samples": 2, + "maxSampleGapMs": 4.027457999996841, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + { + "name": "serialize_response", + "startedMs": 1085.1013669999993, + "durationMs": 1.155665999998746, + "before": { + "rss": 255086592, + "heapTotal": 52965376, + "heapUsed": 44050432, + "external": 34375338, + "arrayBuffers": 19691207 + }, + "after": { + "rss": 255086592, + "heapTotal": 52965376, + "heapUsed": 44068344, + "external": 34375338, + "arrayBuffers": 19691207 + }, + "peak": { + "rss": 255086592, + "heapTotal": 52965376, + "heapUsed": 44068344, + "external": 34375338, + "arrayBuffers": 19691207 + }, + "samples": 1, + "maxSampleGapMs": 1.0607679999993707, + "sharpBefore": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + }, + "sharpAfter": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + } + ] + } + ] + } + ], + "method": "One upload at a time; measured direct flow includes grant, PUT, and complete with full image validation. Download verification is outside the measurement window. RSS sampling 50 ms; network counters sum non-loopback API interfaces, including DB/S3/background health traffic. Probe RSS excluded.", + "fixturesRemoved": true +} diff --git a/evidence/direct-uploads.json b/evidence/direct-uploads.json new file mode 100644 index 0000000..f95542f --- /dev/null +++ b/evidence/direct-uploads.json @@ -0,0 +1,15 @@ +{ + "status": "passed", + "checks": [ + "grant ACL, strict input validation, owner-only complete and missing-upload handling", + "unsigned/tampered requests denied; wrong payload checksum rejected by RustFS", + "create-only PUT, publication, byte integrity, message binding and replay-safe immutable original", + "JPEG publication preserves the exact original bytes", + "simultaneous complete publishes one stable attachment across replicas", + "corrupt image and MIME spoof rejected without ready metadata", + "40-million-pixel limit enforced before full decoding", + "real URL expiry, expired-intent cleanup and published-object protection", + "mandatory proxy upload remains compatible" + ], + "fixturesRemoved": true +} diff --git a/evidence/final-regression.json b/evidence/final-regression.json new file mode 100644 index 0000000..5e71545 --- /dev/null +++ b/evidence/final-regression.json @@ -0,0 +1,394 @@ +{ + "status": "passed", + "startedAt": "2026-11-11T21:03:10.320137+00:00", + "sourceSha256": "12af1c58afaa9c1600a9c95edbb083757447ee1d2ecca11948f6968ad80c3c8c", + "steps": [ + { + "name": "offline_contract", + "command": [ + "C:\\Program Files\\Python313\\python.exe", + "-X", + "utf8", + "-u", + "scripts/check_contract.py" + ], + "status": "passed", + "output": [ + "PASS: offline skeleton structure, local refs and Python syntax; application NOT tested." + ], + "exitCode": 0, + "elapsedSeconds": 16.179012099979445 + }, + { + "name": "unit", + "command": [ + "cmd.exe", + "/d", + "/c", + "pnpm.cmd", + "test", + "--runInBand" + ], + "status": "passed", + "output": [ + "Test Suites: 9 passed, 9 total", + "Tests: 47 passed, 47 total" + ], + "exitCode": 0, + "elapsedSeconds": 32.84614499998861 + }, + { + "name": "lint", + "command": [ + "cmd.exe", + "/d", + "/c", + "pnpm.cmd", + "lint" + ], + "status": "passed", + "output": [], + "exitCode": 0, + "elapsedSeconds": 7.732036200002767 + }, + { + "name": "public_smoke_before", + "command": [ + "C:\\Program Files\\Python313\\python.exe", + "-X", + "utf8", + "-u", + "tests/smoke.py", + "--base-url", + "http://127.0.0.1:8080" + ], + "status": "passed", + "output": [ + "PASS: lab4 public API scenario; infrastructure and grading evidence remain separate." + ], + "exitCode": 0, + "elapsedSeconds": 4.509277600009227 + }, + { + "name": "oversized_upload_transport", + "command": [ + "C:\\Program Files\\Python313\\python.exe", + "-X", + "utf8", + "-u", + "test/oversized-uploads.py" + ], + "status": "passed", + "output": [ + "PASS: 16 oversized Content-Length/chunked uploads through Nginx returned canonical 413; both APIs covered; subsequent upload/download verified" + ], + "exitCode": 0, + "elapsedSeconds": 15.628907100006472 + }, + { + "name": "attachments_s3_outage_persistence", + "command": [ + "C:\\Program Files\\Python313\\python.exe", + "-X", + "utf8", + "-u", + "test/attachments.py", + "--base-url", + "http://127.0.0.1:8080", + "--lifecycle" + ], + "status": "passed", + "output": [ + "PASS: attachments, validation, ACL, idempotency, private S3, outage and persistence" + ], + "exitCode": 0, + "elapsedSeconds": 92.00613980001071 + }, + { + "name": "reconciliation_crash_and_database_outage", + "command": [ + "C:\\Program Files\\Python313\\python.exe", + "-X", + "utf8", + "-u", + "test/run-reconcile.py" + ], + "status": "passed", + "output": [ + "PASS: real writer crash, DB outage, dry-run, orphan deletion, active/fresh/referenced protection, repeat run and missing-object reporting." + ], + "exitCode": 0, + "elapsedSeconds": 14.79472619999433 + }, + { + "name": "public_persistence_and_each_api_failover", + "command": [ + "C:\\Program Files\\Python313\\python.exe", + "-X", + "utf8", + "-u", + "test/hooks.py" + ], + "status": "passed", + "output": [ + "PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.", + "PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.", + "PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.", + "PASS: public persistence/failover hooks; all stores restarted; each API stopped separately; replicas restored" + ], + "exitCode": 0, + "elapsedSeconds": 123.80009560001781 + }, + { + "name": "swagger_and_attachment_failover", + "command": [ + "C:\\Program Files\\Python313\\python.exe", + "-X", + "utf8", + "-u", + "test/replicas.py", + "--base-url", + "http://127.0.0.1:8080" + ], + "status": "passed", + "output": [ + "PASS: two replicas, canonical Swagger and attachment/idempotency failover." + ], + "exitCode": 0, + "elapsedSeconds": 17.544774399982998 + }, + { + "name": "interrupted_upload_and_receive_deadline", + "command": [ + "C:\\Program Files\\Python313\\python.exe", + "-X", + "utf8", + "-u", + "test/upload-interruption.py" + ], + "status": "passed", + "output": [ + "PASS: ce0434d224ba: both client aborts leave no bytes/metadata; slow upload gets 408; next upload/download succeeds", + "PASS: 752f50d7b664: both client aborts leave no bytes/metadata; slow upload gets 408; next upload/download succeeds", + "PASS: nginx: both client aborts leave no bytes/metadata; slow upload gets 408; next upload/download succeeds", + "PASS: upload interruption and receive deadline; targets=all; fixtures removed" + ], + "exitCode": 0, + "elapsedSeconds": 58.85686539998278 + }, + { + "name": "presigned_positive_and_negative", + "command": [ + "C:\\Program Files\\Python313\\python.exe", + "-X", + "utf8", + "-u", + "test/direct-uploads.py" + ], + "status": "passed", + "output": [ + "PASS: grant ACL, strict input validation, owner-only complete and missing-upload handling", + "PASS: unsigned/tampered requests denied; wrong payload checksum rejected by RustFS", + "PASS: create-only PUT, publication, byte integrity, message binding and replay-safe immutable original", + "PASS: JPEG publication preserves the exact original bytes", + "PASS: simultaneous complete publishes one stable attachment across replicas", + "PASS: corrupt image and MIME spoof rejected without ready metadata", + "PASS: 40-million-pixel limit enforced before full decoding", + "PASS: real URL expiry, expired-intent cleanup and published-object protection", + "PASS: mandatory proxy upload remains compatible" + ], + "exitCode": 0, + "elapsedSeconds": 14.73761030001333 + }, + { + "name": "s3_restricted_roles", + "command": [ + "docker", + "compose", + "run", + "--rm", + "--no-deps", + "-T", + "-v", + "C:\\Users\\olpin\\Projects\\mtusi2026lab4\\test:/app/test:ro", + "--entrypoint", + "node", + "s3-init", + "test/s3-permissions.mjs" + ], + "status": "passed", + "output": [ + "PASS: api: object read and readiness allowed; other prefixes/buckets, bucket policy and admin denied", + "PASS: reconciler: object read and readiness allowed; other prefixes/buckets, bucket policy and admin denied", + "PASS: API CRUD without listing; reconciler scoped listing/HEAD/delete without PUT; anonymous access denied" + ], + "exitCode": 0, + "elapsedSeconds": 4.188357200007886 + }, + { + "name": "s3_conditional_write_checksum_copy", + "command": [ + "docker", + "compose", + "run", + "--rm", + "--no-deps", + "-T", + "-v", + "C:\\Users\\olpin\\Projects\\mtusi2026lab4\\test:/app/test:ro", + "--entrypoint", + "node", + "s3-init", + "test/s3-direct-capabilities.mjs" + ], + "status": "passed", + "output": [ + "PASS: RustFS 1.0.4 enforces If-None-Match, SHA-256 and conditional server-side copy" + ], + "exitCode": 0, + "elapsedSeconds": 3.997638200002257 + }, + { + "name": "public_smoke_after", + "command": [ + "C:\\Program Files\\Python313\\python.exe", + "-X", + "utf8", + "-u", + "tests/smoke.py", + "--base-url", + "http://127.0.0.1:8080" + ], + "status": "passed", + "output": [ + "PASS: lab4 public API scenario; infrastructure and grading evidence remain separate." + ], + "exitCode": 0, + "elapsedSeconds": 2.654254299995955 + } + ], + "scope": "Existing suites, sequential execution, no load benchmark rerun. IPv4 public endpoint. All runtime services restored without deleting volumes.", + "before": [ + { + "service": "api", + "name": "mtusi2026lab4-api-1", + "id": "ce0434d224ba", + "state": "running", + "health": "healthy", + "image": "mtusi2026lab4-api" + }, + { + "service": "api", + "name": "mtusi2026lab4-api-2", + "id": "752f50d7b664", + "state": "running", + "health": "healthy", + "image": "mtusi2026lab4-api" + }, + { + "service": "nginx", + "name": "mtusi2026lab4-nginx-1", + "id": "dd8840a93c5b", + "state": "running", + "health": "healthy", + "image": "nginx:1.30.6-alpine" + }, + { + "service": "postgres", + "name": "mtusi2026lab4-postgres-1", + "id": "14c8623492ba", + "state": "running", + "health": "healthy", + "image": "postgres:17.6-bookworm" + }, + { + "service": "reconciler", + "name": "mtusi2026lab4-reconciler-1", + "id": "4058a1f65b0b", + "state": "running", + "health": "healthy", + "image": "mtusi2026lab4-reconciler" + }, + { + "service": "redis", + "name": "mtusi2026lab4-redis-1", + "id": "b521d405535f", + "state": "running", + "health": "healthy", + "image": "redis:7.4.5-alpine" + }, + { + "service": "s3", + "name": "mtusi2026lab4-s3-1", + "id": "ef6e12a25440", + "state": "running", + "health": "healthy", + "image": "rustfs/rustfs:1.0.4" + } + ], + "apiImages": [ + "ce0434d224ba sha256:dc12a9dcee0a6f047ac0bea6e12155687ecd831b36e029976ca221f7cacd3c99", + "752f50d7b664 sha256:dc12a9dcee0a6f047ac0bea6e12155687ecd831b36e029976ca221f7cacd3c99" + ], + "sourceUnchanged": true, + "after": [ + { + "service": "api", + "name": "mtusi2026lab4-api-1", + "id": "ce0434d224ba", + "state": "running", + "health": "healthy", + "image": "mtusi2026lab4-api" + }, + { + "service": "api", + "name": "mtusi2026lab4-api-2", + "id": "752f50d7b664", + "state": "running", + "health": "healthy", + "image": "mtusi2026lab4-api" + }, + { + "service": "nginx", + "name": "mtusi2026lab4-nginx-1", + "id": "dd8840a93c5b", + "state": "running", + "health": "healthy", + "image": "nginx:1.30.6-alpine" + }, + { + "service": "postgres", + "name": "mtusi2026lab4-postgres-1", + "id": "14c8623492ba", + "state": "running", + "health": "healthy", + "image": "postgres:17.6-bookworm" + }, + { + "service": "reconciler", + "name": "mtusi2026lab4-reconciler-1", + "id": "4058a1f65b0b", + "state": "running", + "health": "healthy", + "image": "mtusi2026lab4-reconciler" + }, + { + "service": "redis", + "name": "mtusi2026lab4-redis-1", + "id": "b521d405535f", + "state": "running", + "health": "healthy", + "image": "redis:7.4.5-alpine" + }, + { + "service": "s3", + "name": "mtusi2026lab4-s3-1", + "id": "ef6e12a25440", + "state": "running", + "health": "healthy", + "image": "rustfs/rustfs:1.0.4" + } + ], + "stackRestored": true, + "finishedAt": "2026-11-11T21:10:19.452449+00:00" +} diff --git a/evidence/final-regression.txt b/evidence/final-regression.txt new file mode 100644 index 0000000..3dca3b8 --- /dev/null +++ b/evidence/final-regression.txt @@ -0,0 +1,34 @@ +Final regression: PASSED +Started (UTC): 2026-11-11T21:03:10.320137+00:00 +Finished (UTC): 2026-11-11T21:10:19.452449+00:00 +Source/config/test SHA-256: 12af1c58afaa9c1600a9c95edbb083757447ee1d2ecca11948f6968ad80c3c8c +14 sequential suites passed; 47 unit tests passed; lint and Docker build passed. +Public tests unchanged; no business-request retries. +Runtime restored: both API replicas plus Nginx/PostgreSQL/Redis/RustFS/reconciler healthy. +Each API stopped separately by public hooks; all runtime stores restarted with volumes preserved. + +Suites: +offline_contract: PASS (16.2 s) +unit: PASS (32.8 s) +lint: PASS (7.7 s) +public_smoke_before: PASS (4.5 s) +oversized_upload_transport: PASS (15.6 s) +attachments_s3_outage_persistence: PASS (92.0 s) +reconciliation_crash_and_database_outage: PASS (14.8 s) +public_persistence_and_each_api_failover: PASS (123.8 s) +swagger_and_attachment_failover: PASS (17.5 s) +interrupted_upload_and_receive_deadline: PASS (58.9 s) +presigned_positive_and_negative: PASS (14.7 s) +s3_restricted_roles: PASS (4.2 s) +s3_conditional_write_checksum_copy: PASS (4.0 s) +public_smoke_after: PASS (2.7 s) + +Fix found during regression: early oversized upload rejection could yield Nginx 502 despite API 413. +Fix: bounded discard before sending 413, within the original receive deadline; explicit upstream Connection header. +Added byte-budget/end/deadline unit tests and real Content-Length/chunked regression through Nginx. +New drain code affects rejected bodies; normal upload buffering/validation remains the same. +Student lifecycle readiness now waits for both upstreams to remain ready across the reload transition. +Public tests and failover thresholds were not relaxed. +Earlier transport/recovery failures were superseded after the fixes; obsolete snapshots removed during report cleanup. + +Repeat: python -X utf8 test/final-regression.py diff --git a/evidence/hooks.json b/evidence/hooks.json new file mode 100644 index 0000000..accf720 --- /dev/null +++ b/evidence/hooks.json @@ -0,0 +1,372 @@ +{ + "status": "passed", + "failover": [ + { + "stoppedInstance": "ce0434d224ba", + "before": { + "mtusi2026lab4-api-1": { + "service": "api", + "instance": "ce0434d224ba", + "startedAt": "2026-11-11T21:06:56.691717844Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-api-2": { + "service": "api", + "instance": "752f50d7b664", + "startedAt": "2026-11-11T21:06:57.128454611Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-nginx-1": { + "service": "nginx", + "instance": "dd8840a93c5b", + "startedAt": "2026-11-11T21:07:09.789954207Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-postgres-1": { + "service": "postgres", + "instance": "14c8623492ba", + "startedAt": "2026-11-11T21:06:47.578821968Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-reconciler-1": { + "service": "reconciler", + "instance": "4058a1f65b0b", + "startedAt": "2026-11-11T21:07:09.322356788Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-redis-1": { + "service": "redis", + "instance": "b521d405535f", + "startedAt": "2026-11-11T21:06:47.601706994Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-s3-1": { + "service": "s3", + "instance": "ef6e12a25440", + "startedAt": "2026-11-11T21:06:47.595668528Z", + "status": "running", + "restartCount": 0 + } + }, + "after": { + "mtusi2026lab4-api-1": { + "service": "api", + "instance": "ce0434d224ba", + "startedAt": "2026-11-11T21:06:56.691717844Z", + "status": "exited", + "restartCount": 0 + }, + "mtusi2026lab4-api-2": { + "service": "api", + "instance": "752f50d7b664", + "startedAt": "2026-11-11T21:06:57.128454611Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-nginx-1": { + "service": "nginx", + "instance": "dd8840a93c5b", + "startedAt": "2026-11-11T21:07:09.789954207Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-postgres-1": { + "service": "postgres", + "instance": "14c8623492ba", + "startedAt": "2026-11-11T21:06:47.578821968Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-reconciler-1": { + "service": "reconciler", + "instance": "4058a1f65b0b", + "startedAt": "2026-11-11T21:07:09.322356788Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-redis-1": { + "service": "redis", + "instance": "b521d405535f", + "startedAt": "2026-11-11T21:06:47.601706994Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-s3-1": { + "service": "s3", + "instance": "ef6e12a25440", + "startedAt": "2026-11-11T21:06:47.595668528Z", + "status": "running", + "restartCount": 0 + } + }, + "output": "Executing explicit failover hook; hook output suppressed to avoid leaking secrets.\n{\"observed_instances_before\": 2, \"successful_writes\": 86, \"failed_attempts\": 1, \"first_recovery_seconds\": 4.206}\nPASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence." + }, + { + "stoppedInstance": "752f50d7b664", + "before": { + "mtusi2026lab4-api-1": { + "service": "api", + "instance": "ce0434d224ba", + "startedAt": "2026-11-11T21:07:40.215373791Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-api-2": { + "service": "api", + "instance": "752f50d7b664", + "startedAt": "2026-11-11T21:06:57.128454611Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-nginx-1": { + "service": "nginx", + "instance": "dd8840a93c5b", + "startedAt": "2026-11-11T21:07:09.789954207Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-postgres-1": { + "service": "postgres", + "instance": "14c8623492ba", + "startedAt": "2026-11-11T21:06:47.578821968Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-reconciler-1": { + "service": "reconciler", + "instance": "4058a1f65b0b", + "startedAt": "2026-11-11T21:07:09.322356788Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-redis-1": { + "service": "redis", + "instance": "b521d405535f", + "startedAt": "2026-11-11T21:06:47.601706994Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-s3-1": { + "service": "s3", + "instance": "ef6e12a25440", + "startedAt": "2026-11-11T21:06:47.595668528Z", + "status": "running", + "restartCount": 0 + } + }, + "after": { + "mtusi2026lab4-api-1": { + "service": "api", + "instance": "ce0434d224ba", + "startedAt": "2026-11-11T21:07:40.215373791Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-api-2": { + "service": "api", + "instance": "752f50d7b664", + "startedAt": "2026-11-11T21:06:57.128454611Z", + "status": "exited", + "restartCount": 0 + }, + "mtusi2026lab4-nginx-1": { + "service": "nginx", + "instance": "dd8840a93c5b", + "startedAt": "2026-11-11T21:07:09.789954207Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-postgres-1": { + "service": "postgres", + "instance": "14c8623492ba", + "startedAt": "2026-11-11T21:06:47.578821968Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-reconciler-1": { + "service": "reconciler", + "instance": "4058a1f65b0b", + "startedAt": "2026-11-11T21:07:09.322356788Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-redis-1": { + "service": "redis", + "instance": "b521d405535f", + "startedAt": "2026-11-11T21:06:47.601706994Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-s3-1": { + "service": "s3", + "instance": "ef6e12a25440", + "startedAt": "2026-11-11T21:06:47.595668528Z", + "status": "running", + "restartCount": 0 + } + }, + "output": "Executing explicit failover hook; hook output suppressed to avoid leaking secrets.\n{\"observed_instances_before\": 2, \"successful_writes\": 93, \"failed_attempts\": 2, \"first_recovery_seconds\": 4.127}\nPASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence." + } + ], + "writeWarmups": [ + { + "752f50d7b664": { + "writes": 3, + "minSeconds": 0.02528520001214929, + "maxSeconds": 0.05653770000208169, + "uploadSeconds": [ + 0.14060700000845827 + ], + "downloadSeconds": [ + 0.02674750000005588 + ] + }, + "ce0434d224ba": { + "writes": 3, + "minSeconds": 0.024145300005329773, + "maxSeconds": 0.0363634999957867, + "uploadSeconds": [ + 0.12597850000020117 + ], + "downloadSeconds": [ + 0.030548900016583502 + ] + } + }, + { + "ce0434d224ba": { + "writes": 3, + "minSeconds": 0.03536629999871366, + "maxSeconds": 0.14764460001606494, + "uploadSeconds": [ + 0.10738060000585392 + ], + "downloadSeconds": [ + 0.040137300005881116 + ] + }, + "752f50d7b664": { + "writes": 3, + "minSeconds": 0.020328800019342452, + "maxSeconds": 0.03870999999344349, + "uploadSeconds": [ + 0.08634139999048784 + ], + "downloadSeconds": [ + 0.026475600025150925 + ] + } + } + ], + "persistence": { + "before": { + "mtusi2026lab4-api-1": { + "service": "api", + "instance": "ce0434d224ba", + "startedAt": "2026-11-11T21:05:38.078659211Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-api-2": { + "service": "api", + "instance": "752f50d7b664", + "startedAt": "2026-11-11T21:05:38.603587222Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-nginx-1": { + "service": "nginx", + "instance": "dd8840a93c5b", + "startedAt": "2026-11-11T21:05:50.529959093Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-postgres-1": { + "service": "postgres", + "instance": "14c8623492ba", + "startedAt": "2026-11-11T21:05:24.00716937Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-reconciler-1": { + "service": "reconciler", + "instance": "4058a1f65b0b", + "startedAt": "2026-11-11T21:05:50.258628795Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-redis-1": { + "service": "redis", + "instance": "b521d405535f", + "startedAt": "2026-11-11T21:05:23.98785755Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-s3-1": { + "service": "s3", + "instance": "ef6e12a25440", + "startedAt": "2026-11-11T21:05:23.952757617Z", + "status": "running", + "restartCount": 0 + } + }, + "after": { + "mtusi2026lab4-api-1": { + "service": "api", + "instance": "ce0434d224ba", + "startedAt": "2026-11-11T21:06:56.691717844Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-api-2": { + "service": "api", + "instance": "752f50d7b664", + "startedAt": "2026-11-11T21:06:57.128454611Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-nginx-1": { + "service": "nginx", + "instance": "dd8840a93c5b", + "startedAt": "2026-11-11T21:07:09.789954207Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-postgres-1": { + "service": "postgres", + "instance": "14c8623492ba", + "startedAt": "2026-11-11T21:06:47.578821968Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-reconciler-1": { + "service": "reconciler", + "instance": "4058a1f65b0b", + "startedAt": "2026-11-11T21:07:09.322356788Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-redis-1": { + "service": "redis", + "instance": "b521d405535f", + "startedAt": "2026-11-11T21:06:47.601706994Z", + "status": "running", + "restartCount": 0 + }, + "mtusi2026lab4-s3-1": { + "service": "s3", + "instance": "ef6e12a25440", + "startedAt": "2026-11-11T21:06:47.595668528Z", + "status": "running", + "restartCount": 0 + } + }, + "output": "Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.\nPASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence." + } +} diff --git a/evidence/oversized-uploads.json b/evidence/oversized-uploads.json new file mode 100644 index 0000000..03abcaf --- /dev/null +++ b/evidence/oversized-uploads.json @@ -0,0 +1,86 @@ +{ + "status": "passed", + "attempts": [ + { + "mode": "content-length", + "status": 413, + "instance": "752f50d7b664" + }, + { + "mode": "chunked", + "status": 413, + "instance": "ce0434d224ba" + }, + { + "mode": "content-length", + "status": 413, + "instance": "752f50d7b664" + }, + { + "mode": "chunked", + "status": 413, + "instance": "ce0434d224ba" + }, + { + "mode": "content-length", + "status": 413, + "instance": "752f50d7b664" + }, + { + "mode": "chunked", + "status": 413, + "instance": "ce0434d224ba" + }, + { + "mode": "content-length", + "status": 413, + "instance": "752f50d7b664" + }, + { + "mode": "chunked", + "status": 413, + "instance": "ce0434d224ba" + }, + { + "mode": "content-length", + "status": 413, + "instance": "752f50d7b664" + }, + { + "mode": "chunked", + "status": 413, + "instance": "ce0434d224ba" + }, + { + "mode": "content-length", + "status": 413, + "instance": "752f50d7b664" + }, + { + "mode": "chunked", + "status": 413, + "instance": "ce0434d224ba" + }, + { + "mode": "content-length", + "status": 413, + "instance": "752f50d7b664" + }, + { + "mode": "chunked", + "status": 413, + "instance": "ce0434d224ba" + }, + { + "mode": "content-length", + "status": 413, + "instance": "752f50d7b664" + }, + { + "mode": "chunked", + "status": 413, + "instance": "ce0434d224ba" + } + ], + "fixturesRemoved": true +} diff --git a/evidence/sharp-memory-profile.json b/evidence/sharp-memory-profile.json new file mode 100644 index 0000000..cbd6a4f --- /dev/null +++ b/evidence/sharp-memory-profile.json @@ -0,0 +1,7270 @@ +{ + "status": "passed", + "cases": [ + { + "round": 1, + "sidePixels": 512, + "fileBytes": 787247, + "status": "passed", + "inputMode": "buffer", + "cacheMode": "default", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 117432320, + "heapTotal": 36409344, + "heapUsed": 16895608, + "external": 6511903, + "arrayBuffers": 3319095, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "uploads": [ + { + "before": { + "rss": 117432320, + "heapTotal": 36409344, + "heapUsed": 16896576, + "external": 6511903, + "arrayBuffers": 3319095, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 117432320, + "heapTotal": 36409344, + "heapUsed": 16910864, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 117956608, + "heapTotal": 36409344, + "heapUsed": 17009688, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 117956608, + "heapTotal": 36409344, + "heapUsed": 17013312, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 117956608, + "heapTotal": 36409344, + "heapUsed": 17010336, + "external": 7299982, + "arrayBuffers": 4107174 + }, + "samples": 6, + "maxSampleGapMs": 20.453977000000123, + "elapsedMs": 64.02576899999985 + }, + { + "before": { + "rss": 117956608, + "heapTotal": 36409344, + "heapUsed": 17015360, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 118743040, + "heapTotal": 36409344, + "heapUsed": 17028248, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 118743040, + "heapTotal": 36409344, + "heapUsed": 17070304, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 118743040, + "heapTotal": 36409344, + "heapUsed": 17072000, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 118743040, + "heapTotal": 36409344, + "heapUsed": 17070952, + "external": 8088061, + "arrayBuffers": 4895253 + }, + "samples": 6, + "maxSampleGapMs": 20.389164999999593, + "elapsedMs": 58.86785200000031 + }, + { + "before": { + "rss": 118743040, + "heapTotal": 36409344, + "heapUsed": 17073056, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 119529472, + "heapTotal": 36409344, + "heapUsed": 17098168, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 119529472, + "heapTotal": 36409344, + "heapUsed": 17138816, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 119529472, + "heapTotal": 36409344, + "heapUsed": 17140512, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 119529472, + "heapTotal": 36409344, + "heapUsed": 17139464, + "external": 8876140, + "arrayBuffers": 5683332 + }, + "samples": 6, + "maxSampleGapMs": 20.551222999999936, + "elapsedMs": 76.549802 + } + ], + "afterSeries": { + "rss": 119529472, + "heapTotal": 36409344, + "heapUsed": 17141280, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterIdle": { + "rss": 119529472, + "heapTotal": 36409344, + "heapUsed": 17163464, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterGc": { + "rss": 118198272, + "heapTotal": 36409344, + "heapUsed": 16602864, + "external": 3359379, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterCacheClear": { + "rss": 118198272, + "heapTotal": 36409344, + "heapUsed": 16602672, + "external": 3359379, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 1, + "sidePixels": 512, + "fileBytes": 787247, + "status": "passed", + "inputMode": "file", + "cacheMode": "default", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 115470336, + "heapTotal": 35885056, + "heapUsed": 16891464, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "uploads": [ + { + "before": { + "rss": 115470336, + "heapTotal": 35885056, + "heapUsed": 16892432, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 115470336, + "heapTotal": 35885056, + "heapUsed": 16898704, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 115601408, + "heapTotal": 35885056, + "heapUsed": 16996328, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 115601408, + "heapTotal": 35885056, + "heapUsed": 17019880, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 115601408, + "heapTotal": 35885056, + "heapUsed": 17016904, + "external": 3364703, + "arrayBuffers": 167819 + }, + "samples": 6, + "maxSampleGapMs": 20.411507999999912, + "elapsedMs": 70.21007299999997 + }, + { + "before": { + "rss": 115601408, + "heapTotal": 35885056, + "heapUsed": 17021928, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 115601408, + "heapTotal": 35885056, + "heapUsed": 17028072, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 115601408, + "heapTotal": 35885056, + "heapUsed": 17068848, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 115601408, + "heapTotal": 35885056, + "heapUsed": 17077528, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 115601408, + "heapTotal": 35885056, + "heapUsed": 17076480, + "external": 3364911, + "arrayBuffers": 168027 + }, + "samples": 7, + "maxSampleGapMs": 20.29000599999995, + "elapsedMs": 70.155168 + }, + { + "before": { + "rss": 115601408, + "heapTotal": 35885056, + "heapUsed": 17078584, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 115601408, + "heapTotal": 35885056, + "heapUsed": 17083448, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 116387840, + "heapTotal": 35885056, + "heapUsed": 17125376, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 116387840, + "heapTotal": 35885056, + "heapUsed": 17132768, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 116387840, + "heapTotal": 35885056, + "heapUsed": 17131720, + "external": 3365119, + "arrayBuffers": 168235 + }, + "samples": 6, + "maxSampleGapMs": 20.365166000000045, + "elapsedMs": 64.67234800000006 + } + ], + "afterSeries": { + "rss": 116387840, + "heapTotal": 35885056, + "heapUsed": 17133536, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterIdle": { + "rss": 116387840, + "heapTotal": 35885056, + "heapUsed": 17155424, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterGc": { + "rss": 116387840, + "heapTotal": 36147200, + "heapUsed": 16605752, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterCacheClear": { + "rss": 114257920, + "heapTotal": 36147200, + "heapUsed": 16605856, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 1, + "sidePixels": 512, + "fileBytes": 787247, + "status": "passed", + "inputMode": "buffer", + "cacheMode": "off", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 114855936, + "heapTotal": 36147200, + "heapUsed": 16869032, + "external": 6511903, + "arrayBuffers": 3319095, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "uploads": [ + { + "before": { + "rss": 114855936, + "heapTotal": 36147200, + "heapUsed": 16870000, + "external": 6511903, + "arrayBuffers": 3319095, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 115642368, + "heapTotal": 36147200, + "heapUsed": 16884288, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 116035584, + "heapTotal": 36147200, + "heapUsed": 16981832, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 116035584, + "heapTotal": 36147200, + "heapUsed": 16985456, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 116035584, + "heapTotal": 36147200, + "heapUsed": 16982480, + "external": 7299982, + "arrayBuffers": 4107174 + }, + "samples": 5, + "maxSampleGapMs": 20.349839000000202, + "elapsedMs": 44.24226999999996 + }, + { + "before": { + "rss": 116035584, + "heapTotal": 36147200, + "heapUsed": 16987504, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 116822016, + "heapTotal": 36147200, + "heapUsed": 17001672, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 116822016, + "heapTotal": 36147200, + "heapUsed": 17042448, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 116822016, + "heapTotal": 36147200, + "heapUsed": 17044144, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 116822016, + "heapTotal": 36147200, + "heapUsed": 17043096, + "external": 8088061, + "arrayBuffers": 4895253 + }, + "samples": 6, + "maxSampleGapMs": 20.3286149999999, + "elapsedMs": 55.627936999999974 + }, + { + "before": { + "rss": 116822016, + "heapTotal": 36147200, + "heapUsed": 17045200, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 117608448, + "heapTotal": 36147200, + "heapUsed": 17069032, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 117608448, + "heapTotal": 36147200, + "heapUsed": 17109680, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 117608448, + "heapTotal": 36147200, + "heapUsed": 17111376, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 117608448, + "heapTotal": 36147200, + "heapUsed": 17110328, + "external": 8876140, + "arrayBuffers": 5683332 + }, + "samples": 5, + "maxSampleGapMs": 20.309878000000026, + "elapsedMs": 51.33156199999985 + } + ], + "afterSeries": { + "rss": 117608448, + "heapTotal": 36147200, + "heapUsed": 17112144, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterIdle": { + "rss": 117608448, + "heapTotal": 36147200, + "heapUsed": 17130992, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterGc": { + "rss": 112320512, + "heapTotal": 36409344, + "heapUsed": 16602936, + "external": 3359379, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterCacheClear": { + "rss": 112320512, + "heapTotal": 36409344, + "heapUsed": 16603040, + "external": 3359379, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 1, + "sidePixels": 512, + "fileBytes": 787247, + "status": "passed", + "inputMode": "file", + "cacheMode": "off", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 115998720, + "heapTotal": 36671488, + "heapUsed": 16891624, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "uploads": [ + { + "before": { + "rss": 115998720, + "heapTotal": 36671488, + "heapUsed": 16892592, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 115998720, + "heapTotal": 36671488, + "heapUsed": 16898864, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 116129792, + "heapTotal": 36671488, + "heapUsed": 16995264, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 116260864, + "heapTotal": 36671488, + "heapUsed": 17018816, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 116260864, + "heapTotal": 36671488, + "heapUsed": 17015840, + "external": 3364703, + "arrayBuffers": 167819 + }, + "samples": 5, + "maxSampleGapMs": 19.375711000000138, + "elapsedMs": 58.13025800000014 + }, + { + "before": { + "rss": 116260864, + "heapTotal": 36671488, + "heapUsed": 17020864, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 116260864, + "heapTotal": 36671488, + "heapUsed": 17028288, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 116260864, + "heapTotal": 36671488, + "heapUsed": 17067784, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 116260864, + "heapTotal": 36671488, + "heapUsed": 17075240, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 116260864, + "heapTotal": 36671488, + "heapUsed": 17074192, + "external": 3364911, + "arrayBuffers": 168027 + }, + "samples": 6, + "maxSampleGapMs": 20.28296300000011, + "elapsedMs": 60.76405999999997 + }, + { + "before": { + "rss": 116260864, + "heapTotal": 36671488, + "heapUsed": 17076296, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 116260864, + "heapTotal": 36671488, + "heapUsed": 17083720, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 116391936, + "heapTotal": 36671488, + "heapUsed": 17123088, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 116391936, + "heapTotal": 36671488, + "heapUsed": 17130480, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 116391936, + "heapTotal": 36671488, + "heapUsed": 17129432, + "external": 3365119, + "arrayBuffers": 168235 + }, + "samples": 6, + "maxSampleGapMs": 19.34287900000004, + "elapsedMs": 60.703878999999915 + } + ], + "afterSeries": { + "rss": 116391936, + "heapTotal": 36671488, + "heapUsed": 17131248, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterIdle": { + "rss": 116391936, + "heapTotal": 36671488, + "heapUsed": 17152024, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterGc": { + "rss": 116391936, + "heapTotal": 36671488, + "heapUsed": 16605720, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterCacheClear": { + "rss": 116391936, + "heapTotal": 36671488, + "heapUsed": 16605824, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 2, + "sidePixels": 512, + "fileBytes": 787247, + "status": "passed", + "inputMode": "file", + "cacheMode": "off", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 111788032, + "heapTotal": 36671488, + "heapUsed": 16888128, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "uploads": [ + { + "before": { + "rss": 111788032, + "heapTotal": 36671488, + "heapUsed": 16889096, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 111788032, + "heapTotal": 36671488, + "heapUsed": 16896648, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 112050176, + "heapTotal": 36671488, + "heapUsed": 16991768, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17016544, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17013568, + "external": 3364703, + "arrayBuffers": 167819 + }, + "samples": 6, + "maxSampleGapMs": 19.166463999999905, + "elapsedMs": 54.47282199999995 + }, + { + "before": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17018592, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17023456, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17066736, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17075416, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17074368, + "external": 3364911, + "arrayBuffers": 168027 + }, + "samples": 8, + "maxSampleGapMs": 20.604051000000027, + "elapsedMs": 101.16221299999984 + }, + { + "before": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17076472, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17086456, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17125824, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17134440, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17133392, + "external": 3365119, + "arrayBuffers": 168235 + }, + "samples": 9, + "maxSampleGapMs": 20.47988200000009, + "elapsedMs": 121.50554800000009 + } + ], + "afterSeries": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17135208, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterIdle": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 17157096, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterGc": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 16605720, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterCacheClear": { + "rss": 112181248, + "heapTotal": 36671488, + "heapUsed": 16605824, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 2, + "sidePixels": 512, + "fileBytes": 787247, + "status": "passed", + "inputMode": "buffer", + "cacheMode": "off", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 116088832, + "heapTotal": 36933632, + "heapUsed": 16864016, + "external": 6511903, + "arrayBuffers": 3319095, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "uploads": [ + { + "before": { + "rss": 116088832, + "heapTotal": 36933632, + "heapUsed": 16864984, + "external": 6511903, + "arrayBuffers": 3319095, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 116088832, + "heapTotal": 36933632, + "heapUsed": 16880880, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 116088832, + "heapTotal": 36933632, + "heapUsed": 16982512, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 116088832, + "heapTotal": 36933632, + "heapUsed": 16986136, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 116088832, + "heapTotal": 36933632, + "heapUsed": 16983160, + "external": 7299982, + "arrayBuffers": 4107174 + }, + "samples": 6, + "maxSampleGapMs": 20.491504000000077, + "elapsedMs": 52.59909499999981 + }, + { + "before": { + "rss": 116088832, + "heapTotal": 36933632, + "heapUsed": 16988184, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 116875264, + "heapTotal": 36933632, + "heapUsed": 17002296, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 116875264, + "heapTotal": 36933632, + "heapUsed": 17041792, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 116875264, + "heapTotal": 36933632, + "heapUsed": 17043488, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 116875264, + "heapTotal": 36933632, + "heapUsed": 17042440, + "external": 8088061, + "arrayBuffers": 4895253 + }, + "samples": 5, + "maxSampleGapMs": 20.361214999999902, + "elapsedMs": 47.21421600000008 + }, + { + "before": { + "rss": 116875264, + "heapTotal": 36933632, + "heapUsed": 17044544, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 117661696, + "heapTotal": 36933632, + "heapUsed": 17069600, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 117661696, + "heapTotal": 36933632, + "heapUsed": 17110248, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 117661696, + "heapTotal": 36933632, + "heapUsed": 17111944, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 117661696, + "heapTotal": 36933632, + "heapUsed": 17110896, + "external": 8876140, + "arrayBuffers": 5683332 + }, + "samples": 6, + "maxSampleGapMs": 20.318577000000005, + "elapsedMs": 52.826126999999815 + } + ], + "afterSeries": { + "rss": 117661696, + "heapTotal": 36933632, + "heapUsed": 17112712, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterIdle": { + "rss": 117661696, + "heapTotal": 36933632, + "heapUsed": 17134600, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterGc": { + "rss": 116510720, + "heapTotal": 36671488, + "heapUsed": 16602992, + "external": 3359379, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterCacheClear": { + "rss": 116510720, + "heapTotal": 36671488, + "heapUsed": 16603096, + "external": 3359379, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 1, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 2, + "sidePixels": 512, + "fileBytes": 787247, + "status": "passed", + "inputMode": "file", + "cacheMode": "default", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 16886320, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "uploads": [ + { + "before": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 16887288, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 16894840, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 16991240, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17014792, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17011816, + "external": 3364703, + "arrayBuffers": 167819 + }, + "samples": 6, + "maxSampleGapMs": 19.419152000000167, + "elapsedMs": 54.59870799999999 + }, + { + "before": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17016840, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17022984, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17063760, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17071216, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17070168, + "external": 3364911, + "arrayBuffers": 168027 + }, + "samples": 6, + "maxSampleGapMs": 20.43160499999999, + "elapsedMs": 57.415580999999975 + }, + { + "before": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17072272, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17078416, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17117784, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17126400, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17125352, + "external": 3365119, + "arrayBuffers": 168235 + }, + "samples": 6, + "maxSampleGapMs": 19.811978999999837, + "elapsedMs": 53.4997699999999 + } + ], + "afterSeries": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17127168, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterIdle": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 17148752, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterGc": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 16605720, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterCacheClear": { + "rss": 116543488, + "heapTotal": 36409344, + "heapUsed": 16605824, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 2, + "sidePixels": 512, + "fileBytes": 787247, + "status": "passed", + "inputMode": "buffer", + "cacheMode": "default", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 116781056, + "heapTotal": 36409344, + "heapUsed": 16886056, + "external": 6511903, + "arrayBuffers": 3319095, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "uploads": [ + { + "before": { + "rss": 116781056, + "heapTotal": 36409344, + "heapUsed": 16887024, + "external": 6511903, + "arrayBuffers": 3319095, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 116912128, + "heapTotal": 36409344, + "heapUsed": 16902592, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 117174272, + "heapTotal": 36409344, + "heapUsed": 17001416, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 117174272, + "heapTotal": 36409344, + "heapUsed": 17005040, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 117174272, + "heapTotal": 36409344, + "heapUsed": 17002064, + "external": 7299982, + "arrayBuffers": 4107174 + }, + "samples": 7, + "maxSampleGapMs": 26.638627999999926, + "elapsedMs": 89.51235799999995 + }, + { + "before": { + "rss": 117174272, + "heapTotal": 36409344, + "heapUsed": 17007088, + "external": 7299982, + "arrayBuffers": 4107174, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 117960704, + "heapTotal": 36409344, + "heapUsed": 17021256, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 117960704, + "heapTotal": 36409344, + "heapUsed": 17062032, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 117960704, + "heapTotal": 36409344, + "heapUsed": 17063728, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 117960704, + "heapTotal": 36409344, + "heapUsed": 17062680, + "external": 8088061, + "arrayBuffers": 4895253 + }, + "samples": 6, + "maxSampleGapMs": 57.83807999999999, + "elapsedMs": 117.99017400000002 + }, + { + "before": { + "rss": 117960704, + "heapTotal": 36409344, + "heapUsed": 17064784, + "external": 8088061, + "arrayBuffers": 4895253, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 118747136, + "heapTotal": 36409344, + "heapUsed": 17097520, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 119664640, + "heapTotal": 36409344, + "heapUsed": 17138168, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 119664640, + "heapTotal": 36409344, + "heapUsed": 17139864, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 119664640, + "heapTotal": 36409344, + "heapUsed": 17138816, + "external": 8876140, + "arrayBuffers": 5683332 + }, + "samples": 12, + "maxSampleGapMs": 22.529362999999876, + "elapsedMs": 179.21670400000016 + } + ], + "afterSeries": { + "rss": 119664640, + "heapTotal": 36409344, + "heapUsed": 17140632, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterIdle": { + "rss": 119664640, + "heapTotal": 36409344, + "heapUsed": 17162872, + "external": 8876140, + "arrayBuffers": 5683332, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterGc": { + "rss": 118280192, + "heapTotal": 36409344, + "heapUsed": 16603032, + "external": 3359379, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterCacheClear": { + "rss": 118280192, + "heapTotal": 36409344, + "heapUsed": 16603136, + "external": 3359379, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 2, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 1, + "sidePixels": 1792, + "fileBytes": 9638577, + "status": "passed", + "inputMode": "buffer", + "cacheMode": "default", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 160841728, + "heapTotal": 21467136, + "heapUsed": 16590432, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "uploads": [ + { + "before": { + "rss": 160841728, + "heapTotal": 21467136, + "heapUsed": 16591400, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 160841728, + "heapTotal": 20418560, + "heapUsed": 16598064, + "external": 13001844, + "arrayBuffers": 9809036, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 170541056, + "heapTotal": 20418560, + "heapUsed": 16725016, + "external": 13001844, + "arrayBuffers": 9809036, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 170541056, + "heapTotal": 20418560, + "heapUsed": 16728640, + "external": 13001844, + "arrayBuffers": 9809036, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 170541056, + "heapTotal": 21467136, + "heapUsed": 16725664, + "external": 22640901, + "arrayBuffers": 19444557 + }, + "samples": 19, + "maxSampleGapMs": 21.026166999999987, + "elapsedMs": 325.1929449999998 + }, + { + "before": { + "rss": 170541056, + "heapTotal": 20418560, + "heapUsed": 16730688, + "external": 13001844, + "arrayBuffers": 9809036, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 170541056, + "heapTotal": 20418560, + "heapUsed": 16767224, + "external": 22644789, + "arrayBuffers": 19451981, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 170541056, + "heapTotal": 20418560, + "heapUsed": 14432216, + "external": 22644789, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 170541056, + "heapTotal": 20418560, + "heapUsed": 14433912, + "external": 22644789, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 170541056, + "heapTotal": 20418560, + "heapUsed": 16766296, + "external": 22644789, + "arrayBuffers": 19451981 + }, + "samples": 18, + "maxSampleGapMs": 20.68811100000039, + "elapsedMs": 295.32294 + }, + { + "before": { + "rss": 170541056, + "heapTotal": 20418560, + "heapUsed": 14434968, + "external": 22644789, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 170541056, + "heapTotal": 20418560, + "heapUsed": 14474592, + "external": 22640901, + "arrayBuffers": 19448093, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 170377216, + "heapTotal": 20172800, + "heapUsed": 14245912, + "external": 22635574, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 170377216, + "heapTotal": 20172800, + "heapUsed": 14247608, + "external": 22635574, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 170541056, + "heapTotal": 20418560, + "heapUsed": 14473664, + "external": 22644789, + "arrayBuffers": 19448093 + }, + "samples": 17, + "maxSampleGapMs": 20.91149299999961, + "elapsedMs": 296.47522200000003 + } + ], + "afterSeries": { + "rss": 170377216, + "heapTotal": 20172800, + "heapUsed": 14248376, + "external": 22635574, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterIdle": { + "rss": 170377216, + "heapTotal": 20172800, + "heapUsed": 14277928, + "external": 22635574, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterGc": { + "rss": 151224320, + "heapTotal": 20172800, + "heapUsed": 14170488, + "external": 3354052, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterCacheClear": { + "rss": 151224320, + "heapTotal": 20172800, + "heapUsed": 14170592, + "external": 3354052, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 21, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 1, + "sidePixels": 1792, + "fileBytes": 9638577, + "status": "passed", + "inputMode": "file", + "cacheMode": "default", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 137306112, + "heapTotal": 36147200, + "heapUsed": 16894688, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "uploads": [ + { + "before": { + "rss": 137306112, + "heapTotal": 36147200, + "heapUsed": 16895656, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 137306112, + "heapTotal": 36147200, + "heapUsed": 16913320, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 147267584, + "heapTotal": 36147200, + "heapUsed": 17021056, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 147267584, + "heapTotal": 36147200, + "heapUsed": 17042360, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 147267584, + "heapTotal": 36147200, + "heapUsed": 17039384, + "external": 3364703, + "arrayBuffers": 167819 + }, + "samples": 21, + "maxSampleGapMs": 20.482896000000437, + "elapsedMs": 359.39862900000026 + }, + { + "before": { + "rss": 147267584, + "heapTotal": 36147200, + "heapUsed": 17044408, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 147267584, + "heapTotal": 36147200, + "heapUsed": 17058232, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 156835840, + "heapTotal": 36147200, + "heapUsed": 17107968, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 156835840, + "heapTotal": 36147200, + "heapUsed": 17116704, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 156835840, + "heapTotal": 36147200, + "heapUsed": 17115656, + "external": 3364911, + "arrayBuffers": 168027 + }, + "samples": 20, + "maxSampleGapMs": 20.39788099999987, + "elapsedMs": 343.40909599999986 + }, + { + "before": { + "rss": 156835840, + "heapTotal": 36147200, + "heapUsed": 17117760, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 156835840, + "heapTotal": 36147200, + "heapUsed": 17144384, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 157097984, + "heapTotal": 36147200, + "heapUsed": 17199672, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 157097984, + "heapTotal": 36147200, + "heapUsed": 17208288, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 157097984, + "heapTotal": 36147200, + "heapUsed": 17207240, + "external": 3365119, + "arrayBuffers": 168235 + }, + "samples": 34, + "maxSampleGapMs": 43.178727999999865, + "elapsedMs": 664.6150150000003 + } + ], + "afterSeries": { + "rss": 157097984, + "heapTotal": 36147200, + "heapUsed": 17209056, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterIdle": { + "rss": 157097984, + "heapTotal": 36147200, + "heapUsed": 17230368, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterGc": { + "rss": 157097984, + "heapTotal": 21729280, + "heapUsed": 16605704, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterCacheClear": { + "rss": 157097984, + "heapTotal": 20680704, + "heapUsed": 16605808, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 21, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 1, + "sidePixels": 1792, + "fileBytes": 9638577, + "status": "passed", + "inputMode": "buffer", + "cacheMode": "off", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 154349568, + "heapTotal": 20680704, + "heapUsed": 16602984, + "external": 32283846, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "uploads": [ + { + "before": { + "rss": 154349568, + "heapTotal": 20680704, + "heapUsed": 16603952, + "external": 32283846, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 154349568, + "heapTotal": 21729280, + "heapUsed": 16580592, + "external": 13001428, + "arrayBuffers": 9808620, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 154349568, + "heapTotal": 21729280, + "heapUsed": 16704984, + "external": 13001428, + "arrayBuffers": 9808620, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 154349568, + "heapTotal": 21729280, + "heapUsed": 16708608, + "external": 13001428, + "arrayBuffers": 9808620, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 154349568, + "heapTotal": 21729280, + "heapUsed": 16705632, + "external": 32283846, + "arrayBuffers": 19444973 + }, + "samples": 16, + "maxSampleGapMs": 20.405996999999843, + "elapsedMs": 268.4679460000002 + }, + { + "before": { + "rss": 154349568, + "heapTotal": 21729280, + "heapUsed": 16710656, + "external": 13001428, + "arrayBuffers": 9808620, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 154349568, + "heapTotal": 21729280, + "heapUsed": 16745912, + "external": 22644373, + "arrayBuffers": 19451565, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 154349568, + "heapTotal": 20680704, + "heapUsed": 16704864, + "external": 22644373, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 154349568, + "heapTotal": 20680704, + "heapUsed": 16706560, + "external": 22644373, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 154349568, + "heapTotal": 21729280, + "heapUsed": 16744984, + "external": 22644373, + "arrayBuffers": 19451565 + }, + "samples": 17, + "maxSampleGapMs": 20.953494999999748, + "elapsedMs": 292.18896300000006 + }, + { + "before": { + "rss": 154349568, + "heapTotal": 20680704, + "heapUsed": 16707616, + "external": 22644373, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 154349568, + "heapTotal": 20680704, + "heapUsed": 16746128, + "external": 22640901, + "arrayBuffers": 19448093, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 155136000, + "heapTotal": 20680704, + "heapUsed": 14439896, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 155136000, + "heapTotal": 20680704, + "heapUsed": 14441592, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 155136000, + "heapTotal": 20680704, + "heapUsed": 16745200, + "external": 22644373, + "arrayBuffers": 19448093 + }, + "samples": 16, + "maxSampleGapMs": 20.50930900000003, + "elapsedMs": 254.38088000000016 + } + ], + "afterSeries": { + "rss": 155136000, + "heapTotal": 20680704, + "heapUsed": 14442360, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterIdle": { + "rss": 155267072, + "heapTotal": 20680704, + "heapUsed": 14464792, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterGc": { + "rss": 136118272, + "heapTotal": 20434944, + "heapUsed": 14167176, + "external": 3354052, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterCacheClear": { + "rss": 136118272, + "heapTotal": 20434944, + "heapUsed": 14167280, + "external": 3354052, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 1, + "sidePixels": 1792, + "fileBytes": 9638577, + "status": "passed", + "inputMode": "file", + "cacheMode": "off", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 134787072, + "heapTotal": 36671488, + "heapUsed": 16913040, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "uploads": [ + { + "before": { + "rss": 134787072, + "heapTotal": 36671488, + "heapUsed": 16914008, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 134787072, + "heapTotal": 36671488, + "heapUsed": 16932952, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 134918144, + "heapTotal": 36671488, + "heapUsed": 17039408, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 134918144, + "heapTotal": 36671488, + "heapUsed": 17059432, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 134918144, + "heapTotal": 36671488, + "heapUsed": 17056456, + "external": 3364703, + "arrayBuffers": 167819 + }, + "samples": 20, + "maxSampleGapMs": 20.484586000000036, + "elapsedMs": 351.86517000000003 + }, + { + "before": { + "rss": 134918144, + "heapTotal": 36671488, + "heapUsed": 17061480, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 134918144, + "heapTotal": 36671488, + "heapUsed": 17076584, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 134918144, + "heapTotal": 36671488, + "heapUsed": 17127600, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 134918144, + "heapTotal": 36671488, + "heapUsed": 17136336, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 134918144, + "heapTotal": 36671488, + "heapUsed": 17135288, + "external": 3364911, + "arrayBuffers": 168027 + }, + "samples": 22, + "maxSampleGapMs": 20.37137699999994, + "elapsedMs": 370.4239809999999 + }, + { + "before": { + "rss": 134918144, + "heapTotal": 36671488, + "heapUsed": 17137392, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 134918144, + "heapTotal": 36671488, + "heapUsed": 17155056, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 135704576, + "heapTotal": 36671488, + "heapUsed": 17211840, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 135704576, + "heapTotal": 36671488, + "heapUsed": 17219232, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 135704576, + "heapTotal": 36671488, + "heapUsed": 17218184, + "external": 3365119, + "arrayBuffers": 168235 + }, + "samples": 24, + "maxSampleGapMs": 21.83596400000033, + "elapsedMs": 426.3051479999999 + } + ], + "afterSeries": { + "rss": 135704576, + "heapTotal": 36671488, + "heapUsed": 17220000, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterIdle": { + "rss": 135704576, + "heapTotal": 36671488, + "heapUsed": 17241536, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterGc": { + "rss": 135704576, + "heapTotal": 22253568, + "heapUsed": 16605936, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterCacheClear": { + "rss": 135704576, + "heapTotal": 21204992, + "heapUsed": 16606040, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 2, + "sidePixels": 1792, + "fileBytes": 9638577, + "status": "passed", + "inputMode": "file", + "cacheMode": "off", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 135876608, + "heapTotal": 36409344, + "heapUsed": 16886464, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "uploads": [ + { + "before": { + "rss": 135876608, + "heapTotal": 36409344, + "heapUsed": 16887432, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 135876608, + "heapTotal": 36409344, + "heapUsed": 16905040, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17017840, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17037864, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17078136, + "external": 3364703, + "arrayBuffers": 167819 + }, + "samples": 24, + "maxSampleGapMs": 20.526491999999962, + "elapsedMs": 414.65895599999976 + }, + { + "before": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17039912, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17056296, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17108592, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17116048, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17115000, + "external": 3364911, + "arrayBuffers": 168027 + }, + "samples": 23, + "maxSampleGapMs": 20.428490999999667, + "elapsedMs": 413.89295200000015 + }, + { + "before": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17117104, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17132208, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17188296, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17195688, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17194640, + "external": 3365119, + "arrayBuffers": 168235 + }, + "samples": 20, + "maxSampleGapMs": 20.401304999999866, + "elapsedMs": 333.976142 + } + ], + "afterSeries": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17196456, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterIdle": { + "rss": 136007680, + "heapTotal": 36409344, + "heapUsed": 17218344, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterGc": { + "rss": 136007680, + "heapTotal": 21729280, + "heapUsed": 16605720, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterCacheClear": { + "rss": 136007680, + "heapTotal": 20680704, + "heapUsed": 16605824, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 2, + "sidePixels": 1792, + "fileBytes": 9638577, + "status": "passed", + "inputMode": "buffer", + "cacheMode": "off", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 155193344, + "heapTotal": 20680704, + "heapUsed": 16635800, + "external": 32283846, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "uploads": [ + { + "before": { + "rss": 155193344, + "heapTotal": 20680704, + "heapUsed": 16636768, + "external": 32283846, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 155193344, + "heapTotal": 21729280, + "heapUsed": 16574760, + "external": 13002052, + "arrayBuffers": 9809244, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 155586560, + "heapTotal": 21729280, + "heapUsed": 16699152, + "external": 13002052, + "arrayBuffers": 9809244, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 155586560, + "heapTotal": 21729280, + "heapUsed": 16702776, + "external": 13002052, + "arrayBuffers": 9809244, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 155586560, + "heapTotal": 21729280, + "heapUsed": 16699800, + "external": 32283846, + "arrayBuffers": 19444349 + }, + "samples": 17, + "maxSampleGapMs": 20.44141099999979, + "elapsedMs": 268.9384749999999 + }, + { + "before": { + "rss": 155586560, + "heapTotal": 21729280, + "heapUsed": 16704824, + "external": 13002052, + "arrayBuffers": 9809244, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 155586560, + "heapTotal": 21729280, + "heapUsed": 16738744, + "external": 22644997, + "arrayBuffers": 19452189, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 157814784, + "heapTotal": 20680704, + "heapUsed": 16671480, + "external": 22644997, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 157814784, + "heapTotal": 20680704, + "heapUsed": 16673176, + "external": 22644997, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 157814784, + "heapTotal": 21729280, + "heapUsed": 16756984, + "external": 22644997, + "arrayBuffers": 19452189 + }, + "samples": 16, + "maxSampleGapMs": 20.638538000000153, + "elapsedMs": 267.3532580000001 + }, + { + "before": { + "rss": 157814784, + "heapTotal": 20680704, + "heapUsed": 16674232, + "external": 22644997, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterInput": { + "rss": 157814784, + "heapTotal": 20680704, + "heapUsed": 16712744, + "external": 22640901, + "arrayBuffers": 19448093, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterValidation": { + "rss": 157945856, + "heapTotal": 20680704, + "heapUsed": 14435552, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterRelease": { + "rss": 157945856, + "heapTotal": 20680704, + "heapUsed": 14437248, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "peak": { + "rss": 157945856, + "heapTotal": 20680704, + "heapUsed": 16734728, + "external": 22644997, + "arrayBuffers": 19448093 + }, + "samples": 18, + "maxSampleGapMs": 20.489042000000154, + "elapsedMs": 303.8352799999998 + } + ], + "afterSeries": { + "rss": 157945856, + "heapTotal": 20680704, + "heapUsed": 14438016, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterIdle": { + "rss": 157945856, + "heapTotal": 20680704, + "heapUsed": 14462376, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterGc": { + "rss": 138399744, + "heapTotal": 20172800, + "heapUsed": 14166544, + "external": 3354052, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + }, + "afterCacheClear": { + "rss": 138399744, + "heapTotal": 20172800, + "heapUsed": 14166632, + "external": 3354052, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 12, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 2, + "sidePixels": 1792, + "fileBytes": 9638577, + "status": "passed", + "inputMode": "file", + "cacheMode": "default", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 136192000, + "heapTotal": 35885056, + "heapUsed": 16920960, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "uploads": [ + { + "before": { + "rss": 136192000, + "heapTotal": 35885056, + "heapUsed": 16921928, + "external": 3364495, + "arrayBuffers": 167611, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 136192000, + "heapTotal": 35885056, + "heapUsed": 16940816, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 136323072, + "heapTotal": 35885056, + "heapUsed": 17048552, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 136323072, + "heapTotal": 35885056, + "heapUsed": 17068576, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 136323072, + "heapTotal": 35885056, + "heapUsed": 17065600, + "external": 3364703, + "arrayBuffers": 167819 + }, + "samples": 21, + "maxSampleGapMs": 21.332570999999916, + "elapsedMs": 358.60998199999995 + }, + { + "before": { + "rss": 136323072, + "heapTotal": 35885056, + "heapUsed": 17070624, + "external": 3364703, + "arrayBuffers": 167819, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 136323072, + "heapTotal": 35885056, + "heapUsed": 17097248, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 136585216, + "heapTotal": 35885056, + "heapUsed": 17155944, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 136585216, + "heapTotal": 35885056, + "heapUsed": 17163400, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 136585216, + "heapTotal": 35885056, + "heapUsed": 17162352, + "external": 3364911, + "arrayBuffers": 168027 + }, + "samples": 36, + "maxSampleGapMs": 23.232950000000073, + "elapsedMs": 677.0735549999999 + }, + { + "before": { + "rss": 136585216, + "heapTotal": 35885056, + "heapUsed": 17164456, + "external": 3364911, + "arrayBuffers": 168027, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 136585216, + "heapTotal": 35885056, + "heapUsed": 17188520, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 136585216, + "heapTotal": 35885056, + "heapUsed": 17252208, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 136585216, + "heapTotal": 35885056, + "heapUsed": 17260880, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 136585216, + "heapTotal": 35885056, + "heapUsed": 17259832, + "external": 3365119, + "arrayBuffers": 168235 + }, + "samples": 39, + "maxSampleGapMs": 24.67576999999983, + "elapsedMs": 748.0958489999998 + } + ], + "afterSeries": { + "rss": 136585216, + "heapTotal": 35885056, + "heapUsed": 17261648, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterIdle": { + "rss": 136585216, + "heapTotal": 35885056, + "heapUsed": 17283304, + "external": 3365119, + "arrayBuffers": 168235, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterGc": { + "rss": 136585216, + "heapTotal": 21467136, + "heapUsed": 16606344, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterCacheClear": { + "rss": 136585216, + "heapTotal": 20418560, + "heapUsed": 16606448, + "external": 3363455, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 21, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + }, + { + "round": 2, + "sidePixels": 1792, + "fileBytes": 9638577, + "status": "passed", + "inputMode": "buffer", + "cacheMode": "default", + "intervalMs": 20, + "nodeVersion": "v24.20.0", + "sharpVersions": { + "aom": "3.15.1", + "archive": "3.8.9", + "cairo": "1.18.6", + "cgif": "0.5.4", + "exif": "0.6.26", + "expat": "2.8.5", + "ffi": "3.8.0", + "fontconfig": "2.18.3", + "freetype": "2.14.3", + "fribidi": "1.0.17", + "glib": "2.90.0", + "harfbuzz": "14.5.0", + "heif": "1.23.5", + "highway": "1.4.0", + "imagequant": "2.4.1", + "lcms": "2.19.1", + "mozjpeg": "0826579", + "pango": "1.58.2", + "pixman": "0.46.4", + "png": "1.6.58", + "proxy-libintl": "0.5", + "rsvg": "2.63.2", + "tiff": "4.7.2", + "uhdr": "2.0.2", + "vips": "8.18.7", + "webp": "1.6.0", + "xml2": "2.15.4", + "zlib-ng": "2.3.3", + "sharp": "0.35.5" + }, + "warmups": 4, + "baseline": { + "rss": 158162944, + "heapTotal": 20680704, + "heapUsed": 16573016, + "external": 32283846, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "uploads": [ + { + "before": { + "rss": 158162944, + "heapTotal": 20680704, + "heapUsed": 16573984, + "external": 32283846, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 158162944, + "heapTotal": 21991424, + "heapUsed": 16561872, + "external": 13001220, + "arrayBuffers": 9808412, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 158162944, + "heapTotal": 21991424, + "heapUsed": 16686248, + "external": 13001220, + "arrayBuffers": 9808412, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 158162944, + "heapTotal": 21991424, + "heapUsed": 16689872, + "external": 13001220, + "arrayBuffers": 9808412, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 158162944, + "heapTotal": 21991424, + "heapUsed": 16686896, + "external": 32283846, + "arrayBuffers": 19445181 + }, + "samples": 17, + "maxSampleGapMs": 20.471786000000066, + "elapsedMs": 300.0361240000002 + }, + { + "before": { + "rss": 158162944, + "heapTotal": 21991424, + "heapUsed": 16691920, + "external": 13001220, + "arrayBuffers": 9808412, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 158162944, + "heapTotal": 21991424, + "heapUsed": 16729680, + "external": 22644165, + "arrayBuffers": 19451357, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 166289408, + "heapTotal": 20942848, + "heapUsed": 16665568, + "external": 22644165, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 166289408, + "heapTotal": 20942848, + "heapUsed": 16667264, + "external": 22644165, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 166289408, + "heapTotal": 21991424, + "heapUsed": 16773592, + "external": 22644165, + "arrayBuffers": 19451357 + }, + "samples": 27, + "maxSampleGapMs": 20.8274550000001, + "elapsedMs": 475.77513599999975 + }, + { + "before": { + "rss": 166289408, + "heapTotal": 20942848, + "heapUsed": 16668320, + "external": 22644165, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterInput": { + "rss": 166289408, + "heapTotal": 20942848, + "heapUsed": 16706832, + "external": 22640901, + "arrayBuffers": 19448093, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterValidation": { + "rss": 156192768, + "heapTotal": 20942848, + "heapUsed": 14453888, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterRelease": { + "rss": 156192768, + "heapTotal": 20942848, + "heapUsed": 14455584, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "peak": { + "rss": 175857664, + "heapTotal": 20942848, + "heapUsed": 16705904, + "external": 22644165, + "arrayBuffers": 19448093 + }, + "samples": 22, + "maxSampleGapMs": 21.235834999999952, + "elapsedMs": 373.2084319999999 + } + ], + "afterSeries": { + "rss": 156192768, + "heapTotal": 20942848, + "heapUsed": 14456352, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterIdle": { + "rss": 156192768, + "heapTotal": 20942848, + "heapUsed": 14482376, + "external": 22640901, + "arrayBuffers": 9805148, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterGc": { + "rss": 136888320, + "heapTotal": 20697088, + "heapUsed": 14166496, + "external": 3354052, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 9, + "high": 21, + "max": 50 + }, + "files": { + "current": 0, + "max": 20 + }, + "items": { + "current": 100, + "max": 100 + } + } + }, + "afterCacheClear": { + "rss": 116420608, + "heapTotal": 20697088, + "heapUsed": 14166584, + "external": 3354052, + "arrayBuffers": 166571, + "sharp": { + "memory": { + "current": 0, + "high": 21, + "max": 0 + }, + "files": { + "current": 0, + "max": 0 + }, + "items": { + "current": 0, + "max": 0 + } + } + } + } + ], + "method": "Fresh Node process per case, real AttachmentService.validateImage; 4 warm-ups, 3 measured operations; unique file paths; post-series GC and cache clearing are diagnostics only. RSS is not comparable to a full API process." +} diff --git a/evidence/upload-interruption.json b/evidence/upload-interruption.json new file mode 100644 index 0000000..648f708 --- /dev/null +++ b/evidence/upload-interruption.json @@ -0,0 +1,46 @@ +{ + "event": "upload_interruption_summary", + "status": "passed", + "targets": [ + { + "target": "ce0434d224ba", + "contentLengthAbort": "passed", + "chunkedAbort": "passed", + "deadline": { + "status": 408, + "elapsedMs": 15008, + "instance": "ce0434d224ba", + "connection": "close" + }, + "normalUploadAfterAbort": "passed", + "databaseAndS3Match": true + }, + { + "target": "752f50d7b664", + "contentLengthAbort": "passed", + "chunkedAbort": "passed", + "deadline": { + "status": 408, + "elapsedMs": 15005, + "instance": "752f50d7b664", + "connection": "close" + }, + "normalUploadAfterAbort": "passed", + "databaseAndS3Match": true + }, + { + "target": "nginx", + "contentLengthAbort": "passed", + "chunkedAbort": "passed", + "deadline": { + "status": 408, + "elapsedMs": 15006, + "instance": "ce0434d224ba", + "connection": "keep-alive" + }, + "normalUploadAfterAbort": "passed", + "databaseAndS3Match": true + } + ], + "fixturesRemoved": true +} diff --git a/infra/nginx.conf b/infra/nginx.conf new file mode 100644 index 0000000..69e0906 --- /dev/null +++ b/infra/nginx.conf @@ -0,0 +1,56 @@ +events {} + +http { + # Capabilities are query strings; never write signed URLs to access logs. + server { + listen 9000; + access_log off; + error_log /dev/null; + client_max_body_size 10m; + client_body_timeout 15s; + location ~ "^/messenger-attachments/staging/[0-9a-f-]{36}/[0-9a-f-]{36}$" { + add_header Access-Control-Allow-Origin '*' always; + add_header Access-Control-Allow-Methods 'PUT, OPTIONS' always; + add_header Access-Control-Allow-Headers 'Content-Type, Content-Length, If-None-Match, x-amz-checksum-sha256' always; + add_header Access-Control-Expose-Headers 'ETag, x-amz-checksum-sha256' always; + if ($request_method = OPTIONS) { return 204; } + if ($request_method != PUT) { return 405; } + proxy_pass http://s3:9000; + proxy_request_buffering off; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header Connection ''; + proxy_hide_header Access-Control-Allow-Origin; + proxy_hide_header Access-Control-Allow-Headers; + proxy_hide_header Access-Control-Allow-Methods; + proxy_connect_timeout 2s; + proxy_read_timeout 30s; + } + location / { return 403; } + } + + upstream api { + least_conn; + zone api 64k; + include /etc/nginx/ready-upstreams.conf; + } + + server { + listen 80; + client_max_body_size 11m; + + location / { + proxy_pass http://api; + proxy_request_buffering off; + proxy_http_version 1.1; + # Preserve early 4xx responses while the client is still sending a body. + # The default Connection: close can make Node close before Nginx reads 413. + proxy_set_header Connection ''; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_connect_timeout 2s; + proxy_read_timeout 30s; + } + } +} diff --git a/infra/rustfs/admin.mjs b/infra/rustfs/admin.mjs new file mode 100644 index 0000000..66a5aa1 --- /dev/null +++ b/infra/rustfs/admin.mjs @@ -0,0 +1,98 @@ +import { createHash, createHmac } from 'node:crypto'; + +const hash = (value) => createHash('sha256').update(value).digest('hex'); +const hmac = (key, value) => createHmac('sha256', key).update(value).digest(); +const encode = (value) => + encodeURIComponent(value).replace( + /[!'()*]/g, + (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`, + ); + +/** Sign RustFS native JSON admin requests; credentials and response bodies are never logged. */ +export function signAdminRequest({ + endpoint, + credentials, + region = 'us-east-1', + method, + operation, + query = {}, + body, + now = new Date(), +}) { + const url = new URL(`/rustfs/admin/v3/${operation}`, endpoint); + const canonicalQuery = Object.entries(query) + .map(([key, value]) => [encode(key), encode(String(value))]) + .sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0)) + .map(([key, value]) => `${key}=${value}`) + .join('&'); + url.search = canonicalQuery; + const payload = body === undefined ? '' : JSON.stringify(body); + const date = now.toISOString().replace(/[:-]|\.\d{3}/g, ''); + const headers = { + 'content-type': 'application/json', + host: url.host, + 'x-amz-content-sha256': hash(payload), + 'x-amz-date': date, + }; + const names = Object.keys(headers).sort(); + const canonicalHeaders = names + .map((name) => `${name}:${headers[name]}\n`) + .join(''); + const canonical = [ + method, + url.pathname, + canonicalQuery, + canonicalHeaders, + names.join(';'), + hash(payload), + ].join('\n'); + const scope = `${date.slice(0, 8)}/${region}/s3/aws4_request`; + const stringToSign = ['AWS4-HMAC-SHA256', date, scope, hash(canonical)].join( + '\n', + ); + const signingKey = hmac( + hmac( + hmac( + hmac(`AWS4${credentials.secretAccessKey}`, date.slice(0, 8)), + region, + ), + 's3', + ), + 'aws4_request', + ); + const signature = createHmac('sha256', signingKey) + .update(stringToSign) + .digest('hex'); + headers.authorization = `AWS4-HMAC-SHA256 Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${names.join(';')}, Signature=${signature}`; + return { + url, + method, + headers, + body: body === undefined ? undefined : payload, + }; +} + +export async function adminRequest(config, method, operation, query, body) { + const request = signAdminRequest({ + ...config, + method, + operation, + query, + body, + }); + const response = await fetch(request.url, { + ...request, + signal: AbortSignal.timeout(30000), + }); + const text = await response.text(); + if (!response.ok) { + const code = + text.match(/([A-Za-z0-9_]+)<\/Code>/)?.[1] ?? 'AdminRequestFailed'; + const error = new Error( + `RustFS admin ${operation}: HTTP ${response.status} ${code}`, + ); + error.status = response.status; + throw error; + } + return text ? JSON.parse(text) : null; +} diff --git a/infra/rustfs/bootstrap.mjs b/infra/rustfs/bootstrap.mjs new file mode 100644 index 0000000..258c4ae --- /dev/null +++ b/infra/rustfs/bootstrap.mjs @@ -0,0 +1,62 @@ +import { + S3Client, + CreateBucketCommand, + HeadBucketCommand, +} from '@aws-sdk/client-s3'; +import { adminRequest } from './admin.mjs'; +import { bootstrapSettings, storagePolicies } from './policies.mjs'; + +const settings = bootstrapSettings(); +const client = new S3Client({ + endpoint: settings.endpoint, + region: settings.region, + forcePathStyle: true, + maxAttempts: 1, + credentials: settings.credentials, +}); +const Bucket = settings.bucket; +try { + try { + await client.send(new HeadBucketCommand({ Bucket }), { + abortSignal: AbortSignal.timeout(30000), + }); + } catch (error) { + if (error.$metadata?.httpStatusCode !== 404) throw error; + try { + await client.send(new CreateBucketCommand({ Bucket }), { + abortSignal: AbortSignal.timeout(30000), + }); + } catch (error) { + if (error.name !== 'BucketAlreadyOwnedByYou') throw error; + } + } + const policies = storagePolicies(Bucket); + for (const role of ['api', 'reconciler']) { + const identity = settings[role]; + const policyName = `${Bucket}-${role}`; + await adminRequest( + settings, + 'PUT', + 'add-canned-policy', + { name: policyName }, + policies[role], + ); + await adminRequest( + settings, + 'PUT', + 'add-user', + { accessKey: identity.accessKeyId }, + { secretKey: identity.secretAccessKey, status: 'enabled' }, + ); + // Replace the direct binding instead of accumulating old policies across bootstraps. + await adminRequest(settings, 'PUT', 'set-user-or-group-policy', { + policyName, + userOrGroup: identity.accessKeyId, + isGroup: false, + }); + console.log(`Restricted S3 identity provisioned: ${role}`); + } + console.log('Private attachments bucket and restricted identities are ready'); +} finally { + client.destroy(); +} diff --git a/infra/rustfs/policies.mjs b/infra/rustfs/policies.mjs new file mode 100644 index 0000000..44c284f --- /dev/null +++ b/infra/rustfs/policies.mjs @@ -0,0 +1,87 @@ +export function storagePolicies(bucket) { + const bucketArn = `arn:aws:s3:::${bucket}`; + const objectsArn = `${bucketArn}/originals/*`; + const base = [ + { + Effect: 'Allow', + Action: ['s3:GetBucketLocation'], + Resource: [bucketArn], + }, + ]; + return { + api: { + Version: '2012-10-17', + Statement: [ + ...base, + { + Effect: 'Allow', + Action: ['s3:GetObject', 's3:PutObject', 's3:DeleteObject'], + Resource: [objectsArn, `${bucketArn}/staging/*`], + }, + ], + }, + reconciler: { + Version: '2012-10-17', + Statement: [ + ...base, + { + Effect: 'Allow', + Action: ['s3:ListBucket'], + Resource: [bucketArn], + Condition: { + StringLike: { 's3:prefix': ['originals/*', 'staging/*'] }, + }, + }, + { + Effect: 'Allow', + Action: ['s3:GetObject', 's3:DeleteObject'], + Resource: [objectsArn, `${bucketArn}/staging/*`], + }, + ], + }, + }; +} + +export function bootstrapSettings(env = process.env) { + const settings = { + endpoint: env.S3_ENDPOINT ?? 'http://s3:9000', + region: env.S3_REGION ?? 'us-east-1', + bucket: env.S3_BUCKET ?? 'messenger-attachments', + credentials: { + accessKeyId: env.S3_ACCESS_KEY_ID, + secretAccessKey: env.S3_SECRET_ACCESS_KEY, + }, + api: { + accessKeyId: env.S3_API_ACCESS_KEY_ID ?? 'LABAPI', + secretAccessKey: + env.S3_API_SECRET_ACCESS_KEY ?? 'local_api_storage_password', + }, + reconciler: { + accessKeyId: env.S3_RECONCILER_ACCESS_KEY_ID ?? 'LABRECONCILER', + secretAccessKey: + env.S3_RECONCILER_SECRET_ACCESS_KEY ?? + 'local_reconciler_storage_password', + }, + }; + const identities = [settings.credentials, settings.api, settings.reconciler]; + for (const identity of identities) { + if ( + !identity.accessKeyId || + !identity.secretAccessKey || + identity.secretAccessKey.length < 8 + ) { + throw new Error( + 'All S3 identities require an access key and a secret of at least 8 characters', + ); + } + } + if ( + new Set(identities.map((identity) => identity.accessKeyId)).size !== 3 || + new Set(identities.map((identity) => identity.secretAccessKey)).size !== 3 + ) { + throw new Error( + 'Root, API and reconciler identities must have distinct access and secret keys', + ); + } + return settings; +} diff --git a/infra/start-nginx.sh b/infra/start-nginx.sh new file mode 100644 index 0000000..d846ac6 --- /dev/null +++ b/infra/start-nginx.sh @@ -0,0 +1,71 @@ +#!/bin/sh +set -eu + +upstreams=/etc/nginx/ready-upstreams.conf +printf 'server 127.0.0.1:9 down;\n' > "$upstreams" + +check_ready() { + state=/tmp/nginx-readiness.state + probes=/tmp/nginx-readiness-probes + mkdir -p "$probes" + : > "$state" + sleep 2 + while :; do + next="${upstreams}.next" + previous="${upstreams}.previous" + : > "${state}.next" + printf 'server 127.0.0.1:9 down;\n' > "$next" + + addresses=$(getent ahostsv4 api | awk '{print $1}' | sort -u) + for address in $addresses; do + ( + if wget -q -T 1 -t 1 -O /dev/null "http://${address}:8080/health/ready"; then + printf '1\n' + else + printf '0\n' + fi > "$probes/$address" + ) & + done + wait + + for address in $addresses; do + record=$(awk -v address="$address" '$1 == address {print $2, $3, $4}' "$state") + set -- ${record:-0 0 0} + ready=$1 + successes=$2 + failures=$3 + if [ "$(cat "$probes/$address")" = 1 ]; then + failures=0 + if [ "$successes" -lt 2 ]; then successes=$((successes + 1)); fi + if [ "$successes" -ge 2 ]; then ready=1; fi + else + successes=0 + if [ "$failures" -lt 2 ]; then failures=$((failures + 1)); fi + if [ "$failures" -ge 2 ]; then ready=0; fi + fi + printf '%s %s %s %s\n' "$address" "$ready" "$successes" "$failures" >> "${state}.next" + if [ "$ready" -eq 1 ]; then + printf 'server %s:8080 max_fails=2 fail_timeout=2s;\n' "$address" >> "$next" + fi + done + mv "${state}.next" "$state" + + if cmp -s "$next" "$upstreams"; then + rm -f "$next" + else + cp "$upstreams" "$previous" + mv "$next" "$upstreams" + if nginx -t -q && nginx -s reload; then + rm -f "$previous" + else + mv "$previous" "$upstreams" + printf 'Could not reload Nginx readiness upstreams\n' >&2 + fi + fi + + sleep 2 + done +} + +check_ready & +exec nginx -g 'daemon off;' diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 0000000..82bea3d --- /dev/null +++ b/jest.config.ts @@ -0,0 +1,31 @@ +import type { Config } from 'jest'; +import { pathsToModuleNameMapper } from 'ts-jest'; +import ts from 'typescript'; + +const { config: tsconfig } = ts.readConfigFile( + './tsconfig.json', + ts.sys.readFile, +); +const paths = tsconfig?.compilerOptions?.paths ?? {}; + +const config: Config = { + moduleFileExtensions: ['js', 'json', 'ts'], + rootDir: '.', + testRegex: '.*\\.spec\\.ts$', + transform: { + '^.+\\.(t|j)s$': 'ts-jest', + }, + moduleNameMapper: { + ...pathsToModuleNameMapper(paths, { prefix: '/' }), + '^(\\.{1,2}/.*)\\.js$': '$1', + }, + collectCoverageFrom: [ + 'src/**/*.(t|j)s', + 'libs/**/*.(t|j)s', + 'apps/**/*.(t|j)s', + ], + coverageDirectory: './coverage', + testEnvironment: 'node', +}; + +export default config; diff --git a/nest-cli.json b/nest-cli.json new file mode 100644 index 0000000..f9aa683 --- /dev/null +++ b/nest-cli.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://json.schemastore.org/nest-cli", + "collection": "@nestjs/schematics", + "sourceRoot": "src", + "compilerOptions": { + "deleteOutDir": true + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..b62c053 --- /dev/null +++ b/package.json @@ -0,0 +1,73 @@ +{ + "name": "mtusi2026lab4", + "version": "0.0.1", + "description": "", + "author": "", + "private": true, + "license": "UNLICENSED", + "scripts": { + "db:generate": "prisma generate", + "db:validate": "prisma validate", + "db:migrate": "prisma migrate dev", + "db:deploy": "prisma migrate deploy", + "prebuild": "pnpm db:generate", + "prestart:dev": "pnpm db:generate", + "prestart": "pnpm db:generate", + "pretest": "pnpm db:generate", + "build": "nest build", + "format": "prettier --write \"src/**/*.ts\"", + "start": "nest start", + "start:dev": "nest start --watch", + "start:debug": "nest start --debug --watch", + "start:prod": "node dist/main", + "lint": "oxlint --type-aware src/", + "test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js", + "test:watch": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --watch", + "test:cov": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --coverage", + "test:debug": "node --inspect-brk --experimental-vm-modules -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand" + }, + "dependencies": { + "@aws-sdk/client-s3": "^3.1164.0", + "@aws-sdk/s3-request-presigner": "^3.1165.0", + "@fastify/static": "^10.1.4", + "@nestjs/common": "^12.0.1", + "@nestjs/core": "^12.0.1", + "@nestjs/platform-fastify": "12.0.1", + "@nestjs/swagger": "^12.0.1", + "@prisma/adapter-pg": "^7.10.0", + "@prisma/client": "^7.10.0", + "@scalar/nestjs-api-reference": "^1.2.19", + "dotenv": "^18.0.7", + "fastify": "5.12.1", + "ioredis": "^6.0.0", + "nestjs-pino": "^5.2.0", + "pg": "^8.23.1", + "pino-http": "^11.0.0", + "reflect-metadata": "^0.2.2", + "rxjs": "^7.8.1", + "sharp": "^0.35.5" + }, + "devDependencies": { + "@nestjs/cli": "^12.0.0", + "@nestjs/mau": "^0.2.6", + "@nestjs/schematics": "^12.0.0", + "@nestjs/testing": "^12.0.1", + "@types/jest": "^30.0.0", + "@types/node": "^24.0.0", + "@types/pg": "^8.23.1", + "@types/supertest": "^7.0.0", + "jest": "^30.0.0", + "oxlint": "^1.58.0", + "oxlint-tsgolint": "^7.0.2001", + "pino-pretty": "^13.1.3", + "prettier": "^3.4.2", + "prisma": "7.10.0", + "source-map-support": "^0.5.21", + "supertest": "^7.0.0", + "ts-jest": "^29.4.0", + "ts-loader": "^9.5.2", + "ts-node": "^10.9.2", + "tsconfig-paths": "^4.2.0", + "typescript": "^6.0.2" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..9160c5b --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,8367 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@aws-sdk/client-s3': + specifier: ^3.1164.0 + version: 3.1164.0 + '@aws-sdk/s3-request-presigner': + specifier: ^3.1165.0 + version: 3.1165.0 + '@fastify/static': + specifier: ^10.1.4 + version: 10.1.4 + '@nestjs/common': + specifier: ^12.0.1 + version: 12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': + specifier: ^12.0.1 + version: 12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.0.4)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/platform-fastify': + specifier: 12.0.1 + version: 12.0.1(@fastify/static@10.1.4)(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4) + '@nestjs/swagger': + specifier: ^12.0.1 + version: 12.0.1(@fastify/static@10.1.4)(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4)(reflect-metadata@0.2.2) + '@prisma/adapter-pg': + specifier: ^7.10.0 + version: 7.10.0 + '@prisma/client': + specifier: ^7.10.0 + version: 7.10.0(prisma@7.10.0(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(typescript@6.0.3))(typescript@6.0.3) + '@scalar/nestjs-api-reference': + specifier: ^1.2.19 + version: 1.2.19 + dotenv: + specifier: ^18.0.7 + version: 18.0.7 + fastify: + specifier: 5.12.1 + version: 5.12.1 + ioredis: + specifier: ^6.0.0 + version: 6.0.0 + nestjs-pino: + specifier: ^5.2.0 + version: 5.2.0(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4)(pino-http@11.0.0)(pino@10.3.1)(rxjs@7.8.2) + pg: + specifier: ^8.23.1 + version: 8.23.1 + pino-http: + specifier: ^11.0.0 + version: 11.0.0 + reflect-metadata: + specifier: ^0.2.2 + version: 0.2.2 + rxjs: + specifier: ^7.8.1 + version: 7.8.2 + sharp: + specifier: ^0.35.5 + version: 0.35.5(@types/node@24.13.6) + devDependencies: + '@nestjs/cli': + specifier: ^12.0.0 + version: 12.0.3(@types/node@24.13.6)(prettier@3.9.8)(ts-loader@9.6.2(typescript@6.0.3)(webpack@5.111.1(sharp@0.35.5(@types/node@24.13.6))))(webpack@5.111.1(sharp@0.35.5(@types/node@24.13.6))) + '@nestjs/mau': + specifier: ^0.2.6 + version: 0.2.8 + '@nestjs/schematics': + specifier: ^12.0.0 + version: 12.0.4(chokidar@5.0.0)(prettier@3.9.8)(typescript@6.0.3) + '@nestjs/testing': + specifier: ^12.0.1 + version: 12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4)(@nestjs/platform-express@12.0.4) + '@types/jest': + specifier: ^30.0.0 + version: 30.0.0 + '@types/node': + specifier: ^24.0.0 + version: 24.13.6 + '@types/pg': + specifier: ^8.23.1 + version: 8.23.1 + '@types/supertest': + specifier: ^7.0.0 + version: 7.2.1 + jest: + specifier: ^30.0.0 + version: 30.5.2(@types/node@24.13.6)(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)) + oxlint: + specifier: ^1.58.0 + version: 1.83.0(oxlint-tsgolint@7.0.2002) + oxlint-tsgolint: + specifier: ^7.0.2001 + version: 7.0.2002 + pino-pretty: + specifier: ^13.1.3 + version: 13.1.3 + prettier: + specifier: ^3.4.2 + version: 3.9.8 + prisma: + specifier: 7.10.0 + version: 7.10.0(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(typescript@6.0.3) + source-map-support: + specifier: ^0.5.21 + version: 0.5.21 + supertest: + specifier: ^7.0.0 + version: 7.2.2 + ts-jest: + specifier: ^29.4.0 + version: 29.4.12(@babel/core@7.29.7)(@jest/transform@30.5.2)(@jest/types@30.5.1)(babel-jest@30.5.2(@babel/core@7.29.7))(jest-util@30.5.1)(jest@30.5.2(@types/node@24.13.6)(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)))(typescript@6.0.3) + ts-loader: + specifier: ^9.5.2 + version: 9.6.2(typescript@6.0.3)(webpack@5.111.1(sharp@0.35.5(@types/node@24.13.6))) + ts-node: + specifier: ^10.9.2 + version: 10.9.2(@types/node@24.13.6)(typescript@6.0.3) + tsconfig-paths: + specifier: ^4.2.0 + version: 4.2.0 + typescript: + specifier: ^6.0.2 + version: 6.0.3 + +packages: + + '@angular-devkit/core@22.1.8': + resolution: {integrity: sha512-34lsgg2FwMVBX7nR/ZqzRUcdvdYPvSB8XAEr2GudXAyZwLI9ehzfQlagAWR/gEb8p4uCFZW0r7uU0toxydq4Rw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.1.8': + resolution: {integrity: sha512-SsGG8ompVzprmYE9sHi2L7DYZ+i1sD+YDfun6Rg2vkTCusejtD4SSGVxwuR6++dT22ZpN16OqUTmii/0bhE4xA==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.1.8': + resolution: {integrity: sha512-Pv3cPa/44kvEwYcqwx4Ns5dhIDmcFNSHhbpheqiEG1Z/u4e2t4zHKDtE3eHZB+8o+IcC7xJj+d+AqGR44RoZDA==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@aws-sdk/checksums@3.1002.3': + resolution: {integrity: sha512-lBwLpni4uWNIH0UxgP8hR3XiGSunn9C7DrhzQzte/uc4chFpghMpf4GkiBrvvygs3NTp1VI5QdD9ZbRA0hM0OQ==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/client-s3@3.1164.0': + resolution: {integrity: sha512-RCzGDlPFT0vH+rTIW+ukSsdeTC4RuFPDDvTracNW40CES6twgv7OXBXR1oVkhO3u7qY4UECbjF/kJmTSNx7eWQ==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/core@3.980.1': + resolution: {integrity: sha512-W7jDWUPucezIUjFZpr8MudQQtz/m6yPMyAFrOyyQcHjuF4UrZdcCdP8eV1js06U9sH3dxp0AbhN+s9uHwQyXzQ==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/core@3.980.2': + resolution: {integrity: sha512-Q0hqjfLf1zvwB6aY6fi8pYrtgxHs8sqymhXH/iWBZM/wkokjT869Ws4F12nCD2KX3hiAvKku2cZplxM0cydX8A==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-env@3.972.82': + resolution: {integrity: sha512-sAfysgoFWKg/CJvufYM7lhvMUfJpTsuwjCLzp843Vtw8NlQh2PW9/+upUFrsoQK46pJcv3u1a+st7qJ4jfSODw==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-http@3.972.84': + resolution: {integrity: sha512-6xFe7tGPZedfak01TLUxuExU2Xhqw0VtoVvcS/+1OLjPB8If5vulTpCaR0TKTA/J6sAhTOjZHb6+4R1e1KRMKg==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-ini@3.973.27': + resolution: {integrity: sha512-geyao3+s46HIo8C0vyLz7cQ1qaOM1H6wrP/nNWTr5SoR4r97qlWrubi+a7Sg128KmvRZIFbwXTvkbKawBeysqg==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-login@3.972.89': + resolution: {integrity: sha512-5kcIZkMMs6eYvU6psqZkmeWsS3EGES53S6xUJFCC6eoJak3BQCCaF8yLU1bN6LTAOr2a9RWw+m1XBGen7Jcq+Q==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-node@3.972.94': + resolution: {integrity: sha512-qZzjRq45j0S0rI4XjHKGL63gGSFGPDYRe18Crp7l4Zk3Yr6PG4PjIixZEtsGIliOjtZ/h+ATExgjE54JQJeZMQ==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-process@3.972.82': + resolution: {integrity: sha512-VsFOXU7gYDWqYwRis7Rif3CrE+c7xMNxp0L3XqGPuvF6JO2K93FYjhLlEphW5uEMpHEXkOOutZ5USGErgfKaog==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-sso@3.973.26': + resolution: {integrity: sha512-IIrqv0iFNwO8Cd5EigbwILsnsvmprCAw5/BPfRvP/EiLQtBfv3PI9KpyUj2+qsJhYcpmKad+ugaS0+izle8OqQ==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-web-identity@3.972.88': + resolution: {integrity: sha512-RmeE04naP7gWzux9l1vqNQPzuo2OkH0Ca9WDtX5Zf4NERoBLeWZNU2g1ka7aJ4Fc9fqBxBLtGL89vYEfFP1LHw==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/middleware-sdk-s3@3.972.87': + resolution: {integrity: sha512-LO1E63hw8wFLOTWgS2xpMQGGAI5DUbA9OcZC9x4ADDwYwU3oqMl3jumxQq/m/5g4Pri2SN8tLaumHtynA5gU9A==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/nested-clients@3.998.1': + resolution: {integrity: sha512-KPw5W6LN3waUskfDCRXRcyBEHAev5PVlMOjMq74OIivFYbgPvq39QeFege7IOFPncO425/AQK0qxdfaoeGejYQ==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/s3-request-presigner@3.1165.0': + resolution: {integrity: sha512-UxiU48TtdqtpwouOYBCfkZ0T5XEggwnrSvzSAkFt57TmnW2Z5NJsmenjDopKl0jub742g90U1Ih6si8IogAv5Q==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/signature-v4-multi-region@3.996.51': + resolution: {integrity: sha512-+aHvUugVBuMPXxgkPfWnTMyGdE/yWS8GHi5+qQ37HowS0YqzrbuaDLznj+Dtmtu5jgCdqz36gXmujOToUhNNWw==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/signature-v4-multi-region@3.996.52': + resolution: {integrity: sha512-6W6SjGc8OXUhMzNxU1X922ghD+PP1XvzmCk5Scui0jaYsLezycMYR1RaLp5xTIOUrhTXyb4DnAbPr3fBgmdnzg==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/token-providers@3.1164.0': + resolution: {integrity: sha512-9LPRWfev5QZH1EnNn9O/Y++iCRpfxrJs4EIsJuOAKYZ0DY/kZ3aOx0qWzmN1OUOd8JlUk6Mjy1tJ8b7ul5tuVw==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/types@3.975.0': + resolution: {integrity: sha512-WQlhs6juByzWOzj5fwxOx0mPJaEqMcG/sDpl3Id61B3XhKE63xY+0QWcnG+sWR/sCfprmreyUo1lM7IKZmHMzw==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/types@3.975.1': + resolution: {integrity: sha512-7rGxUkCB2QPoQOeJmonmAICTN2zrH+fpmi1p4Iwu72lnxNaMhOgqcbpyddifnM1DBb19TWQ1u6z/XjkaFNEDWw==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/xml-builder@3.972.42': + resolution: {integrity: sha512-smX8/gNP8Kjq+CWTBMZQLQ912vOQjiWExzwzvMO+eujPB5RY8IbtF0AGdUUXHKN7KoDWK9dIcuW0WG269kiP6w==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/xml-builder@3.972.43': + resolution: {integrity: sha512-rG8QVx4DOrJWptsogu1Aq+CDsnPKaBrAlJpKLxrJrIDXAq1ElnW0yQjjBnlWSXll0cDakCG6UDvaqwz0A9d9Og==} + 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': + resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.29.7': + resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==} + engines: {node: '>=6.9.0'} + + '@babel/core@7.29.7': + resolution: {integrity: sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.29.8': + resolution: {integrity: sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==} + engines: {node: '>=6.9.0'} + + '@babel/helper-compilation-targets@7.29.7': + resolution: {integrity: sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-globals@7.29.7': + resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-imports@7.29.7': + resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-transforms@7.29.7': + resolution: {integrity: sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-plugin-utils@7.29.7': + resolution: {integrity: sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-string-parser@7.29.7': + resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-option@7.29.7': + resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==} + engines: {node: '>=6.9.0'} + + '@babel/helpers@7.29.7': + resolution: {integrity: sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.9': + resolution: {integrity: sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/plugin-syntax-async-generators@7.8.4': + resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-bigint@7.8.3': + resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-class-properties@7.12.13': + resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-class-static-block@7.14.5': + resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-import-attributes@7.29.7': + resolution: {integrity: sha512-zGYcYfq/WmZ4V+kBIXQon9dSSc8ircGZqw9ZaNhhGj9nZkeBu1jHLBDQqYYi5WA9uawvA2sIMbry2nCFhf5Djg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-import-meta@7.10.4': + resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-json-strings@7.8.3': + resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-jsx@7.29.7': + resolution: {integrity: sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-logical-assignment-operators@7.10.4': + resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3': + resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-numeric-separator@7.10.4': + resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-object-rest-spread@7.8.3': + resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-optional-catch-binding@7.8.3': + resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-optional-chaining@7.8.3': + resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-private-property-in-object@7.14.5': + resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-top-level-await@7.14.5': + resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-typescript@7.29.7': + resolution: {integrity: sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/template@7.29.7': + resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.29.8': + resolution: {integrity: sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.29.8': + resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==} + engines: {node: '>=6.9.0'} + + '@bcoe/v8-coverage@0.2.3': + resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} + + '@borewit/text-codec@0.2.2': + resolution: {integrity: sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ==} + + '@colors/colors@1.5.0': + resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} + engines: {node: '>=0.1.90'} + + '@cspotcode/source-map-support@0.8.1': + resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} + engines: {node: '>=12'} + + '@electric-sql/pglite-socket@0.1.3': + resolution: {integrity: sha512-LAciWM0M1dCL8hlsxu2venbVZcdxema0BtDfpWYVqr+Y468UADw0pFWidhKw1M8sfJ8rdLT71tjMmnirf/IZRQ==} + hasBin: true + peerDependencies: + '@electric-sql/pglite': 0.4.3 + + '@electric-sql/pglite-tools@0.3.3': + resolution: {integrity: sha512-AlzLJTRJ8+UFgK8CmxIpyIpJ0+YaFw02IiOSdYrqxwPXdSyeIShz8aa9Tq+tYFXdPwcaMp/Fc80mQZ1dkOQ/wg==} + peerDependencies: + '@electric-sql/pglite': 0.4.3 + + '@electric-sql/pglite@0.4.3': + resolution: {integrity: sha512-ichuWTgtd4mOM1G4SpyGJa5trT03lWbMypDV0fUXUCXg5hiHqVAz/bZyV68NqmkLB7WcYmj1RMJVSp8HV/v/ZQ==} + + '@emnapi/core@1.10.0': + resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==} + + '@emnapi/runtime@1.10.0': + resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==} + + '@emnapi/runtime@1.11.3': + resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==} + + '@emnapi/wasi-threads@1.2.1': + resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==} + + '@fastify/accept-negotiator@2.1.0': + resolution: {integrity: sha512-F3EVbzWt+xcnVaOHmWyIlpuFtbxOln7HDZQsh09MtMmMm/CipMayNt8hnIL8VQi54u2ZociDbf+iluGYkf7B1A==} + + '@fastify/ajv-compiler@4.0.6': + resolution: {integrity: sha512-NtuzM0SfaMJbGlnjr9LWQUN5LzgSrbB8tf/wRZNas+4E1O/Nmzl53e7ruT61HDZyRCJGC6FxIogmNZO1c5ETBA==} + + '@fastify/cors@11.3.0': + resolution: {integrity: sha512-ggQGua+xHv1MvePbPr0v//xLYEsCXbWspquXCJS9Ot5YoRXq8J8ZWzHnxDBVnbtXosvistXo6LtNzOJswf64Fw==} + + '@fastify/error@4.2.0': + resolution: {integrity: sha512-RSo3sVDXfHskiBZKBPRgnQTtIqpi/7zhJOEmAxCiBcM7d0uwdGdxLlsCaLzGs8v8NnxIRlfG0N51p5yFaOentQ==} + + '@fastify/fast-json-stringify-compiler@5.1.0': + resolution: {integrity: sha512-PxcYtKLbQ8Z+yApiqjK8FwxIwvEj38k2OiLc17u8dkJSlmfi2wHHPaSnaoqBPQqtvF8YVsDgDpP2snDCfFrpfw==} + + '@fastify/formbody@9.0.0': + resolution: {integrity: sha512-T/af26CSrUARBCvsEmv+DJLPfZlrRKESzqironxP1j7qzuLyKcoZtj6MuTGShuKx1THXugoie2oFbUJxXfGFzA==} + + '@fastify/forwarded@3.0.2': + resolution: {integrity: sha512-NE8HgKLgYejV9lDpqkEFaDKMLYelJBVfHekhB0UKvX0ghagXRJqg68feg8er1NPXxG4N9i6vPxzt8E+3wHfcmA==} + + '@fastify/merge-json-schemas@0.2.1': + resolution: {integrity: sha512-OA3KGBCy6KtIvLf8DINC5880o5iBlDX4SxzLQS8HorJAbqluzLRn80UXU0bxZn7UOFhFgpRJDasfwn9nG4FG4A==} + + '@fastify/proxy-addr@5.1.1': + resolution: {integrity: sha512-zv07Y9GEuDsJPegZoDFd4SDWaZOW8N2pa0GSrYmKpId/tjt1Hgo3BjZBVjdVpfVrHaA+Qv5jawtS2O50J5xM9g==} + + '@fastify/send@4.1.1': + resolution: {integrity: sha512-BYo+EiaKwlxH+WetGk6hAs1d39iP0y1gqB8lGF/qwkJ9ZZ/cBY1vx5NvExb9Sc3yRMFjD5X4Eyh4e4+TzRkzdw==} + + '@fastify/static@10.1.4': + resolution: {integrity: sha512-YWYmXV0c3t/3DDyV32kRXJTgTY16FOkqtQ4mmBjbkWeukGR5n+Sr+7ppknNpS7hiRPrLU9zcySZZ1nLJVHTZkg==} + + '@img/colour@1.1.0': + resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} + engines: {node: '>=18'} + + '@img/sharp-darwin-arm64@0.35.5': + resolution: {integrity: sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==} + engines: {node: '>=20.9.0'} + cpu: [arm64] + os: [darwin] + + '@img/sharp-darwin-x64@0.35.5': + resolution: {integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==} + engines: {node: '>=20.9.0'} + cpu: [x64] + os: [darwin] + + '@img/sharp-freebsd-wasm32@0.35.5': + resolution: {integrity: sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==} + engines: {node: '>=20.9.0'} + os: [freebsd] + + '@img/sharp-libvips-darwin-arm64@1.3.4': + resolution: {integrity: sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==} + cpu: [arm64] + os: [darwin] + + '@img/sharp-libvips-darwin-x64@1.3.4': + resolution: {integrity: sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-linux-arm64@1.3.4': + resolution: {integrity: sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==} + cpu: [arm64] + os: [linux] + + '@img/sharp-libvips-linux-arm@1.3.4': + resolution: {integrity: sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==} + cpu: [arm] + os: [linux] + + '@img/sharp-libvips-linux-ppc64@1.3.4': + resolution: {integrity: sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==} + cpu: [ppc64] + os: [linux] + + '@img/sharp-libvips-linux-riscv64@1.3.4': + resolution: {integrity: sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==} + cpu: [riscv64] + os: [linux] + + '@img/sharp-libvips-linux-s390x@1.3.4': + resolution: {integrity: sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==} + cpu: [s390x] + os: [linux] + + '@img/sharp-libvips-linux-x64@1.3.4': + resolution: {integrity: sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==} + cpu: [x64] + os: [linux] + + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': + resolution: {integrity: sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==} + cpu: [arm64] + os: [linux] + + '@img/sharp-libvips-linuxmusl-x64@1.3.4': + resolution: {integrity: sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==} + cpu: [x64] + os: [linux] + + '@img/sharp-linux-arm64@0.35.5': + resolution: {integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==} + engines: {node: '>=20.9.0'} + cpu: [arm64] + os: [linux] + + '@img/sharp-linux-arm@0.35.5': + resolution: {integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==} + engines: {node: '>=20.9.0'} + cpu: [arm] + os: [linux] + + '@img/sharp-linux-ppc64@0.35.5': + resolution: {integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==} + engines: {node: '>=20.9.0'} + cpu: [ppc64] + os: [linux] + + '@img/sharp-linux-riscv64@0.35.5': + resolution: {integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==} + engines: {node: '>=20.9.0'} + cpu: [riscv64] + os: [linux] + + '@img/sharp-linux-s390x@0.35.5': + resolution: {integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==} + engines: {node: '>=20.9.0'} + cpu: [s390x] + os: [linux] + + '@img/sharp-linux-x64@0.35.5': + resolution: {integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==} + engines: {node: '>=20.9.0'} + cpu: [x64] + os: [linux] + + '@img/sharp-linuxmusl-arm64@0.35.5': + resolution: {integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==} + engines: {node: '>=20.9.0'} + cpu: [arm64] + os: [linux] + + '@img/sharp-linuxmusl-x64@0.35.5': + resolution: {integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==} + engines: {node: '>=20.9.0'} + cpu: [x64] + os: [linux] + + '@img/sharp-wasm32@0.35.5': + resolution: {integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==} + engines: {node: '>=20.9.0'} + + '@img/sharp-webcontainers-wasm32@0.35.5': + resolution: {integrity: sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==} + engines: {node: '>=20.9.0'} + cpu: [wasm32] + + '@img/sharp-win32-arm64@0.35.5': + resolution: {integrity: sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==} + engines: {node: '>=20.9.0'} + cpu: [arm64] + os: [win32] + + '@img/sharp-win32-ia32@0.35.5': + resolution: {integrity: sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==} + engines: {node: ^20.9.0} + cpu: [ia32] + os: [win32] + + '@img/sharp-win32-x64@0.35.5': + resolution: {integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==} + engines: {node: '>=20.9.0'} + cpu: [x64] + os: [win32] + + '@inquirer/ansi@2.0.8': + resolution: {integrity: sha512-WpQM+Ti6Z40EFwwt+uL2p4UabT+W179zHp6HhLVOzfbwnVn05IPO/eXIZXGNqcT1jbQ15SujNLzQ39k4QPPxBQ==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + + '@inquirer/checkbox@5.2.5': + resolution: {integrity: sha512-bRt8J8m+Fot9CXv+zNQGXUq2ET0MggR1fPz7v6edN6MFYmsbfGnMmkmWZJEegMKqrAC8ej/o1sqisHZXZJMAfQ==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.3.2': + resolution: {integrity: sha512-Xvr/0HggjddPtGppuqVmxhTw+Hr8PvsZ/k0HmOEaAqQEt80OITNkFWnsdNmyT0/eM4Ab+iJLx2R8rctlEyfSVg==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.0.3': + resolution: {integrity: sha512-wsSy0sznmXwkty+2PzZwx00Cazc/E0r0B7mAzdGROz2Ct+DFZXaK7WDjGZvgjRldxH5ZhFVfF2lgkYrqgOw2KA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.3.3': + resolution: {integrity: sha512-YsKkS2q63IiLtaDK/9nqzdComN97SDQrmKiyNggN+ceP4ty+Z6VwyTz3FpjeUWeW1Efss2xHFKCC9sx7hnrsxg==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.1.5': + resolution: {integrity: sha512-uHuXLmXW+TtIfT/9vSBotypAkqn1n34Ul+CLGPos/xANyO4Ff5xZzkYhbKR4NEcfVK4a9mHQOpwVZzluSHFRGw==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.0.5': + resolution: {integrity: sha512-f3QQJRIX5ZEneBHNUIuPjmbdzHnmRFJA8r2dkcb8q+OM5Uv5KtnuAttQumnrjcBVBM3mcTX1CkmtAkU58VRZxg==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.0.9': + resolution: {integrity: sha512-EAWgUTGQ/Umgga51dE3B2PUHbufuXarDfg86uVgoSgNHNNQnyFKcOrQLWVqYMghuSyHh8+2HUH0Js9cTC1WAdg==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + + '@inquirer/input@5.1.6': + resolution: {integrity: sha512-HtcJhB2QFVXbLuJ5S3syhNbTUVxYvwqV4VRBDkQceBloC9bmTViUoRFP5PbSaDZb3HzfPmpuU/gG4ybVBz4FHA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.2.3': + resolution: {integrity: sha512-6Yuwh1NGSbu1Lo4N1EWjXs1jKRntLg/ZCwhmeorEHde90v1XxAozdbd4Iu30eOQLW+6h1hp2O9ujNfLSbTPJnA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.2.2': + resolution: {integrity: sha512-W9zYdyzogK+6110mqwaSJWCBu2yA5Q/OfnGSjjZB1bNpHlmUozXxTl0+QOZBNeVd6Qo81/qT75gW05gLAtITxw==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.5.2': + resolution: {integrity: sha512-IYR/3C/paEVVQYQvdDlFZVjRCJVYHHON0XXMH91KO9GSxs0TdKYWlUdvfQl2EfAHDxUaN3IBffkE/BDTh5nJ6g==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.3.5': + resolution: {integrity: sha512-1oHky1ONfCOwNrnkQGDE1oaSij/3fI6HFMSf2H/WsGO2lEyDX9My82iggITSy9ddSZ8yk8j9v41OI0fVoSIoaA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.3.3': + resolution: {integrity: sha512-fyuIU1Nbpvwlikjg3gXwJFDI11+EFjqQ7P+iByfmivIKQ1vmaykNrD/vy5unHuUqUpsOsnvJ25//tPF7E/RBRA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.2.5': + resolution: {integrity: sha512-9kc15hr8r/kI+3DO/xLog5nOzTz1jqsHXa6JBFzmQKhkoJ8Slda1I1L/uD8ZSZ9tF1yp79wwXe7mclvX1rqR2Q==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.1.1': + resolution: {integrity: sha512-yJoHYrMnxIsJZCY+0Vb66Dy3he3kL3e2wOBKhoSwWWAzZAY82emlxwgprCtp6yRixvNRNq9ztfRWQYPNr3Go7A==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@ioredis/commands@2.0.0': + resolution: {integrity: sha512-vrx0AE/T0h7cRZwfo1M39Cr+ZhZrkf0V8mQN75wucKCxCLD9l/VX6no3gFvrLqD1IlG/1LtzWovqEw3t0Vr9zg==} + + '@isaacs/cliui@8.0.2': + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + + '@istanbuljs/load-nyc-config@1.1.0': + resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} + engines: {node: '>=8'} + + '@istanbuljs/schema@0.1.6': + resolution: {integrity: sha512-+Sg6GCR/wy1oSmQDFq4LQDAhm3ETKnorxN+y5nbLULOR3P0c14f2Wurzj3/xqPXtasLFfHd5iRFQ7AJt4KH2cw==} + engines: {node: '>=8'} + + '@jest/console@30.5.2': + resolution: {integrity: sha512-e8sQC4pCMHPBrPX7Hk8TJr+DM5dkUnImSTNag8SEWFAFAF6xIz4AJvCKapnrdHnZxep4bxw4PhG+ZbimYBMyKw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/core@30.5.2': + resolution: {integrity: sha512-/jqvFWoJF7LV1a6AUpYMbMm+2yIYsHJfR474H0SCzr9k8tnO/jl9wRg6zSG6lxgf6EozNlCG4amFzWsbZSvvZA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + + '@jest/diff-sequences@30.5.0': + resolution: {integrity: sha512-OsqBjHXCn8cadasoAZBP6nWYvMsRhpMzGXTpxJ5aO04NlbdhIz+FVe3q49l0AwVhsz/cEmIpBes6gAFl1/dWQg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/environment@30.5.2': + resolution: {integrity: sha512-nwFPOUMbmsjNNRCpnJpB9HbSZu4C07wDDds++5j+j1MezzPLxMPDdbdUVjr2o4RULDOValnDd70taPFI1EtxAg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/expect-utils@30.5.2': + resolution: {integrity: sha512-d/HOLSrJUlBIl6n3LzOa7cjW3xdePm5H5gQw2lixZ/0h157l9sw3mLblzFqnPcTbhDzhRQdBOX3A3KcG73nm5Q==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/expect@30.5.2': + resolution: {integrity: sha512-2E+1Pg6jJxbRjLNLpciC71iri/3qsKJL222/aXJEFwC0VdUSvfS+JZQQLEVjUYYc8t8pQu2MGE3cF2+bNTYRsg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/fake-timers@30.5.2': + resolution: {integrity: sha512-GKk0h0tKT5SpDPxDhPg3r9mm5s8/YCBzVNMOGdRiQXwUiMsjU10mVPlMaQstH6/cu50vOb8N9oQUMETHuwwxKw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/get-type@30.5.0': + resolution: {integrity: sha512-9/2VUPitAjmBzbvDvqrxmvB7BzWsBW0WmkkojX1ODuxX1NLGxx9gfaZpHB0z8DtJ9uhGNmZG/VXBhf8uO0OV8Q==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/globals@30.5.2': + resolution: {integrity: sha512-62zfS+dL+M5aTNHXCNLyqD+j4oqxTIzDYrZbpqMP8Yn+gvlAGyzC6BSPNb1ZmFOakV1RtFYX/O3FCQXSWmQdgg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/pattern@30.5.0': + resolution: {integrity: sha512-HdNQYSdRTEBNrginaqzQtTjG0HRMfrra/z6Ok7uL3S87vSlarIVohEsJsSj5edu3MiHoHjAkvPROz5ZjoKai+w==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/reporters@30.5.2': + resolution: {integrity: sha512-ev6E9iG73twQcfAfoTnviuYkr3yOrYbzAtMFCimv2fxHXPIp9PBt2u1wNMt0aYWgl8FPwIcS8oqRJg6alnht4Q==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + + '@jest/schemas@30.5.0': + resolution: {integrity: sha512-/hunigyNpc4RCjC0VaW3f5RCUZVM2+WQ65qP7z083Gmvac7or2LI50XVNOtE4YPgBpV0yxYiAgorAPGniCoJmg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/snapshot-utils@30.5.1': + resolution: {integrity: sha512-V3wnxNtiVmw5PPVg433Cn3VdXnsOeu/ofLw3KC04Bn2y1wIlU5kozXQn48rhrgj/02LrCVtntTEF1yBha0XSUw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/source-map@30.5.2': + resolution: {integrity: sha512-c5CehvkbfHX6yyNg7bMn2ylqlp9AHXuZ/3hPH/Lh5bxD/vefd/lV9HBjMqXef9yQNqkdwyZvkLSVSwB38hy8Qw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/test-result@30.5.2': + resolution: {integrity: sha512-eO6YU5rsLfs60ne694e0IAmRgeBnoA8mu0nlxXDbl/1j5km0o2vO9/VbbUIKIH+WRKKEI+ELgwraRGn2Lhep8g==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/test-sequencer@30.5.2': + resolution: {integrity: sha512-bmij8jZyYAC47ExT2GeP7PcrlwSNS+Bp3KeRuBH88gpcxqDv6fljN8PemS4J/lLZ79xb6mpaennQTTq0zUAVVg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/transform@30.5.2': + resolution: {integrity: sha512-LBGwmaE886C41jDZ65eqR1YbXM7642MK3ZhTowZd5+xDlrDLuf4ePuDdDmVSvcr8NTVJ3MqxLkMbUCzuigUaoQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/types@30.5.1': + resolution: {integrity: sha512-LvVYn83nnXPl+Rg98nvcFgjx6nRMTArhSn6RAX/w3ELn54S8A42TYZvsCMdGUqTM8S0wyXbtlQdU6Hi6dykj9g==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/source-map@0.3.11': + resolution: {integrity: sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@jridgewell/trace-mapping@0.3.9': + resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} + + '@lukeed/csprng@1.1.0': + resolution: {integrity: sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==} + engines: {node: '>=8'} + + '@lukeed/ms@2.0.2': + resolution: {integrity: sha512-9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==} + engines: {node: '>=8'} + + '@microsoft/tsdoc@0.16.0': + resolution: {integrity: sha512-xgAyonlVVS+q7Vc7qLW0UrJU7rSFcETRWsqdXZtjzRU8dF+6CkozTK4V4y1LwOX7j8r/vHphjDeMeGI4tNGeGA==} + + '@napi-rs/wasm-runtime@1.2.4': + resolution: {integrity: sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4 + '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4 + + '@nestjs/cli@12.0.3': + resolution: {integrity: sha512-HofsPoiWsx6gZ7/IivaZJrgsq/3CTCb4FkCQzFu/Q3J2V+4xC7GYnit/HNB66EfuY8j3gWJCzasMKmF5VugmOA==} + engines: {node: '>= 20.11'} + hasBin: true + peerDependencies: + '@rspack/core': ^1.7.7 || ^2.1.10 + '@swc/cli': ^0.8.0 + '@swc/core': ^1.15.18 + fork-ts-checker-webpack-plugin: ^9.1.0 + ts-loader: ^9.5.4 + tsconfig-paths-webpack-plugin: ^4.2.0 + webpack: ^5.105.4 + webpack-node-externals: ^3.0.0 + peerDependenciesMeta: + '@rspack/core': + optional: true + '@swc/cli': + optional: true + '@swc/core': + optional: true + fork-ts-checker-webpack-plugin: + optional: true + ts-loader: + optional: true + tsconfig-paths-webpack-plugin: + optional: true + webpack: + optional: true + webpack-node-externals: + optional: true + + '@nestjs/common@12.0.4': + resolution: {integrity: sha512-maEf5KhcQMCXQW9/SsLDDoFO0l73sbwBmiaCRrkqrFHyNG9ekN8CoYbzcvlboNKgiydWx8pogoFnuOEl8+7+tw==} + peerDependencies: + class-transformer: '>=0.4.1' + class-validator: '>=0.13.2' + reflect-metadata: ^0.1.12 || ^0.2.0 + rxjs: ^7.1.0 + peerDependenciesMeta: + class-transformer: + optional: true + class-validator: + optional: true + + '@nestjs/core@12.0.4': + resolution: {integrity: sha512-3jd8RaYxYAs8OxjHdTOgxmS9vUm3I9JFnRrgBxdQAVbHjyRx/QYiGnuVCmuUBm4AOHPMij/I74xfg8En3Erm7A==} + engines: {node: '>= 20'} + peerDependencies: + '@nestjs/common': ^12.0.0 + '@nestjs/microservices': ^12.0.0 + '@nestjs/platform-express': ^12.0.0 + '@nestjs/websockets': ^12.0.0 + reflect-metadata: ^0.1.12 || ^0.2.0 + rxjs: ^7.1.0 + peerDependenciesMeta: + '@nestjs/microservices': + optional: true + '@nestjs/platform-express': + optional: true + '@nestjs/websockets': + optional: true + + '@nestjs/mapped-types@12.0.0': + resolution: {integrity: sha512-aX7lxZcqXldtnSr0bgT2ZPQvpTpIwBMW1GMX29o4s3q02vmq6JoTYuPW0GwYXa8BiFMRX7WbGZVDA703pNqOMQ==} + engines: {node: '>=20.19.0'} + peerDependencies: + '@nestjs/common': ^10.0.0 || ^11.0.0 || ^12.0.0 + class-transformer: ^0.4.0 || ^0.5.0 + class-validator: ^0.13.0 || ^0.14.0 || ^0.15.0 + reflect-metadata: ^0.1.12 || ^0.2.0 + peerDependenciesMeta: + class-transformer: + optional: true + class-validator: + optional: true + + '@nestjs/mau@0.2.8': + resolution: {integrity: sha512-nIb0i3c/KhKEbxZfYMEKv9Mcvk5miBdZcexnvkgnAUhoMO2BUjOGT+Khf2cZzu7B51Y7v01NG2JVl/HdQEUQ6w==} + engines: {node: '>= 20.0.0'} + hasBin: true + + '@nestjs/platform-express@12.0.4': + resolution: {integrity: sha512-oL6zHjeMeqwKoAlY1Y+bpCfFy6Yat6wfWnmcTgp7IE3A6TAftu6Vgu/eRi9VY5bErw4dMcYGtzvxvKP1QXr8JA==} + peerDependencies: + '@nestjs/common': ^12.0.0 + '@nestjs/core': ^12.0.0 + + '@nestjs/platform-fastify@12.0.1': + resolution: {integrity: sha512-LqR0kOahuZAei3wJK+SJfHc9o9H/OSdA7gMSMaW+Kfjy6GtpTNPdfpHeq3w2PuiPgUGk2QIX/dqUAYntJ5arSw==} + peerDependencies: + '@fastify/static': ^10.1.2 + '@fastify/view': ^10.0.0 || ^11.0.0 || ^12.0.0 + '@nestjs/common': ^12.0.0 + '@nestjs/core': ^12.0.0 + peerDependenciesMeta: + '@fastify/static': + optional: true + '@fastify/view': + optional: true + + '@nestjs/schematics@12.0.4': + resolution: {integrity: sha512-iUQkaQKoKmcUgu0TZQwDnlHXs8RgeIf3Tzay6s8lfANtmu/3SQZFzg7eXbB/I2iN4I/nnngQb2Pnr3mqQRW7kw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0} + peerDependencies: + prettier: ^3.0.0 + typescript: '>=6.0.0' + peerDependenciesMeta: + prettier: + optional: true + + '@nestjs/swagger@12.0.1': + resolution: {integrity: sha512-fQ0WyutSSHedO9HzSkOFKFaRygYNGBno5EggcZljs+KL8tHzPPTO5oyJpaf3BoOKFGGsN/0B13EbIpH2pkPx8g==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + '@fastify/static': ^8.0.0 || ^9.0.0 || ^10.0.0 + '@nestjs/common': ^12.0.0 + '@nestjs/core': ^12.0.0 + class-transformer: '*' + class-validator: '*' + reflect-metadata: ^0.1.12 || ^0.2.0 + peerDependenciesMeta: + '@fastify/static': + optional: true + class-transformer: + optional: true + class-validator: + optional: true + + '@nestjs/testing@12.0.4': + resolution: {integrity: sha512-cL1vfg0VyEd1cHEge6gcppLsptYiCYRxjseuvelIX++ddgzeg9hIQQdg0sT7CJrBIJxI1dt6+7PW6NHbl3laYQ==} + peerDependencies: + '@nestjs/common': ^12.0.0 + '@nestjs/core': ^12.0.0 + '@nestjs/microservices': ^12.0.0 + '@nestjs/platform-express': ^12.0.0 + peerDependenciesMeta: + '@nestjs/microservices': + optional: true + '@nestjs/platform-express': + optional: true + + '@noble/hashes@1.8.0': + resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} + engines: {node: ^14.21.3 || >=16} + + '@oxlint-tsgolint/darwin-arm64@7.0.2002': + resolution: {integrity: sha512-E3yYb/tI+5M3SqGgKwrwUD0nmjA2FMGD1xFbma46qi8Y7+nPTlGY6bZk/hqxijc9Vda/tdtUxQ2d5zGIEX9qlg==} + cpu: [arm64] + os: [darwin] + + '@oxlint-tsgolint/darwin-x64@7.0.2002': + resolution: {integrity: sha512-qEaMySdvzs8faaJwMO4dFtPFCa+degFCz+HbkFQ0REcIJqJ16KmC0smt30FAI9TeEHCoAtz6sU/6acJvi4uaxg==} + cpu: [x64] + os: [darwin] + + '@oxlint-tsgolint/linux-arm64@7.0.2002': + resolution: {integrity: sha512-bqPObCNIR6tDQSc0Xn9Nu7EfWRXFB+qFzADRl/q6YA8zT9YUg3pGUbmicV2hV91uLpiot74so9ocGjx35SaX6w==} + cpu: [arm64] + os: [linux] + + '@oxlint-tsgolint/linux-x64@7.0.2002': + resolution: {integrity: sha512-E5CcRALAYdiQMbdYjEqlLOiYuEdt21RtXiyxIoD8bfypdfkpWppacijKOR4i0DtLXFRVwCGQggZBWk5bOIpU1A==} + cpu: [x64] + os: [linux] + + '@oxlint-tsgolint/win32-arm64@7.0.2002': + resolution: {integrity: sha512-L+ul0ZFDiz/ZmTwCQ1J/qS7S6s45ktiaFqb+ZIzx+1sSdtdRxm8/H0+p4VDQYrCKBFzKNb6VjUlm48bNEe3BUg==} + cpu: [arm64] + os: [win32] + + '@oxlint-tsgolint/win32-x64@7.0.2002': + resolution: {integrity: sha512-zkZeJfo4UmYiCzj77u85eCDpdxOiQiSAsV6j9Pvj5e7Vu5+MvwLtK1xmVutE77tJmUJ3eBOSXHR6WgY4AwHHGQ==} + cpu: [x64] + os: [win32] + + '@oxlint/binding-android-arm-eabi@1.83.0': + resolution: {integrity: sha512-0yGY24EwsLk5YDe6F+VkmZyRHSwJDALa3nIrPpq7FXmp2lV2d0TzvBCGeZk+wgiULRGr5blhyr4QMp5KCXJUqA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxlint/binding-android-arm64@1.83.0': + resolution: {integrity: sha512-hHfJ0vc17A4iUjH5p9BsTUPYbYRNxGpvD2lbu1aBRk54bzNIx9o5TtYF39QPZcV95DagZd+4DEAw2RH3G2ZsMg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxlint/binding-darwin-arm64@1.83.0': + resolution: {integrity: sha512-hsOjYjszLb/3zym/TkzUMPAoQlTJcuzSyEPOAyA+skXJIX9M0o+4JfOtqopX/Vf4hSLrJ98j0nvFo23gzk8auQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxlint/binding-darwin-x64@1.83.0': + resolution: {integrity: sha512-mjh5oH2EA+wl5yRJYT9K9G61O2zFlpuv+yf2JwZOi0+dq2FnTUtm1h8i+5Ik0fXPWIu/k84I1psZR9aQsLAnyA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxlint/binding-freebsd-x64@1.83.0': + resolution: {integrity: sha512-fNHr64/YaO8YssuoDVC8+F4Uk5enR86q5uxfHkQrjAPs1dbAILOrD2uaud+J7MO8Fx774g44ERLD0IGIvZE48w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxlint/binding-linux-arm-gnueabihf@1.83.0': + resolution: {integrity: sha512-Qpwy3zzAwMj+8/lyYItHmkSMwbkprFNWTK7jPYDOxSyxEhaSLOWYUTCMkjF334J8/WD0nznCCsoBbIH6hpsuIw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm-musleabihf@1.83.0': + resolution: {integrity: sha512-s+BirYLFq7JL2k9sP0XI3ZXJ9dYvJ8sX3jLCLoag7tt+zrSHpZxP0jqznfL+Gdgwu7ay0dYgGYJXrQvq3iWloA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm64-gnu@1.83.0': + resolution: {integrity: sha512-7lihXt3vKr+GIyapNbHrnFHm/biiW30le6Zv/DExbAFPF6YwCQXVFlONPFehxs0CpGO4CBfYPM9rdDT+XMoIlg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + + '@oxlint/binding-linux-arm64-musl@1.83.0': + resolution: {integrity: sha512-q63JalLYVkZiZvls1z3PPUnpmQluOMXp0khqQMznCeAPLGydfNY8JhvuA4WlK57JfrvikU8wB5lPVveqpIXvew==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + + '@oxlint/binding-linux-ppc64-gnu@1.83.0': + resolution: {integrity: sha512-krQmDF+dRbxvdqVPV88ZuOoPPu8X5BuqDA8Hd+qcS4YMRQCb+nexA57DazgGsc/rGdKBe3QmV0mnv0bdpW/p5g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + + '@oxlint/binding-linux-riscv64-gnu@1.83.0': + resolution: {integrity: sha512-MmOl8Y6txEAXZU1RG8Rr264jQ6D7VPmqFsU/45x/FeWsGe32hklTqGrLE6UxHzp5Rjt0wP+20tY8YXKgSFB3mw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + + '@oxlint/binding-linux-riscv64-musl@1.83.0': + resolution: {integrity: sha512-u1rMymh0W3JZkq370kzQsYPULGWqhE09pZRqnZvUSoYaI9pVO5yVX+iYIslmWuEgwuzH9YAaOsScJiobWCHoOw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + + '@oxlint/binding-linux-s390x-gnu@1.83.0': + resolution: {integrity: sha512-y0zK3HNwGysu7rqtE+BQG/d0bx5gh/KwlOtghN8oWeK1KcWzeaLqtZrbm8owqdma1lFyrce/hTO5ismuNu+INQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + + '@oxlint/binding-linux-x64-gnu@1.83.0': + resolution: {integrity: sha512-rS5gM0NgD7ngmuJmbIehsidtrOwKkLFwCQbKEeb9KuyQrrWNq5Zkn0uV6AYdXOMJ0grrWEiLwBuvMxt8w5vsNw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + + '@oxlint/binding-linux-x64-musl@1.83.0': + resolution: {integrity: sha512-W2IH4EtpcPaWcvNGCA95YoDg4vxqE/ZiPCi3arrxEEpsK7+JQN9WYwrlYFx9pcdP6KPXqRqkv3zdQPHcx7b6YQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + + '@oxlint/binding-openharmony-arm64@1.83.0': + resolution: {integrity: sha512-6LyKkUyoajssTPLlZmDbZIbu4IZ5B4bGuRUnBgCGpEvHP3FQMaYITncHA/unPUo7q+Z+pIu2HhdkQ+8d1SG7iA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxlint/binding-win32-arm64-msvc@1.83.0': + resolution: {integrity: sha512-Uz/fObEtF0jmNJQJ8CGRBKfefYstS0/wjD3s6IGzP8nUwsJykHQJBiN3npHwKiGRGn/vvBEgNr4B3cCzmmatvg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxlint/binding-win32-ia32-msvc@1.83.0': + resolution: {integrity: sha512-u7XcvPW6Bk58tY5iWs2ESb0vJjoE/kuSpHxopbwp/p3ZtWVQXZ6wor5w3ssVTHOqd/v8b+QdhSFWQ4grEUNWpA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxlint/binding-win32-x64-msvc@1.83.0': + resolution: {integrity: sha512-LZRubd7ph13QmAg4fFecTYVZkiYbROR2Htaxh/ufWRkDhPOm2wrwaEYR89e0YpPFD3dqBrPoxS7myBw5hmYA7Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@paralleldrive/cuid2@2.3.1': + resolution: {integrity: sha512-XO7cAxhnTZl0Yggq6jOgjiOHhbgcO4NqFqwSmQpjK3b6TEE6Uj/jfSk6wzYyemh3+I0sHirKSetjQwn5cZktFw==} + + '@parcel/watcher-android-arm64@2.6.0': + resolution: {integrity: sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [android] + + '@parcel/watcher-darwin-arm64@2.6.0': + resolution: {integrity: sha512-Y3QV0gl7Q1zbfueunkWIERICbEojQFCgpyG7YqOGNFLsckXyI1xu9mAIUpKY9QBYzBtSkN8dBPwd3yiAO9ovMw==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [darwin] + + '@parcel/watcher-darwin-x64@2.6.0': + resolution: {integrity: sha512-Ohv6OpzhUfKYD7Beb8kDvG0jbIxORCYY1JRdZnaBtnjjkJxgD7ZVL0nw2sCYd0yTMKTvz3nnTnOF3cDifK+kvw==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [darwin] + + '@parcel/watcher-freebsd-x64@2.6.0': + resolution: {integrity: sha512-5HmXvDgs8VK+74jF9y9/2FE3/OnlcKmc56tjmSrEuZjpSZOGL+fvAu+HKJBdPs9uwoP2hE6TlSUpXZ/C5jUFmQ==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [freebsd] + + '@parcel/watcher-linux-arm-glibc@2.6.0': + resolution: {integrity: sha512-Ps/hui3A+vMbjdqlqAowK2ZL8+BO8dBjxeWXj6npTBs3jx4wWmbPpaLuqwrQrSqIVMCnpWo238bJ1U37GhQOYg==} + engines: {node: '>= 10.0.0'} + cpu: [arm] + os: [linux] + + '@parcel/watcher-linux-arm-musl@2.6.0': + resolution: {integrity: sha512-9c6AUHgHoG+IY88MRIHupztQiQnrbqHYQjkM2btA+Bf/wQnQMuiD0Wfk1EVv3TlNT3x41uU71rn6E4xh/+zvkw==} + engines: {node: '>= 10.0.0'} + cpu: [arm] + os: [linux] + + '@parcel/watcher-linux-arm64-glibc@2.6.0': + resolution: {integrity: sha512-yHRqS2owEXe6Hic9z6Mh1ECsCd+ODVOGvZDyciqRd21+v+o+DnXMOrw50DSpIG2sb8GPEaPPmfeCAWKPJdq46g==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [linux] + + '@parcel/watcher-linux-arm64-musl@2.6.0': + resolution: {integrity: sha512-WhB2e/V7rqdHHWZusBSPuy5Ei8S6lSz6FE5TKKQz5h3a0O+C+mhY7vxU9b/stqvMb8beLnPY82ZrFTLKs+SrKA==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [linux] + + '@parcel/watcher-linux-x64-glibc@2.6.0': + resolution: {integrity: sha512-ulGE6x6Oz6iAwg75T8YQSoguBWasniIbX+QWpaYPcCnDOpdWX3k+4xbEYPZVLxOuoJI+svJJPD3sEj8G7lrQ3A==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [linux] + + '@parcel/watcher-linux-x64-musl@2.6.0': + resolution: {integrity: sha512-tkBYKt7YQrjIJWYDnto2YgO8MRkjlMTSNoRHzsXinBqbLdeOM3L32wPZJvIZxqaLMfSlS/4sUjH/6STVP/XDLw==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [linux] + + '@parcel/watcher-win32-arm64@2.6.0': + resolution: {integrity: sha512-gIZAP23jaHjGWasY/TY6yL7NHFClf0Ga7FN+iINvk+KN94rhm94lYZhFsbYFNcA04/onvGD9kKmiJLJB2HbNwQ==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [win32] + + '@parcel/watcher-win32-x64@2.6.0': + resolution: {integrity: sha512-cA+/pXV2YkfxlIcXOQ5fSWqAzzPyD78/x5qbK/I0vUkrlYHA8TIz+MXjAbGouguKVSI4bOmkTSJ1/poVSsgt+A==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [win32] + + '@parcel/watcher@2.6.0': + resolution: {integrity: sha512-7FNeNl8NCE7aINx7WXiKQrPYZWC/hvrTsmk6zmxbI7LTXE7hVek/n8AfVgpe2y82zl3w0HvCHN0bVKMBoJcC0w==} + engines: {node: '>= 10.0.0'} + + '@pinojs/redact@0.4.0': + resolution: {integrity: sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==} + + '@pkgjs/parseargs@0.11.0': + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + + '@pkgr/core@0.3.6': + resolution: {integrity: sha512-SEeaJLb3qBNF/OaXnaR1NmmBbFYk1zC0ZH/52fATcRPLFg/p791YrcyFFy44Bo9sLaGuSuLp5Q6axbb/O+v/RA==} + engines: {node: ^14.18.0 || >=16.0.0} + + '@prisma/adapter-pg@7.10.0': + resolution: {integrity: sha512-N7nwSor0HO1Kz6xBv0TPAjAPysKK0fac6p4fVN3ensLOuzc/83Fgmln5k92eK/cvzqdkSR/2kkAqlbcdwVrwpw==} + + '@prisma/client-runtime-utils@7.10.0': + resolution: {integrity: sha512-cnCy7lUV8/CctgKVEmqAbSLAmwqJdE/qAlqTBk/0NDk59zEb2cZ0M0M0E4vVPnqbSEYudRroQDvOWfUZH6RIfw==} + + '@prisma/client@7.10.0': + resolution: {integrity: sha512-Ubw/QS9JGIBSBUsyxAUQuK/Jcu0Tsva7le7QbLd91Kix9yJvYDdj5QkwgEbbZniH80dd+sziQcALPc+HnvQC8Q==} + engines: {node: ^20.19 || ^22.12 || >=24.0} + peerDependencies: + prisma: '*' + typescript: '>=5.4.0' + peerDependenciesMeta: + prisma: + optional: true + typescript: + optional: true + + '@prisma/config@7.10.0': + resolution: {integrity: sha512-Rcg828gIRE3HOQ3pOATFjV5d/P0U9OIobxhd/IMxlfWjA4vru0eGwb0AIwFw0rmcLMVShohZYWPixVxkBHsxUA==} + + '@prisma/debug@7.10.0': + resolution: {integrity: sha512-caygJKtltmRIgdJ3jRpkOr7yM4DW6zxo5uOmojKWFb3asnxWoRkQOwZmXBgD8FZp4htrX+nMpcWqDwzlQ1+Y4g==} + + '@prisma/debug@7.2.0': + resolution: {integrity: sha512-YSGTiSlBAVJPzX4ONZmMotL+ozJwQjRmZweQNIq/ER0tQJKJynNkRB3kyvt37eOfsbMCXk3gnLF6J9OJ4QWftw==} + + '@prisma/dev@0.24.17': + resolution: {integrity: sha512-UvdZzmpFwknnfreh6Jije84ekkYGPYEJhXG1tFzCsCfQyzJifrOo38eZc0qajzvaC6OLUOrN9ML5XfCnEZL9DA==} + + '@prisma/driver-adapter-utils@7.10.0': + resolution: {integrity: sha512-u8zkcRLlaryO652T4qavBg0HmzNW5tSKdsCn6hc1PhWAp/J6k0vrxLuUs+b9o+HcjsK7Dfa01o4OFSn0frauJA==} + + '@prisma/engines-version@7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3': + resolution: {integrity: sha512-8OJ6RuZTZ06eFUOtBwxVmv8XMmOW6HWN5F+uxUbZkGxR0Bfab1dfAdXaHPmR5mb59E+fmUo8IOzXlbLY1SClbw==} + + '@prisma/engines@7.10.0': + resolution: {integrity: sha512-KNumN6NHFwybvfdYzTee9pqwx5PvknpWAaHn6L5NsbrKdl+SQrsVZs9opKs6U6SAsvB26HDt3WybRjOhgoWOYQ==} + + '@prisma/fetch-engine@7.10.0': + resolution: {integrity: sha512-Zqyu8DY14t6W/xwmAxUYWCXtHrvQnSvT644EAZSsdM8NSmCS74vJJbBKdVsK3ucFpnUWkEpbO1a0CxJXrg130g==} + + '@prisma/get-platform@7.10.0': + resolution: {integrity: sha512-0bra1LFYi8xNw0yqV62bHJNQk4BKleOngZiqPWIQc7a3+9q6rqsnqJ15BuepP8943PFMvtmgnP52juZsyYkA6w==} + + '@prisma/get-platform@7.2.0': + resolution: {integrity: sha512-k1V0l0Td1732EHpAfi2eySTezyllok9dXb6UQanajkJQzPUGi3vO2z7jdkz67SypFTdmbnyGYxvEvYZdZsMAVA==} + + '@prisma/query-plan-executor@7.2.0': + resolution: {integrity: sha512-EOZmNzcV8uJ0mae3DhTsiHgoNCuu1J9mULQpGCh62zN3PxPTd+qI9tJvk5jOst8WHKQNwJWR3b39t0XvfBB0WQ==} + + '@prisma/streams-local@0.1.11': + resolution: {integrity: sha512-0TcebL559MByKqTJ+SsrFIEg228iw8UCVRFckzgfRSiJqczhs+MuAgWOF9lnOIV/IVqvu+KMnFTH0eDeTQMpUg==} + engines: {bun: '>=1.2.0', node: '>=22.0.0'} + + '@prisma/studio-core@0.33.0': + resolution: {integrity: sha512-V2fX/nKEymNTrHXwfP26PGjoLStO35Ogu+ex7CFJbLrMYEcZxxZpiSNOs7px23Hk5mzLWvM5RsqG6Ka+rha+wg==} + engines: {node: ^20.19 || ^22.12 || >=24.0, pnpm: '8'} + peerDependencies: + '@types/react': ^18.0.0 || ^19.0.0 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + + '@radix-ui/primitive@1.1.3': + resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==} + + '@radix-ui/react-compose-refs@1.1.2': + resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-primitive@2.1.3': + resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-slot@1.2.3': + resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-toggle@1.1.10': + resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-use-controllable-state@1.2.2': + resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-effect-event@0.0.2': + resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-layout-effect@1.1.1': + resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@scalar/client-side-rendering@0.4.1': + resolution: {integrity: sha512-4Ha2ihIPFwmhheSU6U9DlpjgRQ2YOqq2JSmc4ubT2ERApaA/HzuZ1IMyLXDvRICI+KbDducfGw5th9O+TQf+6A==} + engines: {node: '>=22'} + + '@scalar/helpers@0.12.0': + resolution: {integrity: sha512-rcX0rFLiWWc0VBr/E+HkatubL0I0ZzxASQkd3032NWEMAEfNd2TiJ9kH46HwbSAOOl696ghxymWegjpjjvxwzA==} + engines: {node: '>=22'} + + '@scalar/nestjs-api-reference@1.2.19': + resolution: {integrity: sha512-DYaZv+JQrLxG5B439+sHY0UbYwqwLip5bHYGnJhfO1SXKcjWCbNxwOV0yIxp8VGR+96g+pc2LPww7/b8ma0oEQ==} + engines: {node: '>=22'} + + '@scalar/schemas@0.10.0': + resolution: {integrity: sha512-jFqfd+oqqlTfs87V+QkIrR9DiRv+/h1x3GzSGbGe1qrM6togeXwvVG4aurn+LZ+Ej9of54/6FmoI8DPuLOKx7A==} + engines: {node: '>=22'} + + '@scalar/types@0.20.0': + resolution: {integrity: sha512-+05slk/Q6MRMqEQt6eM77Jt9DnDPAvfcc/6r7mbrXhIqJSp3oAPrixpAnp1knBSlFaxgixcK/GMKw9QDfD+Zgg==} + engines: {node: '>=22'} + + '@scalar/validation@0.6.3': + resolution: {integrity: sha512-j3s9XPv8Wo1EG5/naBi4XGF0uXYQ2A3QZNI0NKWgCMxRHVrDJGlZEYymcHDHY7fquRm73P8U3c8xqJqB5yad6w==} + engines: {node: '>=20'} + + '@scarf/scarf@1.4.0': + resolution: {integrity: sha512-xxeapPiUXdZAE3che6f3xogoJPeZgig6omHEy1rIY5WVsB3H2BHNnZH+gHG6x91SCWyQCzWGsuL2Hh3ClO5/qQ==} + + '@sinclair/typebox@0.34.52': + resolution: {integrity: sha512-XiMQh7qqVlxZzcVD+kkGMNGMzcTrDMLWI7S4x7z1MkCkbDPrekpZXEUK0eZqZFMuHQg2a2DZOcDIh9o5v3Gonw==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@sinonjs/commons@3.0.1': + resolution: {integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==} + + '@sinonjs/fake-timers@15.4.0': + resolution: {integrity: sha512-DsG+8/LscQIQg68J6Ef3dv10u6nVyetYn923s3/sus5eaGfTo1of5WMZSLf0UJc9KDuKPilPH0UDJCjvNbDNCA==} + + '@smithy/core@3.39.0': + resolution: {integrity: sha512-JJ/46AWQ4ipS1N2eZmUj7yzIhH8NhQIfAE+dce7NSB6dmFh+7hvD4pbofcoT4I0Xzfy/LNhZx3V2QhwYyAiqdg==} + 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.1': + resolution: {integrity: sha512-h8BdMUrUBhMhMaeK7QqAdINRZezCGuYOCpcOZZ1ewxbHST9rdTd09xwNpvLTYfzDRehxQiReK4SKbdYZxBA+ew==} + engines: {node: '>=18.0.0'} + + '@smithy/node-http-handler@4.14.2': + resolution: {integrity: sha512-i1uORV1v3qBqP43ayRKzIdm1q5x14tf8N4Dd06/QUX1Szm6VxHMrTsu20X5E63UFsaNZCRjI4SXG0jDmqYa+3w==} + engines: {node: '>=18.0.0'} + + '@smithy/signature-v4@5.7.5': + resolution: {integrity: sha512-WPjdr5oWOk1LArpI4pavu+fSo+/evi0Re1olxGvqwuZopd4gYR1UGCi+Soyn/IjmafqbWs+ZC+3AKxJS3ZpwUg==} + engines: {node: '>=18.0.0'} + + '@smithy/types@4.20.0': + resolution: {integrity: sha512-lCA6QG22dPk9ecHbv91jDQZsmtPUjdS1aE2Il6NNPqe7DrYc0dZQi6DhcESk2KYXH2sp5xbAcGdYMZDFnuzA2A==} + engines: {node: '>=18.0.0'} + + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + + '@tokenizer/inflate@0.4.1': + resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==} + engines: {node: '>=18'} + + '@tokenizer/token@0.3.0': + resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==} + + '@tsconfig/node10@1.0.13': + resolution: {integrity: sha512-gcLdvR9HO1ZJBypsOGqaP6TFEzb6vIta0KSTLt9NAQ6pXQO3cRgSVyCN6pzYqI9DlJgY71XKO0dpDhCf08b3pg==} + + '@tsconfig/node12@1.0.11': + resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} + + '@tsconfig/node14@1.0.3': + resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} + + '@tsconfig/node16@1.0.4': + resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/babel__core@7.20.5': + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} + + '@types/babel__generator@7.27.0': + resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==} + + '@types/babel__template@7.4.4': + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} + + '@types/babel__traverse@7.28.0': + resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} + + '@types/cookiejar@2.1.5': + resolution: {integrity: sha512-he+DHOWReW0nghN24E1WUqM0efK4kI9oTqDm6XmK8ZPe2djZ90BSNdGnIyCLzCPw7/pogPlGbzI2wHGGmi4O/Q==} + + '@types/d3-array@3.0.3': + resolution: {integrity: sha512-Reoy+pKnvsksN0lQUlcH6dOGjRZ/3WRwXR//m+/8lt1BXeI4xyaUZoqULNjyXXRuh0Mj4LNpkCvhUpQlY3X5xQ==} + + '@types/d3-color@3.1.0': + resolution: {integrity: sha512-HKuicPHJuvPgCD+np6Se9MQvS6OCbJmOjGvylzMJRlDwUXjKTTXs6Pwgk79O09Vj/ho3u1ofXnhFOaEWWPrlwA==} + + '@types/d3-delaunay@6.0.1': + resolution: {integrity: sha512-tLxQ2sfT0p6sxdG75c6f/ekqxjyYR0+LwPrsO1mbC9YDBzPJhs2HbJJRrn8Ez1DBoHRo2yx7YEATI+8V1nGMnQ==} + + '@types/d3-format@3.0.1': + resolution: {integrity: sha512-5KY70ifCCzorkLuIkDe0Z9YTf9RR2CjBX1iaJG+rgM/cPP+sO+q9YdQ9WdhQcgPj1EQiJ2/0+yUkkziTG6Lubg==} + + '@types/d3-geo@3.1.0': + resolution: {integrity: sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==} + + '@types/d3-interpolate@3.0.1': + resolution: {integrity: sha512-jx5leotSeac3jr0RePOH1KdR9rISG91QIE4Q2PYTu4OymLTZfA3SrnURSLzKH48HmXVUru50b8nje4E79oQSQw==} + + '@types/d3-path@3.1.1': + resolution: {integrity: sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==} + + '@types/d3-scale@4.0.2': + resolution: {integrity: sha512-Yk4htunhPAwN0XGlIwArRomOjdoBFXC3+kCxK2Ubg7I9shQlVSJy/pG/Ht5ASN+gdMIalpk8TJ5xV74jFsetLA==} + + '@types/d3-shape@3.1.7': + resolution: {integrity: sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==} + + '@types/d3-time-format@2.1.0': + resolution: {integrity: sha512-/myT3I7EwlukNOX2xVdMzb8FRgNzRMpsZddwst9Ld/VFe6LyJyRp0s32l/V9XoUzk+Gqu56F/oGk6507+8BxrA==} + + '@types/d3-time@3.0.0': + resolution: {integrity: sha512-sZLCdHvBUcNby1cB6Fd3ZBrABbjz3v1Vm90nysCQ6Vt7vd6e/h9Lt7SiJUoEX0l4Dzc7P5llKyhqSi1ycSf1Hg==} + + '@types/estree@1.0.9': + resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + + '@types/geojson@7946.0.16': + resolution: {integrity: sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==} + + '@types/istanbul-lib-coverage@2.0.6': + resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} + + '@types/istanbul-lib-report@3.0.3': + resolution: {integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==} + + '@types/istanbul-reports@3.0.4': + resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} + + '@types/jest@30.0.0': + resolution: {integrity: sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==} + + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + + '@types/lodash@4.17.26': + resolution: {integrity: sha512-48NWfiY6oNcKOh47Z4h+sIvwcQR91h6KPhaYKgeMIrkT2jV82Gy90SErj60vW8jQbeMSOSbhIv3bZ7JoqPPVhA==} + + '@types/methods@1.1.4': + resolution: {integrity: sha512-ymXWVrDiCxTBE3+RIrrP533E70eA+9qu7zdWoHuOmGujkYtzf4HQF96b8nwHLqhuf4ykX61IGRIB38CC6/sImQ==} + + '@types/node@24.13.6': + resolution: {integrity: sha512-SGrw/h3KPFshy3OE6ZL53LMBG5vGQQ8/gIpiqz/kRZhPJ7HgwCEs8LBuNtWLa8dvGZVpSF7+Bf+c11HUrCb/yg==} + + '@types/pg@8.23.1': + resolution: {integrity: sha512-fKVHpikPdg4GKks3JuLEhvwSyvwzF23hnabPy6DD8ljVbC7+6J5dQzdv4arV6jqq57djnMgs1HKBxX4P8aBI3A==} + + '@types/react@19.3.0': + resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==} + + '@types/stack-utils@2.0.3': + resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} + + '@types/superagent@8.1.11': + resolution: {integrity: sha512-KA7srSW/HENDtOw9DOqaFLgWuMqN9WgjEw62lh9dpvRaZDkhdOkazASd7X7i2eMUYLHa1U37ZttnePsH5zTDHw==} + + '@types/supertest@7.2.1': + resolution: {integrity: sha512-4CbBvoYVLHL7+yhbYrZET0vsvuyXTC05aRe7dNQkwMzm56auceoy6Yu3K50uZmwfHna1os3CMSgM/3QVkUtPTw==} + + '@types/yargs-parser@21.0.3': + resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} + + '@types/yargs@17.0.35': + resolution: {integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==} + + '@ungap/structured-clone@1.4.0': + resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} + + '@unrs/resolver-binding-android-arm-eabi@1.12.2': + resolution: {integrity: sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==} + cpu: [arm] + os: [android] + + '@unrs/resolver-binding-android-arm64@1.12.2': + resolution: {integrity: sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==} + cpu: [arm64] + os: [android] + + '@unrs/resolver-binding-darwin-arm64@1.12.2': + resolution: {integrity: sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==} + cpu: [arm64] + os: [darwin] + + '@unrs/resolver-binding-darwin-x64@1.12.2': + resolution: {integrity: sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==} + cpu: [x64] + os: [darwin] + + '@unrs/resolver-binding-freebsd-x64@1.12.2': + resolution: {integrity: sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==} + cpu: [x64] + os: [freebsd] + + '@unrs/resolver-binding-linux-arm-gnueabihf@1.12.2': + resolution: {integrity: sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==} + cpu: [arm] + os: [linux] + + '@unrs/resolver-binding-linux-arm-musleabihf@1.12.2': + resolution: {integrity: sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==} + cpu: [arm] + os: [linux] + + '@unrs/resolver-binding-linux-arm64-gnu@1.12.2': + resolution: {integrity: sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==} + cpu: [arm64] + os: [linux] + + '@unrs/resolver-binding-linux-arm64-musl@1.12.2': + resolution: {integrity: sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==} + cpu: [arm64] + os: [linux] + + '@unrs/resolver-binding-linux-loong64-gnu@1.12.2': + resolution: {integrity: sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==} + cpu: [loong64] + os: [linux] + + '@unrs/resolver-binding-linux-loong64-musl@1.12.2': + resolution: {integrity: sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==} + cpu: [loong64] + os: [linux] + + '@unrs/resolver-binding-linux-ppc64-gnu@1.12.2': + resolution: {integrity: sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==} + cpu: [ppc64] + os: [linux] + + '@unrs/resolver-binding-linux-riscv64-gnu@1.12.2': + resolution: {integrity: sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==} + cpu: [riscv64] + os: [linux] + + '@unrs/resolver-binding-linux-riscv64-musl@1.12.2': + resolution: {integrity: sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==} + cpu: [riscv64] + os: [linux] + + '@unrs/resolver-binding-linux-s390x-gnu@1.12.2': + resolution: {integrity: sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==} + cpu: [s390x] + os: [linux] + + '@unrs/resolver-binding-linux-x64-gnu@1.12.2': + resolution: {integrity: sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==} + cpu: [x64] + os: [linux] + + '@unrs/resolver-binding-linux-x64-musl@1.12.2': + resolution: {integrity: sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==} + cpu: [x64] + os: [linux] + + '@unrs/resolver-binding-openharmony-arm64@1.12.2': + resolution: {integrity: sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==} + cpu: [arm64] + os: [openharmony] + + '@unrs/resolver-binding-wasm32-wasi@1.12.2': + resolution: {integrity: sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + + '@unrs/resolver-binding-win32-arm64-msvc@1.12.2': + resolution: {integrity: sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==} + cpu: [arm64] + os: [win32] + + '@unrs/resolver-binding-win32-ia32-msvc@1.12.2': + resolution: {integrity: sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==} + cpu: [ia32] + os: [win32] + + '@unrs/resolver-binding-win32-x64-msvc@1.12.2': + resolution: {integrity: sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==} + cpu: [x64] + os: [win32] + + '@visx/curve@4.0.1-alpha.0': + resolution: {integrity: sha512-jRu61Uz274pV1zyioXmboyrLutYbnKsgjj4njSGCnhdXj5GkZvZbg+ThDb6oOzoAnJOBRLz4rzPlWvNJOzuVMg==} + + '@visx/event@4.0.1-alpha.0': + resolution: {integrity: sha512-EQqCMSv/s8NbFjo+hz3FKsvvYfP+2QslsFJ/24/O5l/W+7UC6J6aAvO0ujVwrTwdYbuQ+vhxKi1xdPdKR/qj1g==} + + '@visx/grid@4.0.1-alpha.0': + resolution: {integrity: sha512-rycutGmTHO+znNdPumheWMglm7YfpffvRwUkVy5zy4WoORIuKTMkDxwnOzHG2xMxU3EE/YCd37xFV5AxA30yeg==} + peerDependencies: + react: ^16.14.0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0 + + '@visx/group@4.0.1-alpha.0': + resolution: {integrity: sha512-V19l7iQ7jccBv8kao/EByuI6o4xtxzzLV9nqVI1hRvmdzTVsuLpqlwzYCZUXJaTVvUWf8s4D2SQFjGkj/Nw+0w==} + peerDependencies: + react: ^16.14.0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0 + + '@visx/point@4.0.1-alpha.0': + resolution: {integrity: sha512-ijTfr/Nx09f03vIj9nyTr3z4Xth4Y75427UaogJh6dnIRLMEFHQOwNu791sbfiNj0a+ZXuaE32h0vKrFe4/8Qg==} + + '@visx/responsive@4.0.1-alpha.0': + resolution: {integrity: sha512-o+1zGywQZY0+yOx3Iw87wc4bbPJRr/HnIukTwfOz4UVyj9pB1OQNVHB7OORO1+LBHJceWpB31co/ZV9KHncKrA==} + peerDependencies: + react: ^16.14.0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0 + + '@visx/scale@4.0.1-alpha.0': + resolution: {integrity: sha512-nzjeE87vFSAXGWFiiNfBpNLAf0Q8Qmf6syvKLjqNi4kGZkdhbUll3E/59YsgWXmjM8+llPLWzGsP+JPvo5eq1A==} + + '@visx/shape@4.0.1-alpha.0': + resolution: {integrity: sha512-62QeiVNmPlterQGwhkEDcbq7M0MqY0lBsK5QKXtM9ZoPZWkuGV3aykA3+Xu20B2FAvyJq4LqJzBc7Sxr+EAdbA==} + peerDependencies: + react: ^16.14.0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0 + + '@visx/vendor@4.0.0-alpha.0': + resolution: {integrity: sha512-6I+MuqXBcv9jnlcVowHoHKSdk9gXTWkHLKyqBwRWg7LY6A3Ei8SHfubpqGV5rBUSppxMq2RszPJUS6w+H0YgmQ==} + + '@webassemblyjs/ast@1.14.1': + resolution: {integrity: sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==} + + '@webassemblyjs/floating-point-hex-parser@1.13.2': + resolution: {integrity: sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==} + + '@webassemblyjs/helper-api-error@1.13.2': + resolution: {integrity: sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==} + + '@webassemblyjs/helper-buffer@1.14.1': + resolution: {integrity: sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==} + + '@webassemblyjs/helper-numbers@1.13.2': + resolution: {integrity: sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==} + + '@webassemblyjs/helper-wasm-bytecode@1.13.2': + resolution: {integrity: sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==} + + '@webassemblyjs/helper-wasm-section@1.14.1': + resolution: {integrity: sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==} + + '@webassemblyjs/ieee754@1.13.2': + resolution: {integrity: sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==} + + '@webassemblyjs/leb128@1.13.2': + resolution: {integrity: sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==} + + '@webassemblyjs/utf8@1.13.2': + resolution: {integrity: sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==} + + '@webassemblyjs/wasm-edit@1.14.1': + resolution: {integrity: sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==} + + '@webassemblyjs/wasm-gen@1.14.1': + resolution: {integrity: sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==} + + '@webassemblyjs/wasm-opt@1.14.1': + resolution: {integrity: sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==} + + '@webassemblyjs/wasm-parser@1.14.1': + resolution: {integrity: sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==} + + '@webassemblyjs/wast-printer@1.14.1': + resolution: {integrity: sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==} + + '@xtuc/ieee754@1.2.0': + resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} + + '@xtuc/long@4.2.2': + resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==} + + abstract-logging@2.0.1: + resolution: {integrity: sha512-2BjRTZxTPvheOvGbBslFSYOUkr+SjPtOnrLP33f+VIWLzezQpZcqVg7ja3L4dBXmzzgwT+a029jRx5PCi3JuiA==} + + accepts@2.0.0: + resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} + engines: {node: '>= 0.6'} + + acorn-walk@8.3.5: + resolution: {integrity: sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw==} + engines: {node: '>=0.4.0'} + + acorn@8.18.0: + resolution: {integrity: sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==} + engines: {node: '>=0.4.0'} + hasBin: true + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv-keywords@5.1.0: + resolution: {integrity: sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==} + peerDependencies: + ajv: ^8.8.2 + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-escapes@4.3.2: + resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} + engines: {node: '>=8'} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-regex@6.3.0: + resolution: {integrity: sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==} + engines: {node: '>=12'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansi-styles@5.2.0: + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} + + ansi-styles@6.2.3: + resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} + engines: {node: '>=12'} + + ansis@4.4.0: + resolution: {integrity: sha512-9k3v7xcHwgdO/DruxGIg4HtjvlAZlcnsX/mzqUb1t3NkYnl9kK2UJ+Gq0io+vQf7iT//BD/HB/NBkUR1LWxoeA==} + engines: {node: '>=14'} + + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + + append-field@1.0.0: + resolution: {integrity: sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==} + + arg@4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + + argparse@1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + array-timsort@1.0.3: + resolution: {integrity: sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==} + + asap@2.0.6: + resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==} + + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + + atomic-sleep@1.0.0: + resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} + engines: {node: '>=8.0.0'} + + avvio@9.3.0: + resolution: {integrity: sha512-g2tQ7LE7oOSqDfwEm3M+ZCMTJc7KiZCdJ4UwyZJb5ckTKyYu50OYmvv0mCFXPuYXoM4zkSt8zM9XQ9KCvxA74A==} + + aws-ssl-profiles@1.1.2: + resolution: {integrity: sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==} + engines: {node: '>= 6.0.0'} + + babel-jest@30.5.2: + resolution: {integrity: sha512-ES8WeJ2fNWPEDunyAtUfJ12nHyaWUloCHdkfK2oW5uSoQSUmjNKdWiGaXJITJwvFEWoD/evHEg/QoCXAvLaQqQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + peerDependencies: + '@babel/core': ^7.11.0 || ^8.0.0-0 + + babel-plugin-istanbul@8.0.0: + resolution: {integrity: sha512-18wCskrN3DgbuBmp1gr7LBGT8xdz5xhQQqFvFhVxbkl8VBCrMKQ2YtqBWtUal1Zrc1HTuX0011+Brjw78TCFkg==} + engines: {node: '>=18'} + + babel-plugin-jest-hoist@30.5.0: + resolution: {integrity: sha512-gtGo1B+u14jrZQv6TdSWIWkTqclboo7Qn+dFAGUOIuXLFuJKAdg3U5MIWzZnW4vfUb4dX9skmAMiby86e/SF4A==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + babel-preset-current-node-syntax@1.2.0: + resolution: {integrity: sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==} + peerDependencies: + '@babel/core': ^7.0.0 || ^8.0.0-0 + + babel-preset-jest@30.5.0: + resolution: {integrity: sha512-ZGPn5ClP4lBDpuOK8W1yQIOy359HmbnZv3suucAlIe+SEE9yDsxV4S2PjSbH2Vc97U+WmzYD7vw3kr8NsQ/i6w==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + peerDependencies: + '@babel/core': ^7.11.0 || ^8.0.0-beta.1 || ^8.0.0 + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + + base64-js@1.5.1: + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + + baseline-browser-mapping@2.11.25: + resolution: {integrity: sha512-gMmEShwwq7FJqMwvfRwvCl00v4kN+KOfJqXn+f4nrufak5gNHJOksd/60Dvjuz7sI8Y5WiSFBa8FEYr+zoyqCw==} + engines: {node: '>=6.0.0'} + hasBin: true + + better-result@2.10.0: + resolution: {integrity: sha512-oQhh0y1qo2/ZKdAAEvHZAqKKiHOFU5k/bW96fE2ScgQOVkJRiHwB+nOS1SgFsYqRlxMDWvefXi9Q3px7QvgNDw==} + + bl@4.1.0: + resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} + + body-parser@2.3.0: + resolution: {integrity: sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==} + engines: {node: '>=18'} + + bowser@2.15.0: + resolution: {integrity: sha512-xic6KSZglg/I4ymp45fdM4GWfYpBK79Fxd/TOvJktlaPgQqqDxvmGwOPZl2V0dyeS3Lj5c180bLhXF43iyAjZQ==} + + brace-expansion@2.1.7: + resolution: {integrity: sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==} + + brace-expansion@5.0.12: + resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==} + engines: {node: 20 || >=22} + + browserslist@4.29.0: + resolution: {integrity: sha512-3GSvyjvDI4Dur1Meg2BekJquu5uF+9R9a1+5M1Mde192eZoXbeXjzgOsgqPS2V8D5wrrip0gR5Hf/GhWQ9ZzaA==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + + bs-logger@0.2.6: + resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==} + engines: {node: '>= 6'} + + bser@2.1.1: + resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} + + buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + + buffer@5.7.1: + resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} + + busboy@1.6.0: + resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} + engines: {node: '>=10.16.0'} + + bytes@3.1.2: + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} + + c12@3.3.4: + resolution: {integrity: sha512-cM0ApFQSBXuourJejzwv/AuPRvAxordTyParRVcHjjtXirtkzM0uK2L9TTn9s0cXZbG7E55jCivRQzoxYmRAlA==} + peerDependencies: + magicast: '*' + peerDependenciesMeta: + magicast: + optional: true + + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + + call-bound@1.0.4: + resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} + engines: {node: '>= 0.4'} + + callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + + camelcase@5.3.1: + resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} + engines: {node: '>=6'} + + camelcase@6.3.0: + resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} + engines: {node: '>=10'} + + caniuse-lite@1.0.30001810: + resolution: {integrity: sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@0.7.0: + resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chrome-trace-event@1.0.4: + resolution: {integrity: sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==} + engines: {node: '>=6.0'} + + ci-info@4.4.0: + resolution: {integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==} + engines: {node: '>=8'} + + cjs-module-lexer@2.2.1: + resolution: {integrity: sha512-Ca8swihM+/4yKecYHY52kgJd300hi2lADU/a1RxNTRe+RJ9jvqQlESpbz9DnG9mowez8qwXHB8qYdIUw9e+F5Q==} + + classnames@2.5.1: + resolution: {integrity: sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==} + + cli-cursor@3.1.0: + resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==} + engines: {node: '>=8'} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-progress@3.12.0: + resolution: {integrity: sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A==} + engines: {node: '>=4'} + + cli-spinners@2.9.2: + resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==} + engines: {node: '>=6'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-table3@0.6.5: + resolution: {integrity: sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==} + engines: {node: 10.* || >= 12.*} + + cli-width@3.0.0: + resolution: {integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==} + engines: {node: '>= 10'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + cliui@8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} + + clone@1.0.4: + resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} + engines: {node: '>=0.8'} + + cluster-key-slot@1.1.1: + resolution: {integrity: sha512-rwHwUfXL40Chm1r08yrhU3qpUvdVlgkKNeyeGPOxnW8/SyVDvgRaed/Uz54AqWNaTCAThlj6QAs3TZcKI0xDEw==} + engines: {node: '>=0.10.0'} + + co@4.6.0: + resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} + engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} + + collect-v8-coverage@1.0.3: + resolution: {integrity: sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + colorette@2.0.20: + resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} + + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + + commander@15.0.0: + resolution: {integrity: sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==} + engines: {node: '>=22.12.0'} + + commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + + commander@4.1.1: + resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} + engines: {node: '>= 6'} + + comment-json@5.0.0: + resolution: {integrity: sha512-uiqLcOiVDJtBP8WGkZHEP+FZIhTzP1dxvn59EfoYUi9gqupjrBWVQkO2atDrbnKPwLeotFYDsuNb26uBMqB+hw==} + engines: {node: '>= 6'} + + component-emitter@1.3.1: + resolution: {integrity: sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==} + + confbox@0.2.4: + resolution: {integrity: sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==} + + confbox@0.3.1: + resolution: {integrity: sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==} + + content-disposition@1.1.0: + resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==} + engines: {node: '>=18'} + + content-disposition@3.0.0: + resolution: {integrity: sha512-ZH/0Xs9rMIFWCOmGdmS9eHBTF62qqQYNz4nVjQhkdIO/a0fCP4UIM3mRz/wiqL0L14YgAz/1xio4OaSY4+ON/A==} + engines: {node: '>=22'} + + content-type@1.0.5: + resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} + engines: {node: '>= 0.6'} + + content-type@2.1.0: + resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==} + engines: {node: '>=18'} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + cookie-signature@1.2.2: + resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} + engines: {node: '>=6.6.0'} + + cookie@0.7.2: + resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} + engines: {node: '>= 0.6'} + + cookie@1.1.1: + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} + engines: {node: '>=18'} + + cookiejar@2.1.4: + resolution: {integrity: sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==} + + cors@2.8.6: + resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==} + engines: {node: '>= 0.10'} + + create-require@1.1.1: + resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + d3-array@3.2.1: + resolution: {integrity: sha512-gUY/qeHq/yNqqoCKNq4vtpFLdoCdvyNpWoC/KNjhGbhDuQpAM9sIQQKkXSNpXa9h5KySs/gzm7R88WkUutgwWQ==} + engines: {node: '>=12'} + + d3-array@3.2.4: + resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==} + engines: {node: '>=12'} + + d3-color@3.1.0: + resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==} + engines: {node: '>=12'} + + d3-delaunay@6.0.2: + resolution: {integrity: sha512-IMLNldruDQScrcfT+MWnazhHbDJhcRJyOEBAJfwQnHle1RPh6WDuLvxNArUju2VSMSUuKlY5BGHRJ2cYyoFLQQ==} + engines: {node: '>=12'} + + d3-format@3.1.0: + resolution: {integrity: sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==} + engines: {node: '>=12'} + + d3-geo@3.1.0: + resolution: {integrity: sha512-JEo5HxXDdDYXCaWdwLRt79y7giK8SbhZJbFWXqbRTolCHFI5jRqteLzCsq51NKbUoX0PjBVSohxrx+NoOUujYA==} + engines: {node: '>=12'} + + d3-interpolate@3.0.1: + resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==} + engines: {node: '>=12'} + + d3-path@3.1.0: + resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==} + engines: {node: '>=12'} + + d3-scale@4.0.2: + resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==} + engines: {node: '>=12'} + + d3-shape@3.2.0: + resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==} + engines: {node: '>=12'} + + d3-time-format@4.1.0: + resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==} + engines: {node: '>=12'} + + d3-time@3.1.0: + resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==} + engines: {node: '>=12'} + + dateformat@4.6.3: + resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + dedent@1.7.2: + resolution: {integrity: sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==} + peerDependencies: + babel-plugin-macros: ^3.1.0 + peerDependenciesMeta: + babel-plugin-macros: + optional: true + + deepmerge-ts@7.1.5: + resolution: {integrity: sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw==} + engines: {node: '>=16.0.0'} + + deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + + defaults@1.0.4: + resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + delaunator@5.1.0: + resolution: {integrity: sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==} + + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + + denque@2.1.0: + resolution: {integrity: sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==} + engines: {node: '>=0.10'} + + depd@2.0.0: + resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} + engines: {node: '>= 0.8'} + + dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + detect-newline@3.1.0: + resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==} + engines: {node: '>=8'} + + dezalgo@1.0.4: + resolution: {integrity: sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==} + + diff@4.0.4: + resolution: {integrity: sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ==} + engines: {node: '>=0.3.1'} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.7: + resolution: {integrity: sha512-QEvMEF8ca3GNZJJnAbOgxpj5ULhBvnMcURp+XKrtvqFNPgjBvYoswQ0Jl2cO7JzCjxZjJhr9ZuIEhlrRxMft/Q==} + engines: {node: '>=12'} + hasBin: true + + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + + eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + + ee-first@1.1.1: + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} + + effect@3.20.0: + resolution: {integrity: sha512-qMLfDJscrNG8p/aw+IkT9W7fgj50Z4wG5bLBy0Txsxz8iUHjDIkOgO3SV0WZfnQbNG2VJYb0b+rDLMrhM4+Krw==} + + electron-to-chromium@1.5.433: + resolution: {integrity: sha512-5lCAbyZBjtmUt/RAGHRqrL2q0oEFRThDAsZHHDn9XHa89Qw7gMYOeSicBTy+AHfvo0r6vwsZvqNJTQIQy1BLzA==} + + elkjs@0.11.1: + resolution: {integrity: sha512-zxxR9k+rx5ktMwT/FwyLdPCrq7xN6e4VGGHH8hA01vVYKjTFik7nHOxBnAYtrgYUB1RpAiLvA1/U2YraWxyKKg==} + + emittery@0.13.1: + resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} + engines: {node: '>=12'} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + empathic@2.0.0: + resolution: {integrity: sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==} + engines: {node: '>=14'} + + encodeurl@2.0.0: + resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} + engines: {node: '>= 0.8'} + + end-of-stream@1.4.5: + resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} + + enhanced-resolve@5.25.1: + resolution: {integrity: sha512-nGXts5znJzmWPu+mIE9izCOzdg63oJca2mDzGWWTth7sr4aCToKcoyFVBQwN75Ij5Pf6p510EwkTqViTRzDV+w==} + engines: {node: '>=10.13.0'} + + env-paths@3.0.0: + resolution: {integrity: sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + error-ex@1.3.4: + resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==} + + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + es-module-lexer@2.3.2: + resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} + + es-object-atoms@1.1.2: + resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} + engines: {node: '>= 0.4'} + + es-set-tostringtag@2.1.0: + resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} + engines: {node: '>= 0.4'} + + es-toolkit@1.51.0: + resolution: {integrity: sha512-zC2lQGkM7QX+Gm6iM3+WIdZJzthsEd14LvRNJneSO2hzyz/zNBENR8+YXWo1cKxgPBtV6ksPYHELbcwBRzmdCw==} + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + escape-html@1.0.3: + resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} + + escape-string-regexp@1.0.5: + resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} + engines: {node: '>=0.8.0'} + + escape-string-regexp@2.0.0: + resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} + engines: {node: '>=8'} + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + etag@1.8.1: + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} + + events@3.3.0: + resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} + engines: {node: '>=0.8.x'} + + execa@5.1.1: + resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} + engines: {node: '>=10'} + + exit-x@0.2.2: + resolution: {integrity: sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==} + engines: {node: '>= 0.8.0'} + + expect@30.5.2: + resolution: {integrity: sha512-0LNuMvs8/5mRYhnCR4k+lGV7fqPMs6Bnksda4S3zsCUmdxBpAn4zU4NNzXdq1pMKe/H4W5t/zVIDSJ/H3e0vDA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + express@5.2.1: + resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==} + engines: {node: '>= 18'} + + exsolve@1.1.3: + resolution: {integrity: sha512-kuzL9zherLQoqDeQaS55AiiIg1kb4KYXaSusTtgZTPlvKP2gGCI82LNmBNh5RjDVUXIcmgx+/Mx7vPwRzBbhJA==} + + external-editor@3.1.0: + resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} + engines: {node: '>=4'} + + fast-check@3.23.2: + resolution: {integrity: sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==} + engines: {node: '>=8.0.0'} + + fast-copy@4.1.1: + resolution: {integrity: sha512-A4QTJmuiztpGtr6AMeJts9R4hbj2ZBUwtOaKrG6rw2y7t6+IaJKjz5M3XDs8BUznxDH43FVc6A0y/gWlMl4UtA==} + + fast-decode-uri-component@1.0.1: + resolution: {integrity: sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + fast-json-stringify@7.0.1: + resolution: {integrity: sha512-eRSayARSbbwlBjpP4vnTTIRD5QPcIrmihPxDeN1DtKnHPg66UuJLx+8hlK1kaFdjvzyQ/dzALoi4vwAQ+T+iZA==} + + fast-querystring@1.1.2: + resolution: {integrity: sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==} + + fast-safe-stringify@2.1.1: + resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.8: + resolution: {integrity: sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==} + + fast-uri@4.2.1: + resolution: {integrity: sha512-TmHQgewjHtMq1E5QKA0tOE0yeYGQs25KZC/ziJpubRtWI15W92e6vPFydWOeZBVROSHBYw/QhD9d5OefdD6LDg==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fastify-plugin@6.0.0: + resolution: {integrity: sha512-fZOty7z3O7vOliF6d8bHE3wiEh1KcNnKEQensSgTk9C1DvN6nRLS++XVd86v33Hw/8u9Un8A1zDrQ8ujcQDHEg==} + + fastify@5.12.1: + resolution: {integrity: sha512-FWi+tQvwxR/PeRX7Z2mhfEF5ozJ3jn9asiiclzKXNSzJRHAYcU924aIOKAdHFJ+YIKieh3cqr1IwCOvTr41B3Q==} + + fastq@1.20.3: + resolution: {integrity: sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==} + + fb-watchman@2.0.2: + resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + figures@3.2.0: + resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==} + engines: {node: '>=8'} + + file-type@22.1.1: + resolution: {integrity: sha512-sEB0oStmeLGtpmSAD88RDNuLsvhv4iC3u0lE25CUvfCULvj49xoQ3l3K525Vn+ZzsZ6DOLajQCV6RmhwwhqiJg==} + engines: {node: '>=22'} + + finalhandler@2.1.1: + resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} + engines: {node: '>= 18.0.0'} + + find-my-way@9.7.0: + resolution: {integrity: sha512-f2JHn75x2JlwUwLenZypgczR7YWMb/uO9BvUXtus+JMgkbIkLADd38cI4EiV+OQqrGo1Zlq6V8wnqMJ8e62wUQ==} + engines: {node: '>=20'} + + find-my-way@9.9.0: + resolution: {integrity: sha512-sJsgZ1sQH2UDuowPuMKg8az7Qc8F0jnj+SKkFWU/+T0xcFlgV5skgXOGUqmQzOdmW6ALA7AhJINWx3qFBkbLHA==} + engines: {node: '>=20'} + + find-up@4.1.0: + resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} + engines: {node: '>=8'} + + foreground-child@3.3.1: + resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} + engines: {node: '>=14'} + + form-data@4.0.6: + resolution: {integrity: sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==} + engines: {node: '>= 6'} + + formidable@3.5.4: + resolution: {integrity: sha512-YikH+7CUTOtP44ZTnUhR7Ic2UASBPOqmaRkRKxRbywPTe5VxF7RRCck4af9wutiZ/QKM5nME9Bie2fFaPz5Gug==} + engines: {node: '>=14.0.0'} + + forwarded@0.2.0: + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} + + fresh@2.0.0: + resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} + engines: {node: '>= 0.8'} + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + generate-function@2.3.1: + resolution: {integrity: sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==} + + gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + + get-package-type@0.1.0: + resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==} + engines: {node: '>=8.0.0'} + + get-port-please@3.2.0: + resolution: {integrity: sha512-I9QVvBw5U/hw3RmWpYKRumUeaDgxTPd401x364rLmWBJcOQ753eov1eTgzDqRG9bqFIfDc7gfzcQEWrUri3o1A==} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + + get-stream@6.0.1: + resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} + engines: {node: '>=10'} + + giget@3.3.1: + resolution: {integrity: sha512-r+mvuDjrjMpsdw46Kmeydb8bdHm7wOKw8wNBtTndkjbPjgAp5oUJUxRE76wZFknxIPokfWvep2qSXK37aXE6zg==} + hasBin: true + + glob@10.5.0: + resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + hasBin: true + + glob@13.0.6: + resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} + engines: {node: 18 || 20 || >=22} + + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + grammex@3.1.13: + resolution: {integrity: sha512-LnPnhOBLEJEVKS8WFDVaA397L9Kq55Q9oSITJiVLHVdhAclfUkWzQv74KhvZHKL2Q09Pb1XdsrOsZ4LfTFFTEg==} + + graphmatch@1.1.1: + resolution: {integrity: sha512-5ykVn/EXM1hF0XCaWh05VbYvEiOL2lY1kBxZtaYsyvjp7cmWOU1XsAdfQBwClraEofXDT197lFbXOEVMHpvQOg==} + + handlebars@4.7.9: + resolution: {integrity: sha512-4E71E0rpOaQuJR2A3xDZ+GM1HyWYv1clR58tC8emQNeQe3RH7MAzSbat+V0wG78LQBo6m6bzSG/L4pBuCsgnUQ==} + engines: {node: '>=0.4.7'} + hasBin: true + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + + has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + + hasown@2.0.4: + resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} + engines: {node: '>= 0.4'} + + help-me@5.0.0: + resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==} + + html-escaper@2.0.2: + resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} + + http-errors@2.0.1: + resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} + engines: {node: '>= 0.8'} + + human-signals@2.1.0: + resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} + engines: {node: '>=10.17.0'} + + iconv-lite@0.4.24: + resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} + engines: {node: '>=0.10.0'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + + import-local@3.2.0: + resolution: {integrity: sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==} + engines: {node: '>=8'} + hasBin: true + + imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + inquirer@8.2.6: + resolution: {integrity: sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==} + engines: {node: '>=12.0.0'} + + internmap@2.0.3: + resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==} + engines: {node: '>=12'} + + ioredis@6.0.0: + resolution: {integrity: sha512-f+Dtubxfpf6KYFq7WVXJoOLn0bk4TJrMrN9SzeE+jrWrCWj7XX3fA6vkryafhADX+GMymRxgDJDOI33COkJc0w==} + engines: {node: '>=20.0.0'} + + ipaddr.js@1.9.1: + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} + + ipaddr.js@2.5.0: + resolution: {integrity: sha512-aq+t5NAc+cS6rZQQVWC2x98CPqGtKKTMDd4Gaodv0wShnItdKg/51djkGJ1hqH+Oy0ivDftCbSLCQob8zso01w==} + engines: {node: '>= 10'} + + is-arrayish@0.2.1: + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-generator-fn@2.1.0: + resolution: {integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==} + engines: {node: '>=6'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-interactive@1.0.0: + resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==} + engines: {node: '>=8'} + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-promise@4.0.0: + resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} + + is-property@1.0.2: + resolution: {integrity: sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==} + + is-stream@2.0.1: + resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} + engines: {node: '>=8'} + + is-unicode-supported@0.1.0: + resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} + engines: {node: '>=10'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + istanbul-lib-coverage@3.2.2: + resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} + engines: {node: '>=8'} + + istanbul-lib-instrument@6.0.3: + resolution: {integrity: sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==} + engines: {node: '>=10'} + + istanbul-lib-report@3.0.1: + resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} + engines: {node: '>=10'} + + istanbul-lib-source-maps@5.0.6: + resolution: {integrity: sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==} + engines: {node: '>=10'} + + istanbul-reports@3.2.0: + resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==} + engines: {node: '>=8'} + + iterare@1.2.1: + resolution: {integrity: sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==} + engines: {node: '>=6'} + + jackspeak@3.4.3: + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + + jest-changed-files@30.5.1: + resolution: {integrity: sha512-0+bvMM/ENhDI29Z8q1r4HxiDIi4G5tnBmSw4esfPQoj9q8Nik7KIyuxHkTVnnniJQf05SxpGaKDQ+4h28ynGPg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-circus@30.5.2: + resolution: {integrity: sha512-vffFgjs5JSJ9q4ds1vNW3klKYPJfYfIY61LT/zaZgvTeASJOWZUt8LBfHgIcV4rwxlPBLl/ePBGccHEclS4PlQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-cli@30.5.2: + resolution: {integrity: sha512-YYYxUUVjFgPvgEleKNKMaYGIFgR3l3832Cl0kRL/oCiDZ03v7wImUtquHl2OOBCCNgprjZgBN5bczS/JklPBDg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + hasBin: true + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + + jest-config@30.5.2: + resolution: {integrity: sha512-U6221OZekabePvGcGPf4raIBKMvYQWFHvhobDJRojOYaFMj2HaGytAdknjDhYc6JTz2fdHW9+6k0wWUDaNeOFQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + peerDependencies: + '@types/node': '*' + esbuild-register: '>=3.4.0' + ts-node: '>=9.0.0' + peerDependenciesMeta: + '@types/node': + optional: true + esbuild-register: + optional: true + ts-node: + optional: true + + jest-diff@30.5.2: + resolution: {integrity: sha512-rBtHnI6BWTiWj3lM7fOLVfChx7R9B0u9VV3PRHawKs79x6ZjW1QoSrKenaigNGWlvhtoi2BqvDbABDie+Os3xQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-docblock@30.5.0: + resolution: {integrity: sha512-NwDqcxtoZi33RhuW+zJS/RVA3rmheQ8BnwpYZuc/Eruaz6seQb7+aoCeDZu/3X7W2XmD8DbSo9Pn72DbKsBFYw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-each@30.5.2: + resolution: {integrity: sha512-GRrW+7fmmgmkvyfEBqc1QFdWnF1Ex5yG6Y6AWL4TTxnkWlKIT98dsKh3P3UuWm6v4XsQwVE6DEzXIPMzWJ3ZbA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-environment-node@30.5.2: + resolution: {integrity: sha512-Ciz4KgTGIbojxSKpuFImgWJj5EyqfE8xMq9NxWmOXnQywHHS03H9Mv+vaCB29J5pr3JBrY27WbRV18rBdjh8Dg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-haste-map@30.5.1: + resolution: {integrity: sha512-VIFgt67jW480YDxKfEv9IYQKrFpYt7bOCMn3VsnjK7AK9qo7p6acpnA1DHwsVOULE3dTaYew/6JaTD/d0VDHoQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-leak-detector@30.5.1: + resolution: {integrity: sha512-gt4GT2aWgEoCNTcBe4rqS74xTIUJxi+UD9SNSu9aOk5LmTEd6fS5KSTmAKAfitCCktQHNN+upUuL6EkBfFbMDQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-matcher-utils@30.5.2: + resolution: {integrity: sha512-lFkB365PTIHOhPzwrb9T6gvlDnPpOZ7/c3ewOKKB7bzztqjVrtlyRL2MkyfJXpyY2u2SKw001JKrTx14fBUFcQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-message-util@30.5.1: + resolution: {integrity: sha512-UdQlLdd9wL/Ys7xRErckqwD6wPlSZYueosSWuHc1r2ztGLwlgPvtSJq2+BPEgaEY13WLvfFbmhTj8pba0Sd1jg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-mock@30.5.2: + resolution: {integrity: sha512-KTHb37Fhj8xY8qPFvTFaFJHcdsumQp+ExsUlgoX232Agmc706gagBs53+CYvulV7MVQo9AgXOUxsqzzVBoJlrA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-regex-util@30.5.0: + resolution: {integrity: sha512-Mg0WK7A6xRHLSA1udJ8y9f3lM0uUhFTBnLKzwPmqB9AylvpleJ6BLemR8K9dK27DY+cesDryoA7yLZCAHsPG1A==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-resolve-dependencies@30.5.2: + resolution: {integrity: sha512-GMI0DP5enX9Z2qW2zFy1bOkrCfWAOPRJQ7qHt0pdfrxBPsgWxglMPrRSK2TX/wRWYxcPRSLFg3Z88qPOzHx7FQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-resolve@30.5.1: + resolution: {integrity: sha512-wprhLejRtwN6h8ZgaqC0eYjGJ1uMdGPT/+b3eFncbG4NWuuP9QL+vWwRinu9waw7hkOLcpMJGVJAMgBwsPssMQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-runner@30.5.2: + resolution: {integrity: sha512-/B6px7hiiNhVSRwuv9AGn0nawYvwsHeQZ3ItTd5Gp2diFd0EOKaWVeWqcbw3L88vx1GfpCKjQkxWItZCTl11Rw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-runtime@30.5.2: + resolution: {integrity: sha512-0paUAHBlheai10A3XSy9Xh+YBG0IROy+/qzcDPzQ/nbbXrznQzeWy5qniICWK6d3W3scaRQCVAbXdcK0ibBq4w==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-snapshot@30.5.2: + resolution: {integrity: sha512-jKIdes25AnAH73dOCi2qE6J6vHJ6L2vyBS11M89kT50DVJcLTf2AOjvcc+2vVaN8lUbY5v2R83aqXo3Ro9fqYA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-util@30.5.1: + resolution: {integrity: sha512-yKuxmNy2rSbTXw+3SIPanJo+nV4/BS1p26v44IYBFMsswSQySfMMcPHErnOncda7i9HEz0q605rIhSTBVgrZTg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-validate@30.5.1: + resolution: {integrity: sha512-i/buJ56wTpxihE93hQYNMfdOThS87+HGvLZzZJmU4xggPcdTYQq051iwALLCHp3q+SkCGH+EFejQZz5EbBSkkg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-watcher@30.5.2: + resolution: {integrity: sha512-rqRgg4R11GA9m1UsEZwQeixHsgZReCn6TOHAHtIH33yXrIvoX0OGPA20Yzzjkz7X40fZvcRSxEpQppYPcWzmcQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-worker@27.5.1: + resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} + engines: {node: '>= 10.13.0'} + + jest-worker@30.5.1: + resolution: {integrity: sha512-Cbxh5v7AoLuFRmFJSM4/aHdQ68rjXvUWr716EE0Dh3I7T+T/3FgFKhOERGXHcU2Meftq9+9zxPM3TSNyI9D+HA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest@30.5.2: + resolution: {integrity: sha512-3gnpdBIza8ijCl3iMV9ChE3hSt1+46865qqod863gQtJr1DixOkAU5DoGbi3u+XlRcw++BhZQMu/y4xBdHBvSQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + hasBin: true + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + + jiti@2.7.0: + resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} + hasBin: true + + joycon@3.1.1: + resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} + engines: {node: '>=10'} + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + js-yaml@3.15.2: + resolution: {integrity: sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w==} + hasBin: true + + js-yaml@5.4.1: + resolution: {integrity: sha512-28R/k+NAjeuf7+CKlTxWZVExJGwVVLwY06DgEnOMz2gEpfNkDcD7QvyiVPT0xy0XXhU8vHsd4Ot42OOPdJG7dQ==} + hasBin: true + + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + json-parse-even-better-errors@2.3.1: + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} + + json-schema-ref-resolver@3.0.0: + resolution: {integrity: sha512-hOrZIVL5jyYFjzk7+y7n5JDzGlU8rfWDuYyHwGa2WA8/pcmMHezp2xsVwxrebD/Q9t8Nc5DboieySDpCp4WG4A==} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + leven@3.1.0: + resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} + engines: {node: '>=6'} + + light-my-request@6.6.0: + resolution: {integrity: sha512-CHYbu8RtboSIoVsHZ6Ye4cj4Aw/yg2oAFimlF7mNvfDV192LR7nDiKtSIfCuLT7KokPSTn/9kfVLm5OGN0A28A==} + + lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + + load-esm@1.0.3: + resolution: {integrity: sha512-v5xlu8eHD1+6r8EHTg6hfmO97LN8ugKtiXcy5e6oN72iD2r6u0RPfLl6fxM+7Wnh2ZRq15o0russMst44WauPA==} + engines: {node: '>=13.2.0'} + + locate-path@5.0.0: + resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} + engines: {node: '>=8'} + + lodash.memoize@4.1.2: + resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==} + + lodash@4.18.1: + resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==} + + log-symbols@4.1.0: + resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} + engines: {node: '>=10'} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + long@5.3.2: + resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==} + + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + + lru-cache@11.5.3: + resolution: {integrity: sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==} + engines: {node: 20 || >=22} + + lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + + lru.min@1.1.5: + resolution: {integrity: sha512-5J9ysMYUpYIg9RF2vJpy9SinEmSviFSe0GyPpCQ4L5QSkLAgeLXlTAOu2ZwWUU5m+0SBl6gUU1R1ZQB3aKypfA==} + engines: {bun: '>=1.0.0', deno: '>=1.30.0', node: '>=8.0.0'} + + magic-string@1.0.0: + resolution: {integrity: sha512-CGvjzMN08iv6w1mm4/x3Gh1hLb4VnyRUA15FFpl6CsCIGGoe36k7kY5KNz9QDbSBN5I/fWHM6ZlIkUTa5xdUEA==} + + make-dir@4.0.0: + resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} + engines: {node: '>=10'} + + make-error@1.3.6: + resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} + + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + + media-typer@0.3.0: + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} + engines: {node: '>= 0.6'} + + media-typer@1.1.1: + resolution: {integrity: sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==} + engines: {node: '>= 0.8'} + + merge-descriptors@2.0.0: + resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} + engines: {node: '>=18'} + + merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + + methods@1.1.2: + resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==} + engines: {node: '>= 0.6'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-db@1.54.0: + resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + + mime-types@3.0.2: + resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==} + engines: {node: '>=18'} + + mime@2.6.0: + resolution: {integrity: sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==} + engines: {node: '>=4.0.0'} + hasBin: true + + mime@3.0.0: + resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} + engines: {node: '>=10.0.0'} + hasBin: true + + mimic-fn@2.1.0: + resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} + engines: {node: '>=6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minimatch@10.2.6: + resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + engines: {node: 18 || 20 || >=22} + + minimatch@9.0.9: + resolution: {integrity: sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==} + engines: {node: '>=16 || 14 >=14.17'} + + minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + + minimizer-webpack-plugin@5.11.0: + resolution: {integrity: sha512-2JVy2DY+iBtfRyrQB5cRM7lfurnJIi6jFTgLip/7FxDu0WxswrIRzr4fBySQ0X7HqM7BcwE28zm+HfQ5V6y4Cg==} + engines: {node: '>= 10.13.0'} + peerDependencies: + '@minify-html/node': '*' + '@napi-rs/image': '*' + '@swc/core': '*' + '@swc/css': '*' + '@swc/html': '*' + clean-css: '*' + cssnano: '*' + csso: '*' + esbuild: '*' + html-minifier-terser: '*' + imagemin: '*' + lightningcss: '*' + postcss: '*' + sharp: '*' + svgo: '*' + uglify-js: '*' + webpack: ^5.1.0 + peerDependenciesMeta: + '@minify-html/node': + optional: true + '@napi-rs/image': + optional: true + '@swc/core': + optional: true + '@swc/css': + optional: true + '@swc/html': + optional: true + clean-css: + optional: true + cssnano: + optional: true + csso: + optional: true + esbuild: + optional: true + html-minifier-terser: + optional: true + imagemin: + optional: true + lightningcss: + optional: true + postcss: + optional: true + sharp: + optional: true + svgo: + optional: true + uglify-js: + optional: true + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + multer@2.4.0: + resolution: {integrity: sha512-7dqa0ZcFfzbefdTuIkzOSMvZWC0J7FLqBOjJUZvDCXShIURWKxAyTT1wHhnE5q19c7jOJf43IYYKjBmZVZmvhg==} + engines: {node: '>= 10.16.0'} + + mute-stream@0.0.8: + resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==} + + mute-stream@3.0.0: + resolution: {integrity: sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==} + engines: {node: ^20.17.0 || >=22.9.0} + + mysql2@3.15.3: + resolution: {integrity: sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg==} + engines: {node: '>= 8.0'} + + named-placeholders@1.1.6: + resolution: {integrity: sha512-Tz09sEL2EEuv5fFowm419c1+a/jSMiBjI9gHxVLrVdbUkkNUUfjsVYs9pVZu5oCon/kmRh9TfLEObFtkVxmY0w==} + engines: {node: '>=8.0.0'} + + nanoid@5.1.16: + resolution: {integrity: sha512-kVrnsrJqMR8+oLJnGEmSWw9BivK5mt7H3FZatVRjrc5wGqFYuBxX1yG7+A7Gi5AefkX6t/oCkizcQgpu0cY1dQ==} + engines: {node: ^18 || >=20} + hasBin: true + + napi-postinstall@0.3.4: + resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + hasBin: true + + natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + + negotiator@1.1.0: + resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==} + engines: {node: '>=18'} + + neo-async@2.6.2: + resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} + + nestjs-pino@5.2.0: + resolution: {integrity: sha512-w7zIidjqzhvB7TSDBttC//NxKBAz2rr2d6pNctsglWqb/VqNbDj/Hko2VsgHMYmLpIoZ5pka5gASbGc60V8Qvw==} + engines: {node: '>=22.12.0'} + peerDependencies: + '@nestjs/common': ^11.0.8 || ^12.0.2 + '@nestjs/core': ^11.0.8 || ^12.0.2 + pino: ^10.0.0 + pino-http: ^11.0.0 + rxjs: ^7.1.0 + + node-addon-api@7.1.1: + resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==} + + node-emoji@2.1.3: + resolution: {integrity: sha512-E2WEOVsgs7O16zsURJ/eH8BqhF029wGpEOnv7Urwdo2wmQanOACwJQh0devF9D9RhoZru0+9JXIS0dBXIAz+lA==} + engines: {node: '>=18'} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + node-int64@0.4.0: + resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} + + node-releases@2.0.56: + resolution: {integrity: sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A==} + engines: {node: '>=18'} + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + npm-run-path@4.0.1: + resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} + engines: {node: '>=8'} + + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + + object-inspect@1.13.4: + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} + + ohash@2.0.12: + resolution: {integrity: sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==} + + on-exit-leak-free@2.1.2: + resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==} + engines: {node: '>=14.0.0'} + + on-finished@2.4.1: + resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} + engines: {node: '>= 0.8'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + onetime@5.1.2: + resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} + engines: {node: '>=6'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + ora@5.4.1: + resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==} + engines: {node: '>=10'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + os-tmpdir@1.0.2: + resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==} + engines: {node: '>=0.10.0'} + + oxlint-tsgolint@7.0.2002: + resolution: {integrity: sha512-rQAj2RAQM57nCwTd3PhtnAkREGW2StqI47tzudNlJF8WwGommM7rVpeP4O1O8/ZiuDZ9f2GnTESzLHGTluwkvQ==} + hasBin: true + + oxlint@1.83.0: + resolution: {integrity: sha512-cyDzSzaw3uzP0TeCeq3lLRPPoaUxkbB4ZOXj+kn+5r+BX9V+4bNVGk9lxer+WrgcpebH4JxLlJ3KQjveVztOLQ==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + oxlint-tsgolint: '>=7.0.2001' + vite-plus: '*' + peerDependenciesMeta: + oxlint-tsgolint: + optional: true + vite-plus: + optional: true + + p-limit@2.3.0: + resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} + engines: {node: '>=6'} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-locate@4.1.0: + resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} + engines: {node: '>=8'} + + p-try@2.2.0: + resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} + engines: {node: '>=6'} + + package-json-from-dist@1.0.1: + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + + parse-json@5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} + engines: {node: '>=8'} + + parseurl@1.3.3: + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-scurry@1.11.1: + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} + + path-scurry@2.0.2: + resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} + engines: {node: 18 || 20 || >=22} + + path-to-regexp@8.4.2: + resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + perfect-debounce@2.1.0: + resolution: {integrity: sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==} + + pg-cloudflare@1.4.1: + resolution: {integrity: sha512-6PQbsFWZcp9EmJEwy5cGQ2La+AMWpP46lgbb8X+U/XsHIUweYDNCpeuKck5RxL2MdVFi7krbbEi5nX4Zh7JhrQ==} + + pg-connection-string@2.14.1: + resolution: {integrity: sha512-qR3kGNPBLpCNtz0evbKA0Y/MRFXwSSdT+pTJvYp/bXTcReZbvX1kzF0IyTc1QnxqF7AZbOeBhNL8R5mYQZV/MA==} + + pg-int8@1.0.1: + resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==} + engines: {node: '>=4.0.0'} + + pg-pool@3.14.0: + resolution: {integrity: sha512-gKtPkFdQPU3DksooVLi9LsjZxrsBUZIpa+7aVx+LV5pNh0KzP4Zleud2po+ConrxbuXGBJ6Hfer6hdgpIBpBaw==} + peerDependencies: + pg: '>=8.0' + + pg-protocol@1.16.1: + resolution: {integrity: sha512-p9VOFMiHB/ZbJATetbg+99PxssTVSQRnyuPSQ67mN1+1KBOjZaZ83ZQzltnxPhJwSsC3nwVjJ10DVJlerbFzLg==} + + pg-types@2.2.0: + resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==} + engines: {node: '>=4'} + + pg@8.23.1: + resolution: {integrity: sha512-aL96AHANtWjPLDOLqnhx+ngp9+UK7ETEU8VJrDCGvsSSi/mGLcWYsS6Herg7lmaBJe4uwrfqsa7gTEFaSizDoQ==} + engines: {node: '>= 16.0.0'} + peerDependencies: + pg-native: '>=3.0.1' + peerDependenciesMeta: + pg-native: + optional: true + + pgpass@1.0.5: + resolution: {integrity: sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.5: + resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} + engines: {node: '>=12'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + pino-abstract-transport@3.0.0: + resolution: {integrity: sha512-wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg==} + + pino-http@11.0.0: + resolution: {integrity: sha512-wqg5XIAGRRIWtTk8qPGxkbrfiwEWz1lgedVLvhLALudKXvg1/L2lTFgTGPJ4Z2e3qcRmxoFxDuSdMdMGNM6I1g==} + + pino-pretty@13.1.3: + resolution: {integrity: sha512-ttXRkkOz6WWC95KeY9+xxWL6AtImwbyMHrL1mSwqwW9u+vLp/WIElvHvCSDg0xO/Dzrggz1zv3rN5ovTRVowKg==} + hasBin: true + + pino-std-serializers@7.1.0: + resolution: {integrity: sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==} + + pino@10.3.1: + resolution: {integrity: sha512-r34yH/GlQpKZbU1BvFFqOjhISRo1MNx1tWYsYvmj6KIRHSPMT2+yHOEb1SG6NMvRoHRF0a07kCOox/9yakl1vg==} + hasBin: true + + pirates@4.0.7: + resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} + engines: {node: '>= 6'} + + pkg-dir@4.2.0: + resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} + engines: {node: '>=8'} + + pkg-types@2.3.3: + resolution: {integrity: sha512-j/lCFdcppV0JxWpCEITdbDltBxPP6cHT+yNJ6Go2OgoSA9518X847X9z0p6LtA4Nc16+eQzCZjRrWanTGvHJ5w==} + + pluralize@8.0.0: + resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} + engines: {node: '>=4'} + + postgres-array@2.0.0: + resolution: {integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==} + engines: {node: '>=4'} + + postgres-array@3.0.4: + resolution: {integrity: sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==} + engines: {node: '>=12'} + + postgres-bytea@1.0.1: + resolution: {integrity: sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==} + engines: {node: '>=0.10.0'} + + postgres-date@1.0.7: + resolution: {integrity: sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==} + engines: {node: '>=0.10.0'} + + postgres-interval@1.2.0: + resolution: {integrity: sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==} + engines: {node: '>=0.10.0'} + + postgres@3.4.7: + resolution: {integrity: sha512-Jtc2612XINuBjIl/QTWsV5UvE8UHuNblcO3vVADSrKsrc6RqGX6lOW1cEo3CM2v0XG4Nat8nI+YM7/f26VxXLw==} + engines: {node: '>=12'} + + prettier@3.9.8: + resolution: {integrity: sha512-WRFq3Wn3WId7LLROfMLdH7xaFr2jR62wU8nLO6rQUOLOxNZUviyJQs1M0iIhLexSFy+L+w0ch66wtoO2jRjG0A==} + engines: {node: '>=14'} + hasBin: true + + pretty-format@30.5.1: + resolution: {integrity: sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + prisma@7.10.0: + resolution: {integrity: sha512-o0ornyJOWgygVAzGCpr8PdXV8EJLHyVGDDUr/voBQt8Azzw8cYTByzzPGcA/m4tCkPcnJA8raEOv2CslsKhPEw==} + engines: {node: ^20.19 || ^22.12 || >=24.0} + hasBin: true + peerDependencies: + better-sqlite3: '>=9.0.0' + typescript: '>=5.4.0' + peerDependenciesMeta: + better-sqlite3: + optional: true + typescript: + optional: true + + process-warning@4.0.1: + resolution: {integrity: sha512-3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==} + + process-warning@5.1.0: + resolution: {integrity: sha512-jQSaVHsPgtyw60e1rQ/A+/ArPEj/S8pS/vFnyGa/gYFXrKk/6RuDkoqVDQ5NI5MmS01698ltlAk0NoDBNLujRw==} + + proper-lockfile@4.1.2: + resolution: {integrity: sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==} + + proxy-addr@2.0.8: + resolution: {integrity: sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==} + engines: {node: '>= 0.10'} + + pump@3.0.4: + resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==} + + pure-rand@6.1.0: + resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==} + + pure-rand@7.0.1: + resolution: {integrity: sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==} + + qs@6.16.0: + resolution: {integrity: sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==} + engines: {node: '>=0.6'} + + quick-format-unescaped@4.0.4: + resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} + + range-parser@1.3.0: + resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==} + engines: {node: '>= 0.6'} + + raw-body@3.0.2: + resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} + engines: {node: '>= 0.10'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + react-dom@19.3.0: + resolution: {integrity: sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==} + peerDependencies: + react: ^19.3.0 + + react-is@18.3.1: + resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} + + react-is@19.3.0: + resolution: {integrity: sha512-UpMYezM4v5/18F28aC66AEsjXIgE02kyEMH6yLdgLXu/UTfa1Ntwck/nNLrbqJsEXW7gPb0coNO9FQse9WTovA==} + + react@19.3.0: + resolution: {integrity: sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==} + engines: {node: '>=0.10.0'} + + readable-stream@3.6.2: + resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} + engines: {node: '>= 6'} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + real-require@0.2.0: + resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==} + engines: {node: '>= 12.13.0'} + + real-require@1.0.0: + resolution: {integrity: sha512-P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g==} + + redis-errors@1.2.0: + resolution: {integrity: sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==} + engines: {node: '>=4'} + + reflect-metadata@0.2.2: + resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==} + + remeda@2.33.4: + resolution: {integrity: sha512-ygHswjlc/opg2VrtiYvUOPLjxjtdKvjGz1/plDhkG66hjNjFr1xmfrs2ClNFo/E6TyUFiwYNh53bKV26oBoMGQ==} + + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + resolve-cwd@3.0.0: + resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} + engines: {node: '>=8'} + + resolve-from@5.0.0: + resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} + engines: {node: '>=8'} + + restore-cursor@3.1.0: + resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} + engines: {node: '>=8'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + ret@0.5.0: + resolution: {integrity: sha512-I1XxrZSQ+oErkRR4jYbAyEEu2I0avBvvMM5JN+6EBprOGRCs63ENqZ3vjavq8fBw2+62G5LF5XelKwuJpcvcxw==} + engines: {node: '>=10'} + + retry@0.12.0: + resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} + engines: {node: '>= 4'} + + reusify@1.1.0: + resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + rfdc@1.4.1: + resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} + + robust-predicates@3.0.3: + resolution: {integrity: sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==} + + router@2.2.0: + resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} + engines: {node: '>= 18'} + + run-async@2.4.1: + resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} + engines: {node: '>=0.12.0'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + safe-regex2@5.1.1: + resolution: {integrity: sha512-mOSBvHGDZMuIEZMdOz/aCEYDCv0E7nfcNsIhUF+/P+xC7Hyf3FkvymqgPbg9D1EdSGu+uKbJgy09K/RKKc7kJA==} + hasBin: true + + safe-stable-stringify@2.5.0: + resolution: {integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==} + engines: {node: '>=10'} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + scheduler@0.28.0: + resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==} + + schema-utils@4.5.0: + resolution: {integrity: sha512-zJlMCZ0cAR5p/Y4oVpRoqioDMJcGxaXRrQ/4rP4WyR84vc5z/DolXdbvXeDpTwbtocDFr2rhPqHPErDCUtz2kA==} + engines: {node: '>= 10.13.0'} + + secure-json-parse@4.1.0: + resolution: {integrity: sha512-l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA==} + + semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + + semver@7.8.5: + resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} + engines: {node: '>=10'} + hasBin: true + + send@1.2.1: + resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==} + engines: {node: '>= 18'} + + seq-queue@0.0.5: + resolution: {integrity: sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==} + + serve-static@2.2.1: + resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} + engines: {node: '>= 18'} + + set-cookie-parser@2.7.2: + resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==} + + setprototypeof@1.2.0: + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + + sharp@0.35.5: + resolution: {integrity: sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==} + engines: {node: '>=20.9.0'} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + side-channel-list@1.0.1: + resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==} + engines: {node: '>= 0.4'} + + side-channel-map@1.0.1: + resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==} + engines: {node: '>= 0.4'} + + side-channel-weakmap@1.0.2: + resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} + engines: {node: '>= 0.4'} + + side-channel@1.1.1: + resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==} + engines: {node: '>= 0.4'} + + signal-exit@3.0.7: + resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + + sonic-boom@4.2.1: + resolution: {integrity: sha512-w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==} + + source-map-support@0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + source-map@0.7.6: + resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==} + engines: {node: '>= 12'} + + split2@4.2.0: + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} + + sprintf-js@1.0.3: + resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + + sqlstring@2.3.3: + resolution: {integrity: sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==} + engines: {node: '>= 0.6'} + + stack-utils@2.0.6: + resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} + engines: {node: '>=10'} + + standard-as-callback@2.1.0: + resolution: {integrity: sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==} + + statuses@2.0.2: + resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} + engines: {node: '>= 0.8'} + + std-env@3.10.0: + resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + streamsearch@1.1.0: + resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} + engines: {node: '>=10.0.0'} + + string-length@4.0.2: + resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} + engines: {node: '>=10'} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + + string-width@8.2.2: + resolution: {integrity: sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg==} + engines: {node: '>=20'} + + string_decoder@1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + strip-bom@3.0.0: + resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} + engines: {node: '>=4'} + + strip-bom@4.0.0: + resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==} + engines: {node: '>=8'} + + strip-final-newline@2.0.0: + resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} + engines: {node: '>=6'} + + strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + + strip-json-comments@5.0.3: + resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==} + engines: {node: '>=14.16'} + + strtok3@10.3.5: + resolution: {integrity: sha512-ki4hZQfh5rX0QDLLkOCj+h+CVNkqmp/CMf8v8kZpkNVK6jGQooMytqzLZYUVYIZcFZ6yDB70EfD8POcFXiF5oA==} + engines: {node: '>=18'} + + superagent@10.3.0: + resolution: {integrity: sha512-B+4Ik7ROgVKrQsXTV0Jwp2u+PXYLSlqtDAhYnkkD+zn3yg8s/zjA2MeGayPoY/KICrbitwneDHrjSotxKL+0XQ==} + engines: {node: '>=14.18.0'} + + supertest@7.2.2: + resolution: {integrity: sha512-oK8WG9diS3DlhdUkcFn4tkNIiIbBx9lI2ClF8K+b2/m8Eyv47LSawxUzZQSNKUrVb2KsqeTDCcjAAVPYaSLVTA==} + engines: {node: '>=14.18.0'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + supports-color@8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + + swagger-ui-dist@5.32.14: + resolution: {integrity: sha512-nOA2pSQhcmODMUQZpJHYKNuwniDUqcOWGNaSCOoZv12FdOSJ9JxV95HtyRGNMqEBj6h6lCNTy20TgZDYTSuUIg==} + + synckit@0.11.13: + resolution: {integrity: sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg==} + engines: {node: ^14.18.0 || >=16.0.0} + + tagged-tag@1.0.0: + resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==} + engines: {node: '>=20'} + + tapable@2.3.3: + resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==} + engines: {node: '>=6'} + + terser@5.51.2: + resolution: {integrity: sha512-bWnjSNscmuI+GJze6ZupnHP8G/cTcsJF+bXCeQknk2SHQsgbNJnLrqiH9jZ2W4STPVXH2mDKKRX3iwPhc9Cn/Q==} + engines: {node: '>=10'} + hasBin: true + + test-exclude@7.0.2: + resolution: {integrity: sha512-u9E6A+ZDYdp7a4WnarkXPZOx8Ilz46+kby6p1yZ8zsGTz9gYa6FIS7lj2oezzNKmtdyyJNNmmXDppga5GB7kSw==} + engines: {node: '>=18'} + + thread-stream@4.2.0: + resolution: {integrity: sha512-e2zZ96wSChazBsbENf/Pcm/4swHt2cEKQ92rhUjkL9GCKiTDJIaTBenjE/m9DXi0QBmTMDkFDdOomUy20A1tDQ==} + engines: {node: '>=20'} + + through@2.3.8: + resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} + + tmp@0.0.33: + resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} + engines: {node: '>=0.6.0'} + + toad-cache@3.7.4: + resolution: {integrity: sha512-m1TdR/rvT7kgGJZhspNtXdsdYk0fddFpJJFlG5s+UkPFo6lkLoZ3YLOaovPYjq1R75NP5JfeTlSHaOsE09peCg==} + engines: {node: '>=20'} + + toidentifier@1.0.1: + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} + + token-types@6.1.2: + resolution: {integrity: sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==} + engines: {node: '>=14.16'} + + ts-jest@29.4.12: + resolution: {integrity: sha512-Ov6ClY53Fflh6BGAnY2DlTq1hYDrTycz2PVTXBWFW2CU+9zrEqAp9fWdGXl42EXO5RLSFAcAZ2JFKbP+zBTFfw==} + engines: {node: ^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@babel/core': '>=7.0.0-beta.0 <8' + '@jest/transform': ^29.0.0 || ^30.0.0 + '@jest/types': ^29.0.0 || ^30.0.0 + babel-jest: ^29.0.0 || ^30.0.0 + esbuild: '*' + jest: ^29.0.0 || ^30.0.0 + jest-util: ^29.0.0 || ^30.0.0 + typescript: '>=4.3 <7' + peerDependenciesMeta: + '@babel/core': + optional: true + '@jest/transform': + optional: true + '@jest/types': + optional: true + babel-jest: + optional: true + esbuild: + optional: true + jest-util: + optional: true + + ts-loader@9.6.2: + resolution: {integrity: sha512-R4iuczmtgxvtuI556s+hTZ6/7Ee03VCAk/l/M8LY1OAsUgB7YydsCxkgq9D9pKRaD7GJqUi2u8fp9zZP/ufjKA==} + engines: {node: '>=12.0.0'} + peerDependencies: + loader-utils: '*' + typescript: '*' + webpack: ^4.0.0 || ^5.0.0 + peerDependenciesMeta: + loader-utils: + optional: true + + ts-node@10.9.2: + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + + tsconfig-paths@4.2.0: + resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==} + engines: {node: '>=6'} + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + type-detect@4.0.8: + resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} + engines: {node: '>=4'} + + type-fest@0.21.3: + resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} + engines: {node: '>=10'} + + type-fest@4.41.0: + resolution: {integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==} + engines: {node: '>=16'} + + type-fest@5.10.0: + resolution: {integrity: sha512-NoSdpq/WEiAg5sjmBkmV/hfxv6HJH4NqPNrqjtSO5CwRmpsDfaf4begxW34KdJykH/l1yHtwBWQkCRdoXO8mPA==} + engines: {node: '>=20'} + + type-is@1.6.18: + resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} + engines: {node: '>= 0.6'} + + type-is@2.1.0: + resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==} + engines: {node: '>= 18'} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + uglify-js@3.19.3: + resolution: {integrity: sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==} + engines: {node: '>=0.8.0'} + hasBin: true + + uid@2.0.2: + resolution: {integrity: sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==} + engines: {node: '>=8'} + + uint8array-extras@1.5.0: + resolution: {integrity: sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==} + engines: {node: '>=18'} + + undici-types@7.18.2: + resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} + + undici@6.20.1: + resolution: {integrity: sha512-AjQF1QsmqfJys+LXfGTNum+qw4S88CojRInG/6t31W/1fk6G59s92bnAvGz5Cmur+kQv2SURXEvvudLmbrE8QA==} + engines: {node: '>=18.17'} + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unpipe@1.0.0: + resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} + engines: {node: '>= 0.8'} + + unrs-resolver@1.12.2: + resolution: {integrity: sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==} + + update-browserslist-db@1.3.3: + resolution: {integrity: sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + + util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + v8-compile-cache-lib@3.0.1: + resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} + + v8-to-istanbul@9.3.0: + resolution: {integrity: sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==} + engines: {node: '>=10.12.0'} + + valibot@1.4.2: + resolution: {integrity: sha512-gjdCvJ6d3RyHAneqxMYMW9QMCwYMb3jpOO0IyHZV1bnRHFBHrX3VkIILt5XYR0WhwHiH7Mty8ovuPZ/O3gamrg==} + peerDependencies: + typescript: '>=5' + peerDependenciesMeta: + typescript: + optional: true + + vary@1.1.2: + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} + + watchpack@2.5.2: + resolution: {integrity: sha512-6i/00NBjP4yGPs+caKSyRfpTF/8Torsu0MOW3mMzIbhgISFder8i7xbqgHlLMwJrdiN8ndBV3UA1/AfzPSr+jg==} + engines: {node: '>=10.13.0'} + + wcwidth@1.0.1: + resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} + + webpack-sources@3.5.1: + resolution: {integrity: sha512-jyuiGJdtvY434z5bUZrjz67v76/ePNvFZTp9Mdz29IlH4+GPsgyGjiv0fKI+M7BdkU6ADjulUcKAd3tUK3WlEw==} + engines: {node: '>=10.13.0'} + + webpack@5.111.1: + resolution: {integrity: sha512-cNypaz0RP+S4cvQVi1M/3bRUkvNP0xZpL0TjFx+c6jg64VbxD+2weWDgY9UnjRI6dhZgtaj8DU76GGFcJ79xPQ==} + engines: {node: '>=10.13.0'} + hasBin: true + peerDependencies: + webpack-cli: '*' + peerDependenciesMeta: + webpack-cli: + optional: true + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + wordwrap@1.0.0: + resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} + + wrap-ansi@6.2.0: + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + write-file-atomic@5.0.1: + resolution: {integrity: sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + + xtend@4.0.2: + resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} + engines: {node: '>=0.4'} + + y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + + yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + + yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + + yargs@17.7.3: + resolution: {integrity: sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==} + engines: {node: '>=12'} + + yn@3.1.1: + resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} + engines: {node: '>=6'} + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zeptomatch@2.1.0: + resolution: {integrity: sha512-KiGErG2J0G82LSpniV0CtIzjlJ10E04j02VOudJsPyPwNZgGnRKQy7I1R7GMyg/QswnE4l7ohSGrQbQbjXPPDA==} + + zod@4.6.5: + resolution: {integrity: sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==} + +snapshots: + + '@angular-devkit/core@22.1.8(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.5 + rxjs: 7.8.2 + source-map: 0.7.6 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.1.8(@types/node@24.13.6)(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.1.8(chokidar@5.0.0) + '@angular-devkit/schematics': 22.1.8(chokidar@5.0.0) + '@inquirer/prompts': 8.5.2(@types/node@24.13.6) + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.1.8(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.1.8(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.0.0 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@aws-sdk/checksums@3.1002.3': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/client-s3@3.1164.0': + dependencies: + '@aws-sdk/checksums': 3.1002.3 + '@aws-sdk/core': 3.980.1 + '@aws-sdk/credential-provider-node': 3.972.94 + '@aws-sdk/middleware-sdk-s3': 3.972.87 + '@aws-sdk/signature-v4-multi-region': 3.996.51 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/fetch-http-handler': 5.8.1 + '@smithy/node-http-handler': 4.14.2 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/core@3.980.1': + dependencies: + '@aws-sdk/types': 3.975.0 + '@aws-sdk/xml-builder': 3.972.42 + '@aws/lambda-invoke-store': 0.3.0 + '@smithy/core': 3.39.0 + '@smithy/signature-v4': 5.7.5 + '@smithy/types': 4.20.0 + bowser: 2.15.0 + tslib: 2.8.1 + + '@aws-sdk/core@3.980.2': + dependencies: + '@aws-sdk/types': 3.975.1 + '@aws-sdk/xml-builder': 3.972.43 + '@aws/lambda-invoke-store': 0.3.0 + '@smithy/core': 3.39.0 + '@smithy/signature-v4': 5.7.5 + '@smithy/types': 4.20.0 + bowser: 2.15.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-env@3.972.82': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-http@3.972.84': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/fetch-http-handler': 5.8.1 + '@smithy/node-http-handler': 4.14.2 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-ini@3.973.27': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/credential-provider-env': 3.972.82 + '@aws-sdk/credential-provider-http': 3.972.84 + '@aws-sdk/credential-provider-login': 3.972.89 + '@aws-sdk/credential-provider-process': 3.972.82 + '@aws-sdk/credential-provider-sso': 3.973.26 + '@aws-sdk/credential-provider-web-identity': 3.972.88 + '@aws-sdk/nested-clients': 3.998.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/credential-provider-imds': 4.5.2 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-login@3.972.89': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/nested-clients': 3.998.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-node@3.972.94': + dependencies: + '@aws-sdk/credential-provider-env': 3.972.82 + '@aws-sdk/credential-provider-http': 3.972.84 + '@aws-sdk/credential-provider-ini': 3.973.27 + '@aws-sdk/credential-provider-process': 3.972.82 + '@aws-sdk/credential-provider-sso': 3.973.26 + '@aws-sdk/credential-provider-web-identity': 3.972.88 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/credential-provider-imds': 4.5.2 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-process@3.972.82': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-sso@3.973.26': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/nested-clients': 3.998.1 + '@aws-sdk/token-providers': 3.1164.0 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-web-identity@3.972.88': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/nested-clients': 3.998.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/middleware-sdk-s3@3.972.87': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/signature-v4-multi-region': 3.996.51 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/nested-clients@3.998.1': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/signature-v4-multi-region': 3.996.51 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/fetch-http-handler': 5.8.1 + '@smithy/node-http-handler': 4.14.2 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/s3-request-presigner@3.1165.0': + dependencies: + '@aws-sdk/core': 3.980.2 + '@aws-sdk/signature-v4-multi-region': 3.996.52 + '@aws-sdk/types': 3.975.1 + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/signature-v4-multi-region@3.996.51': + dependencies: + '@aws-sdk/types': 3.975.0 + '@smithy/signature-v4': 5.7.5 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/signature-v4-multi-region@3.996.52': + dependencies: + '@aws-sdk/types': 3.975.1 + '@smithy/signature-v4': 5.7.5 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/token-providers@3.1164.0': + dependencies: + '@aws-sdk/core': 3.980.1 + '@aws-sdk/nested-clients': 3.998.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/types@3.975.0': + dependencies: + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/types@3.975.1': + dependencies: + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/xml-builder@3.972.42': + dependencies: + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws-sdk/xml-builder@3.972.43': + dependencies: + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@aws/lambda-invoke-store@0.3.0': {} + + '@babel/code-frame@7.29.7': + dependencies: + '@babel/helper-validator-identifier': 7.29.7 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/compat-data@7.29.7': {} + + '@babel/core@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.8 + '@babel/helper-compilation-targets': 7.29.7 + '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7) + '@babel/helpers': 7.29.7 + '@babel/parser': 7.29.9 + '@babel/template': 7.29.7 + '@babel/traverse': 7.29.8 + '@babel/types': 7.29.8 + '@jridgewell/remapping': 2.3.5 + convert-source-map: 2.0.0 + debug: 4.4.3 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/generator@7.29.8': + dependencies: + '@babel/parser': 7.29.9 + '@babel/types': 7.29.8 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + + '@babel/helper-compilation-targets@7.29.7': + dependencies: + '@babel/compat-data': 7.29.7 + '@babel/helper-validator-option': 7.29.7 + browserslist: 4.29.0 + lru-cache: 5.1.1 + semver: 6.3.1 + + '@babel/helper-globals@7.29.7': {} + + '@babel/helper-module-imports@7.29.7': + dependencies: + '@babel/traverse': 7.29.8 + '@babel/types': 7.29.8 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-transforms@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-module-imports': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + '@babel/traverse': 7.29.8 + transitivePeerDependencies: + - supports-color + + '@babel/helper-plugin-utils@7.29.7': {} + + '@babel/helper-string-parser@7.29.7': {} + + '@babel/helper-validator-identifier@7.29.7': {} + + '@babel/helper-validator-option@7.29.7': {} + + '@babel/helpers@7.29.7': + dependencies: + '@babel/template': 7.29.7 + '@babel/types': 7.29.8 + + '@babel/parser@7.29.9': + dependencies: + '@babel/types': 7.29.8 + + '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-import-attributes@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-jsx@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-syntax-typescript@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/template@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/parser': 7.29.9 + '@babel/types': 7.29.8 + + '@babel/traverse@7.29.8': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.8 + '@babel/helper-globals': 7.29.7 + '@babel/parser': 7.29.9 + '@babel/template': 7.29.7 + '@babel/types': 7.29.8 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.29.8': + dependencies: + '@babel/helper-string-parser': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + + '@bcoe/v8-coverage@0.2.3': {} + + '@borewit/text-codec@0.2.2': {} + + '@colors/colors@1.5.0': + optional: true + + '@cspotcode/source-map-support@0.8.1': + dependencies: + '@jridgewell/trace-mapping': 0.3.9 + + '@electric-sql/pglite-socket@0.1.3(@electric-sql/pglite@0.4.3)': + dependencies: + '@electric-sql/pglite': 0.4.3 + + '@electric-sql/pglite-tools@0.3.3(@electric-sql/pglite@0.4.3)': + dependencies: + '@electric-sql/pglite': 0.4.3 + + '@electric-sql/pglite@0.4.3': {} + + '@emnapi/core@1.10.0': + dependencies: + '@emnapi/wasi-threads': 1.2.1 + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@1.10.0': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@1.11.3': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/wasi-threads@1.2.1': + dependencies: + tslib: 2.8.1 + optional: true + + '@fastify/accept-negotiator@2.1.0': {} + + '@fastify/ajv-compiler@4.0.6': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + fast-uri: 4.2.1 + + '@fastify/cors@11.3.0': + dependencies: + fastify-plugin: 6.0.0 + toad-cache: 3.7.4 + + '@fastify/error@4.2.0': {} + + '@fastify/fast-json-stringify-compiler@5.1.0': + dependencies: + fast-json-stringify: 7.0.1 + + '@fastify/formbody@9.0.0': + dependencies: + fast-querystring: 1.1.2 + fastify-plugin: 6.0.0 + + '@fastify/forwarded@3.0.2': {} + + '@fastify/merge-json-schemas@0.2.1': + dependencies: + dequal: 2.0.3 + + '@fastify/proxy-addr@5.1.1': + dependencies: + '@fastify/forwarded': 3.0.2 + ipaddr.js: 2.5.0 + + '@fastify/send@4.1.1': + dependencies: + '@lukeed/ms': 2.0.2 + escape-html: 1.0.3 + fast-decode-uri-component: 1.0.1 + http-errors: 2.0.1 + mime: 3.0.0 + + '@fastify/static@10.1.4': + dependencies: + '@fastify/accept-negotiator': 2.1.0 + '@fastify/error': 4.2.0 + '@fastify/send': 4.1.1 + content-disposition: 3.0.0 + fastify-plugin: 6.0.0 + fastq: 1.20.3 + glob: 13.0.6 + + '@img/colour@1.1.0': {} + + '@img/sharp-darwin-arm64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-darwin-arm64': 1.3.4 + optional: true + + '@img/sharp-darwin-x64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-darwin-x64': 1.3.4 + optional: true + + '@img/sharp-freebsd-wasm32@0.35.5': + dependencies: + '@img/sharp-wasm32': 0.35.5 + optional: true + + '@img/sharp-libvips-darwin-arm64@1.3.4': + optional: true + + '@img/sharp-libvips-darwin-x64@1.3.4': + optional: true + + '@img/sharp-libvips-linux-arm64@1.3.4': + optional: true + + '@img/sharp-libvips-linux-arm@1.3.4': + optional: true + + '@img/sharp-libvips-linux-ppc64@1.3.4': + optional: true + + '@img/sharp-libvips-linux-riscv64@1.3.4': + optional: true + + '@img/sharp-libvips-linux-s390x@1.3.4': + optional: true + + '@img/sharp-libvips-linux-x64@1.3.4': + optional: true + + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': + optional: true + + '@img/sharp-libvips-linuxmusl-x64@1.3.4': + optional: true + + '@img/sharp-linux-arm64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.3.4 + optional: true + + '@img/sharp-linux-arm@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm': 1.3.4 + optional: true + + '@img/sharp-linux-ppc64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-ppc64': 1.3.4 + optional: true + + '@img/sharp-linux-riscv64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-riscv64': 1.3.4 + optional: true + + '@img/sharp-linux-s390x@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-s390x': 1.3.4 + optional: true + + '@img/sharp-linux-x64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-x64': 1.3.4 + optional: true + + '@img/sharp-linuxmusl-arm64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 + optional: true + + '@img/sharp-linuxmusl-x64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 + optional: true + + '@img/sharp-wasm32@0.35.5': + dependencies: + '@emnapi/runtime': 1.11.3 + optional: true + + '@img/sharp-webcontainers-wasm32@0.35.5': + dependencies: + '@img/sharp-wasm32': 0.35.5 + optional: true + + '@img/sharp-win32-arm64@0.35.5': + optional: true + + '@img/sharp-win32-ia32@0.35.5': + optional: true + + '@img/sharp-win32-x64@0.35.5': + optional: true + + '@inquirer/ansi@2.0.8': {} + + '@inquirer/checkbox@5.2.5(@types/node@24.13.6)': + dependencies: + '@inquirer/ansi': 2.0.8 + '@inquirer/core': 12.0.3(@types/node@24.13.6) + '@inquirer/figures': 2.0.9 + '@inquirer/type': 4.1.1(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/confirm@6.3.2(@types/node@24.13.6)': + dependencies: + '@inquirer/core': 12.0.3(@types/node@24.13.6) + '@inquirer/type': 4.1.1(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/core@12.0.3(@types/node@24.13.6)': + dependencies: + '@inquirer/ansi': 2.0.8 + '@inquirer/figures': 2.0.9 + '@inquirer/type': 4.1.1(@types/node@24.13.6) + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 3.0.0 + signal-exit: 4.1.0 + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/editor@5.3.3(@types/node@24.13.6)': + dependencies: + '@inquirer/core': 12.0.3(@types/node@24.13.6) + '@inquirer/external-editor': 3.0.5(@types/node@24.13.6) + '@inquirer/type': 4.1.1(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/expand@5.1.5(@types/node@24.13.6)': + dependencies: + '@inquirer/core': 12.0.3(@types/node@24.13.6) + '@inquirer/type': 4.1.1(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/external-editor@3.0.5(@types/node@24.13.6)': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/figures@2.0.9': {} + + '@inquirer/input@5.1.6(@types/node@24.13.6)': + dependencies: + '@inquirer/core': 12.0.3(@types/node@24.13.6) + '@inquirer/type': 4.1.1(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/number@4.2.3(@types/node@24.13.6)': + dependencies: + '@inquirer/core': 12.0.3(@types/node@24.13.6) + '@inquirer/type': 4.1.1(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/password@5.2.2(@types/node@24.13.6)': + dependencies: + '@inquirer/ansi': 2.0.8 + '@inquirer/core': 12.0.3(@types/node@24.13.6) + '@inquirer/type': 4.1.1(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/prompts@8.5.2(@types/node@24.13.6)': + dependencies: + '@inquirer/checkbox': 5.2.5(@types/node@24.13.6) + '@inquirer/confirm': 6.3.2(@types/node@24.13.6) + '@inquirer/editor': 5.3.3(@types/node@24.13.6) + '@inquirer/expand': 5.1.5(@types/node@24.13.6) + '@inquirer/input': 5.1.6(@types/node@24.13.6) + '@inquirer/number': 4.2.3(@types/node@24.13.6) + '@inquirer/password': 5.2.2(@types/node@24.13.6) + '@inquirer/rawlist': 5.3.5(@types/node@24.13.6) + '@inquirer/search': 4.3.3(@types/node@24.13.6) + '@inquirer/select': 5.2.5(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/prompts@8.7.2(@types/node@24.13.6)': + dependencies: + '@inquirer/checkbox': 5.2.5(@types/node@24.13.6) + '@inquirer/confirm': 6.3.2(@types/node@24.13.6) + '@inquirer/editor': 5.3.3(@types/node@24.13.6) + '@inquirer/expand': 5.1.5(@types/node@24.13.6) + '@inquirer/input': 5.1.6(@types/node@24.13.6) + '@inquirer/number': 4.2.3(@types/node@24.13.6) + '@inquirer/password': 5.2.2(@types/node@24.13.6) + '@inquirer/rawlist': 5.3.5(@types/node@24.13.6) + '@inquirer/search': 4.3.3(@types/node@24.13.6) + '@inquirer/select': 5.2.5(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/rawlist@5.3.5(@types/node@24.13.6)': + dependencies: + '@inquirer/core': 12.0.3(@types/node@24.13.6) + '@inquirer/type': 4.1.1(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/search@4.3.3(@types/node@24.13.6)': + dependencies: + '@inquirer/core': 12.0.3(@types/node@24.13.6) + '@inquirer/figures': 2.0.9 + '@inquirer/type': 4.1.1(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/select@5.2.5(@types/node@24.13.6)': + dependencies: + '@inquirer/ansi': 2.0.8 + '@inquirer/core': 12.0.3(@types/node@24.13.6) + '@inquirer/figures': 2.0.9 + '@inquirer/type': 4.1.1(@types/node@24.13.6) + optionalDependencies: + '@types/node': 24.13.6 + + '@inquirer/type@4.1.1(@types/node@24.13.6)': + optionalDependencies: + '@types/node': 24.13.6 + + '@ioredis/commands@2.0.0': {} + + '@isaacs/cliui@8.0.2': + dependencies: + string-width: 5.1.2 + string-width-cjs: string-width@4.2.3 + strip-ansi: 7.2.0 + strip-ansi-cjs: strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: wrap-ansi@7.0.0 + + '@istanbuljs/load-nyc-config@1.1.0': + dependencies: + camelcase: 5.3.1 + find-up: 4.1.0 + get-package-type: 0.1.0 + js-yaml: 3.15.2 + resolve-from: 5.0.0 + + '@istanbuljs/schema@0.1.6': {} + + '@jest/console@30.5.2': + dependencies: + '@jest/types': 30.5.1 + '@types/node': 24.13.6 + chalk: 4.1.2 + jest-message-util: 30.5.1 + jest-util: 30.5.1 + slash: 3.0.0 + + '@jest/core@30.5.2(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3))': + dependencies: + '@jest/console': 30.5.2 + '@jest/pattern': 30.5.0 + '@jest/reporters': 30.5.2 + '@jest/test-result': 30.5.2 + '@jest/transform': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.13.6 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + ci-info: 4.4.0 + exit-x: 0.2.2 + fast-json-stable-stringify: 2.1.0 + graceful-fs: 4.2.11 + jest-changed-files: 30.5.1 + jest-config: 30.5.2(@types/node@24.13.6)(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)) + jest-haste-map: 30.5.1 + jest-message-util: 30.5.1 + jest-regex-util: 30.5.0 + jest-resolve: 30.5.1 + jest-resolve-dependencies: 30.5.2 + jest-runner: 30.5.2 + jest-runtime: 30.5.2 + jest-snapshot: 30.5.2 + jest-util: 30.5.1 + jest-validate: 30.5.1 + jest-watcher: 30.5.2 + pretty-format: 30.5.1 + slash: 3.0.0 + transitivePeerDependencies: + - babel-plugin-macros + - esbuild-register + - supports-color + - ts-node + + '@jest/diff-sequences@30.5.0': {} + + '@jest/environment@30.5.2': + dependencies: + '@jest/fake-timers': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.13.6 + jest-mock: 30.5.2 + + '@jest/expect-utils@30.5.2': + dependencies: + '@jest/get-type': 30.5.0 + + '@jest/expect@30.5.2': + dependencies: + expect: 30.5.2 + jest-snapshot: 30.5.2 + transitivePeerDependencies: + - supports-color + + '@jest/fake-timers@30.5.2': + dependencies: + '@jest/types': 30.5.1 + '@sinonjs/fake-timers': 15.4.0 + '@types/node': 24.13.6 + jest-message-util: 30.5.1 + jest-mock: 30.5.2 + jest-util: 30.5.1 + + '@jest/get-type@30.5.0': {} + + '@jest/globals@30.5.2': + dependencies: + '@jest/environment': 30.5.2 + '@jest/expect': 30.5.2 + '@jest/types': 30.5.1 + jest-mock: 30.5.2 + transitivePeerDependencies: + - supports-color + + '@jest/pattern@30.5.0': + dependencies: + '@types/node': 24.13.6 + jest-regex-util: 30.5.0 + + '@jest/reporters@30.5.2': + dependencies: + '@bcoe/v8-coverage': 0.2.3 + '@jest/console': 30.5.2 + '@jest/test-result': 30.5.2 + '@jest/transform': 30.5.2 + '@jest/types': 30.5.1 + '@jridgewell/trace-mapping': 0.3.31 + '@types/node': 24.13.6 + chalk: 4.1.2 + collect-v8-coverage: 1.0.3 + exit-x: 0.2.2 + glob: 13.0.6 + graceful-fs: 4.2.11 + istanbul-lib-coverage: 3.2.2 + istanbul-lib-instrument: 6.0.3 + istanbul-lib-report: 3.0.1 + istanbul-lib-source-maps: 5.0.6 + istanbul-reports: 3.2.0 + jest-message-util: 30.5.1 + jest-util: 30.5.1 + jest-worker: 30.5.1 + slash: 3.0.0 + string-length: 4.0.2 + v8-to-istanbul: 9.3.0 + transitivePeerDependencies: + - supports-color + + '@jest/schemas@30.5.0': + dependencies: + '@sinclair/typebox': 0.34.52 + + '@jest/snapshot-utils@30.5.1': + dependencies: + '@jest/types': 30.5.1 + chalk: 4.1.2 + graceful-fs: 4.2.11 + natural-compare: 1.4.0 + + '@jest/source-map@30.5.2': + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + callsites: 3.1.0 + convert-source-map: 2.0.0 + graceful-fs: 4.2.11 + + '@jest/test-result@30.5.2': + dependencies: + '@jest/console': 30.5.2 + '@jest/types': 30.5.1 + '@types/istanbul-lib-coverage': 2.0.6 + collect-v8-coverage: 1.0.3 + + '@jest/test-sequencer@30.5.2': + dependencies: + '@jest/test-result': 30.5.2 + graceful-fs: 4.2.11 + jest-haste-map: 30.5.1 + slash: 3.0.0 + + '@jest/transform@30.5.2': + dependencies: + '@babel/core': 7.29.7 + '@jest/types': 30.5.1 + '@jridgewell/trace-mapping': 0.3.31 + babel-plugin-istanbul: 8.0.0 + chalk: 4.1.2 + convert-source-map: 2.0.0 + fast-json-stable-stringify: 2.1.0 + graceful-fs: 4.2.11 + jest-haste-map: 30.5.1 + jest-regex-util: 30.5.0 + jest-util: 30.5.1 + pirates: 4.0.7 + slash: 3.0.0 + write-file-atomic: 5.0.1 + transitivePeerDependencies: + - supports-color + + '@jest/types@30.5.1': + dependencies: + '@jest/pattern': 30.5.0 + '@jest/schemas': 30.5.0 + '@types/istanbul-lib-coverage': 2.0.6 + '@types/istanbul-reports': 3.0.4 + '@types/node': 24.13.6 + '@types/yargs': 17.0.35 + chalk: 4.1.2 + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/source-map@0.3.11': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.6.0 + + '@jridgewell/trace-mapping@0.3.9': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.6.0 + + '@lukeed/csprng@1.1.0': {} + + '@lukeed/ms@2.0.2': {} + + '@microsoft/tsdoc@0.16.0': {} + + '@napi-rs/wasm-runtime@1.2.4(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0)': + dependencies: + '@emnapi/core': 1.10.0 + '@emnapi/runtime': 1.10.0 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@nestjs/cli@12.0.3(@types/node@24.13.6)(prettier@3.9.8)(ts-loader@9.6.2(typescript@6.0.3)(webpack@5.111.1(sharp@0.35.5(@types/node@24.13.6))))(webpack@5.111.1(sharp@0.35.5(@types/node@24.13.6)))': + dependencies: + '@angular-devkit/core': 22.1.8(chokidar@5.0.0) + '@angular-devkit/schematics': 22.1.8(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.1.8(@types/node@24.13.6)(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2(@types/node@24.13.6) + '@nestjs/schematics': 12.0.4(chokidar@5.0.0)(prettier@3.9.8)(typescript@6.0.3) + ansis: 4.4.0 + chokidar: 5.0.0 + cli-table3: 0.6.5 + commander: 15.0.0 + minimatch: 10.2.6 + node-emoji: 2.2.0 + ora: 9.4.1 + tsconfig-paths: 4.2.0 + typescript: 6.0.3 + optionalDependencies: + ts-loader: 9.6.2(typescript@6.0.3)(webpack@5.111.1(sharp@0.35.5(@types/node@24.13.6))) + webpack: 5.111.1(sharp@0.35.5(@types/node@24.13.6)) + transitivePeerDependencies: + - '@types/node' + - prettier + + '@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2)': + dependencies: + '@standard-schema/spec': 1.1.0 + file-type: 22.1.1 + iterare: 1.2.1 + load-esm: 1.0.3 + reflect-metadata: 0.2.2 + rxjs: 7.8.2 + tslib: 2.8.1 + uid: 2.0.2 + transitivePeerDependencies: + - supports-color + + '@nestjs/core@12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.0.4)(reflect-metadata@0.2.2)(rxjs@7.8.2)': + dependencies: + '@nestjs/common': 12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2) + fast-safe-stringify: 2.1.1 + iterare: 1.2.1 + path-to-regexp: 8.4.2 + reflect-metadata: 0.2.2 + rxjs: 7.8.2 + tslib: 2.8.1 + uid: 2.0.2 + optionalDependencies: + '@nestjs/platform-express': 12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4) + + '@nestjs/mapped-types@12.0.0(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2)': + dependencies: + '@nestjs/common': 12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2) + reflect-metadata: 0.2.2 + + '@nestjs/mau@0.2.8': + dependencies: + chalk: 4.1.2 + cli-progress: 3.12.0 + commander: 4.1.1 + inquirer: 8.2.6 + node-emoji: 2.1.3 + ora: 5.4.1 + undici: 6.20.1 + + '@nestjs/platform-express@12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4)': + dependencies: + '@nestjs/common': 12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.0.4)(reflect-metadata@0.2.2)(rxjs@7.8.2) + cors: 2.8.6 + express: 5.2.1 + multer: 2.4.0 + path-to-regexp: 8.4.2 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + optional: true + + '@nestjs/platform-fastify@12.0.1(@fastify/static@10.1.4)(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4)': + dependencies: + '@fastify/cors': 11.3.0 + '@fastify/formbody': 9.0.0 + '@nestjs/common': 12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.0.4)(reflect-metadata@0.2.2)(rxjs@7.8.2) + fast-querystring: 1.1.2 + fastify: 5.12.1 + fastify-plugin: 6.0.0 + find-my-way: 9.9.0 + light-my-request: 6.6.0 + path-to-regexp: 8.4.2 + reusify: 1.1.0 + tslib: 2.8.1 + optionalDependencies: + '@fastify/static': 10.1.4 + + '@nestjs/schematics@12.0.4(chokidar@5.0.0)(prettier@3.9.8)(typescript@6.0.3)': + dependencies: + '@angular-devkit/core': 22.1.8(chokidar@5.0.0) + '@angular-devkit/schematics': 22.1.8(chokidar@5.0.0) + comment-json: 5.0.0 + jsonc-parser: 3.3.1 + pluralize: 8.0.0 + typescript: 6.0.3 + optionalDependencies: + prettier: 3.9.8 + transitivePeerDependencies: + - chokidar + + '@nestjs/swagger@12.0.1(@fastify/static@10.1.4)(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4)(reflect-metadata@0.2.2)': + dependencies: + '@microsoft/tsdoc': 0.16.0 + '@nestjs/common': 12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.0.4)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/mapped-types': 12.0.0(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2) + '@standard-schema/spec': 1.1.0 + es-toolkit: 1.51.0 + js-yaml: 5.4.1 + path-to-regexp: 8.4.2 + reflect-metadata: 0.2.2 + swagger-ui-dist: 5.32.14 + optionalDependencies: + '@fastify/static': 10.1.4 + + '@nestjs/testing@12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4)(@nestjs/platform-express@12.0.4)': + dependencies: + '@nestjs/common': 12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.0.4)(reflect-metadata@0.2.2)(rxjs@7.8.2) + tslib: 2.8.1 + optionalDependencies: + '@nestjs/platform-express': 12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4) + + '@noble/hashes@1.8.0': {} + + '@oxlint-tsgolint/darwin-arm64@7.0.2002': + optional: true + + '@oxlint-tsgolint/darwin-x64@7.0.2002': + optional: true + + '@oxlint-tsgolint/linux-arm64@7.0.2002': + optional: true + + '@oxlint-tsgolint/linux-x64@7.0.2002': + optional: true + + '@oxlint-tsgolint/win32-arm64@7.0.2002': + optional: true + + '@oxlint-tsgolint/win32-x64@7.0.2002': + optional: true + + '@oxlint/binding-android-arm-eabi@1.83.0': + optional: true + + '@oxlint/binding-android-arm64@1.83.0': + optional: true + + '@oxlint/binding-darwin-arm64@1.83.0': + optional: true + + '@oxlint/binding-darwin-x64@1.83.0': + optional: true + + '@oxlint/binding-freebsd-x64@1.83.0': + optional: true + + '@oxlint/binding-linux-arm-gnueabihf@1.83.0': + optional: true + + '@oxlint/binding-linux-arm-musleabihf@1.83.0': + optional: true + + '@oxlint/binding-linux-arm64-gnu@1.83.0': + optional: true + + '@oxlint/binding-linux-arm64-musl@1.83.0': + optional: true + + '@oxlint/binding-linux-ppc64-gnu@1.83.0': + optional: true + + '@oxlint/binding-linux-riscv64-gnu@1.83.0': + optional: true + + '@oxlint/binding-linux-riscv64-musl@1.83.0': + optional: true + + '@oxlint/binding-linux-s390x-gnu@1.83.0': + optional: true + + '@oxlint/binding-linux-x64-gnu@1.83.0': + optional: true + + '@oxlint/binding-linux-x64-musl@1.83.0': + optional: true + + '@oxlint/binding-openharmony-arm64@1.83.0': + optional: true + + '@oxlint/binding-win32-arm64-msvc@1.83.0': + optional: true + + '@oxlint/binding-win32-ia32-msvc@1.83.0': + optional: true + + '@oxlint/binding-win32-x64-msvc@1.83.0': + optional: true + + '@paralleldrive/cuid2@2.3.1': + dependencies: + '@noble/hashes': 1.8.0 + + '@parcel/watcher-android-arm64@2.6.0': + optional: true + + '@parcel/watcher-darwin-arm64@2.6.0': + optional: true + + '@parcel/watcher-darwin-x64@2.6.0': + optional: true + + '@parcel/watcher-freebsd-x64@2.6.0': + optional: true + + '@parcel/watcher-linux-arm-glibc@2.6.0': + optional: true + + '@parcel/watcher-linux-arm-musl@2.6.0': + optional: true + + '@parcel/watcher-linux-arm64-glibc@2.6.0': + optional: true + + '@parcel/watcher-linux-arm64-musl@2.6.0': + optional: true + + '@parcel/watcher-linux-x64-glibc@2.6.0': + optional: true + + '@parcel/watcher-linux-x64-musl@2.6.0': + optional: true + + '@parcel/watcher-win32-arm64@2.6.0': + optional: true + + '@parcel/watcher-win32-x64@2.6.0': + optional: true + + '@parcel/watcher@2.6.0': + dependencies: + detect-libc: 2.1.2 + is-glob: 4.0.3 + node-addon-api: 7.1.1 + picomatch: 4.0.7 + optionalDependencies: + '@parcel/watcher-android-arm64': 2.6.0 + '@parcel/watcher-darwin-arm64': 2.6.0 + '@parcel/watcher-darwin-x64': 2.6.0 + '@parcel/watcher-freebsd-x64': 2.6.0 + '@parcel/watcher-linux-arm-glibc': 2.6.0 + '@parcel/watcher-linux-arm-musl': 2.6.0 + '@parcel/watcher-linux-arm64-glibc': 2.6.0 + '@parcel/watcher-linux-arm64-musl': 2.6.0 + '@parcel/watcher-linux-x64-glibc': 2.6.0 + '@parcel/watcher-linux-x64-musl': 2.6.0 + '@parcel/watcher-win32-arm64': 2.6.0 + '@parcel/watcher-win32-x64': 2.6.0 + + '@pinojs/redact@0.4.0': {} + + '@pkgjs/parseargs@0.11.0': + optional: true + + '@pkgr/core@0.3.6': {} + + '@prisma/adapter-pg@7.10.0': + dependencies: + '@prisma/driver-adapter-utils': 7.10.0 + '@types/pg': 8.23.1 + pg: 8.23.1 + postgres-array: 3.0.4 + transitivePeerDependencies: + - pg-native + + '@prisma/client-runtime-utils@7.10.0': {} + + '@prisma/client@7.10.0(prisma@7.10.0(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(typescript@6.0.3))(typescript@6.0.3)': + dependencies: + '@prisma/client-runtime-utils': 7.10.0 + optionalDependencies: + prisma: 7.10.0(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(typescript@6.0.3) + typescript: 6.0.3 + + '@prisma/config@7.10.0': + dependencies: + c12: 3.3.4 + deepmerge-ts: 7.1.5 + effect: 3.20.0 + empathic: 2.0.0 + transitivePeerDependencies: + - magicast + + '@prisma/debug@7.10.0': {} + + '@prisma/debug@7.2.0': {} + + '@prisma/dev@0.24.17(typescript@6.0.3)': + dependencies: + '@electric-sql/pglite': 0.4.3 + '@electric-sql/pglite-socket': 0.1.3(@electric-sql/pglite@0.4.3) + '@electric-sql/pglite-tools': 0.3.3(@electric-sql/pglite@0.4.3) + '@prisma/get-platform': 7.2.0 + '@prisma/query-plan-executor': 7.2.0 + '@prisma/streams-local': 0.1.11 + find-my-way: 9.7.0 + foreground-child: 3.3.1 + get-port-please: 3.2.0 + pathe: 2.0.3 + proper-lockfile: 4.1.2 + remeda: 2.33.4 + std-env: 3.10.0 + valibot: 1.4.2(typescript@6.0.3) + zeptomatch: 2.1.0 + transitivePeerDependencies: + - typescript + + '@prisma/driver-adapter-utils@7.10.0': + dependencies: + '@prisma/debug': 7.10.0 + + '@prisma/engines-version@7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3': {} + + '@prisma/engines@7.10.0': + dependencies: + '@prisma/debug': 7.10.0 + '@prisma/engines-version': 7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3 + '@prisma/fetch-engine': 7.10.0 + '@prisma/get-platform': 7.10.0 + + '@prisma/fetch-engine@7.10.0': + dependencies: + '@prisma/debug': 7.10.0 + '@prisma/engines-version': 7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3 + '@prisma/get-platform': 7.10.0 + + '@prisma/get-platform@7.10.0': + dependencies: + '@prisma/debug': 7.10.0 + + '@prisma/get-platform@7.2.0': + dependencies: + '@prisma/debug': 7.2.0 + + '@prisma/query-plan-executor@7.2.0': {} + + '@prisma/streams-local@0.1.11': + dependencies: + ajv: 8.20.0 + better-result: 2.10.0 + env-paths: 3.0.0 + proper-lockfile: 4.1.2 + + '@prisma/studio-core@0.33.0(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)': + dependencies: + '@radix-ui/react-toggle': 1.1.10(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0) + '@types/react': 19.3.0 + '@visx/curve': 4.0.1-alpha.0 + '@visx/event': 4.0.1-alpha.0 + '@visx/grid': 4.0.1-alpha.0(react@19.3.0) + '@visx/group': 4.0.1-alpha.0(react@19.3.0) + '@visx/responsive': 4.0.1-alpha.0(react@19.3.0) + '@visx/scale': 4.0.1-alpha.0 + '@visx/shape': 4.0.1-alpha.0(react@19.3.0) + d3-array: 3.2.4 + d3-shape: 3.2.0 + elkjs: 0.11.1 + react: 19.3.0 + react-dom: 19.3.0(react@19.3.0) + transitivePeerDependencies: + - '@types/react-dom' + + '@radix-ui/primitive@1.1.3': {} + + '@radix-ui/react-compose-refs@1.1.2(@types/react@19.3.0)(react@19.3.0)': + dependencies: + react: 19.3.0 + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-primitive@2.1.3(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)': + dependencies: + '@radix-ui/react-slot': 1.2.3(@types/react@19.3.0)(react@19.3.0) + react: 19.3.0 + react-dom: 19.3.0(react@19.3.0) + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-slot@1.2.3(@types/react@19.3.0)(react@19.3.0)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.3.0)(react@19.3.0) + react: 19.3.0 + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-toggle@1.1.10(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-primitive': 2.1.3(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.3.0)(react@19.3.0) + react: 19.3.0 + react-dom: 19.3.0(react@19.3.0) + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-use-controllable-state@1.2.2(@types/react@19.3.0)(react@19.3.0)': + dependencies: + '@radix-ui/react-use-effect-event': 0.0.2(@types/react@19.3.0)(react@19.3.0) + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.3.0)(react@19.3.0) + react: 19.3.0 + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-use-effect-event@0.0.2(@types/react@19.3.0)(react@19.3.0)': + dependencies: + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.3.0)(react@19.3.0) + react: 19.3.0 + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-use-layout-effect@1.1.1(@types/react@19.3.0)(react@19.3.0)': + dependencies: + react: 19.3.0 + optionalDependencies: + '@types/react': 19.3.0 + + '@scalar/client-side-rendering@0.4.1': + dependencies: + '@scalar/schemas': 0.10.0 + '@scalar/types': 0.20.0 + '@scalar/validation': 0.6.3 + + '@scalar/helpers@0.12.0': {} + + '@scalar/nestjs-api-reference@1.2.19': + dependencies: + '@scalar/client-side-rendering': 0.4.1 + + '@scalar/schemas@0.10.0': + dependencies: + '@scalar/helpers': 0.12.0 + '@scalar/validation': 0.6.3 + + '@scalar/types@0.20.0': + dependencies: + '@scalar/helpers': 0.12.0 + nanoid: 5.1.16 + type-fest: 5.10.0 + zod: 4.6.5 + + '@scalar/validation@0.6.3': {} + + '@scarf/scarf@1.4.0': {} + + '@sinclair/typebox@0.34.52': {} + + '@sindresorhus/is@4.6.0': {} + + '@sinonjs/commons@3.0.1': + dependencies: + type-detect: 4.0.8 + + '@sinonjs/fake-timers@15.4.0': + dependencies: + '@sinonjs/commons': 3.0.1 + + '@smithy/core@3.39.0': + dependencies: + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@smithy/credential-provider-imds@4.5.2': + dependencies: + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@smithy/fetch-http-handler@5.8.1': + dependencies: + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@smithy/node-http-handler@4.14.2': + dependencies: + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@smithy/signature-v4@5.7.5': + dependencies: + '@smithy/core': 3.39.0 + '@smithy/types': 4.20.0 + tslib: 2.8.1 + + '@smithy/types@4.20.0': + dependencies: + tslib: 2.8.1 + + '@standard-schema/spec@1.1.0': {} + + '@tokenizer/inflate@0.4.1': + dependencies: + debug: 4.4.3 + token-types: 6.1.2 + transitivePeerDependencies: + - supports-color + + '@tokenizer/token@0.3.0': {} + + '@tsconfig/node10@1.0.13': {} + + '@tsconfig/node12@1.0.11': {} + + '@tsconfig/node14@1.0.3': {} + + '@tsconfig/node16@1.0.4': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.8.1 + optional: true + + '@types/babel__core@7.20.5': + dependencies: + '@babel/parser': 7.29.9 + '@babel/types': 7.29.8 + '@types/babel__generator': 7.27.0 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.28.0 + + '@types/babel__generator@7.27.0': + dependencies: + '@babel/types': 7.29.8 + + '@types/babel__template@7.4.4': + dependencies: + '@babel/parser': 7.29.9 + '@babel/types': 7.29.8 + + '@types/babel__traverse@7.28.0': + dependencies: + '@babel/types': 7.29.8 + + '@types/cookiejar@2.1.5': {} + + '@types/d3-array@3.0.3': {} + + '@types/d3-color@3.1.0': {} + + '@types/d3-delaunay@6.0.1': {} + + '@types/d3-format@3.0.1': {} + + '@types/d3-geo@3.1.0': + dependencies: + '@types/geojson': 7946.0.16 + + '@types/d3-interpolate@3.0.1': + dependencies: + '@types/d3-color': 3.1.0 + + '@types/d3-path@3.1.1': {} + + '@types/d3-scale@4.0.2': + dependencies: + '@types/d3-time': 3.0.0 + + '@types/d3-shape@3.1.7': + dependencies: + '@types/d3-path': 3.1.1 + + '@types/d3-time-format@2.1.0': {} + + '@types/d3-time@3.0.0': {} + + '@types/estree@1.0.9': {} + + '@types/geojson@7946.0.16': {} + + '@types/istanbul-lib-coverage@2.0.6': {} + + '@types/istanbul-lib-report@3.0.3': + dependencies: + '@types/istanbul-lib-coverage': 2.0.6 + + '@types/istanbul-reports@3.0.4': + dependencies: + '@types/istanbul-lib-report': 3.0.3 + + '@types/jest@30.0.0': + dependencies: + expect: 30.5.2 + pretty-format: 30.5.1 + + '@types/json-schema@7.0.15': {} + + '@types/lodash@4.17.26': {} + + '@types/methods@1.1.4': {} + + '@types/node@24.13.6': + dependencies: + undici-types: 7.18.2 + + '@types/pg@8.23.1': + dependencies: + '@types/node': 24.13.6 + pg-protocol: 1.16.1 + pg-types: 2.2.0 + + '@types/react@19.3.0': + dependencies: + csstype: 3.2.3 + + '@types/stack-utils@2.0.3': {} + + '@types/superagent@8.1.11': + dependencies: + '@types/cookiejar': 2.1.5 + '@types/methods': 1.1.4 + '@types/node': 24.13.6 + form-data: 4.0.6 + + '@types/supertest@7.2.1': + dependencies: + '@types/methods': 1.1.4 + '@types/superagent': 8.1.11 + + '@types/yargs-parser@21.0.3': {} + + '@types/yargs@17.0.35': + dependencies: + '@types/yargs-parser': 21.0.3 + + '@ungap/structured-clone@1.4.0': {} + + '@unrs/resolver-binding-android-arm-eabi@1.12.2': + optional: true + + '@unrs/resolver-binding-android-arm64@1.12.2': + optional: true + + '@unrs/resolver-binding-darwin-arm64@1.12.2': + optional: true + + '@unrs/resolver-binding-darwin-x64@1.12.2': + optional: true + + '@unrs/resolver-binding-freebsd-x64@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-arm-gnueabihf@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-arm-musleabihf@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-arm64-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-arm64-musl@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-loong64-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-loong64-musl@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-ppc64-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-riscv64-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-riscv64-musl@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-s390x-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-x64-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-x64-musl@1.12.2': + optional: true + + '@unrs/resolver-binding-openharmony-arm64@1.12.2': + optional: true + + '@unrs/resolver-binding-wasm32-wasi@1.12.2': + dependencies: + '@emnapi/core': 1.10.0 + '@emnapi/runtime': 1.10.0 + '@napi-rs/wasm-runtime': 1.2.4(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0) + optional: true + + '@unrs/resolver-binding-win32-arm64-msvc@1.12.2': + optional: true + + '@unrs/resolver-binding-win32-ia32-msvc@1.12.2': + optional: true + + '@unrs/resolver-binding-win32-x64-msvc@1.12.2': + optional: true + + '@visx/curve@4.0.1-alpha.0': + dependencies: + '@visx/vendor': 4.0.0-alpha.0 + + '@visx/event@4.0.1-alpha.0': + dependencies: + '@types/react': 19.3.0 + '@visx/point': 4.0.1-alpha.0 + + '@visx/grid@4.0.1-alpha.0(react@19.3.0)': + dependencies: + '@types/react': 19.3.0 + '@visx/curve': 4.0.1-alpha.0 + '@visx/group': 4.0.1-alpha.0(react@19.3.0) + '@visx/point': 4.0.1-alpha.0 + '@visx/scale': 4.0.1-alpha.0 + '@visx/shape': 4.0.1-alpha.0(react@19.3.0) + classnames: 2.5.1 + react: 19.3.0 + + '@visx/group@4.0.1-alpha.0(react@19.3.0)': + dependencies: + '@types/react': 19.3.0 + classnames: 2.5.1 + react: 19.3.0 + + '@visx/point@4.0.1-alpha.0': {} + + '@visx/responsive@4.0.1-alpha.0(react@19.3.0)': + dependencies: + '@types/lodash': 4.17.26 + '@types/react': 19.3.0 + lodash: 4.18.1 + react: 19.3.0 + + '@visx/scale@4.0.1-alpha.0': + dependencies: + '@visx/vendor': 4.0.0-alpha.0 + + '@visx/shape@4.0.1-alpha.0(react@19.3.0)': + dependencies: + '@types/lodash': 4.17.26 + '@types/react': 19.3.0 + '@visx/curve': 4.0.1-alpha.0 + '@visx/group': 4.0.1-alpha.0(react@19.3.0) + '@visx/scale': 4.0.1-alpha.0 + '@visx/vendor': 4.0.0-alpha.0 + classnames: 2.5.1 + lodash: 4.18.1 + react: 19.3.0 + + '@visx/vendor@4.0.0-alpha.0': + dependencies: + '@types/d3-array': 3.0.3 + '@types/d3-color': 3.1.0 + '@types/d3-delaunay': 6.0.1 + '@types/d3-format': 3.0.1 + '@types/d3-geo': 3.1.0 + '@types/d3-interpolate': 3.0.1 + '@types/d3-path': 3.1.1 + '@types/d3-scale': 4.0.2 + '@types/d3-shape': 3.1.7 + '@types/d3-time': 3.0.0 + '@types/d3-time-format': 2.1.0 + d3-array: 3.2.1 + d3-color: 3.1.0 + d3-delaunay: 6.0.2 + d3-format: 3.1.0 + d3-geo: 3.1.0 + d3-interpolate: 3.0.1 + d3-path: 3.1.0 + d3-scale: 4.0.2 + d3-shape: 3.2.0 + d3-time: 3.1.0 + d3-time-format: 4.1.0 + internmap: 2.0.3 + + '@webassemblyjs/ast@1.14.1': + dependencies: + '@webassemblyjs/helper-numbers': 1.13.2 + '@webassemblyjs/helper-wasm-bytecode': 1.13.2 + + '@webassemblyjs/floating-point-hex-parser@1.13.2': {} + + '@webassemblyjs/helper-api-error@1.13.2': {} + + '@webassemblyjs/helper-buffer@1.14.1': {} + + '@webassemblyjs/helper-numbers@1.13.2': + dependencies: + '@webassemblyjs/floating-point-hex-parser': 1.13.2 + '@webassemblyjs/helper-api-error': 1.13.2 + '@xtuc/long': 4.2.2 + + '@webassemblyjs/helper-wasm-bytecode@1.13.2': {} + + '@webassemblyjs/helper-wasm-section@1.14.1': + dependencies: + '@webassemblyjs/ast': 1.14.1 + '@webassemblyjs/helper-buffer': 1.14.1 + '@webassemblyjs/helper-wasm-bytecode': 1.13.2 + '@webassemblyjs/wasm-gen': 1.14.1 + + '@webassemblyjs/ieee754@1.13.2': + dependencies: + '@xtuc/ieee754': 1.2.0 + + '@webassemblyjs/leb128@1.13.2': + dependencies: + '@xtuc/long': 4.2.2 + + '@webassemblyjs/utf8@1.13.2': {} + + '@webassemblyjs/wasm-edit@1.14.1': + dependencies: + '@webassemblyjs/ast': 1.14.1 + '@webassemblyjs/helper-buffer': 1.14.1 + '@webassemblyjs/helper-wasm-bytecode': 1.13.2 + '@webassemblyjs/helper-wasm-section': 1.14.1 + '@webassemblyjs/wasm-gen': 1.14.1 + '@webassemblyjs/wasm-opt': 1.14.1 + '@webassemblyjs/wasm-parser': 1.14.1 + '@webassemblyjs/wast-printer': 1.14.1 + + '@webassemblyjs/wasm-gen@1.14.1': + dependencies: + '@webassemblyjs/ast': 1.14.1 + '@webassemblyjs/helper-wasm-bytecode': 1.13.2 + '@webassemblyjs/ieee754': 1.13.2 + '@webassemblyjs/leb128': 1.13.2 + '@webassemblyjs/utf8': 1.13.2 + + '@webassemblyjs/wasm-opt@1.14.1': + dependencies: + '@webassemblyjs/ast': 1.14.1 + '@webassemblyjs/helper-buffer': 1.14.1 + '@webassemblyjs/wasm-gen': 1.14.1 + '@webassemblyjs/wasm-parser': 1.14.1 + + '@webassemblyjs/wasm-parser@1.14.1': + dependencies: + '@webassemblyjs/ast': 1.14.1 + '@webassemblyjs/helper-api-error': 1.13.2 + '@webassemblyjs/helper-wasm-bytecode': 1.13.2 + '@webassemblyjs/ieee754': 1.13.2 + '@webassemblyjs/leb128': 1.13.2 + '@webassemblyjs/utf8': 1.13.2 + + '@webassemblyjs/wast-printer@1.14.1': + dependencies: + '@webassemblyjs/ast': 1.14.1 + '@xtuc/long': 4.2.2 + + '@xtuc/ieee754@1.2.0': {} + + '@xtuc/long@4.2.2': {} + + abstract-logging@2.0.1: {} + + accepts@2.0.0: + dependencies: + mime-types: 3.0.2 + negotiator: 1.1.0 + optional: true + + acorn-walk@8.3.5: + dependencies: + acorn: 8.18.0 + + acorn@8.18.0: {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv-keywords@5.1.0(ajv@8.20.0): + dependencies: + ajv: 8.20.0 + fast-deep-equal: 3.1.3 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.8 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-escapes@4.3.2: + dependencies: + type-fest: 0.21.3 + + ansi-regex@5.0.1: {} + + ansi-regex@6.3.0: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansi-styles@5.2.0: {} + + ansi-styles@6.2.3: {} + + ansis@4.4.0: {} + + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.2 + + append-field@1.0.0: + optional: true + + arg@4.1.3: {} + + argparse@1.0.10: + dependencies: + sprintf-js: 1.0.3 + + argparse@2.0.1: {} + + array-timsort@1.0.3: {} + + asap@2.0.6: {} + + asynckit@0.4.0: {} + + atomic-sleep@1.0.0: {} + + avvio@9.3.0: + dependencies: + '@fastify/error': 4.2.0 + fastq: 1.20.3 + + aws-ssl-profiles@1.1.2: {} + + babel-jest@30.5.2(@babel/core@7.29.7): + dependencies: + '@babel/core': 7.29.7 + '@jest/transform': 30.5.2 + '@types/babel__core': 7.20.5 + babel-plugin-istanbul: 8.0.0 + babel-preset-jest: 30.5.0(@babel/core@7.29.7) + chalk: 4.1.2 + graceful-fs: 4.2.11 + slash: 3.0.0 + transitivePeerDependencies: + - supports-color + + babel-plugin-istanbul@8.0.0: + dependencies: + '@babel/helper-plugin-utils': 7.29.7 + '@istanbuljs/load-nyc-config': 1.1.0 + '@istanbuljs/schema': 0.1.6 + istanbul-lib-instrument: 6.0.3 + test-exclude: 7.0.2 + transitivePeerDependencies: + - supports-color + + babel-plugin-jest-hoist@30.5.0: + dependencies: + '@types/babel__core': 7.20.5 + + babel-preset-current-node-syntax@1.2.0(@babel/core@7.29.7): + dependencies: + '@babel/core': 7.29.7 + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.29.7) + '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.29.7) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.29.7) + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.29.7) + '@babel/plugin-syntax-import-attributes': 7.29.7(@babel/core@7.29.7) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.29.7) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.29.7) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.29.7) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.29.7) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.29.7) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.29.7) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.29.7) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.29.7) + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.29.7) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.29.7) + + babel-preset-jest@30.5.0(@babel/core@7.29.7): + dependencies: + '@babel/core': 7.29.7 + babel-plugin-jest-hoist: 30.5.0 + babel-preset-current-node-syntax: 1.2.0(@babel/core@7.29.7) + + balanced-match@1.0.2: {} + + balanced-match@4.0.4: {} + + base64-js@1.5.1: {} + + baseline-browser-mapping@2.11.25: {} + + better-result@2.10.0: {} + + bl@4.1.0: + dependencies: + buffer: 5.7.1 + inherits: 2.0.4 + readable-stream: 3.6.2 + + body-parser@2.3.0: + dependencies: + bytes: 3.1.2 + content-type: 2.1.0 + debug: 4.4.3 + http-errors: 2.0.1 + iconv-lite: 0.7.3 + on-finished: 2.4.1 + qs: 6.16.0 + raw-body: 3.0.2 + type-is: 2.1.0 + transitivePeerDependencies: + - supports-color + optional: true + + bowser@2.15.0: {} + + brace-expansion@2.1.7: + dependencies: + balanced-match: 1.0.2 + + brace-expansion@5.0.12: + dependencies: + balanced-match: 4.0.4 + + browserslist@4.29.0: + dependencies: + baseline-browser-mapping: 2.11.25 + caniuse-lite: 1.0.30001810 + electron-to-chromium: 1.5.433 + node-releases: 2.0.56 + update-browserslist-db: 1.3.3(browserslist@4.29.0) + + bs-logger@0.2.6: + dependencies: + fast-json-stable-stringify: 2.1.0 + + bser@2.1.1: + dependencies: + node-int64: 0.4.0 + + buffer-from@1.1.2: {} + + buffer@5.7.1: + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + + busboy@1.6.0: + dependencies: + streamsearch: 1.1.0 + optional: true + + bytes@3.1.2: + optional: true + + c12@3.3.4: + dependencies: + chokidar: 5.0.0 + confbox: 0.2.4 + defu: 6.1.7 + dotenv: 17.4.2 + exsolve: 1.1.3 + giget: 3.3.1 + jiti: 2.7.0 + ohash: 2.0.12 + pathe: 2.0.3 + perfect-debounce: 2.1.0 + pkg-types: 2.3.3 + rc9: 3.1.0 + + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + + call-bound@1.0.4: + dependencies: + call-bind-apply-helpers: 1.0.2 + get-intrinsic: 1.3.0 + + callsites@3.1.0: {} + + camelcase@5.3.1: {} + + camelcase@6.3.0: {} + + caniuse-lite@1.0.30001810: {} + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@0.7.0: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chrome-trace-event@1.0.4: {} + + ci-info@4.4.0: {} + + cjs-module-lexer@2.2.1: {} + + classnames@2.5.1: {} + + cli-cursor@3.1.0: + dependencies: + restore-cursor: 3.1.0 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-progress@3.12.0: + dependencies: + string-width: 4.2.3 + + cli-spinners@2.9.2: {} + + cli-spinners@3.4.0: {} + + cli-table3@0.6.5: + dependencies: + string-width: 4.2.3 + optionalDependencies: + '@colors/colors': 1.5.0 + + cli-width@3.0.0: {} + + cli-width@4.1.0: {} + + cliui@8.0.1: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + + clone@1.0.4: {} + + cluster-key-slot@1.1.1: {} + + co@4.6.0: {} + + collect-v8-coverage@1.0.3: {} + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + colorette@2.0.20: {} + + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + + commander@15.0.0: {} + + commander@2.20.3: {} + + commander@4.1.1: {} + + comment-json@5.0.0: + dependencies: + array-timsort: 1.0.3 + esprima: 4.0.1 + + component-emitter@1.3.1: {} + + confbox@0.2.4: {} + + confbox@0.3.1: {} + + content-disposition@1.1.0: + optional: true + + content-disposition@3.0.0: {} + + content-type@1.0.5: + optional: true + + content-type@2.1.0: + optional: true + + convert-source-map@2.0.0: {} + + cookie-signature@1.2.2: {} + + cookie@0.7.2: + optional: true + + cookie@1.1.1: {} + + cookiejar@2.1.4: {} + + cors@2.8.6: + dependencies: + object-assign: 4.1.1 + vary: 1.1.2 + optional: true + + create-require@1.1.1: {} + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + csstype@3.2.3: {} + + d3-array@3.2.1: + dependencies: + internmap: 2.0.3 + + d3-array@3.2.4: + dependencies: + internmap: 2.0.3 + + d3-color@3.1.0: {} + + d3-delaunay@6.0.2: + dependencies: + delaunator: 5.1.0 + + d3-format@3.1.0: {} + + d3-geo@3.1.0: + dependencies: + d3-array: 3.2.4 + + d3-interpolate@3.0.1: + dependencies: + d3-color: 3.1.0 + + d3-path@3.1.0: {} + + d3-scale@4.0.2: + dependencies: + d3-array: 3.2.4 + d3-format: 3.1.0 + d3-interpolate: 3.0.1 + d3-time: 3.1.0 + d3-time-format: 4.1.0 + + d3-shape@3.2.0: + dependencies: + d3-path: 3.1.0 + + d3-time-format@4.1.0: + dependencies: + d3-time: 3.1.0 + + d3-time@3.1.0: + dependencies: + d3-array: 3.2.4 + + dateformat@4.6.3: {} + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + dedent@1.7.2: {} + + deepmerge-ts@7.1.5: {} + + deepmerge@4.3.1: {} + + defaults@1.0.4: + dependencies: + clone: 1.0.4 + + defu@6.1.7: {} + + delaunator@5.1.0: + dependencies: + robust-predicates: 3.0.3 + + delayed-stream@1.0.0: {} + + denque@2.1.0: {} + + depd@2.0.0: {} + + dequal@2.0.3: {} + + destr@2.0.5: {} + + detect-libc@2.1.2: {} + + detect-newline@3.1.0: {} + + dezalgo@1.0.4: + dependencies: + asap: 2.0.6 + wrappy: 1.0.2 + + diff@4.0.4: {} + + dotenv@17.4.2: {} + + dotenv@18.0.7: {} + + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + + eastasianwidth@0.2.0: {} + + ee-first@1.1.1: + optional: true + + effect@3.20.0: + dependencies: + '@standard-schema/spec': 1.1.0 + fast-check: 3.23.2 + + electron-to-chromium@1.5.433: {} + + elkjs@0.11.1: {} + + emittery@0.13.1: {} + + emoji-regex@8.0.0: {} + + emoji-regex@9.2.2: {} + + emojilib@2.4.0: {} + + empathic@2.0.0: {} + + encodeurl@2.0.0: + optional: true + + end-of-stream@1.4.5: + dependencies: + once: 1.4.0 + + enhanced-resolve@5.25.1: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.3.3 + + env-paths@3.0.0: {} + + error-ex@1.3.4: + dependencies: + is-arrayish: 0.2.1 + + es-define-property@1.0.1: {} + + es-errors@1.3.0: {} + + es-module-lexer@2.3.2: {} + + es-object-atoms@1.1.2: + dependencies: + es-errors: 1.3.0 + + es-set-tostringtag@2.1.0: + dependencies: + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + has-tostringtag: 1.0.2 + hasown: 2.0.4 + + es-toolkit@1.51.0: {} + + escalade@3.2.0: {} + + escape-html@1.0.3: {} + + escape-string-regexp@1.0.5: {} + + escape-string-regexp@2.0.0: {} + + esprima@4.0.1: {} + + etag@1.8.1: + optional: true + + events@3.3.0: {} + + execa@5.1.1: + dependencies: + cross-spawn: 7.0.6 + get-stream: 6.0.1 + human-signals: 2.1.0 + is-stream: 2.0.1 + merge-stream: 2.0.0 + npm-run-path: 4.0.1 + onetime: 5.1.2 + signal-exit: 3.0.7 + strip-final-newline: 2.0.0 + + exit-x@0.2.2: {} + + expect@30.5.2: + dependencies: + '@jest/expect-utils': 30.5.2 + '@jest/get-type': 30.5.0 + jest-matcher-utils: 30.5.2 + jest-message-util: 30.5.1 + jest-mock: 30.5.2 + jest-util: 30.5.1 + + express@5.2.1: + dependencies: + accepts: 2.0.0 + body-parser: 2.3.0 + content-disposition: 1.1.0 + content-type: 1.0.5 + cookie: 0.7.2 + cookie-signature: 1.2.2 + debug: 4.4.3 + depd: 2.0.0 + encodeurl: 2.0.0 + escape-html: 1.0.3 + etag: 1.8.1 + finalhandler: 2.1.1 + fresh: 2.0.0 + http-errors: 2.0.1 + merge-descriptors: 2.0.0 + mime-types: 3.0.2 + on-finished: 2.4.1 + once: 1.4.0 + parseurl: 1.3.3 + proxy-addr: 2.0.8 + qs: 6.16.0 + range-parser: 1.3.0 + router: 2.2.0 + send: 1.2.1 + serve-static: 2.2.1 + statuses: 2.0.2 + type-is: 2.1.0 + vary: 1.1.2 + transitivePeerDependencies: + - supports-color + optional: true + + exsolve@1.1.3: {} + + external-editor@3.1.0: + dependencies: + chardet: 0.7.0 + iconv-lite: 0.4.24 + tmp: 0.0.33 + + fast-check@3.23.2: + dependencies: + pure-rand: 6.1.0 + + fast-copy@4.1.1: {} + + fast-decode-uri-component@1.0.1: {} + + fast-deep-equal@3.1.3: {} + + fast-json-stable-stringify@2.1.0: {} + + fast-json-stringify@7.0.1: + dependencies: + '@fastify/merge-json-schemas': 0.2.1 + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + fast-uri: 4.2.1 + json-schema-ref-resolver: 3.0.0 + rfdc: 1.4.1 + + fast-querystring@1.1.2: + dependencies: + fast-decode-uri-component: 1.0.1 + + fast-safe-stringify@2.1.1: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.8: {} + + fast-uri@4.2.1: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fastify-plugin@6.0.0: {} + + fastify@5.12.1: + dependencies: + '@fastify/ajv-compiler': 4.0.6 + '@fastify/error': 4.2.0 + '@fastify/fast-json-stringify-compiler': 5.1.0 + '@fastify/proxy-addr': 5.1.1 + abstract-logging: 2.0.1 + avvio: 9.3.0 + fast-json-stringify: 7.0.1 + find-my-way: 9.9.0 + light-my-request: 6.6.0 + pino: 10.3.1 + process-warning: 5.1.0 + rfdc: 1.4.1 + secure-json-parse: 4.1.0 + semver: 7.8.5 + toad-cache: 3.7.4 + + fastq@1.20.3: + dependencies: + reusify: 1.1.0 + + fb-watchman@2.0.2: + dependencies: + bser: 2.1.1 + + fdir@6.5.0(picomatch@4.0.7): + optionalDependencies: + picomatch: 4.0.7 + + figures@3.2.0: + dependencies: + escape-string-regexp: 1.0.5 + + file-type@22.1.1: + dependencies: + '@tokenizer/inflate': 0.4.1 + strtok3: 10.3.5 + token-types: 6.1.2 + uint8array-extras: 1.5.0 + transitivePeerDependencies: + - supports-color + + finalhandler@2.1.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.0 + escape-html: 1.0.3 + on-finished: 2.4.1 + parseurl: 1.3.3 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + optional: true + + find-my-way@9.7.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-querystring: 1.1.2 + safe-regex2: 5.1.1 + + find-my-way@9.9.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-querystring: 1.1.2 + safe-regex2: 5.1.1 + + find-up@4.1.0: + dependencies: + locate-path: 5.0.0 + path-exists: 4.0.0 + + foreground-child@3.3.1: + dependencies: + cross-spawn: 7.0.6 + signal-exit: 4.1.0 + + form-data@4.0.6: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + es-set-tostringtag: 2.1.0 + hasown: 2.0.4 + mime-types: 2.1.35 + + formidable@3.5.4: + dependencies: + '@paralleldrive/cuid2': 2.3.1 + dezalgo: 1.0.4 + once: 1.4.0 + + forwarded@0.2.0: + optional: true + + fresh@2.0.0: + optional: true + + function-bind@1.1.2: {} + + generate-function@2.3.1: + dependencies: + is-property: 1.0.2 + + gensync@1.0.0-beta.2: {} + + get-caller-file@2.0.5: {} + + get-east-asian-width@1.7.0: {} + + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.2 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.4 + math-intrinsics: 1.1.0 + + get-package-type@0.1.0: {} + + get-port-please@3.2.0: {} + + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.2 + + get-stream@6.0.1: {} + + giget@3.3.1: {} + + glob@10.5.0: + dependencies: + foreground-child: 3.3.1 + jackspeak: 3.4.3 + minimatch: 9.0.9 + minipass: 7.1.3 + package-json-from-dist: 1.0.1 + path-scurry: 1.11.1 + + glob@13.0.6: + dependencies: + minimatch: 10.2.6 + minipass: 7.1.3 + path-scurry: 2.0.2 + + gopd@1.2.0: {} + + graceful-fs@4.2.11: {} + + grammex@3.1.13: {} + + graphmatch@1.1.1: {} + + handlebars@4.7.9: + dependencies: + minimist: 1.2.8 + neo-async: 2.6.2 + source-map: 0.6.1 + wordwrap: 1.0.0 + optionalDependencies: + uglify-js: 3.19.3 + + has-flag@4.0.0: {} + + has-symbols@1.1.0: {} + + has-tostringtag@1.0.2: + dependencies: + has-symbols: 1.1.0 + + hasown@2.0.4: + dependencies: + function-bind: 1.1.2 + + help-me@5.0.0: {} + + html-escaper@2.0.2: {} + + http-errors@2.0.1: + dependencies: + depd: 2.0.0 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 2.0.2 + toidentifier: 1.0.1 + + human-signals@2.1.0: {} + + iconv-lite@0.4.24: + dependencies: + safer-buffer: 2.1.2 + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + ieee754@1.2.1: {} + + import-local@3.2.0: + dependencies: + pkg-dir: 4.2.0 + resolve-cwd: 3.0.0 + + imurmurhash@0.1.4: {} + + inherits@2.0.4: {} + + inquirer@8.2.6: + dependencies: + ansi-escapes: 4.3.2 + chalk: 4.1.2 + cli-cursor: 3.1.0 + cli-width: 3.0.0 + external-editor: 3.1.0 + figures: 3.2.0 + lodash: 4.18.1 + mute-stream: 0.0.8 + ora: 5.4.1 + run-async: 2.4.1 + rxjs: 7.8.2 + string-width: 4.2.3 + strip-ansi: 6.0.1 + through: 2.3.8 + wrap-ansi: 6.2.0 + + internmap@2.0.3: {} + + ioredis@6.0.0: + dependencies: + '@ioredis/commands': 2.0.0 + cluster-key-slot: 1.1.1 + debug: 4.4.3 + denque: 2.1.0 + redis-errors: 1.2.0 + standard-as-callback: 2.1.0 + transitivePeerDependencies: + - supports-color + + ipaddr.js@1.9.1: + optional: true + + ipaddr.js@2.5.0: {} + + is-arrayish@0.2.1: {} + + is-extglob@2.1.1: {} + + is-fullwidth-code-point@3.0.0: {} + + is-generator-fn@2.1.0: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-interactive@1.0.0: {} + + is-interactive@2.0.0: {} + + is-promise@4.0.0: + optional: true + + is-property@1.0.2: {} + + is-stream@2.0.1: {} + + is-unicode-supported@0.1.0: {} + + is-unicode-supported@2.1.0: {} + + isexe@2.0.0: {} + + istanbul-lib-coverage@3.2.2: {} + + istanbul-lib-instrument@6.0.3: + dependencies: + '@babel/core': 7.29.7 + '@babel/parser': 7.29.9 + '@istanbuljs/schema': 0.1.6 + istanbul-lib-coverage: 3.2.2 + semver: 7.8.5 + transitivePeerDependencies: + - supports-color + + istanbul-lib-report@3.0.1: + dependencies: + istanbul-lib-coverage: 3.2.2 + make-dir: 4.0.0 + supports-color: 7.2.0 + + istanbul-lib-source-maps@5.0.6: + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + debug: 4.4.3 + istanbul-lib-coverage: 3.2.2 + transitivePeerDependencies: + - supports-color + + istanbul-reports@3.2.0: + dependencies: + html-escaper: 2.0.2 + istanbul-lib-report: 3.0.1 + + iterare@1.2.1: {} + + jackspeak@3.4.3: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + + jest-changed-files@30.5.1: + dependencies: + execa: 5.1.1 + jest-util: 30.5.1 + p-limit: 3.1.0 + + jest-circus@30.5.2: + dependencies: + '@jest/environment': 30.5.2 + '@jest/expect': 30.5.2 + '@jest/test-result': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.13.6 + chalk: 4.1.2 + co: 4.6.0 + dedent: 1.7.2 + is-generator-fn: 2.1.0 + jest-each: 30.5.2 + jest-matcher-utils: 30.5.2 + jest-message-util: 30.5.1 + jest-runtime: 30.5.2 + jest-snapshot: 30.5.2 + jest-util: 30.5.1 + p-limit: 3.1.0 + pretty-format: 30.5.1 + pure-rand: 7.0.1 + slash: 3.0.0 + stack-utils: 2.0.6 + transitivePeerDependencies: + - babel-plugin-macros + - supports-color + + jest-cli@30.5.2(@types/node@24.13.6)(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)): + dependencies: + '@jest/core': 30.5.2(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)) + '@jest/test-result': 30.5.2 + '@jest/types': 30.5.1 + chalk: 4.1.2 + exit-x: 0.2.2 + import-local: 3.2.0 + jest-config: 30.5.2(@types/node@24.13.6)(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)) + jest-util: 30.5.1 + jest-validate: 30.5.1 + yargs: 17.7.3 + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - esbuild-register + - supports-color + - ts-node + + jest-config@30.5.2(@types/node@24.13.6)(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)): + dependencies: + '@babel/core': 7.29.7 + '@jest/get-type': 30.5.0 + '@jest/pattern': 30.5.0 + '@jest/test-sequencer': 30.5.2 + '@jest/types': 30.5.1 + babel-jest: 30.5.2(@babel/core@7.29.7) + chalk: 4.1.2 + ci-info: 4.4.0 + deepmerge: 4.3.1 + glob: 13.0.6 + graceful-fs: 4.2.11 + jest-circus: 30.5.2 + jest-docblock: 30.5.0 + jest-environment-node: 30.5.2 + jest-regex-util: 30.5.0 + jest-resolve: 30.5.1 + jest-runner: 30.5.2 + jest-util: 30.5.1 + jest-validate: 30.5.1 + parse-json: 5.2.0 + pretty-format: 30.5.1 + slash: 3.0.0 + strip-json-comments: 3.1.1 + optionalDependencies: + '@types/node': 24.13.6 + ts-node: 10.9.2(@types/node@24.13.6)(typescript@6.0.3) + transitivePeerDependencies: + - babel-plugin-macros + - supports-color + + jest-diff@30.5.2: + dependencies: + '@jest/diff-sequences': 30.5.0 + '@jest/get-type': 30.5.0 + chalk: 4.1.2 + pretty-format: 30.5.1 + + jest-docblock@30.5.0: + dependencies: + detect-newline: 3.1.0 + + jest-each@30.5.2: + dependencies: + '@jest/get-type': 30.5.0 + '@jest/types': 30.5.1 + chalk: 4.1.2 + jest-regex-util: 30.5.0 + jest-util: 30.5.1 + pretty-format: 30.5.1 + + jest-environment-node@30.5.2: + dependencies: + '@jest/environment': 30.5.2 + '@jest/fake-timers': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.13.6 + jest-mock: 30.5.2 + jest-util: 30.5.1 + jest-validate: 30.5.1 + + jest-haste-map@30.5.1: + dependencies: + '@jest/types': 30.5.1 + '@parcel/watcher': 2.6.0 + '@types/node': 24.13.6 + anymatch: 3.1.3 + fb-watchman: 2.0.2 + fdir: 6.5.0(picomatch@4.0.7) + graceful-fs: 4.2.11 + jest-regex-util: 30.5.0 + jest-util: 30.5.1 + jest-worker: 30.5.1 + picomatch: 4.0.7 + + jest-leak-detector@30.5.1: + dependencies: + '@jest/get-type': 30.5.0 + pretty-format: 30.5.1 + + jest-matcher-utils@30.5.2: + dependencies: + '@jest/get-type': 30.5.0 + chalk: 4.1.2 + jest-diff: 30.5.2 + pretty-format: 30.5.1 + + jest-message-util@30.5.1: + dependencies: + '@babel/code-frame': 7.29.7 + '@jest/types': 30.5.1 + '@types/stack-utils': 2.0.3 + chalk: 4.1.2 + graceful-fs: 4.2.11 + jest-util: 30.5.1 + picomatch: 4.0.7 + pretty-format: 30.5.1 + slash: 3.0.0 + stack-utils: 2.0.6 + + jest-mock@30.5.2: + dependencies: + '@jest/expect-utils': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.13.6 + jest-util: 30.5.1 + + jest-regex-util@30.5.0: {} + + jest-resolve-dependencies@30.5.2: + dependencies: + jest-regex-util: 30.5.0 + jest-snapshot: 30.5.2 + transitivePeerDependencies: + - supports-color + + jest-resolve@30.5.1: + dependencies: + chalk: 4.1.2 + graceful-fs: 4.2.11 + jest-haste-map: 30.5.1 + jest-util: 30.5.1 + jest-validate: 30.5.1 + slash: 3.0.0 + unrs-resolver: 1.12.2 + + jest-runner@30.5.2: + dependencies: + '@jest/console': 30.5.2 + '@jest/environment': 30.5.2 + '@jest/source-map': 30.5.2 + '@jest/test-result': 30.5.2 + '@jest/transform': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.13.6 + chalk: 4.1.2 + emittery: 0.13.1 + exit-x: 0.2.2 + graceful-fs: 4.2.11 + jest-docblock: 30.5.0 + jest-environment-node: 30.5.2 + jest-haste-map: 30.5.1 + jest-leak-detector: 30.5.1 + jest-message-util: 30.5.1 + jest-resolve: 30.5.1 + jest-runtime: 30.5.2 + jest-util: 30.5.1 + jest-watcher: 30.5.2 + jest-worker: 30.5.1 + p-limit: 3.1.0 + transitivePeerDependencies: + - supports-color + + jest-runtime@30.5.2: + dependencies: + '@jest/environment': 30.5.2 + '@jest/fake-timers': 30.5.2 + '@jest/globals': 30.5.2 + '@jest/source-map': 30.5.2 + '@jest/test-result': 30.5.2 + '@jest/transform': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.13.6 + chalk: 4.1.2 + cjs-module-lexer: 2.2.1 + collect-v8-coverage: 1.0.3 + es-module-lexer: 2.3.2 + glob: 13.0.6 + graceful-fs: 4.2.11 + jest-haste-map: 30.5.1 + jest-message-util: 30.5.1 + jest-mock: 30.5.2 + jest-regex-util: 30.5.0 + jest-resolve: 30.5.1 + jest-snapshot: 30.5.2 + jest-util: 30.5.1 + slash: 3.0.0 + strip-bom: 4.0.0 + transitivePeerDependencies: + - supports-color + + jest-snapshot@30.5.2: + dependencies: + '@babel/core': 7.29.7 + '@babel/generator': 7.29.8 + '@babel/plugin-syntax-jsx': 7.29.7(@babel/core@7.29.7) + '@babel/plugin-syntax-typescript': 7.29.7(@babel/core@7.29.7) + '@babel/types': 7.29.8 + '@jest/expect-utils': 30.5.2 + '@jest/get-type': 30.5.0 + '@jest/snapshot-utils': 30.5.1 + '@jest/transform': 30.5.2 + '@jest/types': 30.5.1 + babel-preset-current-node-syntax: 1.2.0(@babel/core@7.29.7) + chalk: 4.1.2 + expect: 30.5.2 + graceful-fs: 4.2.11 + jest-diff: 30.5.2 + jest-matcher-utils: 30.5.2 + jest-message-util: 30.5.1 + jest-util: 30.5.1 + pretty-format: 30.5.1 + semver: 7.8.5 + synckit: 0.11.13 + transitivePeerDependencies: + - supports-color + + jest-util@30.5.1: + dependencies: + '@jest/types': 30.5.1 + '@types/node': 24.13.6 + chalk: 4.1.2 + ci-info: 4.4.0 + graceful-fs: 4.2.11 + picomatch: 4.0.7 + + jest-validate@30.5.1: + dependencies: + '@jest/get-type': 30.5.0 + '@jest/types': 30.5.1 + camelcase: 6.3.0 + chalk: 4.1.2 + leven: 3.1.0 + pretty-format: 30.5.1 + + jest-watcher@30.5.2: + dependencies: + '@jest/test-result': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.13.6 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + emittery: 0.13.1 + jest-util: 30.5.1 + string-length: 4.0.2 + + jest-worker@27.5.1: + dependencies: + '@types/node': 24.13.6 + merge-stream: 2.0.0 + supports-color: 8.1.1 + + jest-worker@30.5.1: + dependencies: + '@types/node': 24.13.6 + '@ungap/structured-clone': 1.4.0 + jest-util: 30.5.1 + merge-stream: 2.0.0 + supports-color: 8.1.1 + + jest@30.5.2(@types/node@24.13.6)(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)): + dependencies: + '@jest/core': 30.5.2(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)) + '@jest/types': 30.5.1 + import-local: 3.2.0 + jest-cli: 30.5.2(@types/node@24.13.6)(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)) + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - esbuild-register + - supports-color + - ts-node + + jiti@2.7.0: {} + + joycon@3.1.1: {} + + js-tokens@4.0.0: {} + + js-yaml@3.15.2: + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + + js-yaml@5.4.1: + dependencies: + argparse: 2.0.1 + + jsesc@3.1.0: {} + + json-parse-even-better-errors@2.3.1: {} + + json-schema-ref-resolver@3.0.0: + dependencies: + dequal: 2.0.3 + + json-schema-traverse@1.0.0: {} + + json5@2.2.3: {} + + jsonc-parser@3.3.1: {} + + leven@3.1.0: {} + + light-my-request@6.6.0: + dependencies: + cookie: 1.1.1 + process-warning: 4.0.1 + set-cookie-parser: 2.7.2 + + lines-and-columns@1.2.4: {} + + load-esm@1.0.3: {} + + locate-path@5.0.0: + dependencies: + p-locate: 4.1.0 + + lodash.memoize@4.1.2: {} + + lodash@4.18.1: {} + + log-symbols@4.1.0: + dependencies: + chalk: 4.1.2 + is-unicode-supported: 0.1.0 + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + long@5.3.2: {} + + lru-cache@10.4.3: {} + + lru-cache@11.5.3: {} + + lru-cache@5.1.1: + dependencies: + yallist: 3.1.1 + + lru.min@1.1.5: {} + + magic-string@1.0.0: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + make-dir@4.0.0: + dependencies: + semver: 7.8.5 + + make-error@1.3.6: {} + + math-intrinsics@1.1.0: {} + + media-typer@0.3.0: + optional: true + + media-typer@1.1.1: + optional: true + + merge-descriptors@2.0.0: + optional: true + + merge-stream@2.0.0: {} + + methods@1.1.2: {} + + mime-db@1.52.0: {} + + mime-db@1.54.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + + mime-types@3.0.2: + dependencies: + mime-db: 1.54.0 + optional: true + + mime@2.6.0: {} + + mime@3.0.0: {} + + mimic-fn@2.1.0: {} + + mimic-function@5.0.1: {} + + minimatch@10.2.6: + dependencies: + brace-expansion: 5.0.12 + + minimatch@9.0.9: + dependencies: + brace-expansion: 2.1.7 + + minimist@1.2.8: {} + + minimizer-webpack-plugin@5.11.0(sharp@0.35.5(@types/node@24.13.6))(webpack@5.111.1(sharp@0.35.5(@types/node@24.13.6))): + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + jest-worker: 27.5.1 + schema-utils: 4.5.0 + terser: 5.51.2 + webpack: 5.111.1(sharp@0.35.5(@types/node@24.13.6)) + optionalDependencies: + sharp: 0.35.5(@types/node@24.13.6) + + minipass@7.1.3: {} + + ms@2.1.3: {} + + multer@2.4.0: + dependencies: + append-field: 1.0.0 + busboy: 1.6.0 + type-is: 1.6.18 + optional: true + + mute-stream@0.0.8: {} + + mute-stream@3.0.0: {} + + mysql2@3.15.3: + dependencies: + aws-ssl-profiles: 1.1.2 + denque: 2.1.0 + generate-function: 2.3.1 + iconv-lite: 0.7.3 + long: 5.3.2 + lru.min: 1.1.5 + named-placeholders: 1.1.6 + seq-queue: 0.0.5 + sqlstring: 2.3.3 + + named-placeholders@1.1.6: + dependencies: + lru.min: 1.1.5 + + nanoid@5.1.16: {} + + napi-postinstall@0.3.4: {} + + natural-compare@1.4.0: {} + + negotiator@1.1.0: + dependencies: + content-type: 2.1.0 + optional: true + + neo-async@2.6.2: {} + + nestjs-pino@5.2.0(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.0.4)(pino-http@11.0.0)(pino@10.3.1)(rxjs@7.8.2): + dependencies: + '@nestjs/common': 12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 12.0.4(@nestjs/common@12.0.4(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.0.4)(reflect-metadata@0.2.2)(rxjs@7.8.2) + pino: 10.3.1 + pino-http: 11.0.0 + rxjs: 7.8.2 + + node-addon-api@7.1.1: {} + + node-emoji@2.1.3: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + node-int64@0.4.0: {} + + node-releases@2.0.56: {} + + normalize-path@3.0.0: {} + + npm-run-path@4.0.1: + dependencies: + path-key: 3.1.1 + + object-assign@4.1.1: + optional: true + + object-inspect@1.13.4: {} + + ohash@2.0.12: {} + + on-exit-leak-free@2.1.2: {} + + on-finished@2.4.1: + dependencies: + ee-first: 1.1.1 + optional: true + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + onetime@5.1.2: + dependencies: + mimic-fn: 2.1.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + ora@5.4.1: + dependencies: + bl: 4.1.0 + chalk: 4.1.2 + cli-cursor: 3.1.0 + cli-spinners: 2.9.2 + is-interactive: 1.0.0 + is-unicode-supported: 0.1.0 + log-symbols: 4.1.0 + strip-ansi: 6.0.1 + wcwidth: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.2.2 + + os-tmpdir@1.0.2: {} + + oxlint-tsgolint@7.0.2002: + optionalDependencies: + '@oxlint-tsgolint/darwin-arm64': 7.0.2002 + '@oxlint-tsgolint/darwin-x64': 7.0.2002 + '@oxlint-tsgolint/linux-arm64': 7.0.2002 + '@oxlint-tsgolint/linux-x64': 7.0.2002 + '@oxlint-tsgolint/win32-arm64': 7.0.2002 + '@oxlint-tsgolint/win32-x64': 7.0.2002 + + oxlint@1.83.0(oxlint-tsgolint@7.0.2002): + optionalDependencies: + '@oxlint/binding-android-arm-eabi': 1.83.0 + '@oxlint/binding-android-arm64': 1.83.0 + '@oxlint/binding-darwin-arm64': 1.83.0 + '@oxlint/binding-darwin-x64': 1.83.0 + '@oxlint/binding-freebsd-x64': 1.83.0 + '@oxlint/binding-linux-arm-gnueabihf': 1.83.0 + '@oxlint/binding-linux-arm-musleabihf': 1.83.0 + '@oxlint/binding-linux-arm64-gnu': 1.83.0 + '@oxlint/binding-linux-arm64-musl': 1.83.0 + '@oxlint/binding-linux-ppc64-gnu': 1.83.0 + '@oxlint/binding-linux-riscv64-gnu': 1.83.0 + '@oxlint/binding-linux-riscv64-musl': 1.83.0 + '@oxlint/binding-linux-s390x-gnu': 1.83.0 + '@oxlint/binding-linux-x64-gnu': 1.83.0 + '@oxlint/binding-linux-x64-musl': 1.83.0 + '@oxlint/binding-openharmony-arm64': 1.83.0 + '@oxlint/binding-win32-arm64-msvc': 1.83.0 + '@oxlint/binding-win32-ia32-msvc': 1.83.0 + '@oxlint/binding-win32-x64-msvc': 1.83.0 + oxlint-tsgolint: 7.0.2002 + + p-limit@2.3.0: + dependencies: + p-try: 2.2.0 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-locate@4.1.0: + dependencies: + p-limit: 2.3.0 + + p-try@2.2.0: {} + + package-json-from-dist@1.0.1: {} + + parse-json@5.2.0: + dependencies: + '@babel/code-frame': 7.29.7 + error-ex: 1.3.4 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.2.4 + + parseurl@1.3.3: + optional: true + + path-exists@4.0.0: {} + + path-key@3.1.1: {} + + path-scurry@1.11.1: + dependencies: + lru-cache: 10.4.3 + minipass: 7.1.3 + + path-scurry@2.0.2: + dependencies: + lru-cache: 11.5.3 + minipass: 7.1.3 + + path-to-regexp@8.4.2: {} + + pathe@2.0.3: {} + + perfect-debounce@2.1.0: {} + + pg-cloudflare@1.4.1: + optional: true + + pg-connection-string@2.14.1: {} + + pg-int8@1.0.1: {} + + pg-pool@3.14.0(pg@8.23.1): + dependencies: + pg: 8.23.1 + + pg-protocol@1.16.1: {} + + pg-types@2.2.0: + dependencies: + pg-int8: 1.0.1 + postgres-array: 2.0.0 + postgres-bytea: 1.0.1 + postgres-date: 1.0.7 + postgres-interval: 1.2.0 + + pg@8.23.1: + dependencies: + pg-connection-string: 2.14.1 + pg-pool: 3.14.0(pg@8.23.1) + pg-protocol: 1.16.1 + pg-types: 2.2.0 + pgpass: 1.0.5 + optionalDependencies: + pg-cloudflare: 1.4.1 + + pgpass@1.0.5: + dependencies: + split2: 4.2.0 + + picocolors@1.1.1: {} + + picomatch@2.3.2: {} + + picomatch@4.0.5: {} + + picomatch@4.0.7: {} + + pino-abstract-transport@3.0.0: + dependencies: + split2: 4.2.0 + + pino-http@11.0.0: + dependencies: + get-caller-file: 2.0.5 + pino: 10.3.1 + pino-std-serializers: 7.1.0 + process-warning: 5.1.0 + + pino-pretty@13.1.3: + dependencies: + colorette: 2.0.20 + dateformat: 4.6.3 + fast-copy: 4.1.1 + fast-safe-stringify: 2.1.1 + help-me: 5.0.0 + joycon: 3.1.1 + minimist: 1.2.8 + on-exit-leak-free: 2.1.2 + pino-abstract-transport: 3.0.0 + pump: 3.0.4 + secure-json-parse: 4.1.0 + sonic-boom: 4.2.1 + strip-json-comments: 5.0.3 + + pino-std-serializers@7.1.0: {} + + pino@10.3.1: + dependencies: + '@pinojs/redact': 0.4.0 + atomic-sleep: 1.0.0 + on-exit-leak-free: 2.1.2 + pino-abstract-transport: 3.0.0 + pino-std-serializers: 7.1.0 + process-warning: 5.1.0 + quick-format-unescaped: 4.0.4 + real-require: 0.2.0 + safe-stable-stringify: 2.5.0 + sonic-boom: 4.2.1 + thread-stream: 4.2.0 + + pirates@4.0.7: {} + + pkg-dir@4.2.0: + dependencies: + find-up: 4.1.0 + + pkg-types@2.3.3: + dependencies: + confbox: 0.3.1 + exsolve: 1.1.3 + pathe: 2.0.3 + + pluralize@8.0.0: {} + + postgres-array@2.0.0: {} + + postgres-array@3.0.4: {} + + postgres-bytea@1.0.1: {} + + postgres-date@1.0.7: {} + + postgres-interval@1.2.0: + dependencies: + xtend: 4.0.2 + + postgres@3.4.7: {} + + prettier@3.9.8: {} + + pretty-format@30.5.1: + dependencies: + '@jest/react-is-18': react-is@18.3.1 + '@jest/react-is-19': react-is@19.3.0 + '@jest/schemas': 30.5.0 + ansi-styles: 5.2.0 + + prisma@7.10.0(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(typescript@6.0.3): + dependencies: + '@prisma/config': 7.10.0 + '@prisma/dev': 0.24.17(typescript@6.0.3) + '@prisma/engines': 7.10.0 + '@prisma/studio-core': 0.33.0(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0) + mysql2: 3.15.3 + postgres: 3.4.7 + optionalDependencies: + typescript: 6.0.3 + transitivePeerDependencies: + - '@types/react' + - '@types/react-dom' + - magicast + - react + - react-dom + + process-warning@4.0.1: {} + + process-warning@5.1.0: {} + + proper-lockfile@4.1.2: + dependencies: + graceful-fs: 4.2.11 + retry: 0.12.0 + signal-exit: 3.0.7 + + proxy-addr@2.0.8: + dependencies: + forwarded: 0.2.0 + ipaddr.js: 1.9.1 + optional: true + + pump@3.0.4: + dependencies: + end-of-stream: 1.4.5 + once: 1.4.0 + + pure-rand@6.1.0: {} + + pure-rand@7.0.1: {} + + qs@6.16.0: + dependencies: + es-define-property: 1.0.1 + side-channel: 1.1.1 + + quick-format-unescaped@4.0.4: {} + + range-parser@1.3.0: + optional: true + + raw-body@3.0.2: + dependencies: + bytes: 3.1.2 + http-errors: 2.0.1 + iconv-lite: 0.7.3 + unpipe: 1.0.0 + optional: true + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + react-dom@19.3.0(react@19.3.0): + dependencies: + react: 19.3.0 + scheduler: 0.28.0 + + react-is@18.3.1: {} + + react-is@19.3.0: {} + + react@19.3.0: {} + + readable-stream@3.6.2: + dependencies: + inherits: 2.0.4 + string_decoder: 1.3.0 + util-deprecate: 1.0.2 + + readdirp@5.1.1: {} + + real-require@0.2.0: {} + + real-require@1.0.0: {} + + redis-errors@1.2.0: {} + + reflect-metadata@0.2.2: {} + + remeda@2.33.4: {} + + require-directory@2.1.1: {} + + require-from-string@2.0.2: {} + + resolve-cwd@3.0.0: + dependencies: + resolve-from: 5.0.0 + + resolve-from@5.0.0: {} + + restore-cursor@3.1.0: + dependencies: + onetime: 5.1.2 + signal-exit: 3.0.7 + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + ret@0.5.0: {} + + retry@0.12.0: {} + + reusify@1.1.0: {} + + rfdc@1.4.1: {} + + robust-predicates@3.0.3: {} + + router@2.2.0: + dependencies: + debug: 4.4.3 + depd: 2.0.0 + is-promise: 4.0.0 + parseurl: 1.3.3 + path-to-regexp: 8.4.2 + transitivePeerDependencies: + - supports-color + optional: true + + run-async@2.4.1: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.8.1 + + safe-buffer@5.2.1: {} + + safe-regex2@5.1.1: + dependencies: + ret: 0.5.0 + + safe-stable-stringify@2.5.0: {} + + safer-buffer@2.1.2: {} + + scheduler@0.28.0: {} + + schema-utils@4.5.0: + dependencies: + '@types/json-schema': 7.0.15 + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + ajv-keywords: 5.1.0(ajv@8.20.0) + + secure-json-parse@4.1.0: {} + + semver@6.3.1: {} + + semver@7.8.5: {} + + send@1.2.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.0 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 2.0.0 + http-errors: 2.0.1 + mime-types: 3.0.2 + ms: 2.1.3 + on-finished: 2.4.1 + range-parser: 1.3.0 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + optional: true + + seq-queue@0.0.5: {} + + serve-static@2.2.1: + dependencies: + encodeurl: 2.0.0 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 1.2.1 + transitivePeerDependencies: + - supports-color + optional: true + + set-cookie-parser@2.7.2: {} + + setprototypeof@1.2.0: {} + + sharp@0.35.5(@types/node@24.13.6): + dependencies: + '@img/colour': 1.1.0 + detect-libc: 2.1.2 + semver: 7.8.5 + optionalDependencies: + '@img/sharp-darwin-arm64': 0.35.5 + '@img/sharp-darwin-x64': 0.35.5 + '@img/sharp-freebsd-wasm32': 0.35.5 + '@img/sharp-libvips-darwin-arm64': 1.3.4 + '@img/sharp-libvips-darwin-x64': 1.3.4 + '@img/sharp-libvips-linux-arm': 1.3.4 + '@img/sharp-libvips-linux-arm64': 1.3.4 + '@img/sharp-libvips-linux-ppc64': 1.3.4 + '@img/sharp-libvips-linux-riscv64': 1.3.4 + '@img/sharp-libvips-linux-s390x': 1.3.4 + '@img/sharp-libvips-linux-x64': 1.3.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 + '@img/sharp-linux-arm': 0.35.5 + '@img/sharp-linux-arm64': 0.35.5 + '@img/sharp-linux-ppc64': 0.35.5 + '@img/sharp-linux-riscv64': 0.35.5 + '@img/sharp-linux-s390x': 0.35.5 + '@img/sharp-linux-x64': 0.35.5 + '@img/sharp-linuxmusl-arm64': 0.35.5 + '@img/sharp-linuxmusl-x64': 0.35.5 + '@img/sharp-webcontainers-wasm32': 0.35.5 + '@img/sharp-win32-arm64': 0.35.5 + '@img/sharp-win32-ia32': 0.35.5 + '@img/sharp-win32-x64': 0.35.5 + '@types/node': 24.13.6 + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + side-channel-list@1.0.1: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + + side-channel-map@1.0.1: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + + side-channel-weakmap@1.0.2: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + side-channel-map: 1.0.1 + + side-channel@1.1.1: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + side-channel-list: 1.0.1 + side-channel-map: 1.0.1 + side-channel-weakmap: 1.0.2 + + signal-exit@3.0.7: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + slash@3.0.0: {} + + sonic-boom@4.2.1: + dependencies: + atomic-sleep: 1.0.0 + + source-map-support@0.5.21: + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + + source-map@0.6.1: {} + + source-map@0.7.6: {} + + split2@4.2.0: {} + + sprintf-js@1.0.3: {} + + sqlstring@2.3.3: {} + + stack-utils@2.0.6: + dependencies: + escape-string-regexp: 2.0.0 + + standard-as-callback@2.1.0: {} + + statuses@2.0.2: {} + + std-env@3.10.0: {} + + stdin-discarder@0.3.2: {} + + streamsearch@1.1.0: + optional: true + + string-length@4.0.2: + dependencies: + char-regex: 1.0.2 + strip-ansi: 6.0.1 + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@5.1.2: + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.2.0 + + string-width@8.2.2: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + string_decoder@1.3.0: + dependencies: + safe-buffer: 5.2.1 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.3.0 + + strip-bom@3.0.0: {} + + strip-bom@4.0.0: {} + + strip-final-newline@2.0.0: {} + + strip-json-comments@3.1.1: {} + + strip-json-comments@5.0.3: {} + + strtok3@10.3.5: + dependencies: + '@tokenizer/token': 0.3.0 + + superagent@10.3.0: + dependencies: + component-emitter: 1.3.1 + cookiejar: 2.1.4 + debug: 4.4.3 + fast-safe-stringify: 2.1.1 + form-data: 4.0.6 + formidable: 3.5.4 + methods: 1.1.2 + mime: 2.6.0 + qs: 6.16.0 + transitivePeerDependencies: + - supports-color + + supertest@7.2.2: + dependencies: + cookie-signature: 1.2.2 + methods: 1.1.2 + superagent: 10.3.0 + transitivePeerDependencies: + - supports-color + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + supports-color@8.1.1: + dependencies: + has-flag: 4.0.0 + + swagger-ui-dist@5.32.14: + dependencies: + '@scarf/scarf': 1.4.0 + + synckit@0.11.13: + dependencies: + '@pkgr/core': 0.3.6 + + tagged-tag@1.0.0: {} + + tapable@2.3.3: {} + + terser@5.51.2: + dependencies: + '@jridgewell/source-map': 0.3.11 + acorn: 8.18.0 + commander: 2.20.3 + source-map-support: 0.5.21 + + test-exclude@7.0.2: + dependencies: + '@istanbuljs/schema': 0.1.6 + glob: 10.5.0 + minimatch: 10.2.6 + + thread-stream@4.2.0: + dependencies: + real-require: 1.0.0 + + through@2.3.8: {} + + tmp@0.0.33: + dependencies: + os-tmpdir: 1.0.2 + + toad-cache@3.7.4: {} + + toidentifier@1.0.1: {} + + token-types@6.1.2: + dependencies: + '@borewit/text-codec': 0.2.2 + '@tokenizer/token': 0.3.0 + ieee754: 1.2.1 + + ts-jest@29.4.12(@babel/core@7.29.7)(@jest/transform@30.5.2)(@jest/types@30.5.1)(babel-jest@30.5.2(@babel/core@7.29.7))(jest-util@30.5.1)(jest@30.5.2(@types/node@24.13.6)(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)))(typescript@6.0.3): + dependencies: + bs-logger: 0.2.6 + fast-json-stable-stringify: 2.1.0 + handlebars: 4.7.9 + jest: 30.5.2(@types/node@24.13.6)(ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3)) + json5: 2.2.3 + lodash.memoize: 4.1.2 + make-error: 1.3.6 + semver: 7.8.5 + type-fest: 4.41.0 + typescript: 6.0.3 + yargs-parser: 21.1.1 + optionalDependencies: + '@babel/core': 7.29.7 + '@jest/transform': 30.5.2 + '@jest/types': 30.5.1 + babel-jest: 30.5.2(@babel/core@7.29.7) + jest-util: 30.5.1 + + ts-loader@9.6.2(typescript@6.0.3)(webpack@5.111.1(sharp@0.35.5(@types/node@24.13.6))): + dependencies: + chalk: 4.1.2 + picomatch: 4.0.7 + source-map: 0.7.6 + typescript: 6.0.3 + webpack: 5.111.1(sharp@0.35.5(@types/node@24.13.6)) + + ts-node@10.9.2(@types/node@24.13.6)(typescript@6.0.3): + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.13 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 24.13.6 + acorn: 8.18.0 + acorn-walk: 8.3.5 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.4 + make-error: 1.3.6 + typescript: 6.0.3 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + + tsconfig-paths@4.2.0: + dependencies: + json5: 2.2.3 + minimist: 1.2.8 + strip-bom: 3.0.0 + + tslib@2.8.1: {} + + type-detect@4.0.8: {} + + type-fest@0.21.3: {} + + type-fest@4.41.0: {} + + type-fest@5.10.0: + dependencies: + tagged-tag: 1.0.0 + + type-is@1.6.18: + dependencies: + media-typer: 0.3.0 + mime-types: 2.1.35 + optional: true + + type-is@2.1.0: + dependencies: + content-type: 2.1.0 + media-typer: 1.1.1 + mime-types: 3.0.2 + optional: true + + typescript@6.0.3: {} + + uglify-js@3.19.3: + optional: true + + uid@2.0.2: + dependencies: + '@lukeed/csprng': 1.1.0 + + uint8array-extras@1.5.0: {} + + undici-types@7.18.2: {} + + undici@6.20.1: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unpipe@1.0.0: + optional: true + + unrs-resolver@1.12.2: + dependencies: + napi-postinstall: 0.3.4 + optionalDependencies: + '@unrs/resolver-binding-android-arm-eabi': 1.12.2 + '@unrs/resolver-binding-android-arm64': 1.12.2 + '@unrs/resolver-binding-darwin-arm64': 1.12.2 + '@unrs/resolver-binding-darwin-x64': 1.12.2 + '@unrs/resolver-binding-freebsd-x64': 1.12.2 + '@unrs/resolver-binding-linux-arm-gnueabihf': 1.12.2 + '@unrs/resolver-binding-linux-arm-musleabihf': 1.12.2 + '@unrs/resolver-binding-linux-arm64-gnu': 1.12.2 + '@unrs/resolver-binding-linux-arm64-musl': 1.12.2 + '@unrs/resolver-binding-linux-loong64-gnu': 1.12.2 + '@unrs/resolver-binding-linux-loong64-musl': 1.12.2 + '@unrs/resolver-binding-linux-ppc64-gnu': 1.12.2 + '@unrs/resolver-binding-linux-riscv64-gnu': 1.12.2 + '@unrs/resolver-binding-linux-riscv64-musl': 1.12.2 + '@unrs/resolver-binding-linux-s390x-gnu': 1.12.2 + '@unrs/resolver-binding-linux-x64-gnu': 1.12.2 + '@unrs/resolver-binding-linux-x64-musl': 1.12.2 + '@unrs/resolver-binding-openharmony-arm64': 1.12.2 + '@unrs/resolver-binding-wasm32-wasi': 1.12.2 + '@unrs/resolver-binding-win32-arm64-msvc': 1.12.2 + '@unrs/resolver-binding-win32-ia32-msvc': 1.12.2 + '@unrs/resolver-binding-win32-x64-msvc': 1.12.2 + + update-browserslist-db@1.3.3(browserslist@4.29.0): + dependencies: + browserslist: 4.29.0 + escalade: 3.2.0 + picocolors: 1.1.1 + + util-deprecate@1.0.2: {} + + v8-compile-cache-lib@3.0.1: {} + + v8-to-istanbul@9.3.0: + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + '@types/istanbul-lib-coverage': 2.0.6 + convert-source-map: 2.0.0 + + valibot@1.4.2(typescript@6.0.3): + optionalDependencies: + typescript: 6.0.3 + + vary@1.1.2: + optional: true + + watchpack@2.5.2: + dependencies: + graceful-fs: 4.2.11 + + wcwidth@1.0.1: + dependencies: + defaults: 1.0.4 + + webpack-sources@3.5.1: {} + + webpack@5.111.1(sharp@0.35.5(@types/node@24.13.6)): + dependencies: + '@types/estree': 1.0.9 + '@types/json-schema': 7.0.15 + '@webassemblyjs/ast': 1.14.1 + '@webassemblyjs/wasm-edit': 1.14.1 + '@webassemblyjs/wasm-parser': 1.14.1 + browserslist: 4.29.0 + chrome-trace-event: 1.0.4 + enhanced-resolve: 5.25.1 + es-module-lexer: 2.3.2 + events: 3.3.0 + graceful-fs: 4.2.11 + mime-db: 1.54.0 + minimizer-webpack-plugin: 5.11.0(sharp@0.35.5(@types/node@24.13.6))(webpack@5.111.1(sharp@0.35.5(@types/node@24.13.6))) + schema-utils: 4.5.0 + tapable: 2.3.3 + watchpack: 2.5.2 + webpack-sources: 3.5.1 + transitivePeerDependencies: + - '@minify-html/node' + - '@napi-rs/image' + - '@swc/core' + - '@swc/css' + - '@swc/html' + - clean-css + - cssnano + - csso + - esbuild + - html-minifier-terser + - imagemin + - lightningcss + - postcss + - sharp + - svgo + - uglify-js + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + wordwrap@1.0.0: {} + + wrap-ansi@6.2.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@8.1.0: + dependencies: + ansi-styles: 6.2.3 + string-width: 5.1.2 + strip-ansi: 7.2.0 + + wrappy@1.0.2: {} + + write-file-atomic@5.0.1: + dependencies: + imurmurhash: 0.1.4 + signal-exit: 4.1.0 + + xtend@4.0.2: {} + + y18n@5.0.8: {} + + yallist@3.1.1: {} + + yargs-parser@21.1.1: {} + + yargs@17.7.3: + dependencies: + cliui: 8.0.1 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + + yn@3.1.1: {} + + yocto-queue@0.1.0: {} + + yoctocolors@2.2.0: {} + + zeptomatch@2.1.0: + dependencies: + grammex: 3.1.13 + graphmatch: 1.1.1 + + zod@4.6.5: {} diff --git a/prisma.config.ts b/prisma.config.ts new file mode 100644 index 0000000..74ba9ee --- /dev/null +++ b/prisma.config.ts @@ -0,0 +1,8 @@ +import 'dotenv/config'; +import { defineConfig } from 'prisma/config'; + +export default defineConfig({ + schema: 'prisma/schema.prisma', + migrations: { path: 'prisma/migrations' }, + datasource: { url: process.env.DATABASE_URL }, +}); diff --git a/prisma/migrations/20261011140000_initial/migration.sql b/prisma/migrations/20261011140000_initial/migration.sql new file mode 100644 index 0000000..8e44972 --- /dev/null +++ b/prisma/migrations/20261011140000_initial/migration.sql @@ -0,0 +1,56 @@ +CREATE SCHEMA IF NOT EXISTS "public"; + +CREATE TABLE "users" ( + "id" UUID NOT NULL, + "username" VARCHAR(32) NOT NULL, + "display_name" VARCHAR(100) NOT NULL, + "created_at" TIMESTAMPTZ(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "users_pkey" PRIMARY KEY ("id") +); + +CREATE TABLE "chats" ( + "id" UUID NOT NULL, + "title" VARCHAR(100) NOT NULL, + "created_at" TIMESTAMPTZ(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "chats_pkey" PRIMARY KEY ("id") +); + +CREATE TABLE "chat_members" ( + "chat_id" UUID NOT NULL, + "user_id" UUID NOT NULL, + "position" INTEGER NOT NULL, + + CONSTRAINT "chat_members_pkey" PRIMARY KEY ("chat_id","user_id") +); + +CREATE TABLE "messages" ( + "id" UUID NOT NULL, + "chat_id" UUID NOT NULL, + "sender_id" UUID NOT NULL, + "text" VARCHAR(4000) NOT NULL, + "created_at" TIMESTAMPTZ(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "messages_pkey" PRIMARY KEY ("id") +); + +CREATE UNIQUE INDEX "users_username_key" ON "users"("username"); + +CREATE INDEX "chats_created_at_id_idx" ON "chats"("created_at", "id"); + +CREATE INDEX "chat_members_user_id_chat_id_idx" ON "chat_members"("user_id", "chat_id"); + +CREATE UNIQUE INDEX "chat_members_chat_id_position_key" ON "chat_members"("chat_id", "position"); + +CREATE INDEX "messages_chat_id_created_at_id_idx" ON "messages"("chat_id", "created_at", "id"); + +CREATE INDEX "messages_sender_id_idx" ON "messages"("sender_id"); + +ALTER TABLE "chat_members" ADD CONSTRAINT "chat_members_chat_id_fkey" FOREIGN KEY ("chat_id") REFERENCES "chats"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +ALTER TABLE "chat_members" ADD CONSTRAINT "chat_members_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +ALTER TABLE "messages" ADD CONSTRAINT "messages_chat_id_fkey" FOREIGN KEY ("chat_id") REFERENCES "chats"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +ALTER TABLE "messages" ADD CONSTRAINT "messages_sender_id_fkey" FOREIGN KEY ("sender_id") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/prisma/migrations/20261011160000_auth/migration.sql b/prisma/migrations/20261011160000_auth/migration.sql new file mode 100644 index 0000000..9e0c4a5 --- /dev/null +++ b/prisma/migrations/20261011160000_auth/migration.sql @@ -0,0 +1,20 @@ +ALTER TABLE "users" ADD COLUMN "password_hash" TEXT; + +CREATE TABLE "sessions" ( + "id" UUID NOT NULL, + "user_id" UUID NOT NULL, + "token_hash" CHAR(64) NOT NULL, + "created_at" TIMESTAMPTZ(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "expires_at" TIMESTAMPTZ(3) NOT NULL, + "revoked_at" TIMESTAMPTZ(3), + + CONSTRAINT "sessions_pkey" PRIMARY KEY ("id") +); + +CREATE UNIQUE INDEX "sessions_token_hash_key" ON "sessions"("token_hash"); + +CREATE INDEX "sessions_user_id_idx" ON "sessions"("user_id"); + +CREATE INDEX "sessions_expires_at_idx" ON "sessions"("expires_at"); + +ALTER TABLE "sessions" ADD CONSTRAINT "sessions_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/prisma/migrations/20261013093000_cache_epochs/migration.sql b/prisma/migrations/20261013093000_cache_epochs/migration.sql new file mode 100644 index 0000000..0e42114 --- /dev/null +++ b/prisma/migrations/20261013093000_cache_epochs/migration.sql @@ -0,0 +1,2 @@ +ALTER TABLE "users" ADD COLUMN "chats_epoch" BIGINT NOT NULL DEFAULT 0; +ALTER TABLE "chats" ADD COLUMN "messages_epoch" BIGINT NOT NULL DEFAULT 0; diff --git a/prisma/migrations/20261013150000_message_epoch_buckets/migration.sql b/prisma/migrations/20261013150000_message_epoch_buckets/migration.sql new file mode 100644 index 0000000..b1c1716 --- /dev/null +++ b/prisma/migrations/20261013150000_message_epoch_buckets/migration.sql @@ -0,0 +1,13 @@ +CREATE TABLE "chat_message_epochs" ( + "chat_id" UUID NOT NULL, + "bucket" SMALLINT NOT NULL, + "epoch" BIGINT NOT NULL DEFAULT 0, + CONSTRAINT "chat_message_epochs_pkey" PRIMARY KEY ("chat_id", "bucket"), + CONSTRAINT "chat_message_epochs_bucket_check" CHECK ("bucket" BETWEEN 0 AND 15), + CONSTRAINT "chat_message_epochs_chat_id_fkey" FOREIGN KEY ("chat_id") REFERENCES "chats"("id") ON DELETE CASCADE ON UPDATE CASCADE +); + +INSERT INTO "chat_message_epochs" ("chat_id", "bucket", "epoch") +SELECT "id", 0, "messages_epoch" FROM "chats"; + +ALTER TABLE "chats" DROP COLUMN "messages_epoch"; diff --git a/prisma/migrations/20261026120000_message_idempotency/migration.sql b/prisma/migrations/20261026120000_message_idempotency/migration.sql new file mode 100644 index 0000000..744af15 --- /dev/null +++ b/prisma/migrations/20261026120000_message_idempotency/migration.sql @@ -0,0 +1,15 @@ +CREATE TABLE "message_idempotency" ( + "user_id" UUID NOT NULL, + "chat_id" UUID NOT NULL, + "key" VARCHAR(128) NOT NULL, + "message_id" UUID, + "expires_at" TIMESTAMPTZ(3) NOT NULL, + CONSTRAINT "message_idempotency_pkey" PRIMARY KEY ("user_id", "chat_id", "key"), + CONSTRAINT "message_idempotency_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT "message_idempotency_chat_id_fkey" FOREIGN KEY ("chat_id") REFERENCES "chats"("id") ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT "message_idempotency_message_id_fkey" FOREIGN KEY ("message_id") REFERENCES "messages"("id") ON DELETE CASCADE ON UPDATE CASCADE +); + +CREATE INDEX "message_idempotency_expires_at_idx" ON "message_idempotency"("expires_at"); +CREATE INDEX "message_idempotency_chat_id_idx" ON "message_idempotency"("chat_id"); +CREATE INDEX "message_idempotency_message_id_idx" ON "message_idempotency"("message_id"); diff --git a/prisma/migrations/20261108000000_attachments/migration.sql b/prisma/migrations/20261108000000_attachments/migration.sql new file mode 100644 index 0000000..ebd64f1 --- /dev/null +++ b/prisma/migrations/20261108000000_attachments/migration.sql @@ -0,0 +1,20 @@ +ALTER TABLE "messages" ADD COLUMN "attachment_ids" UUID[] NOT NULL DEFAULT ARRAY[]::UUID[]; + +CREATE TABLE "attachments" ( + "id" UUID NOT NULL, + "chat_id" UUID NOT NULL, + "owner_id" UUID NOT NULL, + "object_key" TEXT NOT NULL, + "filename" VARCHAR(255) NOT NULL, + "content_type" VARCHAR(32) NOT NULL, + "size_bytes" INTEGER NOT NULL CHECK ("size_bytes" BETWEEN 1 AND 10485760), + "sha256" CHAR(64) NOT NULL, + "created_at" TIMESTAMPTZ(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" TIMESTAMPTZ(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + CONSTRAINT "attachments_pkey" PRIMARY KEY ("id"), + CONSTRAINT "attachments_chat_id_fkey" FOREIGN KEY ("chat_id") REFERENCES "chats"("id") ON DELETE RESTRICT ON UPDATE CASCADE, + CONSTRAINT "attachments_owner_id_fkey" FOREIGN KEY ("owner_id") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE +); +CREATE UNIQUE INDEX "attachments_object_key_key" ON "attachments"("object_key"); +CREATE INDEX "attachments_chat_id_idx" ON "attachments"("chat_id"); +CREATE INDEX "attachments_owner_id_idx" ON "attachments"("owner_id"); diff --git a/prisma/migrations/20261110000000_direct_uploads/migration.sql b/prisma/migrations/20261110000000_direct_uploads/migration.sql new file mode 100644 index 0000000..4b70d85 --- /dev/null +++ b/prisma/migrations/20261110000000_direct_uploads/migration.sql @@ -0,0 +1,20 @@ +CREATE TYPE "direct_upload_status" AS ENUM ('pending', 'completed', 'rejected', 'expired'); +CREATE TABLE "direct_uploads" ( + "id" UUID NOT NULL, + "chat_id" UUID NOT NULL, + "owner_id" UUID NOT NULL, + "filename" VARCHAR(255) NOT NULL, + "content_type" VARCHAR(32) NOT NULL, + "size_bytes" INTEGER NOT NULL, + "sha256" CHAR(64) NOT NULL, + "status" "direct_upload_status" NOT NULL DEFAULT 'pending', + "expires_at" TIMESTAMPTZ(3) NOT NULL, + "created_at" TIMESTAMPTZ(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + CONSTRAINT "direct_uploads_pkey" PRIMARY KEY ("id"), + CONSTRAINT "direct_uploads_chat_id_fkey" FOREIGN KEY ("chat_id") REFERENCES "chats"("id") ON DELETE RESTRICT ON UPDATE CASCADE, + CONSTRAINT "direct_uploads_owner_id_fkey" FOREIGN KEY ("owner_id") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE, + CONSTRAINT "direct_uploads_size_check" CHECK ("size_bytes" BETWEEN 1 AND 10485760) +); +CREATE INDEX "direct_uploads_status_expires_at_idx" ON "direct_uploads"("status", "expires_at"); +CREATE INDEX "direct_uploads_chat_id_idx" ON "direct_uploads"("chat_id"); +CREATE INDEX "direct_uploads_owner_id_idx" ON "direct_uploads"("owner_id"); diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.toml new file mode 100644 index 0000000..2fe25d8 --- /dev/null +++ b/prisma/migrations/migration_lock.toml @@ -0,0 +1 @@ +provider = "postgresql" diff --git a/prisma/schema.prisma b/prisma/schema.prisma new file mode 100644 index 0000000..f5196a8 --- /dev/null +++ b/prisma/schema.prisma @@ -0,0 +1,159 @@ +generator client { + provider = "prisma-client" + output = "../src/generated/prisma" + moduleFormat = "cjs" +} + +datasource db { + provider = "postgresql" +} + +model User { + id String @id @default(uuid()) @db.Uuid + username String @unique @db.VarChar(32) + displayName String @map("display_name") @db.VarChar(100) + passwordHash String? @map("password_hash") + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3) + chatsEpoch BigInt @default(0) @map("chats_epoch") + memberships ChatMember[] + messages Message[] + sessions Session[] + idempotencyRecords MessageIdempotency[] + attachments Attachment[] + directUploads DirectUpload[] + + @@map("users") +} + +model Session { + id String @id @default(uuid()) @db.Uuid + userId String @map("user_id") @db.Uuid + tokenHash String @unique @map("token_hash") @db.Char(64) + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3) + expiresAt DateTime @map("expires_at") @db.Timestamptz(3) + revokedAt DateTime? @map("revoked_at") @db.Timestamptz(3) + user User @relation(fields: [userId], references: [id], onDelete: Cascade) + + @@index([userId]) + @@index([expiresAt]) + @@map("sessions") +} + +model Chat { + id String @id @default(uuid()) @db.Uuid + title String @db.VarChar(100) + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3) + messageEpochs ChatMessageEpoch[] + members ChatMember[] + messages Message[] + idempotencyRecords MessageIdempotency[] + attachments Attachment[] + directUploads DirectUpload[] + + @@index([createdAt, id]) + @@map("chats") +} + +model ChatMember { + chatId String @map("chat_id") @db.Uuid + userId String @map("user_id") @db.Uuid + position Int + chat Chat @relation(fields: [chatId], references: [id], onDelete: Cascade) + user User @relation(fields: [userId], references: [id], onDelete: Restrict) + + @@id([chatId, userId]) + @@unique([chatId, position]) + @@index([userId, chatId]) + @@map("chat_members") +} + +model ChatMessageEpoch { + chatId String @map("chat_id") @db.Uuid + bucket Int @db.SmallInt + epoch BigInt @default(0) + chat Chat @relation(fields: [chatId], references: [id], onDelete: Cascade) + + @@id([chatId, bucket]) + @@map("chat_message_epochs") +} + +model Message { + id String @id @default(uuid()) @db.Uuid + chatId String @map("chat_id") @db.Uuid + senderId String @map("sender_id") @db.Uuid + text String @db.VarChar(4000) + attachmentIds String[] @default([]) @map("attachment_ids") @db.Uuid + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3) + chat Chat @relation(fields: [chatId], references: [id], onDelete: Cascade) + sender User @relation(fields: [senderId], references: [id], onDelete: Restrict) + idempotencyRecords MessageIdempotency[] + + @@index([chatId, createdAt, id]) + @@index([senderId]) + @@map("messages") +} + +model Attachment { + id String @id @default(uuid()) @db.Uuid + chatId String @map("chat_id") @db.Uuid + ownerId String @map("owner_id") @db.Uuid + objectKey String @unique @map("object_key") + filename String @db.VarChar(255) + contentType String @map("content_type") @db.VarChar(32) + sizeBytes Int @map("size_bytes") + sha256 String @db.Char(64) + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3) + updatedAt DateTime @default(now()) @updatedAt @map("updated_at") @db.Timestamptz(3) + chat Chat @relation(fields: [chatId], references: [id], onDelete: Restrict) + owner User @relation(fields: [ownerId], references: [id], onDelete: Restrict) + + @@index([chatId]) + @@index([ownerId]) + @@map("attachments") +} + +enum DirectUploadStatus { + pending + completed + rejected + expired + + @@map("direct_upload_status") +} + +model DirectUpload { + id String @id @default(uuid()) @db.Uuid + chatId String @map("chat_id") @db.Uuid + ownerId String @map("owner_id") @db.Uuid + filename String @db.VarChar(255) + contentType String @map("content_type") @db.VarChar(32) + sizeBytes Int @map("size_bytes") + sha256 String @db.Char(64) + status DirectUploadStatus @default(pending) + expiresAt DateTime @map("expires_at") @db.Timestamptz(3) + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3) + chat Chat @relation(fields: [chatId], references: [id], onDelete: Restrict) + owner User @relation(fields: [ownerId], references: [id], onDelete: Restrict) + + @@index([status, expiresAt]) + @@index([chatId]) + @@index([ownerId]) + @@map("direct_uploads") +} + +model MessageIdempotency { + userId String @map("user_id") @db.Uuid + chatId String @map("chat_id") @db.Uuid + key String @db.VarChar(128) + messageId String? @map("message_id") @db.Uuid + expiresAt DateTime @map("expires_at") @db.Timestamptz(3) + user User @relation(fields: [userId], references: [id], onDelete: Cascade) + chat Chat @relation(fields: [chatId], references: [id], onDelete: Cascade) + message Message? @relation(fields: [messageId], references: [id], onDelete: Cascade) + + @@id([userId, chatId, key]) + @@index([chatId]) + @@index([messageId]) + @@index([expiresAt]) + @@map("message_idempotency") +} diff --git a/scripts/restart.cmd b/scripts/restart.cmd new file mode 100644 index 0000000..1bc9b61 --- /dev/null +++ b/scripts/restart.cmd @@ -0,0 +1,10 @@ +@echo off +setlocal +if defined GIT_BASH goto run +set "GIT_BASH=%ProgramFiles%\Git\bin\bash.exe" +if exist "%GIT_BASH%" goto run +echo Git Bash was not found. Set GIT_BASH to the full path to bash.exe. 1>&2 +exit /b 2 +:run +"%GIT_BASH%" "%~dp0restart.sh" +exit /b %ERRORLEVEL% diff --git a/scripts/restart.sh b/scripts/restart.sh new file mode 100644 index 0000000..420d93d --- /dev/null +++ b/scripts/restart.sh @@ -0,0 +1,23 @@ +#!/bin/sh +set -eu + +project_dir=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) +cd "$project_dir" + +for service in api nginx reconciler postgres redis s3; do + if [ -z "$(docker compose ps --all --quiet "$service")" ]; then + printf '%s\n' "Missing container for $service; start the Compose stack first." >&2 + exit 1 + fi +done + +replicas=$(docker compose ps --all --quiet api | wc -l | tr -d ' ') +if [ "$replicas" -lt 1 ]; then + printf 'No API replicas found.\n' >&2 + exit 1 +fi + +docker compose stop --timeout 30 nginx reconciler api postgres redis s3 +docker compose up --detach --no-recreate --no-build --no-deps --wait --wait-timeout 45 postgres redis s3 +docker compose up --detach --no-recreate --no-build --no-deps --scale "api=$replicas" --wait --wait-timeout 45 api +docker compose up --detach --no-recreate --no-build --no-deps --wait --wait-timeout 30 nginx reconciler diff --git a/scripts/stop-one.cmd b/scripts/stop-one.cmd new file mode 100644 index 0000000..6f4710b --- /dev/null +++ b/scripts/stop-one.cmd @@ -0,0 +1,33 @@ +@echo off +setlocal EnableDelayedExpansion +cd /d "%~dp0.." +if not defined TARGET_INSTANCE_ID ( + echo TARGET_INSTANCE_ID is required 1>&2 + exit /b 2 +) +set "containers=" +for /f "delims=" %%C in ('docker compose ps --all --quiet api') do ( + set "containers=!containers! %%C" + set "candidate=%%C" + rem This Compose uses Docker's default hostname: the first 12 container-ID characters. + if "!candidate:~0,12!"=="%TARGET_INSTANCE_ID%" ( + docker stop --time 0 %%C >nul + if errorlevel 1 exit /b 1 + exit /b 0 + ) +) +if not defined containers ( + echo No API containers found 1>&2 + exit /b 2 +) +rem Fallback for explicitly configured hostnames, still scoped to this project's API containers. +for /f "tokens=1,2 delims=:" %%H in ('docker inspect --format "{{.Config.Hostname}}:{{.Id}}" !containers!') do ( + if "%%H"=="%TARGET_INSTANCE_ID%" ( + rem Failure injection: stop immediately, leaving time for recovery within the 10-second test budget. + docker stop --time 0 %%I >nul + if errorlevel 1 exit /b 1 + exit /b 0 + ) +) +echo No API container matches X-Instance-Id 1>&2 +exit /b 2 diff --git a/scripts/stop-one.sh b/scripts/stop-one.sh new file mode 100644 index 0000000..5bc0630 --- /dev/null +++ b/scripts/stop-one.sh @@ -0,0 +1,24 @@ +#!/bin/sh +set -eu + +project_dir=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) +cd "$project_dir" + +target=${TARGET_INSTANCE_ID:?test provides target API instance ID} + +containers=$(docker compose ps --all --quiet api) +if [ -z "$containers" ]; then + printf 'No API containers found\n' >&2 + exit 2 +fi +for entry in $(docker inspect --format '{{.Config.Hostname}}:{{.Id}}' $containers); do + instance=${entry%%:*} + container=${entry#*:} + if [ "$instance" = "$target" ]; then + docker stop --time 8 "$container" >/dev/null + exit 0 + fi +done + +printf 'No API container matches X-Instance-Id\n' >&2 +exit 2 diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 0000000..9e0adcc --- /dev/null +++ b/src/.gitignore @@ -0,0 +1 @@ +/generated/ diff --git a/src/Attachment/attachment.controller.ts b/src/Attachment/attachment.controller.ts new file mode 100644 index 0000000..db36b9e --- /dev/null +++ b/src/Attachment/attachment.controller.ts @@ -0,0 +1,86 @@ +import { + Body, + Controller, + Get, + Headers, + HttpCode, + Param, + Post, + Query, + Req, + StreamableFile, + UseGuards, +} from '@nestjs/common'; +import { + ApiBearerAuth, + ApiBody, + ApiConsumes, + ApiOperation, + ApiQuery, + ApiTags, +} from '@nestjs/swagger'; +import { UserGuard, type AuthenticatedRequest } from '../User/user.guard'; +import { AttachmentService } from './attachment.service'; + +@ApiTags('attachments') +@ApiBearerAuth('bearerAuth') +@UseGuards(UserGuard) +@Controller('api/v1') +export class AttachmentController { + constructor(private readonly attachments: AttachmentService) {} + + @Post('chats/:chat_id/attachments') + @HttpCode(201) + @ApiOperation({ operationId: 'uploadAttachment' }) + @ApiConsumes('image/png', 'image/jpeg') + @ApiBody({ schema: { type: 'string', format: 'binary' } }) + @ApiQuery({ name: 'filename', required: true, type: String }) + upload( + @Req() request: AuthenticatedRequest, + @Param('chat_id') chatId: string, + @Query('filename') filename: unknown, + @Headers('content-type') contentType: unknown, + @Body() body: unknown, + ) { + return this.attachments.upload( + chatId, + request.currentUser.id, + filename, + contentType, + body, + ); + } + + @Get('attachments/:attachment_id') + @ApiOperation({ operationId: 'getAttachment' }) + get( + @Req() request: AuthenticatedRequest, + @Param('attachment_id') id: string, + ) { + return this.attachments.get(id, request.currentUser.id); + } + + @Get('attachments/:attachment_id/content') + @ApiOperation({ operationId: 'downloadAttachment' }) + @ApiQuery({ + name: 'variant', + required: false, + enum: ['original', 'thumbnail', 'crop', 'optimized'], + }) + async content( + @Req() request: AuthenticatedRequest, + @Param('attachment_id') id: string, + @Query('variant') variant: unknown, + ) { + const { attachment, stream } = await this.attachments.content( + id, + request.currentUser.id, + variant, + ); + return new StreamableFile(stream, { + type: attachment.contentType, + length: attachment.sizeBytes, + disposition: `attachment; filename*=UTF-8''${encodeURIComponent(attachment.filename).replace(/['()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`)}`, + }); + } +} diff --git a/src/Attachment/attachment.module.ts b/src/Attachment/attachment.module.ts new file mode 100644 index 0000000..6d21c58 --- /dev/null +++ b/src/Attachment/attachment.module.ts @@ -0,0 +1,14 @@ +import { Module } from '@nestjs/common'; +import { UserModule } from '../User/user.module'; +import { StorageModule } from '../Storage/storage.module'; +import { AttachmentController } from './attachment.controller'; +import { AttachmentService } from './attachment.service'; +import { DirectUploadController } from './direct-upload.controller'; +import { DirectUploadService } from './direct-upload.service'; + +@Module({ + imports: [UserModule, StorageModule], + controllers: [AttachmentController, DirectUploadController], + providers: [AttachmentService, DirectUploadService], +}) +export class AttachmentModule {} diff --git a/src/Attachment/attachment.service.spec.ts b/src/Attachment/attachment.service.spec.ts new file mode 100644 index 0000000..4f26dc7 --- /dev/null +++ b/src/Attachment/attachment.service.spec.ts @@ -0,0 +1,84 @@ +import { readFileSync } from 'node:fs'; +import { join } from 'node:path'; +import type { PrismaService } from '../prisma/prisma.service'; +import type { StorageService } from '../Storage/storage.service'; +import { AttachmentService } from './attachment.service'; + +const chatId = '11111111-1111-4111-8111-111111111111'; +const userId = '22222222-2222-4222-8222-222222222222'; +const png = readFileSync(join(__dirname, '../../tests/fixtures/sample.png')); + +function fixture() { + const stored = { + id: 'uploaded', + chatId, + ownerId: userId, + objectKey: 'stored-key', + filename: 'test.png', + contentType: 'image/png', + sizeBytes: png.length, + sha256: 'checksum', + createdAt: new Date(), + updatedAt: new Date(), + }; + const tx = { + $executeRaw: jest.fn().mockResolvedValue(0), + $queryRaw: jest.fn().mockResolvedValue([{ locked: true }]), + attachment: { + create: jest.fn().mockResolvedValue(stored), + findUnique: jest.fn().mockResolvedValue(null), + }, + }; + const prisma = { + chatMember: { findUnique: jest.fn().mockResolvedValue({ chatId }) }, + $transaction: jest.fn( + async (callback: (value: typeof tx) => Promise) => callback(tx), + ), + }; + const storage = { + put: jest.fn().mockResolvedValue(undefined), + remove: jest.fn().mockResolvedValue(undefined), + }; + const service = new AttachmentService( + prisma as unknown as PrismaService, + storage as unknown as StorageService, + ); + return { + stored, + tx, + prisma, + storage, + upload: () => service.upload(chatId, userId, 'test.png', 'image/png', png), + }; +} + +describe('upload compensation', () => { + it('compensates a PUT whose acknowledgement was lost before metadata creation', async () => { + const f = fixture(); + f.storage.put.mockRejectedValue(new Error('uncertain PUT')); + await expect(f.upload()).rejects.toThrow('uncertain PUT'); + expect(f.tx.attachment.create).not.toHaveBeenCalled(); + expect(f.storage.remove).toHaveBeenCalledTimes(1); + }); + + it('removes bytes after a confirmed metadata failure', async () => { + const f = fixture(); + f.tx.attachment.create.mockRejectedValue(new Error('metadata failure')); + await expect(f.upload()).rejects.toThrow('metadata failure'); + expect(f.storage.remove).toHaveBeenCalledTimes(1); + }); + + it('preserves a committed attachment if the transaction acknowledgement was lost', async () => { + const f = fixture(); + f.prisma.$transaction.mockImplementationOnce(async (callback) => { + await callback(f.tx); + throw new Error('lost commit acknowledgement'); + }); + f.tx.attachment.findUnique.mockResolvedValue(f.stored); + await expect(f.upload()).resolves.toMatchObject({ + id: f.stored.id, + status: 'ready', + }); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); +}); diff --git a/src/Attachment/attachment.service.ts b/src/Attachment/attachment.service.ts new file mode 100644 index 0000000..5b4eb4b --- /dev/null +++ b/src/Attachment/attachment.service.ts @@ -0,0 +1,235 @@ +import { Injectable, Logger } from '@nestjs/common'; +import { createHash, randomUUID } from 'node:crypto'; +import sharp from 'sharp'; +import type { Attachment } from '../generated/prisma/client'; +import { PrismaService } from '../prisma/prisma.service'; +import { StorageService } from '../Storage/storage.service'; +import { ApiException } from '../common/exceptions/api.exception'; +import { invalidRequest, uuid } from '../common/validation'; +import { OBJECT_TRANSACTION, tryAttachmentObjectLock } from './object-lock'; +import { profileStage } from '../common/http/upload-memory-profile'; + +function limit(name: string, maximum: number): number { + const value = Number(process.env[name] ?? maximum); + if (!Number.isSafeInteger(value) || value < 1 || value > maximum) { + throw new Error(`${name} must be between 1 and ${maximum}`); + } + return value; +} + +export const MAX_UPLOAD_BYTES = limit('MAX_UPLOAD_BYTES', 10485760); +const MAX_IMAGE_PIXELS = limit('MAX_IMAGE_PIXELS', 40000000); + +@Injectable() +export class AttachmentService { + private readonly logger = new Logger(AttachmentService.name); + + constructor( + private readonly prisma: PrismaService, + private readonly storage: StorageService, + ) {} + + async upload( + chatValue: unknown, + userId: string, + filename: unknown, + mime: unknown, + body: unknown, + ) { + profileStage('authorize_and_validate_fields'); + const chatId = uuid(chatValue, 'chat_id'); + await this.authorizeChat(chatId, userId); + const fields = this.validateFields(filename, mime); + if (!Buffer.isBuffer(body) || body.length === 0) + throw new ApiException( + 415, + 'unsupported_media_type', + 'Ожидается PNG или JPEG', + ); + if (body.length > MAX_UPLOAD_BYTES) + throw new ApiException(413, 'payload_too_large', 'Превышен лимит файла'); + const contentType = fields.contentType; + await this.validateImage(body, contentType); + const id = randomUUID(); + const objectKey = `originals/${chatId}/${id}`; + try { + profileStage('db_lock'); + const stored = await this.prisma.$transaction(async (tx) => { + if (!(await tryAttachmentObjectLock(tx, objectKey))) { + throw new ApiException(503, 'unavailable', 'Объект занят'); + } + profileStage('s3_put'); + await this.storage.put(objectKey, body, contentType); + profileStage('sha256'); + const sha256 = createHash('sha256').update(body).digest('hex'); + profileStage('db_insert_and_commit'); + return tx.attachment.create({ + data: { + id, + chatId, + ownerId: userId, + objectKey, + filename: fields.filename, + contentType, + sizeBytes: body.length, + sha256, + }, + }); + }, OBJECT_TRANSACTION); + profileStage('serialize_response'); + return this.serialize(stored); + } catch (error) { + // A database timeout can occur after commit. Never delete a referenced object. + try { + const committed = await this.prisma.$transaction(async (tx) => { + if (!(await tryAttachmentObjectLock(tx, objectKey))) return null; + const record = await tx.attachment.findUnique({ + where: { objectKey }, + }); + if (record) return record; + await this.storage.remove(objectKey); + return null; + }, OBJECT_TRANSACTION); + if (committed) return this.serialize(committed); + } catch { + this.logger.error( + { attachmentId: id }, + 'Upload requires reconciliation', + ); + } + throw error; + } + } + + async get(id: unknown, userId: string) { + return this.serialize(await this.authorizeAttachment(id, userId)); + } + + async content(id: unknown, userId: string, variant: unknown) { + const attachment = await this.authorizeAttachment(id, userId); + if (variant !== undefined && variant !== 'original') { + if ( + typeof variant !== 'string' || + !['thumbnail', 'crop', 'optimized'].includes(variant) + ) { + return invalidRequest('Некорректный variant'); + } + throw new ApiException(404, 'not_found', 'Вариант не найден'); + } + return { attachment, stream: await this.storage.get(attachment.objectKey) }; + } + + validateFields(filename: unknown, mime: unknown) { + if ( + typeof filename !== 'string' || + filename.trim().length === 0 || + Array.from(filename).length > 255 || + Array.from(filename).some((character) => { + const point = character.codePointAt(0)!; + return ( + character === '/' || + character === '\\' || + point < 32 || + (point >= 127 && point <= 159) + ); + }) + ) { + return invalidRequest('Некорректный filename'); + } + const contentType = + typeof mime === 'string' ? mime.split(';')[0].trim().toLowerCase() : ''; + if (contentType !== 'image/png' && contentType !== 'image/jpeg') { + throw new ApiException( + 415, + 'unsupported_media_type', + 'Ожидается PNG или JPEG', + ); + } + return { filename, contentType }; + } + + async authorizeChat(chatId: string, userId: string) { + const member = await this.prisma.chatMember.findUnique({ + where: { chatId_userId: { chatId, userId } }, + select: { chatId: true }, + }); + if (!member) throw new ApiException(404, 'not_found', 'Объект не найден'); + } + + private async authorizeAttachment(value: unknown, userId: string) { + const id = uuid(value, 'attachment_id'); + const attachment = await this.prisma.attachment.findFirst({ + where: { id, chat: { members: { some: { userId } } } }, + }); + if (!attachment) + throw new ApiException(404, 'not_found', 'Объект не найден'); + return attachment; + } + + async validateImage(body: Buffer | string, contentType: string) { + try { + profileStage('sharp_metadata'); + // metadata reads headers without decoding pixels; check dimensions before full validation. + const metadata = await sharp(body, { + limitInputPixels: false, + failOn: 'warning', + }).metadata(); + const actualType = + metadata.format === 'png' + ? 'image/png' + : metadata.format === 'jpeg' + ? 'image/jpeg' + : null; + if ( + actualType !== contentType || + !metadata.width || + !metadata.height || + (metadata.pages ?? 1) > 1 + ) { + throw new ApiException( + 415, + 'unsupported_media_type', + 'Некорректное изображение', + ); + } + if (metadata.width * metadata.height > MAX_IMAGE_PIXELS) { + throw new ApiException( + 413, + 'payload_too_large', + 'Превышен лимит пикселей', + ); + } + profileStage('sharp_decode_stats'); + await sharp(body, { + limitInputPixels: MAX_IMAGE_PIXELS, + failOn: 'warning', + }).stats(); + profileStage('image_validated'); + } catch (cause) { + if (cause instanceof ApiException) throw cause; + throw new ApiException( + 415, + 'unsupported_media_type', + 'Некорректное изображение', + { cause }, + ); + } + } + + serialize(value: Attachment) { + return { + id: value.id, + chat_id: value.chatId, + owner_id: value.ownerId, + filename: value.filename, + content_type: value.contentType, + size_bytes: value.sizeBytes, + sha256: value.sha256, + status: 'ready', + variants: [], + error_code: null, + created_at: value.createdAt.toISOString(), + updated_at: value.updatedAt.toISOString(), + }; + } +} diff --git a/src/Attachment/direct-upload.controller.ts b/src/Attachment/direct-upload.controller.ts new file mode 100644 index 0000000..3aca52b --- /dev/null +++ b/src/Attachment/direct-upload.controller.ts @@ -0,0 +1,156 @@ +import { + Body, + Controller, + HttpCode, + Header, + Param, + Post, + Req, + UseGuards, +} from '@nestjs/common'; +import { + ApiBearerAuth, + ApiBody, + ApiOperation, + ApiParam, + ApiResponse, + ApiTags, +} from '@nestjs/swagger'; +import { UserGuard, type AuthenticatedRequest } from '../User/user.guard'; +import { DirectUploadService } from './direct-upload.service'; + +@ApiTags('direct uploads') +@ApiBearerAuth('bearerAuth') +@UseGuards(UserGuard) +@Controller('api/v1/chats/:chat_id/attachment-uploads') +@ApiParam({ name: 'chat_id', type: 'string', format: 'uuid', required: true }) +@ApiResponse({ + status: 401, + description: 'Требуется Bearer-сессия', + schema: { $ref: '#/components/schemas/Error' }, +}) +@ApiResponse({ + status: 404, + description: 'Чат/разрешение недоступно пользователю', + schema: { $ref: '#/components/schemas/Error' }, +}) +@ApiResponse({ + status: 503, + description: 'БД или хранилище временно недоступно', + schema: { $ref: '#/components/schemas/Error' }, +}) +export class DirectUploadController { + constructor(private readonly uploads: DirectUploadService) {} + + @Post() + @HttpCode(201) + @Header('Cache-Control', 'no-store') + @ApiOperation({ + operationId: 'initiateDirectUpload', + summary: 'Выдать короткоживущее разрешение PUT в staging', + }) + @ApiBody({ + schema: { + type: 'object', + additionalProperties: false, + required: ['filename', 'content_type', 'size_bytes', 'sha256'], + properties: { + filename: { type: 'string', minLength: 1, maxLength: 255 }, + content_type: { type: 'string', enum: ['image/png', 'image/jpeg'] }, + size_bytes: { type: 'integer', minimum: 1, maximum: 10485760 }, + sha256: { type: 'string', pattern: '^[a-f0-9]{64}$' }, + expires_in: { + type: 'integer', + minimum: 1, + maximum: 300, + description: + 'Не больше серверного DIRECT_UPLOAD_TTL_SECONDS (60 по умолчанию)', + }, + }, + }, + }) + @ApiResponse({ + status: 201, + description: 'PUT URL и обязательные заголовки; URL не логировать', + schema: { + type: 'object', + required: [ + 'upload_id', + 'expires_at', + 'method', + 'url', + 'headers', + 'complete_url', + ], + properties: { + upload_id: { type: 'string', format: 'uuid' }, + expires_at: { type: 'string', format: 'date-time' }, + method: { type: 'string', enum: ['PUT'] }, + url: { type: 'string', format: 'uri' }, + headers: { type: 'object', additionalProperties: { type: 'string' } }, + complete_url: { type: 'string' }, + }, + }, + }) + @ApiResponse({ status: 400, description: 'Некорректные поля разрешения' }) + @ApiResponse({ status: 413, description: 'Запрошен размер больше 10 MiB' }) + @ApiResponse({ status: 415, description: 'Разрешены только PNG и JPEG' }) + initiate( + @Req() request: AuthenticatedRequest, + @Param('chat_id') chatId: string, + @Body() body: unknown, + ) { + return this.uploads.initiate(chatId, request.currentUser.id, body); + } + + @Post(':upload_id/complete') + @HttpCode(201) + @ApiParam({ + name: 'upload_id', + type: 'string', + format: 'uuid', + required: true, + }) + @ApiBody({ + required: false, + schema: { type: 'object', additionalProperties: false, properties: {} }, + }) + @ApiOperation({ + operationId: 'completeDirectUpload', + summary: + 'Проверить байты и опубликовать вложение; идемпотентно для владельца', + }) + @ApiResponse({ + status: 201, + description: 'Готовое Attachment; повтор возвращает то же вложение', + schema: { $ref: '#/components/schemas/Attachment' }, + }) + @ApiResponse({ + status: 400, + description: 'Размер/checksum не совпадает или некорректные параметры', + }) + @ApiResponse({ status: 404, description: 'Чужая или неизвестная загрузка' }) + @ApiResponse({ + status: 409, + description: + 'Истёкшее/отклонённое разрешение, нет файла или complete выполняется другой репликой', + }) + @ApiResponse({ status: 413, description: 'Превышен лимит bytes/pixels' }) + @ApiResponse({ + status: 415, + description: 'Повреждённое изображение или неверный MIME', + }) + complete( + @Req() request: AuthenticatedRequest, + @Param('chat_id') chatId: string, + @Param('upload_id') uploadId: string, + @Body() body: unknown, + ) { + return this.uploads.complete( + chatId, + uploadId, + request.currentUser.id, + body, + ); + } +} diff --git a/src/Attachment/direct-upload.service.spec.ts b/src/Attachment/direct-upload.service.spec.ts new file mode 100644 index 0000000..e7f0657 --- /dev/null +++ b/src/Attachment/direct-upload.service.spec.ts @@ -0,0 +1,152 @@ +import { randomUUID } from 'node:crypto'; +import type { PrismaService } from '../prisma/prisma.service'; +import type { StorageService } from '../Storage/storage.service'; +import type { AttachmentService } from './attachment.service'; +import { DirectUploadService } from './direct-upload.service'; +import { ApiException } from '../common/exceptions/api.exception'; + +function fixture() { + const upload = { + id: randomUUID(), + chatId: randomUUID(), + ownerId: randomUUID(), + filename: 'photo.png', + contentType: 'image/png', + sizeBytes: 200, + sha256: 'a'.repeat(64), + expiresAt: new Date(Date.now() + 60000), + status: 'pending', + }; + let saved: unknown = null; + const db = { + directUpload: { + create: jest.fn().mockResolvedValue(upload), + findFirst: jest.fn().mockResolvedValue(upload), + update: jest.fn(async ({ data }: { data: { status: string } }) => + Object.assign(upload, data), + ), + }, + attachment: { + findUnique: jest.fn(async () => saved), + create: jest.fn(async ({ data }: { data: Record }) => { + saved = { ...data, createdAt: new Date(), updatedAt: new Date() }; + return saved; + }), + }, + $executeRaw: jest.fn().mockResolvedValue(0), + $queryRaw: jest.fn().mockResolvedValue([{ locked: true }]), + $transaction: jest.fn(), + }; + db.$transaction.mockImplementation((fn: (tx: unknown) => unknown) => fn(db)); + const storage = { + presignPut: jest + .fn() + .mockResolvedValue({ url: 'http://example.test/upload', headers: {} }), + inspectToFile: jest.fn().mockResolvedValue('"etag"'), + publishCopy: jest.fn().mockResolvedValue(undefined), + remove: jest.fn().mockResolvedValue(undefined), + }; + const attachments = { + authorizeChat: jest.fn().mockResolvedValue(undefined), + validateFields: jest + .fn() + .mockReturnValue({ + filename: upload.filename, + contentType: upload.contentType, + }), + validateImage: jest.fn().mockResolvedValue(undefined), + serialize: jest.fn((value: unknown) => value), + }; + const service = new DirectUploadService( + db as unknown as PrismaService, + storage as unknown as StorageService, + attachments as unknown as AttachmentService, + ); + const complete = () => + service.complete(upload.chatId, upload.id, upload.ownerId, undefined); + return { upload, db, storage, attachments, service, complete }; +} + +describe('direct upload publication', () => { + it('uses immutable expected fields and a short server-bounded grant', async () => { + const f = fixture(); + await expect( + f.service.initiate(f.upload.chatId, f.upload.ownerId, { + filename: 'photo.png', + content_type: 'image/png', + size_bytes: 200, + sha256: 'a'.repeat(64), + expires_in: 1, + }), + ).resolves.toMatchObject({ upload_id: f.upload.id, method: 'PUT' }); + expect(f.storage.presignPut).toHaveBeenCalledWith( + `staging/${f.upload.chatId}/${f.upload.id}`, + 200, + 'image/png', + 'a'.repeat(64), + 1, + expect.any(Date), + ); + await expect( + f.service.initiate(f.upload.chatId, f.upload.ownerId, { + filename: 'photo.png', + content_type: 'image/png', + size_bytes: 10485761, + sha256: 'a'.repeat(64), + }), + ).rejects.toMatchObject({ status: 413 }); + }); + + it('publishes through copy and returns the same attachment on replay without trusting staging again', async () => { + const f = fixture(); + const first = await f.complete(); + expect(await f.complete()).toEqual(first); + expect(f.storage.inspectToFile).toHaveBeenCalledTimes(1); + expect(f.storage.publishCopy).toHaveBeenCalledWith( + `staging/${f.upload.chatId}/${f.upload.id}`, + `originals/${f.upload.chatId}/${f.upload.id}`, + '"etag"', + ); + expect(f.db.attachment.create).toHaveBeenCalledTimes(1); + expect(f.upload.status).toBe('completed'); + }); + + it('commits a rejected reservation when image validation fails, publishing no metadata', async () => { + const f = fixture(); + f.attachments.validateImage.mockRejectedValue( + new ApiException(415, 'unsupported_media_type', 'invalid image'), + ); + await expect(f.complete()).rejects.toMatchObject({ status: 415 }); + expect(f.upload.status).toBe('rejected'); + expect(f.db.attachment.create).not.toHaveBeenCalled(); + expect(f.storage.publishCopy).not.toHaveBeenCalled(); + await expect(f.complete()).rejects.toMatchObject({ status: 409 }); + }); + + it('expires pending reservations without downloading their objects', async () => { + const f = fixture(); + f.upload.expiresAt = new Date(Date.now() - 1000); + await expect(f.complete()).rejects.toMatchObject({ status: 409 }); + expect(f.upload.status).toBe('expired'); + expect(f.storage.inspectToFile).not.toHaveBeenCalled(); + }); + + it('does not reject an intent for an infrastructure failure or a missing upload', async () => { + const f = fixture(); + f.storage.inspectToFile.mockRejectedValue( + new ApiException(503, 'unavailable', 'storage unavailable'), + ); + await expect(f.complete()).rejects.toMatchObject({ status: 503 }); + expect(f.upload.status).toBe('pending'); + expect(f.db.attachment.create).not.toHaveBeenCalled(); + }); + + it('does not fetch an object for a foreign reservation or simultaneous completion', async () => { + const f = fixture(); + f.db.directUpload.findFirst.mockResolvedValueOnce(null); + await expect(f.complete()).rejects.toMatchObject({ status: 404 }); + f.db.$queryRaw.mockResolvedValueOnce([{ locked: false }]); + await expect(f.complete()).rejects.toMatchObject({ status: 409 }); + expect(f.storage.inspectToFile).not.toHaveBeenCalled(); + }); +}); diff --git a/src/Attachment/direct-upload.service.ts b/src/Attachment/direct-upload.service.ts new file mode 100644 index 0000000..599f25f --- /dev/null +++ b/src/Attachment/direct-upload.service.ts @@ -0,0 +1,225 @@ +import { Injectable, Logger } from '@nestjs/common'; +import { mkdtemp, rm, rmdir } from 'node:fs/promises'; +import { join } from 'node:path'; +import { tmpdir } from 'node:os'; +import type { Attachment } from '../generated/prisma/client'; +import { PrismaService } from '../prisma/prisma.service'; +import { StorageService } from '../Storage/storage.service'; +import { ApiException } from '../common/exceptions/api.exception'; +import { invalidRequest, objectBody, uuid } from '../common/validation'; +import { AttachmentService, MAX_UPLOAD_BYTES } from './attachment.service'; +import { OBJECT_TRANSACTION, tryAttachmentObjectLock } from './object-lock'; +import { profileStage } from '../common/http/upload-memory-profile'; + +type Outcome = { attachment: Attachment } | { error: ApiException }; + +@Injectable() +export class DirectUploadService { + private readonly logger = new Logger(DirectUploadService.name); + private readonly maxTtl = Number(process.env.DIRECT_UPLOAD_TTL_SECONDS ?? 60); + + constructor( + private readonly db: PrismaService, + private readonly storage: StorageService, + private readonly attachments: AttachmentService, + ) { + if ( + !Number.isSafeInteger(this.maxTtl) || + this.maxTtl < 1 || + this.maxTtl > 300 + ) { + throw new Error('DIRECT_UPLOAD_TTL_SECONDS must be between 1 and 300'); + } + } + + async initiate(chatValue: unknown, userId: string, value: unknown) { + const chatId = uuid(chatValue, 'chat_id'); + await this.attachments.authorizeChat(chatId, userId); + const body = objectBody(value, [ + 'filename', + 'content_type', + 'size_bytes', + 'sha256', + 'expires_in', + ]); + const fields = this.attachments.validateFields( + body.filename, + body.content_type, + ); + if ( + typeof body.size_bytes !== 'number' || + !Number.isSafeInteger(body.size_bytes) || + body.size_bytes < 1 + ) + invalidRequest('Некорректный size_bytes'); + if (body.size_bytes > MAX_UPLOAD_BYTES) + throw new ApiException(413, 'payload_too_large', 'Превышен лимит файла'); + if (typeof body.sha256 !== 'string' || !/^[a-f0-9]{64}$/.test(body.sha256)) + invalidRequest('Ожидается lowercase SHA-256'); + const ttl = body.expires_in === undefined ? this.maxTtl : body.expires_in; + if ( + typeof ttl !== 'number' || + !Number.isSafeInteger(ttl) || + ttl < 1 || + ttl > this.maxTtl + ) + invalidRequest('Некорректный expires_in'); + // SigV4 timestamps have second precision; report the same expiry to the client. + const now = new Date(Math.floor(Date.now() / 1000) * 1000); + const upload = await this.db.directUpload.create({ + data: { + chatId, + ownerId: userId, + filename: fields.filename, + contentType: fields.contentType, + sizeBytes: body.size_bytes, + sha256: body.sha256, + expiresAt: new Date(now.getTime() + ttl * 1000), + }, + }); + const signed = await this.storage.presignPut( + `staging/${chatId}/${upload.id}`, + upload.sizeBytes, + upload.contentType, + upload.sha256, + ttl, + now, + ); + return { + upload_id: upload.id, + expires_at: upload.expiresAt.toISOString(), + method: 'PUT' as const, + ...signed, + complete_url: `/api/v1/chats/${chatId}/attachment-uploads/${upload.id}/complete`, + }; + } + + async complete( + chatValue: unknown, + uploadValue: unknown, + userId: string, + body: unknown, + ) { + profileStage('authorize_and_lookup'); + const chatId = uuid(chatValue, 'chat_id'); + const id = uuid(uploadValue, 'upload_id'); + if (body !== undefined) objectBody(body, []); + await this.attachments.authorizeChat(chatId, userId); + const where = { id, chatId, ownerId: userId }; + if (!(await this.db.directUpload.findFirst({ where }))) + throw new ApiException(404, 'not_found', 'Объект не найден'); + const stagingKey = `staging/${chatId}/${id}`; + const originalKey = `originals/${chatId}/${id}`; + const directory = await mkdtemp(join(tmpdir(), 'pe-direct-')); + const file = join(directory, 'image'); + let outcome: Outcome; + try { + outcome = await this.db.$transaction(async (tx): Promise => { + if ( + !(await tryAttachmentObjectLock(tx, stagingKey)) || + !(await tryAttachmentObjectLock(tx, originalKey)) + ) { + throw new ApiException( + 409, + 'conflict', + 'Загрузка уже завершается; повторите complete', + ); + } + const upload = await tx.directUpload.findFirst({ where }); + if (!upload) + throw new ApiException(404, 'not_found', 'Объект не найден'); + const existing = await tx.attachment.findUnique({ where: { id } }); + if (upload.status === 'completed') { + if (!existing) + throw new ApiException( + 503, + 'unavailable', + 'Метаданные завершённой загрузки недоступны', + ); + return { attachment: existing }; + } + if (upload.status !== 'pending') + return { + error: new ApiException( + 409, + 'conflict', + 'Разрешение загрузки больше не действует', + ), + }; + if (upload.expiresAt <= new Date()) { + await tx.directUpload.update({ + where: { id }, + data: { status: 'expired' }, + }); + return { + error: new ApiException( + 409, + 'conflict', + 'Разрешение загрузки истекло', + ), + }; + } + if (existing) + throw new ApiException( + 503, + 'unavailable', + 'Конфликт идентификатора вложения', + ); + let etag: string; + try { + profileStage('s3_get_headers'); + etag = await this.storage.inspectToFile(stagingKey, file, upload); + await this.attachments.validateImage(file, upload.contentType); + } catch (error) { + if ( + !(error instanceof ApiException) || + ![400, 413, 415].includes(error.getStatus()) + ) + throw error; + // Commit rejection before reporting a permanent validation error. No attachment is published. + await tx.directUpload.update({ + where: { id }, + data: { status: 'rejected' }, + }); + return { error }; + } + // The signed PUT is create-only. Conditional copy also rejects a changed source. + // Readers can only see the immutable original, never the still-signed staging key. + profileStage('s3_copy'); + await this.storage.publishCopy(stagingKey, originalKey, etag); + profileStage('db_insert_and_commit'); + const attachment = await tx.attachment.create({ + data: { + id, + chatId, + ownerId: userId, + objectKey: originalKey, + filename: upload.filename, + contentType: upload.contentType, + sizeBytes: upload.sizeBytes, + sha256: upload.sha256, + }, + }); + await tx.directUpload.update({ + where: { id }, + data: { status: 'completed' }, + }); + return { attachment }; + }, OBJECT_TRANSACTION); + } finally { + profileStage('temp_file_cleanup'); + await rm(file, { force: true }); + await rmdir(directory); + } + if ('error' in outcome) throw outcome.error; + // Failure or a late replay of PUT is harmless: the cleaner removes expired staging later. + try { + profileStage('staging_delete'); + await this.storage.remove(stagingKey); + } catch { + this.logger.warn('Completed upload staging cleanup deferred'); + } + profileStage('serialize_response'); + return this.attachments.serialize(outcome.attachment); + } +} diff --git a/src/Attachment/object-lock.ts b/src/Attachment/object-lock.ts new file mode 100644 index 0000000..1227254 --- /dev/null +++ b/src/Attachment/object-lock.ts @@ -0,0 +1,16 @@ +import { Prisma } from '../generated/prisma/client'; + +export const OBJECT_TRANSACTION = { maxWait: 5000, timeout: 20000 }; + +/** All writers and cleaners use the same transaction-scoped lock for an immutable key. */ +export async function tryAttachmentObjectLock( + tx: Prisma.TransactionClient, + objectKey: string, +): Promise { + // A suspended/crashed writer must not keep an idle transaction open indefinitely. + await tx.$executeRaw`SET LOCAL idle_in_transaction_session_timeout = '15s'`; + const [result] = await tx.$queryRaw<{ locked: boolean }[]>(Prisma.sql` + SELECT pg_try_advisory_xact_lock(hashtextextended(${`attachment:${objectKey}`}, 0)) AS locked + `); + return result.locked; +} diff --git a/src/Attachment/reconcile-health.ts b/src/Attachment/reconcile-health.ts new file mode 100644 index 0000000..a776d85 --- /dev/null +++ b/src/Attachment/reconcile-health.ts @@ -0,0 +1,30 @@ +import { readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; + +const file = join(tmpdir(), 'mtusi2026lab4-reconciler-success'); + +export function clearReconcileHealth(): void { + rmSync(file, { force: true }); +} + +export function markReconcileHealth(): void { + writeFileSync(file, String(Date.now()), { mode: 0o600 }); +} + +if (require.main === module) { + try { + const age = Date.now() - Number(readFileSync(file, 'utf8')); + const interval = Number(process.env.RECONCILE_INTERVAL_SECONDS ?? 60); + process.exitCode = + Number.isFinite(age) && + age >= 0 && + Number.isFinite(interval) && + interval > 0 && + age <= (interval + 120) * 1000 + ? 0 + : 1; + } catch { + process.exitCode = 1; + } +} diff --git a/src/Attachment/reconcile-options.ts b/src/Attachment/reconcile-options.ts new file mode 100644 index 0000000..90d27d3 --- /dev/null +++ b/src/Attachment/reconcile-options.ts @@ -0,0 +1,83 @@ +import { uuidPattern } from '../common/validation'; + +export interface ReconcileOptions { + apply: boolean; + graceSeconds: number; + prefix: string; + signal?: AbortSignal; +} + +export function positiveSeconds(value: string, name: string): number { + if (!/^[1-9]\d*$/.test(value)) + throw new Error(`${name} must be a positive integer`); + const seconds = Number(value); + if (!Number.isSafeInteger(seconds) || seconds > 2147483) { + throw new Error(`${name} is too large`); + } + return seconds; +} + +export function managedObjectKey(key: string): boolean { + const parts = key.split('/'); + return ( + parts.length === 3 && + parts[0] === 'originals' && + uuidPattern.test(parts[1]) && + uuidPattern.test(parts[2]) + ); +} + +export function reconcileOptions(args: string[], env = process.env) { + let apply = false; + let dryRun = false; + let watch = false; + let prefix = 'originals/'; + for (let i = 0; i < args.length; i++) { + switch (args[i]) { + case '--apply': + apply = true; + break; + case '--dry-run': + dryRun = true; + break; + case '--watch': + watch = true; + break; + case '--prefix': { + prefix = args[++i] ?? ''; + const parts = prefix.split('/'); + if ( + prefix !== 'originals/' && + !( + parts.length === 3 && + parts[0] === 'originals' && + uuidPattern.test(parts[1]) && + parts[2] === '' + ) + ) { + throw new Error( + 'Prefix must be originals/ or originals//', + ); + } + break; + } + default: + throw new Error(`Unknown argument: ${args[i]}`); + } + } + if (apply && dryRun) + throw new Error('--apply and --dry-run are mutually exclusive'); + return { + apply, + watch, + prefix, + graceSeconds: positiveSeconds( + env.ORPHAN_GRACE_SECONDS ?? '600', + 'ORPHAN_GRACE_SECONDS', + ), + intervalSeconds: positiveSeconds( + env.RECONCILE_INTERVAL_SECONDS ?? '60', + 'RECONCILE_INTERVAL_SECONDS', + ), + }; +} diff --git a/src/Attachment/reconcile.cli.ts b/src/Attachment/reconcile.cli.ts new file mode 100644 index 0000000..cf29c32 --- /dev/null +++ b/src/Attachment/reconcile.cli.ts @@ -0,0 +1,67 @@ +import 'reflect-metadata'; +import { setTimeout as delay } from 'node:timers/promises'; +import { PrismaService } from '../prisma/prisma.service'; +import { StorageService } from '../Storage/storage.service'; +import { reconcileOptions } from './reconcile-options'; +import { ReconcileService } from './reconcile.service'; +import { clearReconcileHealth, markReconcileHealth } from './reconcile-health'; + +async function main() { + const options = reconcileOptions(process.argv.slice(2)); + if (options.watch) clearReconcileHealth(); + const controller = new AbortController(); + const stop = () => controller.abort(); + process.once('SIGTERM', stop); + process.once('SIGINT', stop); + const prisma = new PrismaService(); + let storage: StorageService | undefined; + const output = (event: object) => console.log(JSON.stringify(event)); + try { + storage = new StorageService(); + await prisma.onModuleInit(); + const service = new ReconcileService(prisma, storage, output); + do { + try { + const report = await service.run({ + ...options, + signal: controller.signal, + }); + if (options.watch) markReconcileHealth(); + output({ event: 'reconcile_summary', ...report }); + if (!options.watch && report.missingObjects > 0) process.exitCode = 2; + } catch (error) { + if (controller.signal.aborted) break; + if (options.watch) clearReconcileHealth(); + output({ + event: 'reconcile_failed', + errorType: error instanceof Error ? error.name : 'UnknownError', + }); + if (!options.watch) { + process.exitCode = 1; + break; + } + } + if (!options.watch || controller.signal.aborted) break; + await delay(options.intervalSeconds * 1000, undefined, { + signal: controller.signal, + }).catch((error: unknown) => { + if (!controller.signal.aborted) throw error; + }); + } while (!controller.signal.aborted); + } finally { + storage?.onModuleDestroy(); + await prisma.onModuleDestroy(); + process.removeListener('SIGTERM', stop); + process.removeListener('SIGINT', stop); + } +} + +void main().catch((error: unknown) => { + console.error( + JSON.stringify({ + event: 'reconcile_failed', + errorType: error instanceof Error ? error.name : 'UnknownError', + }), + ); + process.exitCode = 1; +}); diff --git a/src/Attachment/reconcile.service.spec.ts b/src/Attachment/reconcile.service.spec.ts new file mode 100644 index 0000000..78d041b --- /dev/null +++ b/src/Attachment/reconcile.service.spec.ts @@ -0,0 +1,200 @@ +import type { PrismaService } from '../prisma/prisma.service'; +import type { StorageService, StoredObject } from '../Storage/storage.service'; +import { ReconcileService } from './reconcile.service'; +import { reconcileOptions } from './reconcile-options'; + +const key = + 'originals/11111111-1111-4111-8111-111111111111/22222222-2222-4222-8222-222222222222'; +const now = new Date('2026-11-09T12:00:00Z'); +const old = new Date(now.getTime() - 601000); +const fresh = new Date(now.getTime() - 599000); + +function fixture(objects: StoredObject[] = [{ key, lastModified: old }]) { + const tx = { + $executeRaw: jest.fn().mockResolvedValue(0), + $queryRaw: jest.fn().mockResolvedValue([{ locked: true }]), + attachment: { findUnique: jest.fn().mockResolvedValue(null) }, + directUpload: { findUnique: jest.fn().mockResolvedValue(null) }, + }; + const prisma = { + $queryRaw: jest.fn().mockResolvedValue([{ '?column?': 1 }]), + $transaction: jest.fn( + async (callback: (value: typeof tx) => Promise) => callback(tx), + ), + attachment: { findMany: jest.fn().mockResolvedValue([]) }, + directUpload: { updateMany: jest.fn().mockResolvedValue({ count: 0 }) }, + }; + const storage = { + ready: jest.fn().mockResolvedValue(undefined), + objects: jest.fn(async function* (prefix: string) { + if (prefix === 'staging/') return; + yield* objects; + }), + stat: jest.fn().mockResolvedValue({ key, lastModified: old }), + remove: jest.fn().mockResolvedValue(undefined), + }; + const emit = jest.fn(); + const service = new ReconcileService( + prisma as unknown as PrismaService, + storage as unknown as StorageService, + emit, + ); + const run = (apply = true) => + service.run({ apply, graceSeconds: 600, prefix: 'originals/' }, now); + return { tx, prisma, storage, emit, run }; +} + +describe('attachment reconciliation', () => { + it('reports old orphans in dry-run without removing bytes', async () => { + const f = fixture(); + expect(await f.run(false)).toMatchObject({ + orphanCandidates: 1, + deletedObjects: 0, + }); + expect(f.storage.remove).not.toHaveBeenCalled(); + expect(f.emit).toHaveBeenCalledWith({ + event: 'orphan_candidate', + objectKey: key, + }); + }); + + it('deletes an old orphan and safely handles another pass after it is gone', async () => { + const f = fixture(); + expect(await f.run()).toMatchObject({ deletedObjects: 1 }); + f.storage.stat.mockResolvedValue(null); + expect(await f.run()).toMatchObject({ deletedObjects: 0 }); + expect(f.storage.remove).toHaveBeenCalledTimes(1); + }); + + it('keeps fresh objects, unknown keys and objects with no trusted timestamp', async () => { + const f = fixture([ + { key, lastModified: fresh }, + { key: 'originals/manual.txt', lastModified: old }, + { key }, + ]); + expect(await f.run()).toMatchObject({ + freshObjects: 2, + unknownObjects: 1, + deletedObjects: 0, + }); + expect(f.prisma.$transaction).not.toHaveBeenCalled(); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); + + it('does not delete objects referenced by metadata', async () => { + const f = fixture(); + f.tx.attachment.findUnique.mockResolvedValue({ id: 'published' }); + expect(await f.run()).toMatchObject({ + referencedObjects: 1, + deletedObjects: 0, + }); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); + + it('skips an object locked by an active uploader or another cleaner', async () => { + const f = fixture(); + f.tx.$queryRaw.mockResolvedValue([{ locked: false }]); + expect(await f.run()).toMatchObject({ + lockedObjects: 1, + deletedObjects: 0, + }); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); + + it('rechecks current S3 age instead of trusting an old LIST result', async () => { + const f = fixture(); + f.storage.stat.mockResolvedValue({ key, lastModified: fresh }); + expect(await f.run()).toMatchObject({ freshObjects: 1, deletedObjects: 0 }); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); + + it('rechecks metadata immediately before deletion', async () => { + const f = fixture(); + f.tx.attachment.findUnique + .mockResolvedValueOnce(null) + .mockResolvedValueOnce({ id: 'published' }); + expect(await f.run()).toMatchObject({ + referencedObjects: 1, + deletedObjects: 0, + }); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); + + it('aborts before contacting S3 if the DB is unavailable', async () => { + const f = fixture(); + f.prisma.$queryRaw.mockRejectedValue(new Error('DB unavailable')); + await expect(f.run()).rejects.toThrow('DB unavailable'); + expect(f.storage.ready).not.toHaveBeenCalled(); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); + + it('does not delete when the DB fails after the S3 age check', async () => { + const f = fixture(); + f.tx.attachment.findUnique + .mockResolvedValueOnce(null) + .mockRejectedValueOnce(new Error('DB unavailable')); + await expect(f.run()).rejects.toThrow('DB unavailable'); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); + + it('does not treat S3 failure as a missing object or successful cleanup', async () => { + const f = fixture(); + f.storage.stat.mockRejectedValue(new Error('S3 unavailable')); + await expect(f.run()).rejects.toThrow('S3 unavailable'); + expect(f.storage.remove).not.toHaveBeenCalled(); + expect(f.emit).not.toHaveBeenCalled(); + }); + + it('reports missing bytes without deleting metadata', async () => { + const f = fixture([]); + f.prisma.attachment.findMany.mockResolvedValue([ + { id: 'published', objectKey: key }, + ]); + f.storage.stat.mockResolvedValue(null); + expect(await f.run()).toMatchObject({ + missingObjects: 1, + deletedObjects: 0, + }); + expect(f.emit).toHaveBeenCalledWith({ + event: 'missing_object', + objectKey: key, + attachmentId: 'published', + }); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); +}); + +describe('reconciliation CLI options', () => { + it('defaults to dry-run with a ten-minute grace and one-minute interval', () => { + expect(reconcileOptions([], {})).toMatchObject({ + apply: false, + watch: false, + graceSeconds: 600, + intervalSeconds: 60, + }); + }); + + it('accepts explicit apply and a scope limited to one chat', () => { + expect( + reconcileOptions( + ['--apply', '--prefix', key.slice(0, key.lastIndexOf('/') + 1)], + { ORPHAN_GRACE_SECONDS: '1200' }, + ), + ).toMatchObject({ apply: true, graceSeconds: 1200 }); + }); + + it.each(['0', '-1', '1.5', 'NaN', '999999999999'])( + 'rejects invalid grace %s', + (value) => { + expect(() => + reconcileOptions([], { ORPHAN_GRACE_SECONDS: value }), + ).toThrow(); + }, + ); + + it('rejects unsafe prefixes and conflicting modes', () => { + expect(() => reconcileOptions(['--prefix', 'other/'], {})).toThrow(); + expect(() => reconcileOptions(['--apply', '--dry-run'], {})).toThrow(); + expect(() => reconcileOptions(['--unknown'], {})).toThrow(); + }); +}); diff --git a/src/Attachment/reconcile.service.ts b/src/Attachment/reconcile.service.ts new file mode 100644 index 0000000..6e5cae0 --- /dev/null +++ b/src/Attachment/reconcile.service.ts @@ -0,0 +1,132 @@ +import { PrismaService } from '../prisma/prisma.service'; +import { StorageService } from '../Storage/storage.service'; +import { OBJECT_TRANSACTION, tryAttachmentObjectLock } from './object-lock'; +import { managedObjectKey, type ReconcileOptions } from './reconcile-options'; +import { cleanStaging } from './staging-cleanup'; + +export interface ReconcileEvent { + event: string; + objectKey?: string; + attachmentId?: string; +} + +export class ReconcileService { + constructor( + private readonly prisma: PrismaService, + private readonly storage: StorageService, + private readonly emit: (event: ReconcileEvent) => void = () => {}, + ) {} + + async run(options: ReconcileOptions, now = new Date()) { + const cutoff = now.getTime() - options.graceSeconds * 1000; + const report = { + mode: options.apply ? 'apply' : 'dry-run', + graceSeconds: options.graceSeconds, + prefix: options.prefix, + objectsScanned: 0, + freshObjects: 0, + referencedObjects: 0, + lockedObjects: 0, + unknownObjects: 0, + orphanCandidates: 0, + deletedObjects: 0, + missingObjects: 0, + }; + const oldEnough = (date?: Date) => + date !== undefined && + Number.isFinite(date.getTime()) && + date.getTime() <= cutoff; + // Check the DB before contacting S3. Any subsequent DB/S3 error aborts this pass. + await this.prisma.$queryRaw`SELECT 1`; + await this.storage.ready(); + for await (const object of this.storage.objects(options.prefix)) { + options.signal?.throwIfAborted(); + report.objectsScanned++; + if (!managedObjectKey(object.key)) { + report.unknownObjects++; + continue; + } + if (!oldEnough(object.lastModified)) { + report.freshObjects++; + continue; + } + const outcome = await this.prisma.$transaction(async (tx) => { + if (!(await tryAttachmentObjectLock(tx, object.key))) return 'locked'; + if ( + await tx.attachment.findUnique({ + where: { objectKey: object.key }, + select: { id: true }, + }) + ) { + return 'referenced'; + } + // LIST timestamps may be stale. HEAD checks the current object under the writer lock. + const current = await this.storage.stat(object.key); + if (!current) return 'gone'; + if (!oldEnough(current.lastModified)) return 'fresh'; + // Recheck immediately before DELETE, also detecting DB failure after HEAD. + if ( + await tx.attachment.findUnique({ + where: { objectKey: object.key }, + select: { id: true }, + }) + ) { + return 'referenced'; + } + options.signal?.throwIfAborted(); + if (options.apply) await this.storage.remove(object.key); + return options.apply ? 'deleted' : 'candidate'; + }, OBJECT_TRANSACTION); + if (outcome === 'locked') report.lockedObjects++; + if (outcome === 'referenced') report.referencedObjects++; + if (outcome === 'fresh') report.freshObjects++; + if (outcome === 'candidate' || outcome === 'deleted') { + report.orphanCandidates++; + if (outcome === 'deleted') report.deletedObjects++; + this.emit({ + event: outcome === 'deleted' ? 'orphan_deleted' : 'orphan_candidate', + objectKey: object.key, + }); + } + } + + // Reverse check: missing bytes are an integrity incident, never a reason to delete metadata. + let after: string | undefined; + while (true) { + options.signal?.throwIfAborted(); + const rows = await this.prisma.attachment.findMany({ + where: { + objectKey: { startsWith: options.prefix }, + ...(after ? { id: { gt: after } } : {}), + }, + select: { id: true, objectKey: true }, + orderBy: { id: 'asc' }, + take: 200, + }); + for (const row of rows) { + options.signal?.throwIfAborted(); + if (!(await this.storage.stat(row.objectKey))) { + report.missingObjects++; + this.emit({ + event: 'missing_object', + objectKey: row.objectKey, + attachmentId: row.id, + }); + } + } + if (rows.length < 200) break; + after = rows[rows.length - 1].id; + } + // Chat-scoped original-only diagnostics must not scan another chat's staging. + if (options.prefix === 'originals/') { + const staging = await cleanStaging( + this.prisma, + this.storage, + options, + now, + ); + return { ...report, ...staging }; + } + return report; + } +} diff --git a/src/Attachment/staging-cleanup.spec.ts b/src/Attachment/staging-cleanup.spec.ts new file mode 100644 index 0000000..713c75b --- /dev/null +++ b/src/Attachment/staging-cleanup.spec.ts @@ -0,0 +1,89 @@ +import { randomUUID } from 'node:crypto'; +import type { PrismaService } from '../prisma/prisma.service'; +import type { StorageService } from '../Storage/storage.service'; +import { cleanStaging } from './staging-cleanup'; + +function fixture() { + const chat = randomUUID(); + const id = randomUUID(); + const key = `staging/${chat}/${id}`; + const now = new Date(); + const old = new Date(now.getTime() - 1200000); + const upload = { chatId: chat, expiresAt: old }; + const tx = { + $queryRaw: jest.fn().mockResolvedValue([{ locked: true }]), + $executeRaw: jest.fn().mockResolvedValue(0), + directUpload: { findUnique: jest.fn().mockResolvedValue(upload) }, + }; + const db = { + $queryRaw: jest.fn().mockResolvedValue([]), + $transaction: jest.fn(async (fn: (value: unknown) => unknown) => fn(tx)), + directUpload: { updateMany: jest.fn().mockResolvedValue({ count: 1 }) }, + }; + const storage = { + objects: jest.fn(async function* () { + yield { key, lastModified: old }; + }), + stat: jest.fn().mockResolvedValue({ key, lastModified: old }), + remove: jest.fn().mockResolvedValue(undefined), + }; + const options = { + apply: true, + graceSeconds: 600, + prefix: `originals/${chat}/`, + }; + const run = (apply = true) => + cleanStaging( + db as unknown as PrismaService, + storage as unknown as StorageService, + { ...options, apply }, + now, + ); + return { key, chat, now, upload, tx, db, storage, run }; +} + +describe('staging cleanup', () => { + it('deletes only aged objects after reservation expiry plus grace', async () => { + const f = fixture(); + expect(await f.run()).toMatchObject({ stagingDeleted: 1 }); + expect(f.storage.objects).toHaveBeenCalledWith(`staging/${f.chat}/`); + expect(f.storage.remove).toHaveBeenCalledWith(f.key); + expect(f.db.directUpload.updateMany).toHaveBeenCalledWith( + expect.objectContaining({ + where: expect.objectContaining({ chatId: f.chat }), + }), + ); + }); + it('protects an unexpired URL even if the object already looks old', async () => { + const f = fixture(); + f.upload.expiresAt = new Date(f.now.getTime() + 60000); + expect(await f.run()).toMatchObject({ + stagingDeleted: 0, + stagingProtected: 1, + }); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); + it('protects an active complete and a freshly recreated staging object', async () => { + const f = fixture(); + f.tx.$queryRaw.mockResolvedValueOnce([{ locked: false }]); + expect(await f.run()).toMatchObject({ stagingProtected: 1 }); + f.storage.stat.mockResolvedValueOnce({ key: f.key, lastModified: f.now }); + expect(await f.run()).toMatchObject({ stagingProtected: 1 }); + expect(f.storage.remove).not.toHaveBeenCalled(); + }); + it('performs a dry run without deleting files or changing reservations', async () => { + const f = fixture(); + expect(await f.run(false)).toMatchObject({ + stagingCandidates: 1, + stagingDeleted: 0, + }); + expect(f.storage.remove).not.toHaveBeenCalled(); + expect(f.db.directUpload.updateMany).not.toHaveBeenCalled(); + }); + it('fails closed when PostgreSQL is unavailable', async () => { + const f = fixture(); + f.db.$queryRaw.mockRejectedValueOnce(new Error('database unavailable')); + await expect(f.run()).rejects.toThrow('database unavailable'); + expect(f.storage.objects).not.toHaveBeenCalled(); + }); +}); diff --git a/src/Attachment/staging-cleanup.ts b/src/Attachment/staging-cleanup.ts new file mode 100644 index 0000000..bfb7b36 --- /dev/null +++ b/src/Attachment/staging-cleanup.ts @@ -0,0 +1,77 @@ +import type { PrismaService } from '../prisma/prisma.service'; +import type { StorageService } from '../Storage/storage.service'; +import { uuidPattern } from '../common/validation'; +import type { ReconcileOptions } from './reconcile-options'; +import { OBJECT_TRANSACTION, tryAttachmentObjectLock } from './object-lock'; + +export async function cleanStaging( + db: PrismaService, + storage: StorageService, + options: ReconcileOptions, + now: Date, +) { + const cutoff = new Date(now.getTime() - options.graceSeconds * 1000); + const scope = + options.prefix === 'originals/' ? undefined : options.prefix.split('/')[1]; + if ( + options.prefix !== 'originals/' && + (!scope || + options.prefix !== `originals/${scope}/` || + !uuidPattern.test(scope)) + ) + throw new Error('Unsafe staging cleanup scope'); + const prefix = scope ? `staging/${scope}/` : 'staging/'; + const report = { + stagingScanned: 0, + stagingProtected: 0, + stagingCandidates: 0, + stagingDeleted: 0, + }; + // Fail closed before looking for objects. Never infer "no intent" from a DB outage. + await db.$queryRaw`SELECT 1`; + for await (const object of storage.objects(prefix)) { + options.signal?.throwIfAborted(); + report.stagingScanned++; + const parts = object.key.split('/'); + if ( + parts.length !== 3 || + parts[0] !== 'staging' || + !uuidPattern.test(parts[1]) || + !uuidPattern.test(parts[2]) || + !object.lastModified || + object.lastModified > cutoff + ) { + report.stagingProtected++; + continue; + } + const outcome = await db.$transaction(async (tx) => { + if (!(await tryAttachmentObjectLock(tx, object.key))) return false; + const upload = await tx.directUpload.findUnique({ + where: { id: parts[2] }, + }); + // Wait for BOTH signature expiry and grace. A late replay must not outlive its reservation. + if (upload && (upload.chatId !== parts[1] || upload.expiresAt > cutoff)) + return false; + const current = await storage.stat(object.key); + if (!current || !current.lastModified || current.lastModified > cutoff) + return false; + options.signal?.throwIfAborted(); + if (options.apply) await storage.remove(object.key); + return true; + }, OBJECT_TRANSACTION); + if (outcome) { + report.stagingCandidates++; + if (options.apply) report.stagingDeleted++; + } else report.stagingProtected++; + } + if (options.apply) + await db.directUpload.updateMany({ + where: { + status: 'pending', + expiresAt: { lte: cutoff }, + ...(scope ? { chatId: scope } : {}), + }, + data: { status: 'expired' }, + }); + return report; +} diff --git a/src/Auth/auth.controller.ts b/src/Auth/auth.controller.ts new file mode 100644 index 0000000..03123c0 --- /dev/null +++ b/src/Auth/auth.controller.ts @@ -0,0 +1,69 @@ +import { + Body, + Controller, + Delete, + HttpCode, + HttpStatus, + Post, + Req, + UseGuards, +} from '@nestjs/common'; +import { + ApiBasicAuth, + ApiBearerAuth, + ApiCreatedResponse, + ApiNoContentResponse, + ApiOperation, + ApiTags, + ApiUnauthorizedResponse, +} from '@nestjs/swagger'; +import { UserGuard, type AuthenticatedRequest } from '../User/user.guard'; +import { AuthService } from './auth.service'; +import { Session } from './auth.schema'; + +@ApiTags('auth') +@Controller('api/v1/auth/sessions') +export class AuthController { + constructor(private readonly auth: AuthService) {} + + @Post() + @HttpCode(HttpStatus.CREATED) + @ApiBasicAuth('basicAuth') + @ApiOperation({ + operationId: 'createSession', + summary: 'Вход', + }) + @ApiCreatedResponse({ type: Session }) + @ApiUnauthorizedResponse({ + headers: { + 'WWW-Authenticate': { + schema: { type: 'string' }, + example: 'Basic realm="messenger", charset="UTF-8"', + }, + }, + }) + create(@Req() request: AuthenticatedRequest, @Body() body: unknown) { + return this.auth.login(request.headers.authorization, body); + } + + @Delete('current') + @HttpCode(HttpStatus.NO_CONTENT) + @UseGuards(UserGuard) + @ApiBearerAuth('bearerAuth') + @ApiOperation({ + operationId: 'revokeSession', + summary: 'Отзыв текущей сессии', + }) + @ApiNoContentResponse() + @ApiUnauthorizedResponse({ + headers: { + 'WWW-Authenticate': { + schema: { type: 'string' }, + example: 'Bearer realm="messenger"', + }, + }, + }) + logout(@Req() request: AuthenticatedRequest) { + return this.auth.logout(request.currentSessionId); + } +} diff --git a/src/Auth/auth.exception.ts b/src/Auth/auth.exception.ts new file mode 100644 index 0000000..e7cc456 --- /dev/null +++ b/src/Auth/auth.exception.ts @@ -0,0 +1,18 @@ +import { HttpStatus } from '@nestjs/common'; +import { ApiException } from '../common/exceptions/api.exception'; + +export class AuthException extends ApiException { + readonly challenge: string; + + constructor(scheme: 'Basic' | 'Bearer') { + super( + HttpStatus.UNAUTHORIZED, + 'unauthorized', + 'Требуется действительная аутентификация', + ); + this.challenge = + scheme === 'Basic' + ? 'Basic realm="messenger", charset="UTF-8"' + : 'Bearer realm="messenger"'; + } +} diff --git a/src/Auth/auth.schema.ts b/src/Auth/auth.schema.ts new file mode 100644 index 0000000..394f637 --- /dev/null +++ b/src/Auth/auth.schema.ts @@ -0,0 +1,15 @@ +import { ApiProperty } from '@nestjs/swagger'; +import { User } from '../User/user.schema'; + +export class Session { + token!: string; + + @ApiProperty({ enum: ['Bearer'] }) + token_type!: 'Bearer'; + + @ApiProperty({ format: 'date-time' }) + expires_at!: string; + + @ApiProperty({ type: User }) + user!: User; +} diff --git a/src/Auth/auth.service.ts b/src/Auth/auth.service.ts new file mode 100644 index 0000000..2c9ae88 --- /dev/null +++ b/src/Auth/auth.service.ts @@ -0,0 +1,182 @@ +import { Injectable } from '@nestjs/common'; +import { createHash, randomBytes } from 'node:crypto'; +import { TextDecoder } from 'node:util'; +import { PrismaService } from '../prisma/prisma.service'; +import { Prisma } from '../generated/prisma/client'; +import { UserService } from '../User/user.service'; +import type { User } from '../User/user.schema'; +import { invalidRequest, uuid, uuidPattern } from '../common/validation'; +import { ApiException } from '../common/exceptions/api.exception'; +import { AuthException } from './auth.exception'; +import { PasswordService, validPassword } from './password.service'; +import type { Session } from './auth.schema'; + +export interface ChatAccess { + chatId: string; + userId: string; + messagesEpoch: string; +} + +@Injectable() +export class AuthService { + private readonly ttlSeconds: number; + + constructor( + private readonly prisma: PrismaService, + private readonly users: UserService, + private readonly passwords: PasswordService, + ) { + this.ttlSeconds = Number(process.env.SESSION_TTL_SECONDS ?? 3600); + if ( + !Number.isSafeInteger(this.ttlSeconds) || + this.ttlSeconds <= 0 || + Number.isNaN(new Date(Date.now() + this.ttlSeconds * 1000).getTime()) + ) { + throw new Error( + 'SESSION_TTL_SECONDS must be a positive integer representing a valid expiry', + ); + } + } + + async login(authorization: unknown, body: unknown): Promise { + const { username, password } = this.basicCredentials(authorization); + const user = await this.prisma.user.findUnique({ where: { username } }); + const verified = await this.passwords.verify( + password, + user?.passwordHash ?? null, + ); + if (!user || !verified) throw new AuthException('Basic'); + if (body !== undefined) + return invalidRequest('Вход через Basic не принимает тело запроса'); + const token = randomBytes(32).toString('base64url'); + const session = await this.prisma.session.create({ + data: { + userId: user.id, + tokenHash: this.tokenHash(token), + expiresAt: new Date(Date.now() + this.ttlSeconds * 1000), + }, + }); + return { + token, + token_type: 'Bearer', + expires_at: session.expiresAt.toISOString(), + user: this.users.serialize(user), + }; + } + + async authenticate( + authorization: unknown, + chatId?: unknown, + ): Promise<{ + user: User; + sessionId: string; + chatsEpoch: string; + chatAccess?: ChatAccess; + }> { + const match = + typeof authorization === 'string' && + /^Bearer +([A-Za-z0-9_-]{43})$/i.exec(authorization); + if (!match) throw new AuthException('Bearer'); + const requestedChat = + typeof chatId === 'string' && uuidPattern.test(chatId) + ? chatId.toLowerCase() + : null; + const [session] = await this.prisma.$queryRaw< + { + id: string; + userId: string; + username: string; + displayName: string; + createdAt: Date; + chatsEpoch: bigint; + chatId: string | null; + messagesEpoch: bigint | null; + }[] + >(Prisma.sql` + SELECT s.id, s.user_id AS "userId", u.chats_epoch AS "chatsEpoch", + u.username, u.display_name AS "displayName", u.created_at AS "createdAt", + ${ + chatId === undefined + ? Prisma.sql`NULL::uuid AS "chatId", NULL::bigint AS "messagesEpoch"` + : Prisma.sql`c.id AS "chatId", COALESCE((SELECT SUM(e.epoch) FROM "public"."chat_message_epochs" AS e WHERE e.chat_id = c.id), 0)::bigint AS "messagesEpoch"` + } + FROM sessions AS s + JOIN users AS u ON u.id = s.user_id + ${ + chatId === undefined + ? Prisma.empty + : Prisma.sql` + LEFT JOIN chat_members AS cm + ON cm.user_id = s.user_id AND cm.chat_id = ${requestedChat}::uuid + LEFT JOIN chats AS c ON c.id = cm.chat_id + ` + } + WHERE s.token_hash = ${this.tokenHash(match[1])} + AND s.revoked_at IS NULL AND s.expires_at > ${new Date()} + LIMIT 1 + `); + if (!session) throw new AuthException('Bearer'); + if (chatId !== undefined) { + uuid(chatId, 'chat_id'); + if (session.chatId === null || session.messagesEpoch === null) + throw new ApiException(404, 'not_found', 'Объект не найден'); + } + return { + user: this.users.serialize({ ...session, id: session.userId }), + sessionId: session.id, + chatsEpoch: session.chatsEpoch.toString(), + chatAccess: + session.chatId !== null && session.messagesEpoch !== null + ? { + chatId: session.chatId, + userId: session.userId, + messagesEpoch: session.messagesEpoch.toString(), + } + : undefined, + }; + } + + async logout(sessionId: string): Promise { + const now = new Date(); + const result = await this.prisma.session.updateMany({ + where: { id: sessionId, revokedAt: null, expiresAt: { gt: now } }, + data: { revokedAt: now }, + }); + if (result.count !== 1) throw new AuthException('Bearer'); + } + + private tokenHash(token: string): string { + return createHash('sha256').update(token).digest('hex'); + } + + private basicCredentials(authorization: unknown): { + username: string; + password: string; + } { + const match = + typeof authorization === 'string' && + /^Basic +([A-Za-z0-9+/]+={0,2})$/i.exec(authorization); + if (!match) throw new AuthException('Basic'); + try { + const bytes = Buffer.from(match[1], 'base64'); + if ( + bytes.toString('base64').replace(/=+$/, '') !== + match[1].replace(/=+$/, '') + ) + throw new AuthException('Basic'); + const value = new TextDecoder('utf-8', { fatal: true }).decode(bytes); + const colon = value.indexOf(':'); + const username = value.slice(0, colon); + const password = value.slice(colon + 1); + if ( + colon < 0 || + !/^[a-z0-9_]{3,32}$/.test(username) || + !validPassword(password) + ) + throw new AuthException('Basic'); + return { username, password }; + } catch { + throw new AuthException('Basic'); + } + } +} diff --git a/src/Auth/password.service.ts b/src/Auth/password.service.ts new file mode 100644 index 0000000..b1428fd --- /dev/null +++ b/src/Auth/password.service.ts @@ -0,0 +1,72 @@ +import { Injectable } from '@nestjs/common'; +import { argon2, randomBytes, timingSafeEqual } from 'node:crypto'; +import { invalidRequest } from '../common/validation'; + +const argonParameters = { + memory: 19456, + passes: 2, + parallelism: 1, + tagLength: 32, +}; +const argonPrefix = '$argon2id$v=19$m=19456,t=2,p=1'; + +function decodeBase64(value: string, length: number) { + const decoded = Buffer.from(value, 'base64'); + return decoded.length === length && + decoded.toString('base64').replace(/=+$/, '') === value + ? decoded + : undefined; +} + +function argonHash(value: string | null) { + const parts = value?.split('$'); + if (parts?.length !== 6 || parts.slice(0, 4).join('$') !== argonPrefix) + return undefined; + const salt = decodeBase64(parts[4], 16); + const key = decodeBase64(parts[5], 32); + return salt && key ? { salt, key } : undefined; +} + +export function validPassword(value: unknown): value is string { + if (typeof value !== 'string' || value.trim().length === 0) return false; + const length = Array.from(value).length; + return length >= 12 && length <= 128; +} + +export function registrationPassword(value: unknown): string { + if (!validPassword(value)) + return invalidRequest('Пароль должен содержать 12–128 Unicode-символов'); + return value; +} + +@Injectable() +export class PasswordService { + async hash(password: string): Promise { + const salt = randomBytes(16); + const key = await this.deriveArgon(password, salt); + return `${argonPrefix}$${salt.toString('base64').replace(/=+$/, '')}$${key.toString('base64').replace(/=+$/, '')}`; + } + + async verify(password: string, storedHash: string | null): Promise { + const stored = argonHash(storedHash); + const key = await this.deriveArgon( + password, + stored?.salt ?? Buffer.alloc(16), + ); + const matches = timingSafeEqual(key, stored?.key ?? Buffer.alloc(32)); + return Boolean(stored && matches); + } + + private deriveArgon(password: string, salt: Buffer): Promise { + return new Promise((resolve, reject) => { + argon2( + 'argon2id', + { ...argonParameters, message: password, nonce: salt }, + (error, key) => { + if (error) reject(error); + else resolve(key); + }, + ); + }); + } +} diff --git a/src/Chat/chat.controller.ts b/src/Chat/chat.controller.ts new file mode 100644 index 0000000..17baa30 --- /dev/null +++ b/src/Chat/chat.controller.ts @@ -0,0 +1,132 @@ +import { + Body, + Controller, + Get, + Headers, + HttpCode, + HttpStatus, + Param, + Post, + Query, + Req, + UseGuards, +} from '@nestjs/common'; +import { + ApiBody, + ApiBearerAuth, + ApiCreatedResponse, + ApiHeader, + ApiOkResponse, + ApiOperation, + ApiQuery, + ApiTags, +} from '@nestjs/swagger'; +import { UserGuard, type AuthenticatedRequest } from '../User/user.guard'; +import { + CreateChatDto, + CreateMessageDto, + Chat, + Message, + ChatPage, + MessagePage, +} from './chat.schema'; +import { ChatService } from './chat.service'; + +@ApiTags('chats') +@ApiBearerAuth('bearerAuth') +@UseGuards(UserGuard) +@Controller('api/v1/chats') +export class ChatController { + constructor(private readonly chats: ChatService) {} + + @Post() + @HttpCode(HttpStatus.CREATED) + @ApiBody({ type: CreateChatDto }) + @ApiOperation({ operationId: 'createChat' }) + @ApiCreatedResponse({ type: Chat }) + create(@Req() request: AuthenticatedRequest, @Body() body: unknown) { + return this.chats.create(body, request.currentUser.id); + } + + @Get() + @ApiOperation({ operationId: 'listChats' }) + @ApiOkResponse({ type: ChatPage }) + @ApiQuery({ + name: 'limit', + required: false, + schema: { type: 'integer', minimum: 1, maximum: 100, default: 50 }, + }) + @ApiQuery({ name: 'cursor', required: false, type: String }) + list( + @Req() request: AuthenticatedRequest, + @Query('limit') limit: unknown, + @Query('cursor') cursor: unknown, + ) { + return this.chats.list( + request.currentUser.id, + limit, + cursor, + request.currentChatsEpoch, + ); + } + + @Get(':chat_id') + @ApiOperation({ operationId: 'getChat' }) + @ApiOkResponse({ type: Chat }) + get(@Req() request: AuthenticatedRequest, @Param('chat_id') chatId: string) { + return this.chats.get(chatId, request.currentUser.id); + } + + @Post(':chat_id/messages') + @HttpCode(HttpStatus.CREATED) + @ApiBody({ type: CreateMessageDto }) + @ApiHeader({ + name: 'Idempotency-Key', + required: true, + schema: { + type: 'string', + minLength: 1, + maxLength: 128, + pattern: '^[A-Za-z0-9._:-]+$', + }, + }) + @ApiOperation({ operationId: 'createMessage' }) + @ApiCreatedResponse({ type: Message }) + createMessage( + @Req() request: AuthenticatedRequest, + @Param('chat_id') chatId: string, + @Headers('idempotency-key') idempotencyKey: unknown, + @Body() body: unknown, + ) { + return this.chats.createMessage( + chatId, + body, + request.currentUser.id, + idempotencyKey, + ); + } + + @Get(':chat_id/messages') + @ApiOperation({ operationId: 'listMessages' }) + @ApiOkResponse({ type: MessagePage }) + @ApiQuery({ + name: 'limit', + required: false, + schema: { type: 'integer', minimum: 1, maximum: 100, default: 50 }, + }) + @ApiQuery({ name: 'cursor', required: false, type: String }) + listMessages( + @Req() request: AuthenticatedRequest, + @Param('chat_id') chatId: string, + @Query('limit') limit: unknown, + @Query('cursor') cursor: unknown, + ) { + return this.chats.listMessages( + chatId, + request.currentUser.id, + limit, + cursor, + request.currentChatAccess, + ); + } +} diff --git a/src/Chat/chat.module.ts b/src/Chat/chat.module.ts new file mode 100644 index 0000000..ff1053b --- /dev/null +++ b/src/Chat/chat.module.ts @@ -0,0 +1,11 @@ +import { Module } from '@nestjs/common'; +import { UserModule } from '../User/user.module'; +import { ChatController } from './chat.controller'; +import { ChatService } from './chat.service'; + +@Module({ + imports: [UserModule], + controllers: [ChatController], + providers: [ChatService], +}) +export class ChatModule {} diff --git a/src/Chat/chat.schema.ts b/src/Chat/chat.schema.ts new file mode 100644 index 0000000..1b06d17 --- /dev/null +++ b/src/Chat/chat.schema.ts @@ -0,0 +1,68 @@ +import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; + +export class CreateChatDto { + @ApiProperty({ example: 'Проект по ВНП', maxLength: 100 }) + title!: string; + + @ApiProperty({ type: [String], format: 'uuid' }) + member_ids!: string[]; +} + +export class CreateMessageDto { + @ApiProperty({ example: 'Привет, Боб!', maxLength: 4000 }) + text!: string; + + @ApiPropertyOptional({ + type: [String], + format: 'uuid', + maxItems: 10, + uniqueItems: true, + default: [], + }) + attachment_ids?: string[]; +} + +export class Chat { + @ApiProperty({ format: 'uuid' }) + id!: string; + @ApiProperty({ maxLength: 100 }) + title!: string; + @ApiProperty({ type: [String], format: 'uuid' }) + member_ids!: string[]; + @ApiProperty({ format: 'date-time' }) + created_at!: string; +} + +export class Message { + @ApiProperty({ format: 'uuid' }) + id!: string; + @ApiProperty({ format: 'uuid' }) + chat_id!: string; + @ApiProperty({ format: 'uuid' }) + sender_id!: string; + @ApiProperty({ maxLength: 4000 }) + text!: string; + @ApiProperty({ type: [String], format: 'uuid', maxItems: 10 }) + attachment_ids!: string[]; + @ApiProperty({ format: 'date-time' }) + created_at!: string; +} + +export class ChatPage { + @ApiProperty({ type: [Chat] }) + items!: Chat[]; + @ApiProperty({ type: String, nullable: true }) + next_cursor!: string | null; +} + +export class MessagePage { + @ApiProperty({ type: [Message] }) + items!: Message[]; + @ApiProperty({ type: String, nullable: true }) + next_cursor!: string | null; +} + +export interface Page { + items: T[]; + next_cursor: string | null; +} diff --git a/src/Chat/chat.service.ts b/src/Chat/chat.service.ts new file mode 100644 index 0000000..57d65e5 --- /dev/null +++ b/src/Chat/chat.service.ts @@ -0,0 +1,425 @@ +import { HttpStatus, Injectable } from '@nestjs/common'; +import { randomUUID } from 'node:crypto'; +import type { ChatAccess } from '../Auth/auth.service'; +import { + Prisma, + type Message as StoredMessage, +} from '../generated/prisma/client'; +import { PrismaService } from '../prisma/prisma.service'; +import { ApiException } from '../common/exceptions/api.exception'; +import { + invalidRequest, + objectBody, + pageLimit, + requiredText, + uuid, +} from '../common/validation'; +import type { Chat, Message, Page } from './chat.schema'; +import { CacheService, CACHE_TTL } from '../cache/cache.service'; + +interface Cursor { + scope: string; + created_at: string; + id: string; +} + +const chatInclude = { + members: { orderBy: { position: 'asc' as const } }, +} satisfies Prisma.ChatInclude; +type StoredChat = Prisma.ChatGetPayload<{ include: typeof chatInclude }>; + +@Injectable() +export class ChatService { + private readonly idempotencyTtlSeconds: number; + + constructor( + private readonly prisma: PrismaService, + private readonly cache: CacheService, + ) { + this.idempotencyTtlSeconds = Number( + process.env.IDEMPOTENCY_TTL_SECONDS ?? 86400, + ); + if ( + !Number.isSafeInteger(this.idempotencyTtlSeconds) || + this.idempotencyTtlSeconds < 86400 || + Number.isNaN( + new Date(Date.now() + this.idempotencyTtlSeconds * 1000).getTime(), + ) + ) { + throw new Error('IDEMPOTENCY_TTL_SECONDS must be at least 86400'); + } + } + + async create(value: unknown, userId: string): Promise { + const body = objectBody(value, ['title', 'member_ids']); + const title = requiredText(body.title, 'title', 100); + if ( + !Array.isArray(body.member_ids) || + body.member_ids.length < 1 || + body.member_ids.length > 100 + ) { + return invalidRequest('Некорректный member_ids'); + } + const memberIds = body.member_ids.map((id: unknown) => + uuid(id, 'member_ids'), + ); + if ( + new Set(memberIds).size !== memberIds.length || + !memberIds.includes(userId) + ) { + return invalidRequest( + 'Список участников содержит дубликат или не содержит вызывающего', + ); + } + try { + const chat = await this.prisma.$transaction(async (tx) => { + const count = await tx.user.count({ where: { id: { in: memberIds } } }); + if (count !== memberIds.length) + return invalidRequest('Неизвестный участник чата'); + const created = await tx.chat.create({ + data: { + title, + members: { + create: memberIds.map((userId, position) => ({ + userId, + position, + })), + }, + }, + include: chatInclude, + }); + await tx.$executeRaw(Prisma.sql` + WITH locked AS MATERIALIZED ( + SELECT id FROM users + WHERE id IN (${Prisma.join(memberIds.map((id) => Prisma.sql`${id}::uuid`))}) + ORDER BY id FOR UPDATE + ) + UPDATE users AS u SET chats_epoch = u.chats_epoch + 1 + FROM locked WHERE u.id = locked.id + `); + return created; + }); + return this.serializeChat(chat); + } catch (error) { + if ( + error instanceof Prisma.PrismaClientKnownRequestError && + error.code === 'P2003' + ) { + return invalidRequest('Неизвестный участник чата'); + } + throw error; + } + } + + async list( + userId: string, + limitValue: unknown, + cursorValue: unknown, + epoch: string, + ): Promise> { + const limit = pageLimit(limitValue); + const scope = `chats:${userId}`; + const cursor = this.decodeCursor(cursorValue, scope); + return this.cache.remember( + scope, + { limit, cursor }, + CACHE_TTL.page, + async () => { + const chats = await this.prisma.chat.findMany({ + where: { members: { some: { userId } }, ...this.after(cursor) }, + include: chatInclude, + orderBy: [{ createdAt: 'asc' }, { id: 'asc' }], + take: limit + 1, + }); + return this.page( + chats.map((chat) => this.serializeChat(chat)), + limit, + scope, + ); + }, + epoch, + ); + } + + async get(value: unknown, userId: string): Promise { + const { id } = await this.authorizeChat(value, userId); + return this.getMetadata(id); + } + + private async authorizeChat(value: unknown, userId: string) { + const id = uuid(value, 'chat_id'); + const [membership] = await this.prisma.$queryRaw< + { id: string; messagesEpoch: bigint }[] + >(Prisma.sql` + SELECT c.id, COALESCE((SELECT SUM(e.epoch) FROM "public"."chat_message_epochs" AS e WHERE e.chat_id = c.id), 0)::bigint AS "messagesEpoch" + FROM chat_members AS cm JOIN chats AS c ON c.id = cm.chat_id + WHERE cm.chat_id = ${id}::uuid AND cm.user_id = ${userId}::uuid + `); + if (!membership) { + throw new ApiException( + HttpStatus.NOT_FOUND, + 'not_found', + 'Объект не найден', + ); + } + return membership; + } + + private getMetadata(id: string): Promise { + return this.cache.remember( + `chat:${id}`, + 'metadata', + CACHE_TTL.entity, + async () => { + const chat = await this.prisma.chat.findUnique({ + where: { id }, + include: chatInclude, + }); + if (!chat) + throw new ApiException( + HttpStatus.NOT_FOUND, + 'not_found', + 'Объект не найден', + ); + return this.serializeChat(chat); + }, + ); + } + + async createMessage( + chatId: unknown, + value: unknown, + userId: string, + keyValue: unknown, + ): Promise { + const id = uuid(chatId, 'chat_id'); + if ( + typeof keyValue !== 'string' || + !/^[A-Za-z0-9._:-]{1,128}$/.test(keyValue) + ) { + return invalidRequest('Некорректный Idempotency-Key'); + } + const body = objectBody(value, ['text', 'attachment_ids']); + const ids = body.attachment_ids === undefined ? [] : body.attachment_ids; + if (!Array.isArray(ids) || ids.length > 10) + return invalidRequest('Некорректный attachment_ids'); + const attachmentIds = ids.map((value: unknown) => + uuid(value, 'attachment_ids'), + ); + if (new Set(attachmentIds).size !== attachmentIds.length) + return invalidRequest('Дубликат attachment_ids'); + if ( + typeof body.text !== 'string' || + Array.from(body.text).length > 4000 || + (body.text.trim().length === 0 && attachmentIds.length === 0) + ) { + return invalidRequest('Некорректный text'); + } + const text = body.text; + await this.authorizeChat(id, userId); + const count = await this.prisma.attachment.count({ + where: { id: { in: attachmentIds }, chatId: id }, + }); + if (count !== attachmentIds.length) + throw new ApiException(404, 'not_found', 'Вложение не найдено'); + const sqlAttachmentIds = `{${attachmentIds.join(',')}}`; + return this.prisma.$transaction(async (tx) => { + await tx.$executeRaw(Prisma.sql` + DELETE FROM message_idempotency + WHERE user_id = ${userId}::uuid AND chat_id = ${id}::uuid + AND "key" = ${keyValue} AND expires_at <= NOW() + `); + const claimed = await tx.$queryRaw<{ key: string }[]>(Prisma.sql` + INSERT INTO message_idempotency (user_id, chat_id, "key", expires_at) + VALUES ( + ${userId}::uuid, ${id}::uuid, ${keyValue}, + NOW() + (${this.idempotencyTtlSeconds} * INTERVAL '1 second') + ) + ON CONFLICT (user_id, chat_id, "key") DO NOTHING + RETURNING "key" + `); + if (claimed.length === 0) { + const [existing] = await tx.$queryRaw(Prisma.sql` + SELECT m.id, m.chat_id AS "chatId", m.sender_id AS "senderId", + m.text, m.attachment_ids AS "attachmentIds", m.created_at AS "createdAt" + FROM message_idempotency AS i + JOIN messages AS m ON m.id = i.message_id + WHERE i.user_id = ${userId}::uuid AND i.chat_id = ${id}::uuid + AND i."key" = ${keyValue} + `); + if (!existing) throw new Error('Idempotency record has no message'); + if ( + existing.text !== text || + JSON.stringify(existing.attachmentIds) !== + JSON.stringify(attachmentIds) + ) { + throw new ApiException( + HttpStatus.CONFLICT, + 'conflict', + 'Idempotency-Key уже использован с другим сообщением', + ); + } + return this.serializeMessage(existing); + } + + const messageId = randomUUID(); + const bucket = parseInt(messageId.slice(0, 2), 16) % 16; + const [message] = await tx.$queryRaw(Prisma.sql` + WITH updated AS ( + INSERT INTO "public"."chat_message_epochs" AS e (chat_id, bucket, epoch) + SELECT cm.chat_id, ${bucket}::smallint, 1 FROM chat_members AS cm + WHERE cm.chat_id = ${id}::uuid AND cm.user_id = ${userId}::uuid + ON CONFLICT (chat_id, bucket) DO UPDATE SET epoch = e.epoch + 1 + RETURNING chat_id + ) + INSERT INTO messages (id, chat_id, sender_id, text, attachment_ids) + SELECT ${messageId}::uuid, updated.chat_id, ${userId}::uuid, ${text}, ${sqlAttachmentIds}::uuid[] FROM updated + RETURNING id, chat_id AS "chatId", sender_id AS "senderId", text, attachment_ids AS "attachmentIds", created_at AS "createdAt" + `); + if (!message) + throw new ApiException( + HttpStatus.NOT_FOUND, + 'not_found', + 'Объект не найден', + ); + await tx.$executeRaw(Prisma.sql` + UPDATE message_idempotency SET message_id = ${message.id}::uuid + WHERE user_id = ${userId}::uuid AND chat_id = ${id}::uuid + AND "key" = ${keyValue} + `); + return this.serializeMessage(message); + }); + } + + async listMessages( + chatId: unknown, + userId: string, + limitValue: unknown, + cursorValue: unknown, + access?: ChatAccess, + ): Promise> { + const id = uuid(chatId, 'chat_id'); + const chat = + access?.chatId === id && access.userId === userId + ? { id, messagesEpoch: access.messagesEpoch } + : await this.authorizeChat(id, userId); + const limit = pageLimit(limitValue); + const scope = `messages:${chat.id}`; + const cursor = this.decodeCursor(cursorValue, scope); + return this.cache.remember( + scope, + { limit, cursor }, + CACHE_TTL.page, + async () => { + const messages = cursor + ? await this.prisma.$queryRaw(Prisma.sql` + SELECT id, chat_id AS "chatId", sender_id AS "senderId", + text, attachment_ids AS "attachmentIds", created_at AS "createdAt" + FROM "public"."messages" + WHERE chat_id = ${chat.id}::uuid + AND (created_at, id) > + (${new Date(cursor.created_at)}::timestamptz, ${cursor.id}::uuid) + ORDER BY created_at ASC, id ASC + LIMIT ${limit + 1} + `) + : await this.prisma.message.findMany({ + where: { chatId: chat.id }, + orderBy: [{ createdAt: 'asc' }, { id: 'asc' }], + take: limit + 1, + }); + return this.page( + messages.map((message) => this.serializeMessage(message)), + limit, + scope, + ); + }, + chat.messagesEpoch.toString(), + ); + } + + private after(cursor: Cursor | null) { + if (!cursor) return {}; + const createdAt = new Date(cursor.created_at); + return { + OR: [ + { createdAt: { gt: createdAt } }, + { createdAt, id: { gt: cursor.id } }, + ], + }; + } + + private serializeChat(chat: StoredChat): Chat { + return { + id: chat.id, + title: chat.title, + member_ids: chat.members.map((member) => member.userId), + created_at: chat.createdAt.toISOString(), + }; + } + + private serializeMessage(message: StoredMessage): Message { + return { + id: message.id, + chat_id: message.chatId, + sender_id: message.senderId, + text: message.text, + attachment_ids: message.attachmentIds, + created_at: message.createdAt.toISOString(), + }; + } + + private page( + items: T[], + limit: number, + scope: string, + ): Page { + const result = items.slice(0, limit); + const last = result.at(-1); + return { + items: result, + next_cursor: + items.length > limit && last + ? Buffer.from( + JSON.stringify({ + scope, + created_at: last.created_at, + id: last.id, + }), + ).toString('base64url') + : null, + }; + } + + private decodeCursor(value: unknown, scope: string): Cursor | null { + if (value === undefined) return null; + if (typeof value !== 'string' || !/^[A-Za-z0-9_-]+$/.test(value)) + return invalidRequest('Некорректный cursor'); + try { + const cursor: unknown = JSON.parse( + Buffer.from(value, 'base64url').toString('utf8'), + ); + if ( + typeof cursor !== 'object' || + cursor === null || + Array.isArray(cursor) + ) + return invalidRequest('Некорректный cursor'); + const data = cursor as Record; + if ( + data.scope !== scope || + typeof data.created_at !== 'string' || + Number.isNaN(Date.parse(data.created_at)) || + typeof data.id !== 'string' + ) { + return invalidRequest('Некорректный cursor'); + } + return { + scope, + created_at: data.created_at, + id: uuid(data.id, 'cursor'), + }; + } catch { + return invalidRequest('Некорректный cursor'); + } + } +} diff --git a/src/Storage/storage.module.ts b/src/Storage/storage.module.ts new file mode 100644 index 0000000..58713ac --- /dev/null +++ b/src/Storage/storage.module.ts @@ -0,0 +1,5 @@ +import { Module } from '@nestjs/common'; +import { StorageService } from './storage.service'; + +@Module({ providers: [StorageService], exports: [StorageService] }) +export class StorageModule {} diff --git a/src/Storage/storage.service.spec.ts b/src/Storage/storage.service.spec.ts new file mode 100644 index 0000000..2281a29 --- /dev/null +++ b/src/Storage/storage.service.spec.ts @@ -0,0 +1,112 @@ +import { S3Client } from '@aws-sdk/client-s3'; +import { createHash } from 'node:crypto'; +import { mkdtemp, readFile, rm, rmdir } from 'node:fs/promises'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { Readable } from 'node:stream'; +import { StorageService } from './storage.service'; + +describe('direct upload storage constraints', () => { + let storage: StorageService; + let directory: string; + let saved: Record; + const names = [ + 'S3_ACCESS_KEY_ID', + 'S3_SECRET_ACCESS_KEY', + 'S3_ACCESS_KEY_ID_FILE', + 'S3_SECRET_ACCESS_KEY_FILE', + 'S3_PUBLIC_ENDPOINT', + ]; + const data = Buffer.from('streamed fixture'); + const sha256 = createHash('sha256').update(data).digest('hex'); + beforeEach(async () => { + saved = Object.fromEntries(names.map((name) => [name, process.env[name]])); + for (const name of names) delete process.env[name]; + process.env.S3_ACCESS_KEY_ID = 'UNITONLY'; + process.env.S3_SECRET_ACCESS_KEY = 'unit-only-synthetic-secret'; + process.env.S3_PUBLIC_ENDPOINT = 'http://127.0.0.1:9000'; + storage = new StorageService(); + directory = await mkdtemp(join(tmpdir(), 'storage-unit-')); + }); + afterEach(async () => { + jest.restoreAllMocks(); + storage.onModuleDestroy(); + await rm(join(directory, 'image'), { force: true }); + await rmdir(directory); + for (const name of names) { + if (saved[name] === undefined) delete process.env[name]; + else process.env[name] = saved[name]; + } + }); + it('binds size, MIME, checksum and create-only semantics into the signature', async () => { + const grant = await storage.presignPut( + 'staging/test/object', + data.length, + 'image/png', + sha256, + 60, + new Date(), + ); + const url = new URL(grant.url); + const signed = url.searchParams.get('X-Amz-SignedHeaders')?.split(';'); + expect(signed).toEqual( + expect.arrayContaining([ + 'content-length', + 'content-type', + 'if-none-match', + 'x-amz-checksum-sha256', + ]), + ); + expect(grant.headers['If-None-Match']).toBe('*'); + expect(url.origin).toBe('http://127.0.0.1:9000'); + expect(url.searchParams.get('X-Amz-Expires')).toBe('60'); + }); + it('hashes a bounded stream to disk, returning its source ETag', async () => { + jest + .spyOn(S3Client.prototype, 'send') + .mockResolvedValue({ + Body: Readable.from([data]), + ContentLength: data.length, + ContentType: 'image/png', + ETag: '"etag"', + } as never); + await expect( + storage.inspectToFile('staging/test/object', join(directory, 'image'), { + sizeBytes: data.length, + sha256, + contentType: 'image/png', + }), + ).resolves.toBe('"etag"'); + expect(await readFile(join(directory, 'image'))).toEqual(data); + }); + it('rejects a real checksum mismatch and a stream larger than its declared length', async () => { + const send = jest.spyOn(S3Client.prototype, 'send'); + send.mockResolvedValueOnce({ + Body: Readable.from([data]), + ContentLength: data.length, + ContentType: 'image/png', + ETag: '"etag"', + } as never); + await expect( + storage.inspectToFile('staging/test/object', join(directory, 'image'), { + sizeBytes: data.length, + sha256: '0'.repeat(64), + contentType: 'image/png', + }), + ).rejects.toMatchObject({ status: 400 }); + await rm(join(directory, 'image')); + send.mockResolvedValueOnce({ + Body: Readable.from([data, data]), + ContentLength: data.length, + ContentType: 'image/png', + ETag: '"etag"', + } as never); + await expect( + storage.inspectToFile('staging/test/object', join(directory, 'image'), { + sizeBytes: data.length, + sha256, + contentType: 'image/png', + }), + ).rejects.toMatchObject({ status: 413 }); + }); +}); diff --git a/src/Storage/storage.service.ts b/src/Storage/storage.service.ts new file mode 100644 index 0000000..68110c3 --- /dev/null +++ b/src/Storage/storage.service.ts @@ -0,0 +1,343 @@ +import { Injectable, type OnModuleDestroy } from '@nestjs/common'; +import { createWriteStream, readFileSync } from 'node:fs'; +import { createHash } from 'node:crypto'; +import { Readable, Transform } from 'node:stream'; +import { pipeline } from 'node:stream/promises'; +import { getSignedUrl } from '@aws-sdk/s3-request-presigner'; +import { + S3Client, + GetBucketLocationCommand, + PutObjectCommand, + GetObjectCommand, + DeleteObjectCommand, + HeadObjectCommand, + ListObjectsV2Command, + CopyObjectCommand, +} from '@aws-sdk/client-s3'; +import { ApiException } from '../common/exceptions/api.exception'; +import { profileStage } from '../common/http/upload-memory-profile'; + +export interface StoredObject { + key: string; + lastModified?: Date; +} + +function credential(name: string): string { + const file = process.env[`${name}_FILE`]; + const value = file ? readFileSync(file, 'utf8').trim() : process.env[name]; + if (!value) throw new Error(`${name} or ${name}_FILE is required`); + return value; +} + +@Injectable() +export class StorageService implements OnModuleDestroy { + private readonly bucket = process.env.S3_BUCKET ?? 'messenger-attachments'; + private readonly client: S3Client; + private readonly signer: S3Client; + + constructor() { + this.client = new S3Client({ + endpoint: process.env.S3_ENDPOINT ?? 'http://s3:9000', + region: process.env.S3_REGION ?? 'us-east-1', + forcePathStyle: true, + maxAttempts: 1, + credentials: { + accessKeyId: credential('S3_ACCESS_KEY_ID'), + secretAccessKey: credential('S3_SECRET_ACCESS_KEY'), + }, + requestHandler: { connectionTimeout: 2000, socketTimeout: 5000 }, + }); + const endpoint = new URL( + process.env.S3_PUBLIC_ENDPOINT ?? 'http://127.0.0.1:9000', + ); + if ( + !['http:', 'https:'].includes(endpoint.protocol) || + endpoint.username || + endpoint.password || + endpoint.search || + endpoint.hash || + endpoint.pathname !== '/' + ) { + throw new Error( + 'S3_PUBLIC_ENDPOINT must be an HTTP(S) origin without credentials or a path', + ); + } + this.signer = new S3Client({ + endpoint: endpoint.origin, + region: process.env.S3_REGION ?? 'us-east-1', + forcePathStyle: true, + requestChecksumCalculation: 'WHEN_REQUIRED', + credentials: { + accessKeyId: credential('S3_ACCESS_KEY_ID'), + secretAccessKey: credential('S3_SECRET_ACCESS_KEY'), + }, + }); + } + + async presignPut( + key: string, + size: number, + contentType: string, + sha256: string, + seconds: number, + now: Date, + ) { + const checksum = Buffer.from(sha256, 'hex').toString('base64'); + const url = await getSignedUrl( + this.signer, + new PutObjectCommand({ + Bucket: this.bucket, + Key: key, + ContentLength: size, + ContentType: contentType, + ChecksumSHA256: checksum, + IfNoneMatch: '*', + }), + { + expiresIn: seconds, + signingDate: now, + signableHeaders: new Set([ + 'content-length', + 'content-type', + 'if-none-match', + ]), + unhoistableHeaders: new Set(['x-amz-checksum-sha256']), + }, + ); + const signed = + new URL(url).searchParams.get('X-Amz-SignedHeaders')?.split(';') ?? []; + if ( + ![ + 'content-length', + 'content-type', + 'if-none-match', + 'x-amz-checksum-sha256', + ].every((name) => signed.includes(name)) + ) { + throw new Error('Presigner omitted a required upload constraint'); + } + return { + url, + headers: { + 'Content-Type': contentType, + 'Content-Length': String(size), + 'If-None-Match': '*', + 'x-amz-checksum-sha256': checksum, + }, + }; + } + + async inspectToFile( + key: string, + filename: string, + expected: { sizeBytes: number; contentType: string; sha256: string }, + ) { + return this.run(async () => { + let object; + try { + object = await this.client.send( + new GetObjectCommand({ Bucket: this.bucket, Key: key }), + { abortSignal: AbortSignal.timeout(15000) }, + ); + } catch (error) { + if ( + typeof error === 'object' && + error !== null && + '$metadata' in error && + (error.$metadata as { httpStatusCode?: number } | undefined) + ?.httpStatusCode === 404 + ) { + throw new ApiException(409, 'conflict', 'Файл ещё не загружен'); + } + throw error; + } + if (!(object.Body instanceof Readable)) + throw new Error('Missing S3 body'); + const body = object.Body; + try { + if (object.ContentLength !== expected.sizeBytes) + throw new ApiException( + (object.ContentLength ?? 0) > 10485760 ? 413 : 400, + (object.ContentLength ?? 0) > 10485760 + ? 'payload_too_large' + : 'invalid_request', + 'Размер файла не совпадает с разрешением', + ); + if (object.ContentType !== expected.contentType) + throw new ApiException( + 415, + 'unsupported_media_type', + 'Content-Type не совпадает с разрешением', + ); + if (!object.ETag) throw new Error('S3 did not provide an ETag'); + const hash = createHash('sha256'); + let received = 0; + const bounded = new Transform({ + transform(chunk: Buffer, _encoding, done) { + received += chunk.length; + if (received > expected.sizeBytes) { + done( + new ApiException( + 413, + 'payload_too_large', + 'Превышен разрешённый размер', + ), + ); + return; + } + hash.update(chunk); + done(null, chunk); + }, + }); + profileStage('s3_stream_sha256_to_file'); + await pipeline( + body, + bounded, + createWriteStream(filename, { flags: 'wx', mode: 0o600 }), + { signal: AbortSignal.timeout(15000) }, + ); + profileStage('sha256_finalize'); + if ( + received !== expected.sizeBytes || + hash.digest('hex') !== expected.sha256 + ) + throw new ApiException( + 400, + 'invalid_request', + 'Checksum или размер файла не совпадает', + ); + return object.ETag; + } finally { + body.destroy(); + } + }); + } + + async publishCopy( + source: string, + destination: string, + etag: string, + ): Promise { + await this.run(() => + this.client.send( + new CopyObjectCommand({ + Bucket: this.bucket, + Key: destination, + CopySource: `${this.bucket}/${source.split('/').map(encodeURIComponent).join('/')}`, + CopySourceIfMatch: etag, + MetadataDirective: 'COPY', + }), + { abortSignal: AbortSignal.timeout(5000) }, + ), + ); + } + + async ready(): Promise { + await this.run(() => + this.client.send(new GetBucketLocationCommand({ Bucket: this.bucket }), { + abortSignal: AbortSignal.timeout(5000), + }), + ); + } + + async put(key: string, bytes: Buffer, contentType: string): Promise { + await this.run(() => + this.client.send( + new PutObjectCommand({ + Bucket: this.bucket, + Key: key, + Body: bytes, + ContentLength: bytes.length, + ContentType: contentType, + }), + { abortSignal: AbortSignal.timeout(5000) }, + ), + ); + } + + async get(key: string): Promise { + return this.run(async () => { + const result = await this.client.send( + new GetObjectCommand({ Bucket: this.bucket, Key: key }), + { abortSignal: AbortSignal.timeout(5000) }, + ); + if (!(result.Body instanceof Readable)) + throw new Error('Missing S3 body'); + return result.Body; + }); + } + + async remove(key: string): Promise { + await this.run(() => + this.client.send( + new DeleteObjectCommand({ Bucket: this.bucket, Key: key }), + { abortSignal: AbortSignal.timeout(5000) }, + ), + ); + } + + async *objects(prefix: string): AsyncGenerator { + let token: string | undefined; + do { + const page = await this.run(() => + this.client.send( + new ListObjectsV2Command({ + Bucket: this.bucket, + Prefix: prefix, + MaxKeys: 200, + ContinuationToken: token, + }), + { abortSignal: AbortSignal.timeout(5000) }, + ), + ); + for (const object of page.Contents ?? []) { + if (object.Key) + yield { key: object.Key, lastModified: object.LastModified }; + } + if (!page.IsTruncated) break; + if (!page.NextContinuationToken || page.NextContinuationToken === token) { + throw new ApiException(503, 'unavailable', 'Некорректная страница S3'); + } + token = page.NextContinuationToken; + } while (token); + } + + async stat(key: string): Promise { + return this.run(async () => { + try { + const object = await this.client.send( + new HeadObjectCommand({ Bucket: this.bucket, Key: key }), + { abortSignal: AbortSignal.timeout(5000) }, + ); + return { key, lastModified: object.LastModified }; + } catch (error) { + if ( + typeof error === 'object' && + error !== null && + '$metadata' in error + ) { + const metadata = error.$metadata as + { httpStatusCode?: number } | undefined; + if (metadata?.httpStatusCode === 404) return null; + } + throw error; + } + }); + } + + onModuleDestroy(): void { + this.client.destroy(); + this.signer.destroy(); + } + + private async run(operation: () => Promise): Promise { + try { + return await operation(); + } catch (cause) { + if (cause instanceof ApiException) throw cause; + throw new ApiException(503, 'unavailable', 'Хранилище недоступно', { + cause, + }); + } + } +} diff --git a/src/User/user.controller.ts b/src/User/user.controller.ts new file mode 100644 index 0000000..1a34887 --- /dev/null +++ b/src/User/user.controller.ts @@ -0,0 +1,45 @@ +import { + Body, + Controller, + Get, + HttpCode, + HttpStatus, + Post, + Req, + UseGuards, +} from '@nestjs/common'; +import { + ApiBody, + ApiBearerAuth, + ApiCreatedResponse, + ApiOkResponse, + ApiOperation, + ApiTags, +} from '@nestjs/swagger'; +import { UserGuard, type AuthenticatedRequest } from './user.guard'; +import { CreateUserDto, User } from './user.schema'; +import { UserService } from './user.service'; + +@ApiTags('users') +@Controller('api/v1/users') +export class UserController { + constructor(private readonly users: UserService) {} + + @Post() + @HttpCode(HttpStatus.CREATED) + @ApiBody({ type: CreateUserDto }) + @ApiOperation({ operationId: 'registerUser' }) + @ApiCreatedResponse({ type: User }) + create(@Body() body: unknown) { + return this.users.create(body); + } + + @Get('me') + @UseGuards(UserGuard) + @ApiBearerAuth('bearerAuth') + @ApiOperation({ operationId: 'currentUser' }) + @ApiOkResponse({ type: User }) + me(@Req() request: AuthenticatedRequest) { + return request.currentUser; + } +} diff --git a/src/User/user.guard.ts b/src/User/user.guard.ts new file mode 100644 index 0000000..108fca4 --- /dev/null +++ b/src/User/user.guard.ts @@ -0,0 +1,34 @@ +import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common'; +import type { FastifyRequest } from 'fastify'; +import { AuthService, type ChatAccess } from '../Auth/auth.service'; +import type { User } from './user.schema'; + +export type AuthenticatedRequest = FastifyRequest & { + currentUser: User; + currentSessionId: string; + currentChatsEpoch: string; + currentChatAccess?: ChatAccess; +}; + +@Injectable() +export class UserGuard implements CanActivate { + constructor(private readonly auth: AuthService) {} + + async canActivate(context: ExecutionContext): Promise { + const request = context.switchToHttp().getRequest(); + const chatId = + request.method === 'GET' && + request.routeOptions.url === '/api/v1/chats/:chat_id/messages' + ? (request.params as { chat_id: string }).chat_id + : undefined; + const session = await this.auth.authenticate( + request.headers.authorization, + chatId, + ); + request.currentUser = session.user; + request.currentSessionId = session.sessionId; + request.currentChatsEpoch = session.chatsEpoch; + request.currentChatAccess = session.chatAccess; + return true; + } +} diff --git a/src/User/user.module.ts b/src/User/user.module.ts new file mode 100644 index 0000000..f90c564 --- /dev/null +++ b/src/User/user.module.ts @@ -0,0 +1,14 @@ +import { Module } from '@nestjs/common'; +import { UserController } from './user.controller'; +import { UserGuard } from './user.guard'; +import { UserService } from './user.service'; +import { AuthController } from '../Auth/auth.controller'; +import { AuthService } from '../Auth/auth.service'; +import { PasswordService } from '../Auth/password.service'; + +@Module({ + controllers: [UserController, AuthController], + providers: [UserService, UserGuard, AuthService, PasswordService], + exports: [UserService, UserGuard, AuthService], +}) +export class UserModule {} diff --git a/src/User/user.schema.ts b/src/User/user.schema.ts new file mode 100644 index 0000000..7974ebb --- /dev/null +++ b/src/User/user.schema.ts @@ -0,0 +1,28 @@ +import { ApiProperty } from '@nestjs/swagger'; + +export class CreateUserDto { + @ApiProperty({ example: 'alice', pattern: '^[a-z0-9_]{3,32}$' }) + username!: string; + + @ApiProperty({ example: 'Алиса', maxLength: 100 }) + display_name!: string; + + @ApiProperty({ + writeOnly: true, + minLength: 12, + maxLength: 128, + example: 'Example-only-not-a-real-secret-123', + }) + password!: string; +} + +export class User { + @ApiProperty({ format: 'uuid' }) + id!: string; + @ApiProperty({ pattern: '^[a-z0-9_]{3,32}$' }) + username!: string; + @ApiProperty({ minLength: 1, maxLength: 100 }) + display_name!: string; + @ApiProperty({ format: 'date-time' }) + created_at!: string; +} diff --git a/src/User/user.service.ts b/src/User/user.service.ts new file mode 100644 index 0000000..bec2bb8 --- /dev/null +++ b/src/User/user.service.ts @@ -0,0 +1,77 @@ +import { HttpStatus, Injectable } from '@nestjs/common'; +import { Prisma, type User as StoredUser } from '../generated/prisma/client'; +import { PrismaService } from '../prisma/prisma.service'; +import { ApiException } from '../common/exceptions/api.exception'; +import { objectBody, requiredText } from '../common/validation'; +import { + PasswordService, + registrationPassword, +} from '../Auth/password.service'; +import type { User } from './user.schema'; +import { CacheService, CACHE_TTL } from '../cache/cache.service'; + +@Injectable() +export class UserService { + constructor( + private readonly prisma: PrismaService, + private readonly passwords: PasswordService, + private readonly cache: CacheService, + ) {} + + async create(value: unknown): Promise { + const body = objectBody(value, ['username', 'display_name', 'password']); + const username = body.username; + if (typeof username !== 'string' || !/^[a-z0-9_]{3,32}$/.test(username)) { + throw new ApiException( + HttpStatus.BAD_REQUEST, + 'invalid_request', + 'Некорректный username', + ); + } + const displayName = requiredText(body.display_name, 'display_name', 100); + const password = registrationPassword(body.password); + const passwordHash = await this.passwords.hash(password); + try { + return this.serialize( + await this.prisma.user.create({ + data: { username, displayName, passwordHash }, + }), + ); + } catch (error) { + if ( + error instanceof Prisma.PrismaClientKnownRequestError && + error.code === 'P2002' + ) { + throw new ApiException( + HttpStatus.CONFLICT, + 'conflict', + 'Username уже занят', + ); + } + throw error; + } + } + + async get(id: string): Promise { + return this.cache.remember( + `user:${id}`, + 'profile', + CACHE_TTL.entity, + async () => { + const user = await this.prisma.user.findUnique({ where: { id } }); + return user ? this.serialize(user) : undefined; + }, + ); + } + + serialize( + user: Pick, + ): User { + return { + id: user.id, + username: user.username, + display_name: user.displayName, + created_at: user.createdAt.toISOString(), + }; + } +} diff --git a/src/app.controller.spec.ts b/src/app.controller.spec.ts new file mode 100644 index 0000000..f3be1bd --- /dev/null +++ b/src/app.controller.spec.ts @@ -0,0 +1,43 @@ +import { Test, TestingModule } from '@nestjs/testing'; +import { AppController } from './app.controller'; +import { AppService } from './app.service'; +import { PrismaService } from './prisma/prisma.service'; +import { StorageService } from './Storage/storage.service'; + +describe('AppController', () => { + let appController: AppController; + const queryRaw = jest.fn(); + + beforeEach(async () => { + queryRaw.mockReset(); + const app: TestingModule = await Test.createTestingModule({ + controllers: [AppController], + providers: [ + AppService, + { provide: PrismaService, useValue: { $queryRaw: queryRaw } }, + { + provide: StorageService, + useValue: { ready: jest.fn().mockResolvedValue(undefined) }, + }, + ], + }).compile(); + + appController = app.get(AppController); + }); + + describe('root', () => { + it('should return "Hello World!"', () => { + expect(appController.getHello()).toBe('Hello World!'); + }); + }); + + it('reports ready when PostgreSQL is reachable', async () => { + queryRaw.mockResolvedValue([{ '?column?': 1 }]); + await expect(appController.ready()).resolves.toEqual({ status: 'ok' }); + }); + + it('returns 503 when PostgreSQL is unavailable', async () => { + queryRaw.mockRejectedValue(new Error('connection refused')); + await expect(appController.ready()).rejects.toMatchObject({ status: 503 }); + }); +}); diff --git a/src/app.controller.ts b/src/app.controller.ts new file mode 100644 index 0000000..ecbb684 --- /dev/null +++ b/src/app.controller.ts @@ -0,0 +1,55 @@ +import { Controller, Get, HttpStatus } from '@nestjs/common'; +import { HttpAdapterHost } from '@nestjs/core'; +import { AppService } from './app.service'; +import { PrismaService } from './prisma/prisma.service'; +import { ApiException } from './common/exceptions/api.exception'; +import { DrainingFastifyAdapter } from './common/http/fastify-adapter'; +import { StorageService } from './Storage/storage.service'; + +@Controller() +export class AppController { + constructor( + private readonly appService: AppService, + private readonly prisma: PrismaService, + private readonly adapterHost: HttpAdapterHost, + private readonly storage: StorageService, + ) {} + + @Get() + getHello(): string { + return this.appService.getHello(); + } + + @Get('health/live') + live() { + return { status: 'ok' }; + } + + @Get('health/ready') + async ready() { + this.assertNotDraining(); + try { + await this.prisma.$queryRaw`SELECT 1`; + } catch { + throw new ApiException( + HttpStatus.SERVICE_UNAVAILABLE, + 'unavailable', + 'База данных недоступна', + ); + } + await this.storage.ready(); + this.assertNotDraining(); + return { status: 'ok' }; + } + + private assertNotDraining(): void { + const adapter = this.adapterHost.httpAdapter; + if (adapter instanceof DrainingFastifyAdapter && adapter.isDraining) { + throw new ApiException( + HttpStatus.SERVICE_UNAVAILABLE, + 'unavailable', + 'API завершает работу', + ); + } + } +} diff --git a/src/app.module.ts b/src/app.module.ts new file mode 100644 index 0000000..9bdfd12 --- /dev/null +++ b/src/app.module.ts @@ -0,0 +1,62 @@ +import { Module } from '@nestjs/common'; +import { APP_FILTER } from '@nestjs/core'; +import { LoggerModule } from 'nestjs-pino'; +import { AppController } from './app.controller'; +import { AppService } from './app.service'; +import { AllExceptionsFilter } from './common/filters/all-exceptions.filter'; +import { UserModule } from './User/user.module'; +import { ChatModule } from './Chat/chat.module'; +import { PrismaModule } from './prisma/prisma.module'; +import { CacheModule } from './cache/cache.module'; +import { AttachmentModule } from './Attachment/attachment.module'; +import { StorageModule } from './Storage/storage.module'; + +@Module({ + imports: [ + PrismaModule, + CacheModule, + UserModule, + ChatModule, + AttachmentModule, + StorageModule, + LoggerModule.forRoot({ + pinoHttp: { + level: process.env.NODE_ENV === 'production' ? 'info' : 'debug', + + transport: + process.env.NODE_ENV !== 'production' + ? { + target: 'pino-pretty', + options: { + colorize: true, + singleLine: true, + translateTime: 'SYS:standard', + }, + } + : undefined, + + redact: { + paths: [ + 'req.headers.authorization', + 'req.headers.cookie', + 'res.headers.set-cookie', + ], + censor: '[REDACTED]', + }, + + autoLogging: { + ignore: (request) => request.url === '/health', + }, + }, + }), + ], + controllers: [AppController], + providers: [ + AppService, + { + provide: APP_FILTER, + useClass: AllExceptionsFilter, + }, + ], +}) +export class AppModule {} diff --git a/src/app.service.ts b/src/app.service.ts new file mode 100644 index 0000000..927d7cc --- /dev/null +++ b/src/app.service.ts @@ -0,0 +1,8 @@ +import { Injectable } from '@nestjs/common'; + +@Injectable() +export class AppService { + getHello(): string { + return 'Hello World!'; + } +} diff --git a/src/cache/cache.module.ts b/src/cache/cache.module.ts new file mode 100644 index 0000000..2d194dd --- /dev/null +++ b/src/cache/cache.module.ts @@ -0,0 +1,6 @@ +import { Global, Module } from '@nestjs/common'; +import { CacheService } from './cache.service'; + +@Global() +@Module({ providers: [CacheService], exports: [CacheService] }) +export class CacheModule {} diff --git a/src/cache/cache.service.ts b/src/cache/cache.service.ts new file mode 100644 index 0000000..816debf --- /dev/null +++ b/src/cache/cache.service.ts @@ -0,0 +1,149 @@ +import { + Injectable, + Logger, + type OnModuleDestroy, + type OnModuleInit, +} from '@nestjs/common'; +import { createHash, randomUUID } from 'node:crypto'; +import Redis from 'ioredis'; + +export const CACHE_TTL = { entity: 300, page: 30 } as const; +const generationTtl = 600; +const storeIfCurrent = ` +if redis.call('GET', KEYS[1]) == ARGV[1] then + return redis.call('SET', KEYS[2], ARGV[2], 'EX', ARGV[3]) +end +return false`; + +@Injectable() +export class CacheService implements OnModuleInit, OnModuleDestroy { + private readonly logger = new Logger(CacheService.name); + private readonly redis?: Redis; + private readonly prefix = process.env.CACHE_PREFIX ?? 'messenger:cache:v1'; + private warned = false; + + constructor() { + if (process.env.CACHE_URL) { + this.redis = new Redis(process.env.CACHE_URL, { + lazyConnect: true, + connectTimeout: 1000, + commandTimeout: 300, + maxRetriesPerRequest: 0, + enableOfflineQueue: false, + autoResendUnfulfilledCommands: false, + retryStrategy: () => 1000, + }); + this.redis.on('error', () => this.unavailable()); + this.redis.on('ready', () => { + this.warned = false; + }); + } + } + + async onModuleInit(): Promise { + try { + await this.redis?.connect(); + } catch { + this.unavailable(); + } + } + + onModuleDestroy(): void { + this.redis?.disconnect(); + } + + async remember( + namespace: string, + parameters: unknown, + ttl: number, + load: () => Promise, + epoch?: string, + ): Promise { + if (!this.redis || this.redis.status !== 'ready') return load(); + if (epoch !== undefined) { + const digest = createHash('sha256') + .update(JSON.stringify(parameters)) + .digest('hex'); + const key = `${this.prefix}:${namespace}:epoch:${epoch}:${digest}`; + try { + const value = await this.redis.get(key); + if (value !== null) return JSON.parse(value) as T; + } catch { + this.unavailable(); + } + const result = await load(); + const serialized = JSON.stringify(result); + if (serialized !== undefined && this.redis.status === 'ready') { + try { + await this.redis.set(key, serialized, 'EX', ttl); + } catch { + this.unavailable(); + } + } + return result; + } + const versionKey = `${this.prefix}:${namespace}:generation`; + let version: string | null = null; + let dataKey = ''; + try { + await this.redis.set(versionKey, randomUUID(), 'EX', generationTtl, 'NX'); + version = await this.redis.get(versionKey); + if (version) { + const digest = createHash('sha256') + .update(JSON.stringify(parameters)) + .digest('hex'); + dataKey = `${this.prefix}:${namespace}:${version}:${digest}`; + const value = await this.redis.get(dataKey); + if (value !== null) return JSON.parse(value) as T; + } + } catch { + this.unavailable(); + } + + const result = await load(); + const serialized = JSON.stringify(result); + if (version && serialized !== undefined && this.redis.status === 'ready') { + try { + await this.redis.eval( + storeIfCurrent, + 2, + versionKey, + dataKey, + version, + serialized, + ttl, + ); + } catch { + this.unavailable(); + } + } + return result; + } + + async invalidate(...namespaces: string[]): Promise { + if (!this.redis || this.redis.status !== 'ready' || namespaces.length === 0) + return; + try { + const transaction = this.redis.multi(); + for (const namespace of new Set(namespaces)) { + transaction.set( + `${this.prefix}:${namespace}:generation`, + randomUUID(), + 'EX', + generationTtl, + ); + } + const results = await transaction.exec(); + if (results?.some(([error]) => error !== null)) this.unavailable(); + } catch { + this.unavailable(); + } + } + + private unavailable(): void { + if (!this.warned) { + this.logger.warn('Redis cache unavailable'); + this.warned = true; + } + } +} diff --git a/src/common/api-document.spec.ts b/src/common/api-document.spec.ts new file mode 100644 index 0000000..d2cde2c --- /dev/null +++ b/src/common/api-document.spec.ts @@ -0,0 +1,58 @@ +import { readFileSync } from 'node:fs'; +import { join } from 'node:path'; +import type { OpenAPIObject } from '@nestjs/swagger'; +import { completeApiDocument } from './api-document'; + +const contract = JSON.parse( + readFileSync(join(__dirname, '../../contracts/openapi.json'), 'utf8'), +) as OpenAPIObject; + +describe('published OpenAPI document', () => { + const generated: OpenAPIObject = { + openapi: '3.0.0', + info: { title: 'Messenger API', version: '1.4.0' }, + paths: { + '/': { get: { responses: { 200: { description: 'Root endpoint' } } } }, + }, + components: { schemas: {} }, + }; + for (const [path, item] of Object.entries(contract.paths)) { + generated.paths[path] = {}; + for (const method of ['get', 'post', 'delete'] as const) { + if (item[method]) generated.paths[path][method] = { responses: {} }; + } + } + const document = completeApiDocument(generated, contract); + + it('documents every contract operation, including all response headers and binary schemas', () => { + expect(document.openapi).toBe(contract.openapi); + for (const [path, item] of Object.entries(contract.paths)) { + for (const method of ['get', 'post', 'delete'] as const) { + if (!item[method]) continue; + expect(document.paths[path][method]).toEqual({ + ...item[method], + security: item[method].security ?? contract.security ?? [], + }); + } + } + expect(document.components?.schemas).toMatchObject( + contract.components!.schemas!, + ); + }); + + it('preserves extra endpoints and leaves the generated document unchanged', () => { + expect(document.paths['/']).toEqual(generated.paths['/']); + expect(generated.openapi).toBe('3.0.0'); + expect( + generated.paths['/api/v1/attachments/{attachment_id}'].get?.responses, + ).toEqual({}); + }); + + it('does not advertise contract endpoints missing from the application', () => { + const missing = structuredClone(generated); + delete missing.paths['/api/v1/attachments/{attachment_id}']; + expect(() => completeApiDocument(missing, contract)).toThrow( + 'Contract endpoint is not implemented', + ); + }); +}); diff --git a/src/common/api-document.ts b/src/common/api-document.ts new file mode 100644 index 0000000..efb34bb --- /dev/null +++ b/src/common/api-document.ts @@ -0,0 +1,55 @@ +import type { OpenAPIObject } from '@nestjs/swagger'; + +/** Keep the published API documentation aligned with the lab's normative contract. */ +export function completeApiDocument( + generated: OpenAPIObject, + contract: OpenAPIObject, +): OpenAPIObject { + const paths = { ...generated.paths }; + const methods = [ + 'get', + 'put', + 'post', + 'delete', + 'options', + 'head', + 'patch', + 'trace', + ] as const; + for (const [path, item] of Object.entries(contract.paths)) { + paths[path] = { ...item }; + for (const method of methods) { + const operation = item[method]; + if (operation) { + if (!generated.paths[path]?.[method]) { + throw new Error( + `Contract endpoint is not implemented: ${method.toUpperCase()} ${path}`, + ); + } + paths[path][method] = { + ...generated.paths[path]?.[method], + ...operation, + security: operation.security ?? contract.security ?? [], + }; + } + } + } + return { + ...generated, + openapi: contract.openapi, + info: { ...generated.info, version: contract.info.version }, + paths, + components: { + ...generated.components, + ...contract.components, + schemas: { + ...generated.components?.schemas, + ...contract.components?.schemas, + }, + securitySchemes: { + ...generated.components?.securitySchemes, + ...contract.components?.securitySchemes, + }, + }, + }; +} diff --git a/src/common/exceptions/api.exception.ts b/src/common/exceptions/api.exception.ts new file mode 100644 index 0000000..067e5ce --- /dev/null +++ b/src/common/exceptions/api.exception.ts @@ -0,0 +1,16 @@ +import { + HttpException, + HttpExceptionOptions, + HttpStatus, +} from '@nestjs/common'; + +export class ApiException extends HttpException { + constructor( + status: HttpStatus, + code: string, + message: string, + options?: HttpExceptionOptions, + ) { + super({ code, message }, status, options); + } +} diff --git a/src/common/filters/all-exceptions.filter.ts b/src/common/filters/all-exceptions.filter.ts new file mode 100644 index 0000000..63626ac --- /dev/null +++ b/src/common/filters/all-exceptions.filter.ts @@ -0,0 +1,182 @@ +import { + ArgumentsHost, + Catch, + ExceptionFilter, + HttpException, + HttpStatus, +} from '@nestjs/common'; +import type { FastifyReply, FastifyRequest } from 'fastify'; +import { Prisma } from '../../generated/prisma/client'; +import { ApiException } from '../exceptions/api.exception'; +import { AuthException } from '../../Auth/auth.exception'; + +interface ExceptionPayload { + code?: unknown; +} + +const defaultCodes: Partial> = { + [HttpStatus.BAD_REQUEST]: 'invalid_request', + [HttpStatus.UNAUTHORIZED]: 'unauthorized', + [HttpStatus.FORBIDDEN]: 'forbidden', + [HttpStatus.NOT_FOUND]: 'not_found', + [HttpStatus.CONFLICT]: 'conflict', + [HttpStatus.PAYLOAD_TOO_LARGE]: 'payload_too_large', + [HttpStatus.UNSUPPORTED_MEDIA_TYPE]: 'unsupported_media_type', + [HttpStatus.TOO_MANY_REQUESTS]: 'rate_limited', + [HttpStatus.SERVICE_UNAVAILABLE]: 'unavailable', +}; + +const defaultMessages: Partial> = { + [HttpStatus.BAD_REQUEST]: 'Некорректный запрос', + [HttpStatus.UNAUTHORIZED]: 'Требуется авторизация', + [HttpStatus.FORBIDDEN]: 'Доступ запрещён', + [HttpStatus.NOT_FOUND]: 'Ресурс не найден', + [HttpStatus.METHOD_NOT_ALLOWED]: 'Метод не поддерживается', + [HttpStatus.CONFLICT]: 'Конфликт данных', + [HttpStatus.PAYLOAD_TOO_LARGE]: 'Тело запроса слишком большое', + [HttpStatus.UNSUPPORTED_MEDIA_TYPE]: 'Неподдерживаемый формат данных', + [HttpStatus.TOO_MANY_REQUESTS]: 'Слишком много запросов', + [HttpStatus.INTERNAL_SERVER_ERROR]: 'Внутренняя ошибка сервера', + [HttpStatus.SERVICE_UNAVAILABLE]: 'Сервис временно недоступен', +}; + +const databaseUnavailableCodes = new Set([ + 'P1000', + 'P1001', + 'P1002', + 'P1008', + 'P1017', + 'P2024', + 'P2037', + 'ECONNREFUSED', + 'ECONNRESET', + 'ETIMEDOUT', + 'EPIPE', + 'ENOTFOUND', + 'EAI_AGAIN', + 'EACCES', + '08000', + '08001', + '08003', + '08004', + '08006', + '53300', + '57P01', + '57P02', + '57P03', + '57014', +]); +const driverTimeoutMessages = [ + 'Query read timeout', + 'timeout exceeded when trying to connect', + 'Connection terminated unexpectedly', + 'Connection terminated due to connection timeout', +]; + +function databaseUnavailable(exception: unknown): boolean { + if (exception instanceof Prisma.PrismaClientInitializationError) return true; + if (exception instanceof HttpException || !(exception instanceof Error)) + return false; + const error = exception as Error & { code?: unknown }; + if ( + typeof error.code === 'string' && + databaseUnavailableCodes.has(error.code) + ) + return true; + if (exception instanceof Prisma.PrismaClientKnownRequestError) { + const originalCode = exception.meta?.code; + if ( + typeof originalCode === 'string' && + databaseUnavailableCodes.has(originalCode) + ) + return true; + const adapter = exception.meta?.driverAdapterError; + if (adapter !== null && typeof adapter === 'object' && 'cause' in adapter) { + const cause = adapter.cause; + if (cause !== null && typeof cause === 'object') { + if ('kind' in cause && cause.kind === 'ConnectionClosed') return true; + if ( + 'originalCode' in cause && + typeof cause.originalCode === 'string' && + databaseUnavailableCodes.has(cause.originalCode) + ) + return true; + } + } + } + return driverTimeoutMessages.some((message) => + exception.message.includes(message), + ); +} + +@Catch() +export class AllExceptionsFilter implements ExceptionFilter { + catch(exception: unknown, host: ArgumentsHost): void { + if (databaseUnavailable(exception)) { + exception = new ApiException( + HttpStatus.SERVICE_UNAVAILABLE, + 'unavailable', + 'База данных недоступна', + ); + } + const context = host.switchToHttp(); + const request = context.getRequest(); + const response = context.getResponse(); + if (exception instanceof AuthException) { + void response.header('WWW-Authenticate', exception.challenge); + } + + const status = + exception instanceof HttpException + ? exception.getStatus() + : exception instanceof Error && + 'statusCode' in exception && + typeof exception.statusCode === 'number' && + [400, 413, 415].includes(exception.statusCode) + ? exception.statusCode + : HttpStatus.INTERNAL_SERVER_ERROR; + const payload = + exception instanceof HttpException ? exception.getResponse() : undefined; + const { code, message } = this.extractError(status, payload); + const requestId = request.id; + + if (status >= HttpStatus.INTERNAL_SERVER_ERROR) { + request.log.error( + { err: exception, status, requestId }, + 'Request failed', + ); + } + + void response.status(status).send({ + error: { code, message, request_id: requestId }, + }); + } + + private extractError( + status: HttpStatus, + payload: string | object | undefined, + ): { code: string; message: string } { + if (status === HttpStatus.INTERNAL_SERVER_ERROR) { + return { + code: 'internal_error', + message: defaultMessages[status] ?? 'Ошибка сервера', + }; + } + + const body = ( + payload !== null && typeof payload === 'object' ? payload : {} + ) as ExceptionPayload; + + return { + code: + typeof body.code === 'string' + ? body.code + : (defaultCodes[status] ?? 'http_error'), + message: + defaultMessages[status] ?? + (status >= HttpStatus.INTERNAL_SERVER_ERROR + ? 'Ошибка сервера' + : 'Ошибка запроса'), + }; + } +} diff --git a/src/common/http/drain-rejected-body.spec.ts b/src/common/http/drain-rejected-body.spec.ts new file mode 100644 index 0000000..8c89058 --- /dev/null +++ b/src/common/http/drain-rejected-body.spec.ts @@ -0,0 +1,56 @@ +import type { IncomingMessage } from 'node:http'; +import { PassThrough } from 'node:stream'; +import { setImmediate as tick } from 'node:timers/promises'; +import { drainRejectedBody } from './drain-rejected-body'; + +describe('bounded discard of rejected upload bodies', () => { + it('waits for the complete body before releasing the error response', async () => { + const body = new PassThrough(); + const done = jest.fn(); + const result = new Promise((resolve) => + drainRejectedBody( + body as unknown as IncomingMessage, + 100, + 1000, + (consumed) => { + done(consumed); + resolve(consumed); + }, + ), + ); + body.write('first'); + await tick(); + expect(done).not.toHaveBeenCalled(); + body.end('last'); + expect(await result).toBe(true); + expect(body.readableEnded).toBe(true); + expect(done).toHaveBeenCalledTimes(1); + }); + + it('stops draining beyond its byte budget', async () => { + const body = new PassThrough(); + try { + const result = new Promise((resolve) => + drainRejectedBody(body as unknown as IncomingMessage, 4, 1000, resolve), + ); + body.write('12345'); + expect(await result).toBe(false); + expect(body.isPaused()).toBe(true); + } finally { + body.destroy(); + } + }); + + it('releases a stalled rejected request when its remaining deadline expires', async () => { + const body = new PassThrough(); + try { + const result = new Promise((resolve) => + drainRejectedBody(body as unknown as IncomingMessage, 100, 25, resolve), + ); + expect(await result).toBe(false); + expect(body.isPaused()).toBe(true); + } finally { + body.destroy(); + } + }); +}); diff --git a/src/common/http/drain-rejected-body.ts b/src/common/http/drain-rejected-body.ts new file mode 100644 index 0000000..a0bb4c5 --- /dev/null +++ b/src/common/http/drain-rejected-body.ts @@ -0,0 +1,44 @@ +import type { IncomingMessage } from 'node:http'; + +/** Discard a bounded remainder before sending an early 413 through a streaming proxy. */ +export function drainRejectedBody( + raw: IncomingMessage, + maxBytes: number, + timeoutMs: number, + done: (consumed: boolean) => void, +) { + let received = 0; + let finished = false; + const finish = (consumed: boolean) => { + if (finished) return; + finished = true; + clearTimeout(timer); + raw.removeListener('data', onData); + raw.removeListener('end', onEnd); + raw.removeListener('aborted', onAborted); + raw.removeListener('error', onAborted); + raw.removeListener('close', onClose); + done(consumed); + }; + const onData = (chunk: Buffer) => { + received += chunk.length; + if (received > maxBytes) { + raw.pause(); + finish(false); + } + }; + const onEnd = () => finish(true); + const onAborted = () => finish(false); + const onClose = () => finish(raw.readableEnded); + const timer = setTimeout(() => { + raw.pause(); + finish(false); + }, timeoutMs); + timer.unref(); + raw.on('data', onData); + raw.once('end', onEnd); + raw.once('aborted', onAborted); + raw.once('error', onAborted); + raw.once('close', onClose); + raw.resume(); +} diff --git a/src/common/http/fastify-adapter.spec.ts b/src/common/http/fastify-adapter.spec.ts new file mode 100644 index 0000000..90d0205 --- /dev/null +++ b/src/common/http/fastify-adapter.spec.ts @@ -0,0 +1,92 @@ +import { request } from 'node:http'; +import type { AddressInfo } from 'node:net'; +import { setTimeout as delay } from 'node:timers/promises'; +import { DrainingFastifyAdapter } from './fastify-adapter'; + +describe('upload body deadline over real HTTP', () => { + it('returns 408 for a client that keeps sending and never invokes the handler', async () => { + const adapter = new DrainingFastifyAdapter(0, 1000); + const server = adapter.getInstance(); + let calls = 0; + server.post('/api/v1/chats/:chat_id/attachments', () => { + calls++; + return {}; + }); + await server.listen({ host: '127.0.0.1', port: 0 }); + let timer: ReturnType | undefined; + let watchdog: ReturnType | undefined; + try { + const port = (server.server.address() as AddressInfo).port; + const result = await new Promise<{ + status?: number; + body: string; + id?: string; + }>((resolve, reject) => { + const client = request( + { + host: '127.0.0.1', + port, + method: 'POST', + path: '/api/v1/chats/test/attachments', + headers: { 'content-type': 'image/png', 'content-length': '10000' }, + }, + (response) => { + clearInterval(timer); + clearTimeout(watchdog); + let body = ''; + response.on('data', (part: Buffer) => { + body += part.toString(); + }); + response.on('end', () => { + client.destroy(); + resolve({ + status: response.statusCode, + body, + id: response.headers['x-request-id'] as string, + }); + }); + response.on('error', reject); + }, + ); + client.on('error', reject); + watchdog = setTimeout( + () => client.destroy(new Error('deadline did not fire')), + 7000, + ); + client.write('partial'); + timer = setInterval(() => client.write('x'), 100); + }); + expect(result.status).toBe(408); + expect(result.id).toBeTruthy(); + expect(JSON.parse(result.body)).toMatchObject({ + error: { code: 'invalid_request', request_id: result.id }, + }); + expect(calls).toBe(0); + } finally { + clearInterval(timer); + clearTimeout(watchdog); + await server.close(); + } + }, 15000); + + it('clears the reception deadline before a completed body is processed', async () => { + const adapter = new DrainingFastifyAdapter(0, 1000); + const server = adapter.getInstance(); + server.post('/api/v1/chats/:chat_id/attachments', async () => { + await delay(1200); + return { stored: true }; + }); + try { + const response = await server.inject({ + method: 'POST', + url: '/api/v1/chats/test/attachments', + headers: { 'content-type': 'image/png' }, + payload: Buffer.from('complete'), + }); + expect(response.statusCode).toBe(200); + expect(response.json()).toEqual({ stored: true }); + } finally { + await server.close(); + } + }); +}); diff --git a/src/common/http/fastify-adapter.ts b/src/common/http/fastify-adapter.ts new file mode 100644 index 0000000..5f76325 --- /dev/null +++ b/src/common/http/fastify-adapter.ts @@ -0,0 +1,175 @@ +import { randomUUID } from 'node:crypto'; +import { MAX_UPLOAD_BYTES } from '../../Attachment/attachment.service'; +import { profileUpload } from './upload-memory-profile'; +import { drainRejectedBody } from './drain-rejected-body'; +import { + FastifyAdapter, + NestFastifyApplication, +} from '@nestjs/platform-fastify'; + +const requestIdHeader = 'x-request-id'; +const instanceIdHeader = 'x-instance-id'; +const instanceId = process.env.INSTANCE_ID?.trim() || randomUUID(); + +// Two parallel readiness rounds: 2 * (1s request timeout + 2s interval), +// plus one second for the upstream reload. Keep below the public hook's 10s limit. +export const DRAIN_DELAY_MS = 7000; + +export class DrainingFastifyAdapter extends FastifyAdapter { + private draining = false; + private closing?: Promise; + private httpClosing?: Promise; + private readonly uploadDeadlines = new WeakMap(); + + constructor( + private readonly drainDelayMs: number, + uploadBodyTimeoutMs = Number(process.env.UPLOAD_BODY_TIMEOUT_MS ?? 15000), + ) { + super({ requestIdHeader, genReqId: () => randomUUID() }); + this.getInstance().addHook('onRequest', (request, reply, done) => { + const path = request.routeOptions.url; + const mode = + request.method !== 'POST' + ? undefined + : path === '/api/v1/chats/:chat_id/attachments' + ? 'proxy' + : path === + '/api/v1/chats/:chat_id/attachment-uploads/:upload_id/complete' + ? 'direct' + : path === '/api/v1/chats/:chat_id/attachment-uploads' + ? 'grant' + : undefined; + if (mode) profileUpload(mode, request.id, reply.raw, done); + else done(); + }); + if ( + !Number.isSafeInteger(uploadBodyTimeoutMs) || + uploadBodyTimeoutMs < 1000 || + uploadBodyTimeoutMs > 120000 + ) { + throw new Error('UPLOAD_BODY_TIMEOUT_MS must be between 1000 and 120000'); + } + this.getInstance().addHook('onRequest', (request, reply, done) => { + if ( + request.method !== 'POST' || + request.routeOptions.url !== '/api/v1/chats/:chat_id/attachments' + ) { + done(); + return; + } + // A total deadline, independent of whether the client keeps sending tiny chunks. + // Clear it when reception finishes; decoding and persistence have separate budgets. + const raw = request.raw; + this.uploadDeadlines.set(raw, Date.now() + uploadBodyTimeoutMs); + const cleanup = () => { + this.uploadDeadlines.delete(raw); + clearTimeout(timer); + raw.removeListener('end', cleanup); + raw.removeListener('close', cleanup); + reply.raw.removeListener('finish', cleanup); + }; + const timer = setTimeout(() => { + cleanup(); + if ( + raw.complete || + reply.sent || + raw.destroyed || + reply.statusCode === 413 + ) + return; + // Let HTTP close after flushing the response. Destroying the request here can + // reset the TCP connection before a still-writing client receives the 408. + void reply + .code(408) + .header('connection', 'close') + .header(requestIdHeader, request.id) + .header(instanceIdHeader, instanceId) + .send({ + error: { + code: 'invalid_request', + message: 'Истёк срок приёма изображения', + request_id: request.id, + }, + }); + }, uploadBodyTimeoutMs); + timer.unref(); + raw.once('end', cleanup); + raw.once('close', cleanup); + reply.raw.once('finish', cleanup); + done(); + }); + this.getInstance().addContentTypeParser( + ['image/png', 'image/jpeg', 'application/octet-stream'], + { parseAs: 'buffer', bodyLimit: MAX_UPLOAD_BYTES }, + (_request, body, done) => done(null, body), + ); + this.getInstance().addHook('onSend', (request, reply, payload, done) => { + // An already active request may finish after Fastify starts closing. + // Finish its response, then close its keep-alive socket as well. + if (this.httpClosing) void reply.header('connection', 'close'); + if ( + reply.statusCode === 413 && + request.routeOptions.url === '/api/v1/chats/:chat_id/attachments' && + !request.raw.readableEnded && + !request.raw.destroyed + ) { + const deadline = + this.uploadDeadlines.get(request.raw) ?? + Date.now() + uploadBodyTimeoutMs; + drainRejectedBody( + request.raw, + MAX_UPLOAD_BYTES + 1048576, + Math.max(1, deadline - Date.now()), + (consumed) => { + if (!consumed) void reply.header('connection', 'close'); + done(null, payload); + }, + ); + return; + } + done(null, payload); + }); + } + + get isDraining(): boolean { + return this.draining; + } + + override beforeClose(): Promise { + return (this.closing ??= this.drainAndClose()); + } + + override close(): Promise { + return (this.httpClosing ??= super.close()); + } + + private async drainAndClose(): Promise { + this.draining = true; + if (this.drainDelayMs > 0) { + await new Promise((resolve) => + setTimeout(resolve, this.drainDelayMs), + ); + } + // Nest awaits beforeClose before destroying Prisma/Redis providers. + // Fastify first stops new connections and finishes active HTTP requests. + await this.close(); + } +} + +export function createFastifyAdapter( + drainDelayMs = 0, + uploadBodyTimeoutMs?: number, +): DrainingFastifyAdapter { + return new DrainingFastifyAdapter(drainDelayMs, uploadBodyTimeoutMs); +} + +export function exposeRequestIdHeader(app: NestFastifyApplication): void { + app + .getHttpAdapter() + .getInstance() + .addHook('onRequest', (request, reply, done) => { + void reply.header(requestIdHeader, request.id); + void reply.header(instanceIdHeader, instanceId); + done(); + }); +} diff --git a/src/common/http/upload-memory-profile.ts b/src/common/http/upload-memory-profile.ts new file mode 100644 index 0000000..9b14ce1 --- /dev/null +++ b/src/common/http/upload-memory-profile.ts @@ -0,0 +1,116 @@ +import { AsyncLocalStorage } from 'node:async_hooks'; +import { hostname } from 'node:os'; +import { performance } from 'node:perf_hooks'; +import type { ServerResponse } from 'node:http'; +import sharp from 'sharp'; + +type Memory = ReturnType; +type Stage = { + name: string; + startedMs: number; + durationMs: number; + before: Memory; + after: Memory; + peak: Memory; + samples: number; + maxSampleGapMs: number; + sharpBefore: ReturnType; + sharpAfter: ReturnType; +}; +type Context = { + started: number; + stages: Stage[]; + current: Stage; + lastSample: number; + closed: boolean; +}; +const contexts = new AsyncLocalStorage(); + +function sample(context: Context) { + const now = performance.now(); + const memory = process.memoryUsage(); + const stage = context.current; + for (const key of Object.keys(memory) as (keyof Memory)[]) + stage.peak[key] = Math.max(stage.peak[key], memory[key]); + stage.after = memory; + stage.samples++; + stage.maxSampleGapMs = Math.max( + stage.maxSampleGapMs, + now - context.lastSample, + ); + context.lastSample = now; + stage.durationMs = now - context.started - stage.startedMs; + return memory; +} + +function stage(name: string, startedMs: number): Stage { + const memory = process.memoryUsage(); + const cache = sharp.cache(); + return { + name, + startedMs, + durationMs: 0, + before: memory, + after: memory, + peak: { ...memory }, + samples: 0, + maxSampleGapMs: 0, + sharpBefore: cache, + sharpAfter: cache, + }; +} + +/** Profiling is opt-in. Contains numeric metrics and a request ID, never URLs or payloads. */ +export function profileUpload( + mode: 'proxy' | 'direct' | 'grant', + requestId: string, + response: ServerResponse, + done: () => void, +) { + if (process.env.UPLOAD_MEMORY_PROFILE !== '1') return done(); + const now = performance.now(); + const context: Context = { + started: now, + stages: [], + current: stage('receive_and_authenticate', 0), + lastSample: now, + closed: false, + }; + const timer = setInterval(() => sample(context), 20); + timer.unref(); + const finish = () => { + if (context.closed) return; + context.closed = true; + clearInterval(timer); + sample(context); + context.current.sharpAfter = sharp.cache(); + context.stages.push(context.current); + console.log( + 'UPLOAD_MEMORY_PROFILE ' + + JSON.stringify({ + mode, + requestId, + instance: hostname(), + pid: process.pid, + status: response.statusCode, + finished: response.writableFinished, + intervalMs: 20, + durationMs: performance.now() - context.started, + stages: context.stages, + }), + ); + }; + response.once('finish', finish); + response.once('close', finish); + contexts.run(context, done); +} + +export function profileStage(name: string) { + const context = contexts.getStore(); + if (!context || context.closed || context.stages.length >= 64) return; + sample(context); + context.current.sharpAfter = sharp.cache(); + context.stages.push(context.current); + context.current = stage(name, performance.now() - context.started); + context.lastSample = performance.now(); +} diff --git a/src/common/validation.ts b/src/common/validation.ts new file mode 100644 index 0000000..cbbdf04 --- /dev/null +++ b/src/common/validation.ts @@ -0,0 +1,54 @@ +import { ApiException } from './exceptions/api.exception'; +import { HttpStatus } from '@nestjs/common'; + +export const uuidPattern = + /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; + +export function invalidRequest(message: string): never { + throw new ApiException(HttpStatus.BAD_REQUEST, 'invalid_request', message); +} + +export function objectBody( + value: unknown, + keys: string[], +): Record { + if (typeof value !== 'object' || value === null || Array.isArray(value)) { + return invalidRequest('Ожидается JSON-объект'); + } + const body = value as Record; + if (Object.keys(body).some((key) => !keys.includes(key))) { + return invalidRequest('Неизвестное поле запроса'); + } + return body; +} + +export function requiredText( + value: unknown, + field: string, + max: number, +): string { + if (typeof value !== 'string' || value.trim().length === 0) { + return invalidRequest(`Некорректное поле ${field}`); + } + let codePoints = 0; + for (const _character of value) codePoints++; + if (codePoints > max) return invalidRequest(`Некорректное поле ${field}`); + return value; +} + +export function uuid(value: unknown, field: string): string { + if (typeof value !== 'string' || !uuidPattern.test(value)) { + return invalidRequest(`Некорректное поле ${field}`); + } + return value.toLowerCase(); +} + +export function pageLimit(value: unknown): number { + if (value === undefined) return 50; + if (typeof value !== 'string' || !/^[1-9]\d*$/.test(value)) { + return invalidRequest('Некорректный limit'); + } + const limit = Number(value); + if (limit > 100) return invalidRequest('Некорректный limit'); + return limit; +} diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..6063b0e --- /dev/null +++ b/src/main.ts @@ -0,0 +1,69 @@ +import { NestFactory } from '@nestjs/core'; +import { NestFastifyApplication } from '@nestjs/platform-fastify'; +import { + DocumentBuilder, + SwaggerModule, + type OpenAPIObject, +} from '@nestjs/swagger'; +import { readFileSync } from 'node:fs'; +import { join } from 'node:path'; +import { apiReference } from '@scalar/nestjs-api-reference'; +import { AppModule } from './app.module'; +import { Logger } from 'nestjs-pino'; +import { completeApiDocument } from './common/api-document'; +import { + createFastifyAdapter, + DRAIN_DELAY_MS, + exposeRequestIdHeader, +} from './common/http/fastify-adapter'; + +async function bootstrap() { + const app = await NestFactory.create( + AppModule, + createFastifyAdapter(DRAIN_DELAY_MS), + { + bufferLogs: true, + }, + ); + + exposeRequestIdHeader(app); + app.useLogger(app.get(Logger)); + app.enableShutdownHooks(); + + const swaggerConfig = new DocumentBuilder() + .setTitle('Messenger API') + .setDescription('Документация API') + .setVersion('1.4.0') + .addBasicAuth({ type: 'http', scheme: 'basic' }, 'basicAuth') + .addBearerAuth( + { type: 'http', scheme: 'bearer', bearerFormat: 'opaque' }, + 'bearerAuth', + ) + .build(); + + const contract = JSON.parse( + readFileSync(join(__dirname, '../contracts/openapi.json'), 'utf8'), + ) as OpenAPIObject; + const document = completeApiDocument( + SwaggerModule.createDocument(app, swaggerConfig), + contract, + ); + + SwaggerModule.setup('swagger', app, document); + + app.use( + '/docs', + apiReference({ + content: document, + theme: 'laserwave', + withFastify: true, + }), + ); + + await app.listen( + Number(process.env.APP_PORT ?? process.env.PORT ?? 8080), + process.env.APP_HOST ?? '0.0.0.0', + ); +} + +void bootstrap(); diff --git a/src/prisma/prisma.module.ts b/src/prisma/prisma.module.ts new file mode 100644 index 0000000..930cb0f --- /dev/null +++ b/src/prisma/prisma.module.ts @@ -0,0 +1,6 @@ +import { Global, Module } from '@nestjs/common'; +import { PrismaService } from './prisma.service'; + +@Global() +@Module({ providers: [PrismaService], exports: [PrismaService] }) +export class PrismaModule {} diff --git a/src/prisma/prisma.service.ts b/src/prisma/prisma.service.ts new file mode 100644 index 0000000..8e326f3 --- /dev/null +++ b/src/prisma/prisma.service.ts @@ -0,0 +1,42 @@ +import 'dotenv/config'; +import { + Injectable, + type OnModuleDestroy, + type OnModuleInit, +} from '@nestjs/common'; +import { PrismaPg } from '@prisma/adapter-pg'; +import { PrismaClient } from '../generated/prisma/client'; + +@Injectable() +export class PrismaService + extends PrismaClient + implements OnModuleInit, OnModuleDestroy +{ + constructor() { + const connectionString = process.env.DATABASE_URL; + if (!connectionString) throw new Error('DATABASE_URL is required'); + const poolMax = Number(process.env.DB_POOL_MAX ?? 15); + if (!Number.isSafeInteger(poolMax) || poolMax < 1) { + throw new Error('DB_POOL_MAX must be a positive integer'); + } + super({ + adapter: new PrismaPg({ + connectionString, + max: poolMax, + connectionTimeoutMillis: 5000, + query_timeout: 5000, + idleTimeoutMillis: 30000, + options: '-c statement_timeout=5000', + }), + transactionOptions: { maxWait: 5000, timeout: 10000 }, + }); + } + + async onModuleInit(): Promise { + await this.$connect(); + } + + async onModuleDestroy(): Promise { + await this.$disconnect(); + } +} diff --git a/test/attachments.py b/test/attachments.py new file mode 100644 index 0000000..2168cec --- /dev/null +++ b/test/attachments.py @@ -0,0 +1,160 @@ +"""Integration checks against the local Compose stack. --lifecycle restarts its services.""" +import argparse +import base64 +import json +from pathlib import Path +import struct +import subprocess +import sys +import time +import uuid +from urllib.parse import quote +import zlib + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / 'tests')) +from client import Client, Failure, check, run + + +def compose(*args): + result = subprocess.run(['docker', 'compose', *args], cwd=ROOT, capture_output=True, text=True) + check(result.returncode == 0, 'Compose action failed: ' + ' '.join(args[:2])) + return result.stdout.strip() + + +def wait_ready(client): + deadline = time.monotonic() + 90 + observed = set() + stable_since = None + while time.monotonic() < deadline: + try: + response = client.call('GET', '/health/ready', schema='Health') + upstreams = compose('exec', '-T', 'nginx', 'cat', '/etc/nginx/ready-upstreams.conf') + # A single 200 can come from an old Nginx worker while a removal + # reload is still pending. Wait for both re-added replicas to settle. + check(sum(':8080' in line for line in upstreams.splitlines()) == 2, + 'Both upstreams have not recovered') + observed.add(response['headers']['X-Instance-Id']) + if stable_since is None: + stable_since = time.monotonic() + if len(observed) == 2 and time.monotonic() - stable_since >= 4: + return + except Failure: + observed.clear() + stable_since = None + time.sleep(1) + raise Failure('API did not recover') + + +def direct_call(method, path, expected, actor=None, raw=None, content_type=None): + """Probe the API process when the LB has excluded every unready replica.""" + headers = {'Authorization': 'Bearer ' + actor['token']} if actor else {} + if content_type: + headers['Content-Type'] = content_type + request = {'method': method, 'path': path, 'headers': headers, + 'body': base64.b64encode(raw).decode() if raw is not None else None} + script = """const q=JSON.parse(require('node:fs').readFileSync(0,'utf8')); +fetch('http://127.0.0.1:8080'+q.path,{method:q.method,headers:q.headers, +body:q.body===null?undefined:Buffer.from(q.body,'base64')}).then(async r=>{ +console.log(JSON.stringify({status:r.status,body:await r.json(), +requestId:r.headers.get('x-request-id'),instanceId:r.headers.get('x-instance-id')})); +}).catch(()=>process.exit(1));""" + result = subprocess.run(['docker', 'compose', 'exec', '-T', '--index', '1', + 'api', 'node', '-e', script], cwd=ROOT, + input=json.dumps(request), capture_output=True, text=True) + check(result.returncode == 0, 'direct API probe failed') + response = json.loads(result.stdout) + check(response['status'] == expected, 'direct API returned wrong status') + check(response['requestId'] and response['instanceId'], 'direct API lacks response identifiers') + if expected >= 400: + check(response['body']['error']['request_id'] == response['requestId'], 'error request ID differs') + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--base-url', default='http://localhost:8080') + parser.add_argument('--lifecycle', action='store_true') + args = parser.parse_args() + c = Client(args.base_url) + alice, bob, eve, chat = c.bootstrap() + path = '/api/v1/chats/' + chat['id'] + png = (ROOT / 'tests/fixtures/sample.png').read_bytes() + + def upload(data=png, name='фото.png', mime='image/png', expected=201, actor=alice): + return c.call('POST', path + '/attachments?filename=' + quote(name, safe=''), expected, + actor=actor, raw=data, headers={'Content-Type': mime}, + schema='Attachment' if expected == 201 else None) + + att = upload()['json'] + item = '/api/v1/attachments/' + att['id'] + check(c.call('GET', item, actor=bob, schema='Attachment')['json'] == att, 'metadata differs') + check(c.call('GET', item + '/content', actor=bob)['bytes'] == png, 'PNG changed') + c.call('GET', item + '/content?variant=thumbnail', 404, actor=bob) + c.call('GET', item, 401) + c.call('GET', item, 404, actor=eve) + c.call('GET', item + '/content', 404, actor=eve) + upload(actor=eve, expected=404) + upload(name='../photo.png', expected=400) + upload(name='photo\\bad.png', expected=400) + upload(name='bad\x00.png', expected=400) + upload(name=' ', expected=400) + upload(data=b'not an image', expected=415) + upload(data=png[:50], expected=415) + upload(mime='image/jpeg', expected=415) + upload(data=b'x' * (10485760 + 1), expected=413) + + def chunk(kind, value): + return struct.pack('>I', len(value)) + kind + value + struct.pack('>I', zlib.crc32(kind + value)) + + huge = b'\x89PNG\r\n\x1a\n' + chunk(b'IHDR', struct.pack('>IIBBBBB', 10000, 5000, 8, 2, 0, 0, 0)) + huge += chunk(b'IDAT', zlib.compress(b'\x00\x00\x00\x00')) + chunk(b'IEND', b'') + upload(data=huge, expected=413) + jpeg = subprocess.run(['node', '-e', + "require('sharp')('tests/fixtures/sample.png').jpeg().toBuffer().then(b=>process.stdout.write(b))"], + cwd=ROOT, capture_output=True, check=True).stdout + jpg = upload(data=jpeg, name='photo.jpg', mime='image/jpeg')['json'] + check(c.call('GET', '/api/v1/attachments/' + jpg['id'] + '/content', actor=bob)['bytes'] == jpeg, 'JPEG changed') + key = uuid.uuid4().hex + message = c.message(alice, chat, '', key, [att['id']])['json'] + check(c.message(alice, chat, '', key, [att['id']])['json'] == message, 'replay differs') + c.call('POST', path + '/messages', 409, actor=alice, body={'text': '', 'attachment_ids': [jpg['id']]}, headers={'Idempotency-Key': key}) + for ids, status in (([att['id'], att['id']], 400), ([str(uuid.uuid4())], 404), (None, 400)): + c.call('POST', path + '/messages', status, actor=alice, body={'text': '', 'attachment_ids': ids}, headers={'Idempotency-Key': uuid.uuid4().hex}) + other = c.call('POST', '/api/v1/chats', 201, actor=alice, + body={'title': 'Other chat', 'member_ids': [alice['id']]}, schema='Chat')['json'] + c.call('POST', '/api/v1/chats/' + other['id'] + '/messages', 404, actor=alice, + body={'text': '', 'attachment_ids': [att['id']]}, headers={'Idempotency-Key': uuid.uuid4().hex}) + + if args.lifecycle: + anonymous_url = 'http://s3:9000/messenger-attachments/originals/' + chat['id'] + '/' + att['id'] + status = compose('exec', '-T', 'api', 'node', '-e', + 'fetch(process.argv[1]).then(r=>console.log(r.status))', anonymous_url) + check(status == '403', 'S3 object is publicly readable') + try: + compose('stop', 's3') + direct_call('GET', '/health/ready', 503) + direct_call('GET', item, 200, actor=bob) + direct_call('GET', item + '/content', 503, actor=bob) + direct_call('POST', path + '/attachments?filename=outage.png', 503, + actor=alice, raw=png, content_type='image/png') + deadline = time.monotonic() + 15 + while True: + upstreams = compose('exec', '-T', 'nginx', 'cat', '/etc/nginx/ready-upstreams.conf') + if ':8080' not in upstreams: + break + check(time.monotonic() < deadline, 'Nginx still routes to unready replicas') + time.sleep(0.5) + finally: + compose('start', 's3') + wait_ready(c) + check(c.call('GET', item + '/content', actor=bob)['bytes'] == png, 'original lost after storage recovery') + compose('stop') + compose('up', '-d', '--wait', '--wait-timeout', '180') + wait_ready(c) + check(c.call('GET', item + '/content', actor=bob)['bytes'] == png, 'original lost after stack restart') + check(c.message(alice, chat, '', key, [att['id']])['json'] == message, 'message lost after restart') + print('PASS: attachments, validation, ACL, idempotency' + (', private S3, outage and persistence' if args.lifecycle else '')) + + +if __name__ == '__main__': + run(main) diff --git a/test/concurrent-cleanup.mjs b/test/concurrent-cleanup.mjs new file mode 100644 index 0000000..2d7da1e --- /dev/null +++ b/test/concurrent-cleanup.mjs @@ -0,0 +1,77 @@ +// Remove only fixtures belonging to this one concurrency run, using restricted API keys. +import assert from 'node:assert/strict'; +import { createRequire } from 'node:module'; +const require = createRequire(`${process.cwd()}/package.json`); +const { PrismaService } = require('./dist/prisma/prisma.service.js'); +const { StorageService } = require('./dist/Storage/storage.service.js'); +const { + tryAttachmentObjectLock, + OBJECT_TRANSACTION, +} = require('./dist/Attachment/object-lock.js'); +let input = ''; +for await (const part of process.stdin) input += part; +const { + runId, + chatId, + chatIds = chatId ? [chatId] : [], + userIds, + kind = 'concurrency', +} = JSON.parse(input); +assert.ok( + ['concurrency', 'upload-interruption', 'direct-upload'].includes(kind), +); +const uuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; +assert.match(runId, uuid); +assert.ok(Array.isArray(userIds) && userIds.length <= 2); +for (const id of userIds) assert.match(id, uuid); +if (chatId) assert.match(chatId, uuid); +assert.ok( + Array.isArray(chatIds) && + chatIds.length <= 3 && + new Set(chatIds).size === chatIds.length, +); +for (const value of chatIds) assert.match(value, uuid); +const db = new PrismaService(); +const storage = new StorageService(); +try { + await db.onModuleInit(); + const users = await db.user.findMany({ where: { id: { in: userIds } } }); + assert.ok( + users.every((user) => user.username.startsWith(`u_cu${runId.slice(0, 8)}`)), + ); + for (const chatId of chatIds) { + const chat = await db.chat.findUnique({ + where: { id: chatId }, + include: { members: true }, + }); + assert.equal(chat?.title, `${kind}:${runId}`); + assert.ok(chat.members.every((member) => userIds.includes(member.userId))); + const directUploads = await db.directUpload.findMany({ where: { chatId } }); + for (const upload of directUploads) { + assert.ok(userIds.includes(upload.ownerId)); + await storage.remove(`staging/${chatId}/${upload.id}`); + } + await db.directUpload.deleteMany({ where: { chatId } }); + const attachments = await db.attachment.findMany({ where: { chatId } }); + for (const attachment of attachments) { + assert.ok(userIds.includes(attachment.ownerId)); + assert.equal( + attachment.objectKey, + `originals/${chatId}/${attachment.id}`, + ); + await db.$transaction(async (tx) => { + assert.ok(await tryAttachmentObjectLock(tx, attachment.objectKey)); + await storage.remove(attachment.objectKey); + await tx.attachment.delete({ where: { id: attachment.id } }); + }, OBJECT_TRANSACTION); + } + await db.chat.delete({ where: { id: chatId } }); + } + await db.user.deleteMany({ + where: { id: { in: users.map((user) => user.id) } }, + }); + console.log('PASS: concurrency fixtures removed'); +} finally { + storage.onModuleDestroy(); + await db.onModuleDestroy(); +} diff --git a/test/concurrent-uploads.py b/test/concurrent-uploads.py new file mode 100644 index 0000000..0b607c0 --- /dev/null +++ b/test/concurrent-uploads.py @@ -0,0 +1,281 @@ +"""Concurrent raw PNG uploads through Nginx with per-API RSS measurements. Python 3.9+.""" +import argparse +from concurrent.futures import ThreadPoolExecutor +from datetime import datetime, timezone +import hashlib +import http.client +import json +from pathlib import Path +from queue import Queue, Empty +import random +import ssl +import struct +import subprocess +import sys +import threading +import time +from urllib.parse import urlsplit +import uuid +import zlib + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / 'tests')) +from client import Client, Failure, check, shape + + +class UploadFailure(Failure): + def __init__(self, response): + super().__init__(f'Concurrent upload returned {response.status}, expected 201') + self.details = {'status': response.status, + 'instance': response.getheader('X-Instance-Id'), + 'requestId': response.getheader('X-Request-Id')} + + +def docker(*args, **kwargs): + return subprocess.run(['docker', *args], cwd=ROOT, capture_output=True, + text=True, check=True, timeout=90, **kwargs).stdout + + +class MemoryProbe: + def __init__(self, container): + self.container = container + self.messages = Queue() + source = (ROOT / 'test/upload-memory-probe.mjs').read_text(encoding='utf-8') + self.process = subprocess.Popen( + ['docker', 'exec', '-i', container, 'node', '--input-type=module', '-e', source], + cwd=ROOT, stdin=subprocess.PIPE, stdout=subprocess.PIPE, + stderr=subprocess.DEVNULL, text=True, bufsize=1, + ) + threading.Thread(target=self.read, daemon=True).start() + + def read(self): + try: + for line in self.process.stdout: + self.messages.put(json.loads(line)) + except (ValueError, OSError): + self.messages.put({'event': 'error'}) + finally: + self.messages.put({'event': 'closed'}) + + def receive(self, expected): + try: + value = self.messages.get(timeout=45) + except Empty: + raise Failure('API memory probe timed out') from None + check(value.get('event') == expected, 'API memory probe failed: ' + value.get('event', 'unknown')) + return value + + def command(self, command, response): + self.process.stdin.write(command + '\n') + self.process.stdin.flush() + return self.receive(response) + + def close(self): + if self.process.poll() is None: + try: + self.process.stdin.write('quit\n') + self.process.stdin.flush() + self.process.stdin.close() + self.process.wait(timeout=15) + except (OSError, subprocess.TimeoutExpired): + self.process.kill() + self.process.wait(timeout=10) + self.process.stdout.close() + + +def chunk(kind, data): + return struct.pack('>I', len(data)) + kind + data + struct.pack('>I', zlib.crc32(kind + data)) + + +def png_image(side): + # Deterministic noise is poorly compressible: the encoded file really occupies RAM. + rng = random.Random(side) + rows = b''.join(b'\0' + rng.randbytes(side * 3) for _ in range(side)) + return (b'\x89PNG\r\n\x1a\n' + chunk(b'IHDR', struct.pack('>IIBBBBB', side, side, 8, 2, 0, 0, 0)) + + chunk(b'IDAT', zlib.compress(rows, level=1))) + + +def upload(base, actor, chat, body, filename, gate, duration, timeout): + target = urlsplit(base + '/api/v1/chats/' + chat['id'] + '/attachments?filename=' + filename) + connection_type = http.client.HTTPSConnection if target.scheme == 'https' else http.client.HTTPConnection + kwargs = {'context': ssl.create_default_context()} if target.scheme == 'https' else {} + connection = connection_type(target.hostname, target.port, timeout=timeout, **kwargs) + try: + connection.putrequest('POST', target.path + '?' + target.query) + connection.putheader('Authorization', 'Bearer ' + actor['token']) + connection.putheader('Content-Type', 'image/png') + connection.putheader('Content-Length', str(len(body))) + connection.endheaders() + first = min(65536, len(body) - 1) + connection.send(body[:first]) + # Every connection has sent headers and an incomplete body before any may finish. + gate.wait(timeout=timeout) + started = time.monotonic() + for offset in range(first, len(body), 65536): + end = min(offset + 65536, len(body)) + deadline = started + duration * (end - first) / (len(body) - first) + time.sleep(max(0, deadline - time.monotonic())) + connection.send(body[offset:end]) + response = connection.getresponse() + data = response.read(1024 * 1024 + 1) + if response.status != 201: + raise UploadFailure(response) + check(len(data) <= 1024 * 1024, 'Upload response unexpectedly large') + check(response.getheader('Content-Type', '').startswith('application/json'), 'Upload response is not JSON') + check(response.getheader('X-Request-Id'), 'Upload lacks request identifier') + instance = response.getheader('X-Instance-Id') + check(instance, 'Upload lacks instance identifier') + attachment = shape(json.loads(data), 'Attachment') + check(attachment['status'] == 'ready', 'Concurrent attachment is not ready') + check(attachment['chat_id'] == chat['id'] and attachment['owner_id'] == actor['id'], 'Incorrect attachment ownership') + check(attachment['filename'] == filename and attachment['content_type'] == 'image/png', 'Incorrect attachment metadata') + digest = hashlib.sha256(body).hexdigest() + check(attachment['sha256'] == digest and attachment['size_bytes'] == len(body), 'Upload bytes/metadata mismatch') + return {'attachment': attachment, 'instance': instance, 'elapsedSeconds': time.monotonic() - started, + 'sha256': digest, 'sizeBytes': len(body)} + except BaseException: + gate.abort() + raise + finally: + connection.close() + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--base-url', default='http://localhost:8080') + parser.add_argument('--concurrency', type=int, default=10) + parser.add_argument('--rounds', type=int, default=2) + parser.add_argument('--sizes', type=int, nargs='+', default=[512, 1792], metavar='SIDE_PX') + parser.add_argument('--upload-seconds', type=float, default=2) + parser.add_argument('--timeout', type=float, default=60) + parser.add_argument('--max-rss-mib', type=float, help='Optional assertion budget per API process, not a container resource limit') + parser.add_argument('--output', type=Path, default=ROOT / 'evidence/concurrent-uploads.json') + args = parser.parse_args() + check(10 <= args.concurrency <= 64, '--concurrency must be between 10 and 64') + check(1 <= args.rounds <= 10, '--rounds must be between 1 and 10') + check(all(64 <= side <= 1800 for side in args.sizes), '--sizes must be between 64 and 1800 pixels') + check(0.5 <= args.upload_seconds <= 10 and args.timeout > args.upload_seconds + 5, 'Invalid upload timing') + check(args.max_rss_mib is None or args.max_rss_mib > 0, 'RSS budget must be positive') + client = Client(args.base_url, timeout=args.timeout) + client.call('GET', '/health/ready', schema='Health') + run_id = str(uuid.uuid4()) + report = {'status': 'running', 'startedAt': datetime.now(timezone.utc).isoformat(), + 'concurrency': args.concurrency, 'roundsPerSize': args.rounds, + 'uploadSeconds': args.upload_seconds, 'maxRssMiB': args.max_rss_mib, + 'memoryMethod': 'API /proc VmRSS sampled every 50 ms; VmHWM is lifetime, not reset; probe RSS excluded', + 'waves': []} + actors, probes, chat = [], [], None + try: + containers = docker('compose', 'ps', '-q', 'api').split() + check(len(containers) >= 2, 'Expected at least two running API replicas') + before = {state['Id']: (state['State']['StartedAt'], state['RestartCount']) + for state in json.loads(docker('inspect', *containers))} + for container in containers: + probe = MemoryProbe(container) + probes.append(probe) + probe.ready = probe.receive('ready') + owner = client.user('cu' + run_id[:8] + 'a') + actors.append(owner) + reader = client.user('cu' + run_id[:8] + 'b') + actors.append(reader) + chat = client.call('POST', '/api/v1/chats', 201, actor=owner, + body={'title': 'concurrency:' + run_id, 'member_ids': [actor['id'] for actor in actors]}, + schema='Chat')['json'] + for side in args.sizes: + image = png_image(side) + for number in range(1, args.rounds + 1): + bodies = [image + chunk(b'tEXt', f'fixture\0{run_id}-{side}-{number}-{i}'.encode()) + chunk(b'IEND', b'') + for i in range(args.concurrency)] + check(all(len(body) <= 10485760 for body in bodies), 'Generated PNG exceeds 10 MiB') + wave = {'sidePixels': side, 'round': number, 'fileBytes': len(bodies[0]), + 'totalBytes': sum(map(len, bodies)), 'incompleteUploadsAtBarrier': 0, + 'successfulUploads': 0, 'verifiedDownloads': 0, 'memory': []} + report['waves'].append(wave) + for probe in probes: + probe.command('begin', 'begin') + gate = threading.Barrier(args.concurrency + 1) + started = time.monotonic() + futures = [] + print(f'Uploading: {args.concurrency} x {len(bodies[0]) / 1048576:.2f} MiB, round {number}', flush=True) + try: + with ThreadPoolExecutor(max_workers=args.concurrency) as pool: + futures = [pool.submit(upload, client.base, owner, chat, body, + f'{side}-{number}-{i}.png', gate, args.upload_seconds, args.timeout) + for i, body in enumerate(bodies)] + gate.wait(timeout=args.timeout) + wave['incompleteUploadsAtBarrier'] = args.concurrency + results = [future.result() for future in futures] + finally: + wave['uploadWallSeconds'] = time.monotonic() - started + memory = [{'instance': probe.ready['instance'], **probe.command('end', 'summary')} for probe in probes] + wave['memory'] = memory + wave['successfulUploads'] = sum(future.done() and not future.cancelled() and future.exception() is None for future in futures) + wave['failedUploads'] = [ + {'index': index, 'errorType': type(future.exception()).__name__, + **getattr(future.exception(), 'details', {})} + for index, future in enumerate(futures) + if future.done() and not future.cancelled() and future.exception() is not None + ] + wave['instances'] = {name: sum(r['instance'] == name for r in results) for name in sorted({r['instance'] for r in results})} + wave['latencySeconds'] = {'min': min(r['elapsedSeconds'] for r in results), 'max': max(r['elapsedSeconds'] for r in results)} + check(len({r['attachment']['id'] for r in results}) == args.concurrency, 'Attachment IDs collide') + check(len(wave['instances']) >= 2, 'Concurrent uploads did not reach both replicas') + check(set(wave['instances']).issubset({probe.ready['instance'] for probe in probes}), 'Unmeasured API replica served uploads') + for sample in memory: + check(sample['samples'] >= 2, 'Insufficient memory samples during upload') + check(sample['oomDelta'] == 0 and sample['oomKillDelta'] == 0, 'API cgroup reported OOM during upload') + if args.max_rss_mib is not None: + check(sample['sampledPeakRssBytes'] <= args.max_rss_mib * 1048576, 'API sampled RSS exceeded assertion budget') + for result in results: + path = '/api/v1/attachments/' + result['attachment']['id'] + meta = client.call('GET', path, actor=reader, schema='Attachment')['json'] + check(meta == result['attachment'], 'Concurrent metadata changed') + data = client.call('GET', path + '/content', actor=reader)['bytes'] + check(len(data) == result['sizeBytes'] and hashlib.sha256(data).hexdigest() == result['sha256'], 'Concurrent download checksum mismatch') + wave['verifiedDownloads'] += 1 + peaks = ', '.join(f"{s['instance']}: {s['sampledPeakRssBytes'] / 1048576:.1f} MiB" for s in memory) + print('PASS: all uploads/downloads verified; sampled API RSS peaks: ' + peaks, flush=True) + after = json.loads(docker('inspect', *containers)) + check(all(before[state['Id']] == (state['State']['StartedAt'], state['RestartCount']) + and state['State']['Running'] and not state['State']['OOMKilled'] for state in after), 'API restarted or was OOM-killed') + client.call('GET', '/health/ready', schema='Health') + report['status'] = 'passed' + except BaseException as error: + report['status'] = 'failed' + report['errorType'] = type(error).__name__ + if isinstance(error, Failure): + report['failure'] = str(error) + raise + finally: + for probe in probes: + if hasattr(probe, 'process'): + try: + probe.close() + except (OSError, subprocess.SubprocessError): + report['probeCloseFailed'] = True + try: + source = (ROOT / 'test/concurrent-cleanup.mjs').read_text(encoding='utf-8') + payload = json.dumps({'runId': run_id, 'chatId': chat['id'] if chat else None, + 'userIds': [actor['id'] for actor in actors]}) + docker('compose', 'exec', '-T', '--index', '1', 'api', 'node', '--input-type=module', '-e', source, input=payload) + report['fixturesRemoved'] = True + except BaseException: + report['fixturesRemoved'] = False + if report['status'] == 'passed': + report['status'] = 'failed' + raise Failure('Concurrent fixtures cleanup failed') from None + finally: + report['finishedAt'] = datetime.now(timezone.utc).isoformat() + args.output.parent.mkdir(parents=True, exist_ok=True) + args.output.write_text(json.dumps(report, indent=2) + '\n', encoding='utf-8') + print('PASS: concurrent uploads, byte integrity, memory sampling and no API restarts/OOM', flush=True) + print('Report: ' + str(args.output)) + + +if __name__ == '__main__': + try: + main() + except (Failure, ValueError, OSError, subprocess.SubprocessError, threading.BrokenBarrierError) as error: + # Never include subprocess arguments or request headers: they can contain credentials. + print('FAIL: ' + (str(error) if isinstance(error, Failure) else type(error).__name__), file=sys.stderr) + sys.exit(1) diff --git a/test/direct-upload-benchmark.py b/test/direct-upload-benchmark.py new file mode 100644 index 0000000..fd9e848 --- /dev/null +++ b/test/direct-upload-benchmark.py @@ -0,0 +1,167 @@ +"""Compare the entire proxy/direct upload workflows, including complete validation.""" +import argparse +import importlib.util +import datetime +import json +import subprocess +import sys +import time + +from direct_client import ROOT, Client, Failure, check, docker, fixture, grant, put, complete, verify + +spec = importlib.util.spec_from_file_location('upload_metrics', ROOT / 'test/concurrent-uploads.py') +metrics = importlib.util.module_from_spec(spec) +spec.loader.exec_module(metrics) + + +def collect_profiles(case, since, repeats): + records = {} + for line in docker('compose', 'logs', '--no-color', '--since', since, 'api').splitlines(): + if 'UPLOAD_MEMORY_PROFILE ' in line: + record = json.loads(line.split('UPLOAD_MEMORY_PROFILE ', 1)[1]) + records[record['requestId']] = record + case['profiles'] = [records[request_id] for request_id in case['requestIds'] if request_id in records] + check(len(case['profiles']) == repeats, 'Missing opt-in API stage profiles') + for record in case['profiles']: + check(record['mode'] == case['mode'] and record['status'] == 201 and record['finished'], 'Invalid stage profile') + names = {stage['name'] for stage in record['stages']} + check({'sharp_metadata', 'sharp_decode_stats', 'serialize_response'} <= names, 'Async stage context was lost') + if case['mode'] == 'direct': + check({'s3_stream_sha256_to_file', 'sha256_finalize', 's3_copy'} <= names, 'Missing direct profile stages') + + +def restart_api(client, containers): + def states(): + return docker('inspect', '--format', '{{.State.Health.Status}} {{.State.StartedAt}}', *containers).splitlines() + before = states() + docker('compose', 'restart', 'api') + deadline = time.monotonic() + 120 + routed = set() + while time.monotonic() < deadline: + current = states() + if len(current) == 2 and all(line.startswith('healthy ') for line in current): + check(all(old != new for old, new in zip(before, current)), 'API did not restart') + try: + response = client.call('GET', '/health/ready') + routed.add(response['headers']['X-Instance-Id']) + if len(routed) == 2: + return current + except Failure: + pass + time.sleep(1) + raise Failure('API did not become ready after restart') + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--sizes', type=int, nargs='+', default=[512, 1792]) + parser.add_argument('--repeats', type=int, default=3) + parser.add_argument('--restart-api', action='store_true', help='Restart both API replicas before each measured case') + parser.add_argument('--rounds', type=int, default=1, help='Reverse workflow order on alternate rounds') + parser.add_argument('--profile', action='store_true', help='Collect opt-in API stage profiles and RSS after a five-second idle period') + args = parser.parse_args() + check(len(set(args.sizes)) >= 2 and all(64 <= side <= 1800 for side in args.sizes), 'Choose at least two image sides between 64 and 1800') + check(1 <= args.repeats <= 10, 'Repeats must be between 1 and 10') + check(1 <= args.rounds <= 5, 'Rounds must be between 1 and 5') + warmups = 4 if args.restart_api else 1 + report = {'status': 'failed', 'repeats': args.repeats, 'rounds': args.rounds, + 'restartApiBeforeCase': args.restart_api, 'warmupUploadsPerCase': warmups, 'cases': [], + 'method': 'One upload at a time; measured direct flow includes grant, PUT, and complete with full image validation. Download verification is outside the measurement window. RSS sampling 50 ms; network counters sum non-loopback API interfaces, including DB/S3/background health traffic. Probe RSS excluded.'} + probes = [] + log_start = datetime.datetime.now(datetime.timezone.utc).isoformat() + try: + readiness = Client('http://127.0.0.1:8080', timeout=5) + deadline = time.monotonic() + 90 + routed = set() + while time.monotonic() < deadline: + try: + routed.add(readiness.call('GET', '/health/ready')['headers']['X-Instance-Id']) + if len(routed) == 2: break + except Failure: + pass + time.sleep(1) + check(len(routed) == 2, 'Both API replicas must be ready through Nginx') + with fixture() as (client, owner, reader, chat, _): + containers = docker('compose', 'ps', '-q', 'api').split() + check(len(containers) == 2, 'Expected two API replicas') + cases = [(round_index + 1, side, mode) for round_index in range(args.rounds) + for side in args.sizes + for mode in (['proxy', 'direct'] if round_index % 2 == 0 else ['direct', 'proxy'])] + for round_number, side, mode in cases: + image = metrics.png_image(side) + metrics.chunk(b'IEND', b'') + for probe in probes: probe.close() + probes.clear() + restarted = restart_api(client, containers) if args.restart_api else None + for container in containers: + probe = metrics.MemoryProbe(container) + probes.append(probe) + probe.ready = probe.receive('ready') + def upload(): + if mode == 'direct': + cap = grant(client, owner, chat, image) + put(client, cap, image) + response = complete(client, owner, cap) + else: + response = client.call('POST', f"/api/v1/chats/{chat['id']}/attachments?filename=benchmark.png", 201, + actor=owner, raw=image, headers={'Content-Type': 'image/png'}, schema='Attachment') + return response['json'], response['headers']['X-Instance-Id'], response['headers']['X-Request-Id'] + # Warm the selected workflow before recording it. Warm-up failures fail the run. + warmed = set() + for warmup_index in range(warmups): + # Vary request parity so least_conn does not pin every complete + # to the same replica in the four-request direct workflow. + if args.restart_api and warmup_index % 2: + client.call('GET', '/health/live') + attachment, instance, _ = upload() + warmed.add(instance) + verify(client, reader, attachment, image) + if args.restart_api: + check(warmed == {probe.ready['instance'] for probe in probes}, 'Warm-up did not cover both API replicas') + for probe in probes: probe.command('begin', 'begin') + started = time.monotonic() + attachments = [] + request_ids = [] + try: + for _ in range(args.repeats): + attachment, _, request_id = upload() + attachments.append(attachment) + request_ids.append(request_id) + finally: + elapsed = time.monotonic() - started + samples = [{'instance': probe.ready['instance'], **probe.command('end', 'summary')} for probe in probes] + report['cases'].append({'round': round_number, 'mode': mode, 'sidePixels': side, 'fileBytes': len(image), + 'apiStatesAfterRestart': restarted, 'warmupInstances': sorted(warmed), + 'requestIds': request_ids, + 'successfulUploads': len(attachments), 'elapsedSeconds': elapsed, + 'memory': samples, 'apiRxBytes': sum(m['networkRxBytes'] for m in samples), + 'apiTxBytes': sum(m['networkTxBytes'] for m in samples)}) + for sample in samples: + check(sample['samples'] >= 2 and sample['oomDelta'] == sample['oomKillDelta'] == 0, 'Invalid memory samples or OOM') + if args.profile: + time.sleep(5) + report['cases'][-1]['idleAfterFiveSeconds'] = [ + {'instance': probe.ready['instance'], **probe.command('snapshot', 'snapshot')} for probe in probes] + collect_profiles(report['cases'][-1], log_start, args.repeats) + for attachment in attachments: verify(client, reader, attachment, image) + print(f"PASS: round {round_number}, {mode}, {side}px, {len(image)} bytes, {len(attachments)} uploads; API RX/TX={sum(m['networkRxBytes'] for m in samples)}/{sum(m['networkTxBytes'] for m in samples)}", flush=True) + for probe in probes: probe.close() + probes.clear() + report['fixturesRemoved'] = True + report['status'] = 'passed' + except BaseException as error: + report['errorType'] = type(error).__name__ + if isinstance(error, Failure): report['failure'] = str(error) + raise + finally: + for probe in probes: probe.close() + filename = 'direct-upload-memory-profile.json' if args.profile else ( + 'direct-upload-benchmark-restarted.json' if args.restart_api else 'direct-upload-benchmark.json') + (ROOT / 'evidence' / filename).write_text(json.dumps(report, indent=2) + '\n', encoding='utf-8') + + +if __name__ == '__main__': + try: + main() + except (Failure, ValueError, OSError, subprocess.SubprocessError) as error: + print('FAIL: ' + (str(error) if isinstance(error, Failure) else type(error).__name__), file=sys.stderr) + sys.exit(1) diff --git a/test/direct-upload-load.py b/test/direct-upload-load.py new file mode 100644 index 0000000..e2eda4b --- /dev/null +++ b/test/direct-upload-load.py @@ -0,0 +1,237 @@ +"""Compare proxy/direct uploads under synchronized load; measure the main API processes.""" +import argparse +import base64 +from concurrent.futures import ThreadPoolExecutor +import hashlib +import http.client +import importlib.util +import json +import statistics +import subprocess +import sys +import threading +import time +from urllib.parse import urlsplit + +from direct_client import ROOT, Client, Failure, check, docker, fixture, grant, put, complete, verify + +spec = importlib.util.spec_from_file_location('direct_benchmark', ROOT / 'test/direct-upload-benchmark.py') +benchmark = importlib.util.module_from_spec(spec) +spec.loader.exec_module(benchmark) +metrics = benchmark.metrics + + +class HttpFailure(Failure): + def __init__(self, stage, status, headers): + super().__init__(f'{stage} returned HTTP {status}') + self.details = {'stage': stage, 'status': status, + 'instance': headers.get('X-Instance-Id'), 'requestId': headers.get('X-Request-Id')} + + +def paced_request(method, url, headers, image, gate, duration): + target = urlsplit(url) + check(target.scheme == 'http', 'This benchmark targets the local HTTP stack') + connection = http.client.HTTPConnection(target.hostname, target.port, timeout=60) + try: + connection.putrequest(method, target.path + ('?' + target.query if target.query else '')) + for name, value in headers.items(): connection.putheader(name, value) + connection.endheaders() + first = min(65536, len(image) - 1) + connection.send(image[:first]) + gate.wait(timeout=60) + started = time.monotonic() + for offset in range(first, len(image), 65536): + end = min(offset + 65536, len(image)) + deadline = started + duration * (end - first) / (len(image) - first) + time.sleep(max(0, deadline - time.monotonic())) + connection.send(image[offset:end]) + response = connection.getresponse() + body = response.read(1024 * 1024 + 1) + check(len(body) <= 1024 * 1024, 'Unexpectedly large response') + return response.status, response.headers, body + finally: + connection.close() + + +def error_result(error, stage): + # Never serialize exceptions containing a signed URL or request headers. + return {'ok': False, 'stage': stage, 'errorType': type(error).__name__, + **getattr(error, 'details', {})} + + +def upload(client, owner, chat, image, digest, mode, gate, completion_gate, duration): + started = time.monotonic() + error = None + attachment = None + instance = None + stage = 'grant' if mode == 'direct' else 'proxy' + try: + if mode == 'direct': + capability = grant(client, owner, chat, image) + stage = 'put' + status, headers, _ = paced_request('PUT', capability['url'], capability['headers'], image, gate, duration) + if status != 200: raise HttpFailure(stage, status, headers) + else: + status, headers, body = paced_request( + 'POST', client.base + f"/api/v1/chats/{chat['id']}/attachments?filename=load.png", + {'Authorization': 'Bearer ' + owner['token'], 'Content-Type': 'image/png', + 'Content-Length': str(len(image))}, image, gate, duration) + if status != 201: raise HttpFailure(stage, status, headers) + attachment = metrics.shape(json.loads(body), 'Attachment') + instance = headers.get('X-Instance-Id') + except Exception as caught: + error = error_result(caught, stage) + gate.abort() + if mode == 'direct': + # All workers arrive even if their PUT failed; successful PUTs can still complete. + try: + completion_gate.wait(timeout=65) + if error is None: + stage = 'complete' + response = complete(client, owner, capability, [201, 400, 401, 404, 408, 409, 413, 415, 429, 500, 503]) + if response['status'] != 201: raise HttpFailure(stage, response['status'], response['headers']) + attachment = metrics.shape(json.loads(response['bytes']), 'Attachment') + instance = response['headers'].get('X-Instance-Id') + except Exception as caught: + if error is None: error = error_result(caught, stage) + if error is None: + try: + check(attachment['sha256'] == digest and attachment['size_bytes'] == len(image), 'Incorrect checksum/size') + check(attachment['chat_id'] == chat['id'] and attachment['owner_id'] == owner['id'], 'Incorrect ownership') + check(bool(instance), 'Missing instance ID') + except Exception as caught: + error = error_result(caught, 'validate_response') + return {**(error or {'ok': True, 'attachment': attachment, 'instance': instance}), + 'elapsedSeconds': time.monotonic() - started} + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--sizes', type=int, nargs='+', default=[1792]) + parser.add_argument('--concurrency', type=int, nargs='+', default=[1, 5, 10]) + parser.add_argument('--rounds', type=int, default=2) + parser.add_argument('--waves', type=int, default=2) + parser.add_argument('--upload-seconds', type=float, default=2) + args = parser.parse_args() + check(all(64 <= n <= 1800 for n in args.sizes), 'Invalid image size') + check(all(1 <= n <= 20 for n in args.concurrency), 'Concurrency must be 1..20') + check(1 <= args.rounds <= 3 and 1 <= args.waves <= 5, 'Invalid rounds/waves') + check(0.1 <= args.upload_seconds <= 5, 'Pacing must be 0.1..5 seconds') + report = {'status': 'running', 'cases': [], 'settings': vars(args), + 'method': 'Fresh API restart per case, exactly 2 verified warm-up uploads per replica via internal API addresses; temporary docker-exec client exits before measurement. Measured uploads use public Nginx. Two paced waves by default; all bodies are incomplete at the upload barrier, direct completes start at a second barrier. Full workflow latency includes grant/PUT/complete. External per-API-process RSS sampling at 50 ms; cgroup memory recorded separately. Independent replica peaks are not summed. No retries. Download verification is outside the measurement window.'} + output = ROOT / 'evidence/direct-upload-load.json' + def save(): output.write_text(json.dumps(report, indent=2) + '\n', encoding='utf-8') + probes = [] + try: + readiness = Client('http://127.0.0.1:8080', timeout=5) + deadline = time.monotonic() + 90 + routed = set() + while time.monotonic() < deadline: + try: routed.add(readiness.call('GET', '/health/ready')['headers']['X-Instance-Id']) + except Failure: pass + if len(routed) == 2: break + time.sleep(1) + check(len(routed) == 2, 'Both API replicas must be ready') + with fixture() as (client, owner, reader, chat, _): + containers = docker('compose', 'ps', '-q', 'api').split() + check(len(containers) == 2, 'Expected two replicas') + for container in containers: + flag = docker('exec', container, 'node', '-p', "process.env.UPLOAD_MEMORY_PROFILE || '0'").strip() + check(flag == '0', 'Disable detailed profiling for the load comparison') + cases = [(r + 1, side, concurrency, mode) for r in range(args.rounds) + for side in args.sizes for concurrency in args.concurrency + for mode in (['proxy', 'direct'] if r % 2 == 0 else ['direct', 'proxy'])] + for round_number, side, concurrency, mode in cases: + image = metrics.png_image(side) + metrics.chunk(b'IEND', b'') + digest = hashlib.sha256(image).hexdigest() + for probe in probes: probe.close() + probes.clear() + restarted = benchmark.restart_api(client, containers) + for container in containers: + probe = metrics.MemoryProbe(container) + probes.append(probe) + probe.ready = probe.receive('ready') + target_rows = docker('inspect', '--format', '{{.Config.Hostname}} {{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}', *containers).splitlines() + targets = [{'instance': row.split()[0], 'address': row.split()[1]} for row in target_rows] + source = (ROOT / 'test/warm-upload-replicas.mjs').read_text(encoding='utf-8') + warmup = json.loads(docker('exec', '-i', containers[0], 'node', '--input-type=module', '-e', source, + input=json.dumps({'targets': targets, 'owner': owner, 'reader': reader, + 'chat': chat, 'imageBase64': base64.b64encode(image).decode(), 'mode': mode}))) + check(warmup['counts'] == {p.ready['instance']: 2 for p in probes}, 'Unequal per-replica warm-up') + identities = docker('inspect', '--format', '{{.State.StartedAt}} {{.RestartCount}} {{.State.OOMKilled}} {{.State.Running}}', *containers) + workers = [Client(client.base, timeout=60) for _ in range(concurrency)] + case = {'round': round_number, 'sidePixels': side, 'fileBytes': len(image), 'mode': mode, + 'concurrency': concurrency, 'apiStatesAfterRestart': restarted, + 'warmupCounts': warmup['counts'], 'waves': [], 'verifiedDownloads': 0} + report['cases'].append(case) + results = [] + for probe in probes: probe.command('begin', 'begin') + started = time.monotonic() + try: + with ThreadPoolExecutor(max_workers=concurrency) as pool: + for wave in range(args.waves): + gate = threading.Barrier(concurrency + 1) + complete_gate = threading.Barrier(concurrency) + futures = [pool.submit(upload, worker, owner, chat, image, digest, mode, gate, complete_gate, args.upload_seconds) + for worker in workers] + overlapped = False + try: + gate.wait(timeout=60) + overlapped = True + except threading.BrokenBarrierError: pass + wave_results = [future.result() for future in futures] + results.extend(wave_results) + case['waves'].append({'wave': wave + 1, + 'incompleteBodiesAtBarrier': concurrency if overlapped else 0, + 'attempts': [{k: v for k, v in result.items() if k != 'attachment'} for result in wave_results]}) + finally: + case['elapsedSeconds'] = time.monotonic() - started + case['memory'] = [{'instance': p.ready['instance'], **p.command('end', 'summary')} for p in probes] + case['successfulUploads'] = sum(result['ok'] for result in results) + case['failedUploads'] = len(results) - case['successfulUploads'] + case['successfulUploadsPerSecond'] = case['successfulUploads'] / case['elapsedSeconds'] + case['instances'] = {name: sum(r['ok'] and r.get('instance') == name for r in results) + for name in sorted({r['instance'] for r in results if r['ok']})} + latencies = sorted(result['elapsedSeconds'] for result in results) + case['latencySeconds'] = {'median': statistics.median(latencies), 'max': max(latencies)} + case['apiIdentityUnchanged'] = identities == docker('inspect', '--format', '{{.State.StartedAt}} {{.RestartCount}} {{.State.OOMKilled}} {{.State.Running}}', *containers) + save() + check(case['apiIdentityUnchanged'], 'API restarted during load') + for sample in case['memory']: + check(sample['samples'] >= 2, 'Insufficient RSS samples') + check(sample['oomDelta'] == sample['oomKillDelta'] == 0, 'API OOM; stopping further load') + for result in results: + if result['ok']: + verify(client, reader, result['attachment'], image) + case['verifiedDownloads'] += 1 + check(len({r['attachment']['id'] for r in results if r['ok']}) == case['successfulUploads'], 'Duplicate attachment IDs') + if concurrency >= 5 and case['failedUploads'] == 0: + check(len(case['instances']) == 2, 'Concurrent work did not reach both replicas') + try: + case['apiReadyAfterCase'] = client.call('GET', '/health/ready')['status'] == 200 + except Failure: + case['apiReadyAfterCase'] = False + save() + peaks = ', '.join(f"{m['sampledPeakRssBytes'] / 2**20:.1f}" for m in case['memory']) + print(f"DONE: round {round_number}, {mode}, {side}px, N={concurrency}, {case['successfulUploads']}/{len(results)}, RSS MiB=[{peaks}]", flush=True) + for probe in probes: probe.close() + probes.clear() + report['fixturesRemoved'] = True + report['status'] = 'completed_with_errors' if any(c['failedUploads'] or not c['apiReadyAfterCase'] for c in report['cases']) else 'passed' + return report['status'] == 'passed' + except BaseException as error: + report['status'] = 'failed' + report['errorType'] = type(error).__name__ + if isinstance(error, Failure): report['failure'] = str(error) + raise + finally: + for probe in probes: probe.close() + save() + + +if __name__ == '__main__': + try: + sys.exit(0 if main() else 1) + except (Failure, ValueError, OSError, subprocess.SubprocessError) as error: + print('FAIL: ' + (str(error) if isinstance(error, Failure) else type(error).__name__), file=sys.stderr) + sys.exit(1) diff --git a/test/direct-uploads.py b/test/direct-uploads.py new file mode 100644 index 0000000..0954ab5 --- /dev/null +++ b/test/direct-uploads.py @@ -0,0 +1,134 @@ +"""Positive and negative presigned-upload scenarios on the pinned Compose stack.""" +import hashlib +from concurrent.futures import ThreadPoolExecutor +import json +from pathlib import Path +import struct +import subprocess +import sys +import time +from threading import Barrier +from urllib.parse import urlsplit, urlunsplit +import zlib + +from direct_client import ROOT, Failure, check, fixture, grant, put, complete, verify, cleanup_staging + + +def main(): + report = {'status': 'failed', 'checks': []} + def passed(name): + report['checks'].append(name) + print('PASS: ' + name, flush=True) + try: + with fixture() as (client, owner, reader, chat, foreign_chat): + image = (ROOT / 'tests/fixtures/sample.png').read_bytes() + cap = grant(client, owner, chat, image) + path = f"/api/v1/chats/{chat['id']}/attachment-uploads" + fields = {'filename': 'direct.png', 'content_type': 'image/png', 'size_bytes': len(image), + 'sha256': hashlib.sha256(image).hexdigest()} + client.call('POST', path, 401, body=fields) + client.call('POST', f"/api/v1/chats/{foreign_chat['id']}/attachment-uploads", 404, actor=owner, body=fields) + client.call('POST', path, 413, actor=owner, body={**fields, 'size_bytes': 10485761}) + client.call('POST', path, 400, actor=owner, body={**fields, 'filename': '../escape.png'}) + client.call('POST', path, 400, actor=owner, body={**fields, 'expires_in': 301}) + complete(client, reader, cap, 404) + complete(client, owner, cap, 404, path=cap['complete_url'].replace(chat['id'], foreign_chat['id'])) + complete(client, owner, cap, 409) + passed('grant ACL, strict input validation, owner-only complete and missing-upload handling') + + parsed = urlsplit(cap['url']) + unsigned = urlunsplit((parsed.scheme, parsed.netloc, parsed.path, '', '')) + put(client, cap, image, 403, url=unsigned) + put(client, cap, image, 403, headers={**cap['headers'], 'Content-Type': 'image/jpeg'}) + put(client, cap, image + b'x', 403, headers={**cap['headers'], 'Content-Length': str(len(image) + 1)}) + put(client, cap, image, 403, headers={**cap['headers'], 'If-None-Match': 'not-the-signed-value'}) + altered = bytes([image[0] ^ 1]) + image[1:] + put(client, cap, altered, 400) + passed('unsigned/tampered requests denied; wrong payload checksum rejected by RustFS') + + put(client, cap, image) + put(client, cap, image, 412) + attachment = complete(client, owner, cap)['json'] + check(attachment['id'] == cap['upload_id'], 'Unexpected attachment ID') + verify(client, reader, attachment, image) + check(complete(client, owner, cap)['json'] == attachment, 'Complete replay changed its result') + # URLs may be reused until expiry, but only in staging; the original must stay immutable. + put(client, cap, image) + check(complete(client, owner, cap)['json'] == attachment, 'Late PUT changed publication') + verify(client, reader, attachment, image) + client.message(owner, chat, '', attachments=[attachment['id']]) + passed('create-only PUT, publication, byte integrity, message binding and replay-safe immutable original') + + jpeg = subprocess.run(['node', '-e', "require('sharp')('tests/fixtures/sample.png').jpeg().toBuffer().then(b=>process.stdout.write(b))"], + cwd=ROOT, capture_output=True, check=True).stdout + jpg_cap = grant(client, owner, chat, jpeg, filename='direct.jpg', content_type='image/jpeg') + put(client, jpg_cap, jpeg) + verify(client, reader, complete(client, owner, jpg_cap)['json'], jpeg) + passed('JPEG publication preserves the exact original bytes') + + racing = grant(client, owner, chat, image) + put(client, racing, image) + barrier = Barrier(4) + def finish(_): + barrier.wait(timeout=30) + return complete(client, owner, racing, [201, 409]) + with ThreadPoolExecutor(max_workers=4) as pool: + replies = list(pool.map(finish, range(4))) + published = complete(client, owner, racing)['json'] + check(any(reply['status'] == 201 for reply in replies), 'No concurrent complete succeeded') + for reply in replies: + if reply['status'] == 201: + check(json.loads(reply['bytes']) == published, 'Concurrent publication returned different metadata') + verify(client, reader, published, image) + passed('simultaneous complete publishes one stable attachment across replicas') + + for payload, mime, expected in [(b'not an image', 'image/png', 415), (image, 'image/jpeg', 415)]: + invalid = grant(client, owner, chat, payload, content_type=mime) + put(client, invalid, payload) + complete(client, owner, invalid, expected) + complete(client, owner, invalid, 409) + client.call('GET', '/api/v1/attachments/' + invalid['upload_id'], 404, actor=owner) + passed('corrupt image and MIME spoof rejected without ready metadata') + + def chunk(kind, value): + return struct.pack('>I', len(value)) + kind + value + struct.pack('>I', zlib.crc32(kind + value)) + huge = b'\x89PNG\r\n\x1a\n' + chunk(b'IHDR', struct.pack('>IIBBBBB', 10000, 5000, 8, 2, 0, 0, 0)) + huge += chunk(b'IDAT', zlib.compress(b'\x00\x00\x00\x00')) + chunk(b'IEND', b'') + invalid = grant(client, owner, chat, huge) + put(client, invalid, huge) + complete(client, owner, invalid, 413) + passed('40-million-pixel limit enforced before full decoding') + + expired = grant(client, owner, chat, image, expires_in=3) + put(client, expired, image) + expired_empty = grant(client, owner, chat, image, expires_in=3) + time.sleep(4.2) + # Test expiry on a missing key: an existing object may yield 412 first. + put(client, expired_empty, image, 403) + put(client, expired, image, [403, 412]) + complete(client, owner, expired, 409) + swept = cleanup_staging(chat['id']) + check(swept['stagingDeleted'] >= 1, 'Expired staging object was not cleaned') + verify(client, reader, attachment, image) + passed('real URL expiry, expired-intent cleanup and published-object protection') + + proxy = client.call('POST', f"/api/v1/chats/{chat['id']}/attachments?filename=proxy.png", 201, + actor=owner, raw=image, headers={'Content-Type': 'image/png'}, schema='Attachment')['json'] + verify(client, reader, proxy, image) + passed('mandatory proxy upload remains compatible') + report['status'] = 'passed' + report['fixturesRemoved'] = True + except BaseException as error: + report['errorType'] = type(error).__name__ + if isinstance(error, Failure): report['failure'] = str(error) + raise + finally: + (ROOT / 'evidence/direct-uploads.json').write_text(json.dumps(report, indent=2) + '\n', encoding='utf-8') + + +if __name__ == '__main__': + try: + main() + except (Failure, ValueError, OSError, subprocess.SubprocessError) as error: + print('FAIL: ' + (str(error) if isinstance(error, Failure) else type(error).__name__), file=sys.stderr) + sys.exit(1) diff --git a/test/direct_client.py b/test/direct_client.py new file mode 100644 index 0000000..cf321e0 --- /dev/null +++ b/test/direct_client.py @@ -0,0 +1,95 @@ +"""Shared direct-upload fixtures. Signed URLs and credentials are never logged or persisted.""" +import base64 +from contextlib import contextmanager +import hashlib +import json +from pathlib import Path +import subprocess +import sys +import urllib.error +import urllib.request +import uuid + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / 'tests')) +from client import Client, Failure, check + + +def docker(*args, **kwargs): + return subprocess.run(['docker', *args], cwd=ROOT, capture_output=True, + text=True, timeout=120, check=True, **kwargs).stdout + + +def grant(client, owner, chat, payload, **overrides): + fields = {'filename': 'direct.png', 'content_type': 'image/png', + 'size_bytes': len(payload), 'sha256': hashlib.sha256(payload).hexdigest(), **overrides} + response = client.call('POST', f"/api/v1/chats/{chat['id']}/attachment-uploads", 201, actor=owner, body=fields) + check(response['headers'].get('Cache-Control') == 'no-store', 'Capability response must not be cached') + value = json.loads(response['bytes']) + check(value['method'] == 'PUT' and value['headers']['If-None-Match'] == '*', 'Incorrect upload constraints') + return value + + +def put(client, capability, payload, expected=200, headers=None, url=None): + request = urllib.request.Request(url or capability['url'], data=payload, method='PUT', + headers=headers if headers is not None else capability['headers']) + try: + response = client.opener.open(request, timeout=60) + except urllib.error.HTTPError as error: + response = error + except (OSError, urllib.error.URLError) as error: + raise Failure('Signed PUT connection failure: ' + type(error).__name__) from None + with response: + status = response.code + response.read(1024 * 1024) + allowed = [expected] if isinstance(expected, int) else expected + check(status in allowed, f'Signed PUT returned {status}; expected {allowed}') + return status + + +def complete(client, owner, capability, expected=201, path=None): + return client.call('POST', path or capability['complete_url'], expected, actor=owner, body={}, + schema='Attachment' if expected == 201 else None) + + +def verify(client, reader, attachment, payload): + path = '/api/v1/attachments/' + attachment['id'] + check(client.call('GET', path, actor=reader, schema='Attachment')['json'] == attachment, 'Metadata changed') + downloaded = client.call('GET', path + '/content', actor=reader)['bytes'] + check(downloaded == payload, 'Published original bytes differ') + check(attachment['sha256'] == hashlib.sha256(payload).hexdigest(), 'Published checksum differs') + + +@contextmanager +def fixture(): + client = Client('http://127.0.0.1:8080', timeout=60) + run_id = str(uuid.uuid4()) + actors, chats = [], [] + try: + for suffix in ['a', 'b']: + actors.append(client.user('cu' + run_id[:8] + suffix)) + for members, actor in [([a['id'] for a in actors], actors[0]), ([actors[1]['id']], actors[1])]: + chats.append(client.call('POST', '/api/v1/chats', 201, actor=actor, schema='Chat', + body={'title': 'direct-upload:' + run_id, 'member_ids': members})['json']) + yield client, actors[0], actors[1], chats[0], chats[1] + finally: + source = (ROOT / 'test/concurrent-cleanup.mjs').read_text(encoding='utf-8') + payload = json.dumps({'runId': run_id, 'chatIds': [chat['id'] for chat in chats], + 'userIds': [actor['id'] for actor in actors], 'kind': 'direct-upload'}) + docker('compose', 'exec', '-T', '--index', '1', 'api', 'node', '--input-type=module', '-e', source, input=payload) + + +def cleanup_staging(chat_id): + source = """const {createRequire}=await import('node:module'); +const require=createRequire(process.cwd()+'/package.json'); +const {PrismaService}=require('./dist/prisma/prisma.service.js'); +const {StorageService}=require('./dist/Storage/storage.service.js'); +const {cleanStaging}=require('./dist/Attachment/staging-cleanup.js'); +let input='';for await(const chunk of process.stdin)input+=chunk; +const chat=JSON.parse(input).chat; +if(!/^[0-9a-f-]{36}$/.test(chat))throw Error('invalid fixture chat'); +const db=new PrismaService();const storage=new StorageService(); +try{await db.onModuleInit();const report=await cleanStaging(db,storage,{apply:true,graceSeconds:1,prefix:'originals/'+chat+'/'},new Date());console.log(JSON.stringify(report));} +finally{storage.onModuleDestroy();await db.onModuleDestroy();}""" + return json.loads(docker('compose', 'exec', '-T', 'reconciler', 'node', '--input-type=module', '-e', source, + input=json.dumps({'chat': chat_id})).strip()) diff --git a/test/final-regression.py b/test/final-regression.py new file mode 100644 index 0000000..4974ecc --- /dev/null +++ b/test/final-regression.py @@ -0,0 +1,162 @@ +"""Run the existing regression suites sequentially and restore the local Compose stack.""" +from datetime import datetime, timezone +import hashlib +import json +import os +from pathlib import Path +from queue import Queue, Empty +import subprocess +import sys +import threading +import time + +from direct_client import ROOT, Client, Failure, check, docker + +RUNTIME = {'api', 'nginx', 'postgres', 'redis', 's3', 'reconciler'} + + +def fingerprint(): + paths = {ROOT / name for name in ['Dockerfile', 'compose.yaml', 'package.json', 'pnpm-lock.yaml', + 'tsconfig.json', 'tsconfig.build.json', 'nest-cli.json', 'prisma.config.ts']} + for directory in ['src', 'prisma', 'test', 'tests', 'scripts', 'contracts', 'infra']: + paths.update(path for path in (ROOT / directory).rglob('*') if path.is_file() + and 'generated' not in path.parts and '__pycache__' not in path.parts) + digest = hashlib.sha256() + for path in sorted(paths): + digest.update(path.relative_to(ROOT).as_posix().encode() + b'\0' + path.read_bytes() + b'\0') + return digest.hexdigest() + + +def states(): + raw = docker('compose', 'ps', '--all', '--format', 'json').strip() + records = json.loads(raw) if raw.startswith('[') else [json.loads(line) for line in raw.splitlines()] + return [{'service': r['Service'], 'name': r['Name'], 'id': r['ID'], + 'state': r['State'], 'health': r.get('Health', ''), 'image': r['Image']} + for r in records if r['Service'] in RUNTIME] + + +def healthy(records): + return (len(records) == 7 and sum(r['service'] == 'api' for r in records) == 2 + and {r['service'] for r in records} == RUNTIME + and all(r['state'] == 'running' and r['health'] == 'healthy' for r in records)) + + +def wait_ready(): + client = Client('http://127.0.0.1:8080', timeout=5) + routed = set() + deadline = time.monotonic() + 120 + while time.monotonic() < deadline: + current = states() + if healthy(current): + try: + routed.add(client.call('GET', '/health/ready')['headers']['X-Instance-Id']) + if len(routed) == 2: return current + except Failure: pass + time.sleep(1) + raise Failure('Complete stack and both Nginx upstreams did not become ready') + + +def main(): + report = {'status': 'running', 'startedAt': datetime.now(timezone.utc).isoformat(), + 'sourceSha256': fingerprint(), 'steps': [], + 'scope': 'Existing suites, sequential execution, no load benchmark rerun. IPv4 public endpoint. All runtime services restored without deleting volumes.'} + output = ROOT / 'evidence/final-regression.json' + def save(): output.write_text(json.dumps(report, indent=2, ensure_ascii=False) + '\n', encoding='utf-8') + def step(name, command, timeout): + entry = {'name': name, 'command': command, 'status': 'running', 'output': []} + report['steps'].append(entry) + save() + print('START: ' + name, flush=True) + started = time.monotonic() + process = subprocess.Popen(command, cwd=ROOT, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, + text=True, encoding='utf-8', errors='replace', bufsize=1) + messages = Queue() + def read(): + try: + for line in process.stdout: messages.put(line.rstrip()) + finally: messages.put(None) + threading.Thread(target=read, daemon=True).start() + try: + while True: + if time.monotonic() - started > timeout: + process.kill() + process.wait(timeout=15) + raise Failure('Regression step timed out: ' + name) + try: line = messages.get(timeout=1) + except Empty: continue + if line is None: break + # Keep deliberately emitted test results only; no request/env dumps or stacks. + if line.startswith(('PASS:', 'FAIL:', 'Test Suites:', 'Tests:')): + entry['output'].append(line) + print(line, flush=True) + entry['exitCode'] = process.wait(timeout=15) + check(entry['exitCode'] == 0, f'Regression step failed: {name} (exit {entry["exitCode"]})') + entry['status'] = 'passed' + print('PASS: regression step ' + name, flush=True) + except BaseException: + entry['status'] = 'failed' + if process.poll() is None: + process.kill() + process.wait(timeout=15) + raise + finally: + process.stdout.close() + entry['elapsedSeconds'] = time.monotonic() - started + save() + py = [sys.executable, '-X', 'utf8', '-u'] + pnpm = ['cmd.exe', '/d', '/c', 'pnpm.cmd'] if os.name == 'nt' else ['pnpm'] + try: + report['before'] = wait_ready() + api_ids = docker('compose', 'ps', '-q', 'api').split() + report['apiImages'] = docker('inspect', '--format', '{{.Config.Hostname}} {{.Image}}', *api_ids).splitlines() + for container in api_ids: + check(docker('exec', container, 'node', '-p', "process.env.UPLOAD_MEMORY_PROFILE || '0'").strip() == '0', 'Disable diagnostic profiling') + step('offline_contract', py + ['scripts/check_contract.py'], 90) + step('unit', pnpm + ['test', '--runInBand'], 240) + step('lint', pnpm + ['lint'], 180) + step('public_smoke_before', py + ['tests/smoke.py', '--base-url', 'http://127.0.0.1:8080'], 120) + step('oversized_upload_transport', py + ['test/oversized-uploads.py'], 180) + step('attachments_s3_outage_persistence', py + ['test/attachments.py', '--base-url', 'http://127.0.0.1:8080', '--lifecycle'], 600) + wait_ready() + step('reconciliation_crash_and_database_outage', py + ['test/run-reconcile.py'], 180) + step('public_persistence_and_each_api_failover', py + ['test/hooks.py'], 1200) + wait_ready() + step('swagger_and_attachment_failover', py + ['test/replicas.py', '--base-url', 'http://127.0.0.1:8080'], 240) + wait_ready() + step('interrupted_upload_and_receive_deadline', py + ['test/upload-interruption.py'], 240) + step('presigned_positive_and_negative', py + ['test/direct-uploads.py'], 240) + for name, script in [('s3_restricted_roles', 's3-permissions.mjs'), + ('s3_conditional_write_checksum_copy', 's3-direct-capabilities.mjs')]: + step(name, ['docker', 'compose', 'run', '--rm', '--no-deps', '-T', + '-v', f'{ROOT / "test"}:/app/test:ro', '--entrypoint', 'node', 's3-init', 'test/' + script], 180) + step('public_smoke_after', py + ['tests/smoke.py', '--base-url', 'http://127.0.0.1:8080'], 120) + report['sourceUnchanged'] = fingerprint() == report['sourceSha256'] + check(report['sourceUnchanged'], 'Source changed during regression') + report['status'] = 'passed' + except BaseException as error: + report['status'] = 'failed' + report['errorType'] = type(error).__name__ + if isinstance(error, Failure): report['failure'] = str(error) + raise + finally: + try: + if not healthy(states()): + docker('compose', 'up', '-d', '--no-build', '--wait', '--wait-timeout', '180') + report['after'] = wait_ready() + report['stackRestored'] = True + except Exception as error: + report['stackRestored'] = False + report['restoreErrorType'] = type(error).__name__ + report['status'] = 'failed' + report['finishedAt'] = datetime.now(timezone.utc).isoformat() + save() + check(report['status'] == 'passed' and report['stackRestored'], 'Final regression or stack restoration failed') + print('PASS: final regression; all suites passed; complete stack ready', flush=True) + + +if __name__ == '__main__': + try: + main() + except (Failure, OSError, subprocess.SubprocessError) as error: + print('FAIL: ' + (str(error) if isinstance(error, Failure) else type(error).__name__), file=sys.stderr) + sys.exit(1) diff --git a/test/hooks.py b/test/hooks.py new file mode 100644 index 0000000..3f0549f --- /dev/null +++ b/test/hooks.py @@ -0,0 +1,133 @@ +"""Run unchanged public resilience tests and record which Compose processes changed.""" +import argparse +import json +import os +from pathlib import Path +import subprocess +import sys +import time + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / 'tests')) +from client import Client + + +def docker(*args): + return subprocess.run(['docker', *args], cwd=ROOT, capture_output=True, + text=True, check=True, timeout=120).stdout + + +def snapshot(): + ids = docker('compose', 'ps', '--all', '-q').split() + states = json.loads(docker('inspect', *ids)) + return {state['Name'].lstrip('/'): { + 'service': state['Config']['Labels']['com.docker.compose.service'], + 'instance': state['Config']['Hostname'], 'startedAt': state['State']['StartedAt'], + 'status': state['State']['Status'], 'restartCount': state['RestartCount'], + } for state in states if state['Config']['Labels']['com.docker.compose.service'] + in {'api', 'nginx', 'postgres', 'redis', 's3', 'reconciler'}} + + +def public_test(mode): + extension = 'cmd' if os.name == 'nt' else 'sh' + hook = ROOT / 'scripts' / (('restart.' if mode == 'persistence' else 'stop-one.') + extension) + result = subprocess.run([sys.executable, '-X', 'utf8', '-u', str(ROOT / 'tests/resilience.py'), + '--mode', mode, '--action-script', str(hook), '--base-url', 'http://127.0.0.1:8080'], + cwd=ROOT, capture_output=True, text=True, timeout=240) + print(result.stdout, end='', flush=True) + if result.returncode: + raise RuntimeError(f'Public {mode} test failed: {result.stderr.strip() or result.stdout.strip()}') + return result.stdout.strip() + + +def warm_writes(): + # Exercise writes and attachment I/O before measuring a steady-state API failure. + client = Client('http://127.0.0.1:8080', timeout=10) + alice, _, _, chat = client.bootstrap() + timings = {} + for index in range(30): + result = client.message(alice, chat, f'Failover warm-up {index}') + timings.setdefault(result['headers']['X-Instance-Id'], []).append(result['elapsed']) + if len(timings) == 2 and min(map(len, timings.values())) >= 3: + break + assert len(timings) == 2 and min(map(len, timings.values())) >= 3, 'Warm-up did not reach both API write paths' + result = {instance: {'writes': len(values), 'minSeconds': min(values), 'maxSeconds': max(values), + 'uploadSeconds': [], 'downloadSeconds': []} + for instance, values in timings.items()} + image = (ROOT / 'tests/fixtures/sample.png').read_bytes() + for index in range(30): + uploaded = client.call('POST', '/api/v1/chats/' + chat['id'] + '/attachments?filename=warmup.png', + 201, actor=alice, raw=image, headers={'Content-Type': 'image/png'}, schema='Attachment') + result[uploaded['headers']['X-Instance-Id']]['uploadSeconds'].append(uploaded['elapsed']) + path = '/api/v1/attachments/' + uploaded['json']['id'] + client.call('GET', path, actor=alice, schema='Attachment') + downloaded = client.call('GET', path + '/content', actor=alice) + assert downloaded['bytes'] == image, 'Warm-up attachment checksum mismatch' + result[downloaded['headers']['X-Instance-Id']]['downloadSeconds'].append(downloaded['elapsed']) + if all(entry['uploadSeconds'] and entry['downloadSeconds'] for entry in result.values()): + break + assert all(entry['uploadSeconds'] and entry['downloadSeconds'] for entry in result.values()), 'Attachment warm-up did not reach both replicas' + return result + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--mode', choices=['all', 'failover'], default='all') + args = parser.parse_args() + report = {'status': 'failed', 'failover': []} + report['writeWarmups'] = [] + try: + before = snapshot() + assert sum(state['service'] == 'api' for state in before.values()) == 2, 'Expected two API replicas' + assert all(state['status'] == 'running' for state in before.values()), 'Start the complete stack first' + if args.mode == 'all': + output = public_test('persistence') + after = snapshot() + assert before.keys() == after.keys(), 'Restart hook recreated runtime containers' + assert all(state['startedAt'] != before[name]['startedAt'] and state['status'] == 'running' + for name, state in after.items()), 'Hook did not restart every runtime service' + report['persistence'] = {'before': before, 'after': after, 'output': output} + else: + previous = json.loads((ROOT / 'evidence/hooks.json').read_text(encoding='utf-8')) + assert previous.get('persistence'), 'Run the full suite first to record persistence evidence' + report['persistence'] = previous['persistence'] + report['persistenceEvidenceReused'] = True + after = before + expected = {state['instance'] for state in after.values() if state['service'] == 'api'} + stopped_instances = set() + # The public test selects the replica that served its POST, so repeat independent + # successful scenarios until each replica has been targeted. No failing run is retried. + for _ in range(6): + if stopped_instances == expected: + break + before = snapshot() + try: + report['writeWarmups'].append(warm_writes()) + output = public_test('failover') + after = snapshot() + stopped = [state for state in after.values() if state['service'] == 'api' and state['status'] == 'exited'] + assert len(stopped) == 1, 'Stop-one hook did not leave exactly one API stopped' + assert all(state['startedAt'] == before[name]['startedAt'] and state['status'] == 'running' + for name, state in after.items() if state['service'] != 'api'), 'Failover touched non-API services' + target = stopped[0]['instance'] + stopped_instances.add(target) + report['failover'].append({'stoppedInstance': target, 'before': before, 'after': after, 'output': output}) + finally: + docker('compose', 'up', '-d', '--no-deps', '--no-recreate', '--no-build', '--wait', '--wait-timeout', '90', 'api') + time.sleep(5) # Allow the Nginx readiness poll to observe the restored API. + assert stopped_instances == expected, 'Public scenarios did not cover both API replicas' + report['status'] = 'passed' + print('PASS: public persistence/failover hooks; all stores restarted; each API stopped separately; replicas restored') + except (AssertionError, RuntimeError, OSError, subprocess.SubprocessError) as error: + report['error'] = str(error) if isinstance(error, (AssertionError, RuntimeError)) else type(error).__name__ + raise + finally: + (ROOT / 'evidence/hooks.json').write_text(json.dumps(report, indent=2) + '\n', encoding='utf-8') + + +if __name__ == '__main__': + try: + main() + except (AssertionError, RuntimeError, OSError, subprocess.SubprocessError) as error: + print('FAIL: ' + (str(error) if isinstance(error, (AssertionError, RuntimeError)) else type(error).__name__), file=sys.stderr) + sys.exit(1) diff --git a/test/oversized-uploads.py b/test/oversized-uploads.py new file mode 100644 index 0000000..4260fd8 --- /dev/null +++ b/test/oversized-uploads.py @@ -0,0 +1,45 @@ +"""Real Nginx/API rejection of oversized Content-Length and chunked bodies.""" +import json +import subprocess +import sys + +from direct_client import ROOT, Failure, check, fixture, verify + + +def main(): + report = {'status': 'failed', 'attempts': []} + try: + with fixture() as (client, owner, reader, chat, _): + payload = b'x' * (10485760 + 1) + path = f"/api/v1/chats/{chat['id']}/attachments?filename=oversize.png" + for index in range(16): + mode = 'content-length' if index % 2 == 0 else 'chunked' + body = payload if mode == 'content-length' else ( + payload[offset:offset + 65536] for offset in range(0, len(payload), 65536)) + result = client.call('POST', path, 413, actor=owner, raw=body, + headers={'Content-Type': 'image/png'}) + check(result['json']['error']['code'] == 'payload_too_large', 'Incorrect error code') + report['attempts'].append({'mode': mode, 'status': result['status'], + 'instance': result['headers']['X-Instance-Id']}) + check(len({row['instance'] for row in report['attempts']}) == 2, 'Oversize requests missed a replica') + image = (ROOT / 'tests/fixtures/sample.png').read_bytes() + attachment = client.call('POST', path.replace('oversize.png', 'valid.png'), 201, + actor=owner, raw=image, headers={'Content-Type': 'image/png'}, schema='Attachment')['json'] + verify(client, reader, attachment, image) + report['fixturesRemoved'] = True + report['status'] = 'passed' + print('PASS: 16 oversized Content-Length/chunked uploads through Nginx returned canonical 413; both APIs covered; subsequent upload/download verified') + except BaseException as error: + report['errorType'] = type(error).__name__ + if isinstance(error, Failure): report['failure'] = str(error) + raise + finally: + (ROOT / 'evidence/oversized-uploads.json').write_text(json.dumps(report, indent=2) + '\n', encoding='utf-8') + + +if __name__ == '__main__': + try: + main() + except (Failure, ValueError, OSError, subprocess.SubprocessError) as error: + print('FAIL: ' + (str(error) if isinstance(error, Failure) else type(error).__name__), file=sys.stderr) + sys.exit(1) diff --git a/test/reconcile.mjs b/test/reconcile.mjs new file mode 100644 index 0000000..7c6117a --- /dev/null +++ b/test/reconcile.mjs @@ -0,0 +1,224 @@ +// Run through test/run-reconcile.py with distinct writer/scanner credentials. +import assert from 'node:assert/strict'; +import { createRequire } from 'node:module'; +import { randomUUID, createHash } from 'node:crypto'; +import { spawn, spawnSync } from 'node:child_process'; +import { once } from 'node:events'; +import { setTimeout as delay } from 'node:timers/promises'; + +const require = createRequire(`${process.cwd()}/package.json`); +const { PrismaService } = require('./dist/prisma/prisma.service.js'); +const { StorageService } = require('./dist/Storage/storage.service.js'); +const { ReconcileService } = require('./dist/Attachment/reconcile.service.js'); +const db = new PrismaService(); +const storage = new StorageService(); +const scannerCredentials = JSON.parse( + process.env.RECONCILE_TEST_SCANNER_CREDENTIALS, +); +delete process.env.RECONCILE_TEST_SCANNER_CREDENTIALS; +const writerCredentials = { + S3_ACCESS_KEY_ID: process.env.S3_ACCESS_KEY_ID, + S3_SECRET_ACCESS_KEY: process.env.S3_SECRET_ACCESS_KEY, +}; +Object.assign(process.env, scannerCredentials); +const scanner = new StorageService(); +Object.assign(process.env, writerCredentials); +const events = []; +const service = new ReconcileService(db, scanner, (event) => + events.push(event), +); +const bytes = Buffer.from('isolated reconciliation fixture'); +const keys = []; +let user; +let chat; +let writer; +const originalStat = scanner.stat.bind(scanner); + +function newKey() { + const key = `originals/${chat.id}/${randomUUID()}`; + keys.push(key); + return key; +} + +function metadata(key) { + return { + chatId: chat.id, + ownerId: user.id, + objectKey: key, + filename: 'fixture.png', + contentType: 'image/png', + sizeBytes: bytes.length, + sha256: createHash('sha256').update(bytes).digest('hex'), + }; +} + +try { + await db.onModuleInit(); + user = await db.user.create({ + data: { + username: `rc_${randomUUID().replaceAll('-', '').slice(0, 20)}`, + displayName: 'Reconciliation test', + }, + }); + chat = await db.chat.create({ + data: { + title: 'Isolated reconciliation fixtures', + members: { create: { userId: user.id, position: 0 } }, + }, + }); + const prefix = `originals/${chat.id}/`; + const options = { apply: true, graceSeconds: 2, prefix }; + const published = newKey(); + await storage.put(published, bytes, 'image/png'); + await db.attachment.create({ data: metadata(published) }); + const orphan = newKey(); + // This is a separate Node process with its own DB transaction and S3 client. + const writerCode = ` + const {PrismaService}=require('./dist/prisma/prisma.service.js'); + const {StorageService}=require('./dist/Storage/storage.service.js'); + const {tryAttachmentObjectLock,OBJECT_TRANSACTION}=require('./dist/Attachment/object-lock.js'); + const db=new PrismaService(); const s3=new StorageService(); + (async()=>{ await db.onModuleInit(); await db.$transaction(async tx=>{ + if(!await tryAttachmentObjectLock(tx,process.env.RECONCILE_TEST_KEY)) throw Error('lock'); + await s3.put(process.env.RECONCILE_TEST_KEY,Buffer.from('orphan fixture'),'image/png'); + process.send('written'); + await new Promise(()=>{setInterval(()=>{},1000)}); + },OBJECT_TRANSACTION); })().catch(()=>process.exit(1));`; + writer = spawn(process.execPath, ['-e', writerCode], { + cwd: process.cwd(), + env: { ...process.env, RECONCILE_TEST_KEY: orphan }, + stdio: ['ignore', 'ignore', 'ignore', 'ipc'], + }); + const written = await Promise.race([ + once(writer, 'message').then(([message]) => message), + once(writer, 'exit').then(() => { + throw new Error('writer exited before PUT'); + }), + delay(15000, 'timeout', { ref: false }), + ]); + assert.equal(written, 'written'); + // Even when an object looks twenty minutes old, its active writer lock protects it. + const whileWriting = await service.run( + options, + new Date(Date.now() + 1200000), + ); + assert.equal(whileWriting.lockedObjects, 1); + assert.equal(whileWriting.deletedObjects, 0); + assert.equal( + writer.exitCode, + null, + 'writer unexpectedly exited before the simulated crash', + ); + assert.equal(writer.signalCode, null); + writer.kill('SIGKILL'); + await once(writer, 'exit'); + writer = undefined; + assert.equal( + await db.attachment.findUnique({ where: { objectKey: orphan } }), + null, + ); + + const lateReference = newKey(); + const renewed = newKey(); + await storage.put(lateReference, bytes, 'image/png'); + await storage.put(renewed, bytes, 'image/png'); + await delay(3100); + + // An actual refused DB connection must never turn into "metadata absent". + const url = new URL(process.env.DATABASE_URL); + url.port = '1'; + const savedUrl = process.env.DATABASE_URL; + process.env.DATABASE_URL = url.toString(); + const unavailable = new PrismaService(); + process.env.DATABASE_URL = savedUrl; + try { + await assert.rejects(() => + new ReconcileService(unavailable, scanner).run(options), + ); + assert.ok(await storage.stat(orphan)); + } finally { + await unavailable.onModuleDestroy(); + } + + const fresh = newKey(); + await storage.put(fresh, bytes, 'image/png'); + const scanTime = new Date(); + let referenced = false; + let refreshed = false; + scanner.stat = async (key) => { + if (key === lateReference && !referenced) { + referenced = true; + // Simulate a metadata commit between the first DB lookup and the final check. + await db.attachment.create({ data: metadata(key) }); + } + if (key === renewed && !refreshed) { + refreshed = true; + await storage.put(key, bytes, 'image/png'); + } + return originalStat(key); + }; + const dryRun = await service.run({ ...options, apply: false }, scanTime); + assert.equal(dryRun.orphanCandidates, 1); + assert.equal(dryRun.deletedObjects, 0); + assert.ok(await storage.stat(orphan)); + const applied = await service.run(options, scanTime); + assert.equal(applied.deletedObjects, 1); + assert.equal(await storage.stat(orphan), null); + for (const key of [published, lateReference, renewed, fresh]) + assert.ok(await storage.stat(key)); + assert.equal((await service.run(options, scanTime)).deletedObjects, 0); + scanner.stat = originalStat; + + const missing = newKey(); + const missingRow = await db.attachment.create({ data: metadata(missing) }); + const report = await service.run({ ...options, apply: false }, scanTime); + assert.equal(report.missingObjects, 1); + assert.ok(await db.attachment.findUnique({ where: { id: missingRow.id } })); + assert.ok( + events.some( + (event) => + event.event === 'missing_object' && + event.attachmentId === missingRow.id, + ), + ); + const cli = spawnSync( + process.execPath, + ['dist/Attachment/reconcile.cli.js', '--dry-run', '--prefix', prefix], + { + encoding: 'utf8', + timeout: 30000, + env: { ...process.env, ...scannerCredentials }, + }, + ); + assert.equal( + cli.status, + 2, + 'CLI must report missing bytes as an integrity incident', + ); + const summary = cli.stdout + .split('\n') + .filter(Boolean) + .map((line) => JSON.parse(line)) + .find((line) => line.event === 'reconcile_summary'); + assert.equal(summary.graceSeconds, 600); + assert.equal(summary.mode, 'dry-run'); + assert.equal(summary.missingObjects, 1); + console.log( + 'PASS: real writer crash, DB outage, dry-run, orphan deletion, active/fresh/referenced protection, repeat run and missing-object reporting.', + ); +} finally { + if (writer && writer.exitCode === null && writer.signalCode === null) { + writer.kill('SIGKILL'); + await once(writer, 'exit'); + } + scanner.stat = originalStat; + for (const key of keys) await storage.remove(key); + if (chat) { + await db.attachment.deleteMany({ where: { chatId: chat.id } }); + await db.chat.delete({ where: { id: chat.id } }); + } + if (user) await db.user.delete({ where: { id: user.id } }); + storage.onModuleDestroy(); + scanner.onModuleDestroy(); + await db.onModuleDestroy(); +} diff --git a/test/replicas.py b/test/replicas.py new file mode 100644 index 0000000..e65c67e --- /dev/null +++ b/test/replicas.py @@ -0,0 +1,88 @@ +"""Verify two API replicas, published Swagger and attachment failover through Nginx.""" +import argparse +import json +from pathlib import Path +import subprocess +import sys +import time +import uuid + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / 'tests')) +from client import Client, Failure, check, run + + +def docker(*args): + result = subprocess.run(['docker', *args], cwd=ROOT, capture_output=True, text=True) + check(result.returncode == 0, 'Docker operation failed: ' + args[0]) + return result.stdout.strip() + + +def wait_both(client, actor, expected): + deadline = time.monotonic() + 90 + observed = set() + while time.monotonic() < deadline: + try: + response = client.call('GET', '/api/v1/users/me', actor=actor, schema='User') + observed.add(response['headers']['X-Instance-Id']) + if observed == expected: + return + except Failure: + pass + time.sleep(0.1) + raise Failure('both replicas did not become available through Nginx') + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--base-url', default='http://localhost:8080') + args = parser.parse_args() + ids = docker('compose', 'ps', '-q', 'api').splitlines() + check(len(ids) == 2, 'expected exactly two running API replicas') + names = docker('inspect', '--format', '{{.Config.Hostname}}', *ids).splitlines() + containers = dict(zip(names, ids)) + c = Client(args.base_url) + alice, bob, _, chat = c.bootstrap() + wait_both(c, alice, set(names)) + contract = json.loads((ROOT / 'contracts/openapi.json').read_text(encoding='utf8')) + documented = set() + for _ in range(20): + response = c.call('GET', '/swagger-json') + document = json.loads(response['bytes']) + documented.add(response['headers']['X-Instance-Id']) + check(document['openapi'] == contract['openapi'], 'wrong OpenAPI version') + for path, methods in contract['paths'].items(): + for method, operation in methods.items(): + actual = document['paths'][path][method] + check(all(actual.get(key) == value for key, value in operation.items()), + 'Swagger differs from contract: ' + method + ' ' + path) + check(actual['security'] == operation.get('security', contract.get('security', [])), + 'Swagger security differs from contract') + for name, schema in contract['components']['schemas'].items(): + check(document['components']['schemas'][name] == schema, 'Swagger schema differs: ' + name) + if documented == set(names): + break + check(documented == set(names), 'Swagger did not respond from both replicas') + content = (ROOT / 'tests/fixtures/sample.png').read_bytes() + uploaded = c.call('POST', '/api/v1/chats/' + chat['id'] + '/attachments?filename=failover.png', + 201, actor=alice, raw=content, headers={'Content-Type': 'image/png'}, schema='Attachment') + attachment = uploaded['json'] + target = uploaded['headers']['X-Instance-Id'] + key = uuid.uuid4().hex + message = c.message(alice, chat, '', key, [attachment['id']])['json'] + try: + print('Stopping the replica that accepted the attachment.', flush=True) + docker('stop', containers[target]) + downloaded = c.call('GET', '/api/v1/attachments/' + attachment['id'] + '/content', actor=bob) + check(downloaded['headers']['X-Instance-Id'] != target, 'stopped replica answered') + check(downloaded['bytes'] == content, 'attachment changed after failover') + check(c.message(alice, chat, '', key, [attachment['id']])['json'] == message, + 'idempotency replay changed on the surviving replica') + print('PASS: two replicas, canonical Swagger and attachment/idempotency failover.', flush=True) + finally: + docker('start', containers[target]) + wait_both(c, alice, set(names)) + + +if __name__ == '__main__': + run(main) diff --git a/test/run-reconcile.py b/test/run-reconcile.py new file mode 100644 index 0000000..d388681 --- /dev/null +++ b/test/run-reconcile.py @@ -0,0 +1,43 @@ +"""Run the isolated writer/scanner integration test without logging credentials.""" +import json +from pathlib import Path +import subprocess +import sys + +ROOT = Path(__file__).resolve().parent.parent + + +def main(): + result = subprocess.run( + ['docker', 'compose', 'exec', '-T', 'reconciler', 'node', '-e', + 'process.stdout.write(JSON.stringify({S3_ACCESS_KEY_ID:process.env.S3_ACCESS_KEY_ID,' + 'S3_SECRET_ACCESS_KEY:process.env.S3_SECRET_ACCESS_KEY}))'], + cwd=ROOT, capture_output=True, text=True, check=True, timeout=30, + ) + credentials = json.loads(result.stdout) + if not all(credentials.values()): + raise RuntimeError('Reconciler credentials are missing') + payload = json.dumps({ + 'credentials': credentials, + 'source': (ROOT / 'test/reconcile.mjs').read_text(encoding='utf-8'), + }) + loader = ( + "let input='';for await(const chunk of process.stdin)input+=chunk;" + "const {source,credentials}=JSON.parse(input);" + "process.env.RECONCILE_TEST_SCANNER_CREDENTIALS=JSON.stringify(credentials);" + "await import('data:text/javascript;base64,'+" + "Buffer.from(source+'\\n//# sourceURL=reconcile.integration.mjs').toString('base64'));" + ) + return subprocess.run( + ['docker', 'compose', 'exec', '-T', '--index', '1', 'api', + 'node', '--input-type=module', '-e', loader], + cwd=ROOT, input=payload, text=True, timeout=120, + ).returncode + + +if __name__ == '__main__': + try: + sys.exit(main()) + except (subprocess.SubprocessError, ValueError, RuntimeError) as error: + print(f'Reconciliation test could not run: {type(error).__name__}', file=sys.stderr) + sys.exit(1) diff --git a/test/s3-direct-capabilities.mjs b/test/s3-direct-capabilities.mjs new file mode 100644 index 0000000..1a32a98 --- /dev/null +++ b/test/s3-direct-capabilities.mjs @@ -0,0 +1,91 @@ +import assert from 'node:assert/strict'; +import { randomUUID, createHash } from 'node:crypto'; +import { + S3Client, + PutObjectCommand, + CopyObjectCommand, + GetObjectCommand, + DeleteObjectCommand, +} from '@aws-sdk/client-s3'; +import { bootstrapSettings } from '../infra/rustfs/policies.mjs'; + +const config = bootstrapSettings(); +const client = new S3Client({ + endpoint: config.endpoint, + region: config.region, + forcePathStyle: true, + credentials: config.api, + maxAttempts: 1, +}); +const chat = randomUUID(); +const source = `staging/${chat}/${randomUUID()}`; +const invalid = `staging/${chat}/${randomUUID()}`; +const original = `originals/${chat}/${randomUUID()}`; +const data = Buffer.from('conditional direct upload fixture'); +const checksum = (value) => createHash('sha256').update(value).digest('base64'); +const send = (Command, value) => + client.send(new Command({ Bucket: config.bucket, ...value }), { + abortSignal: AbortSignal.timeout(15000), + }); +try { + const put = await send(PutObjectCommand, { + Key: source, + Body: data, + ContentType: 'image/png', + IfNoneMatch: '*', + ChecksumSHA256: checksum(data), + }); + await assert.rejects( + () => + send(PutObjectCommand, { + Key: source, + Body: data, + IfNoneMatch: '*', + ChecksumSHA256: checksum(data), + }), + (error) => error.$metadata?.httpStatusCode === 412, + 'Pinned RustFS must enforce create-only PUT', + ); + await assert.rejects( + () => + send(PutObjectCommand, { + Key: invalid, + Body: data, + ChecksumSHA256: Buffer.alloc(32).toString('base64'), + }), + (error) => error.$metadata?.httpStatusCode === 400, + 'Pinned RustFS must validate the uploaded checksum', + ); + await assert.rejects( + () => + send(CopyObjectCommand, { + Key: original, + CopySource: `${config.bucket}/${source}`, + CopySourceIfMatch: '"wrong"', + }), + (error) => error.$metadata?.httpStatusCode === 412, + 'Pinned RustFS must reject changed copy sources', + ); + await send(CopyObjectCommand, { + Key: original, + CopySource: `${config.bucket}/${source}`, + CopySourceIfMatch: put.ETag, + }); + const value = await send(GetObjectCommand, { Key: original }); + assert.equal(await value.Body.transformToString(), data.toString()); + const anonymous = await fetch( + `${config.endpoint}/${config.bucket}/${original}`, + ); + assert.equal(anonymous.status, 403); + await anonymous.body?.cancel(); + console.log( + 'PASS: RustFS 1.0.4 enforces If-None-Match, SHA-256 and conditional server-side copy', + ); +} finally { + await Promise.all( + [source, invalid, original].map((Key) => + send(DeleteObjectCommand, { Key }), + ), + ); + client.destroy(); +} diff --git a/test/s3-permissions.mjs b/test/s3-permissions.mjs new file mode 100644 index 0000000..e090a91 --- /dev/null +++ b/test/s3-permissions.mjs @@ -0,0 +1,140 @@ +import assert from 'node:assert/strict'; +import { randomUUID } from 'node:crypto'; +import * as s3 from '@aws-sdk/client-s3'; +import { adminRequest } from '../infra/rustfs/admin.mjs'; +import { bootstrapSettings } from '../infra/rustfs/policies.mjs'; + +const settings = bootstrapSettings(); +const Bucket = settings.bucket; +const clients = Object.fromEntries( + ['root', 'api', 'reconciler'].map((role) => [ + role, + new s3.S3Client({ + endpoint: settings.endpoint, + region: settings.region, + forcePathStyle: true, + maxAttempts: 1, + credentials: role === 'root' ? settings.credentials : settings[role], + }), + ]), +); +const id = randomUUID(); +const Key = `originals/iam-test/${id}`; +const outside = `iam-test/${id}`; +const otherBucket = `iam-test-${id}`; +const send = (role, Command, args = {}) => + clients[role].send(new Command({ Bucket, ...args }), { + abortSignal: AbortSignal.timeout(30000), + }); +async function denied(action) { + await assert.rejects( + action, + (error) => error.$metadata?.httpStatusCode === 403 || error.status === 403, + ); +} +let failed = false; +try { + await send('root', s3.CreateBucketCommand, { Bucket: otherBucket }); + await send('root', s3.PutObjectCommand, { Key: outside, Body: 'private' }); + await send('root', s3.PutObjectCommand, { + Bucket: otherBucket, + Key, + Body: 'private', + }); + await send('api', s3.PutObjectCommand, { Key, Body: 'fixture' }); + for (const role of ['api', 'reconciler']) { + await send(role, s3.GetBucketLocationCommand); + await send(role, s3.HeadObjectCommand, { Key }); + const object = await send(role, s3.GetObjectCommand, { Key }); + assert.equal(await object.Body.transformToString(), 'fixture'); + // RustFS filters ListBuckets to accessible buckets instead of returning 403. + const visible = await send(role, s3.ListBucketsCommand); + assert.ok( + !(visible.Buckets ?? []).some((bucket) => bucket.Name === otherBucket), + ); + await denied(() => send(role, s3.GetObjectCommand, { Key: outside })); + await denied(() => + send(role, s3.PutObjectCommand, { Key: outside, Body: 'denied' }), + ); + await denied(() => send(role, s3.DeleteObjectCommand, { Key: outside })); + await denied(() => + send(role, s3.GetObjectCommand, { Bucket: otherBucket, Key }), + ); + await denied(() => send(role, s3.GetBucketPolicyCommand)); + await denied(() => + adminRequest( + { ...settings, credentials: settings[role] }, + 'GET', + 'list-users', + ), + ); + await denied(() => + adminRequest( + { ...settings, credentials: settings[role] }, + 'PUT', + 'add-user', + { accessKey: `DENIED${id.replaceAll('-', '')}` }, + { secretKey: randomUUID(), status: 'enabled' }, + ), + ); + console.log( + `PASS: ${role}: object read and readiness allowed; other prefixes/buckets, bucket policy and admin denied`, + ); + } + await denied(() => + send('api', s3.ListObjectsV2Command, { Prefix: 'originals/' }), + ); + await denied(() => + send('reconciler', s3.PutObjectCommand, { Key, Body: 'denied' }), + ); + await denied(() => send('reconciler', s3.ListObjectsV2Command)); + await denied(() => + send('reconciler', s3.ListObjectsV2Command, { Prefix: 'iam-test/' }), + ); + const listed = await send('reconciler', s3.ListObjectsV2Command, { + Prefix: `originals/iam-test/${id}`, + }); + assert.ok(listed.Contents.some((object) => object.Key === Key)); + await send('reconciler', s3.ListObjectsV2Command, { + Prefix: 'originals/', + MaxKeys: 1, + }); + await send('reconciler', s3.DeleteObjectCommand, { Key }); + await send('api', s3.PutObjectCommand, { Key, Body: 'fixture' }); + await send('api', s3.DeleteObjectCommand, { Key }); + await assert.rejects( + () => send('reconciler', s3.HeadObjectCommand, { Key }), + (error) => error.$metadata?.httpStatusCode === 404, + 'Reconciler must distinguish missing bytes from authorization failures', + ); + const anonymous = await fetch(`${settings.endpoint}/${Bucket}/${outside}`); + assert.equal(anonymous.status, 403); + await anonymous.body?.cancel(); + console.log( + 'PASS: API CRUD without listing; reconciler scoped listing/HEAD/delete without PUT; anonymous access denied', + ); +} catch (error) { + failed = true; + throw error; +} finally { + const cleanup = await Promise.allSettled([ + send('root', s3.DeleteObjectCommand, { Key }), + send('root', s3.DeleteObjectCommand, { Key: outside }), + send('root', s3.DeleteObjectCommand, { Bucket: otherBucket, Key }), + ]); + cleanup.push( + ...(await Promise.allSettled([ + send('root', s3.DeleteBucketCommand, { Bucket: otherBucket }), + ])), + ); + for (const client of Object.values(clients)) client.destroy(); + const errors = cleanup.filter( + (result) => + result.status === 'rejected' && + result.reason.$metadata?.httpStatusCode !== 404, + ); + if (errors.length) { + console.error(`IAM fixture cleanup failed: ${id}`); + if (!failed) throw new Error('IAM fixture cleanup failed'); + } +} diff --git a/test/sharp-memory-profile.mjs b/test/sharp-memory-profile.mjs new file mode 100644 index 0000000..fc13db3 --- /dev/null +++ b/test/sharp-memory-profile.mjs @@ -0,0 +1,131 @@ +// One fresh process per input/cache/size combination. Executes the real validator. +import { createRequire } from 'node:module'; +import { readFile, copyFile, mkdtemp, rm, rmdir } from 'node:fs/promises'; +import { join } from 'node:path'; +import { tmpdir } from 'node:os'; +import { + setTimeout as delay, + setImmediate as tick, +} from 'node:timers/promises'; +import { performance } from 'node:perf_hooks'; +import assert from 'node:assert/strict'; + +const require = createRequire(`${process.cwd()}/package.json`); +const sharp = require('sharp'); +const { + AttachmentService, +} = require('./dist/Attachment/attachment.service.js'); +const [source, inputMode, cacheMode] = process.argv.slice(2); +assert.ok(['buffer', 'file'].includes(inputMode)); +assert.ok(['default', 'off'].includes(cacheMode)); +assert.equal(typeof global.gc, 'function'); +if (cacheMode === 'off') sharp.cache(false); +const validator = new AttachmentService(null, null); +const snapshot = () => ({ ...process.memoryUsage(), sharp: sharp.cache() }); +const directory = await mkdtemp(join(tmpdir(), 'sharp-profile-')); +let currentFile; +let active; +const sample = () => { + if (!active) return; + const memory = process.memoryUsage(); + for (const key of Object.keys(memory)) + active.peak[key] = Math.max(active.peak[key], memory[key]); + active.samples++; + const now = performance.now(); + active.maxSampleGapMs = Math.max( + active.maxSampleGapMs, + now - active.lastSample, + ); + active.lastSample = now; +}; +const timer = setInterval(sample, 20); +timer.unref(); +let sequence = 0; +async function validate(measure) { + const before = snapshot(); + active = measure + ? { + peak: { ...process.memoryUsage() }, + samples: 0, + lastSample: performance.now(), + maxSampleGapMs: 0, + } + : undefined; + const started = performance.now(); + let input; + try { + if (inputMode === 'file') { + // Real complete uses a unique temporary path for every upload, then unlinks it. + currentFile = join(directory, `${sequence++}.png`); + await copyFile(source, currentFile); + input = currentFile; + } else input = await readFile(source); + sample(); + const afterInput = snapshot(); + await validator.validateImage(input, 'image/png'); + sample(); + const afterValidation = snapshot(); + input = null; + if (currentFile) { + await rm(currentFile); + currentFile = undefined; + } + sample(); + const result = measure + ? { + before, + afterInput, + afterValidation, + afterRelease: snapshot(), + peak: active.peak, + samples: active.samples, + maxSampleGapMs: active.maxSampleGapMs, + elapsedMs: performance.now() - started, + } + : undefined; + active = undefined; + return result; + } finally { + input = null; + } +} +try { + for (let i = 0; i < 4; i++) await validate(false); + const baseline = snapshot(); + const uploads = []; + for (let i = 0; i < 3; i++) uploads.push(await validate(true)); + const afterSeries = snapshot(); + await delay(1000); + const afterIdle = snapshot(); + // Diagnostic only: do not force GC during the measured series. + global.gc(); + await tick(); + global.gc(); + await tick(); + const afterGc = snapshot(); + sharp.cache(false); + global.gc(); + await tick(); + const afterCacheClear = snapshot(); + console.log( + JSON.stringify({ + status: 'passed', + inputMode, + cacheMode, + intervalMs: 20, + nodeVersion: process.version, + sharpVersions: sharp.versions, + warmups: 4, + baseline, + uploads, + afterSeries, + afterIdle, + afterGc, + afterCacheClear, + }), + ); +} finally { + clearInterval(timer); + if (currentFile) await rm(currentFile, { force: true }); + await rmdir(directory); +} diff --git a/test/sharp-memory-profile.py b/test/sharp-memory-profile.py new file mode 100644 index 0000000..58e537a --- /dev/null +++ b/test/sharp-memory-profile.py @@ -0,0 +1,50 @@ +"""Isolate the actual Sharp validator: Buffer/file input, operation cache on/off.""" +import importlib.util +import json +from pathlib import Path +import subprocess +import sys +import tempfile + +from direct_client import ROOT, Failure, check, docker + +spec = importlib.util.spec_from_file_location('upload_metrics', ROOT / 'test/concurrent-uploads.py') +metrics = importlib.util.module_from_spec(spec) +spec.loader.exec_module(metrics) + + +def main(): + report = {'status': 'failed', 'cases': [], 'method': 'Fresh Node process per case, real AttachmentService.validateImage; 4 warm-ups, 3 measured operations; unique file paths; post-series GC and cache clearing are diagnostics only. RSS is not comparable to a full API process.'} + try: + with tempfile.TemporaryDirectory(prefix='sharp-memory-', dir=ROOT / 'evidence') as directory: + for side in [512, 1792]: + path = Path(directory) / 'image.png' + image = metrics.png_image(side) + metrics.chunk(b'IEND', b'') + path.write_bytes(image) + for round_number in [1, 2]: + for cache in (['default', 'off'] if round_number == 1 else ['off', 'default']): + for mode in (['buffer', 'file'] if round_number == 1 else ['file', 'buffer']): + output = docker('compose', 'run', '--rm', '--no-deps', '-T', + '-e', 'UPLOAD_MEMORY_PROFILE=0', + '-v', f'{directory}:/profile-input:ro', + '-v', f'{ROOT / "test/sharp-memory-profile.mjs"}:/app/test/sharp-memory-profile.mjs:ro', + '--entrypoint', 'node', 'api', '--expose-gc', + 'test/sharp-memory-profile.mjs', '/profile-input/image.png', mode, cache) + result = json.loads(output) + check(result['status'] == 'passed' and len(result['uploads']) == 3, 'Validator profile failed') + report['cases'].append({'round': round_number, 'sidePixels': side, 'fileBytes': len(image), **result}) + print(f'PASS: round {round_number}, {side}px, {mode}, cache={cache}', flush=True) + report['status'] = 'passed' + except BaseException as error: + report['errorType'] = type(error).__name__ + raise + finally: + (ROOT / 'evidence/sharp-memory-profile.json').write_text(json.dumps(report, indent=2) + '\n', encoding='utf-8') + + +if __name__ == '__main__': + try: + main() + except (Failure, ValueError, OSError, subprocess.SubprocessError) as error: + print('FAIL: ' + (str(error) if isinstance(error, Failure) else type(error).__name__), file=sys.stderr) + sys.exit(1) diff --git a/test/upload-interruption.mjs b/test/upload-interruption.mjs new file mode 100644 index 0000000..3ad3e20 --- /dev/null +++ b/test/upload-interruption.mjs @@ -0,0 +1,254 @@ +// Executed inside reconciler: read-only DB/S3 inspection; uploads use HTTP API credentials. +import assert from 'node:assert/strict'; +import http from 'node:http'; +import { createHash } from 'node:crypto'; +import { createRequire } from 'node:module'; +import { setTimeout as delay } from 'node:timers/promises'; + +let input = ''; +for await (const part of process.stdin) input += part; +const fixture = JSON.parse(input); +const image = Buffer.from(fixture.image, 'base64'); +const require = createRequire(`${process.cwd()}/package.json`); +const { PrismaService } = require('./dist/prisma/prisma.service.js'); +const { StorageService } = require('./dist/Storage/storage.service.js'); +const db = new PrismaService(); +const storage = new StorageService(); +const prefix = `originals/${fixture.chatId}/`; +const reports = []; +let phase = 'startup'; + +function call(url, { method = 'GET', body, token = fixture.ownerToken } = {}) { + return new Promise((resolve, reject) => { + const req = http.request( + url, + { + method, + headers: { + Authorization: `Bearer ${token}`, + ...(body + ? { 'Content-Type': 'image/png', 'Content-Length': body.length } + : {}), + }, + }, + (res) => { + const parts = []; + res.on('data', (part) => parts.push(part)); + res.on('end', () => + resolve({ + status: res.statusCode, + body: Buffer.concat(parts), + headers: res.headers, + }), + ); + res.on('error', reject); + }, + ); + req.on('error', reject); + req.setTimeout(10000, () => req.destroy(new Error('HTTP probe timed out'))); + req.end(body); + }); +} + +async function contents(expected) { + const rows = await db.attachment.findMany({ + where: { chatId: fixture.chatId }, + select: { objectKey: true }, + }); + const keys = []; + for await (const object of storage.objects(prefix)) keys.push(object.key); + assert.equal(rows.length, expected, 'interrupted request created metadata'); + assert.equal(keys.length, expected, 'interrupted request left an S3 object'); + assert.deepEqual(keys.sort(), rows.map((row) => row.objectKey).sort()); +} + +async function abort(url, chunked) { + await new Promise((resolve, reject) => { + const req = http.request(url, { + method: 'POST', + headers: { + Authorization: `Bearer ${fixture.ownerToken}`, + 'Content-Type': 'image/png', + ...(chunked ? {} : { 'Content-Length': image.length + 1000 }), + }, + }); + let intentional = false; + req.on('error', (error) => { + if (!intentional) reject(error); + }); + req.on('response', (res) => { + res.resume(); + reject(new Error('partial upload responded before client abort')); + }); + req.setTimeout(5000, () => + req.destroy(new Error('partial write timed out')), + ); + // Valid PNG bytes, but incomplete HTTP framing: neither Content-Length nor chunk terminator is satisfied. + req.write(image, () => { + void delay(200).then(() => { + intentional = true; + req.destroy(); + resolve(); + }); + }); + }); +} + +async function deadline(url, timeoutMs, direct) { + const started = performance.now(); + const response = await new Promise((resolve, reject) => { + let timer; + let watchdog; + const req = http.request( + url, + { + method: 'POST', + headers: { + Authorization: `Bearer ${fixture.ownerToken}`, + 'Content-Type': 'image/png', + 'Content-Length': image.length + 100000, + }, + }, + (res) => { + clearInterval(timer); + const parts = []; + res.on('data', (part) => parts.push(part)); + res.on('error', (error) => { + clearTimeout(watchdog); + reject(error); + }); + res.on('end', () => { + clearTimeout(watchdog); + req.destroy(); + resolve({ + status: res.statusCode, + body: Buffer.concat(parts), + headers: res.headers, + }); + }); + }, + ); + req.on('error', (error) => { + clearInterval(timer); + clearTimeout(watchdog); + reject(error); + }); + watchdog = setTimeout( + () => req.destroy(new Error('upload deadline did not fire')), + timeoutMs + 8000, + ); + req.write(image.subarray(0, 16)); + timer = setInterval(() => req.write(Buffer.from([0])), 200); + }); + const elapsedMs = performance.now() - started; + assert.equal(response.status, 408); + assert.match(response.headers['content-type'], /^application\/json/); + const error = JSON.parse(response.body).error; + assert.equal(error.code, 'invalid_request'); + assert.equal(error.request_id, response.headers['x-request-id']); + assert.ok(error.request_id && response.headers['x-instance-id']); + // Connection is hop-by-hop: Nginx owns the frontend keep-alive policy. + if (direct) assert.equal(response.headers.connection, 'close'); + assert.ok( + elapsedMs >= timeoutMs - 300 && elapsedMs < timeoutMs + 7000, + 'unexpected upload deadline duration', + ); + return { + status: response.status, + elapsedMs: Math.round(elapsedMs), + instance: response.headers['x-instance-id'], + connection: response.headers.connection, + }; +} + +try { + await db.onModuleInit(); + await contents(0); + let expected = 0; + for (const target of fixture.targets) { + phase = target.name; + const url = `${target.url}/api/v1/chats/${fixture.chatId}/attachments?filename=interruption.png`; + const control = await call(url, { method: 'POST', body: image }); + assert.equal(control.status, 201); + const attachment = JSON.parse(control.body); + assert.equal( + attachment.sha256, + createHash('sha256').update(image).digest('hex'), + ); + expected++; + await contents(expected); + for (const chunked of [false, true]) { + phase = `${target.name}:${chunked ? 'chunked' : 'content-length'}-abort`; + await abort(url, chunked); + await delay(300); + await contents(expected); + } + phase = `${target.name}:deadline`; + const timedOut = await deadline( + url, + target.timeoutMs, + target.name !== 'nginx', + ); + await delay(300); + await contents(expected); + phase = `${target.name}:recovery`; + const recovery = await call(url, { method: 'POST', body: image }); + assert.equal(recovery.status, 201); + expected++; + const downloaded = await call( + `${target.url}/api/v1/attachments/${JSON.parse(recovery.body).id}/content`, + { token: fixture.readerToken }, + ); + assert.equal(downloaded.status, 200); + assert.deepEqual(downloaded.body, image); + await contents(expected); + reports.push({ + target: target.name, + contentLengthAbort: 'passed', + chunkedAbort: 'passed', + deadline: timedOut, + normalUploadAfterAbort: 'passed', + databaseAndS3Match: true, + }); + console.log( + `PASS: ${target.name}: both client aborts leave no bytes/metadata; slow upload gets 408; next upload/download succeeds`, + ); + } + console.log( + JSON.stringify({ + event: 'upload_interruption_summary', + status: 'passed', + targets: reports, + }), + ); +} catch (error) { + console.log( + JSON.stringify({ + event: 'upload_interruption_summary', + status: 'failed', + phase, + errorType: error.name, + assertion: + error.code === 'ERR_ASSERTION' + ? { + message: error.message.split('\n')[0], + actual: ['number', 'boolean', 'string'].includes( + typeof error.actual, + ) + ? String(error.actual).slice(0, 80) + : undefined, + expected: ['number', 'boolean', 'string'].includes( + typeof error.expected, + ) + ? String(error.expected).slice(0, 80) + : undefined, + } + : undefined, + targets: reports, + }), + ); + process.exitCode = 1; +} finally { + storage.onModuleDestroy(); + await db.onModuleDestroy(); +} diff --git a/test/upload-interruption.py b/test/upload-interruption.py new file mode 100644 index 0000000..c0d501c --- /dev/null +++ b/test/upload-interruption.py @@ -0,0 +1,82 @@ +"""Exercise real HTTP client aborts and total receive deadlines, then inspect DB/S3.""" +import argparse +import base64 +import json +from pathlib import Path +import subprocess +import sys +import uuid + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / 'tests')) +from client import Client, Failure, check + + +def docker(*args, **kwargs): + return subprocess.run(['docker', *args], cwd=ROOT, capture_output=True, + text=True, check=True, timeout=180, **kwargs).stdout + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--targets', choices=['all', 'nginx', 'api'], default='all') + args = parser.parse_args() + client = Client('http://127.0.0.1:8080', timeout=10) + run_id = str(uuid.uuid4()) + actors, chat = [], None + report = {'status': 'failed'} + try: + containers = docker('compose', 'ps', '-q', 'api').split() + check(len(containers) == 2, 'Expected two API replicas') + states = json.loads(docker('inspect', *containers)) + targets = [] + for state in states: + env = dict(item.split('=', 1) for item in state['Config']['Env'] if '=' in item) + timeout_ms = int(env.get('UPLOAD_BODY_TIMEOUT_MS', '15000')) + address = next(iter(state['NetworkSettings']['Networks'].values()))['IPAddress'] + targets.append({'name': state['Config']['Hostname'], 'url': 'http://' + address + ':8080', 'timeoutMs': timeout_ms}) + check(len({target['timeoutMs'] for target in targets}) == 1, 'API receive deadlines differ') + targets.append({'name': 'nginx', 'url': 'http://nginx', 'timeoutMs': targets[0]['timeoutMs']}) + if args.targets != 'all': + targets = [target for target in targets if (target['name'] == 'nginx') == (args.targets == 'nginx')] + for suffix in ['a', 'b']: + actors.append(client.user('cu' + run_id[:8] + suffix)) + chat = client.call('POST', '/api/v1/chats', 201, actor=actors[0], schema='Chat', + body={'title': 'upload-interruption:' + run_id, 'member_ids': [actor['id'] for actor in actors]})['json'] + payload = {'chatId': chat['id'], 'ownerToken': actors[0]['token'], 'readerToken': actors[1]['token'], + 'image': base64.b64encode((ROOT / 'tests/fixtures/sample.png').read_bytes()).decode(), 'targets': targets} + source = (ROOT / 'test/upload-interruption.mjs').read_text(encoding='utf-8') + result = subprocess.run(['docker', 'compose', 'exec', '-T', 'reconciler', 'node', '--input-type=module', '-e', source], + cwd=ROOT, input=json.dumps(payload), text=True, capture_output=True, + timeout=sum(target['timeoutMs'] for target in targets) / 1000 + 120) + for line in result.stdout.splitlines(): + if line.startswith('{'): + item = json.loads(line) + if item.get('event') == 'upload_interruption_summary': + report = item + elif line.startswith('PASS:'): + print(line, flush=True) + check(result.returncode == 0 and report.get('status') == 'passed', 'Upload interruption test failed; see evidence/upload-interruption.json') + finally: + try: + source = (ROOT / 'test/concurrent-cleanup.mjs').read_text(encoding='utf-8') + payload = {'runId': run_id, 'chatId': chat['id'] if chat else None, + 'userIds': [actor['id'] for actor in actors], 'kind': 'upload-interruption'} + docker('compose', 'exec', '-T', '--index', '1', 'api', 'node', '--input-type=module', '-e', source, input=json.dumps(payload)) + report['fixturesRemoved'] = True + except (OSError, subprocess.SubprocessError): + report['fixturesRemoved'] = False + if report['status'] == 'passed': + report['status'] = 'failed' + raise Failure('Upload interruption fixture cleanup failed') from None + finally: + (ROOT / 'evidence/upload-interruption.json').write_text(json.dumps(report, indent=2) + '\n', encoding='utf-8') + print('PASS: upload interruption and receive deadline; targets=' + args.targets + '; fixtures removed') + + +if __name__ == '__main__': + try: + main() + except (Failure, ValueError, OSError, subprocess.SubprocessError) as error: + print('FAIL: ' + (str(error) if isinstance(error, Failure) else type(error).__name__), file=sys.stderr) + sys.exit(1) diff --git a/test/upload-memory-probe.mjs b/test/upload-memory-probe.mjs new file mode 100644 index 0000000..0599d6b --- /dev/null +++ b/test/upload-memory-probe.mjs @@ -0,0 +1,147 @@ +// Executed by the test through docker exec; does not change the API process. +import { readFileSync, readdirSync } from 'node:fs'; +import { createInterface } from 'node:readline'; +import { performance } from 'node:perf_hooks'; + +const emit = (value) => process.stdout.write(`${JSON.stringify(value)}\n`); +const candidates = readdirSync('/proc').filter((name) => { + if (!/^\d+$/.test(name) || Number(name) === process.pid) return false; + try { + const args = readFileSync(`/proc/${name}/cmdline`, 'utf8').split('\0'); + return args.some((arg) => /(^|\/)dist\/main\.js$/.test(arg)); + } catch { + return false; + } +}); +if (candidates.length !== 1) + throw new Error('Expected exactly one API process'); +const pid = Number(candidates[0]); +const startTime = () => + readFileSync(`/proc/${pid}/stat`, 'utf8').split(') ').at(-1).split(' ')[19]; +const identity = startTime(); +function snapshot() { + if (startTime() !== identity) + throw new Error('API process changed during test'); + const status = readFileSync(`/proc/${pid}/status`, 'utf8'); + const rss = Number(status.match(/^VmRSS:\s+(\d+) kB$/m)?.[1]) * 1024; + const hwm = Number(status.match(/^VmHWM:\s+(\d+) kB$/m)?.[1]) * 1024; + if (!Number.isFinite(rss) || !Number.isFinite(hwm)) + throw new Error('Missing RSS/HWM metrics'); + const events = Object.fromEntries( + readFileSync('/sys/fs/cgroup/memory.events', 'utf8') + .trim() + .split('\n') + .map((line) => { + const [key, value] = line.split(' '); + return [key, Number(value)]; + }), + ); + let rx = 0; + let tx = 0; + for (const line of readFileSync('/proc/net/dev', 'utf8') + .split('\n') + .slice(2)) { + if (!line.includes(':')) continue; + const [name, counters] = line.split(':'); + if (name.trim() === 'lo') continue; + const values = counters.trim().split(/\s+/).map(Number); + rx += values[0]; + tx += values[8]; + } + const cgroup = Number( + readFileSync('/sys/fs/cgroup/memory.current', 'utf8').trim(), + ); + return { + rss, + hwm, + oom: events.oom, + oomKill: events.oom_kill, + rx, + tx, + cgroup, + }; +} +let active; +function sample() { + const value = snapshot(); + if (active) { + active.peakRss = Math.max(active.peakRss, value.rss); + active.peakCgroup = Math.max(active.peakCgroup, value.cgroup); + active.maxSampleGapMs = Math.max( + active.maxSampleGapMs, + performance.now() - active.lastSample, + ); + active.lastSample = performance.now(); + active.samples++; + } + return value; +} +const timer = setInterval(() => { + if (!active) return; + try { + sample(); + } catch { + emit({ + event: 'error', + message: 'API memory probe failed; process may have restarted', + }); + process.exit(1); + } +}, 50); +const input = createInterface({ input: process.stdin }); +input.on('line', (command) => { + try { + if (command === 'begin') { + if (active) throw new Error('Memory phase already active'); + const baseline = snapshot(); + active = { + baseline, + peakRss: baseline.rss, + peakCgroup: baseline.cgroup, + samples: 0, + started: performance.now(), + lastSample: performance.now(), + maxSampleGapMs: 0, + }; + emit({ event: 'begin', pid }); + } else if (command === 'end') { + if (!active) throw new Error('No memory phase active'); + const end = sample(); + emit({ + event: 'summary', + pid, + baselineRssBytes: active.baseline.rss, + sampledPeakRssBytes: active.peakRss, + finalRssBytes: end.rss, + baselineCgroupBytes: active.baseline.cgroup, + sampledPeakCgroupBytes: active.peakCgroup, + finalCgroupBytes: end.cgroup, + lifetimeHwmBeforeBytes: active.baseline.hwm, + lifetimeHwmAfterBytes: end.hwm, + oomDelta: end.oom - active.baseline.oom, + oomKillDelta: end.oomKill - active.baseline.oomKill, + networkRxBytes: end.rx - active.baseline.rx, + networkTxBytes: end.tx - active.baseline.tx, + samples: active.samples, + maxSampleGapMs: active.maxSampleGapMs, + durationMs: performance.now() - active.started, + }); + active = undefined; + } else if (command === 'snapshot') { + emit({ event: 'snapshot', ...snapshot() }); + } else if (command === 'quit') { + input.close(); + process.stdin.destroy(); + } else throw new Error('Unknown memory probe command'); + } catch { + emit({ event: 'error', message: 'Memory probe command failed' }); + process.exit(1); + } +}); +input.on('close', () => clearInterval(timer)); +emit({ + event: 'ready', + pid, + instance: readFileSync('/etc/hostname', 'utf8').trim(), + intervalMs: 50, +}); diff --git a/test/warm-upload-replicas.mjs b/test/warm-upload-replicas.mjs new file mode 100644 index 0000000..8fb546b --- /dev/null +++ b/test/warm-upload-replicas.mjs @@ -0,0 +1,119 @@ +// Run as a temporary docker-exec client. Secrets and signed URLs arrive only on stdin. +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import http from 'node:http'; + +let input = ''; +for await (const chunk of process.stdin) input += chunk; +const { targets, owner, reader, chat, imageBase64, mode } = JSON.parse(input); +const image = Buffer.from(imageBase64, 'base64'); +const digest = createHash('sha256').update(image).digest('hex'); +assert.ok(['proxy', 'direct'].includes(mode)); +assert.equal(targets.length, 2); + +async function signedPut(capability) { + const signed = new URL(capability.url); + // Connect to the same Nginx PUT listener inside Docker, preserving the signed Host. + const status = await new Promise((resolve, reject) => { + const request = http.request( + { + hostname: 'nginx', + port: 9000, + method: 'PUT', + path: signed.pathname + signed.search, + headers: { ...capability.headers, Host: signed.host }, + timeout: 60000, + }, + (response) => { + response.resume(); + response.once('end', () => resolve(response.statusCode)); + response.once('error', reject); + }, + ); + request.once('timeout', () => + request.destroy(new Error('Warm PUT timed out')), + ); + request.once('error', reject); + request.end(image); + }); + assert.equal(status, 200, 'Warm PUT failed'); +} + +const counts = {}; +for (const target of targets) { + assert.match(target.address, /^\d{1,3}(\.\d{1,3}){3}$/); + const base = `http://${target.address}:8080`; + async function call(path, token, options = {}, expected = 200) { + const response = await fetch(base + path, { + ...options, + headers: { Authorization: `Bearer ${token}`, ...options.headers }, + signal: AbortSignal.timeout(60000), + }); + assert.equal(response.status, expected, 'Warm API request failed'); + assert.equal( + response.headers.get('x-instance-id'), + target.instance, + 'Warm-up reached a different API', + ); + return response; + } + for (let index = 0; index < 2; index++) { + let response; + if (mode === 'proxy') { + response = await call( + `/api/v1/chats/${chat.id}/attachments?filename=warmup.png`, + owner.token, + { + method: 'POST', + headers: { 'Content-Type': 'image/png' }, + body: image, + }, + 201, + ); + } else { + const capability = await ( + await call( + `/api/v1/chats/${chat.id}/attachment-uploads`, + owner.token, + { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + filename: 'warmup.png', + content_type: 'image/png', + size_bytes: image.length, + sha256: digest, + }), + }, + 201, + ) + ).json(); + await signedPut(capability); + response = await call( + capability.complete_url, + owner.token, + { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: '{}', + }, + 201, + ); + } + const attachment = await response.json(); + assert.equal(attachment.sha256, digest); + assert.equal(attachment.size_bytes, image.length); + const meta = await ( + await call(`/api/v1/attachments/${attachment.id}`, reader.token) + ).json(); + assert.deepEqual(meta, attachment); + const downloaded = Buffer.from( + await ( + await call(`/api/v1/attachments/${attachment.id}/content`, reader.token) + ).arrayBuffer(), + ); + assert.deepEqual(downloaded, image); + counts[target.instance] = (counts[target.instance] ?? 0) + 1; + } +} +console.log(JSON.stringify({ counts, verifiedDownloads: 4 })); diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..486f025 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": "./src", + "tsBuildInfoFile": "./dist/tsconfig.build.tsbuildinfo" + }, + "include": ["src"], + "exclude": ["node_modules", "test", "dist", "**/*spec.ts"] +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..f15de1d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "nodenext", + "moduleResolution": "nodenext", + "resolvePackageJsonExports": true, + "esModuleInterop": true, + "isolatedModules": true, + "declaration": true, + "removeComments": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "allowSyntheticDefaultImports": true, + "target": "ES2023", + "types": ["node", "jest"], + "sourceMap": true, + "outDir": "./dist", + "rootDir": ".", + "incremental": true, + "skipLibCheck": true, + "strict": true, + "strictPropertyInitialization": false + } +}