@emeryld/rrroutes-openapi 2.3.4 → 2.3.5

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 (75) hide show
  1. package/dist/docs/serializer.d.ts +3 -3
  2. package/dist/index.cjs +51 -21
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.ts +5 -0
  5. package/dist/index.mjs +51 -21
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/public/assets/docs.js +165 -45
  8. package/dist/web/utils/types.d.ts +1 -17
  9. package/dist/web/v2/components/endpoints/EndpointDetailPanel.d.ts +5 -0
  10. package/dist/web/v2/components/endpoints/EndpointPlayground.d.ts +6 -0
  11. package/dist/web/v2/components/endpoints/EndpointSummaryHeader.d.ts +6 -0
  12. package/dist/web/v2/components/endpoints/EndpointVolumeChart.d.ts +8 -0
  13. package/dist/web/v2/components/feedback/EmptyState.d.ts +8 -0
  14. package/dist/web/v2/components/feedback/ErrorState.d.ts +7 -0
  15. package/dist/web/v2/components/feedback/LoadingState.d.ts +5 -0
  16. package/dist/web/v2/components/filters/BaseFilterBar.d.ts +12 -0
  17. package/dist/web/v2/components/history/HistoryInsights.d.ts +6 -0
  18. package/dist/web/v2/components/history/RequestDetailDrawer.d.ts +9 -0
  19. package/dist/web/v2/components/history/RequestTable.d.ts +7 -0
  20. package/dist/web/v2/components/inputs/SearchInput.d.ts +12 -0
  21. package/dist/web/v2/components/json/JsonViewer.d.ts +7 -0
  22. package/dist/web/v2/components/layout/CardSection.d.ts +8 -0
  23. package/dist/web/v2/components/layout/PageContainer.d.ts +9 -0
  24. package/dist/web/v2/components/layout/SplitPane.d.ts +8 -0
  25. package/dist/web/v2/components/logs/CacheLogsTable.d.ts +6 -0
  26. package/dist/web/v2/components/logs/CacheSummaryTable.d.ts +6 -0
  27. package/dist/web/v2/components/logs/LogsTable.d.ts +7 -0
  28. package/dist/web/v2/components/presets/PresetCard.d.ts +7 -0
  29. package/dist/web/v2/components/presets/PresetForm.d.ts +7 -0
  30. package/dist/web/v2/components/presets/PresetOperationsEditor.d.ts +7 -0
  31. package/dist/web/v2/components/schema/SchemaTreeView.d.ts +7 -0
  32. package/dist/web/v2/components/tags/CacheOperationChip.d.ts +9 -0
  33. package/dist/web/v2/components/tags/HttpMethodChip.d.ts +10 -0
  34. package/dist/web/v2/components/tags/LogLevelChip.d.ts +10 -0
  35. package/dist/web/v2/components/tags/StatusChip.d.ts +8 -0
  36. package/dist/web/v2/hooks/useGlobalShortcuts.d.ts +6 -0
  37. package/dist/web/v2/hooks/useHttpColor.d.ts +2 -0
  38. package/dist/web/v2/hooks/useLeafEndpoint.d.ts +7 -0
  39. package/dist/web/v2/hooks/useQueryState.d.ts +7 -0
  40. package/dist/web/v2/hooks/useStatusColor.d.ts +1 -0
  41. package/dist/web/v2/pages/EndpointDetailPage.d.ts +1 -0
  42. package/dist/web/v2/pages/HistoryPage.d.ts +1 -0
  43. package/dist/web/v2/pages/LogsPage.d.ts +1 -0
  44. package/dist/web/v2/pages/NotFoundPage.d.ts +1 -0
  45. package/dist/web/v2/pages/PresetEditPage.d.ts +1 -0
  46. package/dist/web/v2/pages/PresetsPage.d.ts +1 -0
  47. package/dist/web/v2/pages/RoutesPage.d.ts +1 -0
  48. package/dist/web/v2/stores/playgroundStore.d.ts +33 -0
  49. package/dist/web/v2/types/filterTypes.d.ts +20 -0
  50. package/dist/web/v2/types/types.base.d.ts +13 -0
  51. package/dist/web/v2/types/types.cacheLog.d.ts +47 -1
  52. package/dist/web/v2/types/types.d.ts +17 -0
  53. package/dist/web/v2/types/types.endpoint.d.ts +42 -4
  54. package/dist/web/v2/types/types.log.d.ts +32 -1
  55. package/dist/web/v2/types/types.preset.d.ts +90 -2
  56. package/dist/web/v2/types/types.requestLog.d.ts +42 -3
  57. package/package.json +3 -3
  58. package/dist/web/v2/components/JsonInput.d.ts +0 -10
  59. package/dist/web/v2/components/JsonViewer.d.ts +0 -12
  60. package/dist/web/v2/components/MethodBadge.d.ts +0 -4
  61. package/dist/web/v2/components/New/HttpMethodChip.d.ts +0 -7
  62. package/dist/web/v2/components/New/ListToolBar.d.ts +0 -11
  63. package/dist/web/v2/components/New/MethodFiltersChips.d.ts +0 -7
  64. package/dist/web/v2/components/New/RequestStatusChip.d.ts +0 -6
  65. package/dist/web/v2/components/New/SplitPageLayout.d.ts +0 -7
  66. package/dist/web/v2/components/New/StabilityChip.d.ts +0 -7
  67. package/dist/web/v2/components/New/StatusRangeFilter.d.ts +0 -8
  68. package/dist/web/v2/components/RecordItem.d.ts +0 -34
  69. package/dist/web/v2/components/ResizableSidePanel.d.ts +0 -12
  70. package/dist/web/v2/components/SchemaTable.d.ts +0 -5
  71. package/dist/web/v2/components/SectionHeader.d.ts +0 -9
  72. package/dist/web/v2/endpoints/EndpointDetailsPanel.d.ts +0 -5
  73. package/dist/web/v2/endpoints/EndpointList.d.ts +0 -12
  74. package/dist/web/v2/endpoints/EndpointsPage.d.ts +0 -4
  75. package/dist/web/v2/endpoints/endpoints.utils.d.ts +0 -3
@@ -1,17 +1 @@
1
- import { AnyLeafLowProfile, AugmentLeaves, FinalizedRegistry } from '@emeryld/rrroutes-contract';
2
- import { cacheLeaves } from '../v2/types/types.cacheLog';
3
- import { endpointLeaves } from '../v2/types/types.endpoint';
4
- import { logLeaves } from '../v2/types/types.log';
5
- import { presetLeaves } from '../v2/types/types.preset';
6
- import { requestLogLeaves } from '../v2/types/types.requestLog';
7
- type MountedLeaves<Leaves extends readonly AnyLeafLowProfile[]> = AugmentLeaves<'/__rrroutes', undefined, Leaves>;
8
- type AllLeaves = readonly [
9
- ...MountedLeaves<typeof endpointLeaves>,
10
- ...MountedLeaves<typeof requestLogLeaves>,
11
- ...MountedLeaves<typeof logLeaves>,
12
- ...MountedLeaves<typeof cacheLeaves>,
13
- ...MountedLeaves<typeof presetLeaves>
14
- ];
15
- declare const allLeaves: AllLeaves;
16
- export declare const leaves: FinalizedRegistry<typeof allLeaves>;
17
- export {};
1
+ export { leaves } from '../v2/types/types.js';
@@ -0,0 +1,5 @@
1
+ type EndpointDetailPanelProps = {
2
+ endpointId?: string | null;
3
+ };
4
+ export default function EndpointDetailPanel({ endpointId, }: EndpointDetailPanelProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import { EndpointType } from '../../types/types.endpoint.js';
2
+ type EndpointPlaygroundProps = {
3
+ endpoint: EndpointType;
4
+ };
5
+ export default function EndpointPlayground({ endpoint, }: EndpointPlaygroundProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { EndpointType } from '../../types/types.endpoint.js';
2
+ type EndpointSummaryHeaderProps = {
3
+ endpoint: Pick<EndpointType, 'method' | 'path' | 'stability' | 'summary'>;
4
+ };
5
+ export default function EndpointSummaryHeader({ endpoint, }: EndpointSummaryHeaderProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ type EndpointVolumeChartProps = {
2
+ data: {
3
+ timestamp: number;
4
+ count: number;
5
+ }[];
6
+ };
7
+ export default function EndpointVolumeChart({ data, }: EndpointVolumeChartProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ type EmptyStateProps = {
3
+ title: string;
4
+ description?: string;
5
+ action?: ReactNode;
6
+ };
7
+ export default function EmptyState({ title, description, action, }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ type ErrorStateProps = {
2
+ message?: string;
3
+ onRetry?: () => void;
4
+ details?: string;
5
+ };
6
+ export default function ErrorState({ message, onRetry, details, }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,5 @@
1
+ type LoadingStateProps = {
2
+ variant?: 'table' | 'inline' | 'full';
3
+ };
4
+ export default function LoadingState({ variant, }: LoadingStateProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,12 @@
1
+ import { type ReactNode, type RefObject } from 'react';
2
+ import type { BaseFilter, FilterMode } from '../../types/filterTypes.js';
3
+ type BaseFilterBarProps = {
4
+ value: BaseFilter;
5
+ onChange: (next: BaseFilter) => void;
6
+ children?: (mode: FilterMode) => ReactNode;
7
+ searchInputRef?: RefObject<HTMLInputElement>;
8
+ tagOptions?: string[];
9
+ groupOptions?: string[];
10
+ };
11
+ export default function BaseFilterBar({ value, onChange, children, searchInputRef, tagOptions, groupOptions, }: BaseFilterBarProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { RequestLogType } from '../../types/types.requestLog.js';
2
+ type HistoryInsightsProps = {
3
+ requests: RequestLogType[];
4
+ };
5
+ export default function HistoryInsights({ requests }: HistoryInsightsProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { RequestLogType } from '../../types/types.requestLog.js';
2
+ type RequestDetailDrawerProps = {
3
+ request?: RequestLogType | null;
4
+ open: boolean;
5
+ onClose: () => void;
6
+ onReplay?: (request: RequestLogType) => void;
7
+ };
8
+ export default function RequestDetailDrawer({ request, open, onClose, onReplay, }: RequestDetailDrawerProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { RequestLogType } from '../../types/types.requestLog.js';
2
+ type RequestTableProps = {
3
+ requests: RequestLogType[];
4
+ onSelect: (request: RequestLogType) => void;
5
+ };
6
+ export default function RequestTable({ requests, onSelect, }: RequestTableProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,12 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { Ref } from 'react';
3
+ type SearchInputProps = {
4
+ value: string;
5
+ onChange: (value: string) => void;
6
+ placeholder?: string;
7
+ onSubmit?: () => void;
8
+ textFieldProps?: TextFieldProps;
9
+ inputRef?: Ref<HTMLInputElement>;
10
+ };
11
+ export default function SearchInput({ value, onChange, placeholder, onSubmit, textFieldProps, inputRef, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,7 @@
1
+ type JsonViewerProps = {
2
+ value: unknown;
3
+ collapsedLines?: number;
4
+ title?: string;
5
+ };
6
+ export default function JsonViewer({ value, collapsedLines, title, }: JsonViewerProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ type CardSectionProps = {
3
+ title?: string;
4
+ actions?: ReactNode;
5
+ children: ReactNode;
6
+ };
7
+ export default function CardSection({ title, actions, children, }: CardSectionProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ type PageContainerProps = {
3
+ title?: string;
4
+ subtitle?: string;
5
+ actions?: ReactNode;
6
+ children: ReactNode;
7
+ };
8
+ export default function PageContainer({ title, subtitle, actions, children, }: PageContainerProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ type SplitPaneProps = {
3
+ left: ReactNode;
4
+ right: ReactNode;
5
+ leftWidth?: number;
6
+ };
7
+ export default function SplitPane({ left, right, leftWidth, }: SplitPaneProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { CacheLogType } from '../../types/types.cacheLog.js';
2
+ type CacheLogsTableProps = {
3
+ logs: CacheLogType[];
4
+ };
5
+ export default function CacheLogsTable({ logs }: CacheLogsTableProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { CacheSummaryType } from '../../types/types.cacheLog.js';
2
+ type CacheSummaryTableProps = {
3
+ items: CacheSummaryType[];
4
+ };
5
+ export default function CacheSummaryTable({ items }: CacheSummaryTableProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { LogType } from '../../types/types.log.js';
2
+ type LogsTableProps = {
3
+ logs: LogType[];
4
+ onSelect?: (log: LogType) => void;
5
+ };
6
+ export default function LogsTable({ logs, onSelect }: LogsTableProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { PresetType } from '../../types/types.preset.js';
2
+ type PresetCardProps = {
3
+ preset: PresetType;
4
+ onClick?: () => void;
5
+ };
6
+ export default function PresetCard({ preset, onClick }: PresetCardProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { PresetType } from '../../types/types.preset.js';
2
+ type PresetFormProps = {
3
+ value: PresetType;
4
+ onChange: (next: PresetType) => void;
5
+ };
6
+ export default function PresetForm({ value, onChange }: PresetFormProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { PresetType } from '../../types/types.preset.js';
2
+ type PresetOperationsEditorProps = {
3
+ operations: PresetType['operations'];
4
+ onChange: (ops: PresetType['operations']) => void;
5
+ };
6
+ export default function PresetOperationsEditor({ operations, onChange, }: PresetOperationsEditorProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { SerializableSchema } from '../../types/types.endpoint.js';
2
+ type SchemaTreeViewProps = {
3
+ schema?: SerializableSchema;
4
+ title?: string;
5
+ };
6
+ export default function SchemaTreeView({ schema, title, }: SchemaTreeViewProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ type CacheOperation = 'hit' | 'miss' | 'set' | 'delete';
2
+ type SelectionState = 'include' | 'exclude' | 'none' | 'display';
3
+ type CacheOperationChipProps = {
4
+ operation: CacheOperation;
5
+ state?: SelectionState;
6
+ onClick?: () => void;
7
+ };
8
+ export default function CacheOperationChip({ operation, state, onClick, }: CacheOperationChipProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,10 @@
1
+ import { MethodType } from '../../types/types.base';
2
+ type SelectionState = 'include' | 'exclude' | 'none' | 'display';
3
+ type HttpMethodChipProps = {
4
+ method: MethodType;
5
+ state?: SelectionState;
6
+ selected?: boolean;
7
+ onClick?: () => void;
8
+ };
9
+ export default function HttpMethodChip({ method, state, selected, onClick, }: HttpMethodChipProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ type LogLevel = 'info' | 'warning' | 'error' | 'debug' | 'trace';
2
+ type SelectionState = 'include' | 'exclude' | 'none' | 'display';
3
+ type LogLevelChipProps = {
4
+ level: LogLevel;
5
+ state?: SelectionState;
6
+ selected?: boolean;
7
+ onClick?: () => void;
8
+ };
9
+ export default function LogLevelChip({ level, state, selected, onClick, }: LogLevelChipProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ type SelectionState = 'include' | 'exclude' | 'none' | 'display';
2
+ type StatusChipProps = {
3
+ status: number;
4
+ state?: SelectionState;
5
+ onClick?: () => void;
6
+ };
7
+ export default function StatusChip({ status, state, onClick, }: StatusChipProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { RefObject } from 'react';
2
+ type UseGlobalShortcutsOptions = {
3
+ searchInputRef?: RefObject<HTMLInputElement>;
4
+ };
5
+ export declare function useGlobalShortcuts({ searchInputRef, }: UseGlobalShortcutsOptions): void;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { MethodType } from '../types/types.base';
2
+ export declare function useHttpColor(method: MethodType): string;
@@ -0,0 +1,7 @@
1
+ import type { BuildOptionsFor } from '@emeryld/rrroutes-client';
2
+ import { leaves } from '../types/types.js';
3
+ type Leaves = typeof leaves;
4
+ type LeafKey = keyof Leaves['byKey'];
5
+ type LeafType<K extends LeafKey> = Leaves['byKey'][K];
6
+ export declare function useLeafEndpoint<K extends LeafKey>(key: K, options?: BuildOptionsFor<LeafType<K>>): import("@emeryld/rrroutes-client").BuiltForLeaf<LeafType<K>>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ type UseQueryStateOptions<T> = {
2
+ defaultValue: T;
3
+ serialize?: (value: T) => string | null;
4
+ deserialize?: (value: string) => T;
5
+ };
6
+ export declare function useQueryState<T>(key: string, options: UseQueryStateOptions<T>): [T, (next: T | ((prev: T) => T)) => void];
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare function useStatusColor(statusCode: number): string;
@@ -0,0 +1 @@
1
+ export default function EndpointDetailPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function HistoryPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function LogsPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function NotFoundPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function PresetEditPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function PresetsPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function RoutesPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { ReactNode } from 'react';
2
+ import type { MethodType } from '../types/types.base';
3
+ export type PlaygroundRunRecord = {
4
+ id: string;
5
+ method: MethodType;
6
+ path: string;
7
+ createdAt: number;
8
+ durationMs: number;
9
+ status: number;
10
+ response: unknown;
11
+ errorMessage?: string;
12
+ headers?: Record<string, string>;
13
+ request: {
14
+ params: Record<string, string>;
15
+ query: Record<string, string>;
16
+ body?: unknown;
17
+ headers?: Record<string, string>;
18
+ };
19
+ };
20
+ type PlaygroundRunsContextValue = {
21
+ runs: PlaygroundRunRecord[];
22
+ addRun: (run: PlaygroundRunRecord) => void;
23
+ getLastRun: (args: {
24
+ id?: string | null;
25
+ method: MethodType;
26
+ path: string;
27
+ }) => PlaygroundRunRecord | undefined;
28
+ };
29
+ export declare function PlaygroundRunsProvider({ children, }: {
30
+ children: ReactNode;
31
+ }): import("react/jsx-runtime").JSX.Element;
32
+ export declare function usePlaygroundRuns(): PlaygroundRunsContextValue;
33
+ export {};
@@ -0,0 +1,20 @@
1
+ export type FilterMode = 'include' | 'exclude';
2
+ type OrderByValue = 'timestamp' | 'duration' | 'level' | 'path';
3
+ type OrderDirectionValue = 'asc' | 'desc';
4
+ export type BaseFilter = {
5
+ beforeDate?: string;
6
+ afterDate?: string;
7
+ cursor?: string;
8
+ orderBy: OrderByValue;
9
+ orderDirection: OrderDirectionValue;
10
+ searchQuery?: string;
11
+ tagsInclude: string[];
12
+ tagsExclude: string[];
13
+ groupsInclude: string[];
14
+ groupsExclude: string[];
15
+ };
16
+ export declare const DEFAULT_BASE_FILTER: BaseFilter;
17
+ export declare function buildBaseQuery(filter: BaseFilter): Record<string, unknown>;
18
+ export declare function serializeFilterState<T extends Record<string, unknown>>(value: T): string | null;
19
+ export declare function deserializeFilterState<T extends Record<string, unknown>>(raw: string, fallback: T): T;
20
+ export {};
@@ -1,6 +1,13 @@
1
1
  import z from 'zod';
2
2
  export declare const METHODS: readonly ["get", "post", "put", "patch", "delete"];
3
3
  export type MethodType = (typeof METHODS)[number];
4
+ export declare const methodSchema: z.ZodEnum<{
5
+ get: "get";
6
+ post: "post";
7
+ put: "put";
8
+ patch: "patch";
9
+ delete: "delete";
10
+ }>;
4
11
  export declare const baseEntitySchema: z.ZodObject<{
5
12
  id: z.ZodString;
6
13
  name: z.ZodString;
@@ -25,6 +32,12 @@ export declare const baseQuerySchema: z.ZodObject<{
25
32
  }>>;
26
33
  searchQuery: z.ZodOptional<z.ZodString>;
27
34
  groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ excludeGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
36
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ excludeTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
38
  cursor: z.ZodOptional<z.ZodString>;
30
39
  }, z.core.$strip>;
40
+ export declare const paginationSchema: z.ZodObject<{
41
+ cursor: z.ZodOptional<z.ZodString>;
42
+ pageSize: z.ZodOptional<z.ZodNumber>;
43
+ }, z.core.$strip>;
@@ -16,6 +16,7 @@ export declare const cacheLogSchema: z.ZodObject<{
16
16
  value: z.ZodNullable<z.ZodAny>;
17
17
  size: z.ZodOptional<z.ZodNumber>;
18
18
  }, z.core.$strip>;
19
+ export type CacheLogType = z.infer<typeof cacheLogSchema>;
19
20
  export declare const cacheLogQuerySchema: z.ZodObject<{
20
21
  beforeDate: z.ZodOptional<z.ZodString>;
21
22
  afterDate: z.ZodOptional<z.ZodString>;
@@ -31,7 +32,9 @@ export declare const cacheLogQuerySchema: z.ZodObject<{
31
32
  }>>;
32
33
  searchQuery: z.ZodOptional<z.ZodString>;
33
34
  groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ excludeGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
36
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ excludeTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
38
  cursor: z.ZodOptional<z.ZodString>;
36
39
  operations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
37
40
  delete: "delete";
@@ -39,7 +42,23 @@ export declare const cacheLogQuerySchema: z.ZodObject<{
39
42
  miss: "miss";
40
43
  set: "set";
41
44
  }>>>;
45
+ excludeOperations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
46
+ delete: "delete";
47
+ hit: "hit";
48
+ miss: "miss";
49
+ set: "set";
50
+ }>>>;
51
+ }, z.core.$strip>;
52
+ export declare const cacheSummarySchema: z.ZodObject<{
53
+ key: z.ZodString;
54
+ lastSetAt: z.ZodNullable<z.ZodNumber>;
55
+ lastHitAt: z.ZodNullable<z.ZodNumber>;
56
+ lastMissAt: z.ZodNullable<z.ZodNumber>;
57
+ totalHits: z.ZodNumber;
58
+ totalMisses: z.ZodNumber;
59
+ totalSets: z.ZodNumber;
42
60
  }, z.core.$strip>;
61
+ export type CacheSummaryType = z.infer<typeof cacheSummarySchema>;
43
62
  export declare const cacheLeaves: readonly [{
44
63
  readonly method: "get";
45
64
  readonly path: "cache";
@@ -47,7 +66,16 @@ export declare const cacheLeaves: readonly [{
47
66
  description?: string | undefined;
48
67
  tags?: string[] | undefined;
49
68
  deprecated?: boolean | undefined;
50
- queryExtensionSchema: undefined;
69
+ queryExtensionSchema: z.ZodObject<{
70
+ cursor: z.ZodOptional<z.ZodString>;
71
+ pageSize: z.ZodOptional<z.ZodNumber>;
72
+ }, z.core.$strip> & import("@emeryld/rrroutes-contract").RouteSchema<{
73
+ cursor?: string | undefined;
74
+ pageSize?: number | undefined;
75
+ }, {
76
+ cursor?: string | undefined;
77
+ pageSize?: number | undefined;
78
+ }>;
51
79
  bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
52
80
  feed: true;
53
81
  summary?: string | undefined;
@@ -63,9 +91,15 @@ export declare const cacheLeaves: readonly [{
63
91
  afterDate?: string | undefined;
64
92
  searchQuery?: string | undefined;
65
93
  groups?: string[] | undefined;
94
+ excludeGroups?: string[] | undefined;
66
95
  tags?: string[] | undefined;
96
+ excludeTags?: string[] | undefined;
67
97
  cursor?: string | undefined;
68
98
  operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
99
+ excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
100
+ } & {
101
+ cursor?: string | undefined;
102
+ pageSize?: number | undefined;
69
103
  }, {
70
104
  beforeDate?: string | undefined;
71
105
  afterDate?: string | undefined;
@@ -73,9 +107,15 @@ export declare const cacheLeaves: readonly [{
73
107
  orderDirection?: "asc" | "desc" | undefined;
74
108
  searchQuery?: string | undefined;
75
109
  groups?: string[] | undefined;
110
+ excludeGroups?: string[] | undefined;
76
111
  tags?: string[] | undefined;
112
+ excludeTags?: string[] | undefined;
77
113
  cursor?: string | undefined;
78
114
  operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
115
+ excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
116
+ } & {
117
+ cursor?: string | undefined;
118
+ pageSize?: number | undefined;
79
119
  }>;
80
120
  paramsSchema: undefined;
81
121
  outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
@@ -131,9 +171,12 @@ export declare const cacheLeaves: readonly [{
131
171
  afterDate?: string | undefined;
132
172
  searchQuery?: string | undefined;
133
173
  groups?: string[] | undefined;
174
+ excludeGroups?: string[] | undefined;
134
175
  tags?: string[] | undefined;
176
+ excludeTags?: string[] | undefined;
135
177
  cursor?: string | undefined;
136
178
  operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
179
+ excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
137
180
  }, {
138
181
  beforeDate?: string | undefined;
139
182
  afterDate?: string | undefined;
@@ -141,9 +184,12 @@ export declare const cacheLeaves: readonly [{
141
184
  orderDirection?: "asc" | "desc" | undefined;
142
185
  searchQuery?: string | undefined;
143
186
  groups?: string[] | undefined;
187
+ excludeGroups?: string[] | undefined;
144
188
  tags?: string[] | undefined;
189
+ excludeTags?: string[] | undefined;
145
190
  cursor?: string | undefined;
146
191
  operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
192
+ excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
147
193
  }>;
148
194
  readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
149
195
  out: {
@@ -0,0 +1,17 @@
1
+ import { AnyLeafLowProfile, AugmentLeaves, FinalizedRegistry } from '@emeryld/rrroutes-contract';
2
+ import { cacheLeaves } from './types.cacheLog.js';
3
+ import { endpointLeaves } from './types.endpoint.js';
4
+ import { logLeaves } from './types.log.js';
5
+ import { presetLeaves } from './types.preset.js';
6
+ import { requestLogLeaves } from './types.requestLog.js';
7
+ type MountedLeaves<Leaves extends readonly AnyLeafLowProfile[]> = AugmentLeaves<'/__rrroutes', undefined, Leaves>;
8
+ type AllLeaves = readonly [
9
+ ...MountedLeaves<typeof endpointLeaves>,
10
+ ...MountedLeaves<typeof requestLogLeaves>,
11
+ ...MountedLeaves<typeof logLeaves>,
12
+ ...MountedLeaves<typeof cacheLeaves>,
13
+ ...MountedLeaves<typeof presetLeaves>
14
+ ];
15
+ declare const allLeaves: AllLeaves;
16
+ export declare const leaves: FinalizedRegistry<typeof allLeaves>;
17
+ export {};