@emeryld/rrroutes-openapi 2.3.3 → 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.
- package/dist/docs/serializer.d.ts +3 -3
- package/dist/index.cjs +62 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +62 -26
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +121 -89
- package/dist/web/utils/types.d.ts +1 -17
- package/dist/web/v2/components/endpoints/EndpointDetailPanel.d.ts +5 -0
- package/dist/web/v2/components/endpoints/EndpointPlayground.d.ts +6 -0
- package/dist/web/v2/components/endpoints/EndpointSummaryHeader.d.ts +6 -0
- package/dist/web/v2/components/endpoints/EndpointVolumeChart.d.ts +8 -0
- package/dist/web/v2/components/feedback/EmptyState.d.ts +8 -0
- package/dist/web/v2/components/feedback/ErrorState.d.ts +7 -0
- package/dist/web/v2/components/feedback/LoadingState.d.ts +5 -0
- package/dist/web/v2/components/filters/BaseFilterBar.d.ts +12 -0
- package/dist/web/v2/components/history/HistoryInsights.d.ts +6 -0
- package/dist/web/v2/components/history/RequestDetailDrawer.d.ts +9 -0
- package/dist/web/v2/components/history/RequestTable.d.ts +7 -0
- package/dist/web/v2/components/inputs/SearchInput.d.ts +12 -0
- package/dist/web/v2/components/json/JsonViewer.d.ts +7 -0
- package/dist/web/v2/components/layout/CardSection.d.ts +8 -0
- package/dist/web/v2/components/layout/PageContainer.d.ts +9 -0
- package/dist/web/v2/components/layout/SplitPane.d.ts +8 -0
- package/dist/web/v2/components/logs/CacheLogsTable.d.ts +6 -0
- package/dist/web/v2/components/logs/CacheSummaryTable.d.ts +6 -0
- package/dist/web/v2/components/logs/LogsTable.d.ts +7 -0
- package/dist/web/v2/components/presets/PresetCard.d.ts +7 -0
- package/dist/web/v2/components/presets/PresetForm.d.ts +7 -0
- package/dist/web/v2/components/presets/PresetOperationsEditor.d.ts +7 -0
- package/dist/web/v2/components/schema/SchemaTreeView.d.ts +7 -0
- package/dist/web/v2/components/tags/CacheOperationChip.d.ts +9 -0
- package/dist/web/v2/components/tags/HttpMethodChip.d.ts +10 -0
- package/dist/web/v2/components/tags/LogLevelChip.d.ts +10 -0
- package/dist/web/v2/components/tags/StatusChip.d.ts +8 -0
- package/dist/web/v2/hooks/useGlobalShortcuts.d.ts +6 -0
- package/dist/web/v2/hooks/useHttpColor.d.ts +2 -0
- package/dist/web/v2/hooks/useLeafEndpoint.d.ts +7 -0
- package/dist/web/v2/hooks/useQueryState.d.ts +7 -0
- package/dist/web/v2/hooks/useStatusColor.d.ts +1 -0
- package/dist/web/v2/pages/EndpointDetailPage.d.ts +1 -0
- package/dist/web/v2/pages/HistoryPage.d.ts +1 -0
- package/dist/web/v2/pages/LogsPage.d.ts +1 -0
- package/dist/web/v2/pages/NotFoundPage.d.ts +1 -0
- package/dist/web/v2/pages/PresetEditPage.d.ts +1 -0
- package/dist/web/v2/pages/PresetsPage.d.ts +1 -0
- package/dist/web/v2/pages/RoutesPage.d.ts +1 -0
- package/dist/web/v2/stores/playgroundStore.d.ts +33 -0
- package/dist/web/v2/types/filterTypes.d.ts +20 -0
- package/dist/web/v2/types/types.base.d.ts +13 -0
- package/dist/web/v2/types/types.cacheLog.d.ts +93 -45
- package/dist/web/v2/types/types.d.ts +17 -0
- package/dist/web/v2/types/types.endpoint.d.ts +51 -4
- package/dist/web/v2/types/types.log.d.ts +32 -1
- package/dist/web/v2/types/types.preset.d.ts +92 -4
- package/dist/web/v2/types/types.requestLog.d.ts +52 -3
- package/package.json +3 -3
- package/dist/web/v2/components/JsonInput.d.ts +0 -10
- package/dist/web/v2/components/JsonViewer.d.ts +0 -12
- package/dist/web/v2/components/MethodBadge.d.ts +0 -4
- package/dist/web/v2/components/New/HttpMethodChip.d.ts +0 -7
- package/dist/web/v2/components/New/ListToolBar.d.ts +0 -11
- package/dist/web/v2/components/New/MethodFiltersChips.d.ts +0 -7
- package/dist/web/v2/components/New/RequestStatusChip.d.ts +0 -6
- package/dist/web/v2/components/New/SplitPageLayout.d.ts +0 -7
- package/dist/web/v2/components/New/StabilityChip.d.ts +0 -7
- package/dist/web/v2/components/New/StatusRangeFilter.d.ts +0 -8
- package/dist/web/v2/components/RecordItem.d.ts +0 -34
- package/dist/web/v2/components/ResizableSidePanel.d.ts +0 -12
- package/dist/web/v2/components/SchemaTable.d.ts +0 -5
- package/dist/web/v2/components/SectionHeader.d.ts +0 -9
- package/dist/web/v2/endpoints/EndpointDetailsPanel.d.ts +0 -5
- package/dist/web/v2/endpoints/EndpointList.d.ts +0 -12
- package/dist/web/v2/endpoints/EndpointsPage.d.ts +0 -4
- package/dist/web/v2/endpoints/endpoints.utils.d.ts +0 -3
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
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,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
|
+
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,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,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,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,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:
|
|
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<{
|
|
@@ -117,49 +157,57 @@ export declare const cacheLeaves: readonly [{
|
|
|
117
157
|
totalCount?: number | undefined;
|
|
118
158
|
}>;
|
|
119
159
|
}>;
|
|
120
|
-
}, {
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
124
|
-
|
|
160
|
+
}, import("@emeryld/rrroutes-contract").LeafLowProfile<"post", "cache/clear", {
|
|
161
|
+
readonly description?: string | undefined;
|
|
162
|
+
readonly tags?: string[] | undefined;
|
|
163
|
+
readonly deprecated?: boolean | undefined;
|
|
164
|
+
readonly queryExtensionSchema: undefined;
|
|
165
|
+
readonly outputMetaSchema: undefined;
|
|
166
|
+
readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
167
|
+
readonly querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
168
|
+
orderBy: "timestamp" | "duration" | "level" | "path";
|
|
169
|
+
orderDirection: "asc" | "desc";
|
|
170
|
+
beforeDate?: string | undefined;
|
|
171
|
+
afterDate?: string | undefined;
|
|
172
|
+
searchQuery?: string | undefined;
|
|
173
|
+
groups?: string[] | undefined;
|
|
174
|
+
excludeGroups?: string[] | undefined;
|
|
125
175
|
tags?: string[] | undefined;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
cursor?: string | undefined;
|
|
155
|
-
operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
156
|
-
}>;
|
|
157
|
-
paramsSchema: undefined;
|
|
158
|
-
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
159
|
-
meta?: string | undefined;
|
|
160
|
-
}, {
|
|
161
|
-
meta?: string | undefined;
|
|
162
|
-
}>;
|
|
163
|
-
outputMetaSchema: undefined;
|
|
176
|
+
excludeTags?: string[] | undefined;
|
|
177
|
+
cursor?: string | undefined;
|
|
178
|
+
operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
179
|
+
excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
beforeDate?: string | undefined;
|
|
182
|
+
afterDate?: string | undefined;
|
|
183
|
+
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
184
|
+
orderDirection?: "asc" | "desc" | undefined;
|
|
185
|
+
searchQuery?: string | undefined;
|
|
186
|
+
groups?: string[] | undefined;
|
|
187
|
+
excludeGroups?: string[] | undefined;
|
|
188
|
+
tags?: string[] | undefined;
|
|
189
|
+
excludeTags?: string[] | undefined;
|
|
190
|
+
cursor?: string | undefined;
|
|
191
|
+
operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
192
|
+
excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
193
|
+
}>;
|
|
194
|
+
readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
195
|
+
out: {
|
|
196
|
+
success: boolean;
|
|
197
|
+
};
|
|
198
|
+
meta?: string | undefined;
|
|
199
|
+
}, {
|
|
200
|
+
out: {
|
|
201
|
+
success: boolean;
|
|
202
|
+
};
|
|
203
|
+
meta?: string | undefined;
|
|
164
204
|
}>;
|
|
165
|
-
|
|
205
|
+
readonly bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
|
|
206
|
+
readonly feed?: boolean | undefined;
|
|
207
|
+
readonly summary?: string | undefined;
|
|
208
|
+
readonly docsGroup?: string | undefined;
|
|
209
|
+
readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
|
|
210
|
+
readonly docsHidden?: boolean | undefined;
|
|
211
|
+
readonly docsMeta?: Record<string, unknown> | undefined;
|
|
212
|
+
paramsSchema: undefined;
|
|
213
|
+
}>];
|
|
@@ -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 {};
|