@datum-cloud/activity-ui 0.1.0

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 (184) hide show
  1. package/README.md +334 -0
  2. package/dist/api/client.d.ts +264 -0
  3. package/dist/api/client.d.ts.map +1 -0
  4. package/dist/components/ActionMultiSelect.d.ts +25 -0
  5. package/dist/components/ActionMultiSelect.d.ts.map +1 -0
  6. package/dist/components/ActionToggle.d.ts +16 -0
  7. package/dist/components/ActionToggle.d.ts.map +1 -0
  8. package/dist/components/ActivityExpandedDetails.d.ts +21 -0
  9. package/dist/components/ActivityExpandedDetails.d.ts.map +1 -0
  10. package/dist/components/ActivityFeed.d.ts +60 -0
  11. package/dist/components/ActivityFeed.d.ts.map +1 -0
  12. package/dist/components/ActivityFeedFilters.d.ts +26 -0
  13. package/dist/components/ActivityFeedFilters.d.ts.map +1 -0
  14. package/dist/components/ActivityFeedItem.d.ts +39 -0
  15. package/dist/components/ActivityFeedItem.d.ts.map +1 -0
  16. package/dist/components/ActivityFeedItemSkeleton.d.ts +11 -0
  17. package/dist/components/ActivityFeedItemSkeleton.d.ts.map +1 -0
  18. package/dist/components/ActivityFeedSummary.d.ts +23 -0
  19. package/dist/components/ActivityFeedSummary.d.ts.map +1 -0
  20. package/dist/components/ApiErrorAlert.d.ts +10 -0
  21. package/dist/components/ApiErrorAlert.d.ts.map +1 -0
  22. package/dist/components/AuditEventViewer.d.ts +14 -0
  23. package/dist/components/AuditEventViewer.d.ts.map +1 -0
  24. package/dist/components/AuditLogExpandedDetails.d.ts +20 -0
  25. package/dist/components/AuditLogExpandedDetails.d.ts.map +1 -0
  26. package/dist/components/AuditLogFeedItem.d.ts +22 -0
  27. package/dist/components/AuditLogFeedItem.d.ts.map +1 -0
  28. package/dist/components/AuditLogFilters.d.ts +50 -0
  29. package/dist/components/AuditLogFilters.d.ts.map +1 -0
  30. package/dist/components/AuditLogQueryComponent.d.ts +18 -0
  31. package/dist/components/AuditLogQueryComponent.d.ts.map +1 -0
  32. package/dist/components/CelEditor.d.ts +31 -0
  33. package/dist/components/CelEditor.d.ts.map +1 -0
  34. package/dist/components/ChangeSourceToggle.d.ts +17 -0
  35. package/dist/components/ChangeSourceToggle.d.ts.map +1 -0
  36. package/dist/components/DateTimeRangePicker.d.ts +15 -0
  37. package/dist/components/DateTimeRangePicker.d.ts.map +1 -0
  38. package/dist/components/EventExpandedDetails.d.ts +17 -0
  39. package/dist/components/EventExpandedDetails.d.ts.map +1 -0
  40. package/dist/components/EventFeedItem.d.ts +29 -0
  41. package/dist/components/EventFeedItem.d.ts.map +1 -0
  42. package/dist/components/EventFeedItemSkeleton.d.ts +11 -0
  43. package/dist/components/EventFeedItemSkeleton.d.ts.map +1 -0
  44. package/dist/components/EventTypeToggle.d.ts +17 -0
  45. package/dist/components/EventTypeToggle.d.ts.map +1 -0
  46. package/dist/components/EventsFeed.d.ts +51 -0
  47. package/dist/components/EventsFeed.d.ts.map +1 -0
  48. package/dist/components/EventsFeedFilters.d.ts +28 -0
  49. package/dist/components/EventsFeedFilters.d.ts.map +1 -0
  50. package/dist/components/FilterBuilder.d.ts +12 -0
  51. package/dist/components/FilterBuilder.d.ts.map +1 -0
  52. package/dist/components/FilterBuilderWithAutocomplete.d.ts +12 -0
  53. package/dist/components/FilterBuilderWithAutocomplete.d.ts.map +1 -0
  54. package/dist/components/PolicyActivityView.d.ts +25 -0
  55. package/dist/components/PolicyActivityView.d.ts.map +1 -0
  56. package/dist/components/PolicyActivityViewSkeleton.d.ts +9 -0
  57. package/dist/components/PolicyActivityViewSkeleton.d.ts.map +1 -0
  58. package/dist/components/PolicyDetailView.d.ts +22 -0
  59. package/dist/components/PolicyDetailView.d.ts.map +1 -0
  60. package/dist/components/PolicyEditView.d.ts +22 -0
  61. package/dist/components/PolicyEditView.d.ts.map +1 -0
  62. package/dist/components/PolicyEditor.d.ts +24 -0
  63. package/dist/components/PolicyEditor.d.ts.map +1 -0
  64. package/dist/components/PolicyList.d.ts +23 -0
  65. package/dist/components/PolicyList.d.ts.map +1 -0
  66. package/dist/components/PolicyPreviewPanel.d.ts +23 -0
  67. package/dist/components/PolicyPreviewPanel.d.ts.map +1 -0
  68. package/dist/components/PolicyPreviewResult.d.ts +17 -0
  69. package/dist/components/PolicyPreviewResult.d.ts.map +1 -0
  70. package/dist/components/PolicyResourceForm.d.ts +19 -0
  71. package/dist/components/PolicyResourceForm.d.ts.map +1 -0
  72. package/dist/components/PolicyRuleEditor.d.ts +22 -0
  73. package/dist/components/PolicyRuleEditor.d.ts.map +1 -0
  74. package/dist/components/PolicyRuleEditorDialog.d.ts +30 -0
  75. package/dist/components/PolicyRuleEditorDialog.d.ts.map +1 -0
  76. package/dist/components/PolicyRuleList.d.ts +26 -0
  77. package/dist/components/PolicyRuleList.d.ts.map +1 -0
  78. package/dist/components/PolicyRuleListItem.d.ts +29 -0
  79. package/dist/components/PolicyRuleListItem.d.ts.map +1 -0
  80. package/dist/components/ReindexJobCreate.d.ts +21 -0
  81. package/dist/components/ReindexJobCreate.d.ts.map +1 -0
  82. package/dist/components/ReindexJobDetailView.d.ts +21 -0
  83. package/dist/components/ReindexJobDetailView.d.ts.map +1 -0
  84. package/dist/components/ReindexJobDialog.d.ts +21 -0
  85. package/dist/components/ReindexJobDialog.d.ts.map +1 -0
  86. package/dist/components/ReindexJobList.d.ts +21 -0
  87. package/dist/components/ReindexJobList.d.ts.map +1 -0
  88. package/dist/components/ResourceHistoryView.d.ts +54 -0
  89. package/dist/components/ResourceHistoryView.d.ts.map +1 -0
  90. package/dist/components/RulePreviewPanel.d.ts +23 -0
  91. package/dist/components/RulePreviewPanel.d.ts.map +1 -0
  92. package/dist/components/SampleInputTemplates.d.ts +26 -0
  93. package/dist/components/SampleInputTemplates.d.ts.map +1 -0
  94. package/dist/components/SimpleQueryBuilder.d.ts +12 -0
  95. package/dist/components/SimpleQueryBuilder.d.ts.map +1 -0
  96. package/dist/components/TenantBadge.d.ts +17 -0
  97. package/dist/components/TenantBadge.d.ts.map +1 -0
  98. package/dist/components/UserSelect.d.ts +24 -0
  99. package/dist/components/UserSelect.d.ts.map +1 -0
  100. package/dist/components/VerbToggle.d.ts +16 -0
  101. package/dist/components/VerbToggle.d.ts.map +1 -0
  102. package/dist/components/ui/add-filter-dropdown.d.ts +26 -0
  103. package/dist/components/ui/add-filter-dropdown.d.ts.map +1 -0
  104. package/dist/components/ui/alert.d.ts +9 -0
  105. package/dist/components/ui/alert.d.ts.map +1 -0
  106. package/dist/components/ui/badge.d.ts +10 -0
  107. package/dist/components/ui/badge.d.ts.map +1 -0
  108. package/dist/components/ui/button.d.ts +12 -0
  109. package/dist/components/ui/button.d.ts.map +1 -0
  110. package/dist/components/ui/card.d.ts +9 -0
  111. package/dist/components/ui/card.d.ts.map +1 -0
  112. package/dist/components/ui/checkbox.d.ts +5 -0
  113. package/dist/components/ui/checkbox.d.ts.map +1 -0
  114. package/dist/components/ui/combobox.d.ts +27 -0
  115. package/dist/components/ui/combobox.d.ts.map +1 -0
  116. package/dist/components/ui/dialog.d.ts +20 -0
  117. package/dist/components/ui/dialog.d.ts.map +1 -0
  118. package/dist/components/ui/filter-chip.d.ts +37 -0
  119. package/dist/components/ui/filter-chip.d.ts.map +1 -0
  120. package/dist/components/ui/input.d.ts +6 -0
  121. package/dist/components/ui/input.d.ts.map +1 -0
  122. package/dist/components/ui/label.d.ts +8 -0
  123. package/dist/components/ui/label.d.ts.map +1 -0
  124. package/dist/components/ui/multi-combobox.d.ts +24 -0
  125. package/dist/components/ui/multi-combobox.d.ts.map +1 -0
  126. package/dist/components/ui/select.d.ts +14 -0
  127. package/dist/components/ui/select.d.ts.map +1 -0
  128. package/dist/components/ui/separator.d.ts +5 -0
  129. package/dist/components/ui/separator.d.ts.map +1 -0
  130. package/dist/components/ui/sheet.d.ts +23 -0
  131. package/dist/components/ui/sheet.d.ts.map +1 -0
  132. package/dist/components/ui/skeleton.d.ts +3 -0
  133. package/dist/components/ui/skeleton.d.ts.map +1 -0
  134. package/dist/components/ui/tabs.d.ts +8 -0
  135. package/dist/components/ui/tabs.d.ts.map +1 -0
  136. package/dist/components/ui/textarea.d.ts +6 -0
  137. package/dist/components/ui/textarea.d.ts.map +1 -0
  138. package/dist/components/ui/time-range-dropdown.d.ts +29 -0
  139. package/dist/components/ui/time-range-dropdown.d.ts.map +1 -0
  140. package/dist/components/ui/tooltip.d.ts +8 -0
  141. package/dist/components/ui/tooltip.d.ts.map +1 -0
  142. package/dist/hooks/useActivityFeed.d.ts +101 -0
  143. package/dist/hooks/useActivityFeed.d.ts.map +1 -0
  144. package/dist/hooks/useAuditLogFacets.d.ts +33 -0
  145. package/dist/hooks/useAuditLogFacets.d.ts.map +1 -0
  146. package/dist/hooks/useAuditLogQuery.d.ts +21 -0
  147. package/dist/hooks/useAuditLogQuery.d.ts.map +1 -0
  148. package/dist/hooks/useEventFacets.d.ts +30 -0
  149. package/dist/hooks/useEventFacets.d.ts.map +1 -0
  150. package/dist/hooks/useEventsFeed.d.ts +93 -0
  151. package/dist/hooks/useEventsFeed.d.ts.map +1 -0
  152. package/dist/hooks/useFacets.d.ts +29 -0
  153. package/dist/hooks/useFacets.d.ts.map +1 -0
  154. package/dist/hooks/usePolicyEditor.d.ts +71 -0
  155. package/dist/hooks/usePolicyEditor.d.ts.map +1 -0
  156. package/dist/hooks/usePolicyList.d.ts +35 -0
  157. package/dist/hooks/usePolicyList.d.ts.map +1 -0
  158. package/dist/hooks/usePolicyPreview.d.ts +72 -0
  159. package/dist/hooks/usePolicyPreview.d.ts.map +1 -0
  160. package/dist/hooks/useReindexJobs.d.ts +37 -0
  161. package/dist/hooks/useReindexJobs.d.ts.map +1 -0
  162. package/dist/index.d.ts +150 -0
  163. package/dist/index.d.ts.map +1 -0
  164. package/dist/index.esm.js +16224 -0
  165. package/dist/index.esm.js.map +1 -0
  166. package/dist/index.js +16377 -0
  167. package/dist/index.js.map +1 -0
  168. package/dist/lib/errors.d.ts +50 -0
  169. package/dist/lib/errors.d.ts.map +1 -0
  170. package/dist/lib/extractFieldPaths.d.ts +33 -0
  171. package/dist/lib/extractFieldPaths.d.ts.map +1 -0
  172. package/dist/lib/utils.d.ts +3 -0
  173. package/dist/lib/utils.d.ts.map +1 -0
  174. package/dist/types/activity.d.ts +366 -0
  175. package/dist/types/activity.d.ts.map +1 -0
  176. package/dist/types/index.d.ts +117 -0
  177. package/dist/types/index.d.ts.map +1 -0
  178. package/dist/types/k8s-event.d.ts +224 -0
  179. package/dist/types/k8s-event.d.ts.map +1 -0
  180. package/dist/types/policy.d.ts +333 -0
  181. package/dist/types/policy.d.ts.map +1 -0
  182. package/dist/types/reindex.d.ts +102 -0
  183. package/dist/types/reindex.d.ts.map +1 -0
  184. package/package.json +87 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventsFeedFilters.d.ts","sourceRoot":"","sources":["../../src/components/EventsFeedFilters.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAQvD,MAAM,WAAW,sBAAsB;IACrC,8CAA8C;IAC9C,MAAM,EAAE,iBAAiB,CAAC;IAC1B,2BAA2B;IAC3B,OAAO,EAAE,WAAW,CAAC;IACrB,yBAAyB;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,yCAAyC;IACzC,eAAe,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAChD,6CAA6C;IAC7C,iBAAiB,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;IAClD,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4FAA4F;IAC5F,aAAa,CAAC,EAAE,KAAK,CAAC,eAAe,GAAG,SAAS,GAAG,YAAY,GAAG,kBAAkB,GAAG,cAAc,GAAG,WAAW,CAAC,CAAC;IACtH,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgFD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,OAAO,EACP,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,QAAgB,EAChB,aAAkB,EAClB,SAAc,EACd,SAAS,GACV,EAAE,sBAAsB,2CA2RxB"}
@@ -0,0 +1,12 @@
1
+ import type { AuditLogQuerySpec } from '../types';
2
+ export interface FilterBuilderProps {
3
+ onFilterChange: (spec: AuditLogQuerySpec) => void;
4
+ initialFilter?: string;
5
+ initialLimit?: number;
6
+ className?: string;
7
+ }
8
+ /**
9
+ * FilterBuilder component for constructing CEL filter expressions
10
+ */
11
+ export declare function FilterBuilder({ onFilterChange, initialFilter, initialLimit, className, }: FilterBuilderProps): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=FilterBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterBuilder.d.ts","sourceRoot":"","sources":["../../src/components/FilterBuilder.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AASlD,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,cAAc,EACd,aAAkB,EAClB,YAAkB,EAClB,SAAc,GACf,EAAE,kBAAkB,2CA8JpB"}
@@ -0,0 +1,12 @@
1
+ import type { AuditLogQuerySpec } from '../types';
2
+ export interface FilterBuilderWithAutocompleteProps {
3
+ onFilterChange: (spec: AuditLogQuerySpec) => void;
4
+ initialFilter?: string;
5
+ initialLimit?: number;
6
+ className?: string;
7
+ }
8
+ /**
9
+ * Enhanced FilterBuilder with autocomplete suggestions for CEL expressions
10
+ */
11
+ export declare function FilterBuilderWithAutocomplete({ onFilterChange, initialFilter, initialLimit, className, }: FilterBuilderWithAutocompleteProps): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=FilterBuilderWithAutocomplete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterBuilderWithAutocomplete.d.ts","sourceRoot":"","sources":["../../src/components/FilterBuilderWithAutocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AASlD,MAAM,WAAW,kCAAkC;IACjD,cAAc,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA8DD;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,cAAc,EACd,aAAkB,EAClB,YAAkB,EAClB,SAAc,GACf,EAAE,kCAAkC,2CA8VpC"}
@@ -0,0 +1,25 @@
1
+ import type { ActivityApiClient } from '../api/client';
2
+ import type { ActivityPolicyResource } from '../types/policy';
3
+ import type { ResourceRef, ErrorFormatter } from '../types/activity';
4
+ export interface PolicyActivityViewProps {
5
+ /** API client instance */
6
+ client: ActivityApiClient;
7
+ /** Policy resource configuration to filter by */
8
+ policyResource: ActivityPolicyResource;
9
+ /** Policy name for filtering events by the ActivityPolicy itself */
10
+ policyName: string;
11
+ /** Handler for resource link clicks in activity summaries */
12
+ onResourceClick?: (resource: ResourceRef) => void;
13
+ /** Additional CSS class */
14
+ className?: string;
15
+ /** Custom error formatter */
16
+ errorFormatter?: ErrorFormatter;
17
+ }
18
+ /**
19
+ * PolicyActivityView displays activity and timeline views for a specific policy.
20
+ *
21
+ * - Activity: Shows translated activities generated by this policy (outputs from the policy)
22
+ * - Policy Events: Shows events related to the ActivityPolicy resource itself
23
+ */
24
+ export declare function PolicyActivityView({ client, policyResource, policyName, onResourceClick, className, errorFormatter, }: PolicyActivityViewProps): import("react/jsx-runtime").JSX.Element;
25
+ //# sourceMappingURL=PolicyActivityView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyActivityView.d.ts","sourceRoot":"","sources":["../../src/components/PolicyActivityView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIrE,MAAM,WAAW,uBAAuB;IACtC,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,iDAAiD;IACjD,cAAc,EAAE,sBAAsB,CAAC;IACvC,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;IAClD,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAID;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,cAAc,EACd,UAAU,EACV,eAAe,EACf,SAAc,EACd,cAAc,GACf,EAAE,uBAAuB,2CAgFzB"}
@@ -0,0 +1,9 @@
1
+ export interface PolicyActivityViewSkeletonProps {
2
+ /** Additional CSS class */
3
+ className?: string;
4
+ }
5
+ /**
6
+ * PolicyActivityViewSkeleton renders a loading placeholder that matches PolicyActivityView layout
7
+ */
8
+ export declare function PolicyActivityViewSkeleton({ className, }: PolicyActivityViewSkeletonProps): import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=PolicyActivityViewSkeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyActivityViewSkeleton.d.ts","sourceRoot":"","sources":["../../src/components/PolicyActivityViewSkeleton.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,+BAA+B;IAC9C,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,SAAc,GACf,EAAE,+BAA+B,2CAsCjC"}
@@ -0,0 +1,22 @@
1
+ import type { ResourceRef, ErrorFormatter } from '../types/activity';
2
+ import { ActivityApiClient } from '../api/client';
3
+ export interface PolicyDetailViewProps {
4
+ /** API client instance */
5
+ client: ActivityApiClient;
6
+ /** Policy name to display */
7
+ policyName: string;
8
+ /** Callback when edit button is clicked */
9
+ onEdit?: () => void;
10
+ /** Handler for resource link clicks in activity summaries */
11
+ onResourceClick?: (resource: ResourceRef) => void;
12
+ /** Additional CSS class */
13
+ className?: string;
14
+ /** Custom error formatter for customizing error messages */
15
+ errorFormatter?: ErrorFormatter;
16
+ }
17
+ /**
18
+ * PolicyDetailView displays a read-only view of an ActivityPolicy
19
+ * with Activity/Events tabs and an Edit button
20
+ */
21
+ export declare function PolicyDetailView({ client, policyName, onEdit, onResourceClick, className, errorFormatter, }: PolicyDetailViewProps): import("react/jsx-runtime").JSX.Element;
22
+ //# sourceMappingURL=PolicyDetailView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyDetailView.d.ts","sourceRoot":"","sources":["../../src/components/PolicyDetailView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAiBlD,MAAM,WAAW,qBAAqB;IACpC,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;IAClD,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,UAAU,EACV,MAAM,EACN,eAAe,EACf,SAAc,EACd,cAAc,GACf,EAAE,qBAAqB,2CAuNvB"}
@@ -0,0 +1,22 @@
1
+ import type { ErrorFormatter } from '../types/activity';
2
+ import { ActivityApiClient } from '../api/client';
3
+ export interface PolicyEditViewProps {
4
+ /** API client instance */
5
+ client: ActivityApiClient;
6
+ /** Policy name to edit (undefined for new policy) */
7
+ policyName?: string;
8
+ /** Callback when save succeeds */
9
+ onSaveSuccess?: (policyName: string) => void;
10
+ /** Callback when cancel is clicked */
11
+ onCancel?: () => void;
12
+ /** Additional CSS class */
13
+ className?: string;
14
+ /** Custom error formatter for customizing error messages */
15
+ errorFormatter?: ErrorFormatter;
16
+ }
17
+ /**
18
+ * PolicyEditView provides an editor for creating/editing ActivityPolicies
19
+ * with Editor and Preview tabs (Activity tab is in the separate detail view)
20
+ */
21
+ export declare function PolicyEditView({ client, policyName, onSaveSuccess, onCancel, className, errorFormatter, }: PolicyEditViewProps): import("react/jsx-runtime").JSX.Element;
22
+ //# sourceMappingURL=PolicyEditView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyEditView.d.ts","sourceRoot":"","sources":["../../src/components/PolicyEditView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AA2BlD,MAAM,WAAW,mBAAmB;IAClC,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,UAAU,EACV,aAAa,EACb,QAAQ,EACR,SAAc,EACd,cAAc,GACf,EAAE,mBAAmB,2CAiWrB"}
@@ -0,0 +1,24 @@
1
+ import type { ResourceRef, ErrorFormatter } from '../types/activity';
2
+ import { ActivityApiClient } from '../api/client';
3
+ export interface PolicyEditorProps {
4
+ /** API client instance */
5
+ client: ActivityApiClient;
6
+ /** Policy name to edit (undefined for new policy) */
7
+ policyName?: string;
8
+ /** Callback when save succeeds */
9
+ onSaveSuccess?: (policyName: string) => void;
10
+ /** Callback when cancel is clicked */
11
+ onCancel?: () => void;
12
+ /** Handler for resource link clicks in preview */
13
+ onResourceClick?: (resource: ResourceRef) => void;
14
+ /** Additional CSS class */
15
+ className?: string;
16
+ /** Custom error formatter for customizing error messages */
17
+ errorFormatter?: ErrorFormatter;
18
+ }
19
+ /**
20
+ * PolicyEditor provides a full editor for creating/editing ActivityPolicies
21
+ * with a preview panel for testing
22
+ */
23
+ export declare function PolicyEditor({ client, policyName, onSaveSuccess, onCancel, onResourceClick, className, errorFormatter, }: PolicyEditorProps): import("react/jsx-runtime").JSX.Element;
24
+ //# sourceMappingURL=PolicyEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyEditor.d.ts","sourceRoot":"","sources":["../../src/components/PolicyEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AA6BlD,MAAM,WAAW,iBAAiB;IAChC,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,kDAAkD;IAClD,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;IAClD,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,UAAU,EACV,aAAa,EACb,QAAQ,EACR,eAAe,EACf,SAAc,EACd,cAAc,GACf,EAAE,iBAAiB,2CA2XnB"}
@@ -0,0 +1,23 @@
1
+ import type { ErrorFormatter } from '../types/activity';
2
+ import { ActivityApiClient } from '../api/client';
3
+ export interface PolicyListProps {
4
+ /** API client instance */
5
+ client: ActivityApiClient;
6
+ /** Callback when a policy is selected for viewing */
7
+ onViewPolicy?: (policyName: string) => void;
8
+ /** Callback when a policy is selected for editing (deprecated - use onViewPolicy) */
9
+ onEditPolicy?: (policyName: string) => void;
10
+ /** Callback when create new policy is requested */
11
+ onCreatePolicy?: () => void;
12
+ /** Whether to show grouped by API group (default: true) */
13
+ groupByApiGroup?: boolean;
14
+ /** Additional CSS class */
15
+ className?: string;
16
+ /** Custom error formatter for customizing error messages */
17
+ errorFormatter?: ErrorFormatter;
18
+ }
19
+ /**
20
+ * PolicyList displays all ActivityPolicies with edit actions
21
+ */
22
+ export declare function PolicyList({ client, onViewPolicy, onEditPolicy, onCreatePolicy, groupByApiGroup, className, errorFormatter, }: PolicyListProps): import("react/jsx-runtime").JSX.Element;
23
+ //# sourceMappingURL=PolicyList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyList.d.ts","sourceRoot":"","sources":["../../src/components/PolicyList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAUlD,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,qDAAqD;IACrD,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,qFAAqF;IACrF,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,mDAAmD;IACnD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAwDD;;GAEG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,eAAsB,EACtB,SAAc,EACd,cAAc,GACf,EAAE,eAAe,2CAgPjB"}
@@ -0,0 +1,23 @@
1
+ import type { PolicyPreviewStatus, PolicyPreviewInput } from '../types/policy';
2
+ import type { ResourceRef } from '../types/activity';
3
+ export interface PolicyPreviewPanelProps {
4
+ /** Preview result (if available) */
5
+ result: PolicyPreviewStatus | null;
6
+ /** Input data used for preview */
7
+ inputs?: PolicyPreviewInput[];
8
+ /** Whether preview is loading */
9
+ isLoading: boolean;
10
+ /** Error message */
11
+ error: Error | null;
12
+ /** Handler for resource link clicks in result */
13
+ onResourceClick?: (resource: ResourceRef) => void;
14
+ /** Callback to run preview (with auto-fetch) */
15
+ onRunPreview?: () => void;
16
+ /** Additional CSS class */
17
+ className?: string;
18
+ }
19
+ /**
20
+ * PolicyPreviewPanel displays preview results for testing policies
21
+ */
22
+ export declare function PolicyPreviewPanel({ result, inputs, isLoading, error, onResourceClick, onRunPreview, className, }: PolicyPreviewPanelProps): import("react/jsx-runtime").JSX.Element;
23
+ //# sourceMappingURL=PolicyPreviewPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyPreviewPanel.d.ts","sourceRoot":"","sources":["../../src/components/PolicyPreviewPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAQrD,MAAM,WAAW,uBAAuB;IACtC,oCAAoC;IACpC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACnC,kCAAkC;IAClC,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,iCAAiC;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,iDAAiD;IACjD,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;IAClD,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAGD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,MAAM,EACN,SAAS,EACT,KAAK,EACL,eAAe,EACf,YAAY,EACZ,SAAc,GACf,EAAE,uBAAuB,2CAsFzB"}
@@ -0,0 +1,17 @@
1
+ import type { PolicyPreviewStatus, PolicyPreviewInput } from '../types/policy';
2
+ import type { ResourceRef } from '../types/activity';
3
+ export interface PolicyPreviewResultProps {
4
+ /** Preview result status */
5
+ result: PolicyPreviewStatus;
6
+ /** Input data used for preview */
7
+ inputs?: PolicyPreviewInput[];
8
+ /** Handler for resource link clicks */
9
+ onResourceClick?: (resource: ResourceRef) => void;
10
+ /** Additional CSS class */
11
+ className?: string;
12
+ }
13
+ /**
14
+ * PolicyPreviewResult displays the results of a policy preview execution
15
+ */
16
+ export declare function PolicyPreviewResult({ result, inputs, onResourceClick, className, }: PolicyPreviewResultProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=PolicyPreviewResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyPreviewResult.d.ts","sourceRoot":"","sources":["../../src/components/PolicyPreviewResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAA6C,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1H,OAAO,KAAK,EAAE,WAAW,EAAY,MAAM,mBAAmB,CAAC;AAY/D,MAAM,WAAW,wBAAwB;IACvC,4BAA4B;IAC5B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,kCAAkC;IAClC,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,uCAAuC;IACvC,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;IAClD,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6FD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,MAAW,EACX,eAAe,EACf,SAAc,GACf,EAAE,wBAAwB,2CA6K1B"}
@@ -0,0 +1,19 @@
1
+ import type { ActivityPolicyResource } from '../types/policy';
2
+ import type { ActivityApiClient } from '../api/client';
3
+ export interface PolicyResourceFormProps {
4
+ /** Current resource configuration */
5
+ resource: ActivityPolicyResource;
6
+ /** Callback when resource changes */
7
+ onChange: (resource: ActivityPolicyResource) => void;
8
+ /** Optional API client for fetching discovered resources */
9
+ client?: ActivityApiClient;
10
+ /** Whether this is editing an existing policy (makes API group and kind read-only) */
11
+ isEditMode?: boolean;
12
+ /** Additional CSS class */
13
+ className?: string;
14
+ }
15
+ /**
16
+ * PolicyResourceForm provides the form for editing policy resource configuration
17
+ */
18
+ export declare function PolicyResourceForm({ resource, onChange, client, isEditMode, className, }: PolicyResourceFormProps): import("react/jsx-runtime").JSX.Element | null;
19
+ //# sourceMappingURL=PolicyResourceForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyResourceForm.d.ts","sourceRoot":"","sources":["../../src/components/PolicyResourceForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAYvD,MAAM,WAAW,uBAAuB;IACtC,qCAAqC;IACrC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,qCAAqC;IACrC,QAAQ,EAAE,CAAC,QAAQ,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACrD,4DAA4D;IAC5D,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,sFAAsF;IACtF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuBD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,UAAkB,EAClB,SAAc,GACf,EAAE,uBAAuB,kDA4RzB"}
@@ -0,0 +1,22 @@
1
+ import type { ActivityPolicyRule } from '../types/policy';
2
+ export interface PolicyRuleEditorProps {
3
+ /** The rule being edited */
4
+ rule: ActivityPolicyRule;
5
+ /** Rule index for display */
6
+ index: number;
7
+ /** Rule type (audit or event) for context-sensitive help */
8
+ ruleType: 'audit' | 'event';
9
+ /** Whether this rule is highlighted (e.g., matched in preview) */
10
+ isHighlighted?: boolean;
11
+ /** Callback when rule changes */
12
+ onChange: (rule: ActivityPolicyRule) => void;
13
+ /** Callback to delete this rule */
14
+ onDelete: () => void;
15
+ /** Additional CSS class */
16
+ className?: string;
17
+ }
18
+ /**
19
+ * PolicyRuleEditor provides editing UI for a single policy rule
20
+ */
21
+ export declare function PolicyRuleEditor({ rule, index, ruleType, isHighlighted, onChange, onDelete, className, }: PolicyRuleEditorProps): import("react/jsx-runtime").JSX.Element;
22
+ //# sourceMappingURL=PolicyRuleEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyRuleEditor.d.ts","sourceRoot":"","sources":["../../src/components/PolicyRuleEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAM1D,MAAM,WAAW,qBAAqB;IACpC,4BAA4B;IAC5B,IAAI,EAAE,kBAAkB,CAAC;IACzB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,kEAAkE;IAClE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iCAAiC;IACjC,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,mCAAmC;IACnC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA+DD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,aAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,SAAc,GACf,EAAE,qBAAqB,2CA2KvB"}
@@ -0,0 +1,30 @@
1
+ import type { ActivityPolicyRule } from '../types/policy';
2
+ import type { ActivityApiClient } from '../api/client';
3
+ export interface PolicyRuleEditorDialogProps {
4
+ /** Whether the dialog is open */
5
+ open: boolean;
6
+ /** Callback when open state changes */
7
+ onOpenChange: (open: boolean) => void;
8
+ /** Rule being edited (null for creating new rule) */
9
+ rule: ActivityPolicyRule | null;
10
+ /** Rule type (audit or event) */
11
+ ruleType: 'audit' | 'event';
12
+ /** Existing rule names for uniqueness validation */
13
+ existingNames: string[];
14
+ /** Policy resource configuration */
15
+ policyResource: {
16
+ apiGroup: string;
17
+ kind: string;
18
+ };
19
+ /** Activity API client for preview */
20
+ apiClient: ActivityApiClient;
21
+ /** Callback when rule is saved */
22
+ onSave: (rule: ActivityPolicyRule) => void;
23
+ /** Callback when canceled */
24
+ onCancel: () => void;
25
+ }
26
+ /**
27
+ * PolicyRuleEditorDialog provides a dialog interface for editing policy rules
28
+ */
29
+ export declare function PolicyRuleEditorDialog({ open, onOpenChange, rule, ruleType, existingNames, policyResource, apiClient, onSave, onCancel, }: PolicyRuleEditorDialogProps): import("react/jsx-runtime").JSX.Element;
30
+ //# sourceMappingURL=PolicyRuleEditorDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyRuleEditorDialog.d.ts","sourceRoot":"","sources":["../../src/components/PolicyRuleEditorDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAuB,MAAM,iBAAiB,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAiBvD,MAAM,WAAW,2BAA2B;IAC1C,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,uCAAuC;IACvC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,qDAAqD;IACrD,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAChC,iCAAiC;IACjC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,oDAAoD;IACpD,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,oCAAoC;IACpC,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,sCAAsC;IACtC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,kCAAkC;IAClC,MAAM,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3C,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AA+FD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,SAAS,EACT,MAAM,EACN,QAAQ,GACT,EAAE,2BAA2B,2CAqW7B"}
@@ -0,0 +1,26 @@
1
+ import type { ActivityPolicyRule } from '../types/policy';
2
+ import type { ActivityApiClient } from '../api/client';
3
+ export interface PolicyRuleListProps {
4
+ /** Audit rules */
5
+ auditRules: ActivityPolicyRule[];
6
+ /** Event rules */
7
+ eventRules: ActivityPolicyRule[];
8
+ /** Policy resource configuration */
9
+ policyResource: {
10
+ apiGroup: string;
11
+ kind: string;
12
+ };
13
+ /** Activity API client for preview */
14
+ apiClient: ActivityApiClient;
15
+ /** Callback when audit rules change */
16
+ onAuditRulesChange: (rules: ActivityPolicyRule[]) => void;
17
+ /** Callback when event rules change */
18
+ onEventRulesChange: (rules: ActivityPolicyRule[]) => void;
19
+ /** Additional CSS class */
20
+ className?: string;
21
+ }
22
+ /**
23
+ * PolicyRuleList displays and manages both audit and event rules with tabs
24
+ */
25
+ export declare function PolicyRuleList({ auditRules, eventRules, policyResource, apiClient, onAuditRulesChange, onEventRulesChange, className, }: PolicyRuleListProps): import("react/jsx-runtime").JSX.Element;
26
+ //# sourceMappingURL=PolicyRuleList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyRuleList.d.ts","sourceRoot":"","sources":["../../src/components/PolicyRuleList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAOvD,MAAM,WAAW,mBAAmB;IAClC,kBAAkB;IAClB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,kBAAkB;IAClB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,oCAAoC;IACpC,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,sCAAsC;IACtC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,uCAAuC;IACvC,kBAAkB,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;IAC1D,uCAAuC;IACvC,kBAAkB,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;IAC1D,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,UAAU,EACV,UAAU,EACV,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,SAAc,GACf,EAAE,mBAAmB,2CAqNrB"}
@@ -0,0 +1,29 @@
1
+ import type { ActivityPolicyRule } from '../types/policy';
2
+ export interface PolicyRuleListItemProps {
3
+ /** The rule being displayed */
4
+ rule: ActivityPolicyRule;
5
+ /** Rule type (audit or event) for context */
6
+ ruleType: 'audit' | 'event';
7
+ /** Rule index for display */
8
+ index: number;
9
+ /** Callback when edit button is clicked */
10
+ onEdit: () => void;
11
+ /** Callback when delete button is clicked */
12
+ onDelete: () => void;
13
+ /** Callback when move up button is clicked */
14
+ onMoveUp?: () => void;
15
+ /** Callback when move down button is clicked */
16
+ onMoveDown?: () => void;
17
+ /** Whether this rule can be moved up */
18
+ canMoveUp: boolean;
19
+ /** Whether this rule can be moved down */
20
+ canMoveDown: boolean;
21
+ /** Additional CSS class */
22
+ className?: string;
23
+ }
24
+ /**
25
+ * PolicyRuleListItem displays a single rule in a compact list format
26
+ * with inline edit, delete, and reordering controls
27
+ */
28
+ export declare function PolicyRuleListItem({ rule, ruleType, index, onEdit, onDelete, onMoveUp, onMoveDown, canMoveUp, canMoveDown, className, }: PolicyRuleListItemProps): import("react/jsx-runtime").JSX.Element;
29
+ //# sourceMappingURL=PolicyRuleListItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolicyRuleListItem.d.ts","sourceRoot":"","sources":["../../src/components/PolicyRuleListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI1D,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,IAAI,EAAE,kBAAkB,CAAC;IACzB,6CAA6C;IAC7C,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,wCAAwC;IACxC,SAAS,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,WAAW,EAAE,OAAO,CAAC;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,WAAW,EACX,SAAc,GACf,EAAE,uBAAuB,2CA2FzB"}
@@ -0,0 +1,21 @@
1
+ import type { ErrorFormatter } from '../types/activity';
2
+ import { ActivityApiClient } from '../api/client';
3
+ export interface ReindexJobCreateProps {
4
+ /** API client instance */
5
+ client: ActivityApiClient;
6
+ /** Pre-selected policy name (required for simplified flow) */
7
+ policyName?: string;
8
+ /** Callback when job is successfully created */
9
+ onCreate?: (jobName: string) => void;
10
+ /** Callback when cancel is clicked */
11
+ onCancel?: () => void;
12
+ /** Additional CSS class */
13
+ className?: string;
14
+ /** Custom error formatter for customizing error messages */
15
+ errorFormatter?: ErrorFormatter;
16
+ }
17
+ /**
18
+ * Simplified ReindexJobCreate for quick policy reindexing
19
+ */
20
+ export declare function ReindexJobCreate({ client, policyName, onCreate, onCancel, className, errorFormatter, }: ReindexJobCreateProps): import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=ReindexJobCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReindexJobCreate.d.ts","sourceRoot":"","sources":["../../src/components/ReindexJobCreate.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMlD,MAAM,WAAW,qBAAqB;IACpC,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAUD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAc,EACd,cAAc,GACf,EAAE,qBAAqB,2CAoIvB"}
@@ -0,0 +1,21 @@
1
+ import type { ErrorFormatter } from '../types/activity';
2
+ import { ActivityApiClient } from '../api/client';
3
+ export interface ReindexJobDetailViewProps {
4
+ /** API client instance */
5
+ client: ActivityApiClient;
6
+ /** Job name to display */
7
+ jobName: string;
8
+ /** Callback when delete button is clicked */
9
+ onDelete?: () => void;
10
+ /** Whether to watch for real-time updates (default: true) */
11
+ watch?: boolean;
12
+ /** Additional CSS class */
13
+ className?: string;
14
+ /** Custom error formatter for customizing error messages */
15
+ errorFormatter?: ErrorFormatter;
16
+ }
17
+ /**
18
+ * ReindexJobDetailView displays status of a ReindexJob
19
+ */
20
+ export declare function ReindexJobDetailView({ client, jobName, onDelete, watch, className, errorFormatter, }: ReindexJobDetailViewProps): import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=ReindexJobDetailView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReindexJobDetailView.d.ts","sourceRoot":"","sources":["../../src/components/ReindexJobDetailView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAmBlD,MAAM,WAAW,yBAAyB;IACxC,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAmBD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,OAAO,EACP,QAAQ,EACR,KAAY,EACZ,SAAc,EACd,cAAc,GACf,EAAE,yBAAyB,2CAkK3B"}
@@ -0,0 +1,21 @@
1
+ import type { ErrorFormatter } from '../types/activity';
2
+ import { ActivityApiClient } from '../api/client';
3
+ export interface ReindexJobDialogProps {
4
+ /** API client instance */
5
+ client: ActivityApiClient;
6
+ /** Policy name to reindex */
7
+ policyName: string;
8
+ /** Whether the dialog is open */
9
+ open: boolean;
10
+ /** Callback when dialog should close */
11
+ onOpenChange: (open: boolean) => void;
12
+ /** Callback when job is successfully created */
13
+ onSuccess?: (jobName: string) => void;
14
+ /** Custom error formatter */
15
+ errorFormatter?: ErrorFormatter;
16
+ }
17
+ /**
18
+ * Dialog for quickly reindexing a policy
19
+ */
20
+ export declare function ReindexJobDialog({ client, policyName, open, onOpenChange, onSuccess, errorFormatter, }: ReindexJobDialogProps): import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=ReindexJobDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReindexJobDialog.d.ts","sourceRoot":"","sources":["../../src/components/ReindexJobDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAmBlD,MAAM,WAAW,qBAAqB;IACpC,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,wCAAwC;IACxC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,gDAAgD;IAChD,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,6BAA6B;IAC7B,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAUD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,UAAU,EACV,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,cAAc,GACf,EAAE,qBAAqB,2CA4GvB"}
@@ -0,0 +1,21 @@
1
+ import type { ErrorFormatter } from '../types/activity';
2
+ import { ActivityApiClient } from '../api/client';
3
+ export interface ReindexJobListProps {
4
+ /** API client instance */
5
+ client: ActivityApiClient;
6
+ /** Callback when a job is selected for viewing */
7
+ onViewJob?: (jobName: string) => void;
8
+ /** Callback when create new job is requested */
9
+ onCreateJob?: () => void;
10
+ /** Whether to watch for real-time updates (default: true) */
11
+ watch?: boolean;
12
+ /** Additional CSS class */
13
+ className?: string;
14
+ /** Custom error formatter for customizing error messages */
15
+ errorFormatter?: ErrorFormatter;
16
+ }
17
+ /**
18
+ * ReindexJobList displays all ReindexJobs with real-time updates
19
+ */
20
+ export declare function ReindexJobList({ client, onViewJob, onCreateJob, watch, className, errorFormatter, }: ReindexJobListProps): import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=ReindexJobList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReindexJobList.d.ts","sourceRoot":"","sources":["../../src/components/ReindexJobList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAWlD,MAAM,WAAW,mBAAmB;IAClC,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,kDAAkD;IAClD,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAiED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,SAAS,EACT,WAAW,EACX,KAAY,EACZ,SAAc,EACd,cAAc,GACf,EAAE,mBAAmB,2CA8MrB"}
@@ -0,0 +1,54 @@
1
+ import type { Activity, ResourceLinkResolver, ErrorFormatter } from '../types/activity';
2
+ import { ResourceLinkClickHandler } from './ActivityFeedSummary';
3
+ import { ActivityApiClient } from '../api/client';
4
+ /**
5
+ * Resource filter for searching by resource attributes
6
+ */
7
+ export interface ResourceFilter {
8
+ /** API group of the resource (e.g., 'networking.k8s.io') */
9
+ apiGroup?: string;
10
+ /** Kind of the resource (e.g., 'HTTPProxy') */
11
+ kind?: string;
12
+ /** Namespace of the resource */
13
+ namespace?: string;
14
+ /** Name of the resource (supports partial match) */
15
+ name?: string;
16
+ /** UID of the resource (exact match, takes precedence over other filters) */
17
+ uid?: string;
18
+ }
19
+ export interface ResourceHistoryViewProps {
20
+ /** API client instance */
21
+ client: ActivityApiClient;
22
+ /** Resource filter - can filter by UID or by apiGroup/kind/namespace/name */
23
+ resourceFilter: ResourceFilter;
24
+ /** Start of time range (default: 'now-30d') */
25
+ startTime?: string;
26
+ /** Maximum number of events to load (default: 50) */
27
+ limit?: number;
28
+ /** Whether to show the header (default: true) */
29
+ showHeader?: boolean;
30
+ /** Reduced padding for embedding (default: false) */
31
+ compact?: boolean;
32
+ /** Handler called when an activity is clicked */
33
+ onActivityClick?: (activity: Activity) => void;
34
+ /** Handler called when a resource link is clicked (deprecated: use resourceLinkResolver) */
35
+ onResourceClick?: ResourceLinkClickHandler;
36
+ /** Function that resolves resource references to URLs */
37
+ resourceLinkResolver?: ResourceLinkResolver;
38
+ /** Handler called when the actor name or avatar is clicked */
39
+ onActorClick?: (actorName: string) => void;
40
+ /** Additional CSS class */
41
+ className?: string;
42
+ /** Custom error formatter for customizing error messages */
43
+ errorFormatter?: ErrorFormatter;
44
+ }
45
+ /**
46
+ * ResourceHistoryView displays a resource's change history as a vertical timeline.
47
+ * Shows who changed what, when, with expandable details.
48
+ *
49
+ * Can filter by:
50
+ * - UID (exact match)
51
+ * - API Group, Kind, Namespace, Name (combined filter)
52
+ */
53
+ export declare function ResourceHistoryView({ client, resourceFilter, startTime, limit, showHeader, compact, onActivityClick, onResourceClick, resourceLinkResolver, onActorClick, className, errorFormatter, }: ResourceHistoryViewProps): import("react/jsx-runtime").JSX.Element;
54
+ //# sourceMappingURL=ResourceHistoryView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResourceHistoryView.d.ts","sourceRoot":"","sources":["../../src/components/ResourceHistoryView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMlD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,6EAA6E;IAC7E,cAAc,EAAE,cAAc,CAAC;IAC/B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iDAAiD;IACjD,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC/C,4FAA4F;IAC5F,eAAe,CAAC,EAAE,wBAAwB,CAAC;IAC3C,yDAAyD;IACzD,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,8DAA8D;IAC9D,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AA2BD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,cAAc,EACd,SAAqB,EACrB,KAAU,EACV,UAAiB,EACjB,OAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,SAAS,EACT,cAAc,GACf,EAAE,wBAAwB,2CAwN1B"}
@@ -0,0 +1,23 @@
1
+ import type { ActivityPolicyRule } from '../types/policy';
2
+ import type { ActivityApiClient } from '../api/client';
3
+ export interface RulePreviewPanelProps {
4
+ /** The rule to preview */
5
+ rule: ActivityPolicyRule;
6
+ /** Rule type (audit or event) */
7
+ ruleType: 'audit' | 'event';
8
+ /** Policy resource (apiGroup/kind) for fetching sample data */
9
+ policyResource: {
10
+ apiGroup: string;
11
+ kind: string;
12
+ };
13
+ /** API client for fetching data */
14
+ apiClient: ActivityApiClient;
15
+ /** Additional CSS class */
16
+ className?: string;
17
+ }
18
+ /**
19
+ * RulePreviewPanel shows live preview of a rule against sample data.
20
+ * Uses PolicyPreview API with auto-fetch to automatically load and test sample data.
21
+ */
22
+ export declare function RulePreviewPanel({ rule, ruleType, policyResource, apiClient, className, }: RulePreviewPanelProps): import("react/jsx-runtime").JSX.Element;
23
+ //# sourceMappingURL=RulePreviewPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RulePreviewPanel.d.ts","sourceRoot":"","sources":["../../src/components/RulePreviewPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAsB,MAAM,iBAAiB,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAYvD,MAAM,WAAW,qBAAqB;IACpC,0BAA0B;IAC1B,IAAI,EAAE,kBAAkB,CAAC;IACzB,iCAAiC;IACjC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,+DAA+D;IAC/D,cAAc,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,mCAAmC;IACnC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,SAAS,EACT,SAAc,GACf,EAAE,qBAAqB,2CAsNvB"}