@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
|
@@ -10,12 +10,37 @@ export declare enum Capability {
|
|
|
10
10
|
* The Go zero value for the underlying type of the enum.
|
|
11
11
|
*/
|
|
12
12
|
$zero = "",
|
|
13
|
+
/**
|
|
14
|
+
* CapabilityResource enables resource discovery and operations.
|
|
15
|
+
*/
|
|
13
16
|
CapabilityResource = "resource",
|
|
17
|
+
/**
|
|
18
|
+
* CapabilityExec enables remote command execution.
|
|
19
|
+
*/
|
|
14
20
|
CapabilityExec = "exec",
|
|
21
|
+
/**
|
|
22
|
+
* CapabilityNetworker enables network forwarding.
|
|
23
|
+
*/
|
|
15
24
|
CapabilityNetworker = "networker",
|
|
25
|
+
/**
|
|
26
|
+
* CapabilityLog enables log streaming.
|
|
27
|
+
*/
|
|
16
28
|
CapabilityLog = "log",
|
|
29
|
+
/**
|
|
30
|
+
* CapabilityMetric enables metric queries.
|
|
31
|
+
*/
|
|
17
32
|
CapabilityMetric = "metric",
|
|
33
|
+
/**
|
|
34
|
+
* CapabilitySettings enables plugin settings.
|
|
35
|
+
*/
|
|
18
36
|
CapabilitySettings = "settings",
|
|
37
|
+
/**
|
|
38
|
+
* CapabilityTools enables tool execution.
|
|
39
|
+
*/
|
|
40
|
+
CapabilityTools = "tools",
|
|
41
|
+
/**
|
|
42
|
+
* CapabilityUI enables frontend components without requiring a backend process.
|
|
43
|
+
*/
|
|
19
44
|
CapabilityUI = "ui"
|
|
20
45
|
}
|
|
21
46
|
/**
|
|
@@ -97,6 +122,9 @@ export declare class Connection {
|
|
|
97
122
|
*/
|
|
98
123
|
static createFrom($$source?: any): Connection;
|
|
99
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* ConnectionAutoConnect configures host-managed connection triggers and retry behavior.
|
|
127
|
+
*/
|
|
100
128
|
export declare class ConnectionAutoConnect {
|
|
101
129
|
"enabled": boolean;
|
|
102
130
|
"triggers": ConnectionAutoConnectTrigger[];
|
|
@@ -108,22 +136,43 @@ export declare class ConnectionAutoConnect {
|
|
|
108
136
|
*/
|
|
109
137
|
static createFrom($$source?: any): ConnectionAutoConnect;
|
|
110
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* ConnectionAutoConnectRetry selects when the host may retry a failed automatic connection.
|
|
141
|
+
*/
|
|
111
142
|
export declare enum ConnectionAutoConnectRetry {
|
|
112
143
|
/**
|
|
113
144
|
* The Go zero value for the underlying type of the enum.
|
|
114
145
|
*/
|
|
115
146
|
$zero = "",
|
|
147
|
+
/**
|
|
148
|
+
* ConnectionAutoConnectRetryNone disables automatic retries after failure.
|
|
149
|
+
*/
|
|
116
150
|
ConnectionAutoConnectRetryNone = "NONE",
|
|
151
|
+
/**
|
|
152
|
+
* ConnectionAutoConnectRetryOnChange permits retry after connection configuration changes.
|
|
153
|
+
*/
|
|
117
154
|
ConnectionAutoConnectRetryOnChange = "ON_CHANGE"
|
|
118
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* ConnectionAutoConnectTrigger identifies a host event that may initiate automatic connection.
|
|
158
|
+
*/
|
|
119
159
|
export declare enum ConnectionAutoConnectTrigger {
|
|
120
160
|
/**
|
|
121
161
|
* The Go zero value for the underlying type of the enum.
|
|
122
162
|
*/
|
|
123
163
|
$zero = "",
|
|
164
|
+
/**
|
|
165
|
+
* ConnectionAutoConnectTriggerPluginStart requests automatic connection when the plugin starts.
|
|
166
|
+
*/
|
|
124
167
|
ConnectionAutoConnectTriggerPluginStart = "PLUGIN_START",
|
|
168
|
+
/**
|
|
169
|
+
* ConnectionAutoConnectTriggerConnectionDiscovered requests connection when a profile is discovered.
|
|
170
|
+
*/
|
|
125
171
|
ConnectionAutoConnectTriggerConnectionDiscovered = "CONNECTION_DISCOVERED"
|
|
126
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* ConnectionLifecycle holds host-managed lifecycle preferences; nil AutoConnect leaves automatic connection unspecified.
|
|
175
|
+
*/
|
|
127
176
|
export declare class ConnectionLifecycle {
|
|
128
177
|
"auto_connect"?: ConnectionAutoConnect | null;
|
|
129
178
|
/** Creates a new ConnectionLifecycle instance. */
|
|
@@ -133,6 +182,9 @@ export declare class ConnectionLifecycle {
|
|
|
133
182
|
*/
|
|
134
183
|
static createFrom($$source?: any): ConnectionLifecycle;
|
|
135
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* ConnectionStatus pairs a connection with its lifecycle or check result and diagnostic details.
|
|
187
|
+
*/
|
|
136
188
|
export declare class ConnectionStatus {
|
|
137
189
|
/**
|
|
138
190
|
* Connection is the connection that the status is for.
|
|
@@ -157,23 +209,65 @@ export declare class ConnectionStatus {
|
|
|
157
209
|
*/
|
|
158
210
|
static createFrom($$source?: any): ConnectionStatus;
|
|
159
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* ConnectionStatusCode classifies connection lifecycle state or a connection-check failure.
|
|
214
|
+
*/
|
|
160
215
|
export declare enum ConnectionStatusCode {
|
|
161
216
|
/**
|
|
162
217
|
* The Go zero value for the underlying type of the enum.
|
|
163
218
|
*/
|
|
164
219
|
$zero = "",
|
|
220
|
+
/**
|
|
221
|
+
* ConnectionStatusUnknown indicates that no connection state is known.
|
|
222
|
+
*/
|
|
165
223
|
ConnectionStatusUnknown = "UNKNOWN",
|
|
224
|
+
/**
|
|
225
|
+
* ConnectionStatusConnected indicates a registered active connection, not a network-health guarantee.
|
|
226
|
+
*/
|
|
166
227
|
ConnectionStatusConnected = "CONNECTED",
|
|
228
|
+
/**
|
|
229
|
+
* ConnectionStatusDisconnected indicates that the connection is not active.
|
|
230
|
+
*/
|
|
167
231
|
ConnectionStatusDisconnected = "DISCONNECTED",
|
|
232
|
+
/**
|
|
233
|
+
* ConnectionStatusPending indicates that connection startup is in progress.
|
|
234
|
+
*/
|
|
168
235
|
ConnectionStatusPending = "PENDING",
|
|
236
|
+
/**
|
|
237
|
+
* ConnectionStatusFailed indicates that connection startup failed.
|
|
238
|
+
*/
|
|
169
239
|
ConnectionStatusFailed = "FAILED",
|
|
240
|
+
/**
|
|
241
|
+
* ConnectionStatusError indicates an unclassified connection error.
|
|
242
|
+
*/
|
|
170
243
|
ConnectionStatusError = "ERROR",
|
|
244
|
+
/**
|
|
245
|
+
* ConnectionStatusUnauthorized indicates missing or invalid authentication.
|
|
246
|
+
*/
|
|
171
247
|
ConnectionStatusUnauthorized = "UNAUTHORIZED",
|
|
248
|
+
/**
|
|
249
|
+
* ConnectionStatusForbidden indicates that access was denied.
|
|
250
|
+
*/
|
|
172
251
|
ConnectionStatusForbidden = "FORBIDDEN",
|
|
252
|
+
/**
|
|
253
|
+
* ConnectionStatusBadRequest indicates invalid connection-check input.
|
|
254
|
+
*/
|
|
173
255
|
ConnectionStatusBadRequest = "BAD_REQUEST",
|
|
256
|
+
/**
|
|
257
|
+
* ConnectionStatusNotFound indicates that the requested connection or target was not found.
|
|
258
|
+
*/
|
|
174
259
|
ConnectionStatusNotFound = "NOT_FOUND",
|
|
260
|
+
/**
|
|
261
|
+
* ConnectionStatusTimeout indicates that the connection check exceeded its deadline.
|
|
262
|
+
*/
|
|
175
263
|
ConnectionStatusTimeout = "TIMEOUT",
|
|
264
|
+
/**
|
|
265
|
+
* ConnectionStatusUnavailable indicates that the connection target is unavailable.
|
|
266
|
+
*/
|
|
176
267
|
ConnectionStatusUnavailable = "UNAVAILABLE",
|
|
268
|
+
/**
|
|
269
|
+
* ConnectionStatusRequestEntityTooLarge indicates that the request exceeded the target limit.
|
|
270
|
+
*/
|
|
177
271
|
ConnectionStatusRequestEntityTooLarge = "REQUEST_ENTITY_TOO_LARGE"
|
|
178
272
|
}
|
|
179
273
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as resourcev2$0 from "../../resource/v2/models.js";
|
|
1
2
|
/**
|
|
2
3
|
* ActionTargetBuilder builds a dynamic list of targets for an action.
|
|
3
4
|
*/
|
|
@@ -31,8 +32,9 @@ export declare class Handler {
|
|
|
31
32
|
static createFrom($$source?: any): Handler;
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
|
-
* Session is a snapshot
|
|
35
|
-
*
|
|
35
|
+
* Session is a snapshot of public terminal-session metadata, not a live view.
|
|
36
|
+
* Manager snapshots own their maps and command slice. Callers may read a snapshot
|
|
37
|
+
* concurrently, but must synchronize mutations to those containers.
|
|
36
38
|
*/
|
|
37
39
|
export declare class Session {
|
|
38
40
|
"created_at": string;
|
|
@@ -53,7 +55,15 @@ export declare class Session {
|
|
|
53
55
|
static createFrom($$source?: any): Session;
|
|
54
56
|
}
|
|
55
57
|
/**
|
|
56
|
-
* SessionOptions
|
|
58
|
+
* SessionOptions describes a terminal session and optional resource intent.
|
|
59
|
+
* ResourcePlugin and ResourceKey are opaque selectors, not authorization.
|
|
60
|
+
* ResourceData, when present, must be a canonical tagged map; scalar types remain
|
|
61
|
+
* exact through JSON and protobuf conversion. A Reference requires an explicit
|
|
62
|
+
* Route and must agree with any supplied selectors. Neither selectors nor a
|
|
63
|
+
* reference require a body or an unrelated resource Get operation.
|
|
64
|
+
*
|
|
65
|
+
* Validation and normalization do not acquire a connection or copy mutable
|
|
66
|
+
* containers. Callers must not mutate options concurrently with SDK use.
|
|
57
67
|
*/
|
|
58
68
|
export declare class SessionOptions {
|
|
59
69
|
"params": {
|
|
@@ -65,9 +75,9 @@ export declare class SessionOptions {
|
|
|
65
75
|
"id": string;
|
|
66
76
|
"resource_plugin": string;
|
|
67
77
|
"resource_key": string;
|
|
68
|
-
"resource_data"
|
|
69
|
-
|
|
70
|
-
|
|
78
|
+
"resource_data"?: resourcev2$0.Value | null;
|
|
79
|
+
"reference"?: resourcev2$0.ResourceReference | null;
|
|
80
|
+
"route"?: resourcev2$0.AccessRoute | null;
|
|
71
81
|
"command": string[];
|
|
72
82
|
"tty": boolean;
|
|
73
83
|
/** Creates a new SessionOptions instance. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ActionTargetBuilder,
|
|
1
|
+
export { ActionTargetBuilder, Handler, LogSession, LogSessionOptions, LogSessionStatus, LogSource, LogStreamCommand } from './models.js';
|
|
@@ -15,23 +15,6 @@ export declare class ActionTargetBuilder {
|
|
|
15
15
|
*/
|
|
16
16
|
static createFrom($$source?: any): ActionTargetBuilder;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
* CreateSessionOptions contains everything needed to create a log session.
|
|
20
|
-
*/
|
|
21
|
-
export declare class CreateSessionOptions {
|
|
22
|
-
"resource_key": string;
|
|
23
|
-
"resource_id": string;
|
|
24
|
-
"resource_data": {
|
|
25
|
-
[_ in string]?: any;
|
|
26
|
-
};
|
|
27
|
-
"options": LogSessionOptions;
|
|
28
|
-
/** Creates a new CreateSessionOptions instance. */
|
|
29
|
-
constructor($$source?: Partial<CreateSessionOptions>);
|
|
30
|
-
/**
|
|
31
|
-
* Creates a new CreateSessionOptions instance from a string or object.
|
|
32
|
-
*/
|
|
33
|
-
static createFrom($$source?: any): CreateSessionOptions;
|
|
34
|
-
}
|
|
35
18
|
/**
|
|
36
19
|
* Handler describes a log handler for a specific resource type.
|
|
37
20
|
*/
|
|
@@ -97,11 +80,29 @@ export declare enum LogSessionStatus {
|
|
|
97
80
|
* The Go zero value for the underlying type of the enum.
|
|
98
81
|
*/
|
|
99
82
|
$zero = 0,
|
|
83
|
+
/**
|
|
84
|
+
* LogSessionStatusActive indicates that the session is delivering logs.
|
|
85
|
+
*/
|
|
100
86
|
LogSessionStatusActive = 0,
|
|
87
|
+
/**
|
|
88
|
+
* LogSessionStatusPaused indicates that log delivery is suspended.
|
|
89
|
+
*/
|
|
101
90
|
LogSessionStatusPaused = 1,
|
|
91
|
+
/**
|
|
92
|
+
* LogSessionStatusClosed indicates that the session has ended.
|
|
93
|
+
*/
|
|
102
94
|
LogSessionStatusClosed = 2,
|
|
95
|
+
/**
|
|
96
|
+
* LogSessionStatusError indicates that the session encountered a failure.
|
|
97
|
+
*/
|
|
103
98
|
LogSessionStatusError = 3,
|
|
99
|
+
/**
|
|
100
|
+
* LogSessionStatusConnecting indicates that native source acquisition is pending.
|
|
101
|
+
*/
|
|
104
102
|
LogSessionStatusConnecting = 4,
|
|
103
|
+
/**
|
|
104
|
+
* LogSessionStatusInitializing indicates that session setup is in progress.
|
|
105
|
+
*/
|
|
105
106
|
LogSessionStatusInitializing = 5
|
|
106
107
|
}
|
|
107
108
|
/**
|
|
@@ -127,7 +128,16 @@ export declare enum LogStreamCommand {
|
|
|
127
128
|
* The Go zero value for the underlying type of the enum.
|
|
128
129
|
*/
|
|
129
130
|
$zero = 0,
|
|
131
|
+
/**
|
|
132
|
+
* StreamCommandPause requests suspension of log delivery.
|
|
133
|
+
*/
|
|
130
134
|
StreamCommandPause = 0,
|
|
135
|
+
/**
|
|
136
|
+
* StreamCommandResume requests continuation of log delivery.
|
|
137
|
+
*/
|
|
131
138
|
StreamCommandResume = 1,
|
|
139
|
+
/**
|
|
140
|
+
* StreamCommandClose requests termination of the session.
|
|
141
|
+
*/
|
|
132
142
|
StreamCommandClose = 2
|
|
133
143
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AggregateValue, ColorRange, CurrentValue, DataPoint, Handler, MetricDescriptor, MetricResult, MetricShape, MetricUnit,
|
|
1
|
+
export { AggregateValue, ColorRange, CurrentValue, DataPoint, Handler, MetricDescriptor, MetricResult, MetricShape, MetricUnit, QueryResponse, TimeSeries } from './models.js';
|
|
@@ -124,8 +124,17 @@ export declare enum MetricShape {
|
|
|
124
124
|
* The Go zero value for the underlying type of the enum.
|
|
125
125
|
*/
|
|
126
126
|
$zero = 0,
|
|
127
|
+
/**
|
|
128
|
+
* ShapeCurrent requests the latest value.
|
|
129
|
+
*/
|
|
127
130
|
ShapeCurrent = 0,
|
|
131
|
+
/**
|
|
132
|
+
* ShapeTimeseries requests timestamped samples.
|
|
133
|
+
*/
|
|
128
134
|
ShapeTimeseries = 1,
|
|
135
|
+
/**
|
|
136
|
+
* ShapeAggregate requests a statistical window.
|
|
137
|
+
*/
|
|
129
138
|
ShapeAggregate = 2
|
|
130
139
|
}
|
|
131
140
|
/**
|
|
@@ -136,44 +145,58 @@ export declare enum MetricUnit {
|
|
|
136
145
|
* The Go zero value for the underlying type of the enum.
|
|
137
146
|
*/
|
|
138
147
|
$zero = 0,
|
|
148
|
+
/**
|
|
149
|
+
* UnitNone denotes a dimensionless value.
|
|
150
|
+
*/
|
|
139
151
|
UnitNone = 0,
|
|
152
|
+
/**
|
|
153
|
+
* UnitBytes measures bytes.
|
|
154
|
+
*/
|
|
140
155
|
UnitBytes = 1,
|
|
156
|
+
/**
|
|
157
|
+
* UnitKB measures kilobytes.
|
|
158
|
+
*/
|
|
141
159
|
UnitKB = 2,
|
|
160
|
+
/**
|
|
161
|
+
* UnitMB measures megabytes.
|
|
162
|
+
*/
|
|
142
163
|
UnitMB = 3,
|
|
164
|
+
/**
|
|
165
|
+
* UnitGB measures gigabytes.
|
|
166
|
+
*/
|
|
143
167
|
UnitGB = 4,
|
|
168
|
+
/**
|
|
169
|
+
* UnitPercentage measures percentages.
|
|
170
|
+
*/
|
|
144
171
|
UnitPercentage = 5,
|
|
172
|
+
/**
|
|
173
|
+
* UnitMillis measures milliseconds.
|
|
174
|
+
*/
|
|
145
175
|
UnitMillis = 6,
|
|
176
|
+
/**
|
|
177
|
+
* UnitSeconds measures seconds.
|
|
178
|
+
*/
|
|
146
179
|
UnitSeconds = 7,
|
|
180
|
+
/**
|
|
181
|
+
* UnitCount measures discrete occurrences.
|
|
182
|
+
*/
|
|
147
183
|
UnitCount = 8,
|
|
184
|
+
/**
|
|
185
|
+
* UnitOpsPerSec measures operations per second.
|
|
186
|
+
*/
|
|
148
187
|
UnitOpsPerSec = 9,
|
|
188
|
+
/**
|
|
189
|
+
* UnitBytesPerSec measures byte throughput.
|
|
190
|
+
*/
|
|
149
191
|
UnitBytesPerSec = 10,
|
|
192
|
+
/**
|
|
193
|
+
* UnitMillicores measures thousandths of a CPU core.
|
|
194
|
+
*/
|
|
150
195
|
UnitMillicores = 11,
|
|
151
|
-
UnitCores = 12
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* QueryRequest is the Go-side representation of a metric query.
|
|
155
|
-
*/
|
|
156
|
-
export declare class QueryRequest {
|
|
157
|
-
"resource_key": string;
|
|
158
|
-
"resource_id": string;
|
|
159
|
-
"resource_namespace": string;
|
|
160
|
-
"resource_data": {
|
|
161
|
-
[_ in string]?: any;
|
|
162
|
-
};
|
|
163
|
-
"metric_ids": string[];
|
|
164
|
-
"shape": MetricShape;
|
|
165
|
-
"start_time": string;
|
|
166
|
-
"end_time": string;
|
|
167
|
-
"step": time$0.Duration;
|
|
168
|
-
"params": {
|
|
169
|
-
[_ in string]?: string;
|
|
170
|
-
};
|
|
171
|
-
/** Creates a new QueryRequest instance. */
|
|
172
|
-
constructor($$source?: Partial<QueryRequest>);
|
|
173
196
|
/**
|
|
174
|
-
*
|
|
197
|
+
* UnitCores measures CPU cores.
|
|
175
198
|
*/
|
|
176
|
-
|
|
199
|
+
UnitCores = 12
|
|
177
200
|
}
|
|
178
201
|
/**
|
|
179
202
|
* QueryResponse is the Go-side representation of a metric query response.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { FindPortForwardSessionRequest, PortForwardConnectionType, PortForwardProtocol, PortForwardSession, PortForwardSessionEncryption,
|
|
1
|
+
export { FindPortForwardSessionRequest, PortForwardConnectionType, PortForwardProtocol, PortForwardSession, PortForwardSessionEncryption, SessionState } from './models.js';
|
|
2
2
|
export type { Connection } from './models.js';
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
* PortForwardStaticConnection. The unexported method seals the interface.
|
|
4
4
|
*/
|
|
5
5
|
export type Connection = any;
|
|
6
|
+
/**
|
|
7
|
+
* FindPortForwardSessionRequest filters sessions by opaque resource and connection
|
|
8
|
+
* selectors. Empty selectors do not restrict that dimension.
|
|
9
|
+
*/
|
|
6
10
|
export declare class FindPortForwardSessionRequest {
|
|
7
11
|
"resource_id": string;
|
|
8
12
|
"connection_id": string;
|
|
@@ -13,20 +17,38 @@ export declare class FindPortForwardSessionRequest {
|
|
|
13
17
|
*/
|
|
14
18
|
static createFrom($$source?: any): FindPortForwardSessionRequest;
|
|
15
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* PortForwardConnectionType distinguishes resource and static forwarding targets.
|
|
22
|
+
*/
|
|
16
23
|
export declare enum PortForwardConnectionType {
|
|
17
24
|
/**
|
|
18
25
|
* The Go zero value for the underlying type of the enum.
|
|
19
26
|
*/
|
|
20
27
|
$zero = "",
|
|
28
|
+
/**
|
|
29
|
+
* PortForwardConnectionTypeResource selects a registered resource forwarder.
|
|
30
|
+
*/
|
|
21
31
|
PortForwardConnectionTypeResource = "RESOURCE",
|
|
32
|
+
/**
|
|
33
|
+
* PortForwardConnectionTypeStatic selects a registered address forwarder.
|
|
34
|
+
*/
|
|
22
35
|
PortForwardConnectionTypeStatic = "STATIC"
|
|
23
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* PortForwardProtocol selects the native transport protocol.
|
|
39
|
+
*/
|
|
24
40
|
export declare enum PortForwardProtocol {
|
|
25
41
|
/**
|
|
26
42
|
* The Go zero value for the underlying type of the enum.
|
|
27
43
|
*/
|
|
28
44
|
$zero = "",
|
|
45
|
+
/**
|
|
46
|
+
* PortForwardProtocolTCP requests a TCP tunnel.
|
|
47
|
+
*/
|
|
29
48
|
PortForwardProtocolTCP = "TCP",
|
|
49
|
+
/**
|
|
50
|
+
* PortForwardProtocolUDP requests a UDP tunnel.
|
|
51
|
+
*/
|
|
30
52
|
PortForwardProtocolUDP = "UDP"
|
|
31
53
|
}
|
|
32
54
|
/**
|
|
@@ -53,6 +75,10 @@ export declare class PortForwardSession {
|
|
|
53
75
|
*/
|
|
54
76
|
static createFrom($$source?: any): PortForwardSession;
|
|
55
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* PortForwardSessionEncryption carries forwarder-specific encryption settings.
|
|
80
|
+
* The manager transports these settings; the native forwarder enforces support.
|
|
81
|
+
*/
|
|
56
82
|
export declare class PortForwardSessionEncryption {
|
|
57
83
|
"algorithm": string;
|
|
58
84
|
"key": string;
|
|
@@ -64,33 +90,28 @@ export declare class PortForwardSessionEncryption {
|
|
|
64
90
|
*/
|
|
65
91
|
static createFrom($$source?: any): PortForwardSessionEncryption;
|
|
66
92
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
[_ in string]?: string;
|
|
71
|
-
};
|
|
72
|
-
"params": {
|
|
73
|
-
[_ in string]?: string;
|
|
74
|
-
};
|
|
75
|
-
"protocol": PortForwardProtocol;
|
|
76
|
-
"connection_type": PortForwardConnectionType;
|
|
77
|
-
"encryption": PortForwardSessionEncryption;
|
|
78
|
-
"local_port": number;
|
|
79
|
-
"remote_port": number;
|
|
80
|
-
/** Creates a new PortForwardSessionOptions instance. */
|
|
81
|
-
constructor($$source?: Partial<PortForwardSessionOptions>);
|
|
82
|
-
/**
|
|
83
|
-
* Creates a new PortForwardSessionOptions instance from a string or object.
|
|
84
|
-
*/
|
|
85
|
-
static createFrom($$source?: any): PortForwardSessionOptions;
|
|
86
|
-
}
|
|
93
|
+
/**
|
|
94
|
+
* SessionState describes tunnel availability; stopped and failed states are terminal.
|
|
95
|
+
*/
|
|
87
96
|
export declare enum SessionState {
|
|
88
97
|
/**
|
|
89
98
|
* The Go zero value for the underlying type of the enum.
|
|
90
99
|
*/
|
|
91
100
|
$zero = "",
|
|
101
|
+
/**
|
|
102
|
+
* SessionStateActive means the forwarder has reported readiness.
|
|
103
|
+
*/
|
|
92
104
|
SessionStateActive = "ACTIVE",
|
|
105
|
+
/**
|
|
106
|
+
* SessionStatePaused permits resumption or termination.
|
|
107
|
+
*/
|
|
93
108
|
SessionStatePaused = "PAUSED",
|
|
109
|
+
/**
|
|
110
|
+
* SessionStateStopped marks intentional termination.
|
|
111
|
+
*/
|
|
94
112
|
SessionStateStopped = "STOPPED",
|
|
113
|
+
/**
|
|
114
|
+
* SessionStateFailed marks unexpected termination.
|
|
115
|
+
*/
|
|
95
116
|
SessionStateFailed = "FAILED"
|
|
96
117
|
}
|
|
@@ -16,6 +16,10 @@ export declare class Category {
|
|
|
16
16
|
*/
|
|
17
17
|
static createFrom($$source?: any): Category;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Setting describes a typed preference, its default, and optional validation.
|
|
21
|
+
* Sensitive values are hidden by GetValue; validators must not disclose secrets.
|
|
22
|
+
*/
|
|
19
23
|
export declare class Setting {
|
|
20
24
|
/**
|
|
21
25
|
* ID is the unique identifier of the setting
|
|
@@ -65,6 +69,10 @@ export declare class Setting {
|
|
|
65
69
|
*/
|
|
66
70
|
static createFrom($$source?: any): Setting;
|
|
67
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* SettingFileSelection describes file-picker capabilities and initial selection.
|
|
74
|
+
* Extensions is caller-owned; an empty slice does not restrict extensions.
|
|
75
|
+
*/
|
|
68
76
|
export declare class SettingFileSelection {
|
|
69
77
|
/**
|
|
70
78
|
* Whether file selection should be allowed.
|
|
@@ -97,6 +105,9 @@ export declare class SettingFileSelection {
|
|
|
97
105
|
*/
|
|
98
106
|
static createFrom($$source?: any): SettingFileSelection;
|
|
99
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* SettingOption pairs a selectable value with its display metadata.
|
|
110
|
+
*/
|
|
100
111
|
export declare class SettingOption {
|
|
101
112
|
/**
|
|
102
113
|
* Label is the human readable label of the option
|
|
@@ -117,6 +128,9 @@ export declare class SettingOption {
|
|
|
117
128
|
*/
|
|
118
129
|
static createFrom($$source?: any): SettingOption;
|
|
119
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* SettingType identifies the form control and expected value family for a preference.
|
|
133
|
+
*/
|
|
120
134
|
export declare enum SettingType {
|
|
121
135
|
/**
|
|
122
136
|
* The Go zero value for the underlying type of the enum.
|
|
@@ -155,14 +169,12 @@ export declare enum SettingType {
|
|
|
155
169
|
*/
|
|
156
170
|
DateTime = "datetime",
|
|
157
171
|
/**
|
|
158
|
-
*
|
|
172
|
+
* Password is the type for a password field entry.
|
|
159
173
|
*/
|
|
160
174
|
Password = "password"
|
|
161
175
|
}
|
|
162
176
|
/**
|
|
163
|
-
*
|
|
164
|
-
* map is the settings themselves. The key of the first map is the category name, and the key of the
|
|
165
|
-
* second map is the setting ID.
|
|
177
|
+
* Store groups settings by category ID, then by setting ID.
|
|
166
178
|
*/
|
|
167
179
|
export type Store = {
|
|
168
180
|
[_ in string]?: Category;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const h=require("./index-BVi9X4oU.cjs");var M=Function.prototype.toString,y=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,
|
|
1
|
+
"use strict";const h=require("./index-BVi9X4oU.cjs");var M=Function.prototype.toString,y=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,j;if(typeof y=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw j}}),j={},y(function(){throw 42},null,S)}catch(r){r!==j&&(y=null)}else y=null;var U=/^\s*class\b/,E=function(e){try{var t=M.call(e);return U.test(t)}catch{return!1}},R=function(e){try{return E(e)?!1:(M.call(e),!0)}catch{return!1}},w=Object.prototype.toString,k="[object Object]",H="[object Function]",q="[object GeneratorFunction]",z="[object HTMLAllCollection]",G="[object HTML document.all class]",J="[object HTMLCollection]",W=typeof Symbol=="function"&&!!Symbol.toStringTag,K=!(0 in[,]),O=function(){return!1};if(typeof document=="object"){var Q=document.all;w.call(Q)===w.call(document.all)&&(O=function(e){if((K||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=w.call(e);return(t===z||t===G||t===J||t===k)&&e("")==null}catch{}return!1})}function V(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{y(r,null,S)}catch(e){if(e!==j)return!1}return!E(r)&&R(r)}function X(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(W)return R(r);if(E(r))return!1;var e=w.call(r);return e!==H&&e!==q&&!/^\[object HTML/.test(e)?!1:R(r)}const d=y?V:X;var g;class A extends Error{constructor(e,t){super(e,t),this.name="CancelError"}}class b extends Error{constructor(e,t,n){super((n??"Unhandled rejection in cancelled promise.")+" Reason: "+Y(t),{cause:t}),this.promise=e,this.name="CancelledRejectionError"}}const u=Symbol("barrier"),P=Symbol("cancelImpl"),C=(g=Symbol.species)!==null&&g!==void 0?g:Symbol("speciesPolyfill");class l extends Promise{constructor(e,t){let n,o;if(super((a,v)=>{n=a,o=v}),this.constructor[C]!==Promise)throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property.");let c={promise:this,resolve:n,reject:o,get oncancelled(){return t??null},set oncancelled(a){t=a??void 0}};const i={get root(){return i},resolving:!1,settled:!1};Object.defineProperties(this,{[u]:{configurable:!1,enumerable:!1,writable:!0,value:null},[P]:{configurable:!1,enumerable:!1,writable:!1,value:x(c,i)}});const s=B(c,i);try{e(L(c,i),s)}catch(a){i.resolving?console.log("Unhandled exception in CancellablePromise executor.",a):s(a)}}cancel(e){return new l(t=>{Promise.all([this[P](new A("Promise cancelled.",{cause:e})),Z(this)]).then(()=>t(),()=>t())})}cancelOn(e){return e.aborted?this.cancel(e.reason):e.addEventListener("abort",()=>{this.cancel(e.reason)},{capture:!0}),this}then(e,t,n){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.then called on an invalid object.");if(d(e)||(e=D),d(t)||(t=F),e===D&&t==F)return new l(c=>c(this));const o={};return this[u]=o,new l((c,i)=>{super.then(s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(e(s))}catch(v){i(v)}},s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(t(s))}catch(v){i(v)}})},async c=>{try{return n?.(c)}finally{await this.cancel(c)}})}catch(e,t){return this.then(void 0,e,t)}finally(e,t){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.finally called on an invalid object.");return d(e)?this.then(n=>l.resolve(e()).then(()=>n),n=>l.resolve(e()).then(()=>{throw n}),t):this.then(e,e,t)}static get[C](){return Promise}static all(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.all(t).then(o,c)},o=>m(n,t,o));return n}static allSettled(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.allSettled(t).then(o,c)},o=>m(n,t,o));return n}static any(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.any(t).then(o,c)},o=>m(n,t,o));return n}static race(e){let t=Array.from(e);const n=new l((o,c)=>{Promise.race(t).then(o,c)},o=>m(n,t,o));return n}static cancel(e){const t=new l(()=>{});return t.cancel(e),t}static timeout(e,t){const n=new l(()=>{});return AbortSignal&&typeof AbortSignal=="function"&&AbortSignal.timeout&&typeof AbortSignal.timeout=="function"?AbortSignal.timeout(e).addEventListener("abort",()=>{n.cancel(t)}):setTimeout(()=>{n.cancel(t)},e),n}static sleep(e,t){return new l(n=>{setTimeout(()=>n(t),e)})}static reject(e){return new l((t,n)=>n(e))}static resolve(e){return e instanceof l?e:new l(t=>t(e))}static withResolvers(){let e={oncancelled:null};return e.promise=new l((t,n)=>{e.resolve=t,e.reject=n},t=>{var n;(n=e.oncancelled)===null||n===void 0||n.call(e,t)}),e}}function x(r,e){let t;return n=>{if(e.settled||(e.settled=!0,e.reason=n,r.reject(n),Promise.prototype.then.call(r.promise,void 0,o=>{if(o!==n)throw o})),!(!e.reason||!r.oncancelled))return t=new Promise(o=>{try{o(r.oncancelled(e.reason.cause))}catch(c){Promise.reject(new b(r.promise,c,"Unhandled exception in oncancelled callback."))}}).catch(o=>{Promise.reject(new b(r.promise,o,"Unhandled rejection in oncancelled callback."))}),r.oncancelled=null,t}}function L(r,e){return t=>{if(!e.resolving){if(e.resolving=!0,t===r.promise){if(e.settled)return;e.settled=!0,r.reject(new TypeError("A promise cannot be resolved with itself."));return}if(t!=null&&(typeof t=="object"||typeof t=="function")){let n;try{n=t.then}catch(o){e.settled=!0,r.reject(o);return}if(d(n)){try{let i=t.cancel;if(d(i)){const s=a=>{Reflect.apply(i,t,[a])};e.reason?x(Object.assign(Object.assign({},r),{oncancelled:s}),e)(e.reason):r.oncancelled=s}}catch{}const o={root:e.root,resolving:!1,get settled(){return this.root.settled},set settled(i){this.root.settled=i},get reason(){return this.root.reason}},c=B(r,o);try{Reflect.apply(n,t,[L(r,o),c])}catch(i){c(i)}return}}e.settled||(e.settled=!0,r.resolve(t))}}}function B(r,e){return t=>{if(!e.resolving)if(e.resolving=!0,e.settled){try{if(t instanceof A&&e.reason instanceof A&&Object.is(t.cause,e.reason.cause))return}catch{}Promise.reject(new b(r.promise,t))}else e.settled=!0,r.reject(t)}}function m(r,e,t){const n=[];for(const o of e){let c;try{if(!d(o.then)||(c=o.cancel,!d(c)))continue}catch{continue}let i;try{i=Reflect.apply(c,o,[t])}catch(s){Promise.reject(new b(r,s,"Unhandled exception in cancel method."));continue}i&&n.push((i instanceof Promise?i:Promise.resolve(i)).catch(s=>{Promise.reject(new b(r,s,"Unhandled rejection in cancel method."))}))}return Promise.all(n)}function D(r){return r}function F(r){throw r}function Y(r){try{if(r instanceof Error||typeof r!="object"||r.toString!==Object.prototype.toString)return""+r}catch{}try{return JSON.stringify(r)}catch{}try{return Object.prototype.toString.call(r)}catch{}return"<could not convert error to string>"}function Z(r){var e;let t=(e=r[u])!==null&&e!==void 0?e:{};return"promise"in t||Object.assign(t,p()),r[u]==null&&(t.resolve(),r[u]=t),t.promise}let p=Promise.withResolvers;p&&typeof p=="function"?p=p.bind(Promise):p=function(){let r,e;return{promise:new Promise((n,o)=>{r=n,e=o}),resolve:r,reject:e}};h.hasDOM&&(window._wails=window._wails||{});const $=h.newRuntimeCaller(h.objectNames.Call),_=h.newRuntimeCaller(h.objectNames.CancelCall),f=new Map,ee=0,te=0;function re(){let r;do r=h.nanoid();while(f.has(r));return r}function T(r){const e=re(),t=l.withResolvers(),n={resolve:t.resolve,reject:t.reject};f.set(e,n);const o=$(ee,Object.assign({"call-id":e},r));let c=!0;o.then(s=>{c=!1,f.get(e)===n&&(f.delete(e),n.resolve(s))},s=>{c=!1,f.get(e)===n&&(f.delete(e),n.reject(s))});const i=()=>(f.delete(e),_(te,{"call-id":e}).catch(s=>{console.error("Error while requesting binding call cancellation:",s)}));return t.oncancelled=()=>c?i():o.then(i),t.promise}function I(r,...e){return T({methodName:r,args:e})}function N(r,...e){return T({methodID:r,args:e})}const ne=Object.freeze(Object.defineProperty({__proto__:null,ByID:N,ByName:I,Call:T,RuntimeError:h.RuntimeError},Symbol.toStringTag,{value:"Module"}));exports.ByID=N;exports.ByName=I;exports.calls=ne;
|
package/dist/compat/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ConnectionStatusCode as Generated } from '../bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
|
|
2
|
-
export
|
|
2
|
+
export { Capability as PluginCapability, Connection, ConnectionAutoConnect, ConnectionAutoConnectRetry, ConnectionAutoConnectTrigger, ConnectionLifecycle, ConnectionStatus, PluginInfo, } from '../bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
|
|
3
3
|
export declare const ConnectionStatusCode: typeof Generated;
|
|
4
4
|
export type ConnectionStatusCode = Generated;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { DrawerComponent, DrawerContext } from './types';
|
|
2
|
+
import { AccessRoute, ResourceReference } from '../../resource/v2/domain';
|
|
3
|
+
import { HostRecord } from '../../resource/v2/host';
|
|
2
4
|
export type ShowResourceSidebarParams = {
|
|
3
5
|
pluginID: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
targetId: string;
|
|
7
|
+
route: AccessRoute;
|
|
8
|
+
reference: ResourceReference;
|
|
9
|
+
representation: string;
|
|
10
|
+
/** An observed row opens directly; linked navigation performs a fresh Get. */
|
|
11
|
+
record?: HostRecord;
|
|
7
12
|
resourceName?: string;
|
|
8
|
-
namespace?: string;
|
|
9
13
|
validateData?: (data: unknown) => boolean;
|
|
10
14
|
signal?: AbortSignal;
|
|
11
15
|
};
|