meyi-insight-ui-dev 1.0.2 → 1.0.4

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 (95) hide show
  1. package/dist/components/common/PageSkeleton.d.ts +10 -0
  2. package/dist/components/data-table/toolbar.d.ts +3 -1
  3. package/dist/components/ui/badge.d.ts +1 -1
  4. package/dist/components/ui/button.d.ts +2 -2
  5. package/dist/components/ui/multi-select.d.ts +15 -0
  6. package/dist/components/ui/single-select.d.ts +15 -0
  7. package/dist/features/alerts/components/AlertFilters.d.ts +15 -0
  8. package/dist/features/alerts/components/ProcessingLifecycle.d.ts +5 -0
  9. package/dist/features/alerts/components/alerts-columns.d.ts +1 -0
  10. package/dist/features/alerts/components/alerts-table.d.ts +6 -9
  11. package/dist/features/alerts/detail.d.ts +7 -0
  12. package/dist/features/alerts/index.d.ts +2 -1
  13. package/dist/features/incidents/analytics.d.ts +1 -0
  14. package/dist/features/incidents/components/IncidentFilters.d.ts +4 -1
  15. package/dist/features/incidents/components/IncidentForm.d.ts +4 -0
  16. package/dist/features/incidents/components/InsightStatusBadge.d.ts +3 -0
  17. package/dist/features/incidents/components/incidents-columns.d.ts +0 -1
  18. package/dist/features/incidents/components/incidents-table.d.ts +3 -4
  19. package/dist/features/incidents/dashboard.d.ts +5 -0
  20. package/dist/features/pipeline/PipelineRuleEditor.d.ts +9 -0
  21. package/dist/features/pipeline/dedup.d.ts +4 -0
  22. package/dist/features/pipeline/editor-dedup.d.ts +4 -0
  23. package/dist/features/pipeline/editor-grouping.d.ts +4 -0
  24. package/dist/features/pipeline/editor-normalization.d.ts +4 -0
  25. package/dist/features/pipeline/grouping.d.ts +4 -0
  26. package/dist/features/pipeline/normalization.d.ts +1 -0
  27. package/dist/features/projects/components/ProjectFilters.d.ts +9 -0
  28. package/dist/features/projects/components/projects-table.d.ts +4 -3
  29. package/dist/features/settings/components/NotificationProvidersManager.d.ts +1 -0
  30. package/dist/features/settings/index.d.ts +5 -1
  31. package/dist/features/sop/components/SopFilters.d.ts +13 -0
  32. package/dist/features/sop/components/sop-table.d.ts +4 -7
  33. package/dist/features/sources/add-wizard/AddSourceConfigureStep.d.ts +8 -0
  34. package/dist/features/sources/add-wizard/AddSourceDeployStep.d.ts +11 -0
  35. package/dist/features/sources/add-wizard/AddSourceOverviewStep.d.ts +4 -0
  36. package/dist/features/sources/add-wizard/AddSourceSourceStep.d.ts +5 -0
  37. package/dist/features/{connectors/prometheus-wizard/PrometheusConnectorWizard.d.ts → sources/add-wizard/AddSourceWizard.d.ts} +1 -1
  38. package/dist/features/sources/add-wizard/add-source-options.d.ts +10 -0
  39. package/dist/features/sources/cloudwatch-wizard/CloudWatchSourceWizard.d.ts +8 -0
  40. package/dist/features/sources/components/InsightSourceDeleteDialog.d.ts +9 -0
  41. package/dist/features/sources/components/InsightSourceForm.d.ts +18 -0
  42. package/dist/features/{connectors/components/ConnectorAwsOnboardingDialog.d.ts → sources/components/SourceAwsOnboardingDialog.d.ts} +1 -1
  43. package/dist/features/{connectors/components/ConnectorDatadogSetupDialog.d.ts → sources/components/SourceDatadogSetupDialog.d.ts} +2 -2
  44. package/dist/features/sources/components/SourceDetailsDialog.d.ts +8 -0
  45. package/dist/features/sources/components/SourceFilters.d.ts +21 -0
  46. package/dist/features/{connectors/components/ConnectorGrafanaSetupDialog.d.ts → sources/components/SourceGrafanaSetupDialog.d.ts} +2 -2
  47. package/dist/features/sources/components/SourceGroupedList.d.ts +18 -0
  48. package/dist/features/{connectors/components/ConnectorPrometheusSetupDialog.d.ts → sources/components/SourcePrometheusSetupDialog.d.ts} +2 -2
  49. package/dist/features/sources/components/SourceTokenPolicyDialog.d.ts +11 -0
  50. package/dist/features/sources/components/WebhookSuccessModal.d.ts +6 -0
  51. package/dist/features/sources/detail/SourceAlarmsTab.d.ts +4 -0
  52. package/dist/features/sources/detail/SourceConfigurationTab.d.ts +10 -0
  53. package/dist/features/sources/detail/SourceDetailHeader.d.ts +11 -0
  54. package/dist/features/sources/detail/SourceDetailPage.d.ts +5 -0
  55. package/dist/features/sources/detail/SourceDetailTabs.d.ts +6 -0
  56. package/dist/features/sources/detail/SourceLogsTab.d.ts +6 -0
  57. package/dist/features/sources/detail/SourceOverviewTab.d.ts +4 -0
  58. package/dist/features/sources/detail/SourceSetupTab.d.ts +10 -0
  59. package/dist/features/sources/detail/SourceTestTab.d.ts +6 -0
  60. package/dist/features/sources/detail/source-detail-utils.d.ts +18 -0
  61. package/dist/features/sources/grafana-wizard/GrafanaSourceWizard.d.ts +7 -0
  62. package/dist/features/sources/index.d.ts +1 -0
  63. package/dist/features/sources/prometheus-wizard/PrometheusSourceWizard.d.ts +5 -0
  64. package/dist/features/sources/source-selection/SourceSourcePickerDialog.d.ts +6 -0
  65. package/dist/features/workflows/components/WorkflowFilters.d.ts +11 -0
  66. package/dist/features/workflows/components/WorkflowFormHelper.d.ts +6 -0
  67. package/dist/features/workflows/components/workflows-columns.d.ts +8 -0
  68. package/dist/features/workflows/components/workflows-table.d.ts +17 -0
  69. package/dist/features/workflows/editor.d.ts +4 -0
  70. package/dist/features/workflows/index.d.ts +4 -1
  71. package/dist/hooks/useInsightPolling.d.ts +1 -0
  72. package/dist/index.d.ts +17 -3
  73. package/dist/index.js +246 -112
  74. package/dist/index.mjs +71807 -73140
  75. package/dist/router.d.ts +1 -1
  76. package/dist/services/insight.d.ts +285 -21
  77. package/dist/services/workflow.d.ts +2 -1
  78. package/dist/style.css +1 -1
  79. package/dist/types.d.ts +128 -51
  80. package/package.json +4 -1
  81. package/dist/features/alerts/components/InsightAlertCard.d.ts +0 -13
  82. package/dist/features/connectors/cloudwatch-wizard/CloudWatchConnectorWizard.d.ts +0 -8
  83. package/dist/features/connectors/components/ConnectorDetailsDialog.d.ts +0 -8
  84. package/dist/features/connectors/components/ConnectorFilters.d.ts +0 -18
  85. package/dist/features/connectors/components/ConnectorTokenPolicyDialog.d.ts +0 -11
  86. package/dist/features/connectors/components/InsightConnectorCard.d.ts +0 -17
  87. package/dist/features/connectors/components/InsightConnectorDeleteDialog.d.ts +0 -9
  88. package/dist/features/connectors/components/InsightConnectorForm.d.ts +0 -18
  89. package/dist/features/connectors/components/WebhookSuccessModal.d.ts +0 -6
  90. package/dist/features/connectors/grafana-wizard/GrafanaConnectorWizard.d.ts +0 -7
  91. package/dist/features/connectors/index.d.ts +0 -1
  92. package/dist/features/connectors/source-selection/ConnectorSourcePickerDialog.d.ts +0 -6
  93. package/dist/features/incidents/components/InsightIncidentCard.d.ts +0 -8
  94. package/dist/features/workflows/components/WorkflowDiagramModal.d.ts +0 -6
  95. package/dist/features/workflows/components/WorkflowFormDialog.d.ts +0 -7
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Common, page-shaped skeleton loaders. Mirrors the real layout of each page
3
+ * so the loading state matches the content that's about to appear.
4
+ *
5
+ * Usage: {loading ? <PageSkeleton variant="dashboard" /> : <RealContent />}
6
+ */
7
+ export type PageSkeletonVariant = "dashboard" | "analytics" | "table" | "cards" | "incident-detail" | "sop-detail";
8
+ export declare function PageSkeleton({ variant }: {
9
+ variant: PageSkeletonVariant;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { Table } from '@tanstack/react-table';
2
+ import { default as React } from 'react';
2
3
  type DataTableToolbarProps<TData> = {
3
4
  table: Table<TData>;
4
5
  searchPlaceholder?: string;
@@ -13,6 +14,7 @@ type DataTableToolbarProps<TData> = {
13
14
  }>;
14
15
  }[];
15
16
  }[];
17
+ children?: React.ReactNode;
16
18
  };
17
- export declare function DataTableToolbar<TData>({ table, searchPlaceholder, filters, }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
19
+ export declare function DataTableToolbar<TData>({ table, searchPlaceholder, filters, children, }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
18
20
  export {};
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
7
  }
@@ -1,8 +1,8 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
5
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
4
+ variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
+ size?: "default" | "icon" | "sm" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  asChild?: boolean;
@@ -0,0 +1,15 @@
1
+ export interface Option {
2
+ label: string;
3
+ value: string;
4
+ }
5
+ interface MultiSelectProps {
6
+ options: Option[];
7
+ selected: string[];
8
+ onChange: (selected: string[]) => void;
9
+ onSearchChange?: (search: string) => void;
10
+ placeholder?: string;
11
+ className?: string;
12
+ disabled?: boolean;
13
+ }
14
+ export declare function MultiSelect({ options, selected, onChange, onSearchChange, placeholder, className, disabled, }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,15 @@
1
+ export type SingleSelectOption = {
2
+ label: string;
3
+ value: string;
4
+ };
5
+ type SingleSelectProps = {
6
+ label?: string;
7
+ value: string;
8
+ options: SingleSelectOption[];
9
+ onValueChange: (value: string) => void;
10
+ disabled?: boolean;
11
+ className?: string;
12
+ minWidth?: number;
13
+ };
14
+ export declare function SingleSelect({ label, value, options, onValueChange, disabled, className, minWidth, }: SingleSelectProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,15 @@
1
+ import { InsightSource } from '../../../types.js';
2
+ interface Props {
3
+ search: string;
4
+ onSearchChange: (value: string) => void;
5
+ severityFilter: string[];
6
+ onSeverityChange: (severities: string[]) => void;
7
+ sourceFilter: string[];
8
+ onSourceChange: (sources: string[]) => void;
9
+ sources: InsightSource[];
10
+ loading?: boolean;
11
+ onRefresh?: () => void;
12
+ children?: React.ReactNode;
13
+ }
14
+ export declare function AlertFilters({ search, onSearchChange, severityFilter, onSeverityChange, sourceFilter, onSourceChange, sources, loading, onRefresh, children, }: Props): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ alarmId: string;
3
+ }
4
+ export declare function ProcessingLifecycle({ alarmId }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -3,6 +3,7 @@ import { InsightAlert } from '../../../types.js';
3
3
  export declare const getAlertsColumns: (actions: {
4
4
  onEdit: (alert: InsightAlert) => void;
5
5
  onViewIncident: (id: string) => void;
6
+ onViewAlert?: (id: string) => void;
6
7
  onDelete: (id: string) => void;
7
8
  onConvert: (alert: InsightAlert) => void;
8
9
  onGenerateSop?: (alert: InsightAlert) => void;
@@ -1,25 +1,22 @@
1
- import { InsightAlert, InsightConnector } from '../../../types.js';
1
+ import { default as React } from 'react';
2
+ import { InsightAlert } from '../../../types.js';
2
3
  interface AlertsTableProps {
3
4
  data: InsightAlert[];
4
5
  total: number;
5
6
  page: number;
6
7
  limit: number;
8
+ loading?: boolean;
7
9
  onPageChange: (page: number) => void;
8
10
  onLimitChange: (limit: number) => void;
9
11
  onViewIncident: (id: string) => void;
12
+ onViewAlert?: (id: string) => void;
10
13
  onEdit: (alert: InsightAlert) => void;
11
14
  onDelete: (id: string) => void;
12
15
  onConvert: (alert: InsightAlert) => void;
13
16
  onGenerateSop?: (alert: InsightAlert) => void;
14
17
  generatingSopId?: string | null;
15
18
  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[];
19
+ renderFilters?: (table: any) => React.ReactNode;
23
20
  }
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;
21
+ export declare function AlertsTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onViewIncident, onViewAlert, onEdit, onDelete, onConvert, onGenerateSop, generatingSopId, sopsByAlertName, renderFilters, }: AlertsTableProps): import("react/jsx-runtime").JSX.Element;
25
22
  export {};
@@ -0,0 +1,7 @@
1
+ interface Props {
2
+ alertId: string;
3
+ onBack: () => void;
4
+ onViewIncident: (id: string) => void;
5
+ }
6
+ export declare function InsightAlertDetailPage({ alertId, onBack, onViewIncident, }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,5 +1,6 @@
1
1
  interface Props {
2
2
  onViewIncident: (id: string) => void;
3
+ onViewAlert?: (id: string) => void;
3
4
  }
4
- export declare function InsightAlertsPage({ onViewIncident }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export declare function InsightAlertsPage({ onViewIncident, onViewAlert }: Props): import("react/jsx-runtime").JSX.Element;
5
6
  export {};
@@ -0,0 +1 @@
1
+ export declare function InsightIncidentAnalyticsPage(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  export type IncidentFiltersState = {
2
2
  statuses: string[];
3
3
  assigneeIds: string[];
4
+ priorities: string[];
4
5
  };
5
6
  interface Props {
6
7
  search: string;
@@ -9,10 +10,12 @@ interface Props {
9
10
  onSearchChange: (value: string) => void;
10
11
  onFiltersChange: (filters: IncidentFiltersState) => void;
11
12
  onRefresh: () => void;
13
+ children?: React.ReactNode;
12
14
  }
13
15
  export declare function getDefaultIncidentFilters(): {
14
16
  statuses: string[];
15
17
  assigneeIds: string[];
18
+ priorities: string[];
16
19
  };
17
- export declare function IncidentFilters({ search, filters, loading, onSearchChange, onFiltersChange, onRefresh, }: Props): import("react/jsx-runtime").JSX.Element;
20
+ export declare function IncidentFilters({ search, filters, loading, onSearchChange, onFiltersChange, onRefresh, children, }: Props): import("react/jsx-runtime").JSX.Element;
18
21
  export {};
@@ -9,6 +9,10 @@ interface IncidentFormProps {
9
9
  downMessage?: string;
10
10
  projectTag?: string;
11
11
  downTime?: string;
12
+ status?: string;
13
+ source?: string;
14
+ resourceName?: string;
15
+ resourceType?: string;
12
16
  }) => void;
13
17
  }
14
18
  export declare function IncidentForm({ open, incident, submitting, onClose, onSubmit }: IncidentFormProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,6 @@
1
1
  export declare function AnalysisStatusBadge({ status }: {
2
2
  status: string;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
+ export declare function IncidentTaskStatusBadge({ status }: {
5
+ status: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { ColumnDef } from '@tanstack/react-table';
2
2
  import { InsightIncident } from '../../../types.js';
3
3
  export declare const getIncidentsColumns: (actions: {
4
- onAssignClick: (incident: InsightIncident) => void;
5
4
  onEdit: (incident: InsightIncident) => void;
6
5
  onDelete: (id: string) => void;
7
6
  }) => ColumnDef<InsightIncident>[];
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { InsightIncident } from '../../../types.js';
2
3
  interface IncidentsTableProps {
3
4
  data: InsightIncident[];
@@ -8,11 +9,9 @@ interface IncidentsTableProps {
8
9
  onPageChange: (page: number) => void;
9
10
  onLimitChange: (limit: number) => void;
10
11
  onViewResult: (id: string) => void;
11
- onAssignClick: (incident: InsightIncident) => void;
12
12
  onEdit: (incident: InsightIncident) => void;
13
13
  onDelete: (id: string) => void;
14
- search: string;
15
- onSearchChange: (search: string) => void;
14
+ renderFilters?: (table: any) => React.ReactNode;
16
15
  }
17
- export declare function IncidentsTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onViewResult, onAssignClick, onEdit, onDelete, search, onSearchChange, }: IncidentsTableProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function IncidentsTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onViewResult, onEdit, onDelete, renderFilters, }: IncidentsTableProps): import("react/jsx-runtime").JSX.Element;
18
17
  export {};
@@ -0,0 +1,5 @@
1
+ export declare function InsightIncidentDashboardPage({ onViewIncident, onViewList, onViewAnalytics, }: {
2
+ onViewIncident?: (id: string) => void;
3
+ onViewList?: () => void;
4
+ onViewAnalytics?: () => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export interface PipelineRuleEditorProps {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ onValidate?: (yaml: string) => Promise<{
5
+ ok: boolean;
6
+ errors?: string[];
7
+ }>;
8
+ }
9
+ export declare function PipelineRuleEditor({ value, onChange, onValidate }: PipelineRuleEditorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function PipelineDedupPage({ embedded, basePath, }?: {
2
+ embedded?: boolean;
3
+ basePath?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function PipelineDedupEditorPage({ ruleId, onBack, }: {
2
+ ruleId?: string;
3
+ onBack: () => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function PipelineGroupingEditorPage({ ruleId, onBack, }: {
2
+ ruleId?: string;
3
+ onBack: () => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function PipelineNormalizationEditorPage({ ruleId, onBack, }: {
2
+ ruleId?: string;
3
+ onBack: () => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function PipelineGroupingPage({ embedded, basePath, }?: {
2
+ embedded?: boolean;
3
+ basePath?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function PipelineNormalizationPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ interface Props {
2
+ search: string;
3
+ onSearchChange: (value: string) => void;
4
+ onRefresh?: () => void;
5
+ loading?: boolean;
6
+ children?: React.ReactNode;
7
+ }
8
+ export declare function ProjectFilters({ search, onSearchChange, onRefresh, loading, children, }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,15 +1,16 @@
1
+ import { default as React } from 'react';
1
2
  import { InsightProject } from '../../../types.js';
2
3
  interface ProjectsTableProps {
3
4
  data: InsightProject[];
4
5
  total: number;
5
6
  page: number;
6
7
  limit: number;
8
+ loading?: boolean;
7
9
  onPageChange: (page: number) => void;
8
10
  onLimitChange: (limit: number) => void;
9
11
  onEdit: (project: InsightProject) => void;
10
12
  onDelete: (project: InsightProject) => void;
11
- search: string;
12
- onSearchChange: (search: string) => void;
13
+ renderFilters?: (table: any) => React.ReactNode;
13
14
  }
14
- export declare function ProjectsTable({ data, total, page, limit, onPageChange, onLimitChange, onEdit, onDelete, search, onSearchChange, }: ProjectsTableProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function ProjectsTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onEdit, onDelete, renderFilters, }: ProjectsTableProps): import("react/jsx-runtime").JSX.Element;
15
16
  export {};
@@ -0,0 +1 @@
1
+ export declare function NotificationProvidersManager(): import("react/jsx-runtime").JSX.Element;
@@ -1 +1,5 @@
1
- export declare function InsightSettingsPage(): import("react/jsx-runtime").JSX.Element;
1
+ type SettingsTab = "general" | "notifications" | "workflow" | "grouping" | "dedup";
2
+ export declare function InsightSettingsPage({ initialTab }: {
3
+ initialTab?: SettingsTab;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,13 @@
1
+ interface Props {
2
+ search: string;
3
+ onSearchChange: (value: string) => void;
4
+ severityFilter: string[];
5
+ onSeverityChange: (severities: string[]) => void;
6
+ statusFilter: string[];
7
+ onStatusChange: (statuses: string[]) => void;
8
+ onRefresh?: () => void;
9
+ loading?: boolean;
10
+ children?: React.ReactNode;
11
+ }
12
+ export declare function SopFilters({ search, onSearchChange, severityFilter, onSeverityChange, statusFilter, onStatusChange, onRefresh, loading, children, }: Props): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -1,20 +1,17 @@
1
+ import { default as React } from 'react';
1
2
  import { InsightSop } from '../../../types.js';
2
3
  interface SopTableProps {
3
4
  data: InsightSop[];
4
5
  total: number;
5
6
  page: number;
6
7
  limit: number;
8
+ loading?: boolean;
7
9
  onPageChange: (page: number) => void;
8
10
  onLimitChange: (limit: number) => void;
9
11
  onView: (id: string) => void;
10
12
  onEdit: (sop: InsightSop) => void;
11
13
  onDelete: (sop: InsightSop) => void;
12
- search: string;
13
- onSearchChange: (search: string) => void;
14
- severityFilter: string;
15
- onSeverityChange: (severity: string) => void;
16
- statusFilter: string;
17
- onStatusChange: (status: string) => void;
14
+ renderFilters?: (table: any) => React.ReactNode;
18
15
  }
19
- export declare function SopTable({ data, total, page, limit, onPageChange, onLimitChange, onView, onEdit, onDelete, search, onSearchChange, severityFilter, onSeverityChange, statusFilter, onStatusChange, }: SopTableProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function SopTable({ data, total, page, limit, loading, onPageChange, onLimitChange, onView, onEdit, onDelete, renderFilters, }: SopTableProps): import("react/jsx-runtime").JSX.Element;
20
17
  export {};
@@ -0,0 +1,8 @@
1
+ import { InsightSourceType } from '../../../types.js';
2
+ export declare function AddSourceConfigureStep({ type, name, description, onNameChange, onDescriptionChange, }: {
3
+ type: InsightSourceType;
4
+ name: string;
5
+ description: string;
6
+ onNameChange: (value: string) => void;
7
+ onDescriptionChange: (value: string) => void;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { InsightCloudTrailConsoleDeploy, InsightCloudWatchConsoleDeployResult, InsightSourceType, InsightDatadogOnboarding, InsightGrafanaOnboarding, InsightPrometheusOnboarding } from '../../../types.js';
2
+ export declare function AddSourceDeployStep({ type, webhookUrl, loading, cloudWatch, cloudTrail, grafana, prometheus, datadog, }: {
3
+ type: InsightSourceType;
4
+ webhookUrl: string;
5
+ loading: boolean;
6
+ cloudWatch: InsightCloudWatchConsoleDeployResult | null;
7
+ cloudTrail: InsightCloudTrailConsoleDeploy | null;
8
+ grafana: InsightGrafanaOnboarding | null;
9
+ prometheus: InsightPrometheusOnboarding | null;
10
+ datadog: InsightDatadogOnboarding | null;
11
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { InsightSourceType } from '../../../types.js';
2
+ export declare function AddSourceOverviewStep({ type }: {
3
+ type: InsightSourceType;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { InsightSourceType } from '../../../types.js';
2
+ export declare function AddSourceSourceStep({ selected, onSelect, }: {
3
+ selected: InsightSourceType;
4
+ onSelect: (type: InsightSourceType) => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare function PrometheusConnectorWizard({ open, onOpenChange, onCreated, }: {
1
+ export declare function AddSourceWizard({ open, onOpenChange, onCreated, }: {
2
2
  open: boolean;
3
3
  onOpenChange: (open: boolean) => void;
4
4
  onCreated: () => void;
@@ -0,0 +1,10 @@
1
+ import { InsightSourceType } from '../../../types.js';
2
+ export type AddSourceSourceOption = {
3
+ type: InsightSourceType;
4
+ label: string;
5
+ description: string;
6
+ mono: string;
7
+ color: string;
8
+ };
9
+ export declare const ADD_CONNECTOR_SOURCES: AddSourceSourceOption[];
10
+ export declare function getSourceSourceOption(type: InsightSourceType): AddSourceSourceOption;
@@ -0,0 +1,8 @@
1
+ import { InsightSource } from '../../../types.js';
2
+ export declare function CloudWatchSourceWizard({ open, onOpenChange, onCreated, source, onAccessKeyDeploy, }: {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ onCreated: () => void;
6
+ source?: InsightSource | null;
7
+ onAccessKeyDeploy?: (source: InsightSource) => void;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { InsightSource } from '../../../types.js';
2
+ interface InsightSourceDeleteDialogProps {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ source: InsightSource | null;
6
+ onConfirm: () => Promise<void>;
7
+ }
8
+ export declare function InsightSourceDeleteDialog({ open, onOpenChange, source, onConfirm, }: InsightSourceDeleteDialogProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,18 @@
1
+ import { InsightSource, InsightSourceType } from '../../../types.js';
2
+ export declare const CONNECTOR_META: Record<InsightSourceType, {
3
+ label: string;
4
+ Icon: any;
5
+ color: string;
6
+ }>;
7
+ interface InsightSourceFormProps {
8
+ open: boolean;
9
+ source: InsightSource | null;
10
+ submitting: boolean;
11
+ onClose: () => void;
12
+ onSubmit: (name: string, type: InsightSourceType, description?: string) => void;
13
+ createdWebhookUrl?: string | null;
14
+ onWebhookModalClose?: () => void;
15
+ initialType?: InsightSourceType | null;
16
+ }
17
+ export declare function InsightSourceForm({ open, source, submitting, onClose, onSubmit, createdWebhookUrl, onWebhookModalClose, initialType, }: InsightSourceFormProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -37,5 +37,5 @@ interface Props {
37
37
  onDeploy: () => Promise<void>;
38
38
  onOpenChange: (open: boolean) => void;
39
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;
40
+ export declare function SourceAwsOnboardingDialog({ 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
41
  export {};
@@ -1,5 +1,5 @@
1
1
  import { InsightDatadogOnboarding, InsightDatadogSetupResult } from '../../../types.js';
2
- interface ConnectorDatadogSetupDialogProps {
2
+ interface SourceDatadogSetupDialogProps {
3
3
  open: boolean;
4
4
  loading?: boolean;
5
5
  configuring?: boolean;
@@ -17,5 +17,5 @@ interface ConnectorDatadogSetupDialogProps {
17
17
  onConfigure: () => Promise<void>;
18
18
  onOpenChange: (open: boolean) => void;
19
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;
20
+ export declare function SourceDatadogSetupDialog({ open, loading, configuring, data, result, site, webhookName, datadogApiKey, datadogAppKey, onSiteChange, onWebhookNameChange, onDatadogApiKeyChange, onDatadogAppKeyChange, onRefresh, onConfigure, onOpenChange, }: SourceDatadogSetupDialogProps): import("react/jsx-runtime").JSX.Element;
21
21
  export {};
@@ -0,0 +1,8 @@
1
+ import { InsightSource } from '../../../types.js';
2
+ interface SourceDetailsDialogProps {
3
+ open: boolean;
4
+ source: InsightSource | null;
5
+ onOpenChange: (open: boolean) => void;
6
+ }
7
+ export declare function SourceDetailsDialog({ open, source, onOpenChange }: SourceDetailsDialogProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,21 @@
1
+ import { InsightSourceType } from '../../../types.js';
2
+ export type SourceFiltersState = {
3
+ sourceTypes: InsightSourceType[];
4
+ status: string;
5
+ region: string;
6
+ };
7
+ interface Props {
8
+ search: string;
9
+ filters: SourceFiltersState;
10
+ loading?: boolean;
11
+ onSearchChange: (value: string) => void;
12
+ onFiltersChange: (filters: SourceFiltersState) => void;
13
+ onRefresh: () => void;
14
+ }
15
+ export declare function getDefaultSourceFilters(): {
16
+ sourceTypes: InsightSourceType[];
17
+ status: string;
18
+ region: string;
19
+ };
20
+ export declare function SourceFilters({ search, filters, loading, onSearchChange, onFiltersChange, onRefresh, }: Props): import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { InsightGrafanaOnboarding, InsightGrafanaSetupResult } from '../../../types.js';
2
- interface ConnectorGrafanaSetupDialogProps {
2
+ interface SourceGrafanaSetupDialogProps {
3
3
  open: boolean;
4
4
  loading?: boolean;
5
5
  configuring?: boolean;
@@ -21,5 +21,5 @@ interface ConnectorGrafanaSetupDialogProps {
21
21
  onConfigure: () => Promise<void>;
22
22
  onOpenChange: (open: boolean) => void;
23
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;
24
+ export declare function SourceGrafanaSetupDialog({ open, loading, configuring, data, result, grafanaBaseUrl, grafanaToken, contactPointName, autoRoute, matcherLabel, matcherValue, onGrafanaBaseUrlChange, onGrafanaTokenChange, onContactPointNameChange, onAutoRouteChange, onMatcherLabelChange, onMatcherValueChange, onRefresh, onConfigure, onOpenChange, }: SourceGrafanaSetupDialogProps): import("react/jsx-runtime").JSX.Element;
25
25
  export {};
@@ -0,0 +1,18 @@
1
+ import { InsightSource } from '../../../types.js';
2
+ type SourceCallbacks = {
3
+ deletingId: string | null;
4
+ onView: (source: InsightSource) => void;
5
+ onEdit: (source: InsightSource) => void;
6
+ onDelete: (id: string) => void;
7
+ onManageTokenPolicy: (source: InsightSource) => void;
8
+ onAwsSetup: (source: InsightSource) => void;
9
+ onGrafanaSetup: (source: InsightSource) => void;
10
+ onPrometheusSetup: (source: InsightSource) => void;
11
+ onDatadogSetup: (source: InsightSource) => void;
12
+ };
13
+ export declare function sourceRegionFilterValue(source: InsightSource): string;
14
+ export declare function sourceRowStatus(source: InsightSource): "active" | "disabled" | "degraded" | "error";
15
+ export declare function SourceGroupedList({ sources, ...callbacks }: {
16
+ sources: InsightSource[];
17
+ } & SourceCallbacks): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { InsightPrometheusOnboarding } from '../../../types.js';
2
- interface ConnectorPrometheusSetupDialogProps {
2
+ interface SourcePrometheusSetupDialogProps {
3
3
  open: boolean;
4
4
  loading?: boolean;
5
5
  data: InsightPrometheusOnboarding | null;
@@ -16,5 +16,5 @@ interface ConnectorPrometheusSetupDialogProps {
16
16
  onRefresh: () => Promise<void>;
17
17
  onOpenChange: (open: boolean) => void;
18
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;
19
+ export declare function SourcePrometheusSetupDialog({ open, loading, data, prometheusBaseUrl, alertmanagerBaseUrl, checkingStatus, statusResult, onPrometheusBaseUrlChange, onAlertmanagerBaseUrlChange, onCheckStatus, onRefresh, onOpenChange, }: SourcePrometheusSetupDialogProps): import("react/jsx-runtime").JSX.Element;
20
20
  export {};
@@ -0,0 +1,11 @@
1
+ import { InsightSource } from '../../../types.js';
2
+ interface SourceTokenPolicyDialogProps {
3
+ open: boolean;
4
+ source: InsightSource | 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 SourceTokenPolicyDialog({ open, source, loading, submitting, onOpenChange, onSubmit, }: SourceTokenPolicyDialogProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,6 @@
1
+ import { InsightSourceType } from '../../../types.js';
2
+ export declare function WebhookSuccessModal({ webhookUrl, sourceType, onClose, }: {
3
+ webhookUrl: string;
4
+ sourceType: InsightSourceType;
5
+ onClose: () => void;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { InsightAlert } from '../../../types.js';
2
+ export declare function SourceAlarmsTab({ alarms }: {
3
+ alarms: InsightAlert[];
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { InsightSource } from '../../../types.js';
2
+ type Props = {
3
+ source: InsightSource;
4
+ saving: boolean;
5
+ onSave: (data: {
6
+ name: string;
7
+ }) => void;
8
+ };
9
+ export declare function SourceConfigurationTab({ source, saving, onSave }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};