@emeryld/rrroutes-openapi 2.6.7 → 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 +136 -190
- 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/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/FlowToolbar.d.ts +0 -22
- package/dist/web/v2/components/flows/FlowVariablePanel.d.ts +0 -7
- package/dist/web/v2/components/flows/RecordingReviewDialog.d.ts +0 -9
- 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 -7
- 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/hooks/useFlowKeyboardShortcuts.d.ts +0 -17
- package/dist/web/v2/hooks/useFlowRecording.d.ts +0 -13
- 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 -74
- 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/flowHelpers.d.ts +0 -33
- package/dist/web/v2/utils/flowPresets.d.ts +0 -11
- package/dist/web/v2/utils/flowRecorder.d.ts +0 -5
- package/dist/web/v2/utils/flowRunner.d.ts +0 -17
- package/dist/web/v2/utils/templateResolver.d.ts +0 -4
|
@@ -1,74 +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
|
-
/** Captured response output from a recorded request */
|
|
10
|
-
recordedOutput?: string;
|
|
11
|
-
/** Captured HTTP status from a recorded request */
|
|
12
|
-
recordedStatus?: number;
|
|
13
|
-
};
|
|
14
|
-
export type ConditionNodeData = {
|
|
15
|
-
expression: string;
|
|
16
|
-
};
|
|
17
|
-
export type DelayNodeData = {
|
|
18
|
-
durationMs: number;
|
|
19
|
-
};
|
|
20
|
-
export type ExtractNodeData = {
|
|
21
|
-
variableName: string;
|
|
22
|
-
jsonPath: string;
|
|
23
|
-
};
|
|
24
|
-
export type FlowStepNode = {
|
|
25
|
-
id: string;
|
|
26
|
-
type: FlowNodeType;
|
|
27
|
-
position: {
|
|
28
|
-
x: number;
|
|
29
|
-
y: number;
|
|
30
|
-
};
|
|
31
|
-
data: RequestNodeData | ConditionNodeData | DelayNodeData | ExtractNodeData;
|
|
32
|
-
};
|
|
33
|
-
export type FlowEdge = {
|
|
34
|
-
id: string;
|
|
35
|
-
source: string;
|
|
36
|
-
target: string;
|
|
37
|
-
sourceHandle?: string;
|
|
38
|
-
};
|
|
39
|
-
export type FlowVariable = {
|
|
40
|
-
name: string;
|
|
41
|
-
value: unknown;
|
|
42
|
-
sourceNodeId?: string;
|
|
43
|
-
};
|
|
44
|
-
export type FlowDefinition = {
|
|
45
|
-
id: string;
|
|
46
|
-
name: string;
|
|
47
|
-
nodes: FlowStepNode[];
|
|
48
|
-
edges: FlowEdge[];
|
|
49
|
-
};
|
|
50
|
-
export type FlowRunState = {
|
|
51
|
-
status: 'idle' | 'running' | 'completed' | 'error';
|
|
52
|
-
currentNodeId: string | null;
|
|
53
|
-
completedNodeIds: string[];
|
|
54
|
-
errorNodeId: string | null;
|
|
55
|
-
errorMessage: string | null;
|
|
56
|
-
variables: FlowVariable[];
|
|
57
|
-
elapsedMs: number;
|
|
58
|
-
};
|
|
59
|
-
type FlowContextValue = {
|
|
60
|
-
flows: FlowDefinition[];
|
|
61
|
-
activeFlowId: string | null;
|
|
62
|
-
runState: FlowRunState;
|
|
63
|
-
addFlow: (flow: FlowDefinition) => void;
|
|
64
|
-
updateFlow: (flow: FlowDefinition) => void;
|
|
65
|
-
deleteFlow: (id: string) => void;
|
|
66
|
-
setActiveFlow: (id: string | null) => void;
|
|
67
|
-
setRunState: (state: FlowRunState) => void;
|
|
68
|
-
resetRunState: () => void;
|
|
69
|
-
};
|
|
70
|
-
export declare function FlowProvider({ children }: {
|
|
71
|
-
children: ReactNode;
|
|
72
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
73
|
-
export declare function useFlows(): FlowContextValue;
|
|
74
|
-
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,33 +0,0 @@
|
|
|
1
|
-
import type { Edge, Node } from '@xyflow/react';
|
|
2
|
-
import type { FlowEdge, FlowNodeType, FlowStepNode, RequestNodeData } from '../stores/flowStore.js';
|
|
3
|
-
import type { RequestLogType } from '../types/types.requestLog.js';
|
|
4
|
-
export declare function toFlowStepNodes(nodes: Node[]): FlowStepNode[];
|
|
5
|
-
export declare function toFlowEdges(edges: Edge[]): FlowEdge[];
|
|
6
|
-
export declare const DEFAULT_NODE_DATA: Record<FlowNodeType, () => unknown>;
|
|
7
|
-
/** POST/PUT/PATCH get prefilled Content-Type header and body template */
|
|
8
|
-
export declare function makeRequestData(method: string): RequestNodeData;
|
|
9
|
-
export declare const SHORTCUT_MAP: Record<string, FlowNodeType>;
|
|
10
|
-
export declare const SHORTCUT_LABELS: Record<FlowNodeType, string>;
|
|
11
|
-
export type DuplicateGroup = {
|
|
12
|
-
/** The canonical request (first occurrence) */
|
|
13
|
-
canonical: RequestLogType;
|
|
14
|
-
/** All duplicates of the canonical (same method+path+body+query signature) */
|
|
15
|
-
duplicates: RequestLogType[];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Detect duplicate/near-duplicate HTTP requests in an array of request logs.
|
|
19
|
-
*
|
|
20
|
-
* Two requests are considered duplicates if they share the same method, path,
|
|
21
|
-
* stringified body, and stringified query. Headers are intentionally excluded
|
|
22
|
-
* because they often differ due to timestamps, auth tokens, etc.
|
|
23
|
-
*
|
|
24
|
-
* @returns An array of {@link DuplicateGroup} objects, one per group that has
|
|
25
|
-
* 2 or more members. The first occurrence is the `canonical` and the rest
|
|
26
|
-
* are in `duplicates`.
|
|
27
|
-
*/
|
|
28
|
-
export declare function detectDuplicates(requests: RequestLogType[]): DuplicateGroup[];
|
|
29
|
-
/**
|
|
30
|
-
* Convert a recorded HTTP request log entry into a cURL command string.
|
|
31
|
-
* Useful for exporting requests from the history panel or flow recorder.
|
|
32
|
-
*/
|
|
33
|
-
export declare function requestToCurl(req: RequestLogType): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FlowEdge, FlowStepNode } from '../stores/flowStore.js';
|
|
2
|
-
export type PresetTemplate = {
|
|
3
|
-
label: string;
|
|
4
|
-
description: string;
|
|
5
|
-
build: () => {
|
|
6
|
-
name: string;
|
|
7
|
-
nodes: FlowStepNode[];
|
|
8
|
-
edges: FlowEdge[];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare const PRESET_TEMPLATES: PresetTemplate[];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { FlowDefinition } from '../stores/flowStore.js';
|
|
2
|
-
import type { RequestLogType } from '../types/types.requestLog.js';
|
|
3
|
-
export declare function generateFlowFromRequests(requests: RequestLogType[], flowName: string, options?: {
|
|
4
|
-
addAssertions?: boolean;
|
|
5
|
-
}): FlowDefinition;
|
|
@@ -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[];
|