@odigos/ui-kit 0.0.290 → 0.0.292
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/CHANGELOG.md +20 -0
- package/lib/chunks/{helpers-esDVvrTt.js → helpers-BGOJ3YRA.js} +1 -1
- package/lib/chunks/index-BIET8cd3.js +338 -0
- package/lib/chunks/source-instrument-form-context-BmNrVjHW.js +5 -0
- package/lib/chunks/{ui-components-DvoeDBMI.js → ui-components-DLJJffgA.js} +385 -252
- package/lib/components/_cards/text-card/index.d.ts +1 -0
- package/lib/components/charts/bar-chart/index.d.ts +14 -0
- package/lib/components/charts/index.d.ts +1 -0
- package/lib/components/island/index.d.ts +10 -1
- package/lib/components.js +1 -1
- package/lib/constants/common.d.ts +2 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/insights/common.d.ts +15 -0
- package/lib/constants/insights/detection.d.ts +19 -0
- package/lib/{containers/insights/settings-and-configurations/panels/guardrails/constants.d.ts → constants/insights/guardrails.d.ts} +22 -13
- package/lib/constants/insights/index.d.ts +5 -0
- package/lib/{containers/insights/settings-and-configurations/panels/learning/constants.d.ts → constants/insights/learning.d.ts} +4 -27
- package/lib/{containers/insights/settings-and-configurations/panels/system/constants.d.ts → constants/insights/system.d.ts} +2 -6
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/index.d.ts +1 -0
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/default-catalog.d.ts +1 -1
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/helpers.d.ts +2 -2
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/index.d.ts +3 -3
- package/lib/containers/_forms/index.d.ts +1 -0
- package/lib/containers/_forms/insights/detection-policy-form/index.d.ts +12 -0
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/mappers.d.ts +1 -1
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/signal-weights-panel.d.ts +1 -1
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/signal-weights.d.ts +2 -2
- package/lib/containers/_forms/insights/guardrail-form/extra-section.d.ts +15 -0
- package/lib/containers/{insights/settings-and-configurations/panels/guardrails → _forms/insights/guardrail-form}/facet-section.d.ts +1 -1
- package/lib/containers/_forms/insights/guardrail-form/index.d.ts +23 -0
- package/lib/containers/{insights/settings-and-configurations/panels/guardrails → _forms/insights/guardrail-form}/mappers.d.ts +3 -1
- package/lib/containers/_forms/insights/guardrail-form/types.d.ts +17 -0
- package/lib/containers/_forms/insights/index.d.ts +4 -0
- package/lib/containers/_forms/insights/learning-policy-form/index.d.ts +12 -0
- package/lib/containers/{insights/settings-and-configurations/panels/learning → _forms/insights/learning-policy-form}/mappers.d.ts +3 -3
- package/lib/containers/_forms/insights/learning-policy-form/options.d.ts +11 -0
- package/lib/containers/{insights/settings-and-configurations/panels/learning → _forms/insights/learning-policy-form}/types.d.ts +1 -1
- package/lib/containers/_forms/insights/system-settings-form/index.d.ts +9 -0
- package/lib/containers/_forms/insights/system-settings-form/mappers.d.ts +11 -0
- package/lib/containers/_forms/insights/system-settings-form/types.d.ts +11 -0
- package/lib/containers/insights/findings/drawer/helpers.d.ts +3 -9
- package/lib/containers/insights/findings/helpers.d.ts +19 -2
- package/lib/containers/insights/insights-context.d.ts +0 -20
- package/lib/containers/insights/settings-and-configurations/panels/detection/helpers.d.ts +28 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/helpers.d.ts +30 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/helpers.d.ts +46 -0
- package/lib/containers/insights/settings-and-configurations/panels/panel.d.ts +44 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/index.d.ts +8 -0
- package/lib/containers/insights/transactions/drawer/baselines/helpers.d.ts +4 -0
- package/lib/containers/insights/transactions/drawer/observations/data-drawer/index.d.ts +8 -0
- package/lib/containers.js +1834 -2146
- package/lib/contexts/index.d.ts +1 -0
- package/lib/contexts/insights/detection-override-form-context.d.ts +44 -0
- package/lib/contexts/insights/detection-policy-form-context.d.ts +29 -0
- package/lib/contexts/insights/guardrail-form-context.d.ts +67 -0
- package/lib/contexts/insights/index.d.ts +6 -0
- package/lib/contexts/insights/learning-override-form-context.d.ts +45 -0
- package/lib/contexts/insights/learning-policy-form-context.d.ts +34 -0
- package/lib/contexts/insights/system-settings-form-context.d.ts +28 -0
- package/lib/contexts/odigos-api/hooks/use-insights-api.d.ts +6 -1
- package/lib/contexts/odigos-api/types.d.ts +2 -1
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/index.d.ts +0 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/insights/index.d.ts +43 -2
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-lV6RFSE-.js +0 -351
- package/lib/chunks/source-instrument-form-context-B9BHhgvw.js +0 -5
- package/lib/containers/insights/settings-and-configurations/content-panel/index.d.ts +0 -11
- package/lib/containers/insights/settings-and-configurations/panels/detection/constants.d.ts +0 -40
- package/lib/containers/insights/settings-and-configurations/panels/detection/create-override-panel.d.ts +0 -14
- package/lib/containers/insights/settings-and-configurations/panels/detection/mock.d.ts +0 -4
- package/lib/containers/insights/settings-and-configurations/panels/detection/policies-menu.d.ts +0 -10
- package/lib/containers/insights/settings-and-configurations/panels/detection/policy-editor.d.ts +0 -8
- package/lib/containers/insights/settings-and-configurations/panels/detection/policy-list-item.d.ts +0 -8
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/create-panel.d.ts +0 -13
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/edit-panel.d.ts +0 -10
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrail-list-item.d.ts +0 -8
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrails-menu.d.ts +0 -9
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/types.d.ts +0 -10
- package/lib/containers/insights/settings-and-configurations/panels/learning/create-override-panel.d.ts +0 -21
- package/lib/containers/insights/settings-and-configurations/panels/learning/policies-menu.d.ts +0 -10
- package/lib/containers/insights/settings-and-configurations/panels/learning/policy-editor.d.ts +0 -9
- package/lib/containers/insights/settings-and-configurations/panels/learning/policy-list-item.d.ts +0 -8
- package/lib/snippets/code-modal/index.d.ts +0 -9
- package/lib/snippets/trace-modal/index.d.ts +0 -8
- /package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/constants.d.ts +0 -0
- /package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/risk-levels.d.ts +0 -0
- /package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/types.d.ts +0 -0
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { LABEL_DISABLED, LABEL_ENABLED } from '../../../../../constants';
|
|
2
|
-
export { LABEL_DISABLED, LABEL_ENABLED };
|
|
3
|
-
export declare const TITLE_ANOMALY_DETECTION_POLICIES = "Anomaly Detection Policies";
|
|
4
|
-
export declare const DESC_ANOMALY_DETECTION_POLICIES = "Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.";
|
|
5
|
-
export declare const TITLE_DEFAULT_POLICY = "Default Policy";
|
|
6
|
-
export declare const TITLE_OVERRIDES = "Overrides";
|
|
7
|
-
export declare const TITLE_NO_OVERRIDES = "No overrides yet";
|
|
8
|
-
export declare const DESC_NO_OVERRIDES = "Add overrides to adjust detection sensitivity for specific services.";
|
|
9
|
-
export declare const BTN_ADD_OVERRIDE_POLICY = "Add override policy";
|
|
10
|
-
export declare const BTN_ADD_OVERRIDE = "Add override";
|
|
11
|
-
export declare const BTN_ADD_SELECTION = "Add selection";
|
|
12
|
-
export declare const BTN_SAVE_CHANGES = "Save Changes";
|
|
13
|
-
export declare const TITLE_CHOOSE_OVERRIDE_SCOPE = "Choose override scope";
|
|
14
|
-
export declare const DESC_CHOOSE_OVERRIDE_SCOPE = "Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.";
|
|
15
|
-
export declare const LABEL_GLOBAL = "Global";
|
|
16
|
-
export declare const LABEL_COMING_SOON = "Coming soon";
|
|
17
|
-
export declare const LABEL_NAME = "Name";
|
|
18
|
-
export declare const LABEL_TRIGGER_RISK_LEVEL = "Trigger when risk level is";
|
|
19
|
-
export declare const LABEL_CUSTOMIZE_SIGNAL_WEIGHTS = "Customize signal weights (advanced)";
|
|
20
|
-
export declare const LABEL_BASE_WEIGHT = "Base weight";
|
|
21
|
-
export declare const LABEL_RISK_POINTS = "Risk points";
|
|
22
|
-
export declare const TITLE_DANGEROUS_SUBCASES = "Dangerous sub-cases - added on top of the base when detected:";
|
|
23
|
-
export declare const DESC_SIGNAL_WEIGHTS_LEGEND = "Every detected signal adds its weight (points) to a 0\u2013100 risk score; the policy fires when the total reaches the threshold above. Sub-cases add on top of the base. Set any weight to 0 to mute that signal for this scope.";
|
|
24
|
-
export declare const LABEL_CHOOSE_OVERRIDE_TYPE = "Choose Override type";
|
|
25
|
-
export declare const LABEL_SELECT_SERVICE = "Select Service";
|
|
26
|
-
export declare const LABEL_SELECT_TRANSACTION = "Select Transaction";
|
|
27
|
-
export declare const LABEL_OVERRIDE_TYPE_SERVICE = "Service";
|
|
28
|
-
export declare const LABEL_OVERRIDE_TYPE_TRANSACTION = "Transaction";
|
|
29
|
-
export declare const PLACEHOLDER_SELECT_SERVICE = "Select service\u2026";
|
|
30
|
-
export declare const PLACEHOLDER_SELECT_TRANSACTION = "Select transaction\u2026";
|
|
31
|
-
export declare const LABEL_RISK_LEVEL_LOW = "Low";
|
|
32
|
-
export declare const LABEL_RISK_LEVEL_MEDIUM = "Medium";
|
|
33
|
-
export declare const LABEL_RISK_LEVEL_HIGH = "High";
|
|
34
|
-
export declare const LABEL_RISK_LEVEL_CRITICAL = "Critical";
|
|
35
|
-
export declare const getFireSummary: (fireAtScore: number, signalWeightOverrideCount: number) => string;
|
|
36
|
-
export declare const MOCK_GLOBAL_DEFAULT_ID = "global-default";
|
|
37
|
-
export declare const MOCK_GLOBAL_DEFAULT_NAME = "Global default";
|
|
38
|
-
export declare const MOCK_GLOBAL_DEFAULT_SUMMARY = "Triggers at Medium risk or higher";
|
|
39
|
-
export declare const MOCK_GLOBAL_DEFAULT_FIRE_AT_SCORE = 20;
|
|
40
|
-
export declare const MOCK_GLOBAL_DEFAULT_SIGNAL_WEIGHT_OVERRIDES = 1;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { DetectionPolicyScope } from './types';
|
|
3
|
-
import type { InsightsServiceStat, InsightsTransactionStat } from '../../../../../types';
|
|
4
|
-
export interface CreateOverridePanelProps {
|
|
5
|
-
services: InsightsServiceStat[];
|
|
6
|
-
transactions: InsightsTransactionStat[];
|
|
7
|
-
existingScopeKeys: string[];
|
|
8
|
-
onSubmit: (payload: {
|
|
9
|
-
scope: DetectionPolicyScope.Service | DetectionPolicyScope.Transaction;
|
|
10
|
-
scopeKey: string;
|
|
11
|
-
name: string;
|
|
12
|
-
}) => void | Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
export declare const CreateOverridePanel: FC<CreateOverridePanelProps>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type DetectionPolicyListItem } from './types';
|
|
2
|
-
/** Local fallback when Detection Policies APIs are unsupported by the host. */
|
|
3
|
-
export declare const MOCK_DEFAULT_POLICIES: DetectionPolicyListItem[];
|
|
4
|
-
export declare const MOCK_OVERRIDE_POLICIES: DetectionPolicyListItem[];
|
package/lib/containers/insights/settings-and-configurations/panels/detection/policies-menu.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { DetectionPolicyListItem } from './types';
|
|
3
|
-
export interface PoliciesMenuProps {
|
|
4
|
-
defaultPolicies: DetectionPolicyListItem[];
|
|
5
|
-
overridePolicies: DetectionPolicyListItem[];
|
|
6
|
-
selectedId: string | null;
|
|
7
|
-
onSelect: (id: string) => void;
|
|
8
|
-
onAddOverride: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const PoliciesMenu: FC<PoliciesMenuProps>;
|
package/lib/containers/insights/settings-and-configurations/panels/detection/policy-editor.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type DetectionPolicyListItem } from './types';
|
|
3
|
-
export interface PolicyEditorProps {
|
|
4
|
-
policy: DetectionPolicyListItem;
|
|
5
|
-
onAddOverride: () => void;
|
|
6
|
-
onSave: (policy: DetectionPolicyListItem) => void | Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare const PolicyEditor: FC<PolicyEditorProps>;
|
package/lib/containers/insights/settings-and-configurations/panels/detection/policy-list-item.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type DetectionPolicyListItem } from './types';
|
|
3
|
-
export interface PolicyListItemProps {
|
|
4
|
-
policy: DetectionPolicyListItem;
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
onSelect: (id: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const PolicyListItem: FC<PolicyListItemProps>;
|
package/lib/containers/insights/settings-and-configurations/panels/guardrails/create-panel.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type InsightsGuardrailInput, type InsightsServiceProfile, type InsightsServiceStat } from '../../../../../types';
|
|
3
|
-
export interface CreatePanelProps {
|
|
4
|
-
services: InsightsServiceStat[];
|
|
5
|
-
profile: InsightsServiceProfile | null;
|
|
6
|
-
profileLoading?: boolean;
|
|
7
|
-
namespace: string;
|
|
8
|
-
service: string;
|
|
9
|
-
onNamespaceChange: (namespace: string) => void;
|
|
10
|
-
onServiceChange: (service: string) => void;
|
|
11
|
-
onSubmit: (input: InsightsGuardrailInput) => void | Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
export declare const CreatePanel: FC<CreatePanelProps>;
|
package/lib/containers/insights/settings-and-configurations/panels/guardrails/edit-panel.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type InsightsGuardrail, type InsightsGuardrailInput, type InsightsServiceProfile } from '../../../../../types';
|
|
3
|
-
export interface EditPanelProps {
|
|
4
|
-
guardrail: InsightsGuardrail;
|
|
5
|
-
profile: InsightsServiceProfile | null;
|
|
6
|
-
profileLoading?: boolean;
|
|
7
|
-
onSave: (input: InsightsGuardrailInput) => void | Promise<void>;
|
|
8
|
-
onDelete: (scopeKey: string) => void | Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
export declare const EditPanel: FC<EditPanelProps>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { GuardrailListItem } from './types';
|
|
3
|
-
export interface GuardrailListItemProps {
|
|
4
|
-
guardrail: GuardrailListItem;
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
onSelect: (id: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const GuardrailListItemCard: FC<GuardrailListItemProps>;
|
package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrails-menu.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { GuardrailListItem } from './types';
|
|
3
|
-
export interface GuardrailsMenuProps {
|
|
4
|
-
guardrails: GuardrailListItem[];
|
|
5
|
-
selectedId: string | null;
|
|
6
|
-
onSelect: (id: string) => void;
|
|
7
|
-
onCreate: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const GuardrailsMenu: FC<GuardrailsMenuProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { InsightsRuleMode } from '../../../../../types';
|
|
2
|
-
export interface GuardrailListItem {
|
|
3
|
-
/** Unique key — namespace/service scopeKey. */
|
|
4
|
-
id: string;
|
|
5
|
-
scopeKey: string;
|
|
6
|
-
/** Primary rule label shown under the title (e.g. "Allowed callees"). */
|
|
7
|
-
ruleLabel: string;
|
|
8
|
-
allowlistCount: number;
|
|
9
|
-
mode: InsightsRuleMode;
|
|
10
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { InsightsServiceStat, InsightsTransactionStat } from '../../../../../types';
|
|
3
|
-
import { InsightsDeviationClass, InsightsPolicyScope } from './types';
|
|
4
|
-
export interface CreateOverridePanelProps {
|
|
5
|
-
services: InsightsServiceStat[];
|
|
6
|
-
transactions: InsightsTransactionStat[];
|
|
7
|
-
/** Existing overrides used to avoid duplicate (class, scopeKey) pairs. */
|
|
8
|
-
existingOverrides: {
|
|
9
|
-
class: InsightsDeviationClass;
|
|
10
|
-
scopeKey: string;
|
|
11
|
-
}[];
|
|
12
|
-
/** Prefill from the policy that opened create-override. */
|
|
13
|
-
initialClass?: InsightsDeviationClass;
|
|
14
|
-
onSubmit: (payload: {
|
|
15
|
-
class: InsightsDeviationClass;
|
|
16
|
-
scope: InsightsPolicyScope.Service | InsightsPolicyScope.Transaction;
|
|
17
|
-
scopeKey: string;
|
|
18
|
-
name: string;
|
|
19
|
-
}) => void | Promise<void>;
|
|
20
|
-
}
|
|
21
|
-
export declare const CreateOverridePanel: FC<CreateOverridePanelProps>;
|
package/lib/containers/insights/settings-and-configurations/panels/learning/policies-menu.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { LearningPolicyListItem } from './types';
|
|
3
|
-
export interface PoliciesMenuProps {
|
|
4
|
-
defaultPolicies: LearningPolicyListItem[];
|
|
5
|
-
overridePolicies: LearningPolicyListItem[];
|
|
6
|
-
selectedId: string | null;
|
|
7
|
-
onSelect: (id: string) => void;
|
|
8
|
-
onAddOverride: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const PoliciesMenu: FC<PoliciesMenuProps>;
|
package/lib/containers/insights/settings-and-configurations/panels/learning/policy-editor.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type LearningPolicyListItem } from './types';
|
|
3
|
-
export interface PolicyEditorProps {
|
|
4
|
-
policy: LearningPolicyListItem;
|
|
5
|
-
onAddOverride: () => void;
|
|
6
|
-
onSave: (policy: LearningPolicyListItem) => void | Promise<void>;
|
|
7
|
-
onDelete?: () => void | Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
export declare const PolicyEditor: FC<PolicyEditorProps>;
|
package/lib/containers/insights/settings-and-configurations/panels/learning/policy-list-item.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type LearningPolicyListItem } from './types';
|
|
3
|
-
export interface PolicyListItemProps {
|
|
4
|
-
policy: LearningPolicyListItem;
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
onSelect: (id: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const PolicyListItem: FC<PolicyListItemProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type CodeProps } from '../../components';
|
|
3
|
-
export interface CodeModalProps extends Omit<CodeProps, 'language' | 'code'> {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
language?: string | null;
|
|
7
|
-
code?: string | null;
|
|
8
|
-
}
|
|
9
|
-
export declare const CodeModal: FC<CodeModalProps>;
|
|
File without changes
|
|
File without changes
|