@omniviewdev/runtime 0.9.2 → 0.11.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/api.cjs +1 -1
- package/dist/api.d.ts +8 -6
- package/dist/api.js +249 -117
- package/dist/bindings/events/index.d.ts +48 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/models.d.ts +19 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/models.d.ts +0 -20
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper.d.ts +3 -6
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +2 -2
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +3 -15
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +5 -18
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +190 -9
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +34 -74
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/models.d.ts +190 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/service.d.ts +83 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/models.d.ts +178 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/servicewrapper.d.ts +30 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +27 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +809 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +94 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +16 -6
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models.d.ts +27 -17
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models.d.ts +47 -24
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/models.d.ts +41 -20
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +16 -4
- package/dist/{calls-Bg_uMVc9.cjs → calls-B-HP1Icv.cjs} +1 -1
- package/dist/{calls-BvZkVSse.js → calls-DYGtxNJ6.js} +1 -0
- package/dist/compat/types.d.ts +1 -1
- package/dist/context/drawer/RightDrawerContext.d.ts +8 -4
- package/dist/context/drawer/types.d.ts +11 -21
- package/dist/context/index.d.ts +1 -0
- package/dist/context/operations/OperationsContext.d.ts +5 -5
- package/dist/context/windows/WindowActionsContext.d.ts +31 -0
- package/dist/context/windows/activePageNavigator.d.ts +13 -0
- package/dist/context/windows/index.d.ts +2 -0
- package/dist/exec.d.ts +5 -0
- package/dist/graph-JDqyJC_i.js +10 -0
- package/dist/graph-wHun0Bkz.cjs +1 -0
- package/dist/hooks/connection/index.d.ts +2 -1
- package/dist/hooks/connection/useConnection.d.ts +9 -30
- package/dist/hooks/connection/useConnectionProfiles.d.ts +7 -0
- package/dist/hooks/connection/useConnectionStatus.d.ts +8 -1
- package/dist/hooks/connection/useConnections.d.ts +3 -2
- package/dist/hooks/connection/useScopeValues.d.ts +9 -0
- package/dist/hooks/logs/useLogSession.d.ts +4 -1
- package/dist/hooks/metric/useMetricStream.d.ts +6 -2
- package/dist/hooks/metric/useResourceMetrics.d.ts +6 -2
- package/dist/hooks/networker/types.d.ts +5 -2
- package/dist/hooks/networker/useResourcePortForwarder.d.ts +1 -1
- package/dist/hooks/resource/useConnectionQueryGuard.d.ts +1 -1
- package/dist/hooks/resource/useDependencyTree.d.ts +4 -12
- package/dist/hooks/resource/useEditorSchemas.d.ts +12 -7
- package/dist/hooks/resource/useEventBatcher.d.ts +11 -47
- package/dist/hooks/resource/useRelatedResources.d.ts +6 -14
- package/dist/hooks/resource/useResolvedResourceTarget.d.ts +162 -0
- package/dist/hooks/resource/useResource.d.ts +7 -58
- package/dist/hooks/resource/useResourceActions.d.ts +9 -58
- package/dist/hooks/resource/useResourceGraph.d.ts +4 -12
- package/dist/hooks/resource/useResourceGroups.d.ts +5 -19
- package/dist/hooks/resource/useResourceMutations.d.ts +5 -61
- package/dist/hooks/resource/useResourceSearch.d.ts +5 -34
- package/dist/hooks/resource/useResourceType.d.ts +6 -19
- package/dist/hooks/resource/useResourceTypes.d.ts +5 -20
- package/dist/hooks/resource/useResources.d.ts +32 -60
- package/dist/hooks/resource/useStreamAction.d.ts +4 -8
- package/dist/hooks/resource/useWatchState.d.ts +15 -22
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +6 -1
- package/dist/index.js +3007 -2881
- package/dist/logs.d.ts +14 -0
- package/dist/metric.d.ts +35 -0
- package/dist/models-Cg1YRHQm.js +583 -0
- package/dist/models-DSGyy8lg.cjs +1 -0
- package/dist/models-UwESEW2B.js +1232 -0
- package/dist/models-dzj-SsFZ.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +14 -8
- package/dist/models.js +118 -208
- package/dist/networker.d.ts +31 -0
- package/dist/resource/v2/ancillary.d.ts +161 -0
- package/dist/resource/v2/client.d.ts +57 -0
- package/dist/resource/v2/domain.d.ts +204 -0
- package/dist/resource/v2/graph-client.d.ts +7 -0
- package/dist/resource/v2/graph.d.ts +35 -0
- package/dist/resource/v2/host.d.ts +129 -0
- package/dist/resource/v2/requestJSON.d.ts +2 -0
- package/dist/resource/v2/value.d.ts +9 -0
- package/dist/resourceQueryKeys.d.ts +8 -4
- package/dist/router/Link.d.ts +3 -0
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +1 -1
- package/dist/search.d.ts +9 -11
- package/dist/servicewrapper-BOM6A8IG.cjs +1 -0
- package/dist/servicewrapper-Bda7yi8z.js +684 -0
- package/dist/types/watch.d.ts +48 -21
- package/dist/utils/activeSyncAggregator.d.ts +2 -2
- package/package.json +3 -3
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/index.d.ts +0 -2
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models.d.ts +0 -1199
- package/dist/compat/resource.d.ts +0 -4
- package/dist/hooks/connection/useConnectionNamespaces.d.ts +0 -21
- package/dist/legacyEnum-CKqyRmbX.js +0 -15
- package/dist/legacyEnum-DkV5yRdA.cjs +0 -1
- package/dist/models-CT4kHj47.js +0 -2444
- package/dist/models-DQl7tqts.cjs +0 -1
- package/dist/models-DU8pTcoZ.js +0 -142
- package/dist/models-KV9f8Ceh.cjs +0 -1
- package/dist/servicewrapper-C6SURWw1.js +0 -850
- package/dist/servicewrapper-COMjQHnY.cjs +0 -1
- package/dist/utils/resourceKey.d.ts +0 -12
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DragBegin starts a cross-window tab drag session.
|
|
3
|
+
*/
|
|
4
|
+
export declare class DragBegin {
|
|
5
|
+
"sessionId": string;
|
|
6
|
+
"sourceWindow": string;
|
|
7
|
+
"dragType": string;
|
|
8
|
+
/**
|
|
9
|
+
* Payload is the JSON of the base-ui TabDragPayload; it is forwarded to
|
|
10
|
+
* target windows verbatim.
|
|
11
|
+
*/
|
|
12
|
+
"payload": string;
|
|
13
|
+
/** Creates a new DragBegin instance. */
|
|
14
|
+
constructor($$source?: Partial<DragBegin>);
|
|
15
|
+
/**
|
|
16
|
+
* Creates a new DragBegin instance from a string or object.
|
|
17
|
+
*/
|
|
18
|
+
static createFrom($$source?: any): DragBegin;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* DragBeginEvent is the payload of EventDragBegin; every window reports a
|
|
22
|
+
* fresh viewport in response.
|
|
23
|
+
*/
|
|
24
|
+
export declare class DragBeginEvent {
|
|
25
|
+
"sessionId": string;
|
|
26
|
+
"sourceWindow": string;
|
|
27
|
+
"dragType": string;
|
|
28
|
+
/** Creates a new DragBeginEvent instance. */
|
|
29
|
+
constructor($$source?: Partial<DragBeginEvent>);
|
|
30
|
+
/**
|
|
31
|
+
* Creates a new DragBeginEvent instance from a string or object.
|
|
32
|
+
*/
|
|
33
|
+
static createFrom($$source?: any): DragBeginEvent;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* DragEndEvent is the payload of EventDragEnd; all windows clear remote
|
|
37
|
+
* drag state for the session.
|
|
38
|
+
*/
|
|
39
|
+
export declare class DragEndEvent {
|
|
40
|
+
"sessionId": string;
|
|
41
|
+
/** Creates a new DragEndEvent instance. */
|
|
42
|
+
constructor($$source?: Partial<DragEndEvent>);
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new DragEndEvent instance from a string or object.
|
|
45
|
+
*/
|
|
46
|
+
static createFrom($$source?: any): DragEndEvent;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* DragLeaveEvent is the payload of EventDragLeave.
|
|
50
|
+
*/
|
|
51
|
+
export declare class DragLeaveEvent {
|
|
52
|
+
"sessionId": string;
|
|
53
|
+
"targetWindow": string;
|
|
54
|
+
/** Creates a new DragLeaveEvent instance. */
|
|
55
|
+
constructor($$source?: Partial<DragLeaveEvent>);
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new DragLeaveEvent instance from a string or object.
|
|
58
|
+
*/
|
|
59
|
+
static createFrom($$source?: any): DragLeaveEvent;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* DragPointerEvent is the payload of EventDragHover and EventDragDrop. The
|
|
63
|
+
* pointer is in the target window's client space.
|
|
64
|
+
*/
|
|
65
|
+
export declare class DragPointerEvent {
|
|
66
|
+
"sessionId": string;
|
|
67
|
+
"targetWindow": string;
|
|
68
|
+
/**
|
|
69
|
+
* Payload is DragBegin.Payload verbatim (JSON of TabDragPayload).
|
|
70
|
+
*/
|
|
71
|
+
"payload": string;
|
|
72
|
+
"clientX": number;
|
|
73
|
+
"clientY": number;
|
|
74
|
+
/** Creates a new DragPointerEvent instance. */
|
|
75
|
+
constructor($$source?: Partial<DragPointerEvent>);
|
|
76
|
+
/**
|
|
77
|
+
* Creates a new DragPointerEvent instance from a string or object.
|
|
78
|
+
*/
|
|
79
|
+
static createFrom($$source?: any): DragPointerEvent;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* DropResult is the outcome of EndDrag.
|
|
83
|
+
*/
|
|
84
|
+
export declare class DropResult {
|
|
85
|
+
"accepted": boolean;
|
|
86
|
+
"targetWindow": string;
|
|
87
|
+
"targetInstanceId": string;
|
|
88
|
+
/** Creates a new DropResult instance. */
|
|
89
|
+
constructor($$source?: Partial<DropResult>);
|
|
90
|
+
/**
|
|
91
|
+
* Creates a new DropResult instance from a string or object.
|
|
92
|
+
*/
|
|
93
|
+
static createFrom($$source?: any): DropResult;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Info describes one live window.
|
|
97
|
+
*/
|
|
98
|
+
export declare class Info {
|
|
99
|
+
"name": string;
|
|
100
|
+
"kind": Kind;
|
|
101
|
+
/**
|
|
102
|
+
* Focused is true for the most recently focused window.
|
|
103
|
+
*/
|
|
104
|
+
"focused": boolean;
|
|
105
|
+
/** Creates a new Info instance. */
|
|
106
|
+
constructor($$source?: Partial<Info>);
|
|
107
|
+
/**
|
|
108
|
+
* Creates a new Info instance from a string or object.
|
|
109
|
+
*/
|
|
110
|
+
static createFrom($$source?: any): Info;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Kind selects which shell a window renders.
|
|
114
|
+
*/
|
|
115
|
+
export declare enum Kind {
|
|
116
|
+
/**
|
|
117
|
+
* The Go zero value for the underlying type of the enum.
|
|
118
|
+
*/
|
|
119
|
+
$zero = "",
|
|
120
|
+
/**
|
|
121
|
+
* KindWorkspace renders the full shell (header, rail, page tabs, panes,
|
|
122
|
+
* bottom drawer, footer).
|
|
123
|
+
*/
|
|
124
|
+
KindWorkspace = "workspace",
|
|
125
|
+
/**
|
|
126
|
+
* KindPanel renders only a drawer tab strip and the drawer tab content.
|
|
127
|
+
*/
|
|
128
|
+
KindPanel = "panel"
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* OpenRequest describes a window to open.
|
|
132
|
+
*/
|
|
133
|
+
export declare class OpenRequest {
|
|
134
|
+
"kind": Kind;
|
|
135
|
+
/**
|
|
136
|
+
* InitialState is the opaque per-slot state handed to the new window
|
|
137
|
+
* before it loads (same format as SaveState slots).
|
|
138
|
+
*/
|
|
139
|
+
"initialState": {
|
|
140
|
+
[_ in string]?: string;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* When HasPosition is set the new window's top-left is placed near the
|
|
144
|
+
* pointer at (ClientX, ClientY) in AnchorWindow's client space.
|
|
145
|
+
*/
|
|
146
|
+
"anchorWindow": string;
|
|
147
|
+
"clientX": number;
|
|
148
|
+
"clientY": number;
|
|
149
|
+
"hasPosition": boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Width and Height of the new window; 0 selects the kind's default.
|
|
152
|
+
*/
|
|
153
|
+
"width": number;
|
|
154
|
+
"height": number;
|
|
155
|
+
/** Creates a new OpenRequest instance. */
|
|
156
|
+
constructor($$source?: Partial<OpenRequest>);
|
|
157
|
+
/**
|
|
158
|
+
* Creates a new OpenRequest instance from a string or object.
|
|
159
|
+
*/
|
|
160
|
+
static createFrom($$source?: any): OpenRequest;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* WindowClosedEvent is the payload of EventWindowClosed. States holds the
|
|
164
|
+
* closed window's last saved slots (slot -> JSON).
|
|
165
|
+
*/
|
|
166
|
+
export declare class WindowClosedEvent {
|
|
167
|
+
"name": string;
|
|
168
|
+
"kind": Kind;
|
|
169
|
+
"states": {
|
|
170
|
+
[_ in string]?: string;
|
|
171
|
+
};
|
|
172
|
+
/** Creates a new WindowClosedEvent instance. */
|
|
173
|
+
constructor($$source?: Partial<WindowClosedEvent>);
|
|
174
|
+
/**
|
|
175
|
+
* Creates a new WindowClosedEvent instance from a string or object.
|
|
176
|
+
*/
|
|
177
|
+
static createFrom($$source?: any): WindowClosedEvent;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* WindowsChangedEvent is the payload of EventWindowsChanged.
|
|
181
|
+
*/
|
|
182
|
+
export declare class WindowsChangedEvent {
|
|
183
|
+
"windows": Info[];
|
|
184
|
+
/** Creates a new WindowsChangedEvent instance. */
|
|
185
|
+
constructor($$source?: Partial<WindowsChangedEvent>);
|
|
186
|
+
/**
|
|
187
|
+
* Creates a new WindowsChangedEvent instance from a string or object.
|
|
188
|
+
*/
|
|
189
|
+
static createFrom($$source?: any): WindowsChangedEvent;
|
|
190
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
|
|
2
|
+
import * as $models from "./models.js";
|
|
3
|
+
/**
|
|
4
|
+
* BeginDrag starts a cross-window drag owned by the source window, refreshes
|
|
5
|
+
* every window's native bounds and asks every window to report a fresh
|
|
6
|
+
* viewport.
|
|
7
|
+
*/
|
|
8
|
+
export declare function BeginDrag(b: $models.DragBegin): $CancellablePromise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* CancelDrag ends a session without a drop. Unknown sessions are ignored.
|
|
11
|
+
*/
|
|
12
|
+
export declare function CancelDrag(sessionID: string): $CancellablePromise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Close closes a non-main window. Its state is removed and windows/closed is
|
|
15
|
+
* emitted once the OS window has closed.
|
|
16
|
+
*/
|
|
17
|
+
export declare function Close(name: string): $CancellablePromise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* EndDrag drops the tab on the window under the pointer (given in the source
|
|
20
|
+
* window's client space) and waits for that window's RespondDrop. It returns
|
|
21
|
+
* a not-accepted result when no other window is under the pointer, the
|
|
22
|
+
* target declines, closes, or does not answer in time. The session always
|
|
23
|
+
* ends with windows/drag/end.
|
|
24
|
+
*/
|
|
25
|
+
export declare function EndDrag(sessionID: string, clientX: number, clientY: number): $CancellablePromise<$models.DropResult>;
|
|
26
|
+
/**
|
|
27
|
+
* Focus shows, restores and focuses the named window.
|
|
28
|
+
*/
|
|
29
|
+
export declare function Focus(name: string): $CancellablePromise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* GetState returns the named window's slots (slot -> JSON). A window calls it
|
|
32
|
+
* once its frontend has loaded, which also releases the next queued restore.
|
|
33
|
+
*/
|
|
34
|
+
export declare function GetState(name: string): $CancellablePromise<{
|
|
35
|
+
[_ in string]?: string;
|
|
36
|
+
}>;
|
|
37
|
+
/**
|
|
38
|
+
* List returns the live windows in creation order.
|
|
39
|
+
*/
|
|
40
|
+
export declare function List(): $CancellablePromise<$models.Info[]>;
|
|
41
|
+
/**
|
|
42
|
+
* ListStates returns every live window's slots (window -> slot -> JSON).
|
|
43
|
+
*/
|
|
44
|
+
export declare function ListStates(): $CancellablePromise<{
|
|
45
|
+
[_ in string]?: {
|
|
46
|
+
[_ in string]?: string;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* MoveDrag routes the pointer, given in the source window's client space, to
|
|
51
|
+
* the window under it: the previous target gets a leave event, the current
|
|
52
|
+
* target a hover event. Moves for unknown or ending sessions are ignored;
|
|
53
|
+
* they race with EndDrag/CancelDrag by design.
|
|
54
|
+
*/
|
|
55
|
+
export declare function MoveDrag(sessionID: string, clientX: number, clientY: number): $CancellablePromise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* MoveToPointer places the named window like a torn-off tab: its top-left
|
|
58
|
+
* goes up/left of the pointer, which is given in the window's own client
|
|
59
|
+
* space.
|
|
60
|
+
*/
|
|
61
|
+
export declare function MoveToPointer(name: string, clientX: number, clientY: number): $CancellablePromise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Open creates a window of the requested kind and returns its name. The
|
|
64
|
+
* InitialState slots are served by GetState before the window loads.
|
|
65
|
+
*/
|
|
66
|
+
export declare function Open(req: $models.OpenRequest): $CancellablePromise<string>;
|
|
67
|
+
/**
|
|
68
|
+
* ReportViewport records the named window's webview viewport size in CSS
|
|
69
|
+
* px. Together with the native bounds it locates the window's content on
|
|
70
|
+
* screen for drag hit-testing. Reports from unknown windows (for example a
|
|
71
|
+
* window that just closed) are ignored.
|
|
72
|
+
*/
|
|
73
|
+
export declare function ReportViewport(name: string, width: number, height: number): $CancellablePromise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* RespondDrop delivers the drop target's answer to the waiting EndDrag.
|
|
76
|
+
* Answers for unknown sessions, sessions not waiting on a drop, and duplicate
|
|
77
|
+
* answers are ignored.
|
|
78
|
+
*/
|
|
79
|
+
export declare function RespondDrop(sessionID: string, accepted: boolean, targetInstanceID: string): $CancellablePromise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* SaveState stores one slot of the named window and schedules persistence.
|
|
82
|
+
*/
|
|
83
|
+
export declare function SaveState(name: string, slot: string, stateJSON: string): $CancellablePromise<void>;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import * as invocation$0 from "../../backend/pkg/invocation/models.js";
|
|
2
|
+
/**
|
|
3
|
+
* ConfigView is the server part of the settings page.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ConfigView {
|
|
6
|
+
"enabled": boolean;
|
|
7
|
+
"port": number;
|
|
8
|
+
"endpoint": string;
|
|
9
|
+
"token": string;
|
|
10
|
+
"blockConnectionsByDefault": boolean;
|
|
11
|
+
"globalPreset": string;
|
|
12
|
+
"userPresets": string[];
|
|
13
|
+
/** Creates a new ConfigView instance. */
|
|
14
|
+
constructor($$source?: Partial<ConfigView>);
|
|
15
|
+
/**
|
|
16
|
+
* Creates a new ConfigView instance from a string or object.
|
|
17
|
+
*/
|
|
18
|
+
static createFrom($$source?: any): ConfigView;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* ConfirmationResolved reports how a pending confirmation ended.
|
|
22
|
+
*/
|
|
23
|
+
export declare class ConfirmationResolved {
|
|
24
|
+
"id": string;
|
|
25
|
+
"approved": boolean;
|
|
26
|
+
/**
|
|
27
|
+
* approved | denied | timeout | cancelled
|
|
28
|
+
*/
|
|
29
|
+
"reason": string;
|
|
30
|
+
/** Creates a new ConfirmationResolved instance. */
|
|
31
|
+
constructor($$source?: Partial<ConfirmationResolved>);
|
|
32
|
+
/**
|
|
33
|
+
* Creates a new ConfirmationResolved instance from a string or object.
|
|
34
|
+
*/
|
|
35
|
+
static createFrom($$source?: any): ConfirmationResolved;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* ConnectionPolicyView is one connection row with its policy.
|
|
39
|
+
*/
|
|
40
|
+
export declare class ConnectionPolicyView {
|
|
41
|
+
"pluginID": string;
|
|
42
|
+
"pluginName": string;
|
|
43
|
+
"connectionID": string;
|
|
44
|
+
"connectionName": string;
|
|
45
|
+
"access": string;
|
|
46
|
+
"effectiveAccess": boolean;
|
|
47
|
+
"preset": string;
|
|
48
|
+
"effectivePreset": string;
|
|
49
|
+
/** Creates a new ConnectionPolicyView instance. */
|
|
50
|
+
constructor($$source?: Partial<ConnectionPolicyView>);
|
|
51
|
+
/**
|
|
52
|
+
* Creates a new ConnectionPolicyView instance from a string or object.
|
|
53
|
+
*/
|
|
54
|
+
static createFrom($$source?: any): ConnectionPolicyView;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* PendingConfirmation is one tool call that waits for the user.
|
|
58
|
+
*/
|
|
59
|
+
export declare class PendingConfirmation {
|
|
60
|
+
"id": string;
|
|
61
|
+
"mcpName": string;
|
|
62
|
+
"pluginID": string;
|
|
63
|
+
"pluginName": string;
|
|
64
|
+
"connectionID": string;
|
|
65
|
+
"connectionName": string;
|
|
66
|
+
/**
|
|
67
|
+
* ArgumentsJSON is text, not embedded JSON: JavaScript must not round
|
|
68
|
+
* integer literals or erase negative zero before showing consent.
|
|
69
|
+
*/
|
|
70
|
+
"argumentsJSON": string;
|
|
71
|
+
"requestedAt": string;
|
|
72
|
+
"origin": string;
|
|
73
|
+
"credentialID": string;
|
|
74
|
+
"sessionID": string;
|
|
75
|
+
"invocationID": string;
|
|
76
|
+
"target": invocation$0.Target;
|
|
77
|
+
"policyRevision": number;
|
|
78
|
+
"catalogRevision": number;
|
|
79
|
+
/** Creates a new PendingConfirmation instance. */
|
|
80
|
+
constructor($$source?: Partial<PendingConfirmation>);
|
|
81
|
+
/**
|
|
82
|
+
* Creates a new PendingConfirmation instance from a string or object.
|
|
83
|
+
*/
|
|
84
|
+
static createFrom($$source?: any): PendingConfirmation;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* PresetView is one selectable preset.
|
|
88
|
+
*/
|
|
89
|
+
export declare class PresetView {
|
|
90
|
+
"name": string;
|
|
91
|
+
"builtIn": boolean;
|
|
92
|
+
"toolCount": number;
|
|
93
|
+
/** Creates a new PresetView instance. */
|
|
94
|
+
constructor($$source?: Partial<PresetView>);
|
|
95
|
+
/**
|
|
96
|
+
* Creates a new PresetView instance from a string or object.
|
|
97
|
+
*/
|
|
98
|
+
static createFrom($$source?: any): PresetView;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Scope selects the global policy (zero value) or one connection policy.
|
|
102
|
+
*/
|
|
103
|
+
export declare class Scope {
|
|
104
|
+
"pluginID": string;
|
|
105
|
+
"connectionID": string;
|
|
106
|
+
/** Creates a new Scope instance. */
|
|
107
|
+
constructor($$source?: Partial<Scope>);
|
|
108
|
+
/**
|
|
109
|
+
* Creates a new Scope instance from a string or object.
|
|
110
|
+
*/
|
|
111
|
+
static createFrom($$source?: any): Scope;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Status is the listener state shown in the UI.
|
|
115
|
+
*/
|
|
116
|
+
export declare class Status {
|
|
117
|
+
"enabled": boolean;
|
|
118
|
+
"running": boolean;
|
|
119
|
+
"endpoint": string;
|
|
120
|
+
"error": string;
|
|
121
|
+
/** Creates a new Status instance. */
|
|
122
|
+
constructor($$source?: Partial<Status>);
|
|
123
|
+
/**
|
|
124
|
+
* Creates a new Status instance from a string or object.
|
|
125
|
+
*/
|
|
126
|
+
static createFrom($$source?: any): Status;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* ToolOverride pins the enabled and/or confirm state of one tool in a scope.
|
|
130
|
+
* A nil field means "no override".
|
|
131
|
+
*/
|
|
132
|
+
export declare class ToolOverride {
|
|
133
|
+
"enabled"?: boolean | null;
|
|
134
|
+
"confirm"?: boolean | null;
|
|
135
|
+
/** Creates a new ToolOverride instance. */
|
|
136
|
+
constructor($$source?: Partial<ToolOverride>);
|
|
137
|
+
/**
|
|
138
|
+
* Creates a new ToolOverride instance from a string or object.
|
|
139
|
+
*/
|
|
140
|
+
static createFrom($$source?: any): ToolOverride;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* ToolView is one catalog row with its effective state in a scope.
|
|
144
|
+
*/
|
|
145
|
+
export declare class ToolView {
|
|
146
|
+
"mcpName": string;
|
|
147
|
+
"pluginID": string;
|
|
148
|
+
"connectionID": string;
|
|
149
|
+
"pluginName": string;
|
|
150
|
+
"name": string;
|
|
151
|
+
"title": string;
|
|
152
|
+
"description": string;
|
|
153
|
+
"scope": string;
|
|
154
|
+
"status": string;
|
|
155
|
+
"builtIn": boolean;
|
|
156
|
+
"readOnly": boolean;
|
|
157
|
+
"listed": boolean;
|
|
158
|
+
"ready": boolean;
|
|
159
|
+
"destructive": boolean;
|
|
160
|
+
"enabled": boolean;
|
|
161
|
+
/**
|
|
162
|
+
* override | preset | inherited | plugin-disabled | connection-blocked
|
|
163
|
+
*/
|
|
164
|
+
"enabledSource": string;
|
|
165
|
+
"confirm": boolean;
|
|
166
|
+
/**
|
|
167
|
+
* override | global-override | default
|
|
168
|
+
*/
|
|
169
|
+
"confirmSource": string;
|
|
170
|
+
"overrideEnabled": boolean | null;
|
|
171
|
+
"overrideConfirm": boolean | null;
|
|
172
|
+
/** Creates a new ToolView instance. */
|
|
173
|
+
constructor($$source?: Partial<ToolView>);
|
|
174
|
+
/**
|
|
175
|
+
* Creates a new ToolView instance from a string or object.
|
|
176
|
+
*/
|
|
177
|
+
static createFrom($$source?: any): ToolView;
|
|
178
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
|
|
2
|
+
import * as $models from "./models.js";
|
|
3
|
+
export declare function ApplyPreset(scope: $models.Scope, name: string): $CancellablePromise<void>;
|
|
4
|
+
export declare function DeleteUserPreset(name: string): $CancellablePromise<void>;
|
|
5
|
+
export declare function GetConfig(): $CancellablePromise<$models.ConfigView>;
|
|
6
|
+
export declare function GetStatus(): $CancellablePromise<$models.Status>;
|
|
7
|
+
/**
|
|
8
|
+
* ListConnectionPolicies joins every known connection with its policy.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ListConnectionPolicies(): $CancellablePromise<$models.ConnectionPolicyView[]>;
|
|
11
|
+
export declare function ListPendingConfirmations(): $CancellablePromise<$models.PendingConfirmation[]>;
|
|
12
|
+
export declare function ListPresets(): $CancellablePromise<$models.PresetView[]>;
|
|
13
|
+
/**
|
|
14
|
+
* ListTools returns the catalog with the effective state in scope. A
|
|
15
|
+
* connection scope lists only that plugin's connection-scoped tools.
|
|
16
|
+
*/
|
|
17
|
+
export declare function ListTools(scope: $models.Scope): $CancellablePromise<$models.ToolView[]>;
|
|
18
|
+
export declare function ResolveConfirmation(id: string, approved: boolean): $CancellablePromise<void>;
|
|
19
|
+
export declare function RotateToken(): $CancellablePromise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* SaveUserPreset stores the tools that are enabled in the global scope right
|
|
22
|
+
* now under name and applies it.
|
|
23
|
+
*/
|
|
24
|
+
export declare function SaveUserPreset(name: string): $CancellablePromise<void>;
|
|
25
|
+
export declare function SetBlockConnectionsByDefault(block: boolean): $CancellablePromise<void>;
|
|
26
|
+
export declare function SetConnectionAccess(pluginID: string, connectionID: string, access: string): $CancellablePromise<void>;
|
|
27
|
+
export declare function SetEnabled(enabled: boolean): $CancellablePromise<void>;
|
|
28
|
+
export declare function SetPluginEnabled(pluginID: string, enabled: boolean): $CancellablePromise<void>;
|
|
29
|
+
export declare function SetPort(port: number): $CancellablePromise<void>;
|
|
30
|
+
export declare function SetToolOverride(scope: $models.Scope, mcpName: string, override: $models.ToolOverride): $CancellablePromise<void>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PluginAuthor identifies the original author and optional contact links.
|
|
3
|
+
*/
|
|
1
4
|
export declare class PluginAuthor {
|
|
2
5
|
"name": string;
|
|
3
6
|
"email": string;
|
|
@@ -9,14 +12,26 @@ export declare class PluginAuthor {
|
|
|
9
12
|
*/
|
|
10
13
|
static createFrom($$source?: any): PluginAuthor;
|
|
11
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* PluginComponentArea selects the host surface where a resource component appears.
|
|
17
|
+
*/
|
|
12
18
|
export declare enum PluginComponentArea {
|
|
13
19
|
/**
|
|
14
20
|
* The Go zero value for the underlying type of the enum.
|
|
15
21
|
*/
|
|
16
22
|
$zero = "",
|
|
23
|
+
/**
|
|
24
|
+
* PluginComponentAreaEditor places a component in the resource editor.
|
|
25
|
+
*/
|
|
17
26
|
PluginComponentAreaEditor = "EDITOR",
|
|
27
|
+
/**
|
|
28
|
+
* PluginComponentAreaSidebar places a component in the resource sidebar.
|
|
29
|
+
*/
|
|
18
30
|
PluginComponentAreaSidebar = "SIDEBAR"
|
|
19
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* PluginComponents declares frontend components associated with resource views.
|
|
34
|
+
*/
|
|
20
35
|
export declare class PluginComponents {
|
|
21
36
|
"resource": PluginResourceComponent[];
|
|
22
37
|
/** Creates a new PluginComponents instance. */
|
|
@@ -26,6 +41,9 @@ export declare class PluginComponents {
|
|
|
26
41
|
*/
|
|
27
42
|
static createFrom($$source?: any): PluginComponents;
|
|
28
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* PluginMaintainer identifies a contact responsible for maintaining the plugin.
|
|
46
|
+
*/
|
|
29
47
|
export declare class PluginMaintainer {
|
|
30
48
|
"name": string;
|
|
31
49
|
"email": string;
|
|
@@ -71,6 +89,9 @@ export declare class PluginMeta {
|
|
|
71
89
|
*/
|
|
72
90
|
static createFrom($$source?: any): PluginMeta;
|
|
73
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* PluginResourceComponent binds a named frontend extension to resource types and a host surface.
|
|
94
|
+
*/
|
|
74
95
|
export declare class PluginResourceComponent {
|
|
75
96
|
"name": string;
|
|
76
97
|
"plugin": string;
|
|
@@ -84,6 +105,9 @@ export declare class PluginResourceComponent {
|
|
|
84
105
|
*/
|
|
85
106
|
static createFrom($$source?: any): PluginResourceComponent;
|
|
86
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* PluginTheme supplies presentation defaults for the plugin's frontend.
|
|
110
|
+
*/
|
|
87
111
|
export declare class PluginTheme {
|
|
88
112
|
"colors": PluginThemeColors;
|
|
89
113
|
/** Creates a new PluginTheme instance. */
|
|
@@ -93,6 +117,9 @@ export declare class PluginTheme {
|
|
|
93
117
|
*/
|
|
94
118
|
static createFrom($$source?: any): PluginTheme;
|
|
95
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* PluginThemeColors defines the plugin's primary, secondary, and tertiary accent colors.
|
|
122
|
+
*/
|
|
96
123
|
export declare class PluginThemeColors {
|
|
97
124
|
"primary": string;
|
|
98
125
|
"secondary": string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { AccessRoute, ActionDescriptor, ActionScope, CatalogRequest, ColumnDefinition, Count, EdgeDirection, EditorSchema, EnumerateRequest, EventSeverity, Feature, FeatureSet, GetRequest, HealthCondition, HealthStatus, ReadTarget, Record, RelationshipDescriptor, RelationshipExtractor, RelationshipTarget, RelationshipType, Representation, ResolvedRelationship, ResourceDefinition, ResourceEvent, ResourceGroup, ResourceHealth, ResourceLink, ResourceOperationError, ResourceReference, SchemaDocument, SchemaDocumentReference, ScopeEntry, ScopeExtractor, WatchConnectionSummary, WatchState } from './models.js';
|
|
2
|
+
export type { Catalog, Coverage, QueryScope, ResourceAddress, Schema, SchemaBinding, Value } from './models.js';
|