Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
Improve the external services status page (#2151)
Colin Ozanne9a06c41b86a4
diff --git a/apps/web/package.json b/apps/web/package.jsonindex ef1a1ab2f..66e2cee5b 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -35,6 +35,8 @@"@openstatus/notification-webhook": "workspace:*","@openstatus/react": "workspace:*","@openstatus/regions": "workspace:*",+ "@openstatus/services": "workspace:*",+ "@openstatus/status-fetcher": "workspace:*","@openstatus/theme-store": "workspace:*","@openstatus/tinybird": "workspace:*","@openstatus/tracker": "workspace:*",diff --git a/apps/web/src/app/(landing)/status/[id]/history-bars.tsx b/apps/web/src/app/(landing)/status/[id]/history-bars.tsxnew file mode 100644index 000000000..d0b0096b8--- /dev/null+++ b/apps/web/src/app/(landing)/status/[id]/history-bars.tsx@@ -0,0 +1,125 @@+"use client";++import { StatusBar } from "@openstatus/ui/components/blocks/status-bar";+import type {+ StatusBarData,+ StatusType,+} from "@openstatus/ui/components/blocks/status.types";++type DailyRow = {+ day: string;+ worst_indicator: string;+ had_maintenance: number;+ snapshot_count: number;+};++function indicatorToStatusType(args: {+ worst_indicator: string;+ had_maintenance: number;+}): StatusType {+ if (args.had_maintenance) return "info";+ switch (args.worst_indicator) {+ case "none":+ return "success";+ case "minor":+ return "degraded";+ case "major":+ case "critical":+ return "error";+ default:+ return "empty";+ }+}++function labelFor(status: StatusType): string {+ switch (status) {+ case "success":+ return "All Systems Operational";+ case "degraded":+ return "Degraded performance";+ case "error":+ return "Outage";+ case "info":+ return "Maintenance";+ default:+ return "No data";+ }+}++export type HistoryBarsProps = {+ daily: DailyRow[];+ days: number;+};++const INDICATOR_SEVERITY: Record<string, number> = {+ none: 0,+ minor: 1,+ major: 2,+ critical: 3,+};++function severityOf(indicator: string): number {+ return INDICATOR_SEVERITY[indicator] ?? -1;+}++function buildSeries(props: HistoryBarsProps): StatusBarData[] {+ // The history pipe groups by (day, id); when querying canonical + aliases+ // we get one row per slug per day. Merge them so the worst observed status+ // wins instead of letting iteration order pick the survivor.+ const byDay = new Map<string, DailyRow>();+ for (const r of props.daily) {+ const key = r.day.slice(0, 10);+ const prev = byDay.get(key);+ if (!prev) {+ byDay.set(key, r);+ continue;+ }+ byDay.set(key, {+ day: prev.day,+ worst_indicator:+ severityOf(r.worst_indicator) > severityOf(prev.worst_indicator)+ ? r.worst_indicator+ : prev.worst_indicator,+ had_maintenance:+ severityOf(r.worst_indicator) > severityOf(prev.worst_indicator)+ ? r.had_maintenance+ : prev.had_maintenance,+ snapshot_count: prev.snapshot_count + r.snapshot_count,+ });+ }+ const out: StatusBarData[] = [];+ const today = new Date();+ today.setUTCHours(0, 0, 0, 0);+ for (let i = props.days - 1; i >= 0; i--) {+ const date = new Date(today);+ date.setUTCDate(today.getUTCDate() - i);+ const iso = date.toISOString().slice(0, 10);+ const row = byDay.get(iso);+ const status: StatusType = row+ ? indicatorToStatusType({+ worst_indicator: row.worst_indicator,+ had_maintenance: row.had_maintenance,+ })+ : "empty";+ out.push({+ day: iso,+ bar: [{ status, height: 100 }],+ card: [{ status, value: labelFor(status) }],+ events: [],+ });+ }+ return out;+}++export function HistoryBars(props: HistoryBarsProps) {+ const data = buildSeries(props);+ // Square the bars: the shared StatusBar block hard-codes rounded-full on the+ // item root, an overflow-hidden clip wrapper, and each segment. Override the+ // radius for this page only (descendant selectors outrank the block's+ // single-class utilities) without forking the shared component.+ return (+ <div className="[&_[data-slot=status-bar-item]>div>div]:rounded-none [&_[data-slot=status-bar-item]>div]:rounded-none [&_[data-slot=status-bar-item]]:rounded-none">+ <StatusBar data={data} />+ </div>+ );+}diff --git a/apps/web/src/app/(landing)/status/[id]/incidents.tsx b/apps/web/src/app/(landing)/status/[id]/incidents.tsxnew file mode 100644index 000000000..3df206802--- /dev/null+++ b/apps/web/src/app/(landing)/status/[id]/incidents.tsx@@ -0,0 +1,150 @@+import { z } from "zod";++import {+ ContentBoxDescription,+ ContentBoxLink,+ ContentBoxTitle,+} from "@/app/(landing)/content-box";+import { components } from "@/content/mdx";++const atlassianIncidentSchema = z.object({+ id: z.string(),+ name: z.string(),+ status: z.string(),+ impact: z.string().optional(),+ shortlink: z.string().optional(),+ started_at: z.string().optional(),+ created_at: z.string(),+ resolved_at: z.string().nullable().optional(),+});++const atlassianIncidentsResponseSchema = z.object({+ incidents: z.array(atlassianIncidentSchema),+});++type Incident = z.infer<typeof atlassianIncidentSchema>;++const TIMEOUT_MS = 5000;+const MAX_INCIDENTS = 5;++function impactClass(impact: string | undefined): string {+ switch (impact) {+ case "critical":+ return "bg-destructive/20 text-destructive border-destructive/30";+ case "major":+ return "bg-destructive/15 text-destructive border-destructive/20";+ case "minor":+ return "bg-warning/15 text-warning border-warning/30";+ case "maintenance":+ return "bg-info/15 text-info border-info/30";+ default:+ return "bg-muted text-muted-foreground border-muted-foreground/20";+ }+}++function formatTimestamp(value: string | null | undefined): string | null {+ if (!value) return null;+ const ms = Date.parse(value);+ if (Number.isNaN(ms)) return null;+ return new Date(ms).toLocaleString(undefined, {+ dateStyle: "medium",+ timeStyle: "short",+ });+}++async function fetchIncidents(+ statusPageUrl: string,+): Promise<Incident[] | null> {+ const url = `${statusPageUrl}/api/v2/incidents.json`;+ const controller = new AbortController();+ const timer = setTimeout(() => controller.abort(), TIMEOUT_MS);+ try {+ const res = await fetch(url, {+ signal: controller.signal,+ headers: { Accept: "application/json" },+ next: { revalidate: 60 },+ });+ if (!res.ok) {+ console.warn(+ `[external-status incidents] non-200 from ${url}: ${res.status}`,+ );+ return null;+ }+ const json = await res.json();+ const parsed = atlassianIncidentsResponseSchema.safeParse(json);+ if (!parsed.success) {+ console.warn(+ `[external-status incidents] invalid payload from ${url}`,+ parsed.error.issues,+ );+ return null;+ }+ return parsed.data.incidents.slice(0, MAX_INCIDENTS);+ } catch (err) {+ console.warn(+ `[external-status incidents] fetch failed for ${url}: ${err instanceof Error ? err.message : String(err)}`,+ );+ return null;+ } finally {+ clearTimeout(timer);+ }+}++export type IncidentsProps = {+ statusPageUrl: string;+ apiConfigType?: string;+};++export async function Incidents({+ statusPageUrl,+ apiConfigType,+}: IncidentsProps) {+ if (apiConfigType !== "atlassian") return null;+ const incidents = await fetchIncidents(statusPageUrl);+ if (!incidents) return null;++ if (incidents.length === 0) {+ return (+ <section>+ <h2>Recent incidents</h2>+ <p className="text-muted-foreground">No incidents reported.</p>+ </section>+ );+ }++ return (+ <section>+ <h2>Recent incidents</h2>+ <components.Grid cols={1} className="not-prose">+ {incidents.map((inc) => {+ const started = formatTimestamp(inc.started_at ?? inc.created_at);+ const resolved = formatTimestamp(inc.resolved_at ?? null);+ const link = inc.shortlink ?? `${statusPageUrl}/incidents/${inc.id}`;+ return (+ <ContentBoxLink+ key={inc.id}+ href={link}+ className="flex flex-col gap-1"+ >+ <div className="flex items-center justify-between gap-3">+ <ContentBoxTitle className="m-0!">{inc.name}</ContentBoxTitle>+ <span+ className={`inline-flex items-center rounded-none border px-2.5 py-0.5 font-medium text-xs ${impactClass(inc.impact)}`}+ >+ {inc.impact === "none"+ ? "incident"+ : inc.impact ?? "incident"}+ </span>+ </div>+ <ContentBoxDescription className="m-0! text-sm">+ {started ? <>Started {started}</> : null}+ {started && resolved ? " · " : null}+ {resolved ? <>Resolved {resolved}</> : null}+ </ContentBoxDescription>+ </ContentBoxLink>+ );+ })}+ </components.Grid>+ </section>+ );+}diff --git a/apps/web/src/app/(landing)/status/[id]/page.tsx b/apps/web/src/app/(landing)/status/[id]/page.tsxnew file mode 100644index 000000000..d85a165cf--- /dev/null+++ b/apps/web/src/app/(landing)/status/[id]/page.tsx@@ -0,0 +1,210 @@+import type { Metadata } from "next";+import { notFound, permanentRedirect } from "next/navigation";+import { Suspense } from "react";++import { ExternalServicePill } from "@/app/(landing)/status/external-service-pill";+import { env } from "@/env";+import {+ cachedGetExternalServiceBySlug,+ cachedListExternalServiceSlugs,+} from "@/lib/external-service-cache";+import {+ BASE_URL,+ defaultMetadata,+ ogMetadata,+ twitterMetadata,+} from "@/lib/metadata/shared-metadata";+import { OSTinybird, safePipeData } from "@openstatus/tinybird";++import { formatRelative, isStale } from "../utils";+import { HistoryBars } from "./history-bars";+import { Incidents } from "./incidents";++export const revalidate = 60;+export const dynamicParams = true;++const HISTORY_DAYS = 45;++export async function generateStaticParams() {+ const { canonical } = await cachedListExternalServiceSlugs();+ return canonical.map((id) => ({ id }));+}++type RouteParams = { id: string };++export async function generateMetadata(args: {+ params: Promise<RouteParams>;+}): Promise<Metadata> {+ const { id } = await args.params;+ const service = await cachedGetExternalServiceBySlug(id);+ if (!service) return { ...defaultMetadata, title: "Not Found" };++ const title = `${service.name} Status — Is ${service.name} Down?`;+ const description = `Current status of ${service.name}. ${service.name} uptime history and recent incidents tracked by OpenStatus.`;+ const canonicalUrl = `${BASE_URL}/status/${service.slug}`;+ const indexable = service.deletedAt == null;++ return {+ ...defaultMetadata,+ title,+ description,+ alternates: {+ canonical: canonicalUrl,+ },+ robots: {+ index: indexable,+ follow: true,+ },+ openGraph: {+ ...ogMetadata,+ title,+ description,+ url: canonicalUrl,+ },+ twitter: {+ ...twitterMetadata,+ title,+ description,+ images: [+ `/api/og/status?title=${encodeURIComponent(`${service.name} Status`)}`,+ ],+ },+ };+}++function jsonLd(args: {+ serviceName: string;+ serviceUrl: string;+ canonicalUrl: string;+}) {+ return {+ "@context": "https://schema.org",+ "@graph": [+ {+ "@type": "Service",+ name: args.serviceName,+ url: args.serviceUrl,+ },+ {+ "@type": "WebPage",+ url: args.canonicalUrl,+ name: `${args.serviceName} Status`,+ },+ {+ "@type": "BreadcrumbList",+ itemListElement: [+ {+ "@type": "ListItem",+ position: 1,+ name: "External Status",+ item: `${BASE_URL}/status`,+ },+ {+ "@type": "ListItem",+ position: 2,+ name: args.serviceName,+ item: args.canonicalUrl,+ },+ ],+ },+ ],+ };+}++export default async function Page(args: { params: Promise<RouteParams> }) {+ const { id } = await args.params;+ const service = await cachedGetExternalServiceBySlug(id);+ if (!service) notFound();++ if (service.slug !== id) {+ permanentRedirect(`/status/${service.slug}`);+ }++ const aliasSlugs = Array.isArray(service.aliases) ? service.aliases : [];+ const slugChain = [service.slug, ...aliasSlugs];++ const tb = new OSTinybird(env.TINY_BIRD_API_KEY);+ const [latestRes, historyRes] = await Promise.all([+ safePipeData(+ tb.externalStatusLatest({ ids: slugChain }),+ "externalStatusLatest",+ ),+ safePipeData(+ tb.externalStatusHistory({ ids: slugChain, days: HISTORY_DAYS }),+ "externalStatusHistory",+ ),+ ]);++ const latestRows = Array.isArray(latestRes.data) ? latestRes.data : [];+ latestRows.sort((a, b) => b.last_fetched_at - a.last_fetched_at);+ const latest = latestRows[0];++ const historyRows = Array.isArray(historyRes.data) ? historyRes.data : [];++ const indicator = latest?.indicator ?? "";+ const status = latest?.status ?? "";+ const statusMessage = latest?.status_message ?? undefined;+ const fetchedAt = latest?.last_fetched_at ?? 0;+ const stale = fetchedAt > 0 && isStale(fetchedAt);++ const canonicalUrl = `${BASE_URL}/status/${service.slug}`;+ const ld = jsonLd({+ serviceName: service.name,+ serviceUrl: service.url,+ canonicalUrl,+ });++ return (+ <section className="prose dark:prose-invert mb-12 max-w-none">+ <script+ type="application/ld+json"+ // biome-ignore lint/security/noDangerouslySetInnerHtml: JSON-LD requires literal JSON+ dangerouslySetInnerHTML={{+ __html: JSON.stringify(ld).replace(/</g, "\\u003c"),+ }}+ />+ <h1>{service.name} Status</h1>+ <div className="not-prose flex flex-wrap items-center gap-6">+ <ExternalServicePill+ indicator={indicator}+ status={status}+ statusMessage={statusMessage}+ />+ {fetchedAt > 0 ? (+ <span className="text-muted-foreground text-sm">+ Last updated {formatRelative(fetchedAt)}+ {stale ? (+ <span className="ml-1 inline-flex px-2 py-0.5 text-warning text-xs">+ (stale)+ </span>+ ) : null}+ </span>+ ) : (+ <span className="text-muted-foreground text-sm">+ No data yet — tracking begins after first poll.+ </span>+ )}+ <a+ className="text-sm underline"+ href={service.statusPageUrl}+ target="_blank"+ rel="noopener noreferrer"+ >+ Upstream status page+ </a>+ </div>++ <h2>Last {HISTORY_DAYS} days</h2>+ <div className="not-prose">+ <HistoryBars daily={historyRows} days={HISTORY_DAYS} />+ </div>++ <Suspense fallback={null}>+ <Incidents+ statusPageUrl={service.statusPageUrl}+ apiConfigType={service.apiConfig?.type}+ />+ </Suspense>+ </section>+ );+}diff --git a/apps/web/src/app/(landing)/status/external-service-pill.tsx b/apps/web/src/app/(landing)/status/external-service-pill.tsxnew file mode 100644index 000000000..99e3a8230--- /dev/null+++ b/apps/web/src/app/(landing)/status/external-service-pill.tsx@@ -0,0 +1,84 @@+import {+ Tooltip,+ TooltipContent,+ TooltipTrigger,+} from "@openstatus/ui/components/ui/tooltip";+import { cn } from "@openstatus/ui/lib/utils";++export type ExternalServicePillProps = {+ indicator: string;+ status: string;+ statusMessage?: string;+ className?: string;+};++type PillStyle = {+ label: string;+ className: string;+};++const MAINTENANCE: PillStyle = {+ label: "Maintenance",+ className: "bg-info/15 text-info border-info/30",+};++const INDICATOR_PILLS: Record<string, PillStyle> = {+ none: {+ label: "Operational",+ className: "bg-success/15 text-success border-success/30",+ },+ minor: {+ label: "Minor Issue",+ className: "bg-warning/15 text-warning border-warning/30",+ },+ major: {+ label: "Partial Outage",+ className: "bg-destructive/15 text-destructive border-destructive/30",+ },+ critical: {+ label: "Major Outage",+ className: "bg-destructive/20 text-destructive border-destructive/40",+ },+};++const UNKNOWN_PILL: PillStyle = {+ label: "Unknown",+ className: "bg-muted text-muted-foreground border-muted-foreground/20",+};++export function getPillStyle(args: {+ indicator: string;+ status: string;+}): PillStyle {+ if (args.status === "under_maintenance") return MAINTENANCE;+ return INDICATOR_PILLS[args.indicator] ?? UNKNOWN_PILL;+}++export function ExternalServicePill({+ indicator,+ status,+ statusMessage,+ className,+}: ExternalServicePillProps) {+ const pill = getPillStyle({ indicator, status });+ const body = (+ <span+ className={cn(+ "inline-flex items-center rounded-none border px-2.5 py-0.5 font-medium text-xs",+ pill.className,+ className,+ )}+ >+ {pill.label}+ </span>+ );++ if (!statusMessage) return body;++ return (+ <Tooltip>+ <TooltipTrigger asChild>{body}</TooltipTrigger>+ <TooltipContent className="rounded-none">{statusMessage}</TooltipContent>+ </Tooltip>+ );+}diff --git a/apps/web/src/app/(landing)/status/page.tsx b/apps/web/src/app/(landing)/status/page.tsxindex 4bf30c3cc..df2d2d2ff 100644--- a/apps/web/src/app/(landing)/status/page.tsx+++ b/apps/web/src/app/(landing)/status/page.tsx@@ -1,18 +1,17 @@+import type { Metadata } from "next";++import { ExternalServicePill } from "@/app/(landing)/status/external-service-pill";import { components } from "@/content/mdx";-import { env } from "@/env";+import { cachedListExternalServices } from "@/lib/external-service-cache";import {defaultMetadata,ogMetadata,twitterMetadata,} from "@/lib/metadata/shared-metadata";-import type { Metadata } from "next";-import {- ContentBoxDescription,- ContentBoxLink,- ContentBoxTitle,- ContentBoxUrl,-} from "../content-box";-import { type AtlassianDescriptionEnum, externalStatusArray } from "./utils";+import { OSTinybird, safePipeData } from "@openstatus/tinybird";++import { env } from "@/env";+import { ContentBoxLink, ContentBoxUrl } from "../content-box";export const dynamic = "force-dynamic";@@ -40,41 +39,61 @@ export const metadata: Metadata = {},};+type LatestSnapshot = {+ id: string;+ indicator: string;+ status: string;+ status_message: string;+ last_fetched_at: number;+};++const UNKNOWN_SNAPSHOT: Omit<LatestSnapshot, "id"> = {+ indicator: "",+ status: "",+ status_message: "Status unavailable",+ last_fetched_at: 0,+};+export default async function Page() {- const res = await fetch(env.EXTERNAL_API_URL);- const data = await res.json();- const externalStatus = externalStatusArray.parse(data);+ const services = await cachedListExternalServices();+ const tb = new OSTinybird(env.TINY_BIRD_API_KEY);+ const latestRes = await safePipeData(+ tb.externalStatusLatest({}),+ "externalStatusLatest (list)",+ );+ const latestRows = Array.isArray(latestRes.data) ? latestRes.data : [];+ const latestById = new Map<string, LatestSnapshot>();+ for (const row of latestRows) {+ latestById.set(row.id, row);+ }+return (- <section className="prose dark:prose-invert max-w-none">+ <section className="prose dark:prose-invert mb-12 max-w-none"><h1>External Status</h1><components.Grid cols={2}>- {externalStatus.map((status) => (- <ContentBoxLink- key={status.name}- href={status.url}- target="_blank"- rel="noopener noreferrer"- >- <ContentBoxTitle>{status.name}</ContentBoxTitle>- <ContentBoxDescription- className={STATUS[status.status_description]}+ {services.map((service) => {+ const snap = latestById.get(service.slug) ?? UNKNOWN_SNAPSHOT;+ return (+ <ContentBoxLink+ key={service.slug}+ href={`/status/${service.slug}`}+ className="flex flex-col gap-2">- {status.status_description}- </ContentBoxDescription>- <ContentBoxUrl url={status.url} />- </ContentBoxLink>- ))}+ <p className="m-0! font-semibold">{service.name}</p>+ <ExternalServicePill+ indicator={snap.indicator}+ status={snap.status}+ statusMessage={snap.status_message || undefined}+ className="self-start"+ />+ <ContentBoxUrl+ url={service.url}+ className="m-0! text-muted-foreground text-sm"+ />+ </ContentBoxLink>+ );+ })}</components.Grid></section>);}--const STATUS = {- "All Systems Operational": "text-success",- "Major System Outage": "text-destructive",- "Partial System Outage": "text-warning",- "Minor Service Outage": "text-warning",- "Degraded System Service": "text-warning",- "Partially Degraded Service": "text-warning",- "Service Under Maintenance": "text-info",-} satisfies Record<AtlassianDescriptionEnum, string>;diff --git a/apps/web/src/app/(landing)/status/utils.ts b/apps/web/src/app/(landing)/status/utils.tsindex 0fc18fee8..ae03650e2 100644--- a/apps/web/src/app/(landing)/status/utils.ts+++ b/apps/web/src/app/(landing)/status/utils.ts@@ -1,53 +1,18 @@-import { z } from "zod";+export const STALE_THRESHOLD_MS = 30 * 60 * 1000; // 30 minutes-export const atlassianDescriptionEnum = z.enum([- "All Systems Operational", // green- "Major System Outage", // red- "Partial System Outage", // orange- "Minor Service Outage", // yellow- "Degraded System Service", // yellow- "Partially Degraded Service", // yellow- "Service Under Maintenance", // blue-]);--export const externalStatus = z.object({- id: z.number(),- name: z.string(),- url: z.string(),- external_id: z.string(),- last_updated_at: z.iso.datetime({ offset: true }),- time_zone: z.string(),- status_indicator: z.string(),- status_description: atlassianDescriptionEnum,- created_at: z.string(),- updated_at: z.iso.datetime(),-});--export const externalStatusArray = z.array(externalStatus);--export type ExternalStatus = z.infer<typeof externalStatus>;-export type ExternalStatusArray = z.infer<typeof externalStatusArray>;-export type AtlassianDescriptionEnum = z.infer<typeof atlassianDescriptionEnum>;--// ------------------------------+export function formatRelative(updatedAtMs: number): string {+ const diff = Date.now() - updatedAtMs;+ if (diff < 0) return "just now";+ const seconds = Math.floor(diff / 1000);+ if (seconds < 60) return `${seconds}s ago`;+ const minutes = Math.floor(seconds / 60);+ if (minutes < 60) return `${minutes}m ago`;+ const hours = Math.floor(minutes / 60);+ if (hours < 24) return `${hours}h ago`;+ const days = Math.floor(hours / 24);+ return `${days}d ago`;+}-export function getClassname(status: ExternalStatus) {- switch (status.status_description) {- case "All Systems Operational":- return "text-status-operational";- case "Major System Outage":- return "text-status-down";- case "Partial System Outage":- return "text-status-degraded";- case "Minor Service Outage":- return "text-status-degraded";- case "Degraded System Service":- return "text-status-degraded";- case "Partially Degraded Service":- return "text-status-degraded";- case "Service Under Maintenance":- return "text-status-monitoring";- default:- return "text-gray-500";- }+export function isStale(fetchedAtMs: number): boolean {+ return Date.now() - fetchedAtMs > STALE_THRESHOLD_MS;}diff --git a/apps/web/src/app/api/markdown/[[...path]]/route.ts b/apps/web/src/app/api/markdown/[[...path]]/route.tsindex eacb9e584..5b4e95379 100644--- a/apps/web/src/app/api/markdown/[[...path]]/route.ts+++ b/apps/web/src/app/api/markdown/[[...path]]/route.ts@@ -1,5 +1,9 @@import { convertMdxToMarkdown } from "@/content/convert";import { resolveContent } from "@/content/resolve";+import {+ generateStatusDetailMarkdown,+ generateStatusIndexMarkdown,+} from "@/content/status-markdown";import { type NextRequest, NextResponse } from "next/server";export const runtime = "nodejs"; // Need fs access for content loading@@ -17,6 +21,19 @@ export async function GET(const { path: pathSegments } = await params;const pathname = pathSegments ? `/${pathSegments.join("/")}` : "/";+ const statusMd = await resolveStatusMarkdown(pathSegments);+ if (statusMd != null) {+ return new NextResponse(statusMd, {+ status: 200,+ headers: {+ "Content-Type": "text/markdown; charset=utf-8",+ "Cache-Control":+ "public, max-age=60, s-maxage=60, stale-while-revalidate=300",+ "X-Content-Source": "status",+ },+ });+ }+// Resolve content (MDX or listing)const result = resolveContent(pathname);@@ -54,6 +71,22 @@ export async function GET(}}+async function resolveStatusMarkdown(+ pathSegments: string[] | undefined,+): Promise<string | null> {+ if (!pathSegments || pathSegments.length === 0) return null;+ if (pathSegments[0] !== "status") return null;+ if (pathSegments.length === 1) {+ return generateStatusIndexMarkdown();+ }+ if (pathSegments.length === 2) {+ const slug = pathSegments[1];+ if (!slug) return null;+ return generateStatusDetailMarkdown(slug);+ }+ return null;+}+// Only allow GET requestsexport async function POST() {return new NextResponse("Method Not Allowed", { status: 405 });diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.tsindex 1890d126d..c1b0f5455 100644--- a/apps/web/src/app/sitemap.ts+++ b/apps/web/src/app/sitemap.ts@@ -10,8 +10,11 @@ import {getUnrelatedPages,getUseCasePages,} from "@/content/utils";+import { cachedListExternalServices } from "@/lib/external-service-cache";import type { MetadataRoute } from "next";+export const revalidate = 3600;+const allPosts = getBlogPosts();const allChangelogs = getChangelogPosts();const allComparisons = getComparePages();@@ -26,7 +29,26 @@ const allGuides = getGuides();const allUseCases = getUseCasePages();const allTooling = getToolingPages();-export default function sitemap(): MetadataRoute.Sitemap {+export default async function sitemap(): Promise<MetadataRoute.Sitemap> {+ const externalServices = await cachedListExternalServices();+ const externalServiceEntries: MetadataRoute.Sitemap = externalServices+ .filter((s) => s.deletedAt == null)+ .map((s) => ({+ url: `https://www.openstatus.dev/status/${s.slug}`,+ lastModified: new Date().toISOString().slice(0, 10),+ changeFrequency: "hourly" as const,+ priority: 0.7,+ }));++ const externalServicesIndex: MetadataRoute.Sitemap = [+ {+ url: "https://www.openstatus.dev/status",+ lastModified: new Date().toISOString().slice(0, 10),+ changeFrequency: "hourly" as const,+ priority: 0.8,+ },+ ];+const blogs = allPosts.map((post) => ({url: `https://www.openstatus.dev/blog/${post.slug}`,lastModified: post.metadata.publishedAt, // date format should be YYYY-MM-DD@@ -180,5 +202,7 @@ export default function sitemap(): MetadataRoute.Sitemap {...useCaseIndex,...toolings,...toolingIndex,+ ...externalServicesIndex,+ ...externalServiceEntries,];}diff --git a/apps/web/src/content/status-markdown.ts b/apps/web/src/content/status-markdown.tsnew file mode 100644index 000000000..c3fa6d58a--- /dev/null+++ b/apps/web/src/content/status-markdown.ts@@ -0,0 +1,190 @@+import { env } from "@/env";+import {+ cachedGetExternalServiceBySlug,+ cachedListExternalServices,+} from "@/lib/external-service-cache";+import { OSTinybird, safePipeData } from "@openstatus/tinybird";++type LatestRow = {+ id: string;+ indicator: string;+ status: string;+ status_message: string;+ last_fetched_at: number;+};++type HistoryRow = {+ day: string;+ id: string;+ worst_indicator: string;+ had_maintenance: number;+ snapshot_count: number;+};++const HISTORY_DAYS = 45;++function pillLabel(args: { indicator: string; status: string }): string {+ if (args.status === "under_maintenance") return "Maintenance";+ switch (args.indicator) {+ case "none":+ return "Operational";+ case "minor":+ return "Minor Issue";+ case "major":+ return "Partial Outage";+ case "critical":+ return "Major Outage";+ default:+ return "Unknown";+ }+}++function dayLabel(row: HistoryRow): string {+ if (row.had_maintenance) return "maintenance";+ switch (row.worst_indicator) {+ case "none":+ return "operational";+ case "minor":+ return "minor issue";+ case "major":+ return "partial outage";+ case "critical":+ return "major outage";+ default:+ return "unknown";+ }+}++function formatIso(ms: number): string {+ if (!ms) return "no data";+ return new Date(ms).toISOString().replace(/\.\d{3}Z$/, "Z");+}++export async function generateStatusIndexMarkdown(): Promise<string> {+ const services = await cachedListExternalServices();+ const tb = new OSTinybird(env.TINY_BIRD_API_KEY);+ const latestRes = await safePipeData(+ tb.externalStatusLatest({}),+ "externalStatusLatest (markdown index)",+ );+ const latestRows: LatestRow[] = Array.isArray(latestRes.data)+ ? latestRes.data+ : [];+ const latestById = new Map<string, LatestRow>();+ for (const row of latestRows) latestById.set(row.id, row);++ let md = "---\n";+ md += `title: "External Status"\n`;+ md += `description: "Current status of external services tracked by OpenStatus."\n`;+ md += "---\n\n";+ md += "# External Status\n\n";+ md += "Current status of external services tracked by OpenStatus.\n\n";+ md += "| Service | Status | Provider | URL |\n";+ md += "| --- | --- | --- | --- |\n";+ for (const s of services) {+ if (s.deletedAt != null) continue;+ const snap = latestById.get(s.slug);+ const label = snap ? pillLabel(snap) : "Unknown";+ md += `| [${s.name}](/status/${s.slug}) | ${label} | ${s.provider} | ${s.url} |\n`;+ }+ md += "\n";+ return md;+}++export async function generateStatusDetailMarkdown(+ slug: string,+): Promise<string | null> {+ const service = await cachedGetExternalServiceBySlug(slug);+ if (!service) return null;+ if (service.slug !== slug) {+ return `# Redirect\n\nThis service moved. Canonical: [/status/${service.slug}](/status/${service.slug})\n`;+ }++ const aliasSlugs = Array.isArray(service.aliases) ? service.aliases : [];+ const slugChain = [service.slug, ...aliasSlugs];++ const tb = new OSTinybird(env.TINY_BIRD_API_KEY);+ const [latestRes, historyRes] = await Promise.all([+ safePipeData(+ tb.externalStatusLatest({ ids: slugChain }),+ "externalStatusLatest (markdown detail)",+ ),+ safePipeData(+ tb.externalStatusHistory({ ids: slugChain, days: HISTORY_DAYS }),+ "externalStatusHistory (markdown detail)",+ ),+ ]);++ const latestRows: LatestRow[] = Array.isArray(latestRes.data)+ ? latestRes.data+ : [];+ latestRows.sort((a, b) => b.last_fetched_at - a.last_fetched_at);+ const latest = latestRows[0];++ const historyRows: HistoryRow[] = Array.isArray(historyRes.data)+ ? historyRes.data+ : [];++ let md = "---\n";+ md += `title: "${service.name} Status"\n`;+ md += `description: "Current status of ${service.name}. Uptime history and recent incidents tracked by OpenStatus."\n`;+ md += "---\n\n";+ md += `# ${service.name} Status\n\n`;++ if (latest) {+ md += `**Status:** ${pillLabel(latest)}\n`;+ md += `**Last updated:** ${formatIso(latest.last_fetched_at)}\n`;+ if (latest.status_message) {+ md += `**Provider message:** ${latest.status_message}\n`;+ }+ } else {+ md += "**Status:** Unknown (no data yet)\n";+ }+ md += "\n";++ md += "## Service\n\n";+ md += `- Name: ${service.name}\n`;+ md += `- URL: ${service.url}\n`;+ md += `- Upstream status page: ${service.statusPageUrl}\n`;+ md += `- Provider: ${service.provider}\n`;+ if (service.description) md += `- About: ${service.description}\n`;+ if (aliasSlugs.length > 0) {+ md += `- Aliases: ${aliasSlugs.join(", ")}\n`;+ }+ if (service.deletedAt != null) {+ md += `- Deprecated: yes (deleted at ${formatIso(service.deletedAt.getTime())})\n`;+ }+ md += "\n";++ md += `## Last ${HISTORY_DAYS} days\n\n`;+ if (historyRows.length === 0) {+ md += "No history yet — tracking begins after first poll.\n\n";+ } else {+ md += "| Day | Status | Snapshots |\n";+ md += "| --- | --- | --- |\n";+ const byDay = new Map<string, HistoryRow>();+ for (const r of historyRows) {+ byDay.set(r.day.slice(0, 10), r);+ }+ const today = new Date();+ today.setUTCHours(0, 0, 0, 0);+ for (let i = 0; i < HISTORY_DAYS; i++) {+ const date = new Date(today);+ date.setUTCDate(today.getUTCDate() - i);+ const iso = date.toISOString().slice(0, 10);+ const row = byDay.get(iso);+ if (row) {+ md += `| ${iso} | ${dayLabel(row)} | ${row.snapshot_count} |\n`;+ } else {+ md += `| ${iso} | (no data) | 0 |\n`;+ }+ }+ }+ md += "\n";++ md += "## Links\n\n";+ md += `- HTML page: /status/${service.slug}\n`;+ md += `- Upstream: ${service.statusPageUrl}\n`;++ return md;+}diff --git a/apps/web/src/env.ts b/apps/web/src/env.tsindex 2e3e75fe8..30daff3cb 100644--- a/apps/web/src/env.ts+++ b/apps/web/src/env.ts@@ -19,7 +19,6 @@ export const env = createEnv({GCP_CLIENT_EMAIL: z.string(),GCP_PRIVATE_KEY: z.string(),CRON_SECRET: z.string(),- EXTERNAL_API_URL: z.url(),CLICKHOUSE_URL: z.string(),CLICKHOUSE_USERNAME: z.string(),CLICKHOUSE_PASSWORD: z.string(),@@ -52,7 +51,6 @@ export const env = createEnv({GCP_CLIENT_EMAIL: process.env.GCP_CLIENT_EMAIL,GCP_PRIVATE_KEY: process.env.GCP_PRIVATE_KEY,CRON_SECRET: process.env.CRON_SECRET,- EXTERNAL_API_URL: process.env.EXTERNAL_API_URL,CLICKHOUSE_URL: process.env.CLICKHOUSE_URL,CLICKHOUSE_USERNAME: process.env.CLICKHOUSE_USERNAME,CLICKHOUSE_PASSWORD: process.env.CLICKHOUSE_PASSWORD,diff --git a/apps/web/src/lib/external-service-cache.ts b/apps/web/src/lib/external-service-cache.tsnew file mode 100644index 000000000..bf7ba848a--- /dev/null+++ b/apps/web/src/lib/external-service-cache.ts@@ -0,0 +1,27 @@+import {+ getExternalServiceBySlug,+ listExternalServiceSlugs,+ listExternalServices,+} from "@openstatus/services/external-service";+import { unstable_cache } from "next/cache";++const REVALIDATE_SECONDS = 3600; // 1 hour+const TAG = "external-services";++export const cachedListExternalServices = unstable_cache(+ async () => listExternalServices({}),+ ["external-services:list"],+ { revalidate: REVALIDATE_SECONDS, tags: [TAG] },+);++export const cachedListExternalServiceSlugs = unstable_cache(+ async () => listExternalServiceSlugs(),+ ["external-services:slugs"],+ { revalidate: REVALIDATE_SECONDS, tags: [TAG] },+);++export const cachedGetExternalServiceBySlug = unstable_cache(+ async (slug: string) => getExternalServiceBySlug({ slug }),+ ["external-services:by-slug"],+ { revalidate: REVALIDATE_SECONDS, tags: [TAG] },+);diff --git a/apps/workflows/package.json b/apps/workflows/package.jsonindex 271500aa8..39053330b 100644--- a/apps/workflows/package.json+++ b/apps/workflows/package.json@@ -29,9 +29,13 @@"@openstatus/notification-bird-whatsapp": "workspace:*","@openstatus/notification-webhook": "workspace:*","@openstatus/regions": "workspace:*",+ "@openstatus/services": "workspace:*",+ "@openstatus/status-fetcher": "workspace:*","@openstatus/tinybird": "workspace:*","@openstatus/upstash": "workspace:*","@openstatus/utils": "workspace:*",+ "@opentelemetry/resources": "2.2.0",+ "@opentelemetry/semantic-conventions": "1.38.0","@upstash/qstash": "2.6.2","drizzle-orm": "0.44.4","effect": "3.19.12",diff --git a/apps/workflows/src/cron/external-status.ts b/apps/workflows/src/cron/external-status.tsnew file mode 100644index 000000000..da2cfaac2--- /dev/null+++ b/apps/workflows/src/cron/external-status.ts@@ -0,0 +1,161 @@+import { getSentry } from "@hono/sentry";+import { getLogger } from "@logtape/logtape";+import { listExternalServices } from "@openstatus/services/external-service";+import type { ExternalServiceRow } from "@openstatus/services/external-service";+import { fetchers } from "@openstatus/status-fetcher";+import type { StatusPageEntry, StatusResult } from "@openstatus/status-fetcher";+import { OSTinybird } from "@openstatus/tinybird";+import { Effect, Schedule } from "effect";+import type { Context } from "hono";++import { env } from "../env";+import { db } from "../lib/db";++const logger = getLogger(["workflow", "external-status"]);++function toStatusPageEntry(row: ExternalServiceRow): StatusPageEntry {+ return {+ id: row.slug,+ name: row.name,+ url: row.url,+ status_page_url: row.statusPageUrl,+ provider: row.provider,+ industry: row.industry,+ description: row.description ?? undefined,+ api_config: row.apiConfig ?? undefined,+ };+}++type Snapshot = {+ id: string;+ indicator: string;+ status: string;+ status_message: string;+ fetched_at: number;+ updated_at: number;+ time_zone: string;+};++function buildSnapshot(args: {+ entry: StatusPageEntry;+ result: StatusResult;+ fetchedAt: number;+}): Snapshot {+ const { entry, result, fetchedAt } = args;+ return {+ id: entry.id,+ indicator: result.severity,+ status: result.status,+ status_message: result.description,+ fetched_at: fetchedAt,+ updated_at: result.updated_at,+ time_zone: result.timezone ?? "",+ };+}++export async function runExternalStatusTick(): Promise<{+ successCount: number;+ failureCount: number;+ total: number;+}> {+ const tb = new OSTinybird(env().TINY_BIRD_API_KEY);+ const services = await listExternalServices({ ctx: { db } });++ const entries = services.map(toStatusPageEntry);+ const fetchedAt = Date.now();++ const settled = await Promise.allSettled(+ entries.map(async (entry) => {+ const fetcher = fetchers.find((f) => f.canHandle(entry));+ if (!fetcher) {+ throw new Error(`no fetcher matches entry slug=${entry.id}`);+ }+ const result = await fetcher.fetch(entry);+ return buildSnapshot({ entry, result, fetchedAt });+ }),+ );++ const snapshots: Snapshot[] = [];+ let failureCount = 0;+ for (const [i, r] of settled.entries()) {+ if (r.status === "fulfilled") {+ snapshots.push(r.value);+ } else {+ failureCount++;+ const slug = entries[i]?.id ?? "<unknown>";+ logger.warn(+ "external-status tick: fetcher failed for slug={slug}: {reason}",+ {+ slug,+ reason:+ r.reason instanceof Error ? r.reason.message : String(r.reason),+ },+ );+ }+ }++ if (snapshots.length > 0) {+ await tb.publishExternalStatus(snapshots);+ }++ return {+ successCount: snapshots.length,+ failureCount,+ total: entries.length,+ };+}++export async function handleExternalStatusCron(c: Context) {+ const sentry = getSentry(c);+ const checkInId = sentry.captureCheckIn({+ monitorSlug: "external-status",+ status: "in_progress",+ });++ void Effect.runPromise(+ Effect.tryPromise({+ try: () => runExternalStatusTick(),+ catch: (e) =>+ new Error(+ `external-status tick failed: ${e instanceof Error ? e.message : String(e)}`,+ ),+ }).pipe(+ Effect.retry({+ times: 3,+ schedule: Schedule.exponential("1000 millis"),+ }),+ Effect.tap((res) =>+ Effect.sync(() => {+ logger.info(+ "external-status tick complete: {success}/{total} ({failures} failures)",+ {+ success: res.successCount,+ total: res.total,+ failures: res.failureCount,+ },+ );+ sentry.captureCheckIn({+ checkInId,+ monitorSlug: "external-status",+ status: "ok",+ });+ }),+ ),+ Effect.catchAll((e) =>+ Effect.sync(() => {+ logger.error("external-status tick errored: {message}", {+ message: e.message,+ });+ sentry.captureMessage(e.message, "error");+ sentry.captureCheckIn({+ checkInId,+ monitorSlug: "external-status",+ status: "error",+ });+ }),+ ),+ ),+ );++ return c.json({ success: true }, 200);+}diff --git a/apps/workflows/src/cron/index.ts b/apps/workflows/src/cron/index.tsindex 67a6f7cdb..187137a31 100644--- a/apps/workflows/src/cron/index.ts+++ b/apps/workflows/src/cron/index.ts@@ -5,6 +5,7 @@ import { Hono } from "hono";import { env } from "../env";import { sendCheckerTasks } from "./checker";import { sendFollowUpEmails } from "./emails";+import { handleExternalStatusCron } from "./external-status";import {LaunchMonitorWorkflow,Step3Days,@@ -71,6 +72,10 @@ app.get("/checker/:period", async (c) => {return c.json({ success: schema.data }, 200);});+app.get("/external-status", async (c) => {+ return handleExternalStatusCron(c);+});+app.get("/emails/follow-up", async (c) => {try {await sendFollowUpEmails();diff --git a/package.json b/package.jsonindex ff485e88e..b8ccc0aff 100644--- a/package.json+++ b/package.json@@ -22,11 +22,11 @@"devDependencies": {"@biomejs/biome": "1.8.3","@turbo/gen": "1.13.3",+ "@types/node": "24.0.8",+ "knip": "5.75.1","oxfmt": "0.20.0","oxlint": "1.36.0","oxlint-tsgolint": "0.10.1",- "@types/node": "24.0.8",- "knip": "5.75.1","turbo": "2.6.3","typescript": "5.9.3"},diff --git a/packages/db/drizzle/0069_ambitious_jamie_braddock.sql b/packages/db/drizzle/0069_ambitious_jamie_braddock.sqlnew file mode 100644index 000000000..dc6516100--- /dev/null+++ b/packages/db/drizzle/0069_ambitious_jamie_braddock.sql@@ -0,0 +1,18 @@+CREATE TABLE `external_service` (+ `id` integer PRIMARY KEY NOT NULL,+ `slug` text(64) NOT NULL,+ `aliases` text DEFAULT (json_array()) NOT NULL,+ `name` text(256) NOT NULL,+ `url` text NOT NULL,+ `status_page_url` text NOT NULL,+ `provider` text NOT NULL,+ `industry` text NOT NULL,+ `description` text,+ `api_config` text,+ `deleted_at` integer,+ `created_at` integer DEFAULT (strftime('%s', 'now')),+ `updated_at` integer DEFAULT (strftime('%s', 'now'))+);+--> statement-breakpoint+CREATE UNIQUE INDEX `external_service_slug_unique` ON `external_service` (`slug`);--> statement-breakpoint+CREATE INDEX `external_service_deleted_at_idx` ON `external_service` (`deleted_at`);\ No newline at end of filediff --git a/packages/db/drizzle/meta/0069_snapshot.json b/packages/db/drizzle/meta/0069_snapshot.jsonnew file mode 100644index 000000000..7ad61c9f1--- /dev/null+++ b/packages/db/drizzle/meta/0069_snapshot.json@@ -0,0 +1,4128 @@+{+ "version": "6",+ "dialect": "sqlite",+ "id": "42578321-874d-434e-861b-b6c3ea935250",+ "prevId": "ea8f3dea-b840-4c50-bf13-fdf040455196",+ "tables": {+ "workspace": {+ "name": "workspace",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "slug": {+ "name": "slug",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripe_id": {+ "name": "stripe_id",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "subscription_id": {+ "name": "subscription_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "plan": {+ "name": "plan",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "ends_at": {+ "name": "ends_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "paid_until": {+ "name": "paid_until",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "limits": {+ "name": "limits",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'{}'"+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "dsn": {+ "name": "dsn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "workspace_slug_unique": {+ "name": "workspace_slug_unique",+ "columns": [+ "slug"+ ],+ "isUnique": true+ },+ "workspace_stripe_id_unique": {+ "name": "workspace_stripe_id_unique",+ "columns": [+ "stripe_id"+ ],+ "isUnique": true+ },+ "workspace_id_dsn_unique": {+ "name": "workspace_id_dsn_unique",+ "columns": [+ "id",+ "dsn"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "account": {+ "name": "account",+ "columns": {+ "user_id": {+ "name": "user_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider_account_id": {+ "name": "provider_account_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_at": {+ "name": "expires_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "session_state": {+ "name": "session_state",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "account_user_id_user_id_fk": {+ "name": "account_user_id_user_id_fk",+ "tableFrom": "account",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "account_provider_provider_account_id_pk": {+ "columns": [+ "provider",+ "provider_account_id"+ ],+ "name": "account_provider_provider_account_id_pk"+ }+ },+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "session": {+ "name": "session",+ "columns": {+ "session_token": {+ "name": "session_token",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "user_id": {+ "name": "user_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "session_user_id_user_id_fk": {+ "name": "session_user_id_user_id_fk",+ "tableFrom": "session",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "user": {+ "name": "user",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "tenant_id": {+ "name": "tenant_id",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "first_name": {+ "name": "first_name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "''"+ },+ "last_name": {+ "name": "last_name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "''"+ },+ "photo_url": {+ "name": "photo_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "''"+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "''"+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "deleted_at": {+ "name": "deleted_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "user_tenant_id_unique": {+ "name": "user_tenant_id_unique",+ "columns": [+ "tenant_id"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "users_to_workspaces": {+ "name": "users_to_workspaces",+ "columns": {+ "user_id": {+ "name": "user_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'member'"+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "users_to_workspaces_workspace_id_idx": {+ "name": "users_to_workspaces_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "users_to_workspaces_user_id_user_id_fk": {+ "name": "users_to_workspaces_user_id_user_id_fk",+ "tableFrom": "users_to_workspaces",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "users_to_workspaces_workspace_id_workspace_id_fk": {+ "name": "users_to_workspaces_workspace_id_workspace_id_fk",+ "tableFrom": "users_to_workspaces",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "users_to_workspaces_user_id_workspace_id_pk": {+ "columns": [+ "user_id",+ "workspace_id"+ ],+ "name": "users_to_workspaces_user_id_workspace_id_pk"+ }+ },+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "verification_token": {+ "name": "verification_token",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verification_token_identifier_token_pk": {+ "columns": [+ "identifier",+ "token"+ ],+ "name": "verification_token_identifier_token_pk"+ }+ },+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "status_report": {+ "name": "status_report",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "status_report_workspace_created_idx": {+ "name": "status_report_workspace_created_idx",+ "columns": [+ "workspace_id",+ "created_at"+ ],+ "isUnique": false+ },+ "status_report_page_id_idx": {+ "name": "status_report_page_id_idx",+ "columns": [+ "page_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "status_report_workspace_id_workspace_id_fk": {+ "name": "status_report_workspace_id_workspace_id_fk",+ "tableFrom": "status_report",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "status_report_page_id_page_id_fk": {+ "name": "status_report_page_id_page_id_fk",+ "tableFrom": "status_report",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "status_report_update": {+ "name": "status_report_update",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "date": {+ "name": "date",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "message": {+ "name": "message",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status_report_id": {+ "name": "status_report_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "status_report_update_status_report_id_idx": {+ "name": "status_report_update_status_report_id_idx",+ "columns": [+ "status_report_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "status_report_update_status_report_id_status_report_id_fk": {+ "name": "status_report_update_status_report_id_status_report_id_fk",+ "tableFrom": "status_report_update",+ "tableTo": "status_report",+ "columnsFrom": [+ "status_report_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "integration": {+ "name": "integration",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "credential": {+ "name": "credential",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "external_id": {+ "name": "external_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "data": {+ "name": "data",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "integration_workspace_id_idx": {+ "name": "integration_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "integration_workspace_id_workspace_id_fk": {+ "name": "integration_workspace_id_workspace_id_fk",+ "tableFrom": "integration",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "page": {+ "name": "page",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "icon": {+ "name": "icon",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "''"+ },+ "slug": {+ "name": "slug",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "custom_domain": {+ "name": "custom_domain",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "published": {+ "name": "published",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": false+ },+ "force_theme": {+ "name": "force_theme",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'system'"+ },+ "password": {+ "name": "password",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "password_protected": {+ "name": "password_protected",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": false+ },+ "access_type": {+ "name": "access_type",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "'public'"+ },+ "auth_email_domains": {+ "name": "auth_email_domains",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allowed_ip_ranges": {+ "name": "allowed_ip_ranges",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "homepage_url": {+ "name": "homepage_url",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "contact_url": {+ "name": "contact_url",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "default_locale": {+ "name": "default_locale",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'en'"+ },+ "locales": {+ "name": "locales",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "legacy_page": {+ "name": "legacy_page",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "configuration": {+ "name": "configuration",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allow_index": {+ "name": "allow_index",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "show_monitor_values": {+ "name": "show_monitor_values",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": true+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "page_slug_unique": {+ "name": "page_slug_unique",+ "columns": [+ "slug"+ ],+ "isUnique": true+ },+ "page_lower_slug_idx": {+ "name": "page_lower_slug_idx",+ "columns": [+ "LOWER(\"slug\")"+ ],+ "isUnique": false+ },+ "page_lower_custom_domain_idx": {+ "name": "page_lower_custom_domain_idx",+ "columns": [+ "LOWER(\"custom_domain\")"+ ],+ "isUnique": false+ },+ "page_workspace_id_idx": {+ "name": "page_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "page_workspace_id_workspace_id_fk": {+ "name": "page_workspace_id_workspace_id_fk",+ "tableFrom": "page",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "monitor": {+ "name": "monitor",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "job_type": {+ "name": "job_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'http'"+ },+ "periodicity": {+ "name": "periodicity",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'other'"+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'active'"+ },+ "active": {+ "name": "active",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": false+ },+ "regions": {+ "name": "regions",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "url": {+ "name": "url",+ "type": "text(2048)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "external_name": {+ "name": "external_name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "headers": {+ "name": "headers",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "''"+ },+ "body": {+ "name": "body",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "''"+ },+ "method": {+ "name": "method",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "'GET'"+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "timeout": {+ "name": "timeout",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 45000+ },+ "degraded_after": {+ "name": "degraded_after",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "assertions": {+ "name": "assertions",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "otel_endpoint": {+ "name": "otel_endpoint",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "otel_headers": {+ "name": "otel_headers",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "public": {+ "name": "public",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": false+ },+ "retry": {+ "name": "retry",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": 3+ },+ "follow_redirects": {+ "name": "follow_redirects",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": true+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "deleted_at": {+ "name": "deleted_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "monitor_workspace_id_active_idx": {+ "name": "monitor_workspace_id_active_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false,+ "where": "\"monitor\".\"deleted_at\" IS NULL"+ }+ },+ "foreignKeys": {+ "monitor_workspace_id_workspace_id_fk": {+ "name": "monitor_workspace_id_workspace_id_fk",+ "tableFrom": "monitor",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "page_subscriber": {+ "name": "page_subscriber",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "channel_type": {+ "name": "channel_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'email'"+ },+ "webhook_url": {+ "name": "webhook_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "channel_config": {+ "name": "channel_config",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "source": {+ "name": "source",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'self_signup'"+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "accepted_at": {+ "name": "accepted_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_at": {+ "name": "expires_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "unsubscribed_at": {+ "name": "unsubscribed_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "idx_page_subscriber_email_page_active": {+ "name": "idx_page_subscriber_email_page_active",+ "columns": [+ "LOWER(\"email\")",+ "page_id"+ ],+ "isUnique": true,+ "where": "\"page_subscriber\".\"unsubscribed_at\" IS NULL AND \"page_subscriber\".\"channel_type\" = 'email'"+ },+ "idx_page_subscriber_webhook_page_active": {+ "name": "idx_page_subscriber_webhook_page_active",+ "columns": [+ "LOWER(\"webhook_url\")",+ "page_id"+ ],+ "isUnique": true,+ "where": "\"page_subscriber\".\"unsubscribed_at\" IS NULL AND \"page_subscriber\".\"channel_type\" = 'webhook'"+ }+ },+ "foreignKeys": {+ "page_subscriber_page_id_page_id_fk": {+ "name": "page_subscriber_page_id_page_id_fk",+ "tableFrom": "page_subscriber",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {+ "page_subscriber_channel_check": {+ "name": "page_subscriber_channel_check",+ "value": "(\"page_subscriber\".\"channel_type\" = 'email' AND \"page_subscriber\".\"email\" IS NOT NULL AND \"page_subscriber\".\"webhook_url\" IS NULL) OR (\"page_subscriber\".\"channel_type\" = 'webhook' AND \"page_subscriber\".\"webhook_url\" IS NOT NULL AND \"page_subscriber\".\"email\" IS NULL)"+ }+ }+ },+ "page_subscriber_to_page_component": {+ "name": "page_subscriber_to_page_component",+ "columns": {+ "page_subscriber_id": {+ "name": "page_subscriber_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_component_id": {+ "name": "page_component_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "page_subscriber_to_page_component_page_subscriber_id_page_subscriber_id_fk": {+ "name": "page_subscriber_to_page_component_page_subscriber_id_page_subscriber_id_fk",+ "tableFrom": "page_subscriber_to_page_component",+ "tableTo": "page_subscriber",+ "columnsFrom": [+ "page_subscriber_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "page_subscriber_to_page_component_page_component_id_page_component_id_fk": {+ "name": "page_subscriber_to_page_component_page_component_id_page_component_id_fk",+ "tableFrom": "page_subscriber_to_page_component",+ "tableTo": "page_component",+ "columnsFrom": [+ "page_component_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "page_subscriber_to_page_component_page_subscriber_id_page_component_id_pk": {+ "columns": [+ "page_subscriber_id",+ "page_component_id"+ ],+ "name": "page_subscriber_to_page_component_page_subscriber_id_page_component_id_pk"+ }+ },+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "notification": {+ "name": "notification",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "data": {+ "name": "data",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "'{}'"+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "notification_workspace_id_idx": {+ "name": "notification_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "notification_workspace_id_workspace_id_fk": {+ "name": "notification_workspace_id_workspace_id_fk",+ "tableFrom": "notification",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "notification_trigger": {+ "name": "notification_trigger",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "monitor_id": {+ "name": "monitor_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "notification_id": {+ "name": "notification_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "cron_timestamp": {+ "name": "cron_timestamp",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "notification_id_monitor_id_crontimestampe": {+ "name": "notification_id_monitor_id_crontimestampe",+ "columns": [+ "notification_id",+ "monitor_id",+ "cron_timestamp"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "notification_trigger_monitor_id_monitor_id_fk": {+ "name": "notification_trigger_monitor_id_monitor_id_fk",+ "tableFrom": "notification_trigger",+ "tableTo": "monitor",+ "columnsFrom": [+ "monitor_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "notification_trigger_notification_id_notification_id_fk": {+ "name": "notification_trigger_notification_id_notification_id_fk",+ "tableFrom": "notification_trigger",+ "tableTo": "notification",+ "columnsFrom": [+ "notification_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "notifications_to_monitors": {+ "name": "notifications_to_monitors",+ "columns": {+ "monitor_id": {+ "name": "monitor_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "notification_id": {+ "name": "notification_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "notifications_to_monitors_notification_id_idx": {+ "name": "notifications_to_monitors_notification_id_idx",+ "columns": [+ "notification_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "notifications_to_monitors_monitor_id_monitor_id_fk": {+ "name": "notifications_to_monitors_monitor_id_monitor_id_fk",+ "tableFrom": "notifications_to_monitors",+ "tableTo": "monitor",+ "columnsFrom": [+ "monitor_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "notifications_to_monitors_notification_id_notification_id_fk": {+ "name": "notifications_to_monitors_notification_id_notification_id_fk",+ "tableFrom": "notifications_to_monitors",+ "tableTo": "notification",+ "columnsFrom": [+ "notification_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "notifications_to_monitors_monitor_id_notification_id_pk": {+ "columns": [+ "monitor_id",+ "notification_id"+ ],+ "name": "notifications_to_monitors_monitor_id_notification_id_pk"+ }+ },+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "monitor_status": {+ "name": "monitor_status",+ "columns": {+ "monitor_id": {+ "name": "monitor_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "region": {+ "name": "region",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'active'"+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "monitor_status_idx": {+ "name": "monitor_status_idx",+ "columns": [+ "monitor_id",+ "region"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "monitor_status_monitor_id_monitor_id_fk": {+ "name": "monitor_status_monitor_id_monitor_id_fk",+ "tableFrom": "monitor_status",+ "tableTo": "monitor",+ "columnsFrom": [+ "monitor_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "monitor_status_monitor_id_region_pk": {+ "columns": [+ "monitor_id",+ "region"+ ],+ "name": "monitor_status_monitor_id_region_pk"+ }+ },+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "invitation": {+ "name": "invitation",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'member'"+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires_at": {+ "name": "expires_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "accepted_at": {+ "name": "accepted_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "invitation_workspace_id_idx": {+ "name": "invitation_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "incident": {+ "name": "incident",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "summary": {+ "name": "summary",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "status": {+ "name": "status",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'triage'"+ },+ "monitor_id": {+ "name": "monitor_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "started_at": {+ "name": "started_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "acknowledged_at": {+ "name": "acknowledged_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "acknowledged_by": {+ "name": "acknowledged_by",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "resolved_at": {+ "name": "resolved_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "resolved_by": {+ "name": "resolved_by",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "incident_screenshot_url": {+ "name": "incident_screenshot_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "recovery_screenshot_url": {+ "name": "recovery_screenshot_url",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "auto_resolved": {+ "name": "auto_resolved",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "incident_workspace_id_idx": {+ "name": "incident_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ },+ "incident_monitor_id_started_at_unique": {+ "name": "incident_monitor_id_started_at_unique",+ "columns": [+ "monitor_id",+ "started_at"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "incident_monitor_id_monitor_id_fk": {+ "name": "incident_monitor_id_monitor_id_fk",+ "tableFrom": "incident",+ "tableTo": "monitor",+ "columnsFrom": [+ "monitor_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "set default",+ "onUpdate": "no action"+ },+ "incident_workspace_id_workspace_id_fk": {+ "name": "incident_workspace_id_workspace_id_fk",+ "tableFrom": "incident",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "incident_acknowledged_by_user_id_fk": {+ "name": "incident_acknowledged_by_user_id_fk",+ "tableFrom": "incident",+ "tableTo": "user",+ "columnsFrom": [+ "acknowledged_by"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "incident_resolved_by_user_id_fk": {+ "name": "incident_resolved_by_user_id_fk",+ "tableFrom": "incident",+ "tableTo": "user",+ "columnsFrom": [+ "resolved_by"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "monitor_tag": {+ "name": "monitor_tag",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "color": {+ "name": "color",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "monitor_tag_workspace_id_idx": {+ "name": "monitor_tag_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "monitor_tag_workspace_id_workspace_id_fk": {+ "name": "monitor_tag_workspace_id_workspace_id_fk",+ "tableFrom": "monitor_tag",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "monitor_tag_to_monitor": {+ "name": "monitor_tag_to_monitor",+ "columns": {+ "monitor_id": {+ "name": "monitor_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "monitor_tag_id": {+ "name": "monitor_tag_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "monitor_tag_to_monitor_monitor_tag_id_idx": {+ "name": "monitor_tag_to_monitor_monitor_tag_id_idx",+ "columns": [+ "monitor_tag_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "monitor_tag_to_monitor_monitor_id_monitor_id_fk": {+ "name": "monitor_tag_to_monitor_monitor_id_monitor_id_fk",+ "tableFrom": "monitor_tag_to_monitor",+ "tableTo": "monitor",+ "columnsFrom": [+ "monitor_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "monitor_tag_to_monitor_monitor_tag_id_monitor_tag_id_fk": {+ "name": "monitor_tag_to_monitor_monitor_tag_id_monitor_tag_id_fk",+ "tableFrom": "monitor_tag_to_monitor",+ "tableTo": "monitor_tag",+ "columnsFrom": [+ "monitor_tag_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "monitor_tag_to_monitor_monitor_id_monitor_tag_id_pk": {+ "columns": [+ "monitor_id",+ "monitor_tag_id"+ ],+ "name": "monitor_tag_to_monitor_monitor_id_monitor_tag_id_pk"+ }+ },+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "application": {+ "name": "application",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "dsn": {+ "name": "dsn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "application_dsn_unique": {+ "name": "application_dsn_unique",+ "columns": [+ "dsn"+ ],+ "isUnique": true+ },+ "application_workspace_id_idx": {+ "name": "application_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "application_workspace_id_workspace_id_fk": {+ "name": "application_workspace_id_workspace_id_fk",+ "tableFrom": "application",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "maintenance": {+ "name": "maintenance",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "message": {+ "name": "message",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "from": {+ "name": "from",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "to": {+ "name": "to",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "maintenance_page_id_idx": {+ "name": "maintenance_page_id_idx",+ "columns": [+ "page_id"+ ],+ "isUnique": false+ },+ "maintenance_workspace_id_idx": {+ "name": "maintenance_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "maintenance_workspace_id_workspace_id_fk": {+ "name": "maintenance_workspace_id_workspace_id_fk",+ "tableFrom": "maintenance",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "maintenance_page_id_page_id_fk": {+ "name": "maintenance_page_id_page_id_fk",+ "tableFrom": "maintenance",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "check": {+ "name": "check",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": true+ },+ "regions": {+ "name": "regions",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "url": {+ "name": "url",+ "type": "text(4096)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "headers": {+ "name": "headers",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "''"+ },+ "body": {+ "name": "body",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "''"+ },+ "method": {+ "name": "method",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "'GET'"+ },+ "count_requests": {+ "name": "count_requests",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": 1+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "check_workspace_id_idx": {+ "name": "check_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "check_workspace_id_workspace_id_fk": {+ "name": "check_workspace_id_workspace_id_fk",+ "tableFrom": "check",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "monitor_run": {+ "name": "monitor_run",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "monitor_id": {+ "name": "monitor_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "runned_at": {+ "name": "runned_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "monitor_run_workspace_id_idx": {+ "name": "monitor_run_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ },+ "monitor_run_monitor_id_idx": {+ "name": "monitor_run_monitor_id_idx",+ "columns": [+ "monitor_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "monitor_run_workspace_id_workspace_id_fk": {+ "name": "monitor_run_workspace_id_workspace_id_fk",+ "tableFrom": "monitor_run",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "monitor_run_monitor_id_monitor_id_fk": {+ "name": "monitor_run_monitor_id_monitor_id_fk",+ "tableFrom": "monitor_run",+ "tableTo": "monitor",+ "columnsFrom": [+ "monitor_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "private_location": {+ "name": "private_location",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "last_seen_at": {+ "name": "last_seen_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "private_location_workspace_id_idx": {+ "name": "private_location_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "private_location_workspace_id_workspace_id_fk": {+ "name": "private_location_workspace_id_workspace_id_fk",+ "tableFrom": "private_location",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "private_location_to_monitor": {+ "name": "private_location_to_monitor",+ "columns": {+ "private_location_id": {+ "name": "private_location_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "monitor_id": {+ "name": "monitor_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "deleted_at": {+ "name": "deleted_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "private_location_to_monitor_private_location_id_idx": {+ "name": "private_location_to_monitor_private_location_id_idx",+ "columns": [+ "private_location_id"+ ],+ "isUnique": false+ },+ "private_location_to_monitor_monitor_id_idx": {+ "name": "private_location_to_monitor_monitor_id_idx",+ "columns": [+ "monitor_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "private_location_to_monitor_private_location_id_private_location_id_fk": {+ "name": "private_location_to_monitor_private_location_id_private_location_id_fk",+ "tableFrom": "private_location_to_monitor",+ "tableTo": "private_location",+ "columnsFrom": [+ "private_location_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "private_location_to_monitor_monitor_id_monitor_id_fk": {+ "name": "private_location_to_monitor_monitor_id_monitor_id_fk",+ "tableFrom": "private_location_to_monitor",+ "tableTo": "monitor",+ "columnsFrom": [+ "monitor_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "monitor_group": {+ "name": "monitor_group",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "monitor_group_workspace_id_idx": {+ "name": "monitor_group_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ },+ "monitor_group_page_id_idx": {+ "name": "monitor_group_page_id_idx",+ "columns": [+ "page_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "monitor_group_workspace_id_workspace_id_fk": {+ "name": "monitor_group_workspace_id_workspace_id_fk",+ "tableFrom": "monitor_group",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "monitor_group_page_id_page_id_fk": {+ "name": "monitor_group_page_id_page_id_fk",+ "tableFrom": "monitor_group",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "viewer": {+ "name": "viewer",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "viewer_email_unique": {+ "name": "viewer_email_unique",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "viewer_accounts": {+ "name": "viewer_accounts",+ "columns": {+ "user_id": {+ "name": "user_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_at": {+ "name": "expires_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "session_state": {+ "name": "session_state",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "viewer_accounts_user_id_viewer_id_fk": {+ "name": "viewer_accounts_user_id_viewer_id_fk",+ "tableFrom": "viewer_accounts",+ "tableTo": "viewer",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "viewer_accounts_provider_providerAccountId_pk": {+ "columns": [+ "provider",+ "providerAccountId"+ ],+ "name": "viewer_accounts_provider_providerAccountId_pk"+ }+ },+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "viewer_session": {+ "name": "viewer_session",+ "columns": {+ "session_token": {+ "name": "session_token",+ "type": "text",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "user_id": {+ "name": "user_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "viewer_session_user_id_viewer_id_fk": {+ "name": "viewer_session_user_id_viewer_id_fk",+ "tableFrom": "viewer_session",+ "tableTo": "viewer",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "api_key": {+ "name": "api_key",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "prefix": {+ "name": "prefix",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "hashed_token": {+ "name": "hashed_token",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_by_id": {+ "name": "created_by_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "scopes": {+ "name": "scopes",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'[\"write\"]'"+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "expires_at": {+ "name": "expires_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "last_used_at": {+ "name": "last_used_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "api_key_prefix_unique": {+ "name": "api_key_prefix_unique",+ "columns": [+ "prefix"+ ],+ "isUnique": true+ },+ "api_key_hashed_token_unique": {+ "name": "api_key_hashed_token_unique",+ "columns": [+ "hashed_token"+ ],+ "isUnique": true+ },+ "api_key_prefix_idx": {+ "name": "api_key_prefix_idx",+ "columns": [+ "prefix"+ ],+ "isUnique": false+ },+ "api_key_workspace_id_idx": {+ "name": "api_key_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "api_key_workspace_id_workspace_id_fk": {+ "name": "api_key_workspace_id_workspace_id_fk",+ "tableFrom": "api_key",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "api_key_created_by_id_user_id_fk": {+ "name": "api_key_created_by_id_user_id_fk",+ "tableFrom": "api_key",+ "tableTo": "user",+ "columnsFrom": [+ "created_by_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "maintenance_to_page_component": {+ "name": "maintenance_to_page_component",+ "columns": {+ "maintenance_id": {+ "name": "maintenance_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_component_id": {+ "name": "page_component_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "maintenance_to_page_component_page_component_id_idx": {+ "name": "maintenance_to_page_component_page_component_id_idx",+ "columns": [+ "page_component_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "maintenance_to_page_component_maintenance_id_maintenance_id_fk": {+ "name": "maintenance_to_page_component_maintenance_id_maintenance_id_fk",+ "tableFrom": "maintenance_to_page_component",+ "tableTo": "maintenance",+ "columnsFrom": [+ "maintenance_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "maintenance_to_page_component_page_component_id_page_component_id_fk": {+ "name": "maintenance_to_page_component_page_component_id_page_component_id_fk",+ "tableFrom": "maintenance_to_page_component",+ "tableTo": "page_component",+ "columnsFrom": [+ "page_component_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "maintenance_to_page_component_maintenance_id_page_component_id_pk": {+ "columns": [+ "maintenance_id",+ "page_component_id"+ ],+ "name": "maintenance_to_page_component_maintenance_id_page_component_id_pk"+ }+ },+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "page_component": {+ "name": "page_component",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'monitor'"+ },+ "monitor_id": {+ "name": "monitor_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "order": {+ "name": "order",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": 0+ },+ "group_id": {+ "name": "group_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "group_order": {+ "name": "group_order",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": 0+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "page_component_workspace_id_idx": {+ "name": "page_component_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ },+ "page_component_page_id_monitor_id_unique": {+ "name": "page_component_page_id_monitor_id_unique",+ "columns": [+ "page_id",+ "monitor_id"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "page_component_workspace_id_workspace_id_fk": {+ "name": "page_component_workspace_id_workspace_id_fk",+ "tableFrom": "page_component",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "page_component_page_id_page_id_fk": {+ "name": "page_component_page_id_page_id_fk",+ "tableFrom": "page_component",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "page_component_monitor_id_monitor_id_fk": {+ "name": "page_component_monitor_id_monitor_id_fk",+ "tableFrom": "page_component",+ "tableTo": "monitor",+ "columnsFrom": [+ "monitor_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "page_component_group_id_page_component_groups_id_fk": {+ "name": "page_component_group_id_page_component_groups_id_fk",+ "tableFrom": "page_component",+ "tableTo": "page_component_groups",+ "columnsFrom": [+ "group_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "set null",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {+ "page_component_type_check": {+ "name": "page_component_type_check",+ "value": "\"page_component\".\"type\" = 'monitor' AND \"page_component\".\"monitor_id\" IS NOT NULL OR \"page_component\".\"type\" = 'static' AND \"page_component\".\"monitor_id\" IS NULL"+ }+ }+ },+ "status_report_to_page_component": {+ "name": "status_report_to_page_component",+ "columns": {+ "status_report_id": {+ "name": "status_report_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_component_id": {+ "name": "page_component_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "status_report_to_page_component_page_component_id_idx": {+ "name": "status_report_to_page_component_page_component_id_idx",+ "columns": [+ "page_component_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "status_report_to_page_component_status_report_id_status_report_id_fk": {+ "name": "status_report_to_page_component_status_report_id_status_report_id_fk",+ "tableFrom": "status_report_to_page_component",+ "tableTo": "status_report",+ "columnsFrom": [+ "status_report_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "status_report_to_page_component_page_component_id_page_component_id_fk": {+ "name": "status_report_to_page_component_page_component_id_page_component_id_fk",+ "tableFrom": "status_report_to_page_component",+ "tableTo": "page_component",+ "columnsFrom": [+ "page_component_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "status_report_to_page_component_status_report_id_page_component_id_pk": {+ "columns": [+ "status_report_id",+ "page_component_id"+ ],+ "name": "status_report_to_page_component_status_report_id_page_component_id_pk"+ }+ },+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "page_component_groups": {+ "name": "page_component_groups",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "default_open": {+ "name": "default_open",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "page_component_groups_page_id_idx": {+ "name": "page_component_groups_page_id_idx",+ "columns": [+ "page_id"+ ],+ "isUnique": false+ },+ "page_component_groups_workspace_id_idx": {+ "name": "page_component_groups_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "page_component_groups_workspace_id_workspace_id_fk": {+ "name": "page_component_groups_workspace_id_workspace_id_fk",+ "tableFrom": "page_component_groups",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "page_component_groups_page_id_page_id_fk": {+ "name": "page_component_groups_page_id_page_id_fk",+ "tableFrom": "page_component_groups",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "feedback": {+ "name": "feedback",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "user_id": {+ "name": "user_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "source": {+ "name": "source",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "message": {+ "name": "message",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "blocker": {+ "name": "blocker",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "path": {+ "name": "path",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "feedback_workspace_id_idx": {+ "name": "feedback_workspace_id_idx",+ "columns": [+ "workspace_id"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "feedback_workspace_id_workspace_id_fk": {+ "name": "feedback_workspace_id_workspace_id_fk",+ "tableFrom": "feedback",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "feedback_user_id_user_id_fk": {+ "name": "feedback_user_id_user_id_fk",+ "tableFrom": "feedback",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "audit_log": {+ "name": "audit_log",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "actor_type": {+ "name": "actor_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "actor_id": {+ "name": "actor_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "actor_user_id": {+ "name": "actor_user_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "action": {+ "name": "action",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "entity_type": {+ "name": "entity_type",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "entity_id": {+ "name": "entity_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "before": {+ "name": "before",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "after": {+ "name": "after",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "changed_fields": {+ "name": "changed_fields",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "audit_log_workspace_created_idx": {+ "name": "audit_log_workspace_created_idx",+ "columns": [+ "workspace_id",+ "created_at"+ ],+ "isUnique": false+ },+ "audit_log_entity_idx": {+ "name": "audit_log_entity_idx",+ "columns": [+ "workspace_id",+ "entity_type",+ "entity_id",+ "created_at"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "external_service": {+ "name": "external_service",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "slug": {+ "name": "slug",+ "type": "text(64)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "aliases": {+ "name": "aliases",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(json_array())"+ },+ "name": {+ "name": "name",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "url": {+ "name": "url",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status_page_url": {+ "name": "status_page_url",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "industry": {+ "name": "industry",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "api_config": {+ "name": "api_config",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "deleted_at": {+ "name": "deleted_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "external_service_slug_unique": {+ "name": "external_service_slug_unique",+ "columns": [+ "slug"+ ],+ "isUnique": true+ },+ "external_service_deleted_at_idx": {+ "name": "external_service_deleted_at_idx",+ "columns": [+ "deleted_at"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ },+ "chat_session": {+ "name": "chat_session",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": true+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "user_id": {+ "name": "user_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "messages": {+ "name": "messages",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "chat_session_workspace_user_updated_idx": {+ "name": "chat_session_workspace_user_updated_idx",+ "columns": [+ "workspace_id",+ "user_id",+ "updated_at"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {+ "chat_session_workspace_id_workspace_id_fk": {+ "name": "chat_session_workspace_id_workspace_id_fk",+ "tableFrom": "chat_session",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ },+ "chat_session_user_id_user_id_fk": {+ "name": "chat_session_user_id_user_id_fk",+ "tableFrom": "chat_session",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "cascade",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ }+ },+ "views": {},+ "enums": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "indexes": {+ "page_lower_slug_idx": {+ "columns": {+ "LOWER(\"slug\")": {+ "isExpression": true+ }+ }+ },+ "page_lower_custom_domain_idx": {+ "columns": {+ "LOWER(\"custom_domain\")": {+ "isExpression": true+ }+ }+ },+ "idx_page_subscriber_email_page_active": {+ "columns": {+ "LOWER(\"email\")": {+ "isExpression": true+ }+ }+ },+ "idx_page_subscriber_webhook_page_active": {+ "columns": {+ "LOWER(\"webhook_url\")": {+ "isExpression": true+ }+ }+ }+ }+ }+}\ No newline at end of filediff --git a/packages/db/drizzle/meta/_journal.json b/packages/db/drizzle/meta/_journal.jsonindex 29f41fccb..2a38cb165 100644--- a/packages/db/drizzle/meta/_journal.json+++ b/packages/db/drizzle/meta/_journal.json@@ -484,6 +484,13 @@"when": 1778310822215,"tag": "0068_smooth_spacker_dave","breakpoints": true+ },+ {+ "idx": 69,+ "version": "6",+ "when": 1778835553337,+ "tag": "0069_ambitious_jamie_braddock",+ "breakpoints": true}]}\ No newline at end of filediff --git a/packages/db/src/schema/external_services/constants.ts b/packages/db/src/schema/external_services/constants.tsnew file mode 100644index 000000000..50b9cbea8--- /dev/null+++ b/packages/db/src/schema/external_services/constants.ts@@ -0,0 +1,47 @@+import { z } from "zod";++export const API_CONFIG_TYPES = [+ "atlassian",+ "instatus",+ "betterstack",+ "incidentio",+ "custom",+ "html-scraper",+] as const;++export const STATUS_PAGE_PROVIDERS = [+ "atlassian-statuspage",+ "instatus",+ "openstatus",+ "incidentio",+ "status.io",+ "custom",+ "better-uptime",+ "unknown",+] as const;++export const INDUSTRIES = [+ "cloud-providers",+ "development-tools",+ "saas",+ "communication",+ "ai-ml",+ "cdn",+ "databases",+ "monitoring",+ "security",+ "fintech",+ "e-commerce",+] as const;++export type ApiConfigType = (typeof API_CONFIG_TYPES)[number];+export type StatusPageProvider = (typeof STATUS_PAGE_PROVIDERS)[number];+export type Industry = (typeof INDUSTRIES)[number];++export const apiConfigSchema = z.object({+ type: z.enum(API_CONFIG_TYPES),+ endpoint: z.url().optional(),+ parser: z.string().optional(),+});++export type ApiConfig = z.infer<typeof apiConfigSchema>;diff --git a/packages/db/src/schema/external_services/external_service.ts b/packages/db/src/schema/external_services/external_service.tsnew file mode 100644index 000000000..903993126--- /dev/null+++ b/packages/db/src/schema/external_services/external_service.ts@@ -0,0 +1,35 @@+import { sql } from "drizzle-orm";+import { index, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";++import {+ type ApiConfig,+ type Industry,+ STATUS_PAGE_PROVIDERS,+} from "./constants";++export const externalService = sqliteTable(+ "external_service",+ {+ id: integer("id").primaryKey(),+ slug: text("slug", { length: 64 }).notNull().unique(),+ aliases: text("aliases", { mode: "json" })+ .$type<string[]>()+ .default(sql`(json_array())`)+ .notNull(),+ name: text("name", { length: 256 }).notNull(),+ url: text("url").notNull(),+ statusPageUrl: text("status_page_url").notNull(),+ provider: text("provider", { enum: STATUS_PAGE_PROVIDERS }).notNull(),+ industry: text("industry", { mode: "json" }).$type<Industry[]>().notNull(),+ description: text("description"),+ apiConfig: text("api_config", { mode: "json" }).$type<ApiConfig>(),+ deletedAt: integer("deleted_at", { mode: "timestamp" }),+ createdAt: integer("created_at", { mode: "timestamp" }).default(+ sql`(strftime('%s', 'now'))`,+ ),+ updatedAt: integer("updated_at", { mode: "timestamp" }).default(+ sql`(strftime('%s', 'now'))`,+ ),+ },+ (t) => [index("external_service_deleted_at_idx").on(t.deletedAt)],+);diff --git a/packages/db/src/schema/external_services/index.ts b/packages/db/src/schema/external_services/index.tsnew file mode 100644index 000000000..24ea804c0--- /dev/null+++ b/packages/db/src/schema/external_services/index.ts@@ -0,0 +1,3 @@+export * from "./constants";+export * from "./external_service";+export * from "./validation";diff --git a/packages/db/src/schema/external_services/validation.ts b/packages/db/src/schema/external_services/validation.tsnew file mode 100644index 000000000..37ef114c7--- /dev/null+++ b/packages/db/src/schema/external_services/validation.ts@@ -0,0 +1,21 @@+import { createInsertSchema, createSelectSchema } from "drizzle-zod";+import { z } from "zod";++import { externalService } from "./external_service";++export const externalServiceSlugRegex = /^[a-z0-9](-?[a-z0-9])*$/;+export const externalServiceSlugSchema = z+ .string()+ .min(1)+ .max(64)+ .regex(externalServiceSlugRegex);++export const selectExternalServiceSchema = createSelectSchema(externalService);++export const insertExternalServiceSchema = createInsertSchema(externalService, {+ slug: externalServiceSlugSchema,+ aliases: z.array(externalServiceSlugSchema).optional(),+});++export type ExternalService = z.infer<typeof selectExternalServiceSchema>;+export type InsertExternalService = z.infer<typeof insertExternalServiceSchema>;diff --git a/packages/db/src/schema/index.ts b/packages/db/src/schema/index.tsindex 7972335f7..82dfb559f 100644--- a/packages/db/src/schema/index.ts+++ b/packages/db/src/schema/index.ts@@ -23,4 +23,5 @@ export * from "./page_components";export * from "./page_component_groups";export * from "./feedbacks";export * from "./audit_logs";+export * from "./external_services";export * from "./chat_sessions";diff --git a/packages/db/src/seed.mts b/packages/db/src/seed.mtsindex 933b66c0a..bdc4cf4d0 100644--- a/packages/db/src/seed.mts+++ b/packages/db/src/seed.mts@@ -3,6 +3,7 @@ import { drizzle } from "drizzle-orm/libsql";import { env } from "../env.mjs";import {+ externalService,incidentTable,maintenance,maintenancesToPageComponents,@@ -20,6 +21,7 @@ import {usersToWorkspaces,workspace,} from "./schema";+import { externalServicesSeed } from "./seed/external-services";async function main() {const db = drizzle(@@ -459,6 +461,13 @@ async function main() {}).onConflictDoNothing().run();++ await db+ .insert(externalService)+ .values(externalServicesSeed)+ .onConflictDoNothing()+ .run();+process.exit(0);}diff --git a/packages/db/src/seed/external-services.ts b/packages/db/src/seed/external-services.tsnew file mode 100644index 000000000..7abd87b63--- /dev/null+++ b/packages/db/src/seed/external-services.ts@@ -0,0 +1,192 @@+import type { InferInsertModel } from "drizzle-orm";+import type { externalService } from "../schema";++type ExternalServiceSeedEntry = InferInsertModel<typeof externalService>;++export const externalServicesSeed: ExternalServiceSeedEntry[] = [+ {+ slug: "github",+ name: "GitHub",+ url: "https://github.com",+ statusPageUrl: "https://www.githubstatus.com",+ provider: "atlassian-statuspage",+ industry: ["development-tools"],+ description: "The world's leading software development platform",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "vercel",+ name: "Vercel",+ url: "https://vercel.com",+ statusPageUrl: "https://www.vercel-status.com",+ provider: "atlassian-statuspage",+ industry: ["cloud-providers", "development-tools"],+ description: "Platform for frontend developers",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "slack",+ name: "Slack",+ url: "https://slack.com",+ statusPageUrl: "https://slack-status.com",+ provider: "custom",+ industry: ["communication"],+ description: "Team collaboration and messaging platform",+ apiConfig: {+ type: "custom",+ endpoint: "https://slack-status.com/api/v2.0.0/current",+ parser: "slack",+ },+ },+ {+ slug: "openai",+ name: "OpenAI",+ url: "https://openai.com",+ statusPageUrl: "https://status.openai.com",+ provider: "atlassian-statuspage",+ industry: ["ai-ml"],+ description: "AI research and deployment company",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "anthropic",+ name: "Anthropic",+ url: "https://www.anthropic.com",+ statusPageUrl: "https://status.anthropic.com",+ provider: "atlassian-statuspage",+ industry: ["ai-ml"],+ description:+ "AI safety company building reliable, interpretable AI systems",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "cloudflare",+ name: "Cloudflare",+ url: "https://cloudflare.com",+ statusPageUrl: "https://www.cloudflarestatus.com",+ provider: "atlassian-statuspage",+ industry: ["cdn", "security"],+ description: "Web infrastructure and security company",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "atlassian",+ name: "Atlassian",+ url: "https://www.atlassian.com",+ statusPageUrl: "https://status.atlassian.com",+ provider: "atlassian-statuspage",+ industry: ["saas", "development-tools"],+ description: "Maker of Jira, Confluence, Bitbucket, and Statuspage",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "digitalocean",+ name: "DigitalOcean",+ url: "https://www.digitalocean.com",+ statusPageUrl: "https://status.digitalocean.com",+ provider: "atlassian-statuspage",+ industry: ["cloud-providers"],+ description: "Cloud infrastructure for developers",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "discord",+ name: "Discord",+ url: "https://discord.com",+ statusPageUrl: "https://discordstatus.com",+ provider: "atlassian-statuspage",+ industry: ["communication"],+ description: "Voice, video, and text communication for communities",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "mongodb-atlas",+ name: "MongoDB Atlas",+ url: "https://www.mongodb.com",+ statusPageUrl: "https://status.mongodb.com",+ provider: "atlassian-statuspage",+ industry: ["databases"],+ description: "Multi-cloud database service for modern applications",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "npm",+ name: "npm",+ url: "https://www.npmjs.com",+ statusPageUrl: "https://status.npmjs.org",+ provider: "atlassian-statuspage",+ industry: ["development-tools"],+ description: "JavaScript package registry",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "reddit",+ name: "Reddit",+ url: "https://www.reddit.com",+ statusPageUrl: "https://www.redditstatus.com",+ provider: "atlassian-statuspage",+ industry: ["communication"],+ description: "Network of communities based on people's interests",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "supabase",+ name: "Supabase",+ url: "https://supabase.com",+ statusPageUrl: "https://status.supabase.com",+ provider: "atlassian-statuspage",+ industry: ["databases", "development-tools"],+ description: "Open-source Firebase alternative",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "twilio",+ name: "Twilio",+ url: "https://www.twilio.com",+ statusPageUrl: "https://status.twilio.com",+ provider: "atlassian-statuspage",+ industry: ["communication"],+ description: "Cloud communications platform",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "zoom",+ name: "Zoom",+ url: "https://zoom.us",+ statusPageUrl: "https://status.zoom.us",+ provider: "atlassian-statuspage",+ industry: ["communication"],+ description: "Video conferencing platform",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "datadog",+ name: "Datadog",+ url: "https://www.datadoghq.com",+ statusPageUrl: "https://status.datadoghq.com",+ provider: "atlassian-statuspage",+ industry: ["monitoring"],+ description: "Monitoring and analytics for cloud-scale applications",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "cloudflare-workers",+ name: "Cloudflare Workers",+ url: "https://workers.cloudflare.com",+ statusPageUrl: "https://www.cloudflarestatus.com",+ provider: "atlassian-statuspage",+ industry: ["cloud-providers", "cdn"],+ description: "Serverless platform at the edge",+ apiConfig: { type: "atlassian" },+ },+ {+ slug: "shopify",+ name: "Shopify",+ url: "https://www.shopify.com",+ statusPageUrl: "https://www.shopifystatus.com",+ provider: "atlassian-statuspage",+ industry: ["e-commerce"],+ description: "E-commerce platform for online stores",+ apiConfig: { type: "atlassian" },+ },+];diff --git a/packages/services/package.json b/packages/services/package.jsonindex 4345604df..6a700f4bc 100644--- a/packages/services/package.json+++ b/packages/services/package.json@@ -93,6 +93,10 @@"import": "./src/page-subscriber/index.ts","types": "./src/page-subscriber/index.ts"},+ "./external-service": {+ "import": "./src/external-service/index.ts",+ "types": "./src/external-service/index.ts"+ },"./test/helpers": {"import": "./test/helpers.ts","types": "./test/helpers.ts"diff --git a/packages/services/src/external-service/__tests__/external-service.test.ts b/packages/services/src/external-service/__tests__/external-service.test.tsnew file mode 100644index 000000000..ef9aa2a90--- /dev/null+++ b/packages/services/src/external-service/__tests__/external-service.test.ts@@ -0,0 +1,222 @@+import { afterEach, describe, expect, test } from "bun:test";+import { db, like, sql } from "@openstatus/db";+import { externalService } from "@openstatus/db/src/schema";++import { ConflictError } from "../../errors";+import { assertSlugAvailable } from "../internal";+import { getExternalServiceBySlug, listExternalServices } from "../list";+import { listExternalServiceSlugs } from "../list-slugs";++const TEST_PREFIX = "svc-extsvc-test";++afterEach(async () => {+ await db+ .delete(externalService)+ .where(like(externalService.slug, `${TEST_PREFIX}-%`))+ .run();+});++describe("listExternalServices", () => {+ test("returns only live rows by default", async () => {+ await db+ .insert(externalService)+ .values([+ {+ slug: `${TEST_PREFIX}-live`,+ aliases: [],+ name: "Live svc",+ url: "https://example.com",+ statusPageUrl: "https://status.example.com",+ provider: "atlassian-statuspage",+ industry: ["saas"],+ },+ {+ slug: `${TEST_PREFIX}-dead`,+ aliases: [],+ name: "Dead svc",+ url: "https://example.com",+ statusPageUrl: "https://status.example.com",+ provider: "atlassian-statuspage",+ industry: ["saas"],+ deletedAt: new Date(),+ },+ ])+ .run();++ const live = await listExternalServices({});+ expect(live.find((s) => s.slug === `${TEST_PREFIX}-live`)).toBeDefined();+ expect(live.find((s) => s.slug === `${TEST_PREFIX}-dead`)).toBeUndefined();++ const all = await listExternalServices({+ input: { includeDeleted: true },+ });+ expect(all.find((s) => s.slug === `${TEST_PREFIX}-dead`)).toBeDefined();+ });++ test("omits rows with invalid apiConfig and warns", async () => {+ const originalWarn = console.warn;+ let warned = false;+ console.warn = () => {+ warned = true;+ };+ try {+ // Bypass column type to write deliberately invalid JSON for the test.+ await db.run(+ sql`INSERT INTO external_service (slug, aliases, name, url, status_page_url, provider, industry, api_config)+ VALUES (${`${TEST_PREFIX}-badcfg`}, json_array(), 'Bad cfg', 'https://example.com',+ 'https://status.example.com', 'custom', json_array('saas'),+ json_object('type', 'nonsense'))`,+ );+ const rows = await listExternalServices({});+ expect(+ rows.find((r) => r.slug === `${TEST_PREFIX}-badcfg`),+ ).toBeUndefined();+ expect(warned).toBe(true);+ } finally {+ console.warn = originalWarn;+ }+ });+});++describe("getExternalServiceBySlug", () => {+ test("resolves by canonical slug", async () => {+ await db+ .insert(externalService)+ .values({+ slug: `${TEST_PREFIX}-canon`,+ aliases: [`${TEST_PREFIX}-old`],+ name: "Canon",+ url: "https://example.com",+ statusPageUrl: "https://status.example.com",+ provider: "atlassian-statuspage",+ industry: ["saas"],+ })+ .run();++ const row = await getExternalServiceBySlug({+ slug: `${TEST_PREFIX}-canon`,+ });+ expect(row?.slug).toBe(`${TEST_PREFIX}-canon`);+ });++ test("resolves by alias to the canonical row", async () => {+ await db+ .insert(externalService)+ .values({+ slug: `${TEST_PREFIX}-canon`,+ aliases: [`${TEST_PREFIX}-old`],+ name: "Canon",+ url: "https://example.com",+ statusPageUrl: "https://status.example.com",+ provider: "atlassian-statuspage",+ industry: ["saas"],+ })+ .run();++ const row = await getExternalServiceBySlug({+ slug: `${TEST_PREFIX}-old`,+ });+ expect(row?.slug).toBe(`${TEST_PREFIX}-canon`);+ });++ test("returns null for an unknown slug", async () => {+ const row = await getExternalServiceBySlug({+ slug: `${TEST_PREFIX}-nonexistent`,+ });+ expect(row).toBeNull();+ });+});++describe("listExternalServiceSlugs", () => {+ test("returns canonical slugs and aliases mapped to canonicals", async () => {+ await db+ .insert(externalService)+ .values({+ slug: `${TEST_PREFIX}-x`,+ aliases: [`${TEST_PREFIX}-twitter`, `${TEST_PREFIX}-old-twitter`],+ name: "X",+ url: "https://example.com",+ statusPageUrl: "https://status.example.com",+ provider: "atlassian-statuspage",+ industry: ["saas"],+ })+ .run();+ const map = await listExternalServiceSlugs({});+ expect(map.canonical).toContain(`${TEST_PREFIX}-x`);+ const xAliases = map.aliases.filter((a) => a.to === `${TEST_PREFIX}-x`);+ expect(xAliases.map((a) => a.from).sort()).toEqual(+ [`${TEST_PREFIX}-old-twitter`, `${TEST_PREFIX}-twitter`].sort(),+ );+ });+});++describe("assertSlugAvailable", () => {+ test("throws when the slug equals another row's canonical slug", async () => {+ const [inserted] = await db+ .insert(externalService)+ .values({+ slug: `${TEST_PREFIX}-canon`,+ aliases: [],+ name: "Canon",+ url: "https://example.com",+ statusPageUrl: "https://status.example.com",+ provider: "atlassian-statuspage",+ industry: ["saas"],+ })+ .returning({ id: externalService.id })+ .all();+ if (!inserted) throw new Error("insert failed");+ await expect(+ assertSlugAvailable({ tx: db, slug: `${TEST_PREFIX}-canon` }),+ ).rejects.toBeInstanceOf(ConflictError);+ });++ test("throws when the slug appears in another row's aliases", async () => {+ await db+ .insert(externalService)+ .values({+ slug: `${TEST_PREFIX}-canon`,+ aliases: [`${TEST_PREFIX}-old`],+ name: "Canon",+ url: "https://example.com",+ statusPageUrl: "https://status.example.com",+ provider: "atlassian-statuspage",+ industry: ["saas"],+ })+ .run();+ await expect(+ assertSlugAvailable({ tx: db, slug: `${TEST_PREFIX}-old` }),+ ).rejects.toBeInstanceOf(ConflictError);+ });++ test("does not throw when the existing row is excluded", async () => {+ const [inserted] = await db+ .insert(externalService)+ .values({+ slug: `${TEST_PREFIX}-canon`,+ aliases: [],+ name: "Canon",+ url: "https://example.com",+ statusPageUrl: "https://status.example.com",+ provider: "atlassian-statuspage",+ industry: ["saas"],+ })+ .returning({ id: externalService.id })+ .all();+ if (!inserted) throw new Error("insert failed");+ await assertSlugAvailable({+ tx: db,+ slug: `${TEST_PREFIX}-canon`,+ exceptServiceId: inserted.id,+ });+ expect(true).toBe(true);+ });++ test("does not throw when the slug is genuinely free", async () => {+ await assertSlugAvailable({+ tx: db,+ slug: `${TEST_PREFIX}-free-${Date.now()}`,+ });+ expect(true).toBe(true);+ });+});diff --git a/packages/services/src/external-service/index.ts b/packages/services/src/external-service/index.tsnew file mode 100644index 000000000..26a025a26--- /dev/null+++ b/packages/services/src/external-service/index.ts@@ -0,0 +1,8 @@+export {+ type ExternalServiceRow,+ type ListExternalServicesInput,+ getExternalServiceBySlug,+ listExternalServices,+} from "./list";+export { type SlugMap, listExternalServiceSlugs } from "./list-slugs";+export { assertSlugAvailable } from "./internal";diff --git a/packages/services/src/external-service/internal.ts b/packages/services/src/external-service/internal.tsnew file mode 100644index 000000000..cb7ee60c7--- /dev/null+++ b/packages/services/src/external-service/internal.ts@@ -0,0 +1,37 @@+import { eq, isNull, or, sql } from "@openstatus/db";+import { externalService } from "@openstatus/db/src/schema";++import type { DB } from "../context";+import { ConflictError } from "../errors";++export type GlobalReadContext = {+ db?: DB;+};++export async function assertSlugAvailable(args: {+ tx: DB;+ slug: string;+ exceptServiceId?: number;+}): Promise<void> {+ const { tx, slug, exceptServiceId } = args;+ const rows = await tx+ .select({ id: externalService.id })+ .from(externalService)+ .where(+ or(+ eq(externalService.slug, slug),+ sql`EXISTS (SELECT 1 FROM json_each(${externalService.aliases}) WHERE value = ${slug})`,+ ),+ )+ .all();+ const conflicts = exceptServiceId+ ? rows.filter((r) => r.id !== exceptServiceId)+ : rows;+ if (conflicts.length > 0) {+ throw new ConflictError(`slug "${slug}" is already in use`);+ }+}++export function liveOnlyClause() {+ return isNull(externalService.deletedAt);+}diff --git a/packages/services/src/external-service/list-slugs.ts b/packages/services/src/external-service/list-slugs.tsnew file mode 100644index 000000000..8d098fcea--- /dev/null+++ b/packages/services/src/external-service/list-slugs.ts@@ -0,0 +1,39 @@+import { db as defaultDb } from "@openstatus/db";+import { externalService } from "@openstatus/db/src/schema";++import { type GlobalReadContext, liveOnlyClause } from "./internal";++export type SlugMap = {+ canonical: string[];+ aliases: Array<{ from: string; to: string }>;+};++export async function listExternalServiceSlugs(args?: {+ ctx?: GlobalReadContext;+ includeDeleted?: boolean;+}): Promise<SlugMap> {+ const { ctx, includeDeleted } = args ?? {};+ const db = ctx?.db ?? defaultDb;++ const query = db+ .select({+ slug: externalService.slug,+ aliases: externalService.aliases,+ })+ .from(externalService);++ const rows = includeDeleted+ ? await query.all()+ : await query.where(liveOnlyClause()).all();++ const canonical: string[] = [];+ const aliases: Array<{ from: string; to: string }> = [];+ for (const row of rows) {+ canonical.push(row.slug);+ const list = (row.aliases ?? []) as string[];+ for (const alias of list) {+ aliases.push({ from: alias, to: row.slug });+ }+ }+ return { canonical, aliases };+}diff --git a/packages/services/src/external-service/list.ts b/packages/services/src/external-service/list.tsnew file mode 100644index 000000000..0da7a254a--- /dev/null+++ b/packages/services/src/external-service/list.ts@@ -0,0 +1,87 @@+import { asc, db as defaultDb, eq, or, sql } from "@openstatus/db";+import {+ type ExternalService,+ apiConfigSchema,+ externalService,+ selectExternalServiceSchema,+} from "@openstatus/db/src/schema";++import { type GlobalReadContext, liveOnlyClause } from "./internal";++export type ListExternalServicesInput = {+ includeDeleted?: boolean;+};++export type ExternalServiceRow = ExternalService;++function parseRow(raw: ExternalService): ExternalService | null {+ if (raw.apiConfig != null) {+ const parsed = apiConfigSchema.safeParse(raw.apiConfig);+ if (!parsed.success) {+ console.warn(+ `[external-service] dropping row id=${raw.id} slug=${raw.slug}: invalid apiConfig`,+ parsed.error.issues,+ );+ return null;+ }+ }+ return raw;+}++function validateRows(rows: ReadonlyArray<unknown>): ExternalServiceRow[] {+ const out: ExternalServiceRow[] = [];+ for (const row of rows) {+ const select = selectExternalServiceSchema.safeParse(row);+ if (!select.success) {+ console.warn(+ "[external-service] dropping row: failed select schema",+ select.error.issues,+ );+ continue;+ }+ const validated = parseRow(select.data);+ if (validated) out.push(validated);+ }+ return out;+}++export async function listExternalServices(args: {+ ctx?: GlobalReadContext;+ input?: ListExternalServicesInput;+}): Promise<ExternalServiceRow[]> {+ const { ctx, input } = args ?? {};+ const db = ctx?.db ?? defaultDb;++ const query = db+ .select()+ .from(externalService)+ .orderBy(asc(externalService.name));++ const rows = input?.includeDeleted+ ? await query.all()+ : await query.where(liveOnlyClause()).all();++ return validateRows(rows);+}++export async function getExternalServiceBySlug(args: {+ ctx?: GlobalReadContext;+ slug: string;+}): Promise<ExternalServiceRow | null> {+ const { ctx, slug } = args;+ const db = ctx?.db ?? defaultDb;++ const rows = await db+ .select()+ .from(externalService)+ .where(+ or(+ eq(externalService.slug, slug),+ sql`EXISTS (SELECT 1 FROM json_each(${externalService.aliases}) WHERE value = ${slug})`,+ ),+ )+ .all();++ const validated = validateRows(rows);+ return validated[0] ?? null;+}diff --git a/packages/status-fetcher/package.json b/packages/status-fetcher/package.jsonindex 78a459c3d..6f1c49f90 100644--- a/packages/status-fetcher/package.json+++ b/packages/status-fetcher/package.json@@ -2,6 +2,8 @@"name": "@openstatus/status-fetcher","version": "0.1.0","type": "module",+ "main": "./src/index.ts",+ "types": "./src/index.ts","exports": {".": "./src/index.ts","./fetchers": "./src/fetchers/index.ts",diff --git a/packages/status-fetcher/scripts/test-fetchers.ts b/packages/status-fetcher/scripts/test-fetchers.tsindex 4c20cc625..b0656f358 100644--- a/packages/status-fetcher/scripts/test-fetchers.ts+++ b/packages/status-fetcher/scripts/test-fetchers.ts@@ -1,14 +1,42 @@import { fetchers } from "../src/fetchers";-import { getStatusDirectory } from "../src/index";-import type { SeverityLevel } from "../src/types";+import type { SeverityLevel, StatusPageEntry } from "../src/types";++const fixtures: StatusPageEntry[] = [+ {+ id: "github",+ name: "GitHub",+ url: "https://github.com",+ status_page_url: "https://www.githubstatus.com",+ provider: "atlassian-statuspage",+ industry: ["development-tools"],+ api_config: { type: "atlassian" },+ },+ {+ id: "linear",+ name: "Linear",+ url: "https://linear.app",+ status_page_url: "https://status.linear.app",+ provider: "incidentio",+ industry: ["development-tools"],+ api_config: { type: "incidentio" },+ },+ {+ id: "slack",+ name: "Slack",+ url: "https://slack.com",+ status_page_url: "https://slack-status.com",+ provider: "custom",+ industry: ["communication"],+ api_config: {+ type: "custom",+ endpoint: "https://slack-status.com/api/v2.0.0/current",+ parser: "slack",+ },+ },+];-/**- * Test all fetchers against real status page APIs- *- * Run with: bun scripts/test-fetchers.ts- */async function testFetchers() {- const directory = getStatusDirectory();+ const directory = fixtures;console.log(`\n🔍 Testing ${directory.length} entries...\n`);diff --git a/packages/status-fetcher/src/data/directory.ts b/packages/status-fetcher/src/data/directory.tsdeleted file mode 100644index 28dd8f430..000000000--- a/packages/status-fetcher/src/data/directory.ts+++ /dev/null@@ -1,157 +0,0 @@-import type { StatusPageEntry } from "../types";-import { statusPageEntrySchema } from "../types";--const rawDirectory: StatusPageEntry[] = [- {- id: "github",- name: "GitHub",- url: "https://github.com",- status_page_url: "https://www.githubstatus.com",- provider: "atlassian-statuspage",- industry: ["development-tools"],- description: "The world's leading software development platform",- api_config: {- type: "atlassian",- },- },- {- id: "vercel",- name: "Vercel",- url: "https://vercel.com",- status_page_url: "https://www.vercel-status.com",- provider: "atlassian-statuspage",- industry: ["cloud-providers", "development-tools"],- description: "Platform for frontend developers",- api_config: {- type: "atlassian",- },- },- {- id: "slack",- name: "Slack",- url: "https://slack.com",- status_page_url: "https://slack-status.com",- provider: "custom",- industry: ["communication"],- description: "Team collaboration and messaging platform",- api_config: {- type: "custom",- endpoint: "https://slack-status.com/api/v2.0.0/current",- parser: "slack",- },- },- {- id: "linear",- name: "Linear",- url: "https://linear.app",- status_page_url: "https://status.linear.app",- provider: "incidentio",- industry: ["development-tools", "saas"],- description: "Issue tracking tool built for modern software teams",- api_config: {- type: "incidentio",- },- },- {- id: "openai",- name: "OpenAI",- url: "https://openai.com",- status_page_url: "https://status.openai.com",- provider: "atlassian-statuspage",- industry: ["ai-ml"],- description: "AI research and deployment company",- api_config: {- type: "atlassian",- },- },- {- id: "stripe",- name: "Stripe",- url: "https://stripe.com",- status_page_url: "https://status.stripe.com",- provider: "atlassian-statuspage",- industry: ["fintech"],- description: "Online payment processing platform",- api_config: {- type: "atlassian",- },- },- {- id: "cloudflare",- name: "Cloudflare",- url: "https://cloudflare.com",- status_page_url: "https://www.cloudflarestatus.com",- provider: "atlassian-statuspage",- industry: ["cdn", "security"],- description: "Web infrastructure and security company",- api_config: {- type: "atlassian",- },- },- {- id: "turso",- name: "Turso",- url: "https://turso.tech",- status_page_url: "https://status.turso.tech",- provider: "better-uptime",- industry: ["databases"],- description: "Turso is a database for the modern web",- api_config: {- type: "atlassian",- },- },-];--/**- * Validates all directory entries at module load time- *- * This function runs once when the module is imported and ensures all entries- * conform to the StatusPageEntry schema. If any validation errors are found,- * it throws immediately with detailed error information.- *- * **Validation checks:**- * - ID is non-empty string- * - Name is non-empty string- * - URLs are valid (url, status_page_url, logo_url if present)- * - Provider is from allowed list- * - At least one industry category- * - API config matches expected format- *- * @returns The validated directory array- * @throws {Error} If any entry fails validation, with details about which fields failed- *- * @example- * Error message format:- * ```- * Directory validation failed with 2 error(s):- * - Entry 0 (github): url: Invalid url- * - Entry 3 (stripe): industry: Array must contain at least 1 element(s)- * ```- */-function validateDirectory(): StatusPageEntry[] {- const errors: string[] = [];-- rawDirectory.forEach((entry, index) => {- const result = statusPageEntrySchema.safeParse(entry);- if (!result.success) {- const formattedErrors = result.error.issues- .map((issue) => `${issue.path.join(".")}: ${issue.message}`)- .join(", ");- errors.push(- `Entry ${index} (${entry.id || "unknown"}): ${formattedErrors}`,- );- }- });-- if (errors.length > 0) {- throw new Error(- `Directory validation failed with ${errors.length} error(s):\n${errors- .map((e) => ` - ${e}`)- .join("\n")}`,- );- }-- return rawDirectory;-}--export const directory = validateDirectory();diff --git a/packages/status-fetcher/src/data/index.ts b/packages/status-fetcher/src/data/index.tsindex d03555241..047e57000 100644--- a/packages/status-fetcher/src/data/index.ts+++ b/packages/status-fetcher/src/data/index.ts@@ -1,5 +1,3 @@import type { StatusPageEntry } from "../types";export type DirectoryEntry = StatusPageEntry;--export { directory } from "./directory";diff --git a/packages/status-fetcher/src/index.ts b/packages/status-fetcher/src/index.tsindex 0fb5a13d2..e73f50150 100644--- a/packages/status-fetcher/src/index.ts+++ b/packages/status-fetcher/src/index.ts@@ -1,10 +1,3 @@-import { directory } from "./data/directory";-import type { StatusPageEntry } from "./types";--export function getStatusDirectory(): StatusPageEntry[] {- return directory;-}-export * from "./types";export * from "./utils";export {@@ -15,4 +8,5 @@ export {type FetchWithTimeoutOptions,type RetryOptions,} from "./fetch-utils";+export { fetchers } from "./fetchers";export type { DirectoryEntry } from "./data/index";diff --git a/packages/tinybird/datasources/external_status__v1.datasource b/packages/tinybird/datasources/external_status__v1.datasourcenew file mode 100644index 000000000..3dfdeb519--- /dev/null+++ b/packages/tinybird/datasources/external_status__v1.datasource@@ -0,0 +1,12 @@+SCHEMA >+ `id` String `json:$.id`,+ `indicator` String `json:$.indicator`,+ `status` String `json:$.status`,+ `status_message` String `json:$.status_message`,+ `fetched_at` Int64 `json:$.fetched_at`,+ `updated_at` Int64 `json:$.updated_at`,+ `time_zone` String `json:$.time_zone`++ENGINE "MergeTree"+ENGINE_SORTING_KEY "id, fetched_at"+ENGINE_TTL "toDateTime(fromUnixTimestamp64Milli(fetched_at)) + INTERVAL 60 DAY"diff --git a/packages/tinybird/datasources/mv__external_status_daily__v0.datasource b/packages/tinybird/datasources/mv__external_status_daily__v0.datasourcenew file mode 100644index 000000000..81d7a4150--- /dev/null+++ b/packages/tinybird/datasources/mv__external_status_daily__v0.datasource@@ -0,0 +1,12 @@+# Data Source created from Pipe 'mv__external_status_daily__v0'++SCHEMA >+ `day` Date,+ `id` String,+ `worst_indicator` AggregateFunction(argMax, String, UInt8),+ `had_maintenance` AggregateFunction(max, UInt8),+ `snapshot_count` AggregateFunction(sum, UInt32)++ENGINE "AggregatingMergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(day)"+ENGINE_SORTING_KEY "id, day"diff --git a/packages/tinybird/endpoints/endpoint_external_status_history__v0.pipe b/packages/tinybird/endpoints/endpoint_external_status_history__v0.pipenew file mode 100644index 000000000..adc9136fc--- /dev/null+++ b/packages/tinybird/endpoints/endpoint_external_status_history__v0.pipe@@ -0,0 +1,21 @@+TAGS "external_status"++NODE history+SQL >++ %+ SELECT+ day,+ id,+ argMaxMerge(worst_indicator) AS worst_indicator,+ maxMerge(had_maintenance) AS had_maintenance,+ sumMerge(snapshot_count) AS snapshot_count+ FROM mv__external_status_daily__v0+ WHERE id IN {{ Array(ids, 'String') }}+ {% if defined(days) %}+ AND day >= today() - INTERVAL {{ Int16(days, 45) }} DAY+ {% end %}+ GROUP BY day, id+ ORDER BY day ASC++TYPE ENDPOINTdiff --git a/packages/tinybird/endpoints/endpoint_external_status_latest__v1.pipe b/packages/tinybird/endpoints/endpoint_external_status_latest__v1.pipenew file mode 100644index 000000000..dd2f3e185--- /dev/null+++ b/packages/tinybird/endpoints/endpoint_external_status_latest__v1.pipe@@ -0,0 +1,21 @@+TAGS "external_status"++NODE latest+SQL >++ %+ SELECT+ id,+ argMax(indicator, fetched_at) AS indicator,+ argMax(status, fetched_at) AS status,+ argMax(status_message, fetched_at) AS status_message,+ argMax(time_zone, fetched_at) AS time_zone,+ argMax(updated_at, fetched_at) AS updated_at,+ max(fetched_at) AS last_fetched_at+ FROM external_status__v1+ {% if defined(ids) %}+ WHERE id IN {{ Array(ids, 'String') }}+ {% end %}+ GROUP BY id++TYPE ENDPOINTdiff --git a/packages/tinybird/package.json b/packages/tinybird/package.jsonindex 3baef274b..a10bfe063 100644--- a/packages/tinybird/package.json+++ b/packages/tinybird/package.json@@ -8,9 +8,12 @@"zod": "4.1.13"},"devDependencies": {+ "@libsql/client": "0.15.15",+ "@openstatus/db": "workspace:*","@openstatus/tsconfig": "workspace:*","@openstatus/utils": "workspace:*","@types/node": "22.10.2",+ "drizzle-orm": "0.44.4","typescript": "5.9.3"}}diff --git a/packages/tinybird/pipes/aggregate__external_status_daily__v0.pipe b/packages/tinybird/pipes/aggregate__external_status_daily__v0.pipenew file mode 100644index 000000000..e716dde4c--- /dev/null+++ b/packages/tinybird/pipes/aggregate__external_status_daily__v0.pipe@@ -0,0 +1,28 @@+TAGS "external_status"++NODE aggregate+SQL >++ SELECT+ toDate(toTimeZone(fromUnixTimestamp64Milli(fetched_at), 'UTC')) AS day,+ id,+ argMaxState(+ indicator,+ toUInt8(+ multiIf(+ indicator = 'critical', 3,+ indicator = 'major', 2,+ indicator = 'minor', 1,+ 0+ )+ )+ ) AS worst_indicator,+ maxState(toUInt8(status = 'under_maintenance')) AS had_maintenance,+ sumState(toUInt32(1)) AS snapshot_count+ FROM external_status__v1+ GROUP BY+ day,+ id++TYPE materialized+DATASOURCE mv__external_status_daily__v0diff --git a/packages/tinybird/scripts/backfill_external_status_v0_to_v1.ts b/packages/tinybird/scripts/backfill_external_status_v0_to_v1.tsnew file mode 100644index 000000000..1a1a62317--- /dev/null+++ b/packages/tinybird/scripts/backfill_external_status_v0_to_v1.ts@@ -0,0 +1,250 @@+import { writeFileSync } from "node:fs";+import { join } from "node:path";++import { Tinybird } from "@chronark/zod-bird";+import { createClient } from "@libsql/client";+import { isNotNull } from "drizzle-orm";+import { drizzle } from "drizzle-orm/libsql";+import { z } from "zod";++import { externalService } from "@openstatus/db/src/schema";++const env = z+ .object({+ DATABASE_URL: z.string().min(1),+ DATABASE_AUTH_TOKEN: z.string().prefault(""),+ TINY_BIRD_API_KEY: z.string().min(1),+ TINYBIRD_URL: z.string().optional(),+ V0_DATASOURCE: z.string().prefault("external_status"),+ V1_DATASOURCE: z.string().prefault("external_status__v1"),+ PAGE_SIZE: z.coerce.number().int().positive().prefault(10000),+ FORCE: z+ .string()+ .optional()+ .transform((v) => v === "1" || v === "true"),+ })+ .parse(process.env);++const SAFETY_WINDOW_MS = 60 * 60 * 1000; // 1 hour++const v0RowSchema = z.object({+ name: z.string(),+ description: z.string(),+ indicator: z.string(),+ url: z.string(),+ fetched_at: z.coerce.number(),+ updated_at: z.coerce.number(),+ time_zone: z.string().prefault(""),+});+type V0Row = z.infer<typeof v0RowSchema>;++const v0SqlResponseSchema = z.object({+ data: z.array(v0RowSchema),+ rows: z.number(),+});++type Snapshot = {+ id: string;+ indicator: string;+ status: string;+ status_message: string;+ fetched_at: number;+ updated_at: number;+ time_zone: string;+};++function inferStatusFromIndicator(+ indicator: string,+ description: string,+): string {+ const lower = description.toLowerCase();+ if (lower.includes("maintenance")) return "under_maintenance";+ switch (indicator) {+ case "none":+ return "operational";+ case "minor":+ return "degraded";+ case "major":+ return "partial_outage";+ case "critical":+ return "major_outage";+ default:+ return "operational";+ }+}++async function fetchAllV0Rows(): Promise<V0Row[]> {+ const baseUrl = env.TINYBIRD_URL ?? "https://api.tinybird.co";+ const out: V0Row[] = [];+ const seenNames = new Set<string>();++ let offset = 0;+ while (true) {+ const sql = `SELECT description, fetched_at, indicator, name, time_zone, updated_at, url FROM ${env.V0_DATASOURCE} ORDER BY fetched_at LIMIT ${env.PAGE_SIZE} OFFSET ${offset} FORMAT JSON`;+ const url = `${baseUrl}/v0/sql?q=${encodeURIComponent(sql)}`;+ const res = await fetch(url, {+ headers: { Authorization: `Bearer ${env.TINY_BIRD_API_KEY}` },+ });+ if (!res.ok) {+ throw new Error(+ `v0 SQL fetch failed at offset=${offset}: ${res.status} ${res.statusText}`,+ );+ }+ const json = await res.json();+ const parsed = v0SqlResponseSchema.safeParse(json);+ if (!parsed.success) {+ throw new Error(`v0 SQL payload invalid: ${parsed.error.message}`);+ }+ for (const row of parsed.data.data) {+ out.push(row);+ seenNames.add(row.name);+ }+ if (parsed.data.rows < env.PAGE_SIZE) break;+ offset += env.PAGE_SIZE;+ console.log(`[backfill] paged ${out.length} rows so far...`);+ }++ console.log(+ `[backfill] fetched ${out.length} v0 rows covering ${seenNames.size} unique names`,+ );+ return out;+}++async function loadNameToSlugMap(): Promise<Map<string, string>> {+ const client = createClient({+ url: env.DATABASE_URL,+ authToken: env.DATABASE_AUTH_TOKEN,+ });+ const db = drizzle(client);+ const rows = await db+ .select({ name: externalService.name, slug: externalService.slug })+ .from(externalService)+ .where(isNotNull(externalService.slug))+ .all();+ const map = new Map<string, string>();+ for (const r of rows) {+ map.set(r.name, r.slug);+ }+ console.log(`[backfill] loaded ${map.size} name→slug mappings from libSQL`);+ return map;+}++function rowsToSnapshots(args: {+ rows: V0Row[];+ nameToSlug: Map<string, string>;+}): { snapshots: Snapshot[]; unmapped: Map<string, V0Row[]> } {+ const snapshots: Snapshot[] = [];+ const unmapped = new Map<string, V0Row[]>();+ for (const row of args.rows) {+ const slug = args.nameToSlug.get(row.name);+ if (!slug) {+ const bucket = unmapped.get(row.name) ?? [];+ bucket.push(row);+ unmapped.set(row.name, bucket);+ continue;+ }+ snapshots.push({+ id: slug,+ indicator: row.indicator,+ status: inferStatusFromIndicator(row.indicator, row.description),+ status_message: row.description,+ fetched_at: row.fetched_at,+ updated_at: row.updated_at,+ time_zone: row.time_zone,+ });+ }+ return { snapshots, unmapped };+}++async function publishSnapshots(snapshots: Snapshot[]): Promise<void> {+ const baseUrl = env.TINYBIRD_URL ?? "https://api.tinybird.co";+ const tb = new Tinybird({ token: env.TINY_BIRD_API_KEY, baseUrl });+ const publish = tb.buildIngestEndpoint({+ datasource: "external_status__v1",+ event: z.object({+ id: z.string(),+ indicator: z.string(),+ status: z.string(),+ status_message: z.string(),+ fetched_at: z.number(),+ updated_at: z.number(),+ time_zone: z.string(),+ }),+ });+ const chunk = 1000;+ for (let i = 0; i < snapshots.length; i += chunk) {+ const slice = snapshots.slice(i, i + chunk);+ await publish(slice);+ console.log(+ `[backfill] pushed ${Math.min(i + chunk, snapshots.length)}/${snapshots.length}`,+ );+ }+}++async function assertV1Empty(): Promise<void> {+ const baseUrl = env.TINYBIRD_URL ?? "https://api.tinybird.co";+ const cutoffMs = Date.now() - SAFETY_WINDOW_MS;+ const sql = `SELECT count() AS n FROM ${env.V1_DATASOURCE} WHERE fetched_at < ${cutoffMs} FORMAT JSON`;+ const url = `${baseUrl}/v0/sql?q=${encodeURIComponent(sql)}`;+ const res = await fetch(url, {+ headers: { Authorization: `Bearer ${env.TINY_BIRD_API_KEY}` },+ });+ if (!res.ok) {+ throw new Error(`v1 safety check failed: ${res.status} ${res.statusText}`);+ }+ const json = (await res.json()) as { data?: Array<{ n: number }> };+ const existing = json.data?.[0]?.n ?? 0;+ if (existing === 0) return;+ if (env.FORCE) {+ console.warn(+ `[backfill] FORCE=1 set, proceeding despite ${existing} existing rows older than 1h in ${env.V1_DATASOURCE}`,+ );+ return;+ }+ console.error(+ `[backfill] aborting: ${env.V1_DATASOURCE} has ${existing} rows older than 1h — backfill appears already done.\nRe-running would duplicate rows.\nIf you really want to re-publish, set FORCE=1 and pre-truncate ${env.V1_DATASOURCE} OR accept duplicates.`,+ );+ process.exit(2);+}++async function main() {+ await assertV1Empty();+ const [rows, nameToSlug] = await Promise.all([+ fetchAllV0Rows(),+ loadNameToSlugMap(),+ ]);+ const { snapshots, unmapped } = rowsToSnapshots({ rows, nameToSlug });++ if (unmapped.size > 0) {+ const dump = {+ generated_at: new Date().toISOString(),+ count: Array.from(unmapped.values()).reduce((s, b) => s + b.length, 0),+ names: Array.from(unmapped.keys()),+ sample_rows: Array.from(unmapped.values())+ .flatMap((b) => b.slice(0, 3))+ .slice(0, 30),+ };+ const target = join(process.cwd(), "unmapped.json");+ writeFileSync(target, JSON.stringify(dump, null, 2));+ console.warn(+ `[backfill] ${unmapped.size} unmapped name(s) — wrote ${target}`,+ );+ } else {+ console.log("[backfill] no unmapped rows");+ }++ if (snapshots.length === 0) {+ console.log("[backfill] no snapshots to publish; exiting");+ return;+ }++ await publishSnapshots(snapshots);+ console.log(+ `[backfill] complete: published ${snapshots.length} snapshots (${unmapped.size} unmapped names)`,+ );+}++main().catch((err) => {+ console.error("[backfill] failed:", err);+ process.exit(1);+});diff --git a/packages/tinybird/src/client.ts b/packages/tinybird/src/client.tsindex b53df0b8c..075f017a7 100644--- a/packages/tinybird/src/client.ts+++ b/packages/tinybird/src/client.ts@@ -1765,4 +1765,58 @@ export class OSTinybird {opts: { next: { revalidate: REVALIDATE } },});}++ public get publishExternalStatus() {+ return this.tb.buildIngestEndpoint({+ datasource: "external_status__v1",+ event: z.object({+ id: z.string(),+ indicator: z.string(),+ status: z.string(),+ status_message: z.string(),+ fetched_at: z.int(),+ updated_at: z.int(),+ time_zone: z.string(),+ }),+ });+ }++ public get externalStatusLatest() {+ return this.tb.buildPipe({+ pipe: "endpoint_external_status_latest__v1",+ parameters: z.object({+ ids: z.array(z.string()).optional(),+ }),+ data: z.object({+ id: z.string(),+ indicator: z.string(),+ status: z.string(),+ status_message: z.string(),+ time_zone: z.string(),+ updated_at: z.int(),+ last_fetched_at: z.int(),+ }),+ opts: { next: { revalidate: PUBLIC_CACHE } },+ });+ }++ public get externalStatusHistory() {+ return this.tb.buildPipe({+ pipe: "endpoint_external_status_history__v0",+ parameters: z.object({+ ids: z.array(z.string()).min(1),+ days: z.int().min(1).max(90).optional(),+ }),+ data: z.object({+ day: z.string().transform((val) => {+ return new Date(`${val} GMT`).toISOString();+ }),+ id: z.string(),+ worst_indicator: z.string(),+ had_maintenance: z.int(),+ snapshot_count: z.int(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }}diff --git a/packages/tinybird/src/index.ts b/packages/tinybird/src/index.tsindex 9991ce7fa..0f3337bc2 100644--- a/packages/tinybird/src/index.ts+++ b/packages/tinybird/src/index.ts@@ -1,3 +1,4 @@export * from "./client";+export * from "./safe";export * from "./audit-log";export * from "@chronark/zod-bird";diff --git a/packages/tinybird/src/safe.ts b/packages/tinybird/src/safe.tsnew file mode 100644index 000000000..932633969--- /dev/null+++ b/packages/tinybird/src/safe.ts@@ -0,0 +1,11 @@+export async function safePipeData<T>(+ promise: Promise<{ data: T[] }>,+ label: string,+): Promise<{ data: T[] }> {+ try {+ return await promise;+ } catch (err) {+ console.error(`[tinybird] ${label} failed, returning empty data:`, err);+ return { data: [] };+ }+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 717151c70..a05f394f8 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -904,6 +904,12 @@ importers:'@openstatus/regions':specifier: workspace:*version: link:../../packages/regions+ '@openstatus/services':+ specifier: workspace:*+ version: link:../../packages/services+ '@openstatus/status-fetcher':+ specifier: workspace:*+ version: link:../../packages/status-fetcher'@openstatus/theme-store':specifier: workspace:*version: link:../../packages/theme-store@@ -1190,6 +1196,12 @@ importers:'@openstatus/regions':specifier: workspace:*version: link:../../packages/regions+ '@openstatus/services':+ specifier: workspace:*+ version: link:../../packages/services+ '@openstatus/status-fetcher':+ specifier: workspace:*+ version: link:../../packages/status-fetcher'@openstatus/tinybird':specifier: workspace:*version: link:../../packages/tinybird@@ -1199,6 +1211,12 @@ importers:'@openstatus/utils':specifier: workspace:*version: link:../../packages/utils+ '@opentelemetry/resources':+ specifier: 2.2.0+ version: 2.2.0(@opentelemetry/[email protected])+ '@opentelemetry/semantic-conventions':+ specifier: 1.38.0+ version: 1.38.0'@upstash/qstash':specifier: 2.6.2version: 2.6.2@@ -2175,6 +2193,12 @@ importers:specifier: 4.1.13version: 4.1.13devDependencies:+ '@libsql/client':+ specifier: 0.15.15+ version: 0.15.15+ '@openstatus/db':+ specifier: workspace:*+ version: link:../db'@openstatus/tsconfig':specifier: workspace:*version: link:../tsconfig@@ -2184,6 +2208,9 @@ importers:'@types/node':specifier: 22.10.2version: 22.10.2+ drizzle-orm:+ specifier: 0.44.4+ version: 0.44.4(@libsql/[email protected])(@opentelemetry/[email protected])(@types/[email protected])([email protected])typescript:specifier: 5.9.3version: 5.9.3@@ -2957,48 +2984,56 @@ packages:engines: {node: '>=14.21.3'}cpu: [arm64]os: [linux]+ libc: [musl]'@biomejs/[email protected]':resolution: {integrity: sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [linux]+ libc: [musl]'@biomejs/[email protected]':resolution: {integrity: sha512-fed2ji8s+I/m8upWpTJGanqiJ0rnlHOK3DdxsyVLZQ8ClY6qLuPc9uehCREBifRJLl/iJyQpHIRufLDeotsPtw==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [linux]+ libc: [glibc]'@biomejs/[email protected]':resolution: {integrity: sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [linux]+ libc: [glibc]'@biomejs/[email protected]':resolution: {integrity: sha512-UHrGJX7PrKMKzPGoEsooKC9jXJMa28TUSMjcIlbDnIO4EAavCoVmNQaIuUSH0Ls2mpGMwUIf+aZJv657zfWWjA==}engines: {node: '>=14.21.3'}cpu: [x64]os: [linux]+ libc: [musl]'@biomejs/[email protected]':resolution: {integrity: sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==}engines: {node: '>=14.21.3'}cpu: [x64]os: [linux]+ libc: [musl]'@biomejs/[email protected]':resolution: {integrity: sha512-I8G2QmuE1teISyT8ie1HXsjFRz9L1m5n83U1O6m30Kw+kPMPSKjag6QGUn+sXT8V+XWIZxFFBoTDEDZW2KPDDw==}engines: {node: '>=14.21.3'}cpu: [x64]os: [linux]+ libc: [glibc]'@biomejs/[email protected]':resolution: {integrity: sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==}engines: {node: '>=14.21.3'}cpu: [x64]os: [linux]+ libc: [glibc]'@biomejs/[email protected]':resolution: {integrity: sha512-J+Hu9WvrBevfy06eU1Na0lpc7uR9tibm9maHynLIoAjLZpQU3IW+OKHUtyL8p6/3pT2Ju5t5emReeIS2SAxhkQ==}@@ -3791,155 +3826,183 @@ packages:resolution: {integrity: sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==}cpu: [arm64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==}cpu: [arm64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==}cpu: [arm]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==}cpu: [arm]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==}cpu: [ppc64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==}cpu: [riscv64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==}cpu: [s390x]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==}cpu: [s390x]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==}cpu: [x64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==}cpu: [x64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==}cpu: [arm64]os: [linux]+ libc: [musl]'@img/[email protected]':resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==}cpu: [arm64]os: [linux]+ libc: [musl]'@img/[email protected]':resolution: {integrity: sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==}cpu: [x64]os: [linux]+ libc: [musl]'@img/[email protected]':resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==}cpu: [x64]os: [linux]+ libc: [musl]'@img/[email protected]':resolution: {integrity: sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [arm64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [arm64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [arm]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [arm]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [ppc64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [riscv64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [s390x]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [s390x]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [x64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [x64]os: [linux]+ libc: [glibc]'@img/[email protected]':resolution: {integrity: sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [arm64]os: [linux]+ libc: [musl]'@img/[email protected]':resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [arm64]os: [linux]+ libc: [musl]'@img/[email protected]':resolution: {integrity: sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [x64]os: [linux]+ libc: [musl]'@img/[email protected]':resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [x64]os: [linux]+ libc: [musl]'@img/[email protected]':resolution: {integrity: sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==}@@ -4215,48 +4278,56 @@ packages:engines: {node: '>= 10'}cpu: [arm64]os: [linux]+ libc: [glibc]'@next/[email protected]':resolution: {integrity: sha512-OJYkCd5pj/QloBvoEcJ2XiMnlJkRv9idWA/j0ugSuA34gMT6f5b7vOiCQHVRpvStoZUknhl6/UxOXL4OwtdaBw==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]+ libc: [glibc]'@next/[email protected]':resolution: {integrity: sha512-llA+hiDTrYvyWI21Z0L1GiXwjQaanPVQQwru5peOgtooeJ8qx3tlqRV2P7uH2pKQaUfHxI/WVarvI5oYgGxaTw==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]+ libc: [musl]'@next/[email protected]':resolution: {integrity: sha512-S4J2v+8tT3NIO9u2q+S0G5KdvNDjXfAv06OhfOzNDaBn5rw84DGXWndOEB7d5/x852A20sW1M56vhC/tRVbccQ==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]+ libc: [musl]'@next/[email protected]':resolution: {integrity: sha512-AK2q5H0+a9nsXbeZ3FZdMtbtu9jxW4R/NgzZ6+lrTm3d6Zb7jYrWcgjcpM1k8uuqlSy4xIyPR2YiuUr+wXsavA==}engines: {node: '>= 10'}cpu: [x64]os: [linux]+ libc: [glibc]'@next/[email protected]':resolution: {integrity: sha512-2eEBDkFlMMNQnkTyPBhQOAyn2qMxyG2eE7GPH2WIDGEpEILcBPI/jdSv4t6xupSP+ot/jkfrCShLAa7+ZUPcJQ==}engines: {node: '>= 10'}cpu: [x64]os: [linux]+ libc: [glibc]'@next/[email protected]':resolution: {integrity: sha512-1TDG9PDKivNw5550S111gsO4RGennLVl9cipPhtkXIFVwo31YZ73nEbLjNC8qG3SgTz/QZyYyaFYMeY4BKZR/g==}engines: {node: '>= 10'}cpu: [x64]os: [linux]+ libc: [musl]'@next/[email protected]':resolution: {integrity: sha512-oicJwRlyOoZXVlxmIMaTq7f8pN9QNbdes0q2FXfRsPhfCi8n8JmOZJm5oo1pwDaFbnnD421rVU409M3evFbIqg==}engines: {node: '>= 10'}cpu: [x64]os: [linux]+ libc: [musl]'@next/[email protected]':resolution: {integrity: sha512-aEZIS4Hh32xdJQbHz121pyuVZniSNoqDVx1yIr2hy+ZwJGipeqnMZBJHyMxv2tiuAXGx6/xpTcQJ6btIiBjgmg==}@@ -4616,41 +4687,49 @@ packages:resolution: {integrity: sha512-xlMh4gNtplNQEwuF5icm69udC7un0WyzT5ywOeHrPMEsghKnLjXok2wZgAA7ocTm9+JsI+nVXIQa5XO1x+HPQg==}cpu: [arm64]os: [linux]+ libc: [glibc]'@oxc-resolver/[email protected]':resolution: {integrity: sha512-OZs33QTMi0xmHv/4P0+RAKXJTBk7UcMH5tpTaCytWRXls/DGaJ48jOHmriQGK2YwUqXl+oneuNyPOUO0obJ+Hg==}cpu: [arm64]os: [linux]+ libc: [musl]'@oxc-resolver/[email protected]':resolution: {integrity: sha512-UVyuhaV32dJGtF6fDofOcBstg9JwB2Jfnjfb8jGlu3xcG+TsubHRhuTwQ6JZ1sColNT1nMxBiu7zdKUEZi1kwg==}cpu: [ppc64]os: [linux]+ libc: [glibc]'@oxc-resolver/[email protected]':resolution: {integrity: sha512-YZZS0yv2q5nE1uL/Fk4Y7m9018DSEmDNSG8oJzy1TJjA1jx5HL52hEPxi98XhU6OYhSO/vC1jdkJeE8TIHugug==}cpu: [riscv64]os: [linux]+ libc: [glibc]'@oxc-resolver/[email protected]':resolution: {integrity: sha512-9VYuypwtx4kt1lUcwJAH4dPmgJySh4/KxtAPdRoX2BTaZxVm/yEXHq0mnl/8SEarjzMvXKbf7Cm6UBgptm3DZw==}cpu: [riscv64]os: [linux]+ libc: [musl]'@oxc-resolver/[email protected]':resolution: {integrity: sha512-3gbwQ+xlL5gpyzgSDdC8B4qIM4mZaPDLaFOi3c/GV7CqIdVJc5EZXW4V3T6xwtPBOpXPXfqQLbhTnUD4SqwJtA==}cpu: [s390x]os: [linux]+ libc: [glibc]'@oxc-resolver/[email protected]':resolution: {integrity: sha512-m0WcK0j54tSwWa+hQaJMScZdWneqE7xixp/vpFqlkbhuKW9dRHykPAFvSYg1YJ3MJgu9ZzVNpYHhPKJiEQq57Q==}cpu: [x64]os: [linux]+ libc: [glibc]'@oxc-resolver/[email protected]':resolution: {integrity: sha512-ZjUm3w96P2t47nWywGwj1A2mAVBI/8IoS7XHhcogWCfXnEI3M6NPIRQPYAZW4s5/u3u6w1uPtgOwffj2XIOb/g==}cpu: [x64]os: [linux]+ libc: [musl]'@oxc-resolver/[email protected]':resolution: {integrity: sha512-OFVQ2x3VenTp13nIl6HcQ/7dmhFmM9dg2EjKfHcOtYfrVLQdNR6THFU7GkMdmc8DdY1zLUeilHwBIsyxv5hkwQ==}@@ -4691,21 +4770,25 @@ packages:resolution: {integrity: sha512-irE0RO9B0R6ziQE6kUVZtZ6IuTdRyuumn1cPWhDfpa0XUa5sE0ly8pjVsvJbj/J9qerVtidU05txeXBB5CirQg==}cpu: [arm64]os: [linux]+ libc: [glibc]'@oxfmt/[email protected]':resolution: {integrity: sha512-eXPBLwYJm26DCmwMwhelEwQMRwuGNaYhYZOhd+CYYsmVoF+h6L6dtjwj0Ovuu0Gqh18EL8vfsaoUvb+jr3vEBg==}cpu: [arm64]os: [linux]+ libc: [musl]'@oxfmt/[email protected]':resolution: {integrity: sha512-dTPW38Hjgb7LoD2mNgyQGBaJ1hu5YgPrxImhl5Eb04eiws+ETCM0wrb2TWGduA+Nv3rHKn3vZEkMTEjklZXgRw==}cpu: [x64]os: [linux]+ libc: [glibc]'@oxfmt/[email protected]':resolution: {integrity: sha512-b4duw9JGDK/kZoqrPNU9tBOOZQdUW8KJPZ7gW7z54X1eGSqCJ1PT0XLNmZ7SOA1BzQwQ0a3qmQWfFVOsH3a5bw==}cpu: [x64]os: [linux]+ libc: [musl]'@oxfmt/[email protected]':resolution: {integrity: sha512-XAzvBhw4K+Fe16dBaFgYAdob9WaM8RYEXl0ibbm5NlNaQEq+5bH9xwc0oaYlHFnLfcgXWmn9ceTAYqNlONQRNA==}@@ -4761,21 +4844,25 @@ packages:resolution: {integrity: sha512-EMx92X5q+hHc3olTuj/kgkx9+yP0p/AVs4yvHbUfzZhBekXNpUWxWvg4hIKmQWn+Ee2j4o80/0ACGO0hDYJ9mg==}cpu: [arm64]os: [linux]+ libc: [glibc]'@oxlint/[email protected]':resolution: {integrity: sha512-7YCxtrPIctVYLqWrWkk8pahdCxch6PtsaucfMLC7TOlDt4nODhnQd4yzEscKqJ8Gjrw1bF4g+Ngob1gB+Qr9Fw==}cpu: [arm64]os: [linux]+ libc: [musl]'@oxlint/[email protected]':resolution: {integrity: sha512-lnaJVlx5r3NWmoOMesfQXJSf78jHTn8Z+sdAf795Kgteo72+qGC1Uax2SToCJVN2J8PNG3oRV5bLriiCNR2i6Q==}cpu: [x64]os: [linux]+ libc: [glibc]'@oxlint/[email protected]':resolution: {integrity: sha512-AhuEU2Qdl66lSfTGu/Htirq8r/8q2YnZoG3yEXLMQWnPMn7efy8spD/N1NA7kH0Hll+cdfwgQkQqC2G4MS2lPQ==}cpu: [x64]os: [linux]+ libc: [musl]'@oxlint/[email protected]':resolution: {integrity: sha512-GlWCBjUJY2QgvBFuNRkiRJu7K/djLmM0UQKfZV8IN+UXbP/JbjZHWKRdd4LXlQmzoz7M5Hd6p+ElCej8/90FCg==}@@ -4852,36 +4939,42 @@ packages:engines: {node: '>= 10.0.0'}cpu: [arm]os: [linux]+ libc: [glibc]'@parcel/[email protected]':resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==}engines: {node: '>= 10.0.0'}cpu: [arm]os: [linux]+ libc: [musl]'@parcel/[email protected]':resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==}engines: {node: '>= 10.0.0'}cpu: [arm64]os: [linux]+ libc: [glibc]'@parcel/[email protected]':resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==}engines: {node: '>= 10.0.0'}cpu: [arm64]os: [linux]+ libc: [musl]'@parcel/[email protected]':resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==}engines: {node: '>= 10.0.0'}cpu: [x64]os: [linux]+ libc: [glibc]'@parcel/[email protected]':resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==}engines: {node: '>= 10.0.0'}cpu: [x64]os: [linux]+ libc: [musl]'@parcel/[email protected]':resolution: {integrity: sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==}@@ -6236,99 +6329,116 @@ packages:'@react-email/[email protected]':resolution: {integrity: sha512-ljDiQiJDu/Fq//vSIIP0z5Nuvt4+DX1RqGasstChDGJB/14ogd4VdNS9aacoede/ZjGy3o3Qb+cxyS+XgM6SwQ==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-qXyj7RZLE7POy9BMKSoqQ00tOXThjOZSUnI2Yu9i29IHngPlmrNayIWBoVKtElES7OWwypUcpiajwi1mUWx6/A==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-M3B7JpVH4ytgn83/ujRR1k1DQHvTeABiDM61OvAbjLRPhC/5KLHU5KkzIbbuGIrjWwxAbL1kSQzU8MhLEtSxyw==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-jfhebvv3dVsp3OdPgKXnk8+e2pBiDVZejDOBFzBa/IblrAJ9cQDkN6rBD5IyEg8hTOxwbw3iaI/yZFmDmIguIA==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-f+W+Bk2AjNO77zynE33rHuQhyqVICx4RYtGX9NKsGUg0wWjdGP0qAuIkhx9Rnmk4/hFMo1fUrtYNqca9fwJdHg==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-RbleOT35XSCWM54Rs76/BgfPA0Son55OH4awBYlkHZgLw0AdbPwobhE7izNDFqY4nHW7+omLfe3CByWbsg/hEw==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-QWBB56RkkU0AJ9h+qy33gfT5iuZknPC7Un/IjZv9B0QmMIK+WWacc0cH6y2SV5Cv/b99hU94fjEMOOO4enpkbQ==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-0urVSgCmQIfx5r7Xc586miBnQUVnGp3OTYUm8m5pwtQRdTRO5XrTtEfNJ3JhYhSOruV0nD8fd+dXtKXobum6tA==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-AJg6le/08Gz4tm+6MtKXqtNNyKHzmooOCdmtqmWxD7FxoAdU1eVcizhtQ0gcnVaY6ethEyE/hnEzQxt1zu5Kog==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-jmsKnQm1ykpBzw4hCYHwBkt5pW2jScXffPeEH5ZRF5tZeF5b1pvlFTO9han7C0pCkZYo1kEvWiRtx69yfCIwuw==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-TwmOmBDibavUQpXBxpmZYi2Iks/yeZOzFYh+di9EltMSnEabH8dMZXrl+pxNXzCgZ2XE8HY7VmUL65Lenfu5PA==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-KTShZesan+UsreU7PDUV90afrZwU5TLwYlALuCSU0OT+/U8lULNNbAUekg+tGwCnOfIKYtpDPKkAMRdYlqUznw==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-sRCpEARNVTf3FQhZOC+JTvu5r6ubiYWkT0ucYXg8ctkyi4G8QG+jgYPiNUqVeTLA2STOfmPM/nrk1nb84y6CPQ==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-lkWc/NjOcefRZMkQoSDDbuKBEBDES9aXnFEOuPH845wD3TxPwh+QTf0fStuzjoRLUZWpHnio4z7qGGRYusn/sw==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-gSuYK5fsMbGk87jDebqQ6fa2fKcWlkf2Dkva8kMONqLgGCq8/0d+ZQYMEJsdidIeBo3kmsnHZPrwdFB4HgjUXg==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-prMwnjWY9h57HL3MU2NRrj6ePjN7+A23vRwOjpVFczSW5InjitODFG1fRPKpdmIrRtVvj8XHdr7KDW0QXD8tow==}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.'@react-email/[email protected]':resolution: {integrity: sha512-aYK8q0IPkBXyMsbpMXgxazwHxYJxTrXrV95GFuu2HbEiIToMwSyUgb8HDFYwPqqfV03/jbwqlsXmFxsOd+VNaw==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc@@ -6342,18 +6452,21 @@ packages:'@react-email/[email protected]':resolution: {integrity: sha512-bYnOac40vIKCId7IkwuLAAsa3fKfSfqCvv6epJKmPE0JBuu5qI4FHFCl9o9dVpIIS08s/ub+Y/txoMt0dYziGw==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-qNl65ye3W0Rd5udhdORzTV9ezjb+GFqQQSae03NDzXtmJq6sqVXNWNiVolAjvJNypim+zGXmv6J9TcV5aNtE/w==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc'@react-email/[email protected]':resolution: {integrity: sha512-URXb/T2WS4RlNGM5QwekYnivuiVUcU87H0y5sqLl6/Oi3bMmgL0Bmw/W9GeJylC+876Vw+E6NkE0uRiUFIQwGg==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:'@react-email/body': 0.2.1'@react-email/button': 0.2.1@@ -6392,6 +6505,7 @@ packages:'@react-email/[email protected]':resolution: {integrity: sha512-TYqkioRS45wTR5il3dYk/SbUjjEdhSwh9BtRNB99qNH1pXAwA45H7rAuxehiu8iJQJH0IyIr+6n62gBz9ezmsw==}engines: {node: '>=20.0.0'}+ deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc@@ -6450,56 +6564,67 @@ packages:resolution: {integrity: sha512-k9oD15soC/Ln6d2Wv/JOFPzZXIAIFLp6B+i14KhxAfnq76ajt0EhYc5YPeX6W1xJkAdItcVT+JhKl1QZh44/qw==}cpu: [arm]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-vTNlKq+N6CK/8UktsrFuc+/7NlEYVxgaEgRXVUVK258Z5ymho29skzW1sutgYjqNnquGwVUObAaxae8rZ6YMhg==}cpu: [arm]os: [linux]+ libc: [musl]'@rollup/[email protected]':resolution: {integrity: sha512-RGrFLWgMhSxRs/EWJMIFM1O5Mzuz3Xy3/mnxJp/5cVhZ2XoCAxJnmNsEyeMJtpK+wu0FJFWz+QF4mjCA7AUQ3w==}cpu: [arm64]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-kASyvfBEWYPEwe0Qv4nfu6pNkITLTb32p4yTgzFCocHnJLAHs+9LjUu9ONIhvfT/5lv4YS5muBHyuV84epBo/A==}cpu: [arm64]os: [linux]+ libc: [musl]'@rollup/[email protected]':resolution: {integrity: sha512-JiuKcp2teLJwQ7vkJ95EwESWkNRFJD7TQgYmCnrPtlu50b4XvT5MOmurWNrCj3IFdyjBQ5p9vnrX4JM6I8OE7g==}cpu: [loong64]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-EoGSa8nd6d3T7zLuqdojxC20oBfNT8nexBbB/rkxgKj5T5vhpAQKKnD+h3UkoMuTyXkP5jTjK/ccNRmQrPNDuw==}cpu: [ppc64]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-4s+Wped2IHXHPnAEbIB0YWBv7SDohqxobiiPA1FIWZpX+w9o2i4LezzH/NkFUl8LRci/8udci6cLq+jJQlh+0g==}cpu: [riscv64]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-68k2g7+0vs2u9CxDt5ktXTngsxOQkSEV/xBbwlqYcUrAVh6P9EgMZvFsnHy4SEiUl46Xf0IObWVbMvPrr2gw8A==}cpu: [riscv64]os: [linux]+ libc: [musl]'@rollup/[email protected]':resolution: {integrity: sha512-VYsFMpULAz87ZW6BVYw3I6sWesGpsP9OPcyKe8ofdg9LHxSbRMd7zrVrr5xi/3kMZtpWL/wC+UIJWJYVX5uTKg==}cpu: [s390x]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-3EhFi1FU6YL8HTUJZ51imGJWEX//ajQPfqWLI3BQq4TlvHy4X0MOr5q3D2Zof/ka0d5FNdPwZXm3Yyib/UEd+w==}cpu: [x64]os: [linux]+ libc: [glibc]'@rollup/[email protected]':resolution: {integrity: sha512-eoROhjcc6HbZCJr+tvVT8X4fW3/5g/WkGvvmwz/88sDtSJzO7r/blvoBDgISDiCjDRZmHpwud7h+6Q9JxFwq1Q==}cpu: [x64]os: [linux]+ libc: [musl]'@rollup/[email protected]':resolution: {integrity: sha512-OueLAWgrNSPGAdUdIjSWXw+u/02BRTcnfw9PN41D2vq/JSEPnJnVuBgw18VkN8wcd4fjUs+jFHVM4t9+kBSNLw==}@@ -6972,24 +7097,28 @@ packages:engines: {node: '>=10'}cpu: [arm64]os: [linux]+ libc: [glibc]'@swc/[email protected]':resolution: {integrity: sha512-0a+Lix+FSSHBSBOA0XznCcHo5/1nA6oLLjcnocvzXeqtdjnPb+SvchItHI+lfeiuj1sClYPDvPMLSLyXFaiIKw==}engines: {node: '>=10'}cpu: [arm64]os: [linux]+ libc: [musl]'@swc/[email protected]':resolution: {integrity: sha512-wG9J8vReUlpaHz4KOD/5UE1AUgirimU4UFT9oZmupUDEofxJKYb1mTA/DrMj0s78bkBiNI+7Fo2EgPuvOJfuAA==}engines: {node: '>=10'}cpu: [x64]os: [linux]+ libc: [glibc]'@swc/[email protected]':resolution: {integrity: sha512-4nwbVvCphKzicwNWRmvD5iBaZj8JYsRGa4xOxJmOyHlMDpsvvJ2OR2cODlvWyGFH6BYL1MfIAK3qph3hp0Az6g==}engines: {node: '>=10'}cpu: [x64]os: [linux]+ libc: [musl]'@swc/[email protected]':resolution: {integrity: sha512-zk0RYO+LjiBCat2RTMHzAWaMky0cra9loH4oRrLKLLNuL+jarxKLFDA8xTZWEkCPLjUTwlRN7d28eDLLMgtUcQ==}@@ -7145,48 +7274,56 @@ packages:engines: {node: '>= 10'}cpu: [arm64]os: [linux]+ libc: [glibc]'@tailwindcss/[email protected]':resolution: {integrity: sha512-qq7jXtO1+UEtCmCeBBIRDrPFIVI4ilEQ97qgBGdwXAARrUqSn/L9fUrkb1XP/mvVtoVeR2bt/0L77xx53bPZ/Q==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]+ libc: [glibc]'@tailwindcss/[email protected]':resolution: {integrity: sha512-m/NVRFNGlEHJrNVk3O6I9ggVuNjXHIPoD6bqay/pubtYC9QIdAMpS+cswZQPBLvVvEF6GtSNONbDkZrjWZXYNQ==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]+ libc: [musl]'@tailwindcss/[email protected]':resolution: {integrity: sha512-O6b8QesPbJCRshsNApsOIpzKt3ztG35gfX9tEf4arD7mwNinsoCKxkj8TgEE0YRjmjtO3r9FlJnT/ENd9EVefQ==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]+ libc: [musl]'@tailwindcss/[email protected]':resolution: {integrity: sha512-YW6sblI7xukSD2TdbbaeQVDysIm/UPJtObHJHKxDEcW2exAtY47j52f8jZXkqE1krdnkhCMGqP3dbniu1Te2Fg==}engines: {node: '>= 10'}cpu: [x64]os: [linux]+ libc: [glibc]'@tailwindcss/[email protected]':resolution: {integrity: sha512-32iEXX/pXwikshNOGnERAFwFSfiltmijMIAbUhnNyjFr3tmWmMJWQKU2vNcFX0DACSXJ3ZWcSkzNbaKTdngH6g==}engines: {node: '>= 10'}cpu: [x64]os: [linux]+ libc: [glibc]'@tailwindcss/[email protected]':resolution: {integrity: sha512-e3C/RRhGunWYNC3aSF7exsQkdXzQ/M+aYuZHKnw4U7KQwTJotnWsGOIVih0s2qQzmEzOFIJ3+xt7iq67K/p56Q==}engines: {node: '>= 10'}cpu: [x64]os: [linux]+ libc: [musl]'@tailwindcss/[email protected]':resolution: {integrity: sha512-s+VSSD+TfZeMEsCaFaHTaY5YNj3Dri8rST09gMvYQKwPphacRG7wbuQ5ZJMIJXN/puxPcg/nU+ucvWguPpvBDg==}engines: {node: '>= 10'}cpu: [x64]os: [linux]+ libc: [musl]'@tailwindcss/[email protected]':resolution: {integrity: sha512-Xo1+/GU0JEN/C/dvcammKHzeM6NqKovG+6921MR6oadee5XPBaKOumrJCXvopJ/Qb5TH7LX/UAywbqrP4lax0g==}@@ -7590,6 +7727,7 @@ packages:'@ungap/[email protected]':resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}+ deprecated: Potential CWE-502 - Update to 1.3.1 or higher'@unhead/[email protected]':resolution: {integrity: sha512-0zWykKAaJdm+/Y7yi/Yds20PrUK7XabLe9c3IRcjnwYmSWY6z0Cr19VIs3ozCj8P+GhR+/TI2mwtGlueCEYouA==}@@ -9839,24 +9977,28 @@ packages:engines: {node: '>= 12.0.0'}cpu: [arm64]os: [linux]+ libc: [glibc]resolution: {integrity: sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==}engines: {node: '>= 12.0.0'}cpu: [arm64]os: [linux]+ libc: [musl]resolution: {integrity: sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==}engines: {node: '>= 12.0.0'}cpu: [x64]os: [linux]+ libc: [glibc]resolution: {integrity: sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==}engines: {node: '>= 12.0.0'}cpu: [x64]os: [linux]+ libc: [musl]resolution: {integrity: sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==}@@ -12311,14 +12453,17 @@ packages:resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==}+ deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).hasBin: trueresolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}+ deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).hasBin: trueresolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}+ deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).hasBin: truediff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex dde75ee14..171ea26f1 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -2,3 +2,4 @@ packages:- "apps/*"- "packages/**/*"- "packages/config/*"+trustPolicy: "off" # temporary, can't pnpm install right now, need to update a bunch of packages to remove this