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.
- package/dist/InsightPage.d.ts +2 -1
- package/dist/components/common/AssignUsersDialog.d.ts +8 -0
- package/dist/components/common/AssigneeSelect.d.ts +7 -0
- package/dist/components/data-table/bulk-actions.d.ts +18 -0
- package/dist/components/data-table/column-header.d.ts +7 -0
- package/dist/components/data-table/faceted-filter.d.ts +15 -0
- package/dist/components/data-table/index.d.ts +6 -0
- package/dist/components/data-table/pagination.d.ts +7 -0
- package/dist/components/data-table/toolbar.d.ts +18 -0
- package/dist/components/data-table/view-options.d.ts +6 -0
- package/dist/components/ui/alert-dialog.d.ts +14 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/dropdown-menu.d.ts +22 -18
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/context.d.ts +14 -0
- package/dist/features/alerts/components/AlertForm.d.ts +15 -0
- package/dist/features/alerts/components/{PromoteDialog.d.ts → ConvertDialog.d.ts} +2 -2
- package/dist/features/alerts/components/InsightAlertCard.d.ts +5 -2
- package/dist/features/alerts/components/alerts-columns.d.ts +11 -0
- package/dist/features/alerts/components/alerts-table.d.ts +25 -0
- package/dist/features/connectors/cloudwatch-wizard/CloudWatchConnectorWizard.d.ts +8 -0
- package/dist/features/connectors/components/ConnectorAwsOnboardingDialog.d.ts +41 -0
- package/dist/features/connectors/components/ConnectorDatadogSetupDialog.d.ts +21 -0
- package/dist/features/connectors/components/ConnectorDetailsDialog.d.ts +8 -0
- package/dist/features/connectors/components/ConnectorFilters.d.ts +18 -0
- package/dist/features/connectors/components/ConnectorGrafanaSetupDialog.d.ts +25 -0
- package/dist/features/connectors/components/ConnectorPrometheusSetupDialog.d.ts +20 -0
- package/dist/features/connectors/components/ConnectorTokenPolicyDialog.d.ts +11 -0
- package/dist/features/connectors/components/InsightConnectorCard.d.ts +7 -1
- package/dist/features/connectors/components/InsightConnectorForm.d.ts +2 -1
- package/dist/features/connectors/grafana-wizard/GrafanaConnectorWizard.d.ts +7 -0
- package/dist/features/connectors/prometheus-wizard/PrometheusConnectorWizard.d.ts +5 -0
- package/dist/features/connectors/source-selection/ConnectorSourcePickerDialog.d.ts +6 -0
- package/dist/features/incidents/components/IncidentComments.d.ts +9 -0
- package/dist/features/incidents/components/IncidentDeleteDialog.d.ts +8 -0
- package/dist/features/incidents/components/IncidentFilters.d.ts +18 -0
- package/dist/features/incidents/components/IncidentForm.d.ts +15 -0
- package/dist/features/incidents/components/IncidentTimeline.d.ts +4 -0
- package/dist/features/incidents/components/InsightIncidentCard.d.ts +2 -1
- package/dist/features/incidents/components/InsightRcaResult.d.ts +2 -1
- package/dist/features/incidents/components/incidents-columns.d.ts +7 -0
- package/dist/features/incidents/components/incidents-table.d.ts +18 -0
- package/dist/features/projects/components/projects-columns.d.ts +8 -0
- package/dist/features/projects/components/projects-table.d.ts +15 -0
- package/dist/features/sop/components/SopAiDialog.d.ts +8 -0
- package/dist/features/sop/components/SopCard.d.ts +9 -0
- package/dist/features/sop/components/SopDeleteDialog.d.ts +6 -0
- package/dist/features/sop/components/SopForm.d.ts +20 -0
- package/dist/features/sop/components/sop-columns.d.ts +6 -0
- package/dist/features/sop/components/sop-table.d.ts +20 -0
- package/dist/features/sop/detail.d.ts +5 -0
- package/dist/features/sop/index.d.ts +4 -0
- package/dist/features/workflows/components/WorkflowDiagramModal.d.ts +6 -0
- package/dist/features/workflows/components/WorkflowExecutionsDrawer.d.ts +6 -0
- package/dist/features/workflows/components/WorkflowFormDialog.d.ts +7 -0
- package/dist/features/workflows/index.d.ts +1 -0
- package/dist/hooks/use-table-url-state.d.ts +54 -0
- package/dist/hooks/useInsightPolling.d.ts +1 -0
- package/dist/hooks/useInsightUsers.d.ts +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +189 -30
- package/dist/index.mjs +73847 -10571
- package/dist/lib/clipboard.d.ts +1 -0
- package/dist/router.d.ts +1 -1
- package/dist/services/insight.d.ts +151 -3
- package/dist/services/sop.d.ts +38 -0
- package/dist/services/workflow.d.ts +12 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +421 -10
- package/package.json +12 -1
- package/dist/features/alerts/components/InsightAlertTable.d.ts +0 -10
- package/dist/features/incidents/components/InsightIncidentTable.d.ts +0 -8
- package/dist/features/projects/components/InsightProjectTable.d.ts +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function copyToClipboard(value: string): Promise<boolean>;
|
package/dist/router.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function createRouteTree(): import('@tanstack/router-core').Route<import('@tanstack/router-core').Register, any, "/", "/", string, "__root__", undefined, {}, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, readonly [import('@tanstack/router-core').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, readonly [import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>], unknown, unknown, unknown, undefined>], unknown, unknown, unknown, undefined>;
|
|
1
|
+
export declare function createRouteTree(): import('@tanstack/router-core').Route<import('@tanstack/router-core').Register, any, "/", "/", string, "__root__", undefined, {}, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, readonly [import('@tanstack/router-core').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, readonly [import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>, import('@tanstack/react-router').Route<any, import('@tanstack/react-router').Route<unknown, import('@tanstack/react-router').RootRoute<import('@tanstack/router-core').Register, undefined, {}, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, "/", "/", "insight-workspace", "/insight-workspace", undefined, import('@tanstack/router-core').ResolveParams<"/">, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown, unknown, unknown, undefined>, string, any, any, any, any, any, import('@tanstack/router-core').AnyContext, any, any, any, any, any, any, any, unknown, undefined>], unknown, unknown, unknown, undefined>], unknown, unknown, unknown, undefined>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { InsightAlert, InsightConnector, InsightProject, InsightIncident } from '../types.js';
|
|
1
|
+
import { InsightAlert, InsightAlertSummary, InsightConnector, InsightWebhookFailureLog, InsightProject, InsightIncident, InsightConnectorTokenPolicy, InsightCloudWatchDiscoverResult, InsightCloudWatchSetupResult, InsightCloudWatchDeployResult, InsightCloudWatchConsoleDeployResult, InsightGrafanaOnboarding, InsightGrafanaSaveResult, InsightGrafanaSetupResult, InsightPrometheusOnboarding, InsightDatadogOnboarding, InsightDatadogSetupResult } from '../types.js';
|
|
2
2
|
export declare const insightService: {
|
|
3
3
|
listIncidents: (params?: {
|
|
4
4
|
page?: number;
|
|
5
5
|
limit?: number;
|
|
6
6
|
monitorId?: string;
|
|
7
7
|
search?: string;
|
|
8
|
+
status?: string;
|
|
9
|
+
assigneeId?: string;
|
|
8
10
|
}) => Promise<{
|
|
9
11
|
ok: boolean;
|
|
10
12
|
incidents: InsightIncident[];
|
|
@@ -18,6 +20,27 @@ export declare const insightService: {
|
|
|
18
20
|
}>;
|
|
19
21
|
getIncidentStatus: (id: string) => Promise<any>;
|
|
20
22
|
triggerAnalysis: (id: string) => Promise<any>;
|
|
23
|
+
assignIncident: (id: string, assigneeIds: string[]) => Promise<any>;
|
|
24
|
+
updateIncident: (id: string, data: {
|
|
25
|
+
name?: string;
|
|
26
|
+
downMessage?: string;
|
|
27
|
+
projectTag?: string;
|
|
28
|
+
downTime?: string;
|
|
29
|
+
}) => Promise<any>;
|
|
30
|
+
deleteIncident: (id: string) => Promise<any>;
|
|
31
|
+
addIncidentComment: (id: string, data: {
|
|
32
|
+
message: string;
|
|
33
|
+
authorName?: string | null;
|
|
34
|
+
}) => Promise<{
|
|
35
|
+
ok: boolean;
|
|
36
|
+
comment: {
|
|
37
|
+
id: string;
|
|
38
|
+
message: string;
|
|
39
|
+
authorId?: string | null;
|
|
40
|
+
authorName?: string | null;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
21
44
|
listAlerts: (params?: {
|
|
22
45
|
page?: number;
|
|
23
46
|
limit?: number;
|
|
@@ -36,17 +59,27 @@ export declare const insightService: {
|
|
|
36
59
|
ok: boolean;
|
|
37
60
|
alert: InsightAlert;
|
|
38
61
|
}>;
|
|
39
|
-
|
|
62
|
+
getAlertSummary: (params?: {
|
|
63
|
+
status?: string;
|
|
64
|
+
}) => Promise<InsightAlertSummary>;
|
|
65
|
+
convertAlert: (id: string) => Promise<{
|
|
40
66
|
ok: boolean;
|
|
41
67
|
incidentId: string;
|
|
42
68
|
dependencies: string[];
|
|
43
69
|
}>;
|
|
44
70
|
dismissAlert: (id: string) => Promise<any>;
|
|
45
|
-
|
|
71
|
+
updateAlert: (id: string, data: {
|
|
72
|
+
alertName?: string;
|
|
73
|
+
description?: string;
|
|
74
|
+
severity?: string;
|
|
75
|
+
projectTag?: string;
|
|
76
|
+
}) => Promise<any>;
|
|
77
|
+
deleteAlert(id: string): Promise<any>;
|
|
46
78
|
listConnectors: (params?: {
|
|
47
79
|
page?: number;
|
|
48
80
|
limit?: number;
|
|
49
81
|
search?: string;
|
|
82
|
+
type?: string;
|
|
50
83
|
}) => Promise<{
|
|
51
84
|
ok: boolean;
|
|
52
85
|
connectors: InsightConnector[];
|
|
@@ -58,11 +91,16 @@ export declare const insightService: {
|
|
|
58
91
|
name: string;
|
|
59
92
|
type: string;
|
|
60
93
|
description?: string;
|
|
94
|
+
tokenPolicy?: {
|
|
95
|
+
mode?: "expires" | "unlimited";
|
|
96
|
+
ttlDays?: number;
|
|
97
|
+
};
|
|
61
98
|
}) => Promise<{
|
|
62
99
|
ok: boolean;
|
|
63
100
|
connectorId: string;
|
|
64
101
|
webhookToken: string;
|
|
65
102
|
webhookUrl: string;
|
|
103
|
+
tokenPolicy?: InsightConnectorTokenPolicy;
|
|
66
104
|
}>;
|
|
67
105
|
getConnector: (id: string) => Promise<{
|
|
68
106
|
ok: boolean;
|
|
@@ -77,8 +115,114 @@ export declare const insightService: {
|
|
|
77
115
|
ok: boolean;
|
|
78
116
|
webhookToken: string;
|
|
79
117
|
webhookUrl: string;
|
|
118
|
+
tokenPolicy?: InsightConnectorTokenPolicy;
|
|
119
|
+
}>;
|
|
120
|
+
getConnectorTokenPolicy: (id: string) => Promise<{
|
|
121
|
+
ok: boolean;
|
|
122
|
+
connectorId: string;
|
|
123
|
+
tokenPolicy: InsightConnectorTokenPolicy;
|
|
124
|
+
}>;
|
|
125
|
+
updateConnectorTokenPolicy: (id: string, data: {
|
|
126
|
+
mode: "expires" | "unlimited";
|
|
127
|
+
ttlDays?: number;
|
|
128
|
+
}) => Promise<{
|
|
129
|
+
ok: boolean;
|
|
130
|
+
connectorId: string;
|
|
131
|
+
webhookUrl: string | null;
|
|
132
|
+
tokenPolicy: InsightConnectorTokenPolicy;
|
|
80
133
|
}>;
|
|
134
|
+
discoverCloudWatch: (id: string, data: {
|
|
135
|
+
accessKeyId: string;
|
|
136
|
+
secretAccessKey: string;
|
|
137
|
+
sessionToken?: string;
|
|
138
|
+
region: string;
|
|
139
|
+
}) => Promise<InsightCloudWatchDiscoverResult>;
|
|
140
|
+
getCloudWatchSetup: (id: string) => Promise<InsightCloudWatchSetupResult>;
|
|
141
|
+
getCloudWatchConsoleDeploy: (id: string, params?: {
|
|
142
|
+
region?: string;
|
|
143
|
+
stackName?: string;
|
|
144
|
+
lambdaName?: string;
|
|
145
|
+
}) => Promise<InsightCloudWatchConsoleDeployResult>;
|
|
146
|
+
startCloudWatchConsoleDeploy: (id: string, data: {
|
|
147
|
+
stackName?: string;
|
|
148
|
+
}) => Promise<{
|
|
149
|
+
ok: boolean;
|
|
150
|
+
connector: {
|
|
151
|
+
id: string;
|
|
152
|
+
awsDeploymentStatus: string;
|
|
153
|
+
awsDeploymentStatusReason?: string | null;
|
|
154
|
+
awsStackName?: string | null;
|
|
155
|
+
awsStackId?: string | null;
|
|
156
|
+
};
|
|
157
|
+
}>;
|
|
158
|
+
deployCloudWatch: (id: string, data: {
|
|
159
|
+
accessKeyId: string;
|
|
160
|
+
secretAccessKey: string;
|
|
161
|
+
sessionToken?: string;
|
|
162
|
+
region: string;
|
|
163
|
+
stackName: string;
|
|
164
|
+
selectedAlarmNames: string[];
|
|
165
|
+
selectedMetricKeys?: string[];
|
|
166
|
+
naming?: {
|
|
167
|
+
lambdaName?: string;
|
|
168
|
+
alarmNamePrefix?: string;
|
|
169
|
+
};
|
|
170
|
+
alarmDefaults?: {
|
|
171
|
+
threshold?: number;
|
|
172
|
+
period?: number;
|
|
173
|
+
evaluationPeriods?: number;
|
|
174
|
+
statistic?: string;
|
|
175
|
+
comparisonOperator?: string;
|
|
176
|
+
treatMissingData?: string;
|
|
177
|
+
};
|
|
178
|
+
}) => Promise<InsightCloudWatchDeployResult>;
|
|
179
|
+
getGrafanaOnboarding: (id: string) => Promise<InsightGrafanaOnboarding>;
|
|
180
|
+
saveGrafanaSetup: (id: string, data: {
|
|
181
|
+
grafanaBaseUrl: string;
|
|
182
|
+
grafanaToken?: string;
|
|
183
|
+
contactPointName?: string;
|
|
184
|
+
autoRoute?: boolean;
|
|
185
|
+
matcherLabel?: string;
|
|
186
|
+
matcherValue?: string;
|
|
187
|
+
}) => Promise<InsightGrafanaSaveResult>;
|
|
188
|
+
setupGrafana: (id: string, data: {
|
|
189
|
+
grafanaBaseUrl: string;
|
|
190
|
+
grafanaToken?: string;
|
|
191
|
+
contactPointName?: string;
|
|
192
|
+
autoRoute?: boolean;
|
|
193
|
+
matcherLabel?: string;
|
|
194
|
+
matcherValue?: string;
|
|
195
|
+
}) => Promise<InsightGrafanaSetupResult>;
|
|
196
|
+
getPrometheusOnboarding: (id: string) => Promise<InsightPrometheusOnboarding>;
|
|
197
|
+
checkPrometheusStatus: (id: string, data: {
|
|
198
|
+
prometheusBaseUrl: string;
|
|
199
|
+
alertmanagerBaseUrl: string;
|
|
200
|
+
timeoutSeconds?: number;
|
|
201
|
+
}) => Promise<{
|
|
202
|
+
ok: boolean;
|
|
203
|
+
status: "configured" | "failed" | "not_yet" | string;
|
|
204
|
+
reason: string;
|
|
205
|
+
checks: Record<string, any>;
|
|
206
|
+
connector?: InsightConnector;
|
|
207
|
+
}>;
|
|
208
|
+
getDatadogOnboarding: (id: string) => Promise<InsightDatadogOnboarding>;
|
|
209
|
+
setupDatadog: (id: string, data: {
|
|
210
|
+
site?: string;
|
|
211
|
+
datadogApiKey: string;
|
|
212
|
+
datadogAppKey: string;
|
|
213
|
+
webhookName?: string;
|
|
214
|
+
}) => Promise<InsightDatadogSetupResult>;
|
|
81
215
|
deleteConnector: (id: string) => Promise<any>;
|
|
216
|
+
listConnectorWebhookFailures: (id: string, params?: {
|
|
217
|
+
page?: number;
|
|
218
|
+
limit?: number;
|
|
219
|
+
}) => Promise<{
|
|
220
|
+
ok: boolean;
|
|
221
|
+
logs: InsightWebhookFailureLog[];
|
|
222
|
+
total: number;
|
|
223
|
+
page: number;
|
|
224
|
+
limit: number;
|
|
225
|
+
}>;
|
|
82
226
|
listProjects: (params?: {
|
|
83
227
|
page?: number;
|
|
84
228
|
limit?: number;
|
|
@@ -125,4 +269,8 @@ export declare const insightService: {
|
|
|
125
269
|
awsBedrockSecretAccessKey?: string;
|
|
126
270
|
awsBedrockRegion?: string;
|
|
127
271
|
}) => Promise<any>;
|
|
272
|
+
getNotificationProviders: () => Promise<{
|
|
273
|
+
ok: boolean;
|
|
274
|
+
providers: import('../types.js').InsightNotificationProvider[];
|
|
275
|
+
}>;
|
|
128
276
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { InsightSop } from '../types.js';
|
|
2
|
+
export interface SopListParams {
|
|
3
|
+
page?: number;
|
|
4
|
+
limit?: number;
|
|
5
|
+
search?: string;
|
|
6
|
+
severity?: string;
|
|
7
|
+
status?: string;
|
|
8
|
+
alertName?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface SopListResponse {
|
|
11
|
+
ok: boolean;
|
|
12
|
+
sops: InsightSop[];
|
|
13
|
+
total: number;
|
|
14
|
+
page: number;
|
|
15
|
+
limit: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const sopService: {
|
|
18
|
+
list: (params?: SopListParams) => Promise<SopListResponse>;
|
|
19
|
+
get: (id: string) => Promise<{
|
|
20
|
+
ok: boolean;
|
|
21
|
+
sop: InsightSop;
|
|
22
|
+
}>;
|
|
23
|
+
create: (data: Partial<InsightSop> & {
|
|
24
|
+
prompt?: string;
|
|
25
|
+
alert_id?: string;
|
|
26
|
+
}) => Promise<{
|
|
27
|
+
ok: boolean;
|
|
28
|
+
sopId: string;
|
|
29
|
+
id: string;
|
|
30
|
+
}>;
|
|
31
|
+
update: (id: string, data: Partial<InsightSop>) => Promise<{
|
|
32
|
+
ok: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
delete: (id: string) => Promise<{
|
|
35
|
+
ok: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
lookupByAlertName: (alertName: string) => Promise<string | null>;
|
|
38
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InsightWorkflow, InsightWorkflowExecution } from '../types.js';
|
|
2
|
+
export declare const workflowService: {
|
|
3
|
+
listWorkflows(): Promise<InsightWorkflow[]>;
|
|
4
|
+
getWorkflow(id: string): Promise<InsightWorkflow>;
|
|
5
|
+
createWorkflow(data: Partial<InsightWorkflow>): Promise<InsightWorkflow>;
|
|
6
|
+
updateWorkflow(id: string, data: Partial<InsightWorkflow>): Promise<InsightWorkflow>;
|
|
7
|
+
deleteWorkflow(id: string): Promise<void>;
|
|
8
|
+
toggleActive(id: string, isActive: boolean): Promise<InsightWorkflow>;
|
|
9
|
+
reorderWorkflows(orderedIds: string[]): Promise<void>;
|
|
10
|
+
getExecutions(workflowId: string): Promise<InsightWorkflowExecution[]>;
|
|
11
|
+
getRecentExecutions(limit?: number): Promise<InsightWorkflowExecution[]>;
|
|
12
|
+
};
|