@emeryld/rrroutes-openapi 2.3.1 → 2.3.3
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/README.md +21 -10
- package/dist/docs/LeafDocsPage.d.ts +3 -23
- package/dist/docs/docs.d.ts +4 -7
- package/dist/docs/schemaIntrospection.d.ts +4 -13
- package/dist/docs/serializer.d.ts +5 -19
- package/dist/index.cjs +468 -670
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +30 -105
- package/dist/index.mjs +471 -670
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.css +1 -1
- package/dist/public/assets/docs.js +260 -21
- package/dist/web/app.d.ts +1 -8
- package/dist/web/main.d.ts +1 -1
- package/dist/web/utils/grouping.d.ts +2 -8
- package/dist/web/utils/security.d.ts +21 -0
- package/dist/web/utils/types.d.ts +17 -0
- package/dist/web/v2/AppShell.d.ts +7 -0
- package/dist/web/v2/components/JsonInput.d.ts +10 -0
- package/dist/web/v2/components/JsonViewer.d.ts +12 -0
- package/dist/web/v2/components/MethodBadge.d.ts +4 -0
- package/dist/web/v2/components/New/HttpMethodChip.d.ts +7 -0
- package/dist/web/v2/components/New/ListToolBar.d.ts +11 -0
- package/dist/web/v2/components/New/MethodFiltersChips.d.ts +7 -0
- package/dist/web/v2/components/New/RequestStatusChip.d.ts +6 -0
- package/dist/web/v2/components/New/SplitPageLayout.d.ts +7 -0
- package/dist/web/v2/components/New/StabilityChip.d.ts +7 -0
- package/dist/web/v2/components/New/StatusRangeFilter.d.ts +8 -0
- package/dist/web/v2/components/RecordItem.d.ts +34 -0
- package/dist/web/v2/components/ResizableSidePanel.d.ts +12 -0
- package/dist/web/v2/components/SchemaTable.d.ts +5 -0
- package/dist/web/v2/components/SectionHeader.d.ts +9 -0
- package/dist/web/v2/endpoints/EndpointDetailsPanel.d.ts +5 -0
- package/dist/web/v2/endpoints/EndpointList.d.ts +12 -0
- package/dist/web/v2/endpoints/EndpointsPage.d.ts +4 -0
- package/dist/web/v2/endpoints/endpoints.utils.d.ts +3 -0
- package/dist/web/v2/stores/clientStore.d.ts +48 -0
- package/dist/web/v2/theme.d.ts +21 -0
- package/dist/web/v2/types/types.base.d.ts +30 -0
- package/dist/web/v2/types/types.cacheLog.d.ts +165 -0
- package/dist/web/v2/types/types.endpoint.d.ts +326 -0
- package/dist/web/v2/types/types.log.d.ts +119 -0
- package/dist/web/v2/types/types.preset.d.ts +251 -0
- package/dist/web/v2/types/types.requestLog.d.ts +264 -0
- package/package.json +16 -5
- package/dist/docs/presets.d.ts +0 -14
- package/dist/web/components/Analytics.d.ts +0 -68
- package/dist/web/components/CopyablePre.d.ts +0 -7
- package/dist/web/components/EndpointCard.d.ts +0 -10
- package/dist/web/components/Filters.d.ts +0 -9
- package/dist/web/components/FiltersBar.d.ts +0 -25
- package/dist/web/components/HelperEnumInput.d.ts +0 -11
- package/dist/web/components/HistoryView.d.ts +0 -7
- package/dist/web/components/LogsView.d.ts +0 -1
- package/dist/web/components/PlaygroundOverlay.d.ts +0 -94
- package/dist/web/components/PresetsView.d.ts +0 -15
- package/dist/web/components/RequestLogs.d.ts +0 -10
- package/dist/web/components/SchemaTable.d.ts +0 -4
- package/dist/web/components/ui/Button.d.ts +0 -8
- package/dist/web/components/ui/Clickable.d.ts +0 -7
- package/dist/web/components/ui/Tag.d.ts +0 -9
- package/dist/web/components/ui/Text.d.ts +0 -8
- package/dist/web/components/ui/index.d.ts +0 -4
- package/dist/web/historyStore.d.ts +0 -68
- package/dist/web/logsStore.d.ts +0 -51
- package/dist/web/types.d.ts +0 -5
- package/dist/webhooks.d.ts +0 -181
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
export declare function FiltersBar({ title, subtitle, actions, children, sticky, raw, }: {
|
|
3
|
-
title: string;
|
|
4
|
-
subtitle?: string;
|
|
5
|
-
actions?: ReactNode;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
sticky?: boolean;
|
|
8
|
-
raw?: boolean;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare function FilterBlock({ label, hint, span, children, }: {
|
|
11
|
-
label: string;
|
|
12
|
-
hint?: string;
|
|
13
|
-
span?: number;
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function SortControl<T extends string>({ value, direction, options, onChange, onToggleDirection, }: {
|
|
17
|
-
value: T;
|
|
18
|
-
direction: 'asc' | 'desc';
|
|
19
|
-
options: {
|
|
20
|
-
label: string;
|
|
21
|
-
value: T;
|
|
22
|
-
}[];
|
|
23
|
-
onChange?: (value: T) => void;
|
|
24
|
-
onToggleDirection: () => void;
|
|
25
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type HelperEnumInputProps = {
|
|
2
|
-
value: Set<string>;
|
|
3
|
-
onChange: (next: Set<string>) => void;
|
|
4
|
-
suggestions?: string[];
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
allowCustom?: boolean;
|
|
7
|
-
maxSuggestions?: number;
|
|
8
|
-
excludeSelectedSuggestions?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare function HelperEnumInput({ value, onChange, suggestions, placeholder, allowCustom, maxSuggestions, excludeSelectedSuggestions, }: HelperEnumInputProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type HistoryFilters } from '../historyStore.js';
|
|
2
|
-
type HistoryViewProps = {
|
|
3
|
-
onFiltersChange?: (next: HistoryFilters) => void;
|
|
4
|
-
availableMethods: string[];
|
|
5
|
-
};
|
|
6
|
-
export declare function HistoryView({ onFiltersChange, availableMethods }: HistoryViewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function LogsView(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type { SerializablePresetOperation } from '../../docs/presets.js';
|
|
2
|
-
import type { SerializableLeaf } from '../../docs/serializer.js';
|
|
3
|
-
type QueryRow = {
|
|
4
|
-
id: string;
|
|
5
|
-
key: string;
|
|
6
|
-
value: string;
|
|
7
|
-
};
|
|
8
|
-
type HeaderRow = {
|
|
9
|
-
id: string;
|
|
10
|
-
key: string;
|
|
11
|
-
value: string;
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
};
|
|
14
|
-
export type PlaygroundInputs = {
|
|
15
|
-
pathParams: Record<string, string>;
|
|
16
|
-
queryRows: QueryRow[];
|
|
17
|
-
bodyText: string;
|
|
18
|
-
};
|
|
19
|
-
export type PlaygroundRequestSettings = {
|
|
20
|
-
baseUrl: string;
|
|
21
|
-
headers: HeaderRow[];
|
|
22
|
-
};
|
|
23
|
-
export type PlaygroundTab = {
|
|
24
|
-
id: string;
|
|
25
|
-
leafKey: string;
|
|
26
|
-
leaf: SerializableLeaf;
|
|
27
|
-
title: string;
|
|
28
|
-
label: string;
|
|
29
|
-
state: PlaygroundSessionState;
|
|
30
|
-
};
|
|
31
|
-
export type PlaygroundSessionState = {
|
|
32
|
-
lastRun: RunSnapshot | null;
|
|
33
|
-
showFullResponse: boolean;
|
|
34
|
-
logsExpanded: boolean;
|
|
35
|
-
runCardOpen: {
|
|
36
|
-
sent: boolean;
|
|
37
|
-
logs: boolean;
|
|
38
|
-
output: boolean;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
type RunSnapshot = {
|
|
42
|
-
url: string;
|
|
43
|
-
method: string;
|
|
44
|
-
pathParams: Record<string, string>;
|
|
45
|
-
query: Record<string, string>;
|
|
46
|
-
headers: Record<string, string>;
|
|
47
|
-
bodyText: string;
|
|
48
|
-
requestId?: string;
|
|
49
|
-
timestamp: number;
|
|
50
|
-
responseMeta: string;
|
|
51
|
-
responseBody: string;
|
|
52
|
-
};
|
|
53
|
-
export declare const createDefaultPlaygroundSessionState: () => PlaygroundSessionState;
|
|
54
|
-
export declare function createDefaultRequestSettings(baseUrlSuffix?: string): PlaygroundRequestSettings;
|
|
55
|
-
export declare function createDefaultPlaygroundInputs(leaf: SerializableLeaf): PlaygroundInputs;
|
|
56
|
-
export declare function createInputsFromPreset(leaf: SerializableLeaf, preset?: SerializablePresetOperation): PlaygroundInputs;
|
|
57
|
-
export declare function PlaygroundOverlay({ tabs, activeTabId, inputsByTab, onSelectTab, onInputsChange, onClearInputs, onCloseTab, onDuplicateTab, onCloseOverlay, baseUrl, onBaseUrlChange, headers, onHeadersChange, baseUrlSuffix, leafSuggestions, leafSelection, onLeafSelectionChange, onTabStateChange, }: {
|
|
58
|
-
tabs: PlaygroundTab[];
|
|
59
|
-
activeTabId: string | null;
|
|
60
|
-
inputsByTab: Record<string, PlaygroundInputs>;
|
|
61
|
-
onSelectTab: (tabId: string) => void;
|
|
62
|
-
onInputsChange: (tabId: string, state: PlaygroundInputs) => void;
|
|
63
|
-
onClearInputs: (tabId: string, next: PlaygroundInputs) => void;
|
|
64
|
-
onCloseTab: (tabId: string) => void;
|
|
65
|
-
onDuplicateTab: (tabId: string) => void;
|
|
66
|
-
onCloseOverlay: () => void;
|
|
67
|
-
baseUrl: string;
|
|
68
|
-
onBaseUrlChange: (next: string) => void;
|
|
69
|
-
headers: HeaderRow[];
|
|
70
|
-
onHeadersChange: (rows: HeaderRow[]) => void;
|
|
71
|
-
baseUrlSuffix?: string;
|
|
72
|
-
leafSuggestions: string[];
|
|
73
|
-
leafSelection: Set<string>;
|
|
74
|
-
onLeafSelectionChange: (next: Set<string>) => void;
|
|
75
|
-
onTabStateChange: (tabId: string, state: PlaygroundSessionState) => void;
|
|
76
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
77
|
-
export declare function PlaygroundPanel(props: PlaygroundPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
78
|
-
type PlaygroundPanelProps = {
|
|
79
|
-
leaf: SerializableLeaf;
|
|
80
|
-
inputs: PlaygroundInputs;
|
|
81
|
-
onInputsChange: (state: PlaygroundInputs) => void;
|
|
82
|
-
onClearInputs: (next: PlaygroundInputs) => void;
|
|
83
|
-
onClose?: () => void;
|
|
84
|
-
headingNote?: string;
|
|
85
|
-
exposeSendRef?: (send: (() => Promise<void>) | null) => void;
|
|
86
|
-
baseUrlSuffix?: string;
|
|
87
|
-
baseUrl: string;
|
|
88
|
-
onBaseUrlChange: (next: string) => void;
|
|
89
|
-
headers: HeaderRow[];
|
|
90
|
-
onHeadersChange: (rows: HeaderRow[]) => void;
|
|
91
|
-
sessionState: PlaygroundSessionState;
|
|
92
|
-
onSessionStateChange: (next: PlaygroundSessionState) => void;
|
|
93
|
-
};
|
|
94
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { SerializablePreset } from '../../docs/presets.js';
|
|
2
|
-
import type { SerializableLeaf } from '../../docs/serializer.js';
|
|
3
|
-
import { type PlaygroundRequestSettings } from './PlaygroundOverlay.js';
|
|
4
|
-
type PresetsViewProps = {
|
|
5
|
-
presets: SerializablePreset[];
|
|
6
|
-
leaves: SerializableLeaf[];
|
|
7
|
-
baseUrlSuffix?: string;
|
|
8
|
-
baseUrl: string;
|
|
9
|
-
headers: PlaygroundRequestSettings['headers'];
|
|
10
|
-
onBaseUrlChange: (next: string) => void;
|
|
11
|
-
onHeadersChange: (rows: PlaygroundRequestSettings['headers']) => void;
|
|
12
|
-
onBackToRoutes: () => void;
|
|
13
|
-
};
|
|
14
|
-
export declare function PresetsView({ presets, leaves, baseUrlSuffix, baseUrl, headers, onBaseUrlChange, onHeadersChange, onBackToRoutes, }: PresetsViewProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { LogEntry } from '../logsStore.js';
|
|
2
|
-
export declare function RequestLogsSection({ entryId, requestId, logs, expanded, onToggle, loading, error, }: {
|
|
3
|
-
entryId?: string;
|
|
4
|
-
requestId?: string;
|
|
5
|
-
logs: LogEntry[];
|
|
6
|
-
expanded: boolean;
|
|
7
|
-
onToggle: () => void;
|
|
8
|
-
loading: boolean;
|
|
9
|
-
error?: string;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ButtonHTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
-
type ButtonVariant = 'primary' | 'ghost' | 'pill' | 'link';
|
|
3
|
-
type ButtonProps = PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
|
-
variant?: ButtonVariant;
|
|
5
|
-
active?: boolean;
|
|
6
|
-
}>;
|
|
7
|
-
export declare function Button({ variant, active, className, type, children, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
-
type ClickableProps = PropsWithChildren<HTMLAttributes<any> & {
|
|
3
|
-
as?: keyof HTMLElementTagNameMap;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
}>;
|
|
6
|
-
export declare function Clickable({ as: Component, disabled, className, onClick, children, ...rest }: ClickableProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
-
type TagVariant = 'chip' | 'status' | 'method';
|
|
3
|
-
type TagProps = PropsWithChildren<HTMLAttributes<HTMLSpanElement> & {
|
|
4
|
-
variant?: TagVariant;
|
|
5
|
-
tone?: 'error' | 'warn' | 'good';
|
|
6
|
-
method?: string;
|
|
7
|
-
}>;
|
|
8
|
-
export declare function Tag({ variant, tone, method, className, children, ...rest }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
-
type TextVariant = 'muted' | 'accent' | 'default';
|
|
3
|
-
type TextProps = PropsWithChildren<HTMLAttributes<HTMLElement> & {
|
|
4
|
-
as?: keyof HTMLElementTagNameMap;
|
|
5
|
-
variant?: TextVariant;
|
|
6
|
-
}>;
|
|
7
|
-
export declare function Text({ as: Component, variant, className, children, ...rest }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type { HistoryFeedEntry, WebhookPaths } from '../webhooks.js';
|
|
3
|
-
export type HistoryEntry = HistoryFeedEntry & {
|
|
4
|
-
params: Record<string, string>;
|
|
5
|
-
query: Record<string, string>;
|
|
6
|
-
body: string;
|
|
7
|
-
output: string;
|
|
8
|
-
};
|
|
9
|
-
export type HistoryFilters = {
|
|
10
|
-
methods: Set<string>;
|
|
11
|
-
path: string;
|
|
12
|
-
statuses: Set<string>;
|
|
13
|
-
text: string;
|
|
14
|
-
from?: string;
|
|
15
|
-
to?: string;
|
|
16
|
-
sortBy: HistorySortKey;
|
|
17
|
-
sortDir: HistorySortDirection;
|
|
18
|
-
pageSize: number;
|
|
19
|
-
};
|
|
20
|
-
export type HistorySeed = Partial<HistoryEntry> & {
|
|
21
|
-
method: string;
|
|
22
|
-
path: string;
|
|
23
|
-
fullUrl: string;
|
|
24
|
-
durationMs: number;
|
|
25
|
-
timestamp?: number;
|
|
26
|
-
};
|
|
27
|
-
type HistoryPageState = {
|
|
28
|
-
cursor: string | null;
|
|
29
|
-
nextCursor?: string | null;
|
|
30
|
-
prevCursor?: string | null;
|
|
31
|
-
total?: number;
|
|
32
|
-
};
|
|
33
|
-
type HistoryContextValue = {
|
|
34
|
-
entries: HistoryEntry[];
|
|
35
|
-
loading: boolean;
|
|
36
|
-
error?: string;
|
|
37
|
-
filters: HistoryFilters;
|
|
38
|
-
setFilters: (next: HistoryFilters) => void;
|
|
39
|
-
updateFilters: (partial: Partial<HistoryFilters>) => void;
|
|
40
|
-
statsByRoute: Map<string, EndpointHistoryStats>;
|
|
41
|
-
page: HistoryPageState;
|
|
42
|
-
setCursor: (cursor: string | null) => void;
|
|
43
|
-
refresh: () => Promise<void>;
|
|
44
|
-
hasFilters: boolean;
|
|
45
|
-
};
|
|
46
|
-
export declare function HistoryProvider({ children, initialEntries, webhookPaths, }: {
|
|
47
|
-
children: ReactNode;
|
|
48
|
-
initialEntries?: HistorySeed[];
|
|
49
|
-
webhookPaths?: WebhookPaths;
|
|
50
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
export declare function useHistoryStore(): HistoryContextValue;
|
|
52
|
-
export declare function filtersToSearchParams(filters: HistoryFilters): URLSearchParams;
|
|
53
|
-
export declare function filtersFromSearchParams(params: URLSearchParams): Partial<HistoryFilters> | undefined;
|
|
54
|
-
export declare function defaultHistoryFiltersState(): HistoryFilters;
|
|
55
|
-
export declare function mergeHistoryFilters(base: HistoryFilters, partial?: Partial<HistoryFilters>): HistoryFilters;
|
|
56
|
-
export declare function normalizeHistorySeedEntries(seeds?: HistorySeed[]): HistoryEntry[];
|
|
57
|
-
export type EndpointHistoryStats = {
|
|
58
|
-
total: number;
|
|
59
|
-
successRate: number;
|
|
60
|
-
avgDuration: number;
|
|
61
|
-
p95Duration: number;
|
|
62
|
-
lastStatus?: number;
|
|
63
|
-
lastDuration?: number;
|
|
64
|
-
};
|
|
65
|
-
export type HistorySortKey = 'timestamp' | 'path' | 'duration';
|
|
66
|
-
export type HistorySortDirection = 'asc' | 'desc';
|
|
67
|
-
export declare function historyKey(method: string, path: string): string;
|
|
68
|
-
export {};
|
package/dist/web/logsStore.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type { LogFeedEntry, LogType, WebhookPaths } from '../webhooks.js';
|
|
3
|
-
export type LogEntry = LogFeedEntry & {
|
|
4
|
-
tags: string[];
|
|
5
|
-
metadata?: string;
|
|
6
|
-
};
|
|
7
|
-
export type LogFilters = {
|
|
8
|
-
types: Set<LogType>;
|
|
9
|
-
tags: Set<string>;
|
|
10
|
-
requestId: string;
|
|
11
|
-
text: string;
|
|
12
|
-
from?: string;
|
|
13
|
-
to?: string;
|
|
14
|
-
sortBy: LogSortKey;
|
|
15
|
-
sortDir: LogSortDirection;
|
|
16
|
-
pageSize: number;
|
|
17
|
-
};
|
|
18
|
-
export type LogSortDirection = 'asc' | 'desc';
|
|
19
|
-
export type LogSortKey = 'timestamp';
|
|
20
|
-
type LogsPageState = {
|
|
21
|
-
cursor: string | null;
|
|
22
|
-
nextCursor?: string | null;
|
|
23
|
-
prevCursor?: string | null;
|
|
24
|
-
total?: number;
|
|
25
|
-
};
|
|
26
|
-
type LogsContextValue = {
|
|
27
|
-
entries: LogEntry[];
|
|
28
|
-
loading: boolean;
|
|
29
|
-
error?: string;
|
|
30
|
-
filters: LogFilters;
|
|
31
|
-
setFilters: (next: LogFilters) => void;
|
|
32
|
-
updateFilters: (partial: Partial<LogFilters>) => void;
|
|
33
|
-
page: LogsPageState;
|
|
34
|
-
setCursor: (cursor: string | null) => void;
|
|
35
|
-
refresh: () => Promise<void>;
|
|
36
|
-
hasFilters: boolean;
|
|
37
|
-
};
|
|
38
|
-
export declare function LogsProvider({ children, webhookPaths, initialEntries, }: {
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
webhookPaths?: WebhookPaths;
|
|
41
|
-
initialEntries?: LogSeed[];
|
|
42
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
export declare function useLogsStore(): LogsContextValue;
|
|
44
|
-
export declare function defaultLogFiltersState(): LogFilters;
|
|
45
|
-
export declare function mergeLogFilters(base: LogFilters, partial?: Partial<LogFilters>): LogFilters;
|
|
46
|
-
export type LogSeed = Partial<LogFeedEntry> & {
|
|
47
|
-
type: LogType;
|
|
48
|
-
message: string;
|
|
49
|
-
timestamp: number;
|
|
50
|
-
};
|
|
51
|
-
export {};
|
package/dist/web/types.d.ts
DELETED
package/dist/webhooks.d.ts
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export type WebhookPage<T> = {
|
|
3
|
-
items: T[];
|
|
4
|
-
nextCursor?: string;
|
|
5
|
-
prevCursor?: string;
|
|
6
|
-
total?: number;
|
|
7
|
-
};
|
|
8
|
-
export type WebhookPaths = {
|
|
9
|
-
history: string;
|
|
10
|
-
logs: string;
|
|
11
|
-
};
|
|
12
|
-
export type HistoryFeedEntry = {
|
|
13
|
-
id: string;
|
|
14
|
-
requestId?: string;
|
|
15
|
-
timestamp: number;
|
|
16
|
-
method: string;
|
|
17
|
-
path: string;
|
|
18
|
-
fullUrl?: string;
|
|
19
|
-
params?: Record<string, string>;
|
|
20
|
-
query?: Record<string, string>;
|
|
21
|
-
body?: string;
|
|
22
|
-
output?: string;
|
|
23
|
-
status?: number;
|
|
24
|
-
durationMs: number;
|
|
25
|
-
error?: string;
|
|
26
|
-
};
|
|
27
|
-
export type HistoryFeedQuery = {
|
|
28
|
-
cursor?: string;
|
|
29
|
-
limit?: number;
|
|
30
|
-
methods?: string[];
|
|
31
|
-
path?: string;
|
|
32
|
-
status?: string;
|
|
33
|
-
from?: number;
|
|
34
|
-
to?: number;
|
|
35
|
-
text?: string;
|
|
36
|
-
sortBy?: 'timestamp' | 'path' | 'duration';
|
|
37
|
-
sortDir?: 'asc' | 'desc';
|
|
38
|
-
};
|
|
39
|
-
export type LogType = 'debug' | 'info' | 'warn' | 'error' | 'system';
|
|
40
|
-
export type LogFeedEntry = {
|
|
41
|
-
id: string;
|
|
42
|
-
type: LogType;
|
|
43
|
-
message: string;
|
|
44
|
-
timestamp: number;
|
|
45
|
-
requestId?: string;
|
|
46
|
-
tags?: string[];
|
|
47
|
-
metadata?: string;
|
|
48
|
-
};
|
|
49
|
-
export type LogFeedQuery = {
|
|
50
|
-
cursor?: string;
|
|
51
|
-
limit?: number;
|
|
52
|
-
types?: LogType[];
|
|
53
|
-
tags?: string[];
|
|
54
|
-
requestId?: string;
|
|
55
|
-
text?: string;
|
|
56
|
-
from?: number;
|
|
57
|
-
to?: number;
|
|
58
|
-
sortDir?: 'asc' | 'desc';
|
|
59
|
-
};
|
|
60
|
-
export declare const logTypeSchema: z.ZodEnum<{
|
|
61
|
-
error: "error";
|
|
62
|
-
debug: "debug";
|
|
63
|
-
info: "info";
|
|
64
|
-
warn: "warn";
|
|
65
|
-
system: "system";
|
|
66
|
-
}>;
|
|
67
|
-
export declare const historyFeedEntrySchema: z.ZodObject<{
|
|
68
|
-
id: z.ZodString;
|
|
69
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
70
|
-
timestamp: z.ZodNumber;
|
|
71
|
-
method: z.ZodString;
|
|
72
|
-
path: z.ZodString;
|
|
73
|
-
fullUrl: z.ZodOptional<z.ZodString>;
|
|
74
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
75
|
-
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
76
|
-
body: z.ZodOptional<z.ZodString>;
|
|
77
|
-
output: z.ZodOptional<z.ZodString>;
|
|
78
|
-
status: z.ZodOptional<z.ZodNumber>;
|
|
79
|
-
durationMs: z.ZodNumber;
|
|
80
|
-
error: z.ZodOptional<z.ZodString>;
|
|
81
|
-
}, z.core.$strip>;
|
|
82
|
-
export declare const logFeedEntrySchema: z.ZodObject<{
|
|
83
|
-
id: z.ZodString;
|
|
84
|
-
type: z.ZodEnum<{
|
|
85
|
-
error: "error";
|
|
86
|
-
debug: "debug";
|
|
87
|
-
info: "info";
|
|
88
|
-
warn: "warn";
|
|
89
|
-
system: "system";
|
|
90
|
-
}>;
|
|
91
|
-
message: z.ZodString;
|
|
92
|
-
timestamp: z.ZodNumber;
|
|
93
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
94
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
-
metadata: z.ZodOptional<z.ZodString>;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
export declare const historyFeedQuerySchema: z.ZodObject<{
|
|
98
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
99
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
100
|
-
methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
101
|
-
path: z.ZodOptional<z.ZodString>;
|
|
102
|
-
status: z.ZodOptional<z.ZodString>;
|
|
103
|
-
text: z.ZodOptional<z.ZodString>;
|
|
104
|
-
from: z.ZodOptional<z.ZodNumber>;
|
|
105
|
-
to: z.ZodOptional<z.ZodNumber>;
|
|
106
|
-
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
107
|
-
path: "path";
|
|
108
|
-
timestamp: "timestamp";
|
|
109
|
-
duration: "duration";
|
|
110
|
-
}>>;
|
|
111
|
-
sortDir: z.ZodOptional<z.ZodEnum<{
|
|
112
|
-
asc: "asc";
|
|
113
|
-
desc: "desc";
|
|
114
|
-
}>>;
|
|
115
|
-
}, z.core.$strip>;
|
|
116
|
-
export declare const logFeedQuerySchema: z.ZodObject<{
|
|
117
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
118
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
119
|
-
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
120
|
-
error: "error";
|
|
121
|
-
debug: "debug";
|
|
122
|
-
info: "info";
|
|
123
|
-
warn: "warn";
|
|
124
|
-
system: "system";
|
|
125
|
-
}>>>;
|
|
126
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
128
|
-
text: z.ZodOptional<z.ZodString>;
|
|
129
|
-
from: z.ZodOptional<z.ZodNumber>;
|
|
130
|
-
to: z.ZodOptional<z.ZodNumber>;
|
|
131
|
-
sortDir: z.ZodOptional<z.ZodEnum<{
|
|
132
|
-
asc: "asc";
|
|
133
|
-
desc: "desc";
|
|
134
|
-
}>>;
|
|
135
|
-
}, z.core.$strip>;
|
|
136
|
-
export declare const webhookPageSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
|
|
137
|
-
items: z.ZodDefault<z.ZodArray<T>>;
|
|
138
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
139
|
-
prevCursor: z.ZodOptional<z.ZodString>;
|
|
140
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
141
|
-
}, z.core.$strip>;
|
|
142
|
-
export declare const historyWebhookResponseSchema: z.ZodObject<{
|
|
143
|
-
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
144
|
-
id: z.ZodString;
|
|
145
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
146
|
-
timestamp: z.ZodNumber;
|
|
147
|
-
method: z.ZodString;
|
|
148
|
-
path: z.ZodString;
|
|
149
|
-
fullUrl: z.ZodOptional<z.ZodString>;
|
|
150
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
151
|
-
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
152
|
-
body: z.ZodOptional<z.ZodString>;
|
|
153
|
-
output: z.ZodOptional<z.ZodString>;
|
|
154
|
-
status: z.ZodOptional<z.ZodNumber>;
|
|
155
|
-
durationMs: z.ZodNumber;
|
|
156
|
-
error: z.ZodOptional<z.ZodString>;
|
|
157
|
-
}, z.core.$strip>>>;
|
|
158
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
159
|
-
prevCursor: z.ZodOptional<z.ZodString>;
|
|
160
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
161
|
-
}, z.core.$strip>;
|
|
162
|
-
export declare const logWebhookResponseSchema: z.ZodObject<{
|
|
163
|
-
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
164
|
-
id: z.ZodString;
|
|
165
|
-
type: z.ZodEnum<{
|
|
166
|
-
error: "error";
|
|
167
|
-
debug: "debug";
|
|
168
|
-
info: "info";
|
|
169
|
-
warn: "warn";
|
|
170
|
-
system: "system";
|
|
171
|
-
}>;
|
|
172
|
-
message: z.ZodString;
|
|
173
|
-
timestamp: z.ZodNumber;
|
|
174
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
175
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
176
|
-
metadata: z.ZodOptional<z.ZodString>;
|
|
177
|
-
}, z.core.$strip>>>;
|
|
178
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
179
|
-
prevCursor: z.ZodOptional<z.ZodString>;
|
|
180
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
181
|
-
}, z.core.$strip>;
|