import { ALLOWED_IMAGE_MIME_TYPES } from "@inkeep/agents-core/constants/allowed-image-formats";

//#region src/domains/run/services/blob-storage/image-security-constants.ts
const MAX_EXTERNAL_IMAGE_BYTES = 10 * 1024 * 1024;
const EXTERNAL_FETCH_TIMEOUT_MS = 1e4;
const MAX_EXTERNAL_REDIRECTS = 3;
const ALLOWED_EXTERNAL_IMAGE_MIME_TYPES = ALLOWED_IMAGE_MIME_TYPES;
const ALLOWED_HTTP_PORTS = new Set([
	"",
	"80",
	"443"
]);

//#endregion
export { ALLOWED_EXTERNAL_IMAGE_MIME_TYPES, ALLOWED_HTTP_PORTS, EXTERNAL_FETCH_TIMEOUT_MS, MAX_EXTERNAL_IMAGE_BYTES, MAX_EXTERNAL_REDIRECTS };