Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
add front end
Thiago Araujo da Silva76ea328e8560
diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.tsindex 2cfbe10d79..2f1d75de6b 100644--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@ -1021,7 +1021,7 @@ export const registerRoutes = async (permissionService}));- const alarmRecipientResolver = alarmRecipientResolverFactory({ userDAL, orgDAL, userGroupMembershipDAL });+ const alarmRecipientResolver = alarmRecipientResolverFactory({ userDAL, userGroupMembershipDAL });const alarmEngine = alarmEngineFactory({alarmChannelDAL,alarmRecipientDAL,@@ -1046,7 +1046,10 @@ export const registerRoutes = async (alarmRecipientDAL,alarmHistoryDAL,alarmProviderRegistry,- kmsService+ kmsService,+ orgDAL,+ projectDAL,+ groupDAL});const auditLogStreamService = auditLogStreamServiceFactory({diff --git a/backend/src/services/alarm/alarm-engine.ts b/backend/src/services/alarm/alarm-engine.tsindex f714c1a957..6261c8f5f4 100644--- a/backend/src/services/alarm/alarm-engine.ts+++ b/backend/src/services/alarm/alarm-engine.ts@@ -119,7 +119,7 @@ export const alarmEngineFactory = ({);let recipients: TAlarmRecipient[] = [];if (hasDirectedChannel) {- recipients = await alarmRecipientResolver.resolve(alarm.orgId, await alarmRecipientDAL.findByAlarmId(alarm.id));+ recipients = await alarmRecipientResolver.resolve(await alarmRecipientDAL.findByAlarmId(alarm.id));}const deps: TAlarmChannelDeps = { smtpService };diff --git a/backend/src/services/alarm/alarm-recipient-resolver.ts b/backend/src/services/alarm/alarm-recipient-resolver.tsindex 263fb5a387..9acedc2cc9 100644--- a/backend/src/services/alarm/alarm-recipient-resolver.ts+++ b/backend/src/services/alarm/alarm-recipient-resolver.ts@@ -1,7 +1,6 @@-import { OrgMembershipRole, OrgMembershipStatus, TAlarmRecipients } from "@app/db/schemas";+import { TAlarmRecipients } from "@app/db/schemas";import { TUserGroupMembershipDALFactory } from "@app/ee/services/group/user-group-membership-dal";import { logger } from "@app/lib/logger";-import { TOrgDALFactory } from "@app/services/org/org-dal";import { TUserDALFactory } from "@app/services/user/user-dal";import { TAlarmRecipient } from "./alarm-channel-types";@@ -9,18 +8,13 @@ import { AlarmPrincipalType } from "./alarm-types";type TAlarmRecipientResolverDep = {userDAL: Pick<TUserDALFactory, "find">;- orgDAL: Pick<TOrgDALFactory, "findOrgMembersByRole">;userGroupMembershipDAL: Pick<TUserGroupMembershipDALFactory, "find">;};export type TAlarmRecipientResolver = ReturnType<typeof alarmRecipientResolverFactory>;-export const alarmRecipientResolverFactory = ({- userDAL,- orgDAL,- userGroupMembershipDAL-}: TAlarmRecipientResolverDep) => {- const resolve = async (orgId: string, recipients: TAlarmRecipients[]): Promise<TAlarmRecipient[]> => {+export const alarmRecipientResolverFactory = ({ userDAL, userGroupMembershipDAL }: TAlarmRecipientResolverDep) => {+ const resolve = async (recipients: TAlarmRecipients[]): Promise<TAlarmRecipient[]> => {const userIds = new Set<string>();const rawEmails = new Set<string>();@@ -29,14 +23,6 @@ export const alarmRecipientResolverFactory = ({case AlarmPrincipalType.USER:userIds.add(recipient.principalId);break;- case AlarmPrincipalType.ROLE: {- // eslint-disable-next-line no-await-in-loop- const members = await orgDAL.findOrgMembersByRole(orgId, recipient.principalId as OrgMembershipRole);- members- .filter((member) => member.status !== OrgMembershipStatus.Invited && member.user?.id)- .forEach((member) => userIds.add(member.user.id));- break;- }case AlarmPrincipalType.GROUP: {// eslint-disable-next-line no-await-in-loopconst memberships = await userGroupMembershipDAL.find({ groupId: recipient.principalId });diff --git a/backend/src/services/alarm/alarm-service.test.ts b/backend/src/services/alarm/alarm-service.test.tsindex bc4bc87a1c..30c4303c7a 100644--- a/backend/src/services/alarm/alarm-service.test.ts+++ b/backend/src/services/alarm/alarm-service.test.ts@@ -19,6 +19,7 @@ const encConfig = (config: unknown) => Buffer.from(JSON.stringify(config));const buildService = (opts?: {assertPermission?: (input: TAlarmPermissionInput) => Promise<void>;resourceScopeThrows?: boolean;+ rejectRecipients?: boolean;}) => {const permissionCalls: TAlarmPermissionInput[] = [];const provider: IResourceAlarmProvider = {@@ -92,7 +93,27 @@ const buildService = (opts?: {},alarmHistoryDAL: { findLatestByAlarmId: async () => undefined },alarmProviderRegistry: registry,- kmsService: kmsServiceMock+ kmsService: kmsServiceMock,+ orgDAL: {+ findMembership: async (filter: { $in?: { actorUserId?: string[] } }) =>+ opts?.rejectRecipients ? [] : (filter.$in?.actorUserId ?? []).map((actorUserId) => ({ actorUserId }))+ },+ projectDAL: {+ findEffectiveProjectSubjectsMembership: async ({+ userIds,+ groupIds+ }: {+ userIds: string[];+ groupIds: string[];+ }) =>+ opts?.rejectRecipients+ ? { effectiveUserIds: [], effectiveGroupIds: [] }+ : { effectiveUserIds: userIds, effectiveGroupIds: groupIds }+ },+ groupDAL: {+ find: async (filter: { $in?: { id?: string[] } }) =>+ opts?.rejectRecipients ? [] : (filter.$in?.id ?? []).map((id) => ({ id }))+ }} as unknown as TAlarmServiceFactoryDep);return { service, permissionCalls, alarms, channels };@@ -168,6 +189,22 @@ describe("alarm service", () => {await expect(service.createAlarm(validCreate)).rejects.toThrow("forbidden");});+ test("rejects recipients that do not belong to the scope", async () => {+ const { service } = buildService({ rejectRecipients: true });+ await expect(service.createAlarm(validCreate)).rejects.toThrow(/not members of the organization/);+ });++ test("accepts EMAIL recipients without a membership check", async () => {+ // rejectRecipients makes every user/group lookup come back empty; an email-only alarm must+ // still succeed because raw addresses are not validated against the org/project.+ const { service } = buildService({ rejectRecipients: true });+ const alarm = await service.createAlarm({+ ...validCreate,+ recipients: [{ principalType: AlarmPrincipalType.EMAIL, principalId: "[email protected]" }]+ });+ expect(alarm.recipients).toEqual([{ principalType: "email", principalId: "[email protected]" }]);+ });+test("redacts the webhook signing secret on read", async () => {const { service, alarms, channels } = buildService();alarms.set("alarm-1", {diff --git a/backend/src/services/alarm/alarm-service.ts b/backend/src/services/alarm/alarm-service.tsindex 0f5752a78a..d3460376ea 100644--- a/backend/src/services/alarm/alarm-service.ts+++ b/backend/src/services/alarm/alarm-service.ts@@ -1,7 +1,10 @@import { z } from "zod";+import { TGroupDALFactory } from "@app/ee/services/group/group-dal";import { BadRequestError, NotFoundError } from "@app/lib/errors";import { TKmsServiceFactory } from "@app/services/kms/kms-service";+import { TOrgDALFactory } from "@app/services/org/org-dal";+import { TProjectDALFactory } from "@app/services/project/project-dal";import { decryptChannelConfig, encryptChannelConfig, getAlarmChannelCipher } from "./alarm-channel-crypto-fns";import { TAlarmChannelDALFactory } from "./alarm-channel-dal";@@ -31,6 +34,9 @@ export type TAlarmServiceFactoryDep = {alarmHistoryDAL: Pick<TAlarmHistoryDALFactory, "findLatestByAlarmId">;alarmProviderRegistry: TAlarmProviderRegistry;kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">;+ orgDAL: Pick<TOrgDALFactory, "findMembership">;+ projectDAL: Pick<TProjectDALFactory, "findEffectiveProjectSubjectsMembership">;+ groupDAL: Pick<TGroupDALFactory, "find">;};export type TAlarmServiceFactory = ReturnType<typeof alarmServiceFactory>;@@ -44,7 +50,10 @@ export const alarmServiceFactory = ({alarmRecipientDAL,alarmHistoryDAL,alarmProviderRegistry,- kmsService+ kmsService,+ orgDAL,+ projectDAL,+ groupDAL}: TAlarmServiceFactoryDep) => {const $getProvider = (resourceType: string): IResourceAlarmProvider => {const provider = alarmProviderRegistry.get(resourceType);@@ -113,6 +122,75 @@ export const alarmServiceFactory = ({}};+ const $validateRecipients = async (+ orgId: string,+ projectId: string | null | undefined,+ recipients: { principalType: string; principalId: string }[]+ ) => {+ const userIds = [+ ...new Set(+ recipients+ .filter((recipient) => recipient.principalType === AlarmPrincipalType.USER)+ .map((recipient) => recipient.principalId)+ )+ ];+ const groupIds = [+ ...new Set(+ recipients+ .filter((recipient) => recipient.principalType === AlarmPrincipalType.GROUP)+ .map((recipient) => recipient.principalId)+ )+ ];++ if (userIds.length === 0 && groupIds.length === 0) return;++ if (projectId) {+ const { effectiveUserIds, effectiveGroupIds } = await projectDAL.findEffectiveProjectSubjectsMembership({+ orgId,+ projectId,+ userIds,+ groupIds+ });+ const projectUserIds = new Set(effectiveUserIds);+ const missingUsers = userIds.filter((id) => !projectUserIds.has(id));+ if (missingUsers.length) {+ throw new BadRequestError({+ message: `Some users are not members of the project: ${missingUsers.join(", ")}`+ });+ }+ const projectGroupIds = new Set(effectiveGroupIds);+ const missingGroups = groupIds.filter((id) => !projectGroupIds.has(id));+ if (missingGroups.length) {+ throw new BadRequestError({+ message: `Some groups are not members of the project: ${missingGroups.join(", ")}`+ });+ }+ return;+ }++ if (userIds.length) {+ const memberships = await orgDAL.findMembership({ $in: { actorUserId: userIds }, scopeOrgId: orgId });+ const orgUserIds = new Set(memberships.map((membership) => membership.actorUserId));+ const missingUsers = userIds.filter((id) => !orgUserIds.has(id));+ if (missingUsers.length) {+ throw new BadRequestError({+ message: `Some users are not members of the organization: ${missingUsers.join(", ")}`+ });+ }+ }++ if (groupIds.length) {+ const orgGroups = await groupDAL.find({ $in: { id: groupIds }, orgId });+ const orgGroupIds = new Set(orgGroups.map((group) => group.id));+ const missingGroups = groupIds.filter((id) => !orgGroupIds.has(id));+ if (missingGroups.length) {+ throw new BadRequestError({+ message: `Some groups are not part of the organization: ${missingGroups.join(", ")}`+ });+ }+ }+ };+const $formatResponse = async (alarmId: string): Promise<TAlarmResponse> => {const alarm = await alarmDAL.findById(alarmId);if (!alarm) throw new NotFoundError({ message: `Alarm with ID '${alarmId}' not found` });@@ -200,6 +278,8 @@ export const alarmServiceFactory = ({resourceId: dto.resourceId});+ await $validateRecipients(dto.actorOrgId, dto.projectId, dto.recipients);+const { encryptor } = await getAlarmChannelCipher(kmsService, {orgId: dto.actorOrgId,projectId: dto.projectId@@ -319,6 +399,8 @@ export const alarmServiceFactory = ({}});+ if (dto.recipients) await $validateRecipients(alarm.orgId, alarm.projectId, dto.recipients);+const { encryptor } = await getAlarmChannelCipher(kmsService, {orgId: alarm.orgId,projectId: alarm.projectIddiff --git a/backend/src/services/alarm/alarm-types.ts b/backend/src/services/alarm/alarm-types.tsindex 99a63d3185..0acaa5ce8b 100644--- a/backend/src/services/alarm/alarm-types.ts+++ b/backend/src/services/alarm/alarm-types.ts@@ -8,7 +8,6 @@ import { TAlarmPayload } from "./alarm-channel-types";export enum AlarmPrincipalType {USER = "user",GROUP = "group",- ROLE = "role",EMAIL = "email"}diff --git a/frontend/src/hooks/api/alarms/index.ts b/frontend/src/hooks/api/alarms/index.tsnew file mode 100644index 0000000000..177955438b--- /dev/null+++ b/frontend/src/hooks/api/alarms/index.ts@@ -0,0 +1,3 @@+export * from "./mutations";+export * from "./queries";+export * from "./types";diff --git a/frontend/src/hooks/api/alarms/mutations.ts b/frontend/src/hooks/api/alarms/mutations.tsnew file mode 100644index 0000000000..8165452556--- /dev/null+++ b/frontend/src/hooks/api/alarms/mutations.ts@@ -0,0 +1,52 @@+import { useMutation, useQueryClient } from "@tanstack/react-query";++import { apiRequest } from "@app/config/request";++import { alarmKeys } from "./queries";+import { TAlarm, TCreateAlarmDTO, TDeleteAlarmDTO, TUpdateAlarmDTO } from "./types";++export const useCreateAlarm = () => {+ const queryClient = useQueryClient();++ return useMutation<TAlarm, unknown, TCreateAlarmDTO>({+ mutationFn: async (dto) => {+ const { data } = await apiRequest.post<{ alarm: TAlarm }>("/api/v1/alarms", dto);+ return data.alarm;+ },+ onSuccess: () => {+ queryClient.invalidateQueries({ queryKey: alarmKeys.all });+ }+ });+};++export const useUpdateAlarm = () => {+ const queryClient = useQueryClient();++ return useMutation<TAlarm, unknown, TUpdateAlarmDTO>({+ mutationFn: async ({ alarmId, projectId, ...body }) => {+ const { data } = await apiRequest.patch<{ alarm: TAlarm }>(`/api/v1/alarms/${alarmId}`, body);+ return data.alarm;+ },+ onSuccess: (_, { alarmId }) => {+ queryClient.invalidateQueries({ queryKey: alarmKeys.all });+ queryClient.invalidateQueries({ queryKey: alarmKeys.byId(alarmId) });+ }+ });+};++export const useDeleteAlarm = () => {+ const queryClient = useQueryClient();++ return useMutation<{ id: string }, unknown, TDeleteAlarmDTO>({+ mutationFn: async ({ alarmId }) => {+ const { data } = await apiRequest.delete<{ alarm: { id: string } }>(+ `/api/v1/alarms/${alarmId}`+ );+ return data.alarm;+ },+ onSuccess: (_, { alarmId }) => {+ queryClient.invalidateQueries({ queryKey: alarmKeys.all });+ queryClient.removeQueries({ queryKey: alarmKeys.byId(alarmId) });+ }+ });+};diff --git a/frontend/src/hooks/api/alarms/queries.ts b/frontend/src/hooks/api/alarms/queries.tsnew file mode 100644index 0000000000..3bf60c4fde--- /dev/null+++ b/frontend/src/hooks/api/alarms/queries.ts@@ -0,0 +1,50 @@+import { useQuery, UseQueryOptions } from "@tanstack/react-query";++import { apiRequest } from "@app/config/request";++import { TAlarm, TListAlarmsDTO } from "./types";++export const alarmKeys = {+ all: ["alarms"] as const,+ list: (filters: TListAlarmsDTO) => [...alarmKeys.all, "list", filters] as const,+ byId: (alarmId: string) => [...alarmKeys.all, alarmId] as const+};++const fetchAlarms = async (filters: TListAlarmsDTO) => {+ const { data } = await apiRequest.get<{ alarms: TAlarm[] }>("/api/v1/alarms", {+ params: filters+ });+ return data.alarms;+};++export const useListAlarms = (+ filters: TListAlarmsDTO,+ options?: Omit<+ UseQueryOptions<TAlarm[], unknown, TAlarm[], ReturnType<typeof alarmKeys.list>>,+ "queryKey" | "queryFn"+ >+) =>+ useQuery({+ queryKey: alarmKeys.list(filters),+ queryFn: () => fetchAlarms(filters),+ ...options+ });++const fetchAlarmById = async (alarmId: string) => {+ const { data } = await apiRequest.get<{ alarm: TAlarm }>(`/api/v1/alarms/${alarmId}`);+ return data.alarm;+};++export const useGetAlarmById = (+ alarmId: string,+ options?: Omit<+ UseQueryOptions<TAlarm, unknown, TAlarm, ReturnType<typeof alarmKeys.byId>>,+ "queryKey" | "queryFn"+ >+) =>+ useQuery({+ queryKey: alarmKeys.byId(alarmId),+ queryFn: () => fetchAlarmById(alarmId),+ enabled: Boolean(alarmId),+ ...options+ });diff --git a/frontend/src/hooks/api/alarms/types.ts b/frontend/src/hooks/api/alarms/types.tsnew file mode 100644index 0000000000..48188b9669--- /dev/null+++ b/frontend/src/hooks/api/alarms/types.ts@@ -0,0 +1,259 @@+import { z } from "zod";++// Resource types an alarm can attach to. Only identity credentials are supported for now.+export enum AlarmResourceType {+ IdentityCredential = "identity.credential"+}++// Events an alarm can fire on. Only expiration is supported for now.+export enum AlarmEventType {+ IdentityCredentialExpiry = "identity.credential.expiry"+}++export enum AlarmChannelType {+ Email = "email",+ Slack = "slack",+ Webhook = "webhook",+ PagerDuty = "pagerduty"+}++export enum AlarmPrincipalType {+ User = "user",+ Group = "group",+ Role = "role",+ Email = "email"+}++export enum AlarmRunStatus {+ Success = "success",+ Failed = "failed"+}++export enum AlarmTimeUnit {+ Days = "d",+ Weeks = "w",+ Months = "m",+ Years = "y"+}++export const ALARM_TIME_UNIT_LABELS: Record<AlarmTimeUnit, string> = {+ [AlarmTimeUnit.Days]: "days",+ [AlarmTimeUnit.Weeks]: "weeks",+ [AlarmTimeUnit.Months]: "months",+ [AlarmTimeUnit.Years]: "years"+};++export const ALARM_PRINCIPAL_TYPE_LABELS: Record<AlarmPrincipalType, string> = {+ [AlarmPrincipalType.Email]: "Email",+ [AlarmPrincipalType.User]: "User",+ [AlarmPrincipalType.Group]: "Group",+ [AlarmPrincipalType.Role]: "Role"+};++export const ALARM_RESOURCE_TYPE_LABELS: Record<AlarmResourceType, string> = {+ [AlarmResourceType.IdentityCredential]: "Identity Credential"+};++export const ALARM_EVENT_TYPE_LABELS: Record<AlarmEventType, string> = {+ [AlarmEventType.IdentityCredentialExpiry]: "Expiration"+};++export const ALARM_CHANNEL_TYPE_LABELS: Record<AlarmChannelType, string> = {+ [AlarmChannelType.Email]: "Email",+ [AlarmChannelType.Slack]: "Slack",+ [AlarmChannelType.Webhook]: "Webhook",+ [AlarmChannelType.PagerDuty]: "PagerDuty"+};++export type TAlarmRecipient = {+ principalType: AlarmPrincipalType;+ principalId: string;+};++export type TAlarmChannel = {+ id: string;+ channelType: AlarmChannelType;+ config: Record<string, unknown>;+ enabled: boolean;+ createdAt: string;+ updatedAt: string;+};++export type TAlarmLastRun = {+ timestamp: string;+ status: AlarmRunStatus;+ error: string | null;+};++export type TAlarm = {+ id: string;+ name: string;+ description: string | null;+ resourceType: string;+ resourceId: string | null;+ eventType: string;+ condition: { alertBefore?: string } | null;+ filters: unknown | null;+ enabled: boolean;+ orgId: string;+ projectId: string | null;+ recipients: TAlarmRecipient[];+ channels: TAlarmChannel[];+ lastRun: TAlarmLastRun | null;+ createdAt: string;+ updatedAt: string;+};++export type TListAlarmsDTO = {+ resourceType: string;+ projectId?: string;+ resourceId?: string;+ enabled?: boolean;+};++export type TAlarmChannelInput = {+ channelType: AlarmChannelType;+ config: Record<string, unknown>;+ enabled?: boolean;+};++export type TCreateAlarmDTO = {+ name: string;+ description?: string;+ resourceType: string;+ resourceId?: string | null;+ eventType: string;+ condition?: unknown;+ filters?: unknown;+ enabled?: boolean;+ projectId?: string | null;+ recipients: TAlarmRecipient[];+ channels: TAlarmChannelInput[];+};++export type TUpdateAlarmDTO = {+ alarmId: string;+ // Carried only so mutations can invalidate the right scope; not sent to the API.+ projectId?: string | null;+ name?: string;+ description?: string | null;+ condition?: unknown;+ filters?: unknown;+ enabled?: boolean;+ recipients?: TAlarmRecipient[];+ channels?: TAlarmChannelInput[];+};++export type TDeleteAlarmDTO = {+ alarmId: string;+ projectId?: string | null;+};++// --- Form schema (mirrors the PKI alert channel schemas) ---++// A recipient chosen in the form. `label` is display-only (not sent to the API); `principalId` is+// the user id, group id, role slug, or raw email address depending on `principalType`.+export const alarmRecipientFormSchema = z.object({+ principalType: z.nativeEnum(AlarmPrincipalType),+ principalId: z.string().min(1),+ label: z.string().optional()+});++export type TAlarmRecipientForm = z.infer<typeof alarmRecipientFormSchema>;++const emailChannelConfigSchema = z.object({+ recipients: z+ .array(alarmRecipientFormSchema)+ .min(1, "At least one recipient is required")+ .refine((recipients) => recipients.length <= 100, "Maximum 100 recipients allowed")+ .refine(+ (recipients) =>+ recipients+ .filter((recipient) => recipient.principalType === AlarmPrincipalType.Email)+ .every((recipient) => z.string().email().safeParse(recipient.principalId).success),+ "All email recipients must be valid email addresses"+ )+ .refine(+ (recipients) =>+ new Set(recipients.map((r) => `${r.principalType}:${r.principalId}`)).size ===+ recipients.length,+ "Duplicate recipients are not allowed"+ )+});++const slackChannelConfigSchema = z.object({+ webhookUrl: z+ .string()+ .url("Must be a valid URL")+ .refine((url) => url.startsWith("https://"), "Slack webhook URL must use HTTPS")+ .refine((url) => {+ try {+ return new URL(url).hostname === "hooks.slack.com";+ } catch {+ return false;+ }+ }, "Slack webhook URL must be from hooks.slack.com")+});++const webhookChannelConfigSchema = z.object({+ url: z+ .string()+ .url("Must be a valid URL")+ .refine((url) => url.startsWith("https://"), "Webhook URL must use HTTPS"),+ signingSecret: z.string().max(256).nullable().optional()+});++const pagerdutyChannelConfigSchema = z.object({+ integrationKey: z+ .string()+ .refine(+ (val) => /^[a-f0-9]{32}$/i.test(val),+ "Integration key must be a 32-character hex string"+ )+});++export const alarmChannelFormSchema = z.discriminatedUnion("channelType", [+ z.object({+ channelType: z.literal(AlarmChannelType.Email),+ config: emailChannelConfigSchema,+ enabled: z.boolean().default(true)+ }),+ z.object({+ channelType: z.literal(AlarmChannelType.Slack),+ config: slackChannelConfigSchema,+ enabled: z.boolean().default(true)+ }),+ z.object({+ channelType: z.literal(AlarmChannelType.Webhook),+ config: webhookChannelConfigSchema,+ enabled: z.boolean().default(true)+ }),+ z.object({+ channelType: z.literal(AlarmChannelType.PagerDuty),+ config: pagerdutyChannelConfigSchema,+ enabled: z.boolean().default(true)+ })+]);++export const alarmFormSchema = z.object({+ name: z.string().min(1, "Name is required").max(255),+ description: z.string().max(1000).optional(),+ resourceType: z.nativeEnum(AlarmResourceType),+ eventType: z.nativeEnum(AlarmEventType),+ alertBeforeValue: z+ .number({ invalid_type_error: "Enter a number" })+ .int("Must be a whole number")+ .min(1, "Must be at least 1")+ .max(3650, "Too large"),+ alertBeforeUnit: z.nativeEnum(AlarmTimeUnit),+ enabled: z.boolean().default(true),+ channels: z+ .array(alarmChannelFormSchema)+ .min(1, "At least one notification channel is required")+ .refine(+ (channels) => channels.some((channel) => channel.enabled),+ "At least one notification channel must be enabled"+ )+});++export type TAlarmForm = z.infer<typeof alarmFormSchema>;diff --git a/frontend/src/hooks/api/index.tsx b/frontend/src/hooks/api/index.tsxindex 288588ed20..cf1f4a9438 100644--- a/frontend/src/hooks/api/index.tsx+++ b/frontend/src/hooks/api/index.tsx@@ -4,6 +4,7 @@ export * from "./admin";export * from "./aiMcpActivityLogs";export * from "./aiMcpEndpoints";export * from "./aiMcpServers";+export * from "./alarms";export * from "./approvalGrants";export * from "./approvalPolicies";export * from "./approvalRequests";diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/AINav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/AINav.tsxindex b9bb9edf9d..d024293a07 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/AINav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/AINav.tsx@@ -1,4 +1,4 @@-import { FileText, Settings, Shield, Terminal } from "lucide-react";+import { BellRing, FileText, Settings, Shield, Terminal } from "lucide-react";import { ProjectNavList } from "./ProjectNavLink";import { MCP_SUBMENU, PROJECT_ACCESS_CONTROL_SUBMENU } from "./submenus";@@ -14,6 +14,7 @@ export const AINav = ({ onSubmenuOpen }: { onSubmenuOpen: (submenu: Submenu) =>activeMatch: /\/groups\/|\/identities\/|\/members\/|\/roles\//,submenu: PROJECT_ACCESS_CONTROL_SUBMENU},+ { label: "Alarms", icon: BellRing, pathSuffix: "alarms" },{ label: "Audit Logs", icon: FileText, pathSuffix: "audit-logs" },{ label: "Settings", icon: Settings, pathSuffix: "settings" }];diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsxindex 860774c833..b9c3678a16 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsx@@ -2,6 +2,7 @@ import { useQuery } from "@tanstack/react-query";import { useLocation } from "@tanstack/react-router";import {Bell,+ BellRing,FileBadge,FileKey,FileText,@@ -193,6 +194,7 @@ export const CertManagerNav = ({pathSuffix: "access-management",activeMatch: /\/access-management|\/groups\/|\/identities\/|\/members\/|\/roles\//},+ { label: "Alarms", icon: BellRing, pathSuffix: "alarms" },{ label: "Audit Logs", icon: FileText, pathSuffix: "audit-logs" },{ label: "Settings", icon: Settings, pathSuffix: "settings" }];diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/KmsNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/KmsNav.tsxindex 2f376aead7..8c4f74d231 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/KmsNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/KmsNav.tsx@@ -1,4 +1,4 @@-import { FileText, Key, LayoutDashboard, Settings, Shield } from "lucide-react";+import { BellRing, FileText, Key, LayoutDashboard, Settings, Shield } from "lucide-react";import { ProjectNavList } from "./ProjectNavLink";import { PROJECT_ACCESS_CONTROL_SUBMENU } from "./submenus";@@ -15,6 +15,7 @@ export const KmsNav = ({ onSubmenuOpen }: { onSubmenuOpen: (submenu: Submenu) =>activeMatch: /\/groups\/|\/identities\/|\/members\/|\/roles\//,submenu: PROJECT_ACCESS_CONTROL_SUBMENU},+ { label: "Alarms", icon: BellRing, pathSuffix: "alarms" },{ label: "Audit Logs", icon: FileText, pathSuffix: "audit-logs" },{ label: "Settings", icon: Settings, pathSuffix: "settings" }];diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsxindex 4c548634b9..5c6573ecae 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsx@@ -1,7 +1,7 @@import { useEffect, useState } from "react";import { useLocation, useNavigate } from "@tanstack/react-router";import { AnimatePresence, motion } from "framer-motion";-import { Blocks, CreditCard, FileText, Settings, Shield } from "lucide-react";+import { BellRing, Blocks, CreditCard, FileText, Settings, Shield } from "lucide-react";import { OrgIcon, SidebarCollapsibleGroup, SubOrgIcon } from "@app/components/v3";import { useOrganization } from "@app/context";@@ -73,6 +73,7 @@ export const OrgNav = () => {pathSuffix: "billing",hidden: !isRootOrganization},+ { label: "Alarms", icon: BellRing, pathSuffix: "alarms" },{ label: "Audit Logs", icon: FileText, pathSuffix: "audit-logs" },{ label: "Settings", icon: Settings, pathSuffix: "settings", opensSubmenu: true }]diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/PamNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/PamNav.tsxindex 6e93364caf..eb1390dd2a 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/PamNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/PamNav.tsx@@ -1,4 +1,5 @@import {+ BellRing,ClipboardList,FileText,FolderOpen,@@ -63,7 +64,8 @@ export const PamNav = ({ onSubmenuOpen }: { onSubmenuOpen: (submenu: Submenu) =>icon: Shield,pathSuffix: "access-management",activeMatch: /\/access-management|\/groups\/|\/identities\/|\/members\/|\/roles\//- }+ },+ { label: "Alarms", icon: BellRing, pathSuffix: "alarms" }]: [])];diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SecretManagerNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SecretManagerNav.tsxindex ab8599dea8..02815dac56 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SecretManagerNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SecretManagerNav.tsx@@ -1,4 +1,12 @@-import { ActivityIcon, Blocks, BookCheck, FileText, Settings, Shield } from "lucide-react";+import {+ ActivityIcon,+ BellRing,+ Blocks,+ BookCheck,+ FileText,+ Settings,+ Shield+} from "lucide-react";import { ProjectIcon, SidebarCollapsibleGroup } from "@app/components/v3";@@ -48,6 +56,7 @@ export const SecretManagerNav = ({pathSuffix: "access-management",activeMatch: /\/groups\/|\/identities\/|\/members\/|\/roles\//},+ { label: "Alarms", icon: BellRing, pathSuffix: "alarms" },{ label: "Audit Logs", icon: FileText, pathSuffix: "audit-logs" },{ label: "Settings", icon: Settings, pathSuffix: "settings", submenu: SM_SETTINGS_SUBMENU }];diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SecretScanningNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SecretScanningNav.tsxindex e8e22e2424..3870f985d7 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SecretScanningNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SecretScanningNav.tsx@@ -1,4 +1,4 @@-import { Cable, Database, FileText, Search, Settings, Shield } from "lucide-react";+import { BellRing, Cable, Database, FileText, Search, Settings, Shield } from "lucide-react";import {ProjectPermissionSub,@@ -51,6 +51,7 @@ export const SecretScanningNav = ({activeMatch: /\/groups\/|\/identities\/|\/members\/|\/roles\//,submenu: PROJECT_ACCESS_CONTROL_SUBMENU},+ { label: "Alarms", icon: BellRing, pathSuffix: "alarms" },{ label: "Audit Logs", icon: FileText, pathSuffix: "audit-logs" },{label: "Settings",diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SshNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SshNav.tsxindex 2d632f111b..ef7f36bfd8 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SshNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/SshNav.tsx@@ -1,4 +1,4 @@-import { FileText, Server, Settings, Shield, ShieldCheck } from "lucide-react";+import { BellRing, FileText, Server, Settings, Shield, ShieldCheck } from "lucide-react";import { ProjectPermissionCan } from "@app/components/permissions";import { SidebarMenu } from "@app/components/v3";@@ -25,6 +25,7 @@ export const SshNav = ({ onSubmenuOpen }: { onSubmenuOpen: (submenu: Submenu) =>activeMatch: /\/groups\/|\/identities\/|\/members\/|\/roles\//,submenu: PROJECT_ACCESS_CONTROL_SUBMENU},+ { label: "Alarms", icon: BellRing, pathSuffix: "alarms" },{ label: "Audit Logs", icon: FileText, pathSuffix: "audit-logs" },{ label: "Settings", icon: Settings, pathSuffix: "settings" }];diff --git a/frontend/src/pages/organization/AlarmsPage/AlarmsPage.tsx b/frontend/src/pages/organization/AlarmsPage/AlarmsPage.tsxnew file mode 100644index 0000000000..f8996f18c8--- /dev/null+++ b/frontend/src/pages/organization/AlarmsPage/AlarmsPage.tsx@@ -0,0 +1,9 @@+import { OrgPermissionSubjects } from "@app/context";+import { OrgPermissionIdentityActions } from "@app/context/OrgPermissionContext/types";+import { withPermission } from "@app/hoc";+import { AlarmsPage as AlarmsView } from "@app/views/AlarmsPage";++export const AlarmsPage = withPermission(() => <AlarmsView scope="org" />, {+ action: OrgPermissionIdentityActions.Read,+ subject: OrgPermissionSubjects.Identity+});diff --git a/frontend/src/pages/organization/AlarmsPage/index.tsx b/frontend/src/pages/organization/AlarmsPage/index.tsxnew file mode 100644index 0000000000..12bad38cad--- /dev/null+++ b/frontend/src/pages/organization/AlarmsPage/index.tsx@@ -0,0 +1 @@+export { AlarmsPage } from "./AlarmsPage";diff --git a/frontend/src/pages/organization/AlarmsPage/route.tsx b/frontend/src/pages/organization/AlarmsPage/route.tsxnew file mode 100644index 0000000000..5e7ed6a2ef--- /dev/null+++ b/frontend/src/pages/organization/AlarmsPage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";++import { AlarmsPage } from "./AlarmsPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/alarms"+)({+ component: AlarmsPage,+ context: () => ({+ breadcrumbs: [+ {+ label: "Alarms"+ }+ ]+ })+});diff --git a/frontend/src/pages/project/AlarmsPage/AlarmsPage.tsx b/frontend/src/pages/project/AlarmsPage/AlarmsPage.tsxnew file mode 100644index 0000000000..9382c6e571--- /dev/null+++ b/frontend/src/pages/project/AlarmsPage/AlarmsPage.tsx@@ -0,0 +1,20 @@+import { ProjectPermissionSub, useProject } from "@app/context";+import { ProjectPermissionIdentityActions } from "@app/context/ProjectPermissionContext/types";+import { withProjectPermission } from "@app/hoc";+import { AlarmsPage as AlarmsView } from "@app/views/AlarmsPage";++const ProjectAlarmsPage = () => {+ const { currentProject } = useProject();+ return (+ <AlarmsView+ projectId={currentProject.id}+ scopeName={currentProject.name}+ scope={currentProject.type}+ />+ );+};++export const AlarmsPage = withProjectPermission(ProjectAlarmsPage, {+ action: ProjectPermissionIdentityActions.Read,+ subject: ProjectPermissionSub.Identity+});diff --git a/frontend/src/pages/project/AlarmsPage/index.tsx b/frontend/src/pages/project/AlarmsPage/index.tsxnew file mode 100644index 0000000000..12bad38cad--- /dev/null+++ b/frontend/src/pages/project/AlarmsPage/index.tsx@@ -0,0 +1 @@+export { AlarmsPage } from "./AlarmsPage";diff --git a/frontend/src/pages/project/AlarmsPage/route-ai.tsx b/frontend/src/pages/project/AlarmsPage/route-ai.tsxnew file mode 100644index 0000000000..9cf248ee94--- /dev/null+++ b/frontend/src/pages/project/AlarmsPage/route-ai.tsx@@ -0,0 +1,19 @@+import { createFileRoute } from "@tanstack/react-router";++import { AlarmsPage } from "./AlarmsPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/alarms"+)({+ component: AlarmsPage,+ beforeLoad: ({ context }) => {+ return {+ breadcrumbs: [+ ...context.breadcrumbs,+ {+ label: "Alarms"+ }+ ]+ };+ }+});diff --git a/frontend/src/pages/project/AlarmsPage/route-cert-manager.tsx b/frontend/src/pages/project/AlarmsPage/route-cert-manager.tsxnew file mode 100644index 0000000000..b58e1a625c--- /dev/null+++ b/frontend/src/pages/project/AlarmsPage/route-cert-manager.tsx@@ -0,0 +1,19 @@+import { createFileRoute } from "@tanstack/react-router";++import { AlarmsPage } from "./AlarmsPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/alarms"+)({+ component: AlarmsPage,+ beforeLoad: ({ context }) => {+ return {+ breadcrumbs: [+ ...context.breadcrumbs,+ {+ label: "Alarms"+ }+ ]+ };+ }+});diff --git a/frontend/src/pages/project/AlarmsPage/route-kms.tsx b/frontend/src/pages/project/AlarmsPage/route-kms.tsxnew file mode 100644index 0000000000..c75344cfc7--- /dev/null+++ b/frontend/src/pages/project/AlarmsPage/route-kms.tsx@@ -0,0 +1,19 @@+import { createFileRoute } from "@tanstack/react-router";++import { AlarmsPage } from "./AlarmsPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/alarms"+)({+ component: AlarmsPage,+ beforeLoad: ({ context }) => {+ return {+ breadcrumbs: [+ ...context.breadcrumbs,+ {+ label: "Alarms"+ }+ ]+ };+ }+});diff --git a/frontend/src/pages/project/AlarmsPage/route-pam.tsx b/frontend/src/pages/project/AlarmsPage/route-pam.tsxnew file mode 100644index 0000000000..512ceaa546--- /dev/null+++ b/frontend/src/pages/project/AlarmsPage/route-pam.tsx@@ -0,0 +1,19 @@+import { createFileRoute } from "@tanstack/react-router";++import { AlarmsPage } from "./AlarmsPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/alarms"+)({+ component: AlarmsPage,+ beforeLoad: ({ context }) => {+ return {+ breadcrumbs: [+ ...context.breadcrumbs,+ {+ label: "Alarms"+ }+ ]+ };+ }+});diff --git a/frontend/src/pages/project/AlarmsPage/route-secret-manager.tsx b/frontend/src/pages/project/AlarmsPage/route-secret-manager.tsxnew file mode 100644index 0000000000..ae4503ed2a--- /dev/null+++ b/frontend/src/pages/project/AlarmsPage/route-secret-manager.tsx@@ -0,0 +1,19 @@+import { createFileRoute } from "@tanstack/react-router";++import { AlarmsPage } from "./AlarmsPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/alarms"+)({+ component: AlarmsPage,+ beforeLoad: ({ context }) => {+ return {+ breadcrumbs: [+ ...context.breadcrumbs,+ {+ label: "Alarms"+ }+ ]+ };+ }+});diff --git a/frontend/src/pages/project/AlarmsPage/route-secret-scanning.tsx b/frontend/src/pages/project/AlarmsPage/route-secret-scanning.tsxnew file mode 100644index 0000000000..8c88d1e898--- /dev/null+++ b/frontend/src/pages/project/AlarmsPage/route-secret-scanning.tsx@@ -0,0 +1,19 @@+import { createFileRoute } from "@tanstack/react-router";++import { AlarmsPage } from "./AlarmsPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/alarms"+)({+ component: AlarmsPage,+ beforeLoad: ({ context }) => {+ return {+ breadcrumbs: [+ ...context.breadcrumbs,+ {+ label: "Alarms"+ }+ ]+ };+ }+});diff --git a/frontend/src/pages/project/AlarmsPage/route-ssh.tsx b/frontend/src/pages/project/AlarmsPage/route-ssh.tsxnew file mode 100644index 0000000000..66b122b2f0--- /dev/null+++ b/frontend/src/pages/project/AlarmsPage/route-ssh.tsx@@ -0,0 +1,19 @@+import { createFileRoute } from "@tanstack/react-router";++import { AlarmsPage } from "./AlarmsPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/alarms"+)({+ component: AlarmsPage,+ beforeLoad: ({ context }) => {+ return {+ breadcrumbs: [+ ...context.breadcrumbs,+ {+ label: "Alarms"+ }+ ]+ };+ }+});diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.tsindex 83f26a58d9..241fc9cd5a 100644--- a/frontend/src/routeTree.gen.ts+++ b/frontend/src/routeTree.gen.ts@@ -60,6 +60,7 @@ import { Route as organizationOauthApplicationsPageRouteImport } from './pages/oimport { Route as organizationIntegrationsPageRouteImport } from './pages/organization/IntegrationsPage/route'import { Route as organizationBillingPageRouteImport } from './pages/organization/BillingPage/route'import { Route as organizationAuditLogsPageRouteImport } from './pages/organization/AuditLogsPage/route'+import { Route as organizationAlarmsPageRouteImport } from './pages/organization/AlarmsPage/route'import { Route as organizationAccessManagementPageRouteImport } from './pages/organization/AccessManagementPage/route'import { Route as redirectsGithubManifestCallbackRedirectImport } from './pages/redirects/github-manifest-callback-redirect'import { Route as redirectsOauthCallbackRedirectImport } from './pages/redirects/oauth-callback-redirect'@@ -83,6 +84,7 @@ import { Route as organizationNetworkingPageRouteImport } from './pages/organizaimport { Route as organizationAppConnectionsAppConnectionsPageRouteImport } from './pages/organization/AppConnections/AppConnectionsPage/route'import { Route as secretManagerRedirectsRedirectApprovalPageImport } from './pages/secret-manager/redirects/redirect-approval-page'import { Route as projectAuditLogsPageRoutePamImport } from './pages/project/AuditLogsPage/route-pam'+import { Route as projectAlarmsPageRoutePamImport } from './pages/project/AlarmsPage/route-pam'import { Route as projectAccessControlPageRoutePamImport } from './pages/project/AccessControlPage/route-pam'import { Route as organizationSettingsPageOauthCallbackPageRouteImport } from './pages/organization/SettingsPage/OauthCallbackPage/route'import { Route as pamPamTemplatesPageRouteImport } from './pages/pam/PamTemplatesPage/route'@@ -111,19 +113,25 @@ import { Route as organizationProductSettingsPageSecretsManagementRouteImport }import { Route as organizationKmipServersPageRouteImport } from './pages/organization/KmipServersPage/route'import { Route as pamPamAccessPageRouteImport } from './pages/pam/PamAccessPage/route'import { Route as projectAuditLogsPageRouteSshImport } from './pages/project/AuditLogsPage/route-ssh'+import { Route as projectAlarmsPageRouteSshImport } from './pages/project/AlarmsPage/route-ssh'import { Route as projectAccessControlPageRouteSshImport } from './pages/project/AccessControlPage/route-ssh'import { Route as projectAuditLogsPageRouteSecretScanningImport } from './pages/project/AuditLogsPage/route-secret-scanning'import { Route as projectAppConnectionsPageRouteSecretScanningImport } from './pages/project/AppConnectionsPage/route-secret-scanning'+import { Route as projectAlarmsPageRouteSecretScanningImport } from './pages/project/AlarmsPage/route-secret-scanning'import { Route as projectAccessControlPageRouteSecretScanningImport } from './pages/project/AccessControlPage/route-secret-scanning'import { Route as projectAuditLogsPageRouteSecretManagerImport } from './pages/project/AuditLogsPage/route-secret-manager'import { Route as projectAppConnectionsPageRouteSecretManagerImport } from './pages/project/AppConnectionsPage/route-secret-manager'+import { Route as projectAlarmsPageRouteSecretManagerImport } from './pages/project/AlarmsPage/route-secret-manager'import { Route as projectAccessControlPageRouteSecretManagerImport } from './pages/project/AccessControlPage/route-secret-manager'import { Route as projectAuditLogsPageRouteKmsImport } from './pages/project/AuditLogsPage/route-kms'+import { Route as projectAlarmsPageRouteKmsImport } from './pages/project/AlarmsPage/route-kms'import { Route as projectAccessControlPageRouteKmsImport } from './pages/project/AccessControlPage/route-kms'import { Route as projectAuditLogsPageRouteCertManagerImport } from './pages/project/AuditLogsPage/route-cert-manager'import { Route as projectAppConnectionsPageRouteCertManagerImport } from './pages/project/AppConnectionsPage/route-cert-manager'+import { Route as projectAlarmsPageRouteCertManagerImport } from './pages/project/AlarmsPage/route-cert-manager'import { Route as projectAccessControlPageRouteCertManagerImport } from './pages/project/AccessControlPage/route-cert-manager'import { Route as projectAuditLogsPageRouteAiImport } from './pages/project/AuditLogsPage/route-ai'+import { Route as projectAlarmsPageRouteAiImport } from './pages/project/AlarmsPage/route-ai'import { Route as projectAccessControlPageRouteAiImport } from './pages/project/AccessControlPage/route-ai'import { Route as certManagerDashboardPageRouteIndexImport } from './pages/cert-manager/DashboardPage/route-index'import { Route as sshSettingsPageRouteImport } from './pages/ssh/SettingsPage/route'@@ -813,6 +821,14 @@ const organizationAuditLogsPageRouteRoute =AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdRoute,} as any)+const organizationAlarmsPageRouteRoute =+ organizationAlarmsPageRouteImport.update({+ id: '/alarms',+ path: '/alarms',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdRoute,+ } as any)+const organizationAccessManagementPageRouteRoute =organizationAccessManagementPageRouteImport.update({id: '/access-management',@@ -1084,6 +1100,12 @@ const projectAuditLogsPageRoutePamRoute =getParentRoute: () => pamLayoutRoute,} as any)+const projectAlarmsPageRoutePamRoute = projectAlarmsPageRoutePamImport.update({+ id: '/alarms',+ path: '/alarms',+ getParentRoute: () => pamLayoutRoute,+} as any)+const projectAccessControlPageRoutePamRoute =projectAccessControlPageRoutePamImport.update({id: '/access-management',@@ -1288,6 +1310,12 @@ const projectAuditLogsPageRouteSshRoute =getParentRoute: () => sshLayoutRoute,} as any)+const projectAlarmsPageRouteSshRoute = projectAlarmsPageRouteSshImport.update({+ id: '/alarms',+ path: '/alarms',+ getParentRoute: () => sshLayoutRoute,+} as any)+const projectAccessControlPageRouteSshRoute =projectAccessControlPageRouteSshImport.update({id: '/access-management',@@ -1318,6 +1346,13 @@ const projectAppConnectionsPageRouteSecretScanningRoute =getParentRoute: () => secretScanningLayoutRoute,} as any)+const projectAlarmsPageRouteSecretScanningRoute =+ projectAlarmsPageRouteSecretScanningImport.update({+ id: '/alarms',+ path: '/alarms',+ getParentRoute: () => secretScanningLayoutRoute,+ } as any)+const projectAccessControlPageRouteSecretScanningRoute =projectAccessControlPageRouteSecretScanningImport.update({id: '/access-management',@@ -1348,6 +1383,13 @@ const projectAppConnectionsPageRouteSecretManagerRoute =getParentRoute: () => secretManagerLayoutRoute,} as any)+const projectAlarmsPageRouteSecretManagerRoute =+ projectAlarmsPageRouteSecretManagerImport.update({+ id: '/alarms',+ path: '/alarms',+ getParentRoute: () => secretManagerLayoutRoute,+ } as any)+const projectAccessControlPageRouteSecretManagerRoute =projectAccessControlPageRouteSecretManagerImport.update({id: '/access-management',@@ -1362,6 +1404,12 @@ const projectAuditLogsPageRouteKmsRoute =getParentRoute: () => kmsLayoutRoute,} as any)+const projectAlarmsPageRouteKmsRoute = projectAlarmsPageRouteKmsImport.update({+ id: '/alarms',+ path: '/alarms',+ getParentRoute: () => kmsLayoutRoute,+} as any)+const projectAccessControlPageRouteKmsRoute =projectAccessControlPageRouteKmsImport.update({id: '/access-management',@@ -1464,6 +1512,13 @@ const projectAppConnectionsPageRouteCertManagerRoute =getParentRoute: () => certManagerLayoutRoute,} as any)+const projectAlarmsPageRouteCertManagerRoute =+ projectAlarmsPageRouteCertManagerImport.update({+ id: '/alarms',+ path: '/alarms',+ getParentRoute: () => certManagerLayoutRoute,+ } as any)+const projectAccessControlPageRouteCertManagerRoute =projectAccessControlPageRouteCertManagerImport.update({id: '/access-management',@@ -1478,6 +1533,12 @@ const projectAuditLogsPageRouteAiRoute =getParentRoute: () => aiLayoutRoute,} as any)+const projectAlarmsPageRouteAiRoute = projectAlarmsPageRouteAiImport.update({+ id: '/alarms',+ path: '/alarms',+ getParentRoute: () => aiLayoutRoute,+} as any)+const projectAccessControlPageRouteAiRoute =projectAccessControlPageRouteAiImport.update({id: '/access-management',@@ -3039,6 +3100,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof organizationAccessManagementPageRouteImportparentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/alarms': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/alarms'+ path: '/alarms'+ fullPath: '/organizations/$orgId/alarms'+ preLoaderRoute: typeof organizationAlarmsPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/audit-logs': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/audit-logs'path: '/audit-logs'@@ -3347,6 +3415,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectAccessControlPageRoutePamImportparentRoute: typeof pamLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/alarms': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/alarms'+ path: '/alarms'+ fullPath: '/organizations/$orgId/pam/alarms'+ preLoaderRoute: typeof projectAlarmsPageRoutePamImport+ parentRoute: typeof pamLayoutImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/audit-logs': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/audit-logs'path: '/audit-logs'@@ -3732,6 +3807,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectAccessControlPageRouteAiImportparentRoute: typeof aiLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/alarms': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/alarms'+ path: '/alarms'+ fullPath: '/organizations/$orgId/projects/ai/$projectId/alarms'+ preLoaderRoute: typeof projectAlarmsPageRouteAiImport+ parentRoute: typeof aiLayoutImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs'path: '/audit-logs'@@ -3746,6 +3828,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectAccessControlPageRouteCertManagerImportparentRoute: typeof certManagerLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/alarms': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/alarms'+ path: '/alarms'+ fullPath: '/organizations/$orgId/projects/cert-manager/$projectId/alarms'+ preLoaderRoute: typeof projectAlarmsPageRouteCertManagerImport+ parentRoute: typeof certManagerLayoutImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/app-connections': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/app-connections'path: '/app-connections'@@ -3830,6 +3919,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectAccessControlPageRouteKmsImportparentRoute: typeof kmsLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/alarms': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/alarms'+ path: '/alarms'+ fullPath: '/organizations/$orgId/projects/kms/$projectId/alarms'+ preLoaderRoute: typeof projectAlarmsPageRouteKmsImport+ parentRoute: typeof kmsLayoutImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/audit-logs': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/audit-logs'path: '/audit-logs'@@ -3844,6 +3940,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectAccessControlPageRouteSecretManagerImportparentRoute: typeof secretManagerLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/alarms': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/alarms'+ path: '/alarms'+ fullPath: '/organizations/$orgId/projects/secret-management/$projectId/alarms'+ preLoaderRoute: typeof projectAlarmsPageRouteSecretManagerImport+ parentRoute: typeof secretManagerLayoutImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/app-connections': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/app-connections'path: '/app-connections'@@ -3872,6 +3975,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectAccessControlPageRouteSecretScanningImportparentRoute: typeof secretScanningLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/alarms': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/alarms'+ path: '/alarms'+ fullPath: '/organizations/$orgId/projects/secret-scanning/$projectId/alarms'+ preLoaderRoute: typeof projectAlarmsPageRouteSecretScanningImport+ parentRoute: typeof secretScanningLayoutImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/app-connections': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/app-connections'path: '/app-connections'@@ -3900,6 +4010,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectAccessControlPageRouteSshImportparentRoute: typeof sshLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/alarms': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/alarms'+ path: '/alarms'+ fullPath: '/organizations/$orgId/projects/ssh/$projectId/alarms'+ preLoaderRoute: typeof projectAlarmsPageRouteSshImport+ parentRoute: typeof sshLayoutImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/audit-logs': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/audit-logs'path: '/audit-logs'@@ -4907,6 +5024,7 @@ interface aiLayoutRouteChildren {aiMCPPageRouteRoute: typeof aiMCPPageRouteRouteaiSettingsPageRouteRoute: typeof aiSettingsPageRouteRouteprojectAccessControlPageRouteAiRoute: typeof projectAccessControlPageRouteAiRoute+ projectAlarmsPageRouteAiRoute: typeof projectAlarmsPageRouteAiRouteprojectAuditLogsPageRouteAiRoute: typeof projectAuditLogsPageRouteAiRouteaiMCPEndpointDetailPageRouteRoute: typeof aiMCPEndpointDetailPageRouteRouteaiMCPServerDetailPageRouteRoute: typeof aiMCPServerDetailPageRouteRoute@@ -4920,6 +5038,7 @@ const aiLayoutRouteChildren: aiLayoutRouteChildren = {aiMCPPageRouteRoute: aiMCPPageRouteRoute,aiSettingsPageRouteRoute: aiSettingsPageRouteRoute,projectAccessControlPageRouteAiRoute: projectAccessControlPageRouteAiRoute,+ projectAlarmsPageRouteAiRoute: projectAlarmsPageRouteAiRoute,projectAuditLogsPageRouteAiRoute: projectAuditLogsPageRouteAiRoute,aiMCPEndpointDetailPageRouteRoute: aiMCPEndpointDetailPageRouteRoute,aiMCPServerDetailPageRouteRoute: aiMCPServerDetailPageRouteRoute,@@ -5120,6 +5239,7 @@ interface certManagerLayoutRouteChildren {certManagerSettingsPageRouteRoute: typeof certManagerSettingsPageRouteRoutecertManagerDashboardPageRouteIndexRoute: typeof certManagerDashboardPageRouteIndexRouteprojectAccessControlPageRouteCertManagerRoute: typeof projectAccessControlPageRouteCertManagerRoute+ projectAlarmsPageRouteCertManagerRoute: typeof projectAlarmsPageRouteCertManagerRouteprojectAppConnectionsPageRouteCertManagerRoute: typeof projectAppConnectionsPageRouteCertManagerRouteAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutApplicationsRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutApplicationsRouteWithChildrenAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutApprovalsRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutApprovalsRouteWithChildren@@ -5154,6 +5274,8 @@ const certManagerLayoutRouteChildren: certManagerLayoutRouteChildren = {certManagerDashboardPageRouteIndexRoute,projectAccessControlPageRouteCertManagerRoute:projectAccessControlPageRouteCertManagerRoute,+ projectAlarmsPageRouteCertManagerRoute:+ projectAlarmsPageRouteCertManagerRoute,projectAppConnectionsPageRouteCertManagerRoute:projectAppConnectionsPageRouteCertManagerRoute,AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutApplicationsRoute:@@ -5216,6 +5338,7 @@ interface kmsLayoutRouteChildren {kmsOverviewPageRouteRoute: typeof kmsOverviewPageRouteRoutekmsSettingsPageRouteRoute: typeof kmsSettingsPageRouteRouteprojectAccessControlPageRouteKmsRoute: typeof projectAccessControlPageRouteKmsRoute+ projectAlarmsPageRouteKmsRoute: typeof projectAlarmsPageRouteKmsRouteprojectAuditLogsPageRouteKmsRoute: typeof projectAuditLogsPageRouteKmsRouteprojectGroupDetailsByIDPageRouteKmsRoute: typeof projectGroupDetailsByIDPageRouteKmsRouteprojectIdentityDetailsByIDPageRouteKmsRoute: typeof projectIdentityDetailsByIDPageRouteKmsRoute@@ -5228,6 +5351,7 @@ const kmsLayoutRouteChildren: kmsLayoutRouteChildren = {kmsOverviewPageRouteRoute: kmsOverviewPageRouteRoute,kmsSettingsPageRouteRoute: kmsSettingsPageRouteRoute,projectAccessControlPageRouteKmsRoute: projectAccessControlPageRouteKmsRoute,+ projectAlarmsPageRouteKmsRoute: projectAlarmsPageRouteKmsRoute,projectAuditLogsPageRouteKmsRoute: projectAuditLogsPageRouteKmsRoute,projectGroupDetailsByIDPageRouteKmsRoute:projectGroupDetailsByIDPageRouteKmsRoute,@@ -5563,6 +5687,7 @@ interface secretManagerLayoutRouteChildren {secretManagerOverviewPageRouteRoute: typeof secretManagerOverviewPageRouteRoutesecretManagerSettingsPageRouteRoute: typeof secretManagerSettingsPageRouteRouteprojectAccessControlPageRouteSecretManagerRoute: typeof projectAccessControlPageRouteSecretManagerRoute+ projectAlarmsPageRouteSecretManagerRoute: typeof projectAlarmsPageRouteSecretManagerRouteprojectAppConnectionsPageRouteSecretManagerRoute: typeof projectAppConnectionsPageRouteSecretManagerRouteprojectAuditLogsPageRouteSecretManagerRoute: typeof projectAuditLogsPageRouteSecretManagerRouteAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutIntegrationsRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutIntegrationsRouteWithChildren@@ -5584,6 +5709,8 @@ const secretManagerLayoutRouteChildren: secretManagerLayoutRouteChildren = {secretManagerSettingsPageRouteRoute: secretManagerSettingsPageRouteRoute,projectAccessControlPageRouteSecretManagerRoute:projectAccessControlPageRouteSecretManagerRoute,+ projectAlarmsPageRouteSecretManagerRoute:+ projectAlarmsPageRouteSecretManagerRoute,projectAppConnectionsPageRouteSecretManagerRoute:projectAppConnectionsPageRouteSecretManagerRoute,projectAuditLogsPageRouteSecretManagerRoute:@@ -5676,6 +5803,7 @@ interface secretScanningLayoutRouteChildren {secretScanningSecretScanningFindingsPageRouteRoute: typeof secretScanningSecretScanningFindingsPageRouteRoutesecretScanningSettingsPageRouteRoute: typeof secretScanningSettingsPageRouteRouteprojectAccessControlPageRouteSecretScanningRoute: typeof projectAccessControlPageRouteSecretScanningRoute+ projectAlarmsPageRouteSecretScanningRoute: typeof projectAlarmsPageRouteSecretScanningRouteprojectAppConnectionsPageRouteSecretScanningRoute: typeof projectAppConnectionsPageRouteSecretScanningRouteprojectAuditLogsPageRouteSecretScanningRoute: typeof projectAuditLogsPageRouteSecretScanningRouteAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretScanningProjectIdSecretScanningLayoutDataSourcesRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretScanningProjectIdSecretScanningLayoutDataSourcesRouteWithChildren@@ -5691,6 +5819,8 @@ const secretScanningLayoutRouteChildren: secretScanningLayoutRouteChildren = {secretScanningSettingsPageRouteRoute: secretScanningSettingsPageRouteRoute,projectAccessControlPageRouteSecretScanningRoute:projectAccessControlPageRouteSecretScanningRoute,+ projectAlarmsPageRouteSecretScanningRoute:+ projectAlarmsPageRouteSecretScanningRoute,projectAppConnectionsPageRouteSecretScanningRoute:projectAppConnectionsPageRouteSecretScanningRoute,projectAuditLogsPageRouteSecretScanningRoute:@@ -5730,6 +5860,7 @@ interface sshLayoutRouteChildren {sshSshHostsPageRouteRoute: typeof sshSshHostsPageRouteRoutesshSettingsPageRouteRoute: typeof sshSettingsPageRouteRouteprojectAccessControlPageRouteSshRoute: typeof projectAccessControlPageRouteSshRoute+ projectAlarmsPageRouteSshRoute: typeof projectAlarmsPageRouteSshRouteprojectAuditLogsPageRouteSshRoute: typeof projectAuditLogsPageRouteSshRoutesshSshCaByIDPageRouteRoute: typeof sshSshCaByIDPageRouteRoutesshSshHostGroupDetailsByIDPageRouteRoute: typeof sshSshHostGroupDetailsByIDPageRouteRoute@@ -5745,6 +5876,7 @@ const sshLayoutRouteChildren: sshLayoutRouteChildren = {sshSshHostsPageRouteRoute: sshSshHostsPageRouteRoute,sshSettingsPageRouteRoute: sshSettingsPageRouteRoute,projectAccessControlPageRouteSshRoute: projectAccessControlPageRouteSshRoute,+ projectAlarmsPageRouteSshRoute: projectAlarmsPageRouteSshRoute,projectAuditLogsPageRouteSshRoute: projectAuditLogsPageRouteSshRoute,sshSshCaByIDPageRouteRoute: sshSshCaByIDPageRouteRoute,sshSshHostGroupDetailsByIDPageRouteRoute:@@ -5882,6 +6014,7 @@ interface pamLayoutRouteChildren {pamPamTemplatesPageRouteRoute: typeof pamPamTemplatesPageRouteRouteAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdPamPamLayoutAccessRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdPamPamLayoutAccessRouteWithChildrenprojectAccessControlPageRoutePamRoute: typeof projectAccessControlPageRoutePamRoute+ projectAlarmsPageRoutePamRoute: typeof projectAlarmsPageRoutePamRouteprojectAuditLogsPageRoutePamRoute: typeof projectAuditLogsPageRoutePamRouteprojectGroupDetailsByIDPageRoutePamRoute: typeof projectGroupDetailsByIDPageRoutePamRouteprojectIdentityDetailsByIDPageRoutePamRoute: typeof projectIdentityDetailsByIDPageRoutePamRoute@@ -5898,6 +6031,7 @@ const pamLayoutRouteChildren: pamLayoutRouteChildren = {AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdPamPamLayoutAccessRoute:AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdPamPamLayoutAccessRouteWithChildren,projectAccessControlPageRoutePamRoute: projectAccessControlPageRoutePamRoute,+ projectAlarmsPageRoutePamRoute: projectAlarmsPageRoutePamRoute,projectAuditLogsPageRoutePamRoute: projectAuditLogsPageRoutePamRoute,projectGroupDetailsByIDPageRoutePamRoute:projectGroupDetailsByIDPageRoutePamRoute,@@ -5961,6 +6095,7 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretManagerProjecinterface AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdRouteChildren {organizationAccessManagementPageRouteRoute: typeof organizationAccessManagementPageRouteRoute+ organizationAlarmsPageRouteRoute: typeof organizationAlarmsPageRouteRouteorganizationAuditLogsPageRouteRoute: typeof organizationAuditLogsPageRouteRouteorganizationBillingPageRouteRoute: typeof organizationBillingPageRouteRouteorganizationIntegrationsPageRouteRoute: typeof organizationIntegrationsPageRouteRoute@@ -5983,6 +6118,7 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdRouteChildren: Auth{organizationAccessManagementPageRouteRoute:organizationAccessManagementPageRouteRoute,+ organizationAlarmsPageRouteRoute: organizationAlarmsPageRouteRoute,organizationAuditLogsPageRouteRoute: organizationAuditLogsPageRouteRoute,organizationBillingPageRouteRoute: organizationBillingPageRouteRoute,organizationIntegrationsPageRouteRoute:@@ -6267,6 +6403,7 @@ export interface FileRoutesByFullPath {'/admin/integrations': typeof adminIntegrationsPageRouteRoute'/organizations/$orgId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdRouteWithChildren'/organizations/$orgId/access-management': typeof organizationAccessManagementPageRouteRoute+ '/organizations/$orgId/alarms': typeof organizationAlarmsPageRouteRoute'/organizations/$orgId/audit-logs': typeof organizationAuditLogsPageRouteRoute'/organizations/$orgId/billing': typeof organizationBillingPageRouteRoute'/organizations/$orgId/integrations': typeof organizationIntegrationsPageRouteRoute@@ -6310,6 +6447,7 @@ export interface FileRoutesByFullPath {'/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute'/organizations/$orgId/pam/access': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdPamPamLayoutAccessRouteWithChildren'/organizations/$orgId/pam/access-management': typeof projectAccessControlPageRoutePamRoute+ '/organizations/$orgId/pam/alarms': typeof projectAlarmsPageRoutePamRoute'/organizations/$orgId/pam/audit-logs': typeof projectAuditLogsPageRoutePamRoute'/organizations/$orgId/projects/ai/$projectId': typeof aiLayoutRouteWithChildren'/organizations/$orgId/projects/cert-manager/$projectId': typeof certManagerLayoutRouteWithChildren@@ -6359,8 +6497,10 @@ export interface FileRoutesByFullPath {'/organizations/$orgId/projects/ssh/$projectId/settings': typeof sshSettingsPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/': typeof certManagerDashboardPageRouteIndexRoute'/organizations/$orgId/projects/ai/$projectId/access-management': typeof projectAccessControlPageRouteAiRoute+ '/organizations/$orgId/projects/ai/$projectId/alarms': typeof projectAlarmsPageRouteAiRoute'/organizations/$orgId/projects/ai/$projectId/audit-logs': typeof projectAuditLogsPageRouteAiRoute'/organizations/$orgId/projects/cert-manager/$projectId/access-management': typeof projectAccessControlPageRouteCertManagerRoute+ '/organizations/$orgId/projects/cert-manager/$projectId/alarms': typeof projectAlarmsPageRouteCertManagerRoute'/organizations/$orgId/projects/cert-manager/$projectId/app-connections': typeof projectAppConnectionsPageRouteCertManagerRoute'/organizations/$orgId/projects/cert-manager/$projectId/applications': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutApplicationsRouteWithChildren'/organizations/$orgId/projects/cert-manager/$projectId/approvals': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutApprovalsRouteWithChildren@@ -6373,16 +6513,20 @@ export interface FileRoutesByFullPath {'/organizations/$orgId/projects/cert-manager/$projectId/integrations': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutIntegrationsRouteWithChildren'/organizations/$orgId/projects/cert-manager/$projectId/subscribers': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutSubscribersRouteWithChildren'/organizations/$orgId/projects/kms/$projectId/access-management': typeof projectAccessControlPageRouteKmsRoute+ '/organizations/$orgId/projects/kms/$projectId/alarms': typeof projectAlarmsPageRouteKmsRoute'/organizations/$orgId/projects/kms/$projectId/audit-logs': typeof projectAuditLogsPageRouteKmsRoute'/organizations/$orgId/projects/secret-management/$projectId/access-management': typeof projectAccessControlPageRouteSecretManagerRoute+ '/organizations/$orgId/projects/secret-management/$projectId/alarms': typeof projectAlarmsPageRouteSecretManagerRoute'/organizations/$orgId/projects/secret-management/$projectId/app-connections': typeof projectAppConnectionsPageRouteSecretManagerRoute'/organizations/$orgId/projects/secret-management/$projectId/audit-logs': typeof projectAuditLogsPageRouteSecretManagerRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutIntegrationsRouteWithChildren'/organizations/$orgId/projects/secret-scanning/$projectId/access-management': typeof projectAccessControlPageRouteSecretScanningRoute+ '/organizations/$orgId/projects/secret-scanning/$projectId/alarms': typeof projectAlarmsPageRouteSecretScanningRoute'/organizations/$orgId/projects/secret-scanning/$projectId/app-connections': typeof projectAppConnectionsPageRouteSecretScanningRoute'/organizations/$orgId/projects/secret-scanning/$projectId/audit-logs': typeof projectAuditLogsPageRouteSecretScanningRoute'/organizations/$orgId/projects/secret-scanning/$projectId/data-sources': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretScanningProjectIdSecretScanningLayoutDataSourcesRouteWithChildren'/organizations/$orgId/projects/ssh/$projectId/access-management': typeof projectAccessControlPageRouteSshRoute+ '/organizations/$orgId/projects/ssh/$projectId/alarms': typeof projectAlarmsPageRouteSshRoute'/organizations/$orgId/projects/ssh/$projectId/audit-logs': typeof projectAuditLogsPageRouteSshRoute'/organizations/$orgId/projects/cert-manager/$projectId/applications/': typeof certManagerApplicationsPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/approvals/': typeof certManagerApprovalsPageRouteRoute@@ -6559,6 +6703,7 @@ export interface FileRoutesByTo {'/admin/integrations': typeof adminIntegrationsPageRouteRoute'/organizations/$orgId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdRouteWithChildren'/organizations/$orgId/access-management': typeof organizationAccessManagementPageRouteRoute+ '/organizations/$orgId/alarms': typeof organizationAlarmsPageRouteRoute'/organizations/$orgId/audit-logs': typeof organizationAuditLogsPageRouteRoute'/organizations/$orgId/billing': typeof organizationBillingPageRouteRoute'/organizations/$orgId/integrations': typeof organizationIntegrationsPageRouteRoute@@ -6598,6 +6743,7 @@ export interface FileRoutesByTo {'/organizations/$orgId/pam/templates': typeof pamPamTemplatesPageRouteRoute'/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute'/organizations/$orgId/pam/access-management': typeof projectAccessControlPageRoutePamRoute+ '/organizations/$orgId/pam/alarms': typeof projectAlarmsPageRoutePamRoute'/organizations/$orgId/pam/audit-logs': typeof projectAuditLogsPageRoutePamRoute'/organizations/$orgId/projects/ai/$projectId': typeof aiLayoutRouteWithChildren'/organizations/$orgId/projects/cert-manager/$projectId': typeof certManagerDashboardPageRouteIndexRoute@@ -6643,19 +6789,25 @@ export interface FileRoutesByTo {'/organizations/$orgId/projects/ssh/$projectId/overview': typeof sshSshHostsPageRouteRoute'/organizations/$orgId/projects/ssh/$projectId/settings': typeof sshSettingsPageRouteRoute'/organizations/$orgId/projects/ai/$projectId/access-management': typeof projectAccessControlPageRouteAiRoute+ '/organizations/$orgId/projects/ai/$projectId/alarms': typeof projectAlarmsPageRouteAiRoute'/organizations/$orgId/projects/ai/$projectId/audit-logs': typeof projectAuditLogsPageRouteAiRoute'/organizations/$orgId/projects/cert-manager/$projectId/access-management': typeof projectAccessControlPageRouteCertManagerRoute+ '/organizations/$orgId/projects/cert-manager/$projectId/alarms': typeof projectAlarmsPageRouteCertManagerRoute'/organizations/$orgId/projects/cert-manager/$projectId/app-connections': typeof projectAppConnectionsPageRouteCertManagerRoute'/organizations/$orgId/projects/cert-manager/$projectId/audit-logs': typeof projectAuditLogsPageRouteCertManagerRoute'/organizations/$orgId/projects/kms/$projectId/access-management': typeof projectAccessControlPageRouteKmsRoute+ '/organizations/$orgId/projects/kms/$projectId/alarms': typeof projectAlarmsPageRouteKmsRoute'/organizations/$orgId/projects/kms/$projectId/audit-logs': typeof projectAuditLogsPageRouteKmsRoute'/organizations/$orgId/projects/secret-management/$projectId/access-management': typeof projectAccessControlPageRouteSecretManagerRoute+ '/organizations/$orgId/projects/secret-management/$projectId/alarms': typeof projectAlarmsPageRouteSecretManagerRoute'/organizations/$orgId/projects/secret-management/$projectId/app-connections': typeof projectAppConnectionsPageRouteSecretManagerRoute'/organizations/$orgId/projects/secret-management/$projectId/audit-logs': typeof projectAuditLogsPageRouteSecretManagerRoute'/organizations/$orgId/projects/secret-scanning/$projectId/access-management': typeof projectAccessControlPageRouteSecretScanningRoute+ '/organizations/$orgId/projects/secret-scanning/$projectId/alarms': typeof projectAlarmsPageRouteSecretScanningRoute'/organizations/$orgId/projects/secret-scanning/$projectId/app-connections': typeof projectAppConnectionsPageRouteSecretScanningRoute'/organizations/$orgId/projects/secret-scanning/$projectId/audit-logs': typeof projectAuditLogsPageRouteSecretScanningRoute'/organizations/$orgId/projects/ssh/$projectId/access-management': typeof projectAccessControlPageRouteSshRoute+ '/organizations/$orgId/projects/ssh/$projectId/alarms': typeof projectAlarmsPageRouteSshRoute'/organizations/$orgId/projects/ssh/$projectId/audit-logs': typeof projectAuditLogsPageRouteSshRoute'/organizations/$orgId/projects/cert-manager/$projectId/applications': typeof certManagerApplicationsPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/approvals': typeof certManagerApprovalsPageRouteRoute@@ -6840,6 +6992,7 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/admin/_admin-layout/integrations': typeof adminIntegrationsPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/access-management': typeof organizationAccessManagementPageRouteRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/alarms': typeof organizationAlarmsPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/audit-logs': typeof organizationAuditLogsPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/billing': typeof organizationBillingPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/integrations': typeof organizationIntegrationsPageRouteRoute@@ -6884,6 +7037,7 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdPamPamLayoutAccessRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access-management': typeof projectAccessControlPageRoutePamRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/alarms': typeof projectAlarmsPageRoutePamRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/audit-logs': typeof projectAuditLogsPageRoutePamRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdRouteWithChildren@@ -6939,8 +7093,10 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/settings': typeof sshSettingsPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/': typeof certManagerDashboardPageRouteIndexRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/access-management': typeof projectAccessControlPageRouteAiRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/alarms': typeof projectAlarmsPageRouteAiRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs': typeof projectAuditLogsPageRouteAiRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/access-management': typeof projectAccessControlPageRouteCertManagerRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/alarms': typeof projectAlarmsPageRouteCertManagerRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/app-connections': typeof projectAppConnectionsPageRouteCertManagerRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/applications': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutApplicationsRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/approvals': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutApprovalsRouteWithChildren@@ -6953,16 +7109,20 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/integrations': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutIntegrationsRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutSubscribersRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/access-management': typeof projectAccessControlPageRouteKmsRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/alarms': typeof projectAlarmsPageRouteKmsRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/audit-logs': typeof projectAuditLogsPageRouteKmsRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/access-management': typeof projectAccessControlPageRouteSecretManagerRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/alarms': typeof projectAlarmsPageRouteSecretManagerRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/app-connections': typeof projectAppConnectionsPageRouteSecretManagerRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/audit-logs': typeof projectAuditLogsPageRouteSecretManagerRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutIntegrationsRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/access-management': typeof projectAccessControlPageRouteSecretScanningRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/alarms': typeof projectAlarmsPageRouteSecretScanningRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/app-connections': typeof projectAppConnectionsPageRouteSecretScanningRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/audit-logs': typeof projectAuditLogsPageRouteSecretScanningRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/data-sources': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretScanningProjectIdSecretScanningLayoutDataSourcesRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/access-management': typeof projectAccessControlPageRouteSshRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/alarms': typeof projectAlarmsPageRouteSshRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/audit-logs': typeof projectAuditLogsPageRouteSshRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/applications/': typeof certManagerApplicationsPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/approvals/': typeof certManagerApprovalsPageRouteRoute@@ -7145,6 +7305,7 @@ export interface FileRouteTypes {| '/admin/integrations'| '/organizations/$orgId'| '/organizations/$orgId/access-management'+ | '/organizations/$orgId/alarms'| '/organizations/$orgId/audit-logs'| '/organizations/$orgId/billing'| '/organizations/$orgId/integrations'@@ -7188,6 +7349,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/settings/oauth/callback'| '/organizations/$orgId/pam/access'| '/organizations/$orgId/pam/access-management'+ | '/organizations/$orgId/pam/alarms'| '/organizations/$orgId/pam/audit-logs'| '/organizations/$orgId/projects/ai/$projectId'| '/organizations/$orgId/projects/cert-manager/$projectId'@@ -7237,8 +7399,10 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/ssh/$projectId/settings'| '/organizations/$orgId/projects/cert-manager/$projectId/'| '/organizations/$orgId/projects/ai/$projectId/access-management'+ | '/organizations/$orgId/projects/ai/$projectId/alarms'| '/organizations/$orgId/projects/ai/$projectId/audit-logs'| '/organizations/$orgId/projects/cert-manager/$projectId/access-management'+ | '/organizations/$orgId/projects/cert-manager/$projectId/alarms'| '/organizations/$orgId/projects/cert-manager/$projectId/app-connections'| '/organizations/$orgId/projects/cert-manager/$projectId/applications'| '/organizations/$orgId/projects/cert-manager/$projectId/approvals'@@ -7251,16 +7415,20 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/cert-manager/$projectId/integrations'| '/organizations/$orgId/projects/cert-manager/$projectId/subscribers'| '/organizations/$orgId/projects/kms/$projectId/access-management'+ | '/organizations/$orgId/projects/kms/$projectId/alarms'| '/organizations/$orgId/projects/kms/$projectId/audit-logs'| '/organizations/$orgId/projects/secret-management/$projectId/access-management'+ | '/organizations/$orgId/projects/secret-management/$projectId/alarms'| '/organizations/$orgId/projects/secret-management/$projectId/app-connections'| '/organizations/$orgId/projects/secret-management/$projectId/audit-logs'| '/organizations/$orgId/projects/secret-management/$projectId/integrations'| '/organizations/$orgId/projects/secret-scanning/$projectId/access-management'+ | '/organizations/$orgId/projects/secret-scanning/$projectId/alarms'| '/organizations/$orgId/projects/secret-scanning/$projectId/app-connections'| '/organizations/$orgId/projects/secret-scanning/$projectId/audit-logs'| '/organizations/$orgId/projects/secret-scanning/$projectId/data-sources'| '/organizations/$orgId/projects/ssh/$projectId/access-management'+ | '/organizations/$orgId/projects/ssh/$projectId/alarms'| '/organizations/$orgId/projects/ssh/$projectId/audit-logs'| '/organizations/$orgId/projects/cert-manager/$projectId/applications/'| '/organizations/$orgId/projects/cert-manager/$projectId/approvals/'@@ -7436,6 +7604,7 @@ export interface FileRouteTypes {| '/admin/integrations'| '/organizations/$orgId'| '/organizations/$orgId/access-management'+ | '/organizations/$orgId/alarms'| '/organizations/$orgId/audit-logs'| '/organizations/$orgId/billing'| '/organizations/$orgId/integrations'@@ -7475,6 +7644,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/pam/templates'| '/organizations/$orgId/settings/oauth/callback'| '/organizations/$orgId/pam/access-management'+ | '/organizations/$orgId/pam/alarms'| '/organizations/$orgId/pam/audit-logs'| '/organizations/$orgId/projects/ai/$projectId'| '/organizations/$orgId/projects/cert-manager/$projectId'@@ -7520,19 +7690,25 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/ssh/$projectId/overview'| '/organizations/$orgId/projects/ssh/$projectId/settings'| '/organizations/$orgId/projects/ai/$projectId/access-management'+ | '/organizations/$orgId/projects/ai/$projectId/alarms'| '/organizations/$orgId/projects/ai/$projectId/audit-logs'| '/organizations/$orgId/projects/cert-manager/$projectId/access-management'+ | '/organizations/$orgId/projects/cert-manager/$projectId/alarms'| '/organizations/$orgId/projects/cert-manager/$projectId/app-connections'| '/organizations/$orgId/projects/cert-manager/$projectId/audit-logs'| '/organizations/$orgId/projects/kms/$projectId/access-management'+ | '/organizations/$orgId/projects/kms/$projectId/alarms'| '/organizations/$orgId/projects/kms/$projectId/audit-logs'| '/organizations/$orgId/projects/secret-management/$projectId/access-management'+ | '/organizations/$orgId/projects/secret-management/$projectId/alarms'| '/organizations/$orgId/projects/secret-management/$projectId/app-connections'| '/organizations/$orgId/projects/secret-management/$projectId/audit-logs'| '/organizations/$orgId/projects/secret-scanning/$projectId/access-management'+ | '/organizations/$orgId/projects/secret-scanning/$projectId/alarms'| '/organizations/$orgId/projects/secret-scanning/$projectId/app-connections'| '/organizations/$orgId/projects/secret-scanning/$projectId/audit-logs'| '/organizations/$orgId/projects/ssh/$projectId/access-management'+ | '/organizations/$orgId/projects/ssh/$projectId/alarms'| '/organizations/$orgId/projects/ssh/$projectId/audit-logs'| '/organizations/$orgId/projects/cert-manager/$projectId/applications'| '/organizations/$orgId/projects/cert-manager/$projectId/approvals'@@ -7715,6 +7891,7 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/admin/_admin-layout/integrations'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/access-management'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/alarms'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/audit-logs'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/billing'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/integrations'@@ -7759,6 +7936,7 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access-management'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/alarms'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/audit-logs'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId'@@ -7814,8 +7992,10 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/settings'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/access-management'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/alarms'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/access-management'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/alarms'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/app-connections'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/applications'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/approvals'@@ -7828,16 +8008,20 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/integrations'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/access-management'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/alarms'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/audit-logs'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/access-management'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/alarms'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/app-connections'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/audit-logs'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/access-management'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/alarms'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/app-connections'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/audit-logs'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/data-sources'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/access-management'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/alarms'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/audit-logs'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/applications/'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/approvals/'@@ -8263,6 +8447,7 @@ export const routeTree = rootRoute"parent": "/_authenticate/_inject-org-details/_org-layout","children": ["/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/access-management",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/alarms","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/audit-logs","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/billing","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/integrations",@@ -8285,6 +8470,10 @@ export const routeTree = rootRoute"filePath": "organization/AccessManagementPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/alarms": {+ "filePath": "organization/AlarmsPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/audit-logs": {"filePath": "organization/AuditLogsPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId"@@ -8445,6 +8634,7 @@ export const routeTree = rootRoute"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/templates","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access-management",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/alarms","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/audit-logs","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/groups/$groupId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/identities/$identityId",@@ -8510,6 +8700,10 @@ export const routeTree = rootRoute"filePath": "project/AccessControlPage/route-pam.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/alarms": {+ "filePath": "project/AlarmsPage/route-pam.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/audit-logs": {"filePath": "project/AuditLogsPage/route-pam.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout"@@ -8638,6 +8832,7 @@ export const routeTree = rootRoute"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/overview","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/settings","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/access-management",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/alarms","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/mcp-endpoints/$endpointId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/mcp-servers/$serverId",@@ -8660,6 +8855,7 @@ export const routeTree = rootRoute"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/settings","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/access-management",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/alarms","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/app-connections","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/applications","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/approvals",@@ -8689,6 +8885,7 @@ export const routeTree = rootRoute"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/overview","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/settings","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/access-management",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/alarms","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/audit-logs","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/groups/$groupId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/identities/$identityId",@@ -8706,6 +8903,7 @@ export const routeTree = rootRoute"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/overview","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/settings","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/access-management",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/alarms","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/app-connections","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/audit-logs","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations",@@ -8724,6 +8922,7 @@ export const routeTree = rootRoute"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/findings","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/settings","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/access-management",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/alarms","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/app-connections","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/audit-logs","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/data-sources",@@ -8742,6 +8941,7 @@ export const routeTree = rootRoute"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/overview","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/settings","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/access-management",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/alarms","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/audit-logs","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/ca/$caId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/ssh-host-groups/$sshHostGroupId",@@ -8855,6 +9055,10 @@ export const routeTree = rootRoute"filePath": "project/AccessControlPage/route-ai.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/alarms": {+ "filePath": "project/AlarmsPage/route-ai.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs": {"filePath": "project/AuditLogsPage/route-ai.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout"@@ -8863,6 +9067,10 @@ export const routeTree = rootRoute"filePath": "project/AccessControlPage/route-cert-manager.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/alarms": {+ "filePath": "project/AlarmsPage/route-cert-manager.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/app-connections": {"filePath": "project/AppConnectionsPage/route-cert-manager.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout"@@ -8947,6 +9155,10 @@ export const routeTree = rootRoute"filePath": "project/AccessControlPage/route-kms.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/alarms": {+ "filePath": "project/AlarmsPage/route-kms.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/audit-logs": {"filePath": "project/AuditLogsPage/route-kms.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout"@@ -8955,6 +9167,10 @@ export const routeTree = rootRoute"filePath": "project/AccessControlPage/route-secret-manager.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/alarms": {+ "filePath": "project/AlarmsPage/route-secret-manager.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/app-connections": {"filePath": "project/AppConnectionsPage/route-secret-manager.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout"@@ -9051,6 +9267,10 @@ export const routeTree = rootRoute"filePath": "project/AccessControlPage/route-secret-scanning.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/alarms": {+ "filePath": "project/AlarmsPage/route-secret-scanning.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/app-connections": {"filePath": "project/AppConnectionsPage/route-secret-scanning.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout"@@ -9071,6 +9291,10 @@ export const routeTree = rootRoute"filePath": "project/AccessControlPage/route-ssh.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/alarms": {+ "filePath": "project/AlarmsPage/route-ssh.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/audit-logs": {"filePath": "project/AuditLogsPage/route-ssh.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout"diff --git a/frontend/src/routes.ts b/frontend/src/routes.tsindex e6282b7b9b..a5889c897c 100644--- a/frontend/src/routes.ts+++ b/frontend/src/routes.ts@@ -35,6 +35,7 @@ const secretManagerRoutes = route("/organizations/$orgId/projects/secret-managem])]),route("/audit-logs", "project/AuditLogsPage/route-secret-manager.tsx"),+ route("/alarms", "project/AlarmsPage/route-secret-manager.tsx"),route("/access-management", "project/AccessControlPage/route-secret-manager.tsx"),route("/app-connections", "project/AppConnectionsPage/route-secret-manager.tsx"),route("/roles/$roleSlug", "project/RoleDetailsBySlugPage/route-secret-manager.tsx"),@@ -321,6 +322,7 @@ const certManagerRoutes = route("/organizations/$orgId/projects/cert-manager/$pr]),route("/settings", "cert-manager/SettingsPage/route.tsx"),route("/audit-logs", "project/AuditLogsPage/route-cert-manager.tsx"),+ route("/alarms", "project/AlarmsPage/route-cert-manager.tsx"),route("/access-management", "project/AccessControlPage/route-cert-manager.tsx"),route("/app-connections", "project/AppConnectionsPage/route-cert-manager.tsx"),route("/roles/$roleSlug", "project/RoleDetailsBySlugPage/route-cert-manager.tsx"),@@ -337,6 +339,7 @@ const aiRoutes = route("/organizations/$orgId/projects/ai/$projectId", [route("/overview", "ai/MCPPage/route.tsx"),route("/settings", "ai/SettingsPage/route.tsx"),route("/audit-logs", "project/AuditLogsPage/route-ai.tsx"),+ route("/alarms", "project/AlarmsPage/route-ai.tsx"),route("/access-management", "project/AccessControlPage/route-ai.tsx"),route("/roles/$roleSlug", "project/RoleDetailsBySlugPage/route-ai.tsx"),route("/identities/$identityId", "project/IdentityDetailsByIDPage/route-ai.tsx"),@@ -351,6 +354,7 @@ const kmsRoutes = route("/organizations/$orgId/projects/kms/$projectId", [route("/kmip", "kms/KmipPage/route.tsx"),route("/settings", "kms/SettingsPage/route.tsx"),route("/audit-logs", "project/AuditLogsPage/route-kms.tsx"),+ route("/alarms", "project/AlarmsPage/route-kms.tsx"),route("/access-management", "project/AccessControlPage/route-kms.tsx"),route("/roles/$roleSlug", "project/RoleDetailsBySlugPage/route-kms.tsx"),route("/identities/$identityId", "project/IdentityDetailsByIDPage/route-kms.tsx"),@@ -368,6 +372,7 @@ const sshRoutes = route("/organizations/$orgId/projects/ssh/$projectId", [route("/ssh-host-groups/$sshHostGroupId", "ssh/SshHostGroupDetailsByIDPage/route.tsx"),route("/settings", "ssh/SettingsPage/route.tsx"),route("/audit-logs", "project/AuditLogsPage/route-ssh.tsx"),+ route("/alarms", "project/AlarmsPage/route-ssh.tsx"),route("/access-management", "project/AccessControlPage/route-ssh.tsx"),route("/roles/$roleSlug", "project/RoleDetailsBySlugPage/route-ssh.tsx"),route("/identities/$identityId", "project/IdentityDetailsByIDPage/route-ssh.tsx"),@@ -385,6 +390,7 @@ const secretScanningRoutes = route("/organizations/$orgId/projects/secret-scanniroute("/findings", "secret-scanning/SecretScanningFindingsPage/route.tsx"),route("/settings", "secret-scanning/SettingsPage/route.tsx"),route("/audit-logs", "project/AuditLogsPage/route-secret-scanning.tsx"),+ route("/alarms", "project/AlarmsPage/route-secret-scanning.tsx"),route("/access-management", "project/AccessControlPage/route-secret-scanning.tsx"),route("/app-connections", "project/AppConnectionsPage/route-secret-scanning.tsx"),route("/roles/$roleSlug", "project/RoleDetailsBySlugPage/route-secret-scanning.tsx"),@@ -403,6 +409,7 @@ const pamRoutes = route("/organizations/$orgId/pam", [route("/sessions", "pam/PamSessionsPage/route.tsx"),route("/approval-requests", "pam/PamApprovalRequestsPage/route.tsx"),route("/audit-logs", "project/AuditLogsPage/route-pam.tsx"),+ route("/alarms", "project/AlarmsPage/route-pam.tsx"),// Access Managementroute("/access-management", "project/AccessControlPage/route-pam.tsx"),@@ -436,6 +443,7 @@ const organizationRoutes = route("/organizations/$orgId", [)]),route("/access-management", "organization/AccessManagementPage/route.tsx"),+ route("/alarms", "organization/AlarmsPage/route.tsx"),route("/audit-logs", "organization/AuditLogsPage/route.tsx"),route("/billing", "organization/BillingPage/route.tsx"),route("/secret-sharing", "organization/SecretSharingPage/SecretSharingRedirectRoute.tsx"),diff --git a/frontend/src/views/AlarmsPage/AlarmsPage.tsx b/frontend/src/views/AlarmsPage/AlarmsPage.tsxnew file mode 100644index 0000000000..2c3b2dd5d3--- /dev/null+++ b/frontend/src/views/AlarmsPage/AlarmsPage.tsx@@ -0,0 +1,35 @@+import { ComponentProps } from "react";+import { Helmet } from "react-helmet";+import { Bell } from "lucide-react";++import { PageHeader } from "@app/components/v2";++import { AlarmsTable } from "./components/AlarmsTable";++type Props = {+ projectId?: string;+ scopeName?: string;+ scope: ComponentProps<typeof PageHeader>["scope"];+};++export const AlarmsPage = ({ projectId, scopeName, scope }: Props) => {+ return (+ <div className="h-full bg-bunker-800">+ <Helmet>+ <title>Infisical | Alarms</title>+ <link rel="icon" href="/infisical.ico" />+ </Helmet>+ <div className="flex w-full justify-center bg-bunker-800 pb-6 text-white">+ <div className="w-full max-w-8xl">+ <PageHeader+ scope={scope}+ icon={Bell}+ title="Alarms"+ description="Route resource events to recipients over your channels. An alarm covers a bound resource, or every resource matching a filter."+ />+ <AlarmsTable projectId={projectId} scopeName={scopeName} />+ </div>+ </div>+ </div>+ );+};diff --git a/frontend/src/views/AlarmsPage/components/AddAlarmModal.tsx b/frontend/src/views/AlarmsPage/components/AddAlarmModal.tsxnew file mode 100644index 0000000000..6498803232--- /dev/null+++ b/frontend/src/views/AlarmsPage/components/AddAlarmModal.tsx@@ -0,0 +1,39 @@+import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "@app/components/v3";+import { TAlarm } from "@app/hooks/api/alarms";++import { AlarmForm } from "./AlarmForm";++type Props = {+ isOpen: boolean;+ onOpenChange: (isOpen: boolean) => void;+ projectId?: string;+ scopeName?: string;+ alarm?: TAlarm;+};++export const AddAlarmModal = ({ isOpen, onOpenChange, projectId, scopeName, alarm }: Props) => {+ const isEditing = Boolean(alarm);++ return (+ <Sheet open={isOpen} onOpenChange={onOpenChange}>+ <SheetContent className="flex h-full max-h-full flex-col gap-y-0 sm:max-w-2xl">+ <SheetHeader className="border-b">+ <SheetTitle>{isEditing ? "Edit Alarm" : "Add Alarm"}</SheetTitle>+ <SheetDescription>+ Route notifications when a resource event and condition are met.+ </SheetDescription>+ </SheetHeader>+ {isOpen && (+ <AlarmForm+ key={alarm?.id ?? "new"}+ projectId={projectId}+ scopeName={scopeName}+ alarm={alarm}+ onComplete={() => onOpenChange(false)}+ onCancel={() => onOpenChange(false)}+ />+ )}+ </SheetContent>+ </Sheet>+ );+};diff --git a/frontend/src/views/AlarmsPage/components/AlarmChannelsField.tsx b/frontend/src/views/AlarmsPage/components/AlarmChannelsField.tsxnew file mode 100644index 0000000000..f4f43d1636--- /dev/null+++ b/frontend/src/views/AlarmsPage/components/AlarmChannelsField.tsx@@ -0,0 +1,276 @@+import { Controller, useFieldArray, useFormContext } from "react-hook-form";+import {+ BellIcon,+ ChevronDownIcon,+ HashIcon,+ LinkIcon,+ MailIcon,+ PlusIcon,+ Trash2Icon+} from "lucide-react";++import {+ Button,+ Card,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+ Field,+ FieldContent,+ FieldDescription,+ FieldError,+ FieldLabel,+ IconButton,+ Input,+ Switch+} from "@app/components/v3";+import { useScopeVariant } from "@app/hooks";+import { ALARM_CHANNEL_TYPE_LABELS, AlarmChannelType, TAlarmForm } from "@app/hooks/api/alarms";++import { AlarmRecipientsField } from "./AlarmRecipientsField";++const MAX_CHANNELS = 10;++const CHANNEL_ICONS: Record<AlarmChannelType, typeof MailIcon> = {+ [AlarmChannelType.Email]: MailIcon,+ [AlarmChannelType.Slack]: HashIcon,+ [AlarmChannelType.Webhook]: LinkIcon,+ [AlarmChannelType.PagerDuty]: BellIcon+};++const getDefaultConfig = (type: AlarmChannelType): Record<string, unknown> => {+ switch (type) {+ case AlarmChannelType.Email:+ return { recipients: [] };+ case AlarmChannelType.Slack:+ return { webhookUrl: "" };+ case AlarmChannelType.Webhook:+ return { url: "", signingSecret: "" };+ case AlarmChannelType.PagerDuty:+ return { integrationKey: "" };+ default:+ return {};+ }+};++export const AlarmChannelsField = () => {+ const {+ control,+ watch,+ formState: { errors }+ } = useFormContext<TAlarmForm>();++ const { fields, append, remove } = useFieldArray({ control, name: "channels" });+ const scopeVariant = useScopeVariant();++ const channels = watch("channels");+ const hasEmailChannel = channels?.some(+ (channel) => channel.channelType === AlarmChannelType.Email+ );+ const isLimitReached = fields.length >= MAX_CHANNELS;++ const addChannel = (type: AlarmChannelType) => {+ append({ channelType: type, config: getDefaultConfig(type), enabled: true } as never);+ };++ const rootError = errors.channels?.message || errors.channels?.root?.message;++ return (+ <div className="flex flex-col gap-3">+ <div className="flex items-center justify-between">+ <div className="flex flex-col">+ <span className="text-sm text-mineshaft-100">Notification Channels</span>+ <span className="text-xs text-mineshaft-400">+ Where this alarm delivers when it fires.+ </span>+ </div>+ <DropdownMenu>+ <DropdownMenuTrigger asChild disabled={isLimitReached}>+ <Button type="button" variant="outline" size="sm" isDisabled={isLimitReached}>+ <PlusIcon className="size-4" />+ Add Channel+ <ChevronDownIcon className="size-4" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent+ align="end"+ sideOffset={4}+ className="min-w-[var(--radix-dropdown-menu-trigger-width)]"+ >+ <DropdownMenuItem+ isDisabled={hasEmailChannel}+ onClick={() => addChannel(AlarmChannelType.Email)}+ >+ <MailIcon />+ </DropdownMenuItem>+ <DropdownMenuItem onClick={() => addChannel(AlarmChannelType.Slack)}>+ <HashIcon />+ Slack+ </DropdownMenuItem>+ <DropdownMenuItem onClick={() => addChannel(AlarmChannelType.Webhook)}>+ <LinkIcon />+ Webhook+ </DropdownMenuItem>+ <DropdownMenuItem onClick={() => addChannel(AlarmChannelType.PagerDuty)}>+ <BellIcon />+ PagerDuty+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>++ {rootError && <p className="text-xs text-red-500">{rootError}</p>}++ {fields.length === 0 ? (+ <div className="rounded-lg border border-dashed border-border p-4 text-center text-sm text-muted">+ No channels added yet. Add at least one channel to receive notifications.+ </div>+ ) : (+ fields.map((field, index) => {+ const channelType = channels?.[index]?.channelType;+ const Icon = channelType ? CHANNEL_ICONS[channelType] : BellIcon;++ return (+ <Card key={field.id} className="gap-0 p-0">+ <div className="flex items-center justify-between border-b border-border px-4 py-3">+ <div className="flex items-center gap-2 text-sm text-foreground">+ <Icon className="size-4 text-muted" />+ {channelType ? ALARM_CHANNEL_TYPE_LABELS[channelType] : "Channel"}+ </div>+ <div className="flex items-center gap-3">+ <Controller+ control={control}+ name={`channels.${index}.enabled`}+ render={({ field: enabledField }) => (+ <Switch+ id={`channel-enabled-${field.id}`}+ size="sm"+ variant={scopeVariant}+ checked={enabledField.value}+ onCheckedChange={enabledField.onChange}+ />+ )}+ />+ <IconButton+ aria-label="Remove channel"+ variant="ghost"+ size="xs"+ onClick={() => remove(index)}+ >+ <Trash2Icon className="size-4" />+ </IconButton>+ </div>+ </div>++ <div className="p-4">+ {channelType === AlarmChannelType.Email && <AlarmRecipientsField index={index} />}++ {channelType === AlarmChannelType.Slack && (+ <Controller+ control={control}+ name={`channels.${index}.config.webhookUrl`}+ render={({ field: urlField, fieldState: { error } }) => (+ <Field>+ <FieldLabel>Slack Webhook URL</FieldLabel>+ <FieldContent>+ <Input+ placeholder="https://hooks.slack.com/services/..."+ isError={Boolean(error)}+ value={(urlField.value as string) ?? ""}+ onChange={urlField.onChange}+ onBlur={urlField.onBlur}+ />+ <FieldDescription>+ Create an Incoming Webhook in your Slack workspace settings.+ </FieldDescription>+ <FieldError errors={[error]} />+ </FieldContent>+ </Field>+ )}+ />+ )}++ {channelType === AlarmChannelType.Webhook && (+ <div className="flex flex-col gap-4">+ <Controller+ control={control}+ name={`channels.${index}.config.url`}+ render={({ field: urlField, fieldState: { error } }) => (+ <Field>+ <FieldLabel>Webhook URL</FieldLabel>+ <FieldContent>+ <Input+ placeholder="https://api.example.com/webhook"+ isError={Boolean(error)}+ value={(urlField.value as string) ?? ""}+ onChange={urlField.onChange}+ onBlur={urlField.onBlur}+ />+ <FieldError errors={[error]} />+ </FieldContent>+ </Field>+ )}+ />+ <Controller+ control={control}+ name={`channels.${index}.config.signingSecret`}+ render={({ field: secretField, fieldState: { error } }) => (+ <Field>+ <FieldLabel>+ Signing Secret <span className="text-mineshaft-400">(optional)</span>+ </FieldLabel>+ <FieldContent>+ <Input+ type="password"+ placeholder="Enter signing secret..."+ isError={Boolean(error)}+ value={(secretField.value as string) ?? ""}+ onChange={secretField.onChange}+ onBlur={secretField.onBlur}+ />+ <FieldDescription>+ Adds an x-infisical-signature header so receivers can verify payloads.+ Existing secrets are hidden; leave blank to keep the webhook unsigned.+ </FieldDescription>+ <FieldError errors={[error]} />+ </FieldContent>+ </Field>+ )}+ />+ </div>+ )}++ {channelType === AlarmChannelType.PagerDuty && (+ <Controller+ control={control}+ name={`channels.${index}.config.integrationKey`}+ render={({ field: keyField, fieldState: { error } }) => (+ <Field>+ <FieldLabel>Integration Key</FieldLabel>+ <FieldContent>+ <Input+ placeholder="32-character hex integration key"+ isError={Boolean(error)}+ value={(keyField.value as string) ?? ""}+ onChange={keyField.onChange}+ onBlur={keyField.onBlur}+ />+ <FieldDescription>+ Find this in PagerDuty under Services → Integrations → Events API v2.+ </FieldDescription>+ <FieldError errors={[error]} />+ </FieldContent>+ </Field>+ )}+ />+ )}+ </div>+ </Card>+ );+ })+ )}+ </div>+ );+};diff --git a/frontend/src/views/AlarmsPage/components/AlarmForm.tsx b/frontend/src/views/AlarmsPage/components/AlarmForm.tsxnew file mode 100644index 0000000000..6eb970208b--- /dev/null+++ b/frontend/src/views/AlarmsPage/components/AlarmForm.tsx@@ -0,0 +1,464 @@+import { Controller, FormProvider, useForm } from "react-hook-form";+import { zodResolver } from "@hookform/resolvers/zod";+import { KeyRoundIcon, LockIcon } from "lucide-react";++import { createNotification } from "@app/components/notifications";+import {+ Badge,+ Button,+ Card,+ Field,+ FieldContent,+ FieldError,+ FieldLabel,+ Input,+ OrgIcon,+ ProjectIcon,+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+ SheetFooter,+ SubOrgIcon,+ Switch,+ TextArea+} from "@app/components/v3";+import { useScopeVariant } from "@app/hooks";+import {+ ALARM_EVENT_TYPE_LABELS,+ ALARM_RESOURCE_TYPE_LABELS,+ ALARM_TIME_UNIT_LABELS,+ AlarmChannelType,+ AlarmEventType,+ alarmFormSchema,+ AlarmResourceType,+ AlarmTimeUnit,+ TAlarm,+ TAlarmChannelInput,+ TAlarmForm,+ TAlarmRecipient,+ useCreateAlarm,+ useUpdateAlarm+} from "@app/hooks/api/alarms";++import { AlarmChannelsField } from "./AlarmChannelsField";++const RESOURCE_TYPE_VALUE = AlarmResourceType.IdentityCredential;+const EVENT_TYPE_VALUE = AlarmEventType.IdentityCredentialExpiry;++type Props = {+ projectId?: string;+ scopeName?: string;+ alarm?: TAlarm;+ onComplete: () => void;+ onCancel: () => void;+};++const SectionHeader = ({ step, title }: { step: number; title: string }) => (+ <p className="text-xs font-semibold tracking-wider text-mineshaft-400 uppercase">+ {step} · {title}+ </p>+);++const parseAlertBefore = (alertBefore?: string): { value: number; unit: AlarmTimeUnit } => {+ const match = alertBefore?.match(/^(\d+)([dwmy])$/);+ if (match) return { value: parseInt(match[1], 10), unit: match[2] as AlarmTimeUnit };+ return { value: 7, unit: AlarmTimeUnit.Days };+};++const buildChannelsPayload = (channels: TAlarmForm["channels"]): TAlarmChannelInput[] =>+ channels.map((channel) => {+ switch (channel.channelType) {+ case AlarmChannelType.Slack:+ return {+ channelType: AlarmChannelType.Slack,+ config: { webhookUrl: channel.config.webhookUrl },+ enabled: channel.enabled+ };+ case AlarmChannelType.Webhook: {+ const config: Record<string, unknown> = { url: channel.config.url };+ if (channel.config.signingSecret) config.signingSecret = channel.config.signingSecret;+ return { channelType: AlarmChannelType.Webhook, config, enabled: channel.enabled };+ }+ case AlarmChannelType.PagerDuty:+ return {+ channelType: AlarmChannelType.PagerDuty,+ config: { integrationKey: channel.config.integrationKey },+ enabled: channel.enabled+ };+ case AlarmChannelType.Email:+ default:+ return { channelType: AlarmChannelType.Email, config: {}, enabled: channel.enabled };+ }+ });++const buildRecipientsPayload = (channels: TAlarmForm["channels"]): TAlarmRecipient[] => {+ const seen = new Set<string>();+ const recipients: TAlarmRecipient[] = [];+ channels.forEach((channel) => {+ if (channel.channelType === AlarmChannelType.Email) {+ channel.config.recipients.forEach(({ principalType, principalId }) => {+ const key = `${principalType}:${principalId}`;+ if (!seen.has(key)) {+ seen.add(key);+ recipients.push({ principalType, principalId });+ }+ });+ }+ });+ return recipients;+};++const buildFormDefaults = (alarm?: TAlarm): TAlarmForm => {+ if (!alarm) {+ return {+ name: "",+ description: "",+ resourceType: AlarmResourceType.IdentityCredential,+ eventType: AlarmEventType.IdentityCredentialExpiry,+ alertBeforeValue: 7,+ alertBeforeUnit: AlarmTimeUnit.Days,+ enabled: true,+ channels: []+ };+ }++ const emailRecipients = alarm.recipients.map((recipient) => ({+ principalType: recipient.principalType,+ principalId: recipient.principalId,+ label: recipient.principalId+ }));++ const channels = alarm.channels+ .map((channel) => {+ switch (channel.channelType) {+ case AlarmChannelType.Email:+ return {+ channelType: AlarmChannelType.Email,+ config: { recipients: emailRecipients },+ enabled: channel.enabled+ };+ case AlarmChannelType.Slack:+ return {+ channelType: AlarmChannelType.Slack,+ config: { webhookUrl: (channel.config.webhookUrl as string) ?? "" },+ enabled: channel.enabled+ };+ case AlarmChannelType.Webhook:+ return {+ channelType: AlarmChannelType.Webhook,+ // The signing secret is never returned by the API; leave blank on edit.+ config: { url: (channel.config.url as string) ?? "", signingSecret: "" },+ enabled: channel.enabled+ };+ case AlarmChannelType.PagerDuty:+ return {+ channelType: AlarmChannelType.PagerDuty,+ config: { integrationKey: (channel.config.integrationKey as string) ?? "" },+ enabled: channel.enabled+ };+ default:+ return null;+ }+ })+ .filter(Boolean) as TAlarmForm["channels"];++ const { value, unit } = parseAlertBefore(alarm.condition?.alertBefore);++ return {+ name: alarm.name,+ description: alarm.description ?? "",+ resourceType: AlarmResourceType.IdentityCredential,+ eventType: AlarmEventType.IdentityCredentialExpiry,+ alertBeforeValue: value,+ alertBeforeUnit: unit,+ enabled: alarm.enabled,+ channels+ };+};++export const AlarmForm = ({ projectId, scopeName, alarm, onComplete, onCancel }: Props) => {+ const isEditing = Boolean(alarm);+ const scopeVariant = useScopeVariant();+ const createAlarm = useCreateAlarm();+ const updateAlarm = useUpdateAlarm();++ const formMethods = useForm<TAlarmForm>({+ resolver: zodResolver(alarmFormSchema),+ defaultValues: buildFormDefaults(alarm)+ });++ const {+ control,+ register,+ handleSubmit,+ formState: { errors, isSubmitting, dirtyFields }+ } = formMethods;++ const isProjectScope = Boolean(projectId);+ const ScopeIcon =+ // eslint-disable-next-line no-nested-ternary+ isProjectScope ? ProjectIcon : scopeVariant === "sub-org" ? SubOrgIcon : OrgIcon;+ // eslint-disable-next-line no-nested-ternary+ const scopeColor = isProjectScope+ ? "text-project"+ : scopeVariant === "sub-org"+ ? "text-sub-org"+ : "text-org";+ const scopeTitle = isProjectScope+ ? `Project · ${scopeName ?? "this project"}`+ : "Organization-wide";+ const scopeDescription = isProjectScope+ ? "Watches every identity credential in this project"+ : "Watches every identity credential in this organization";++ const onSubmit = async (data: TAlarmForm) => {+ const alertBefore = `${data.alertBeforeValue}${data.alertBeforeUnit}`;+ try {+ if (isEditing && alarm) {+ const channelsDirty = Boolean(dirtyFields.channels);+ await updateAlarm.mutateAsync({+ alarmId: alarm.id,+ projectId: alarm.projectId,+ name: data.name,+ description: data.description || null,+ enabled: data.enabled,+ condition: { alertBefore },+ ...(channelsDirty+ ? {+ channels: buildChannelsPayload(data.channels),+ recipients: buildRecipientsPayload(data.channels)+ }+ : {})+ });+ createNotification({ text: "Successfully updated alarm", type: "success" });+ } else {+ await createAlarm.mutateAsync({+ name: data.name,+ description: data.description || undefined,+ resourceType: RESOURCE_TYPE_VALUE,+ resourceId: null,+ eventType: EVENT_TYPE_VALUE,+ condition: { alertBefore },+ filters: null,+ enabled: data.enabled,+ projectId: projectId ?? null,+ recipients: buildRecipientsPayload(data.channels),+ channels: buildChannelsPayload(data.channels)+ });+ createNotification({ text: "Successfully created alarm", type: "success" });+ }+ onComplete();+ } catch (err) {+ const message =+ (err as { response?: { data?: { message?: string } } })?.response?.data?.message ??+ "Failed to save alarm";+ createNotification({ text: message, type: "error" });+ }+ };++ return (+ <FormProvider {...formMethods}>+ <form+ onSubmit={handleSubmit(onSubmit)}+ className="flex min-h-0 flex-1 flex-col overflow-y-auto"+ >+ <div className="flex flex-col gap-8 p-4">+ <section className="flex flex-col gap-4">+ <SectionHeader step={1} title="Details" />+ <Field>+ <FieldLabel htmlFor="alarm-name">Name</FieldLabel>+ <FieldContent>+ <Input+ id="alarm-name"+ autoFocus+ placeholder="ci-bot-secret-expiry"+ isError={Boolean(errors.name)}+ {...register("name")}+ />+ <FieldError errors={[errors.name]} />+ </FieldContent>+ </Field>++ <Field>+ <FieldLabel htmlFor="alarm-description">+ Description <span className="text-mineshaft-400">(optional)</span>+ </FieldLabel>+ <FieldContent>+ <TextArea+ id="alarm-description"+ rows={2}+ className="resize-none"+ placeholder="What this alarm is for"+ isError={Boolean(errors.description)}+ {...register("description")}+ />+ <FieldError errors={[errors.description]} />+ </FieldContent>+ </Field>+ </section>++ <section className="flex flex-col gap-4">+ <SectionHeader step={2} title="Trigger" />++ <Controller+ control={control}+ name="resourceType"+ render={({ field: { value, onChange } }) => (+ <Field>+ <FieldLabel>Resource type</FieldLabel>+ <FieldContent>+ <Select value={value} onValueChange={onChange}>+ <SelectTrigger className="w-full">+ <SelectValue />+ </SelectTrigger>+ <SelectContent position="popper">+ {Object.values(AlarmResourceType).map((resourceType) => (+ <SelectItem key={resourceType} value={resourceType}>+ <span className="flex items-center gap-2">+ <KeyRoundIcon className="size-4 text-blue-400" />+ <span className="font-medium">+ {ALARM_RESOURCE_TYPE_LABELS[resourceType]}+ </span>+ <span className="font-mono text-xs text-mineshaft-400">+ {resourceType}+ </span>+ </span>+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </FieldContent>+ </Field>+ )}+ />++ <div className="flex flex-col gap-1.5">+ <FieldLabel>Scope</FieldLabel>+ <Card className="flex-row items-center justify-between p-4">+ <div className="flex items-center gap-3">+ <ScopeIcon className={`size-5 ${scopeColor}`} />+ <div className="flex flex-col">+ <span className="text-sm text-foreground">{scopeTitle}</span>+ <span className="text-xs text-muted">{scopeDescription}</span>+ </div>+ </div>+ <span className="flex items-center gap-1 text-xs text-muted">+ <LockIcon className="size-3" />+ Fixed+ </span>+ </Card>+ </div>++ <Controller+ control={control}+ name="eventType"+ render={({ field: { value, onChange } }) => (+ <Field>+ <FieldLabel>Event</FieldLabel>+ <FieldContent>+ <Select value={value} onValueChange={onChange}>+ <SelectTrigger className="w-full">+ <SelectValue />+ </SelectTrigger>+ <SelectContent position="popper">+ {Object.values(AlarmEventType).map((eventType) => (+ <SelectItem key={eventType} value={eventType}>+ <span className="flex items-center gap-2">+ <Badge variant="warning">{ALARM_EVENT_TYPE_LABELS[eventType]}</Badge>+ <span className="text-mineshaft-300">+ Fires as the credential nears expiration+ </span>+ </span>+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </FieldContent>+ </Field>+ )}+ />++ <div className="flex flex-col gap-1.5">+ <FieldLabel>Condition</FieldLabel>+ <div className="flex flex-col gap-1">+ <div className="flex items-center gap-3">+ <span className="text-sm text-mineshaft-100">Alert before</span>+ <Input+ id="alarm-alert-before"+ type="number"+ min={1}+ className="w-24"+ isError={Boolean(errors.alertBeforeValue)}+ {...register("alertBeforeValue", { valueAsNumber: true })}+ />+ <Controller+ control={control}+ name="alertBeforeUnit"+ render={({ field: { value, onChange } }) => (+ <Select value={value} onValueChange={onChange}>+ <SelectTrigger className="w-32">+ <SelectValue />+ </SelectTrigger>+ <SelectContent position="popper">+ {Object.values(AlarmTimeUnit).map((unit) => (+ <SelectItem key={unit} value={unit} className="capitalize">+ {ALARM_TIME_UNIT_LABELS[unit]}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ )}+ />+ </div>+ <FieldError errors={[errors.alertBeforeValue, errors.alertBeforeUnit]} />+ </div>+ </div>+ </section>++ <section className="flex flex-col gap-4">+ <SectionHeader step={3} title="Delivery" />+ <AlarmChannelsField />+ </section>+ </div>++ <SheetFooter className="sticky bottom-0 border-t bg-popover">+ <div className="flex w-full items-center justify-between">+ <div className="flex items-center gap-2">+ <Button+ type="submit"+ variant={scopeVariant}+ isPending={isSubmitting}+ isDisabled={isSubmitting}+ >+ {isEditing ? "Update Alarm" : "Create Alarm"}+ </Button>+ <Button type="button" variant="outline" onClick={onCancel} isDisabled={isSubmitting}>+ Cancel+ </Button>+ </div>+ <Controller+ control={control}+ name="enabled"+ render={({ field }) => (+ <FieldLabel+ htmlFor="alarm-enabled"+ className="flex cursor-pointer items-center gap-2 text-sm text-muted"+ >+ Enabled+ <Switch+ id="alarm-enabled"+ variant={scopeVariant}+ checked={field.value}+ onCheckedChange={field.onChange}+ />+ </FieldLabel>+ )}+ />+ </div>+ </SheetFooter>+ </form>+ </FormProvider>+ );+};diff --git a/frontend/src/views/AlarmsPage/components/AlarmRecipientsField.tsx b/frontend/src/views/AlarmsPage/components/AlarmRecipientsField.tsxnew file mode 100644index 0000000000..1fcfb77e70--- /dev/null+++ b/frontend/src/views/AlarmsPage/components/AlarmRecipientsField.tsx@@ -0,0 +1,153 @@+import { useMemo, useState } from "react";+import { Controller, useFormContext } from "react-hook-form";++import {+ CreatableSelect,+ Field,+ FieldContent,+ FieldDescription,+ FieldError,+ FieldLabel+} from "@app/components/v3";+import { useOrganization } from "@app/context";+import { useGetOrganizationGroups, useGetOrgUsers } from "@app/hooks/api";+import {+ ALARM_PRINCIPAL_TYPE_LABELS,+ AlarmPrincipalType,+ TAlarmForm,+ TAlarmRecipientForm+} from "@app/hooks/api/alarms";++const EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;++type RecipientOption = {+ principalType: AlarmPrincipalType;+ principalId: string;+ label: string;+};++type Props = {+ index: number;+};++export const AlarmRecipientsField = ({ index }: Props) => {+ const { control } = useFormContext<TAlarmForm>();+ const { currentOrg } = useOrganization();+ const orgId = currentOrg.id;++ // Only reveal the (potentially large) option list once the user starts typing.+ const [inputValue, setInputValue] = useState("");++ const { data: orgUsers = [] } = useGetOrgUsers(orgId);+ const { data: orgGroups = [] } = useGetOrganizationGroups(orgId);++ const { userOptions, groupOptions, labelLookup } = useMemo(() => {+ const lookup = new Map<string, string>();++ const users: RecipientOption[] = orgUsers+ .filter((member) => member.user?.id)+ .map((member) => {+ const label =+ member.user.username ||+ [member.user.firstName, member.user.lastName].filter(Boolean).join(" ") ||+ member.user.email ||+ member.user.id;+ lookup.set(`${AlarmPrincipalType.User}:${member.user.id}`, label);+ return { principalType: AlarmPrincipalType.User, principalId: member.user.id, label };+ });++ const groups: RecipientOption[] = orgGroups.map((group) => {+ lookup.set(`${AlarmPrincipalType.Group}:${group.id}`, group.name);+ return { principalType: AlarmPrincipalType.Group, principalId: group.id, label: group.name };+ });++ return { userOptions: users, groupOptions: groups, labelLookup: lookup };+ }, [orgUsers, orgGroups]);++ const groupedOptions = useMemo(+ () => [+ { label: "Users", options: userOptions },+ { label: "Groups", options: groupOptions }+ ],+ [userOptions, groupOptions]+ );++ const toOption = (recipient: TAlarmRecipientForm): RecipientOption => {+ if (recipient.principalType === AlarmPrincipalType.Email) {+ return {+ principalType: AlarmPrincipalType.Email,+ principalId: recipient.principalId,+ label: recipient.principalId+ };+ }+ const resolved = labelLookup.get(`${recipient.principalType}:${recipient.principalId}`);+ return {+ principalType: recipient.principalType,+ principalId: recipient.principalId,+ label: resolved ?? recipient.label ?? recipient.principalId+ };+ };++ return (+ <Controller+ control={control}+ name={`channels.${index}.config.recipients`}+ render={({ field, fieldState: { error } }) => {+ const value = ((field.value as TAlarmRecipientForm[] | undefined) ?? []).map(toOption);++ return (+ <Field>+ <FieldLabel>Recipients</FieldLabel>+ <FieldContent>+ <CreatableSelect+ isMulti+ closeMenuOnSelect={false}+ placeholder="Add users, groups, or type an email..."+ // Hide the full list until the user types; keep it lightweight.+ options={inputValue.trim() ? groupedOptions : []}+ value={value}+ isError={Boolean(error)}+ inputValue={inputValue}+ onInputChange={(next) => setInputValue(next)}+ noOptionsMessage={() =>+ inputValue.trim()+ ? "No matches. Type a full email to add it."+ : "Type to search users, groups, or an email"+ }+ getOptionValue={(option: RecipientOption) =>+ `${option.principalType}:${option.principalId}`+ }+ getOptionLabel={(option: RecipientOption) =>+ `${option.label} (${ALARM_PRINCIPAL_TYPE_LABELS[option.principalType]})`+ }+ isValidNewOption={(input) => EMAIL_REGEX.test(input.trim())}+ formatCreateLabel={(input) => `Add email "${input.trim()}"`}+ getNewOptionData={(input) =>+ ({+ principalType: AlarmPrincipalType.Email,+ principalId: input.trim().toLowerCase(),+ label: input.trim().toLowerCase()+ }) as RecipientOption+ }+ onChange={(newValue) => {+ field.onChange(+ (newValue as RecipientOption[]).map((option) => ({+ principalType: option.principalType,+ principalId: option.principalId,+ label: option.label+ }))+ );+ }}+ />+ <FieldDescription>+ Email channels deliver to these recipients. Add org users, groups, or raw email+ addresses.+ </FieldDescription>+ <FieldError errors={[error]} />+ </FieldContent>+ </Field>+ );+ }}+ />+ );+};diff --git a/frontend/src/views/AlarmsPage/components/AlarmRow.tsx b/frontend/src/views/AlarmsPage/components/AlarmRow.tsxnew file mode 100644index 0000000000..f4f153353c--- /dev/null+++ b/frontend/src/views/AlarmsPage/components/AlarmRow.tsx@@ -0,0 +1,197 @@+import {+ AlertTriangleIcon,+ BellIcon,+ Ellipsis,+ HashIcon,+ KeyRoundIcon,+ LinkIcon,+ MailIcon,+ PencilIcon,+ ShieldIcon,+ Trash2Icon,+ UserIcon,+ UsersIcon+} from "lucide-react";++import {+ Badge,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+ IconButton,+ Popover,+ PopoverContent,+ PopoverTrigger,+ TableCell,+ TableRow,+ Tooltip,+ TooltipContent,+ TooltipTrigger+} from "@app/components/v3";+import {+ ALARM_CHANNEL_TYPE_LABELS,+ ALARM_EVENT_TYPE_LABELS,+ ALARM_RESOURCE_TYPE_LABELS,+ AlarmChannelType,+ AlarmEventType,+ AlarmPrincipalType,+ AlarmResourceType,+ TAlarm,+ TAlarmRecipient+} from "@app/hooks/api/alarms";++type LucideIcon = typeof MailIcon;++const RESOURCE_ICONS: Record<string, LucideIcon> = {+ [AlarmResourceType.IdentityCredential]: KeyRoundIcon+};++const CHANNEL_ICONS: Record<AlarmChannelType, LucideIcon> = {+ [AlarmChannelType.Email]: MailIcon,+ [AlarmChannelType.Slack]: HashIcon,+ [AlarmChannelType.Webhook]: LinkIcon,+ [AlarmChannelType.PagerDuty]: AlertTriangleIcon+};++const RECIPIENT_ICONS: Record<AlarmPrincipalType, LucideIcon> = {+ [AlarmPrincipalType.Email]: MailIcon,+ [AlarmPrincipalType.User]: UserIcon,+ [AlarmPrincipalType.Group]: UsersIcon,+ [AlarmPrincipalType.Role]: ShieldIcon+};++type Props = {+ alarm: TAlarm;+ resolveRecipientLabel: (recipient: TAlarmRecipient) => string;+ onEdit: (alarm: TAlarm) => void;+ onDelete: (alarm: TAlarm) => void;+};++export const AlarmRow = ({ alarm, resolveRecipientLabel, onEdit, onDelete }: Props) => {+ const ResourceIcon = RESOURCE_ICONS[alarm.resourceType] ?? KeyRoundIcon;+ const resourceLabel =+ ALARM_RESOURCE_TYPE_LABELS[alarm.resourceType as AlarmResourceType] ?? alarm.resourceType;+ const eventLabel = ALARM_EVENT_TYPE_LABELS[alarm.eventType as AlarmEventType] ?? alarm.eventType;+ const condition = alarm.condition?.alertBefore+ ? `Alert before ${alarm.condition.alertBefore}`+ : "On event";++ const [firstRecipient, ...restRecipients] = alarm.recipients;++ const renderRecipient = (recipient: TAlarmRecipient) => {+ const Icon = RECIPIENT_ICONS[recipient.principalType];+ return (+ <Badge+ key={`${recipient.principalType}:${recipient.principalId}`}+ variant="neutral"+ isTruncatable+ className="max-w-[10rem]"+ >+ <Icon className="size-3" />+ <span>{resolveRecipientLabel(recipient)}</span>+ </Badge>+ );+ };++ return (+ <TableRow>+ <TableCell>+ <span className="text-foreground">{alarm.name}</span>+ </TableCell>+ <TableCell>+ <div className="flex items-center gap-2">+ <ResourceIcon className="size-4 shrink-0 text-muted" />+ <div className="flex flex-col">+ <span className="text-foreground">{resourceLabel}</span>+ </div>+ </div>+ </TableCell>+ <TableCell>+ <Badge variant="warning">{eventLabel}</Badge>+ </TableCell>+ <TableCell>{condition}</TableCell>+ <TableCell>+ {firstRecipient ? (+ <div className="flex items-center gap-1">+ {renderRecipient(firstRecipient)}+ {restRecipients.length > 0 && (+ <Popover>+ <Tooltip>+ <TooltipTrigger className="flex h-4 items-center">+ <PopoverTrigger asChild>+ <Badge variant="neutral" asChild>+ <button type="button" onClick={(e) => e.stopPropagation()}>+ +{restRecipients.length}+ </button>+ </Badge>+ </PopoverTrigger>+ </TooltipTrigger>+ <TooltipContent>Click to view all recipients</TooltipContent>+ </Tooltip>+ <PopoverContent+ side="right"+ className="flex w-auto max-w-sm flex-wrap gap-1.5"+ onClick={(e) => e.stopPropagation()}+ >+ {restRecipients.map((recipient) => renderRecipient(recipient))}+ </PopoverContent>+ </Popover>+ )}+ </div>+ ) : (+ <span className="text-muted">—</span>+ )}+ </TableCell>+ <TableCell>+ <div className="flex items-center gap-2 text-muted">+ {alarm.channels.length ? (+ alarm.channels.map((channel) => {+ const Icon = CHANNEL_ICONS[channel.channelType as AlarmChannelType] ?? BellIcon;+ return (+ <span+ key={channel.id}+ title={+ ALARM_CHANNEL_TYPE_LABELS[channel.channelType as AlarmChannelType] ??+ channel.channelType+ }+ className={channel.enabled ? "" : "opacity-40"}+ >+ <Icon className="size-4" />+ </span>+ );+ })+ ) : (+ <span>—</span>+ )}+ </div>+ </TableCell>+ <TableCell>+ <Badge variant={alarm.enabled ? "success" : "neutral"}>+ {alarm.enabled ? "Enabled" : "Disabled"}+ </Badge>+ </TableCell>+ <TableCell>+ <div className="flex items-center justify-end gap-2">+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <IconButton aria-label="Options" variant="ghost" size="xs">+ <Ellipsis />+ </IconButton>+ </DropdownMenuTrigger>+ <DropdownMenuContent sideOffset={2} align="end">+ <DropdownMenuItem onClick={() => onEdit(alarm)}>+ <PencilIcon />+ Edit Alarm+ </DropdownMenuItem>+ <DropdownMenuItem variant="danger" onClick={() => onDelete(alarm)}>+ <Trash2Icon />+ Delete Alarm+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ </TableCell>+ </TableRow>+ );+};diff --git a/frontend/src/views/AlarmsPage/components/AlarmsTable.tsx b/frontend/src/views/AlarmsPage/components/AlarmsTable.tsxnew file mode 100644index 0000000000..4a0ac6a7bf--- /dev/null+++ b/frontend/src/views/AlarmsPage/components/AlarmsTable.tsx@@ -0,0 +1,243 @@+import { useMemo } from "react";+import { PlusIcon, SearchIcon } from "lucide-react";++import { VariablePermissionCan } from "@app/components/permissions";+import {+ Button,+ Card,+ CardAction,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+ Empty,+ EmptyDescription,+ EmptyHeader,+ EmptyTitle,+ InputGroup,+ InputGroupAddon,+ InputGroupInput,+ Pagination,+ Skeleton,+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow+} from "@app/components/v3";+import { OrgPermissionSubjects, ProjectPermissionSub, useOrganization } from "@app/context";+import { OrgPermissionIdentityActions } from "@app/context/OrgPermissionContext/types";+import { ProjectPermissionIdentityActions } from "@app/context/ProjectPermissionContext/types";+import { usePagination, usePopUp, useResetPageHelper, useScopeVariant } from "@app/hooks";+import { useGetOrganizationGroups, useGetOrgUsers } from "@app/hooks/api";+import {+ AlarmPrincipalType,+ AlarmResourceType,+ TAlarm,+ TAlarmRecipient,+ useListAlarms+} from "@app/hooks/api/alarms";++import { AddAlarmModal } from "./AddAlarmModal";+import { AlarmRow } from "./AlarmRow";+import { DeleteAlarmModal } from "./DeleteAlarmModal";++type Props = {+ projectId?: string;+ scopeName?: string;+};++export const AlarmsTable = ({ projectId, scopeName }: Props) => {+ const isProjectView = Boolean(projectId);+ const scopeVariant = useScopeVariant();+ const { currentOrg } = useOrganization();++ const { isPending, data: allAlarms = [] } = useListAlarms({+ resourceType: AlarmResourceType.IdentityCredential,+ ...(projectId ? { projectId } : {})+ });++ const { data: orgUsers = [] } = useGetOrgUsers(currentOrg.id);+ const { data: orgGroups = [] } = useGetOrganizationGroups(currentOrg.id);++ const resolveRecipientLabel = useMemo(() => {+ const lookup = new Map<string, string>();+ orgUsers.forEach((member) => {+ if (member.user?.id) {+ lookup.set(+ `${AlarmPrincipalType.User}:${member.user.id}`,+ member.user.username || member.user.email || member.user.id+ );+ }+ });+ orgGroups.forEach((group) => lookup.set(`${AlarmPrincipalType.Group}:${group.id}`, group.name));++ return (recipient: TAlarmRecipient) => {+ if (recipient.principalType === AlarmPrincipalType.Email) return recipient.principalId;+ return (+ lookup.get(`${recipient.principalType}:${recipient.principalId}`) ?? recipient.principalId+ );+ };+ }, [orgUsers, orgGroups]);++ const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp([+ "addAlarm",+ "editAlarm",+ "deleteAlarm"+ ] as const);++ const { search, setSearch, setPage, page, perPage, setPerPage, offset } = usePagination("", {+ initPerPage: 20+ });++ const filteredAlarms = useMemo(+ () =>+ allAlarms+ .filter((alarm) => (projectId ? alarm.projectId === projectId : alarm.projectId === null))+ .filter((alarm) => {+ const value = search.trim().toLowerCase();+ if (!value) return true;+ return (+ alarm.name.toLowerCase().includes(value) ||+ (alarm.description ?? "").toLowerCase().includes(value)+ );+ }),+ [allAlarms, projectId, search]+ );++ useResetPageHelper({ totalCount: filteredAlarms.length, offset, setPage });++ const visibleAlarms = filteredAlarms.slice(offset, perPage * page);++ return (+ <>+ <Card>+ <CardHeader>+ <CardTitle>Alarms</CardTitle>+ <CardDescription>+ Configure notifications for resource events such as expiring identity credentials.+ </CardDescription>+ <CardAction>+ <VariablePermissionCan+ type={isProjectView ? "project" : "org"}+ I={+ isProjectView+ ? ProjectPermissionIdentityActions.Edit+ : OrgPermissionIdentityActions.Edit+ }+ a={isProjectView ? ProjectPermissionSub.Identity : OrgPermissionSubjects.Identity}+ >+ {(isAllowed) => (+ <Button+ variant={scopeVariant}+ onClick={() => handlePopUpOpen("addAlarm")}+ isDisabled={!isAllowed}+ >+ <PlusIcon />+ Add Alarm+ </Button>+ )}+ </VariablePermissionCan>+ </CardAction>+ </CardHeader>+ <CardContent>+ <div className="flex items-center gap-2">+ <InputGroup className="flex-1">+ <InputGroupAddon align="inline-start">+ <SearchIcon />+ </InputGroupAddon>+ <InputGroupInput+ placeholder="Search alarms..."+ value={search}+ onChange={(e) => setSearch(e.target.value)}+ />+ </InputGroup>+ </div>+ <div className="mt-4">+ {!isPending && !filteredAlarms.length ? (+ <Empty className="border">+ <EmptyHeader>+ <EmptyTitle>+ {allAlarms.length ? "No alarms match search" : "No alarms have been configured"}+ </EmptyTitle>+ <EmptyDescription>+ {allAlarms.length+ ? "Adjust your search to view alarms."+ : "Add an alarm to start receiving notifications."}+ </EmptyDescription>+ </EmptyHeader>+ </Empty>+ ) : (+ <>+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead>Name</TableHead>+ <TableHead>Resource</TableHead>+ <TableHead>Event</TableHead>+ <TableHead>Condition</TableHead>+ <TableHead>Recipients</TableHead>+ <TableHead>Channels</TableHead>+ <TableHead>Status</TableHead>+ <TableHead className="w-5" />+ </TableRow>+ </TableHeader>+ <TableBody>+ {isPending &&+ Array.from({ length: 5 }).map((_, i) => (+ <TableRow key={`skeleton-${i + 1}`}>+ {Array.from({ length: 8 }).map((__, j) => (+ <TableCell key={`skeleton-cell-${i + 1}-${j + 1}`}>+ <Skeleton className="h-4 w-full" />+ </TableCell>+ ))}+ </TableRow>+ ))}+ {!isPending &&+ visibleAlarms.map((alarm) => (+ <AlarmRow+ key={alarm.id}+ alarm={alarm}+ resolveRecipientLabel={resolveRecipientLabel}+ onEdit={(data) => handlePopUpOpen("editAlarm", data)}+ onDelete={(data) => handlePopUpOpen("deleteAlarm", data)}+ />+ ))}+ </TableBody>+ </Table>+ {!isPending && (+ <Pagination+ count={filteredAlarms.length}+ page={page}+ perPage={perPage}+ onChangePage={setPage}+ onChangePerPage={setPerPage}+ />+ )}+ </>+ )}+ </div>+ </CardContent>+ </Card>+ <AddAlarmModal+ isOpen={popUp.addAlarm.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("addAlarm", isOpen)}+ projectId={projectId}+ scopeName={scopeName}+ />+ <AddAlarmModal+ isOpen={popUp.editAlarm.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("editAlarm", isOpen)}+ projectId={projectId}+ scopeName={scopeName}+ alarm={popUp.editAlarm.data as TAlarm | undefined}+ />+ <DeleteAlarmModal+ isOpen={popUp.deleteAlarm.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("deleteAlarm", isOpen)}+ alarm={popUp.deleteAlarm.data as TAlarm | undefined}+ />+ </>+ );+};diff --git a/frontend/src/views/AlarmsPage/components/DeleteAlarmModal.tsx b/frontend/src/views/AlarmsPage/components/DeleteAlarmModal.tsxnew file mode 100644index 0000000000..6487585e0a--- /dev/null+++ b/frontend/src/views/AlarmsPage/components/DeleteAlarmModal.tsx@@ -0,0 +1,66 @@+import { Trash2Icon } from "lucide-react";++import { createNotification } from "@app/components/notifications";+import {+ AlertDialog,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogMedia,+ AlertDialogTitle,+ Button+} from "@app/components/v3";+import { TAlarm, useDeleteAlarm } from "@app/hooks/api/alarms";++type Props = {+ alarm?: TAlarm;+ isOpen: boolean;+ onOpenChange: (isOpen: boolean) => void;+};++export const DeleteAlarmModal = ({ isOpen, onOpenChange, alarm }: Props) => {+ const deleteAlarm = useDeleteAlarm();++ if (!alarm) return null;++ const handleDelete = async () => {+ if (deleteAlarm.isPending) return;+ try {+ await deleteAlarm.mutateAsync({ alarmId: alarm.id, projectId: alarm.projectId });+ createNotification({ text: `Successfully deleted alarm "${alarm.name}"`, type: "success" });+ onOpenChange(false);+ } catch (err) {+ const message =+ (err as { response?: { data?: { message?: string } } })?.response?.data?.message ??+ "Failed to delete alarm";+ createNotification({ text: message, type: "error" });+ }+ };++ return (+ <AlertDialog open={isOpen} onOpenChange={onOpenChange}>+ <AlertDialogContent>+ <AlertDialogHeader>+ <AlertDialogMedia>+ <Trash2Icon />+ </AlertDialogMedia>+ <AlertDialogTitle>Are you sure you want to delete {alarm.name}?</AlertDialogTitle>+ <AlertDialogDescription>This action is irreversible.</AlertDialogDescription>+ </AlertDialogHeader>+ <AlertDialogFooter>+ <AlertDialogCancel>Cancel</AlertDialogCancel>+ <Button+ variant="danger"+ size="sm"+ isPending={deleteAlarm.isPending}+ onClick={handleDelete}+ >+ Delete+ </Button>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>+ );+};diff --git a/frontend/src/views/AlarmsPage/index.tsx b/frontend/src/views/AlarmsPage/index.tsxnew file mode 100644index 0000000000..12bad38cad--- /dev/null+++ b/frontend/src/views/AlarmsPage/index.tsx@@ -0,0 +1 @@+export { AlarmsPage } from "./AlarmsPage";