@emeryld/rrroutes-openapi 2.6.5 → 2.7.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.
- package/dist/index.cjs +0 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.css +1 -1
- package/dist/public/assets/docs.js +189 -90
- package/dist/web/v2/AppShell.d.ts +3 -1
- package/dist/web/v2/components/request/LastRunPanel.d.ts +0 -5
- package/dist/web/v2/hooks/useLeafEndpoint.d.ts +2 -2
- package/dist/web/v2/stores/playgroundSettingsStore.d.ts +0 -10
- package/dist/web/v2/types/types.cacheLog.d.ts +135 -49
- package/dist/web/v2/types/types.endpoint.d.ts +194 -140
- package/dist/web/v2/types/types.log.d.ts +48 -19
- package/dist/web/v2/types/types.preset.d.ts +168 -84
- package/dist/web/v2/types/types.requestLog.d.ts +135 -90
- package/dist/web/v2/types/types.scheduling.d.ts +87 -37
- package/dist/web/v2/types/types.socket.d.ts +69 -33
- package/package.json +9 -12
- package/dist/public/assets/Add.js +0 -1
- package/dist/public/assets/Autocomplete.js +0 -1
- package/dist/public/assets/BaseFilterBar.js +0 -1
- package/dist/public/assets/BentoGrid.js +0 -1
- package/dist/public/assets/CacheLogsPage.js +0 -1
- package/dist/public/assets/DeleteOutline.js +0 -1
- package/dist/public/assets/DiffPage.js +0 -7
- package/dist/public/assets/Download.js +0 -1
- package/dist/public/assets/EndpointDetailPage.js +0 -1
- package/dist/public/assets/EndpointDetailPanel.js +0 -1
- package/dist/public/assets/EndpointPlaygroundPage.js +0 -1
- package/dist/public/assets/ExpandLess.js +0 -1
- package/dist/public/assets/ExportButton.js +0 -2
- package/dist/public/assets/FlowBuilderPage.js +0 -20
- package/dist/public/assets/HistoryPage.js +0 -1
- package/dist/public/assets/LogsPage.js +0 -1
- package/dist/public/assets/PageContainer.js +0 -3
- package/dist/public/assets/PlayArrow.js +0 -1
- package/dist/public/assets/PresetsPage.js +0 -4
- package/dist/public/assets/RoutesPage.js +0 -1
- package/dist/public/assets/SchedulingPage.js +0 -1
- package/dist/public/assets/SchemaTreeView.js +0 -1
- package/dist/public/assets/SettingsPage.js +0 -1
- package/dist/public/assets/SocketsPage.js +0 -1
- package/dist/public/assets/filterTypes.js +0 -1
- package/dist/public/assets/getValidReactChildren.js +0 -1
- package/dist/public/assets/kvRowAdapters.js +0 -1
- package/dist/public/assets/schemaDefaults.js +0 -1
- package/dist/public/assets/useEndpointOptions.js +0 -1
- package/dist/public/assets/useQueryState.js +0 -1
- package/dist/public/assets/vendor-recharts.js +0 -99
- package/dist/public/assets/vendor-xyflow.js +0 -15
- package/dist/web/v2/components/diff/DiffViewer.d.ts +0 -7
- package/dist/web/v2/components/diff/RequestDiffSelector.d.ts +0 -15
- package/dist/web/v2/components/diff/SchemaDiffViewer.d.ts +0 -7
- package/dist/web/v2/components/feedback/CopyAsMenu.d.ts +0 -10
- package/dist/web/v2/components/feedback/CopySnackbar.d.ts +0 -1
- package/dist/web/v2/components/flows/FlowCanvas.d.ts +0 -13
- package/dist/web/v2/components/flows/FlowNodeEditor.d.ts +0 -8
- package/dist/web/v2/components/flows/FlowRunProgress.d.ts +0 -7
- package/dist/web/v2/components/flows/FlowVariablePanel.d.ts +0 -7
- package/dist/web/v2/components/flows/nodes/ConditionNode.d.ts +0 -7
- package/dist/web/v2/components/flows/nodes/DelayNode.d.ts +0 -7
- package/dist/web/v2/components/flows/nodes/ExtractNode.d.ts +0 -8
- package/dist/web/v2/components/flows/nodes/RequestNode.d.ts +0 -10
- package/dist/web/v2/components/layout/ActivityBar.d.ts +0 -1
- package/dist/web/v2/components/layout/BentoGrid.d.ts +0 -17
- package/dist/web/v2/components/layout/ContentArea.d.ts +0 -1
- package/dist/web/v2/components/layout/PanelRegistry.d.ts +0 -17
- package/dist/web/v2/components/request/TimingBreakdown.d.ts +0 -11
- package/dist/web/v2/components/requests/timeline/TimelinePhaseBar.d.ts +0 -13
- package/dist/web/v2/components/requests/timeline/TimelineWaterfall.d.ts +0 -12
- package/dist/web/v2/pages/DiffPage.d.ts +0 -1
- package/dist/web/v2/pages/FlowBuilderPage.d.ts +0 -1
- package/dist/web/v2/stores/flowStore.d.ts +0 -70
- package/dist/web/v2/stores/layoutStore.d.ts +0 -13
- package/dist/web/v2/stores/snackbarStore.d.ts +0 -17
- package/dist/web/v2/utils/codeGeneration.d.ts +0 -12
- package/dist/web/v2/utils/diffUtils.d.ts +0 -11
- package/dist/web/v2/utils/flowRunner.d.ts +0 -17
- package/dist/web/v2/utils/templateResolver.d.ts +0 -4
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type ComponentType, type ReactElement } from 'react';
|
|
2
|
-
export type PanelGroup = 'api' | 'data' | 'tools' | 'system';
|
|
3
|
-
export type PanelDefinition = {
|
|
4
|
-
id: string;
|
|
5
|
-
title: string;
|
|
6
|
-
icon: string;
|
|
7
|
-
iconElement: ReactElement;
|
|
8
|
-
group: PanelGroup;
|
|
9
|
-
showInSidebar: boolean;
|
|
10
|
-
component: React.LazyExoticComponent<ComponentType<unknown>>;
|
|
11
|
-
};
|
|
12
|
-
declare const registry: Record<string, PanelDefinition>;
|
|
13
|
-
export declare function getPanelDefinition(id: string): PanelDefinition | undefined;
|
|
14
|
-
export declare function getAllPanels(): PanelDefinition[];
|
|
15
|
-
export declare function getPanelIds(): string[];
|
|
16
|
-
export declare function getSidebarPanels(): PanelDefinition[];
|
|
17
|
-
export default registry;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type Phase = {
|
|
2
|
-
label: string;
|
|
3
|
-
durationMs: number;
|
|
4
|
-
color?: string;
|
|
5
|
-
};
|
|
6
|
-
type TimingBreakdownProps = {
|
|
7
|
-
durationMs: number;
|
|
8
|
-
phases?: Phase[];
|
|
9
|
-
};
|
|
10
|
-
export default function TimingBreakdown({ durationMs, phases, }: TimingBreakdownProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { RequestTimelineEvent } from './types.js';
|
|
2
|
-
type SubPhase = {
|
|
3
|
-
label: string;
|
|
4
|
-
percent: number;
|
|
5
|
-
};
|
|
6
|
-
type TimelinePhaseBarProps = {
|
|
7
|
-
kind: RequestTimelineEvent['kind'];
|
|
8
|
-
widthPercent: number;
|
|
9
|
-
label?: string;
|
|
10
|
-
subPhases?: Array<SubPhase>;
|
|
11
|
-
};
|
|
12
|
-
export default function TimelinePhaseBar({ kind, widthPercent, label, subPhases, }: TimelinePhaseBarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { RequestTimelineEvent } from './types.js';
|
|
2
|
-
type TimelineWaterfallEvent = {
|
|
3
|
-
event: RequestTimelineEvent;
|
|
4
|
-
deltaMs: number | null;
|
|
5
|
-
};
|
|
6
|
-
type TimelineWaterfallProps = {
|
|
7
|
-
events: Array<TimelineWaterfallEvent>;
|
|
8
|
-
maxDeltaMs: number;
|
|
9
|
-
onEventClick?: (event: RequestTimelineEvent) => void;
|
|
10
|
-
};
|
|
11
|
-
export default function TimelineWaterfall({ events, maxDeltaMs, onEventClick, }: TimelineWaterfallProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function DiffPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function FlowBuilderPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type FlowNodeType = 'request' | 'condition' | 'delay' | 'extract';
|
|
3
|
-
export type RequestNodeData = {
|
|
4
|
-
method: string;
|
|
5
|
-
path: string;
|
|
6
|
-
headers?: Record<string, string>;
|
|
7
|
-
body?: string;
|
|
8
|
-
queryParams?: Record<string, string>;
|
|
9
|
-
};
|
|
10
|
-
export type ConditionNodeData = {
|
|
11
|
-
expression: string;
|
|
12
|
-
};
|
|
13
|
-
export type DelayNodeData = {
|
|
14
|
-
durationMs: number;
|
|
15
|
-
};
|
|
16
|
-
export type ExtractNodeData = {
|
|
17
|
-
variableName: string;
|
|
18
|
-
jsonPath: string;
|
|
19
|
-
};
|
|
20
|
-
export type FlowStepNode = {
|
|
21
|
-
id: string;
|
|
22
|
-
type: FlowNodeType;
|
|
23
|
-
position: {
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
};
|
|
27
|
-
data: RequestNodeData | ConditionNodeData | DelayNodeData | ExtractNodeData;
|
|
28
|
-
};
|
|
29
|
-
export type FlowEdge = {
|
|
30
|
-
id: string;
|
|
31
|
-
source: string;
|
|
32
|
-
target: string;
|
|
33
|
-
sourceHandle?: string;
|
|
34
|
-
};
|
|
35
|
-
export type FlowVariable = {
|
|
36
|
-
name: string;
|
|
37
|
-
value: unknown;
|
|
38
|
-
sourceNodeId?: string;
|
|
39
|
-
};
|
|
40
|
-
export type FlowDefinition = {
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
nodes: FlowStepNode[];
|
|
44
|
-
edges: FlowEdge[];
|
|
45
|
-
};
|
|
46
|
-
export type FlowRunState = {
|
|
47
|
-
status: 'idle' | 'running' | 'completed' | 'error';
|
|
48
|
-
currentNodeId: string | null;
|
|
49
|
-
completedNodeIds: string[];
|
|
50
|
-
errorNodeId: string | null;
|
|
51
|
-
errorMessage: string | null;
|
|
52
|
-
variables: FlowVariable[];
|
|
53
|
-
elapsedMs: number;
|
|
54
|
-
};
|
|
55
|
-
type FlowContextValue = {
|
|
56
|
-
flows: FlowDefinition[];
|
|
57
|
-
activeFlowId: string | null;
|
|
58
|
-
runState: FlowRunState;
|
|
59
|
-
addFlow: (flow: FlowDefinition) => void;
|
|
60
|
-
updateFlow: (flow: FlowDefinition) => void;
|
|
61
|
-
deleteFlow: (id: string) => void;
|
|
62
|
-
setActiveFlow: (id: string | null) => void;
|
|
63
|
-
setRunState: (state: FlowRunState) => void;
|
|
64
|
-
resetRunState: () => void;
|
|
65
|
-
};
|
|
66
|
-
export declare function FlowProvider({ children }: {
|
|
67
|
-
children: ReactNode;
|
|
68
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
69
|
-
export declare function useFlows(): FlowContextValue;
|
|
70
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type LayoutContextValue = {
|
|
3
|
-
activePanel: string;
|
|
4
|
-
sidebarCollapsed: boolean;
|
|
5
|
-
openPanel: (panelId: string) => void;
|
|
6
|
-
toggleSidebar: () => void;
|
|
7
|
-
resetLayout: () => void;
|
|
8
|
-
};
|
|
9
|
-
export declare function LayoutProvider({ children }: {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function useLayout(): LayoutContextValue;
|
|
13
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type SnackbarSeverity = 'success' | 'info' | 'warning' | 'error';
|
|
3
|
-
type SnackbarEntry = {
|
|
4
|
-
message: string;
|
|
5
|
-
severity: SnackbarSeverity;
|
|
6
|
-
key: number;
|
|
7
|
-
};
|
|
8
|
-
type SnackbarContextValue = {
|
|
9
|
-
current: SnackbarEntry | null;
|
|
10
|
-
showSnackbar: (message: string, severity?: SnackbarSeverity) => void;
|
|
11
|
-
dismiss: () => void;
|
|
12
|
-
};
|
|
13
|
-
export declare function SnackbarProvider({ children }: {
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function useSnackbar(): SnackbarContextValue;
|
|
17
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type RequestSpec = {
|
|
2
|
-
method: string;
|
|
3
|
-
url: string;
|
|
4
|
-
headers?: Record<string, string>;
|
|
5
|
-
body?: string;
|
|
6
|
-
queryParams?: Record<string, string>;
|
|
7
|
-
};
|
|
8
|
-
export declare function generateCurl(spec: RequestSpec): string;
|
|
9
|
-
export declare function generateFetch(spec: RequestSpec): string;
|
|
10
|
-
export declare function generateAxios(spec: RequestSpec): string;
|
|
11
|
-
export declare function generatePython(spec: RequestSpec): string;
|
|
12
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type Change } from 'diff';
|
|
2
|
-
import type { SerializableSchema } from '../types/types.endpoint.js';
|
|
3
|
-
export type DiffChange = Change;
|
|
4
|
-
export declare function diffJson(a: unknown, b: unknown): DiffChange[];
|
|
5
|
-
export type ValidationSeverity = 'valid' | 'missing' | 'extra' | 'typeMismatch';
|
|
6
|
-
export type ValidationEntry = {
|
|
7
|
-
path: string;
|
|
8
|
-
severity: ValidationSeverity;
|
|
9
|
-
message: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function validateAgainstSchema(data: unknown, schema: SerializableSchema, basePath?: string): ValidationEntry[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { FlowDefinition, FlowRunState } from '../stores/flowStore.js';
|
|
2
|
-
export type FlowRunnerOptions = {
|
|
3
|
-
flow: FlowDefinition;
|
|
4
|
-
variables: Record<string, unknown>;
|
|
5
|
-
fetchFn: (method: string, path: string, options: {
|
|
6
|
-
headers?: Record<string, string>;
|
|
7
|
-
body?: string;
|
|
8
|
-
queryParams?: Record<string, string>;
|
|
9
|
-
}) => Promise<{
|
|
10
|
-
status: number;
|
|
11
|
-
data: unknown;
|
|
12
|
-
headers: Record<string, string>;
|
|
13
|
-
}>;
|
|
14
|
-
onProgress: (state: Partial<FlowRunState>) => void;
|
|
15
|
-
signal?: AbortSignal;
|
|
16
|
-
};
|
|
17
|
-
export declare function runFlow(options: FlowRunnerOptions): Promise<FlowRunState>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function resolveTemplateString(template: string, variables: Record<string, unknown>): string;
|
|
2
|
-
export declare function resolveTemplateObject<T>(obj: T, variables: Record<string, unknown>): T;
|
|
3
|
-
export declare function hasTemplateVariables(text: string): boolean;
|
|
4
|
-
export declare function extractTemplateVariables(text: string): string[];
|