meyi-insight-ui-dev 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/InsightPage.d.ts +2 -1
  2. package/dist/components/common/AssignUsersDialog.d.ts +8 -0
  3. package/dist/components/common/AssigneeSelect.d.ts +7 -0
  4. package/dist/components/data-table/bulk-actions.d.ts +18 -0
  5. package/dist/components/data-table/column-header.d.ts +7 -0
  6. package/dist/components/data-table/faceted-filter.d.ts +15 -0
  7. package/dist/components/data-table/index.d.ts +6 -0
  8. package/dist/components/data-table/pagination.d.ts +7 -0
  9. package/dist/components/data-table/toolbar.d.ts +18 -0
  10. package/dist/components/data-table/view-options.d.ts +6 -0
  11. package/dist/components/ui/alert-dialog.d.ts +14 -0
  12. package/dist/components/ui/checkbox.d.ts +4 -0
  13. package/dist/components/ui/command.d.ts +18 -0
  14. package/dist/components/ui/dropdown-menu.d.ts +22 -18
  15. package/dist/components/ui/popover.d.ts +7 -0
  16. package/dist/components/ui/select.d.ts +15 -0
  17. package/dist/components/ui/switch.d.ts +4 -0
  18. package/dist/components/ui/textarea.d.ts +5 -0
  19. package/dist/components/ui/tooltip.d.ts +7 -0
  20. package/dist/context.d.ts +14 -0
  21. package/dist/features/alerts/components/AlertForm.d.ts +15 -0
  22. package/dist/features/alerts/components/{PromoteDialog.d.ts → ConvertDialog.d.ts} +2 -2
  23. package/dist/features/alerts/components/InsightAlertCard.d.ts +5 -2
  24. package/dist/features/alerts/components/alerts-columns.d.ts +11 -0
  25. package/dist/features/alerts/components/alerts-table.d.ts +25 -0
  26. package/dist/features/connectors/cloudwatch-wizard/CloudWatchConnectorWizard.d.ts +8 -0
  27. package/dist/features/connectors/components/ConnectorAwsOnboardingDialog.d.ts +41 -0
  28. package/dist/features/connectors/components/ConnectorDatadogSetupDialog.d.ts +21 -0
  29. package/dist/features/connectors/components/ConnectorDetailsDialog.d.ts +8 -0
  30. package/dist/features/connectors/components/ConnectorFilters.d.ts +18 -0
  31. package/dist/features/connectors/components/ConnectorGrafanaSetupDialog.d.ts +25 -0
  32. package/dist/features/connectors/components/ConnectorPrometheusSetupDialog.d.ts +20 -0
  33. package/dist/features/connectors/components/ConnectorTokenPolicyDialog.d.ts +11 -0
  34. package/dist/features/connectors/components/InsightConnectorCard.d.ts +7 -1
  35. package/dist/features/connectors/components/InsightConnectorForm.d.ts +2 -1
  36. package/dist/features/connectors/grafana-wizard/GrafanaConnectorWizard.d.ts +7 -0
  37. package/dist/features/connectors/prometheus-wizard/PrometheusConnectorWizard.d.ts +5 -0
  38. package/dist/features/connectors/source-selection/ConnectorSourcePickerDialog.d.ts +6 -0
  39. package/dist/features/incidents/components/IncidentComments.d.ts +9 -0
  40. package/dist/features/incidents/components/IncidentDeleteDialog.d.ts +8 -0
  41. package/dist/features/incidents/components/IncidentFilters.d.ts +18 -0
  42. package/dist/features/incidents/components/IncidentForm.d.ts +15 -0
  43. package/dist/features/incidents/components/IncidentTimeline.d.ts +4 -0
  44. package/dist/features/incidents/components/InsightIncidentCard.d.ts +2 -1
  45. package/dist/features/incidents/components/InsightRcaResult.d.ts +2 -1
  46. package/dist/features/incidents/components/incidents-columns.d.ts +7 -0
  47. package/dist/features/incidents/components/incidents-table.d.ts +18 -0
  48. package/dist/features/projects/components/projects-columns.d.ts +8 -0
  49. package/dist/features/projects/components/projects-table.d.ts +15 -0
  50. package/dist/features/sop/components/SopAiDialog.d.ts +8 -0
  51. package/dist/features/sop/components/SopCard.d.ts +9 -0
  52. package/dist/features/sop/components/SopDeleteDialog.d.ts +6 -0
  53. package/dist/features/sop/components/SopForm.d.ts +20 -0
  54. package/dist/features/sop/components/sop-columns.d.ts +6 -0
  55. package/dist/features/sop/components/sop-table.d.ts +20 -0
  56. package/dist/features/sop/detail.d.ts +5 -0
  57. package/dist/features/sop/index.d.ts +4 -0
  58. package/dist/features/workflows/components/WorkflowDiagramModal.d.ts +6 -0
  59. package/dist/features/workflows/components/WorkflowExecutionsDrawer.d.ts +6 -0
  60. package/dist/features/workflows/components/WorkflowFormDialog.d.ts +7 -0
  61. package/dist/features/workflows/index.d.ts +1 -0
  62. package/dist/hooks/use-table-url-state.d.ts +54 -0
  63. package/dist/hooks/useInsightPolling.d.ts +1 -0
  64. package/dist/hooks/useInsightUsers.d.ts +10 -0
  65. package/dist/index.d.ts +1 -1
  66. package/dist/index.js +189 -30
  67. package/dist/index.mjs +73847 -10571
  68. package/dist/lib/clipboard.d.ts +1 -0
  69. package/dist/router.d.ts +1 -1
  70. package/dist/services/insight.d.ts +151 -3
  71. package/dist/services/sop.d.ts +38 -0
  72. package/dist/services/workflow.d.ts +12 -0
  73. package/dist/style.css +1 -1
  74. package/dist/types.d.ts +421 -10
  75. package/package.json +12 -1
  76. package/dist/features/alerts/components/InsightAlertTable.d.ts +0 -10
  77. package/dist/features/incidents/components/InsightIncidentTable.d.ts +0 -8
  78. package/dist/features/projects/components/InsightProjectTable.d.ts +0 -8
@@ -3,5 +3,6 @@ export interface InsightPageProps {
3
3
  token?: string;
4
4
  basePath?: string;
5
5
  userRole?: string;
6
+ userId?: string;
6
7
  }
7
- export declare function InsightPage({ apiBase, token, basePath }: InsightPageProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function InsightPage({ apiBase, token, basePath, userRole, userId }: InsightPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ interface Props {
2
+ open: boolean;
3
+ onOpenChange: (open: boolean) => void;
4
+ assigneeIds?: string[];
5
+ onAssign: (ids: string[]) => Promise<void>;
6
+ }
7
+ export declare function AssignUsersDialog({ open, onOpenChange, assigneeIds, onAssign }: Props): import("react/jsx-runtime").JSX.Element | null;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ interface AssigneeSelectProps {
2
+ assigneeIds?: string[];
3
+ className?: string;
4
+ onAssign?: (ids: string[]) => Promise<void>;
5
+ }
6
+ export declare function AssigneeSelect({ assigneeIds, className }: AssigneeSelectProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,18 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ type DataTableBulkActionsProps<TData> = {
3
+ table: Table<TData>;
4
+ entityName: string;
5
+ children: React.ReactNode;
6
+ };
7
+ /**
8
+ * A modular toolbar for displaying bulk actions when table rows are selected.
9
+ *
10
+ * @template TData The type of data in the table.
11
+ * @param {object} props The component props.
12
+ * @param {Table<TData>} props.table The react-table instance.
13
+ * @param {string} props.entityName The name of the entity being acted upon (e.g., "task", "user").
14
+ * @param {React.ReactNode} props.children The action buttons to be rendered inside the toolbar.
15
+ * @returns {React.ReactNode | null} The rendered component or null if no rows are selected.
16
+ */
17
+ export declare function DataTableBulkActions<TData>({ table, entityName, children, }: DataTableBulkActionsProps<TData>): React.ReactNode | null;
18
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Column } from '@tanstack/react-table';
2
+ type DataTableColumnHeaderProps<TData, TValue> = React.HTMLAttributes<HTMLDivElement> & {
3
+ column: Column<TData, TValue>;
4
+ title: string;
5
+ };
6
+ export declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Column } from '@tanstack/react-table';
2
+ import * as React from 'react';
3
+ type DataTableFacetedFilterProps<TData, TValue> = {
4
+ column?: Column<TData, TValue>;
5
+ title?: string;
6
+ options: {
7
+ label: string;
8
+ value: string;
9
+ icon?: React.ComponentType<{
10
+ className?: string;
11
+ }>;
12
+ }[];
13
+ };
14
+ export declare function DataTableFacetedFilter<TData, TValue>({ column, title, options, }: DataTableFacetedFilterProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,6 @@
1
+ export { DataTablePagination } from './pagination';
2
+ export { DataTableColumnHeader } from './column-header';
3
+ export { DataTableFacetedFilter } from './faceted-filter';
4
+ export { DataTableViewOptions } from './view-options';
5
+ export { DataTableToolbar } from './toolbar';
6
+ export { DataTableBulkActions } from './bulk-actions';
@@ -0,0 +1,7 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ type DataTablePaginationProps<TData> = {
3
+ table: Table<TData>;
4
+ className?: string;
5
+ };
6
+ export declare function DataTablePagination<TData>({ table, className, }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,18 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ type DataTableToolbarProps<TData> = {
3
+ table: Table<TData>;
4
+ searchPlaceholder?: string;
5
+ filters?: {
6
+ columnId: string;
7
+ title: string;
8
+ options: {
9
+ label: string;
10
+ value: string;
11
+ icon?: React.ComponentType<{
12
+ className?: string;
13
+ }>;
14
+ }[];
15
+ }[];
16
+ };
17
+ export declare function DataTableToolbar<TData>({ table, searchPlaceholder, filters, }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ type DataTableViewOptionsProps<TData> = {
3
+ table: Table<TData>;
4
+ };
5
+ export declare function DataTableViewOptions<TData>({ table, }: DataTableViewOptionsProps<TData>): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
+ declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
7
+ declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
8
+ declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
11
+ declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
12
+ declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
13
+ declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
14
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Checkbox };
@@ -0,0 +1,18 @@
1
+ import { Command as CommandPrimitive } from 'cmdk';
2
+ import { Dialog } from './dialog';
3
+ import * as React from 'react';
4
+ declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
5
+ declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
+ title?: string;
7
+ description?: string;
8
+ className?: string;
9
+ showCloseButton?: boolean;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
12
+ declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
13
+ declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
14
+ declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
15
+ declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
16
+ declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
17
+ declare function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
18
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -1,21 +1,25 @@
1
- import * as React from "react";
2
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
- declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
4
- declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
6
- declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
7
- declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
8
- declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
- declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
1
+ import * as React from 'react';
2
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
8
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
10
9
  inset?: boolean;
11
- } & React.RefAttributes<HTMLDivElement>>;
12
- declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
- declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
+ variant?: 'default' | 'destructive';
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
13
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
14
+ declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
15
+ declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
15
16
  inset?: boolean;
16
- } & React.RefAttributes<HTMLDivElement>>;
17
- declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
19
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
20
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
21
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
18
22
  inset?: boolean;
19
- } & React.RefAttributes<HTMLDivElement>>;
20
- declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
- export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
25
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
3
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
+ declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import * as SelectPrimitive from '@radix-ui/react-select';
3
+ declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
7
+ size?: 'sm' | 'default';
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
+ declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
11
+ declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
13
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
14
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
15
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
3
+ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Switch };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ }
4
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
5
+ export { Textarea };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ interface InsightContextValue {
3
+ userRole: string;
4
+ userId: string;
5
+ isAdmin: boolean;
6
+ isReadOnly: boolean;
7
+ }
8
+ export declare const useInsightContext: () => InsightContextValue;
9
+ export declare function InsightProvider({ role, userId, children }: {
10
+ role: string;
11
+ userId: string;
12
+ children: React.ReactNode;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,15 @@
1
+ import { InsightAlert } from '../../../types.js';
2
+ interface AlertFormProps {
3
+ open: boolean;
4
+ alert: InsightAlert | null;
5
+ submitting: boolean;
6
+ onClose: () => void;
7
+ onSubmit: (data: {
8
+ alertName: string;
9
+ description?: string;
10
+ severity?: string;
11
+ projectTag?: string;
12
+ }) => void;
13
+ }
14
+ export declare function AlertForm({ open, alert, submitting, onClose, onSubmit }: AlertFormProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -1,8 +1,8 @@
1
1
  import { InsightAlert } from '../../../types.js';
2
- export declare function PromoteDialog({ alert, open, onConfirm, onCancel, promoting, }: {
2
+ export declare function ConvertDialog({ alert, open, onConfirm, onCancel, converting, }: {
3
3
  alert: InsightAlert | null;
4
4
  open: boolean;
5
5
  onConfirm: () => void;
6
6
  onCancel: () => void;
7
- promoting: boolean;
7
+ converting: boolean;
8
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -3,8 +3,11 @@ interface InsightAlertCardProps {
3
3
  alert: InsightAlert;
4
4
  deletingId: string | null;
5
5
  onViewIncident: (id: string) => void;
6
- onPromote: (alert: InsightAlert) => void;
6
+ onConvert: (alert: InsightAlert) => void;
7
+ onGenerateSop?: (alert: InsightAlert) => void;
8
+ generatingSopId?: string | null;
9
+ sopId?: string | null;
7
10
  onDelete: (id: string) => void;
8
11
  }
9
- export declare function InsightAlertCard({ alert, deletingId, onViewIncident, onPromote, onDelete, }: InsightAlertCardProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function InsightAlertCard({ alert, deletingId, onViewIncident, onConvert, onGenerateSop, generatingSopId, sopId, onDelete, }: InsightAlertCardProps): import("react/jsx-runtime").JSX.Element;
10
13
  export {};
@@ -0,0 +1,11 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ import { InsightAlert } from '../../../types.js';
3
+ export declare const getAlertsColumns: (actions: {
4
+ onEdit: (alert: InsightAlert) => void;
5
+ onViewIncident: (id: string) => void;
6
+ onDelete: (id: string) => void;
7
+ onConvert: (alert: InsightAlert) => void;
8
+ onGenerateSop?: (alert: InsightAlert) => void;
9
+ generatingSopId?: string | null;
10
+ sopsByAlertName?: Record<string, string>;
11
+ }) => ColumnDef<InsightAlert>[];
@@ -0,0 +1,25 @@
1
+ import { InsightAlert, InsightConnector } from '../../../types.js';
2
+ interface AlertsTableProps {
3
+ data: InsightAlert[];
4
+ total: number;
5
+ page: number;
6
+ limit: number;
7
+ onPageChange: (page: number) => void;
8
+ onLimitChange: (limit: number) => void;
9
+ onViewIncident: (id: string) => void;
10
+ onEdit: (alert: InsightAlert) => void;
11
+ onDelete: (id: string) => void;
12
+ onConvert: (alert: InsightAlert) => void;
13
+ onGenerateSop?: (alert: InsightAlert) => void;
14
+ generatingSopId?: string | null;
15
+ sopsByAlertName?: Record<string, string>;
16
+ search: string;
17
+ onSearchChange: (search: string) => void;
18
+ severityFilter: string;
19
+ onSeverityChange: (severity: string) => void;
20
+ connectorFilter: string;
21
+ onConnectorChange: (connectorId: string) => void;
22
+ connectors: InsightConnector[];
23
+ }
24
+ export declare function AlertsTable({ data, total, page, limit, onPageChange, onLimitChange, onViewIncident, onEdit, onDelete, onConvert, onGenerateSop, generatingSopId, sopsByAlertName, search, onSearchChange, severityFilter, onSeverityChange, connectorFilter, onConnectorChange, connectors, }: AlertsTableProps): import("react/jsx-runtime").JSX.Element;
25
+ export {};
@@ -0,0 +1,8 @@
1
+ import { InsightConnector } from '../../../types.js';
2
+ export declare function CloudWatchConnectorWizard({ open, onOpenChange, onCreated, connector, onAccessKeyDeploy, }: {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ onCreated: () => void;
6
+ connector?: InsightConnector | null;
7
+ onAccessKeyDeploy?: (connector: InsightConnector) => void;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,41 @@
1
+ import { InsightCloudWatchDeployResult, InsightCloudWatchDiscoverResult } from '../../../types.js';
2
+ interface Props {
3
+ open: boolean;
4
+ loadingDiscover?: boolean;
5
+ deploying?: boolean;
6
+ discoveringReady: boolean;
7
+ credentials: {
8
+ accessKeyId: string;
9
+ secretAccessKey: string;
10
+ sessionToken: string;
11
+ region: string;
12
+ stackName: string;
13
+ };
14
+ naming: {
15
+ lambdaName: string;
16
+ alarmNamePrefix: string;
17
+ };
18
+ alarmDefaults: {
19
+ threshold: string;
20
+ period: string;
21
+ evaluationPeriods: string;
22
+ statistic: string;
23
+ comparisonOperator: string;
24
+ treatMissingData: string;
25
+ };
26
+ selectedAlarmNames: string[];
27
+ selectedMetricKeys: string[];
28
+ discoverData: InsightCloudWatchDiscoverResult | null;
29
+ deployData: InsightCloudWatchDeployResult | null;
30
+ templateDownloadUrl: string | null;
31
+ onChangeCredentials: (next: Partial<Props["credentials"]>) => void;
32
+ onChangeNaming: (next: Partial<Props["naming"]>) => void;
33
+ onChangeAlarmDefaults: (next: Partial<Props["alarmDefaults"]>) => void;
34
+ onToggleAlarm: (alarmName: string, checked: boolean) => void;
35
+ onToggleMetric: (metricKey: string, checked: boolean) => void;
36
+ onDiscover: () => Promise<void>;
37
+ onDeploy: () => Promise<void>;
38
+ onOpenChange: (open: boolean) => void;
39
+ }
40
+ export declare function ConnectorAwsOnboardingDialog({ open, loadingDiscover, deploying, discoveringReady, credentials, naming, alarmDefaults, selectedAlarmNames, selectedMetricKeys, discoverData, deployData, templateDownloadUrl, onChangeCredentials, onChangeNaming, onChangeAlarmDefaults, onToggleAlarm, onToggleMetric, onDiscover, onDeploy, onOpenChange, }: Props): import("react/jsx-runtime").JSX.Element;
41
+ export {};
@@ -0,0 +1,21 @@
1
+ import { InsightDatadogOnboarding, InsightDatadogSetupResult } from '../../../types.js';
2
+ interface ConnectorDatadogSetupDialogProps {
3
+ open: boolean;
4
+ loading?: boolean;
5
+ configuring?: boolean;
6
+ data: InsightDatadogOnboarding | null;
7
+ result?: InsightDatadogSetupResult | null;
8
+ site: string;
9
+ webhookName: string;
10
+ datadogApiKey: string;
11
+ datadogAppKey: string;
12
+ onSiteChange: (value: string) => void;
13
+ onWebhookNameChange: (value: string) => void;
14
+ onDatadogApiKeyChange: (value: string) => void;
15
+ onDatadogAppKeyChange: (value: string) => void;
16
+ onRefresh: () => Promise<void>;
17
+ onConfigure: () => Promise<void>;
18
+ onOpenChange: (open: boolean) => void;
19
+ }
20
+ export declare function ConnectorDatadogSetupDialog({ open, loading, configuring, data, result, site, webhookName, datadogApiKey, datadogAppKey, onSiteChange, onWebhookNameChange, onDatadogApiKeyChange, onDatadogAppKeyChange, onRefresh, onConfigure, onOpenChange, }: ConnectorDatadogSetupDialogProps): import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -0,0 +1,8 @@
1
+ import { InsightConnector } from '../../../types.js';
2
+ interface ConnectorDetailsDialogProps {
3
+ open: boolean;
4
+ connector: InsightConnector | null;
5
+ onOpenChange: (open: boolean) => void;
6
+ }
7
+ export declare function ConnectorDetailsDialog({ open, connector, onOpenChange }: ConnectorDetailsDialogProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,18 @@
1
+ import { InsightConnectorType } from '../../../types.js';
2
+ export type ConnectorFiltersState = {
3
+ sourceTypes: InsightConnectorType[];
4
+ };
5
+ interface Props {
6
+ search: string;
7
+ filters: ConnectorFiltersState;
8
+ loading?: boolean;
9
+ onSearchChange: (value: string) => void;
10
+ onFiltersChange: (filters: ConnectorFiltersState) => void;
11
+ onRefresh: () => void;
12
+ onAdd: () => void;
13
+ }
14
+ export declare function getDefaultConnectorFilters(): {
15
+ sourceTypes: InsightConnectorType[];
16
+ };
17
+ export declare function ConnectorFilters({ search, filters, loading, onSearchChange, onFiltersChange, onRefresh, onAdd, }: Props): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,25 @@
1
+ import { InsightGrafanaOnboarding, InsightGrafanaSetupResult } from '../../../types.js';
2
+ interface ConnectorGrafanaSetupDialogProps {
3
+ open: boolean;
4
+ loading?: boolean;
5
+ configuring?: boolean;
6
+ data: InsightGrafanaOnboarding | null;
7
+ result?: InsightGrafanaSetupResult | null;
8
+ grafanaBaseUrl: string;
9
+ grafanaToken: string;
10
+ contactPointName: string;
11
+ autoRoute: boolean;
12
+ matcherLabel: string;
13
+ matcherValue: string;
14
+ onGrafanaBaseUrlChange: (value: string) => void;
15
+ onGrafanaTokenChange: (value: string) => void;
16
+ onContactPointNameChange: (value: string) => void;
17
+ onAutoRouteChange: (value: boolean) => void;
18
+ onMatcherLabelChange: (value: string) => void;
19
+ onMatcherValueChange: (value: string) => void;
20
+ onRefresh: () => Promise<void>;
21
+ onConfigure: () => Promise<void>;
22
+ onOpenChange: (open: boolean) => void;
23
+ }
24
+ export declare function ConnectorGrafanaSetupDialog({ open, loading, configuring, data, result, grafanaBaseUrl, grafanaToken, contactPointName, autoRoute, matcherLabel, matcherValue, onGrafanaBaseUrlChange, onGrafanaTokenChange, onContactPointNameChange, onAutoRouteChange, onMatcherLabelChange, onMatcherValueChange, onRefresh, onConfigure, onOpenChange, }: ConnectorGrafanaSetupDialogProps): import("react/jsx-runtime").JSX.Element;
25
+ export {};
@@ -0,0 +1,20 @@
1
+ import { InsightPrometheusOnboarding } from '../../../types.js';
2
+ interface ConnectorPrometheusSetupDialogProps {
3
+ open: boolean;
4
+ loading?: boolean;
5
+ data: InsightPrometheusOnboarding | null;
6
+ prometheusBaseUrl: string;
7
+ alertmanagerBaseUrl: string;
8
+ checkingStatus?: boolean;
9
+ statusResult?: {
10
+ status: string;
11
+ reason: string;
12
+ } | null;
13
+ onPrometheusBaseUrlChange: (value: string) => void;
14
+ onAlertmanagerBaseUrlChange: (value: string) => void;
15
+ onCheckStatus: () => Promise<void>;
16
+ onRefresh: () => Promise<void>;
17
+ onOpenChange: (open: boolean) => void;
18
+ }
19
+ export declare function ConnectorPrometheusSetupDialog({ open, loading, data, prometheusBaseUrl, alertmanagerBaseUrl, checkingStatus, statusResult, onPrometheusBaseUrlChange, onAlertmanagerBaseUrlChange, onCheckStatus, onRefresh, onOpenChange, }: ConnectorPrometheusSetupDialogProps): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,11 @@
1
+ import { InsightConnector } from '../../../types.js';
2
+ interface ConnectorTokenPolicyDialogProps {
3
+ open: boolean;
4
+ connector: InsightConnector | null;
5
+ loading?: boolean;
6
+ submitting?: boolean;
7
+ onOpenChange: (open: boolean) => void;
8
+ onSubmit: (mode: "expires" | "unlimited", ttlDays?: number) => Promise<void>;
9
+ }
10
+ export declare function ConnectorTokenPolicyDialog({ open, connector, loading, submitting, onOpenChange, onSubmit, }: ConnectorTokenPolicyDialogProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -3,9 +3,15 @@ interface InsightConnectorCardProps {
3
3
  connector: InsightConnector;
4
4
  deletingId: string | null;
5
5
  rotatingId: string | null;
6
+ onView: (connector: InsightConnector) => void;
6
7
  onEdit: (connector: InsightConnector) => void;
7
8
  onRotate: (id: string) => void;
8
9
  onDelete: (id: string) => void;
10
+ onManageTokenPolicy: (connector: InsightConnector) => void;
11
+ onAwsSetup: (connector: InsightConnector) => void;
12
+ onGrafanaSetup: (connector: InsightConnector) => void;
13
+ onPrometheusSetup: (connector: InsightConnector) => void;
14
+ onDatadogSetup: (connector: InsightConnector) => void;
9
15
  }
10
- export declare function InsightConnectorCard({ connector, deletingId, rotatingId, onEdit, onRotate, onDelete, }: InsightConnectorCardProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function InsightConnectorCard({ connector, deletingId, rotatingId, onView, onEdit, onRotate, onDelete, onManageTokenPolicy, onAwsSetup, onGrafanaSetup, onPrometheusSetup, onDatadogSetup, }: InsightConnectorCardProps): import("react/jsx-runtime").JSX.Element;
11
17
  export {};
@@ -12,6 +12,7 @@ interface InsightConnectorFormProps {
12
12
  onSubmit: (name: string, type: InsightConnectorType, description?: string) => void;
13
13
  createdWebhookUrl?: string | null;
14
14
  onWebhookModalClose?: () => void;
15
+ initialType?: InsightConnectorType | null;
15
16
  }
16
- export declare function InsightConnectorForm({ open, connector, submitting, onClose, onSubmit, createdWebhookUrl, onWebhookModalClose, }: InsightConnectorFormProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function InsightConnectorForm({ open, connector, submitting, onClose, onSubmit, createdWebhookUrl, onWebhookModalClose, initialType, }: InsightConnectorFormProps): import("react/jsx-runtime").JSX.Element;
17
18
  export {};
@@ -0,0 +1,7 @@
1
+ import { InsightConnector } from '../../../types.js';
2
+ export declare function GrafanaConnectorWizard({ open, connector, onOpenChange, onCreated, }: {
3
+ open: boolean;
4
+ connector?: InsightConnector | null;
5
+ onOpenChange: (open: boolean) => void;
6
+ onCreated: () => void;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare function PrometheusConnectorWizard({ open, onOpenChange, onCreated, }: {
2
+ open: boolean;
3
+ onOpenChange: (open: boolean) => void;
4
+ onCreated: () => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { InsightConnectorType } from '../../../types.js';
2
+ export declare function ConnectorSourcePickerDialog({ open, onOpenChange, onSelect, }: {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ onSelect: (type: InsightConnectorType) => void;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { InsightIncidentComment } from '../../../types.js';
2
+ interface Props {
3
+ comments?: InsightIncidentComment[];
4
+ readOnly?: boolean;
5
+ submitting?: boolean;
6
+ onSubmit: (message: string) => Promise<void>;
7
+ }
8
+ export declare function IncidentComments({ comments, readOnly, submitting, onSubmit }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ interface IncidentDeleteDialogProps {
2
+ open: boolean;
3
+ onConfirm: () => void;
4
+ onCancel: () => void;
5
+ deleting: boolean;
6
+ }
7
+ export declare function IncidentDeleteDialog({ open, onConfirm, onCancel, deleting }: IncidentDeleteDialogProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,18 @@
1
+ export type IncidentFiltersState = {
2
+ statuses: string[];
3
+ assigneeIds: string[];
4
+ };
5
+ interface Props {
6
+ search: string;
7
+ filters: IncidentFiltersState;
8
+ loading?: boolean;
9
+ onSearchChange: (value: string) => void;
10
+ onFiltersChange: (filters: IncidentFiltersState) => void;
11
+ onRefresh: () => void;
12
+ }
13
+ export declare function getDefaultIncidentFilters(): {
14
+ statuses: string[];
15
+ assigneeIds: string[];
16
+ };
17
+ export declare function IncidentFilters({ search, filters, loading, onSearchChange, onFiltersChange, onRefresh, }: Props): import("react/jsx-runtime").JSX.Element;
18
+ export {};