@omniviewdev/runtime 0.10.0 → 0.12.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 +7 -6
- package/dist/api.js +205 -133
- package/dist/bindings/events/index.d.ts +20 -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/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/operations/OperationsContext.d.ts +5 -5
- 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 +12 -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 +34 -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 +2970 -2878
- 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 +13 -8
- package/dist/models.js +118 -209
- 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/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 +1 -1
- 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-BxypsesT.cjs +0 -1
- package/dist/models-C6jzDokQ.js +0 -347
- package/dist/models-CT4kHj47.js +0 -2444
- package/dist/models-DQl7tqts.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,684 @@
|
|
|
1
|
+
import { B as te, N as d, M as S, A as s, a } from "./index-zyAgCXOO.js";
|
|
2
|
+
import { a as N, H as ne, b as re, c as oe, P as ie, D as se, V as ce, R as ue, A as ae, C as le, d as fe, e as V, f as z, g as $e, h as pe, L as he, i as ge, j as Se, Q as ye } from "./models-UwESEW2B.js";
|
|
3
|
+
import { B as n, a as $ } from "./calls-DYGtxNJ6.js";
|
|
4
|
+
function p(e, t = []) {
|
|
5
|
+
let h = 0;
|
|
6
|
+
for (const i of t) {
|
|
7
|
+
if (i.length > 65536) throw new RangeError("Request routing byte limit");
|
|
8
|
+
h += new TextEncoder().encode(JSON.stringify(i)).length + 1;
|
|
9
|
+
}
|
|
10
|
+
if (h > 57344) throw new RangeError("Request routing byte limit");
|
|
11
|
+
let E = 0, H = 2, ee = 0, W = 0;
|
|
12
|
+
const k = [], f = (i) => {
|
|
13
|
+
for (let l = 0; l < i.length; l++) {
|
|
14
|
+
const u = i.charCodeAt(l);
|
|
15
|
+
let g = u < 128 ? 1 : u < 2048 ? 2 : 3;
|
|
16
|
+
if (u >= 55296 && u <= 56319) {
|
|
17
|
+
const m = i.charCodeAt(++l);
|
|
18
|
+
if (!(m >= 56320 && m <= 57343)) throw new TypeError("Invalid Unicode");
|
|
19
|
+
g = 4;
|
|
20
|
+
} else if (u >= 56320 && u <= 57343) throw new TypeError("Invalid Unicode");
|
|
21
|
+
if (E += g, H += u === 34 || u === 92 ? 2 : g, E > 33554432 || H > 67043328) throw new RangeError("Request JSON byte limit");
|
|
22
|
+
}
|
|
23
|
+
k.push(i);
|
|
24
|
+
}, M = (i) => {
|
|
25
|
+
if (i.length > 33554432) throw new RangeError("Request JSON byte limit");
|
|
26
|
+
for (let l = 0; l < i.length; l++) {
|
|
27
|
+
const u = i.charCodeAt(l);
|
|
28
|
+
if (u >= 55296 && u <= 56319) {
|
|
29
|
+
const g = i.charCodeAt(++l);
|
|
30
|
+
if (!(g >= 56320 && g <= 57343)) throw new TypeError("Invalid Unicode");
|
|
31
|
+
} else if (u >= 56320 && u <= 57343) throw new TypeError("Invalid Unicode");
|
|
32
|
+
}
|
|
33
|
+
f(JSON.stringify(i));
|
|
34
|
+
}, G = (i, l) => {
|
|
35
|
+
if (++ee > 262144 || l > 64) throw new RangeError("Request JSON structural limit");
|
|
36
|
+
if (i === null) {
|
|
37
|
+
f("null");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (typeof i == "string") {
|
|
41
|
+
M(i);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (typeof i == "boolean") {
|
|
45
|
+
f(i ? "true" : "false");
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (typeof i == "number") {
|
|
49
|
+
if (!Number.isFinite(i)) throw new TypeError("Request numbers must be finite");
|
|
50
|
+
f(Object.is(i, -0) ? "-0" : JSON.stringify(i));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (Array.isArray(i)) {
|
|
54
|
+
f("[");
|
|
55
|
+
for (let u = 0; u < i.length; u++) {
|
|
56
|
+
if (++W > 1048576) throw new RangeError("Request JSON field limit");
|
|
57
|
+
u && f(","), G(i[u], l + 1);
|
|
58
|
+
}
|
|
59
|
+
f("]");
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (typeof i == "object") {
|
|
63
|
+
f("{");
|
|
64
|
+
let u = !0;
|
|
65
|
+
for (const [g, m] of Object.entries(i))
|
|
66
|
+
if (m !== void 0) {
|
|
67
|
+
if (++W > 1048576) throw new RangeError("Request JSON field limit");
|
|
68
|
+
u || f(","), u = !1, M(g), f(":"), G(m, l + 1);
|
|
69
|
+
}
|
|
70
|
+
f("}");
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
throw new TypeError("Unsupported request JSON value");
|
|
74
|
+
};
|
|
75
|
+
return G(e, 0), k.join("");
|
|
76
|
+
}
|
|
77
|
+
function de(e) {
|
|
78
|
+
return n(93318075, e).then((t) => (t[0] = T(t[0]), t[1] = te(t[1]), t));
|
|
79
|
+
}
|
|
80
|
+
function me(e) {
|
|
81
|
+
return n(1353297556, e);
|
|
82
|
+
}
|
|
83
|
+
function Te(e) {
|
|
84
|
+
return n(4182196712, e).then((t) => T(t));
|
|
85
|
+
}
|
|
86
|
+
function Pe(e) {
|
|
87
|
+
return n(3993344525, e).then((t) => T(t));
|
|
88
|
+
}
|
|
89
|
+
function be(e, t) {
|
|
90
|
+
return n(1779192716, e, t).then((r) => Le(r));
|
|
91
|
+
}
|
|
92
|
+
function Re() {
|
|
93
|
+
return n(4033362541).then((e) => je(e));
|
|
94
|
+
}
|
|
95
|
+
function Ge(e) {
|
|
96
|
+
return n(2619212338, e).then((t) => J(t));
|
|
97
|
+
}
|
|
98
|
+
function ve(e) {
|
|
99
|
+
return n(1371268636, e).then((t) => T(t));
|
|
100
|
+
}
|
|
101
|
+
function we(e) {
|
|
102
|
+
return n(3881019319, e);
|
|
103
|
+
}
|
|
104
|
+
function Ce() {
|
|
105
|
+
return n(3006426324).then((e) => Ee(e));
|
|
106
|
+
}
|
|
107
|
+
function _e() {
|
|
108
|
+
return n(265791345).then((e) => He(e));
|
|
109
|
+
}
|
|
110
|
+
function Fe(e, t, r) {
|
|
111
|
+
return n(1492965384, e, t, r);
|
|
112
|
+
}
|
|
113
|
+
function Oe(e, t) {
|
|
114
|
+
return n(486465741, e, t);
|
|
115
|
+
}
|
|
116
|
+
const Ae = N.createFrom, T = d(Ae), B = ne.createFrom, Le = d(B), J = S(a, B), je = S(a, J), Ee = s(a), He = s(T);
|
|
117
|
+
function We(e, t, r) {
|
|
118
|
+
return $("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession", e, t, p(r, [e, t])).then((c) => c === null ? null : N.createFrom(c));
|
|
119
|
+
}
|
|
120
|
+
const Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
121
|
+
__proto__: null,
|
|
122
|
+
AttachSession: de,
|
|
123
|
+
CloseSession: me,
|
|
124
|
+
CreateSession: We,
|
|
125
|
+
CreateTerminal: Te,
|
|
126
|
+
DetachSession: Pe,
|
|
127
|
+
GetHandler: be,
|
|
128
|
+
GetHandlers: Re,
|
|
129
|
+
GetPluginHandlers: Ge,
|
|
130
|
+
GetSession: ve,
|
|
131
|
+
HasPlugin: we,
|
|
132
|
+
ListPlugins: Ce,
|
|
133
|
+
ListSessions: _e,
|
|
134
|
+
ResizeSession: Fe,
|
|
135
|
+
WriteSession: Oe
|
|
136
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
137
|
+
function ke(e) {
|
|
138
|
+
return n(182596922, e).then((t) => v(t));
|
|
139
|
+
}
|
|
140
|
+
function Me(e, t, r) {
|
|
141
|
+
return n(981100722, e, t, r).then((c) => w(c));
|
|
142
|
+
}
|
|
143
|
+
function Ne(e) {
|
|
144
|
+
return n(2157304970, e).then((t) => v(t));
|
|
145
|
+
}
|
|
146
|
+
function Ve(e) {
|
|
147
|
+
return n(650882, e).then((t) => U(t));
|
|
148
|
+
}
|
|
149
|
+
function ze(e) {
|
|
150
|
+
return n(3624690437, e);
|
|
151
|
+
}
|
|
152
|
+
function Be() {
|
|
153
|
+
return n(2195697754).then((e) => w(e));
|
|
154
|
+
}
|
|
155
|
+
function Je() {
|
|
156
|
+
return n(167463150).then((e) => U(e));
|
|
157
|
+
}
|
|
158
|
+
function Ue(e, t) {
|
|
159
|
+
return n(2090415403, e, t).then((r) => w(r));
|
|
160
|
+
}
|
|
161
|
+
const qe = re.createFrom, v = d(qe), w = s(v), U = s(a);
|
|
162
|
+
function xe(e, t, r) {
|
|
163
|
+
return $("github.com/omniviewdev/omniview/backend/pkg/plugin/networker.ServiceWrapper.StartResourcePortForwardingSession", e, t, p(r, [e, t]));
|
|
164
|
+
}
|
|
165
|
+
const qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
166
|
+
__proto__: null,
|
|
167
|
+
ClosePortForwardSession: ke,
|
|
168
|
+
FindPortForwardSessions: Me,
|
|
169
|
+
GetPortForwardSession: Ne,
|
|
170
|
+
GetSupportedPortForwardTargets: Ve,
|
|
171
|
+
HasPlugin: ze,
|
|
172
|
+
ListAllPortForwardSessions: Be,
|
|
173
|
+
ListPlugins: Je,
|
|
174
|
+
ListPortForwardSessions: Ue,
|
|
175
|
+
StartResourcePortForwardingSession: xe
|
|
176
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
177
|
+
function Ie(e) {
|
|
178
|
+
return n(3150413499, e).then((t) => y(t));
|
|
179
|
+
}
|
|
180
|
+
function Qe(e) {
|
|
181
|
+
return n(1152913314, e).then((t) => gt(t));
|
|
182
|
+
}
|
|
183
|
+
function De(e) {
|
|
184
|
+
return n(111194374, e).then((t) => C(t));
|
|
185
|
+
}
|
|
186
|
+
function Ke(e) {
|
|
187
|
+
return n(3945933305, e);
|
|
188
|
+
}
|
|
189
|
+
function Xe(e) {
|
|
190
|
+
return n(2859775056, e).then((t) => q(t));
|
|
191
|
+
}
|
|
192
|
+
function Ye(e, t) {
|
|
193
|
+
return n(2209599792, e, t).then((r) => dt(r));
|
|
194
|
+
}
|
|
195
|
+
function Ze(e) {
|
|
196
|
+
return n(3963363730, e).then((t) => q(t));
|
|
197
|
+
}
|
|
198
|
+
function et(e) {
|
|
199
|
+
return n(1357029266, e).then((t) => y(t));
|
|
200
|
+
}
|
|
201
|
+
function tt() {
|
|
202
|
+
return n(2477486666).then((e) => b(e));
|
|
203
|
+
}
|
|
204
|
+
function nt() {
|
|
205
|
+
return n(976517756).then((e) => b(e));
|
|
206
|
+
}
|
|
207
|
+
function rt(e) {
|
|
208
|
+
return n(1020548995, e).then((t) => b(t));
|
|
209
|
+
}
|
|
210
|
+
function ot(e, t) {
|
|
211
|
+
return n(2004740384, e, t).then((r) => b(r));
|
|
212
|
+
}
|
|
213
|
+
function it() {
|
|
214
|
+
return n(873697101).then((e) => x(e));
|
|
215
|
+
}
|
|
216
|
+
function st() {
|
|
217
|
+
return n(637134283).then((e) => Tt(e));
|
|
218
|
+
}
|
|
219
|
+
function ct() {
|
|
220
|
+
return n(550607756).then((e) => Pt(e));
|
|
221
|
+
}
|
|
222
|
+
function ut(e, t) {
|
|
223
|
+
return n(288660195, e, t).then((r) => y(r));
|
|
224
|
+
}
|
|
225
|
+
function at(e) {
|
|
226
|
+
return n(1771013494, e).then((t) => y(t));
|
|
227
|
+
}
|
|
228
|
+
function lt(e) {
|
|
229
|
+
return n(2433379724, e).then((t) => y(t));
|
|
230
|
+
}
|
|
231
|
+
function ft(e, t, r) {
|
|
232
|
+
return n(2783597264, e, t, r).then((c) => x(c));
|
|
233
|
+
}
|
|
234
|
+
function $t(e) {
|
|
235
|
+
return n(1369550929, e).then((t) => y(t));
|
|
236
|
+
}
|
|
237
|
+
function pt(e) {
|
|
238
|
+
return n(3828800061, e).then((t) => y(t));
|
|
239
|
+
}
|
|
240
|
+
const y = oe.createFrom, ht = se.createFrom, gt = d(ht), C = ie.createFrom, St = ce.createFrom, q = s(St), yt = ue.createFrom, dt = s(yt), b = d(C), mt = ae.createFrom, x = s(mt), Tt = s(C), Pt = s(y), xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
241
|
+
__proto__: null,
|
|
242
|
+
GetPlugin: Ie,
|
|
243
|
+
GetPluginDownloadStats: Qe,
|
|
244
|
+
GetPluginMeta: De,
|
|
245
|
+
GetPluginReadme: Ke,
|
|
246
|
+
GetPluginReleaseHistory: Xe,
|
|
247
|
+
GetPluginReviews: Ye,
|
|
248
|
+
GetPluginVersions: Ze,
|
|
249
|
+
InstallDevPluginFromPath: et,
|
|
250
|
+
InstallFromPathPrompt: tt,
|
|
251
|
+
InstallInDevMode: nt,
|
|
252
|
+
InstallPluginFromPath: rt,
|
|
253
|
+
InstallPluginVersion: ot,
|
|
254
|
+
ListAvailablePlugins: it,
|
|
255
|
+
ListPluginMetas: st,
|
|
256
|
+
ListPlugins: ct,
|
|
257
|
+
LoadPlugin: ut,
|
|
258
|
+
ReloadPlugin: at,
|
|
259
|
+
RetryFailedPlugin: lt,
|
|
260
|
+
SearchPlugins: ft,
|
|
261
|
+
UninstallPlugin: $t,
|
|
262
|
+
UnlinkDevPlugin: pt
|
|
263
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
264
|
+
function bt(e, t) {
|
|
265
|
+
return n(1688967279, e, t).then((r) => I(r));
|
|
266
|
+
}
|
|
267
|
+
function Rt(e, t) {
|
|
268
|
+
return n(950535743, e, t).then((r) => _(r));
|
|
269
|
+
}
|
|
270
|
+
function Gt(e) {
|
|
271
|
+
return n(854008408, e);
|
|
272
|
+
}
|
|
273
|
+
function vt() {
|
|
274
|
+
return n(1598984489).then((e) => At(e));
|
|
275
|
+
}
|
|
276
|
+
function wt(e) {
|
|
277
|
+
return n(1775572154, e).then((t) => F(t));
|
|
278
|
+
}
|
|
279
|
+
function Ct() {
|
|
280
|
+
return n(3217612415).then((e) => Lt(e));
|
|
281
|
+
}
|
|
282
|
+
function _t(e) {
|
|
283
|
+
return n(2037329938, e).then((t) => F(t));
|
|
284
|
+
}
|
|
285
|
+
function Ft(e, t) {
|
|
286
|
+
return n(3276991559, e, t).then((r) => I(r));
|
|
287
|
+
}
|
|
288
|
+
function Ot(e, t) {
|
|
289
|
+
return n(794258089, e, t).then((r) => _(r));
|
|
290
|
+
}
|
|
291
|
+
const I = le.createFrom, _ = fe.createFrom, F = s(_), At = S(a, F), Lt = s(a), jt = "github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";
|
|
292
|
+
function o(e, ...t) {
|
|
293
|
+
return $(`${jt}.${e}`, ...t);
|
|
294
|
+
}
|
|
295
|
+
const Et = (e) => o("Features", e), Ht = (e, t) => o("Catalog", e, t), Wt = (e, t) => o("Get", e, t), kt = (e, t) => o("Enumerate", e, t), Mt = (e, t) => o("NativeQuery", e, p(t, [e])), Nt = (e, t) => o("Mutate", e, p(t, [e])), Vt = (e, t) => o("Action", e, p(t, [e])), zt = (e, t) => o("ResolveTarget", e, t), Bt = (e, t) => o("ResolveReference", e, t), Jt = (e, t, r) => o("GetSchemaDocument", e, t, r), Ut = () => o("GetAllConnectionStates"), qt = (e) => o("ListConnectionProfiles", e), xt = (e, t) => o("SaveConnectionProfile", e, t), It = (e, t) => o("ImportConnectionProfile", e, t), Qt = (e, t) => o("ResetConnectionProfile", e, t), Dt = (e, t) => o("RemoveConnection", e, t), Kt = (e, t) => o("GetResourceGroups", e, t), Xt = (e, t, r) => o("GetResourceDefinition", e, t, r), Yt = (e, t) => o("GetEditorSchemas", e, t), Zt = (e, t, r) => o("GetRelationships", e, t, r), en = (e, t) => o("ResolveRelationships", e, t), tn = (e, t, r) => o("GetHealth", e, p({
|
|
296
|
+
request: t,
|
|
297
|
+
body: r
|
|
298
|
+
}, [e])), nn = (e, t, r) => o("GetResourceEvents", e, t, r), rn = (e, t, r) => o("GetActions", e, t, r), on = (e, t) => o("StreamAction", e, p(t, [e])), sn = (e) => o("AttachStreamAction", e), cn = (e) => o("CancelStreamAction", e), un = (e, t) => o("StartConnectionWatch", e, t), an = (e, t) => o("StopConnectionWatch", e, t), ln = (e, t) => o("GetWatchState", e, t), fn = (e, t) => o("EnsureResourceWatch", e, t), $n = (e, t, r) => o("StopResourceWatch", e, t, r), pn = (e, t) => o("RestartResourceWatch", e, t), hn = (e, t, r) => o("IsResourceWatchRunning", e, t, r), gn = (e, t) => o("SubscribeResource", e, t), Sn = (e, t) => o("UnsubscribeResource", e, t), yn = (e, t, r) => o("ScopeValues", e, t, r), Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
299
|
+
__proto__: null,
|
|
300
|
+
Action: Vt,
|
|
301
|
+
AttachStreamAction: sn,
|
|
302
|
+
CancelStreamAction: cn,
|
|
303
|
+
Catalog: Ht,
|
|
304
|
+
CheckConnection: bt,
|
|
305
|
+
EnsureResourceWatch: fn,
|
|
306
|
+
Enumerate: kt,
|
|
307
|
+
Features: Et,
|
|
308
|
+
Get: Wt,
|
|
309
|
+
GetActions: rn,
|
|
310
|
+
GetAllConnectionStates: Ut,
|
|
311
|
+
GetConnection: Rt,
|
|
312
|
+
GetEditorSchemas: Yt,
|
|
313
|
+
GetHealth: tn,
|
|
314
|
+
GetRelationships: Zt,
|
|
315
|
+
GetResourceDefinition: Xt,
|
|
316
|
+
GetResourceEvents: nn,
|
|
317
|
+
GetResourceGroups: Kt,
|
|
318
|
+
GetSchemaDocument: Jt,
|
|
319
|
+
GetWatchState: ln,
|
|
320
|
+
HasPlugin: Gt,
|
|
321
|
+
ImportConnectionProfile: It,
|
|
322
|
+
IsResourceWatchRunning: hn,
|
|
323
|
+
ListAllConnections: vt,
|
|
324
|
+
ListConnectionProfiles: qt,
|
|
325
|
+
ListConnections: wt,
|
|
326
|
+
ListPlugins: Ct,
|
|
327
|
+
LoadConnections: _t,
|
|
328
|
+
Mutate: Nt,
|
|
329
|
+
NativeQuery: Mt,
|
|
330
|
+
RemoveConnection: Dt,
|
|
331
|
+
ResetConnectionProfile: Qt,
|
|
332
|
+
ResolveReference: Bt,
|
|
333
|
+
ResolveRelationships: en,
|
|
334
|
+
ResolveTarget: zt,
|
|
335
|
+
RestartResourceWatch: pn,
|
|
336
|
+
SaveConnectionProfile: xt,
|
|
337
|
+
ScopeValues: yn,
|
|
338
|
+
StartConnection: Ft,
|
|
339
|
+
StartConnectionWatch: un,
|
|
340
|
+
StopConnection: Ot,
|
|
341
|
+
StopConnectionWatch: an,
|
|
342
|
+
StopResourceWatch: $n,
|
|
343
|
+
StreamAction: on,
|
|
344
|
+
SubscribeResource: gn,
|
|
345
|
+
UnsubscribeResource: Sn
|
|
346
|
+
}, Symbol.toStringTag, { value: "Module" })), R = "github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";
|
|
347
|
+
function dn(e, t, r, c, h) {
|
|
348
|
+
return $(`${R}.GetRelated`, e, t, r, c, h);
|
|
349
|
+
}
|
|
350
|
+
function mn(e, t, r, c, h) {
|
|
351
|
+
return $(`${R}.GetRelationshipChain`, e, t, r, c, h);
|
|
352
|
+
}
|
|
353
|
+
function Tn(e, t, r, c) {
|
|
354
|
+
return $(`${R}.GetDependencyTree`, e, t, r, c);
|
|
355
|
+
}
|
|
356
|
+
function Pn(e, t, r, c, h) {
|
|
357
|
+
return $(`${R}.GetSubgraph`, e, t, r, c, h);
|
|
358
|
+
}
|
|
359
|
+
const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
360
|
+
__proto__: null,
|
|
361
|
+
GetDependencyTree: Tn,
|
|
362
|
+
GetRelated: dn,
|
|
363
|
+
GetRelationshipChain: mn,
|
|
364
|
+
GetSubgraph: Pn
|
|
365
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
366
|
+
function bn(e, t) {
|
|
367
|
+
return n(3867104420, e, t).then((r) => Q(r));
|
|
368
|
+
}
|
|
369
|
+
function Rn(e) {
|
|
370
|
+
return n(3795411887, e);
|
|
371
|
+
}
|
|
372
|
+
function Gn() {
|
|
373
|
+
return n(1053995964).then((e) => An(e));
|
|
374
|
+
}
|
|
375
|
+
function vn(e) {
|
|
376
|
+
return n(3231741321, e).then((t) => Ln(t));
|
|
377
|
+
}
|
|
378
|
+
function wn(e) {
|
|
379
|
+
return n(2597562645, e).then((t) => D(t));
|
|
380
|
+
}
|
|
381
|
+
function Cn(e, t, r) {
|
|
382
|
+
return n(1481837168, e, t, r);
|
|
383
|
+
}
|
|
384
|
+
function _n(e, t) {
|
|
385
|
+
return n(230212281, e, t);
|
|
386
|
+
}
|
|
387
|
+
function Fn(e, t, r) {
|
|
388
|
+
return n(1534017462, e, t, r).then((c) => jn(c));
|
|
389
|
+
}
|
|
390
|
+
function On() {
|
|
391
|
+
return n(2408440370).then((e) => D(e));
|
|
392
|
+
}
|
|
393
|
+
const Q = V.createFrom, An = s(a), Ln = S(a, Q), D = S(a, a), jn = z.createFrom, Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
394
|
+
__proto__: null,
|
|
395
|
+
GetSetting: bn,
|
|
396
|
+
HasPlugin: Rn,
|
|
397
|
+
ListPlugins: Gn,
|
|
398
|
+
ListSettings: vn,
|
|
399
|
+
PluginValues: wn,
|
|
400
|
+
SetSetting: Cn,
|
|
401
|
+
SetSettings: _n,
|
|
402
|
+
ValidateSetting: Fn,
|
|
403
|
+
Values: On
|
|
404
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
405
|
+
function En(e) {
|
|
406
|
+
return n(122243240, e);
|
|
407
|
+
}
|
|
408
|
+
function Hn() {
|
|
409
|
+
return n(269082212).then((e) => Yn(e));
|
|
410
|
+
}
|
|
411
|
+
function Wn(e) {
|
|
412
|
+
return n(1421156656, e).then((t) => O(t));
|
|
413
|
+
}
|
|
414
|
+
function kn(e) {
|
|
415
|
+
return n(3143996982, e).then((t) => K(t));
|
|
416
|
+
}
|
|
417
|
+
function Mn(e) {
|
|
418
|
+
return n(1695819138, e);
|
|
419
|
+
}
|
|
420
|
+
function Nn(e) {
|
|
421
|
+
return n(1827194808, e).then((t) => Zn(t));
|
|
422
|
+
}
|
|
423
|
+
function Vn(e) {
|
|
424
|
+
return n(72059321, e);
|
|
425
|
+
}
|
|
426
|
+
function zn(e) {
|
|
427
|
+
return n(62418781, e).then((t) => er(t));
|
|
428
|
+
}
|
|
429
|
+
function Bn(e) {
|
|
430
|
+
return n(2222012564, e).then((t) => tr(t));
|
|
431
|
+
}
|
|
432
|
+
function Jn(e) {
|
|
433
|
+
return n(2753368941, e);
|
|
434
|
+
}
|
|
435
|
+
function Un(e) {
|
|
436
|
+
return n(3825211425, e);
|
|
437
|
+
}
|
|
438
|
+
function qn(e) {
|
|
439
|
+
return n(2121298005, e).then((t) => nr(t));
|
|
440
|
+
}
|
|
441
|
+
function xn() {
|
|
442
|
+
return n(3038957305).then((e) => P(e));
|
|
443
|
+
}
|
|
444
|
+
function In() {
|
|
445
|
+
return n(3369612893);
|
|
446
|
+
}
|
|
447
|
+
function Qn(e, t) {
|
|
448
|
+
return n(252556992, e, t);
|
|
449
|
+
}
|
|
450
|
+
function Dn(e) {
|
|
451
|
+
return n(1704369097, e);
|
|
452
|
+
}
|
|
453
|
+
function Kn(e, t) {
|
|
454
|
+
return n(1399113254, e, t).then((r) => or(r));
|
|
455
|
+
}
|
|
456
|
+
function Xn() {
|
|
457
|
+
return n(2936263106).then((e) => K(e));
|
|
458
|
+
}
|
|
459
|
+
const O = $e.createFrom, Yn = s(O), K = S(a, a), Zn = s(a), er = s(a), tr = V.createFrom, nr = s(a);
|
|
460
|
+
var P = function e(...t) {
|
|
461
|
+
return P === e && (P = rr), P(...t);
|
|
462
|
+
};
|
|
463
|
+
const rr = S(a, O), or = z.createFrom, Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
464
|
+
__proto__: null,
|
|
465
|
+
GetBool: En,
|
|
466
|
+
GetCategories: Hn,
|
|
467
|
+
GetCategory: Wn,
|
|
468
|
+
GetCategoryValues: kn,
|
|
469
|
+
GetFloat: Mn,
|
|
470
|
+
GetFloatSlice: Nn,
|
|
471
|
+
GetInt: Vn,
|
|
472
|
+
GetIntSlice: zn,
|
|
473
|
+
GetSetting: Bn,
|
|
474
|
+
GetSettingValue: Jn,
|
|
475
|
+
GetString: Un,
|
|
476
|
+
GetStringSlice: qn,
|
|
477
|
+
ListSettings: xn,
|
|
478
|
+
LoadSettings: In,
|
|
479
|
+
SetSetting: Qn,
|
|
480
|
+
SetSettings: Dn,
|
|
481
|
+
ValidateSetting: Kn,
|
|
482
|
+
Values: Xn
|
|
483
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
484
|
+
function ir(e) {
|
|
485
|
+
return n(2106300110, e).then((t) => ur(t));
|
|
486
|
+
}
|
|
487
|
+
function sr(e) {
|
|
488
|
+
return n(765209827, e).then((t) => ar(t));
|
|
489
|
+
}
|
|
490
|
+
function cr(e) {
|
|
491
|
+
return n(2355436169, e).then((t) => Y(t));
|
|
492
|
+
}
|
|
493
|
+
const X = pe.createFrom, Y = s(X), ur = S(a, Y), ar = d(X), Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
494
|
+
__proto__: null,
|
|
495
|
+
GetPluginComponents: ir,
|
|
496
|
+
GetResourceAreaComponent: sr,
|
|
497
|
+
GetResourceComponents: cr
|
|
498
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
499
|
+
function lr(e) {
|
|
500
|
+
return n(2776241946, e);
|
|
501
|
+
}
|
|
502
|
+
function fr(e) {
|
|
503
|
+
return n(1474987050, e).then((t) => A(t));
|
|
504
|
+
}
|
|
505
|
+
function $r(e) {
|
|
506
|
+
return n(3156347865, e).then((t) => Tr(t));
|
|
507
|
+
}
|
|
508
|
+
function pr(e) {
|
|
509
|
+
return n(1444002509, e);
|
|
510
|
+
}
|
|
511
|
+
function hr() {
|
|
512
|
+
return n(3104582886).then((e) => Pr(e));
|
|
513
|
+
}
|
|
514
|
+
function gr() {
|
|
515
|
+
return n(2249742267).then((e) => br(e));
|
|
516
|
+
}
|
|
517
|
+
function Sr(e, t) {
|
|
518
|
+
return n(1212190993, e, t);
|
|
519
|
+
}
|
|
520
|
+
function yr(e, t) {
|
|
521
|
+
return n(2177127885, e, t).then((r) => A(r));
|
|
522
|
+
}
|
|
523
|
+
const dr = he.createFrom, A = d(dr), mr = ge.createFrom, Tr = s(mr), Pr = s(a), br = s(A);
|
|
524
|
+
function Rr(e, t, r) {
|
|
525
|
+
return $("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession", e, t, p(r, [e, t]));
|
|
526
|
+
}
|
|
527
|
+
const Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
528
|
+
__proto__: null,
|
|
529
|
+
CloseSession: lr,
|
|
530
|
+
CreateSession: Rr,
|
|
531
|
+
GetSession: fr,
|
|
532
|
+
GetSupportedResources: $r,
|
|
533
|
+
HasPlugin: pr,
|
|
534
|
+
ListPlugins: hr,
|
|
535
|
+
ListSessions: gr,
|
|
536
|
+
SendCommand: Sr,
|
|
537
|
+
UpdateSessionOptions: yr
|
|
538
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
539
|
+
class L {
|
|
540
|
+
plugin_id;
|
|
541
|
+
provider_id;
|
|
542
|
+
name;
|
|
543
|
+
icon;
|
|
544
|
+
description;
|
|
545
|
+
handlers;
|
|
546
|
+
/** Creates a new MetricProviderSummary instance. */
|
|
547
|
+
constructor(t = {}) {
|
|
548
|
+
"plugin_id" in t || (this.plugin_id = ""), "provider_id" in t || (this.provider_id = ""), "name" in t || (this.name = ""), "icon" in t || (this.icon = ""), "description" in t || (this.description = ""), "handlers" in t || (this.handlers = []), Object.assign(this, t);
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Creates a new MetricProviderSummary instance from a string or object.
|
|
552
|
+
*/
|
|
553
|
+
static createFrom(t = {}) {
|
|
554
|
+
const r = vr;
|
|
555
|
+
let c = typeof t == "string" ? JSON.parse(t) : t;
|
|
556
|
+
return "handlers" in c && (c.handlers = r(c.handlers)), new L(c);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
const Gr = Se.createFrom, vr = s(Gr);
|
|
560
|
+
function wr() {
|
|
561
|
+
return n(3919346639).then((e) => Z(e));
|
|
562
|
+
}
|
|
563
|
+
function Cr(e) {
|
|
564
|
+
return n(3953821778, e).then((t) => Z(t));
|
|
565
|
+
}
|
|
566
|
+
function _r(e) {
|
|
567
|
+
return n(1815388456, e);
|
|
568
|
+
}
|
|
569
|
+
function Fr() {
|
|
570
|
+
return n(2730149903).then((e) => Lr(e));
|
|
571
|
+
}
|
|
572
|
+
function Or(e) {
|
|
573
|
+
return n(3994236150, e);
|
|
574
|
+
}
|
|
575
|
+
const Ar = L.createFrom, Z = s(Ar), Lr = s(a);
|
|
576
|
+
ye.createFrom;
|
|
577
|
+
const j = "github.com/omniviewdev/omniview/backend/pkg/plugin/metric.ServiceWrapper";
|
|
578
|
+
function jr(e, t, r) {
|
|
579
|
+
return $(`${j}.Query`, e, t, p(r, [e, t]));
|
|
580
|
+
}
|
|
581
|
+
function Er(e, t) {
|
|
582
|
+
return $(`${j}.QueryAll`, e, p(t, [e]));
|
|
583
|
+
}
|
|
584
|
+
function Hr(e, t, r) {
|
|
585
|
+
return $(`${j}.Subscribe`, e, t, p(r, [e, t]));
|
|
586
|
+
}
|
|
587
|
+
const Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
588
|
+
__proto__: null,
|
|
589
|
+
GetProviders: wr,
|
|
590
|
+
GetProvidersForResource: Cr,
|
|
591
|
+
HasPlugin: _r,
|
|
592
|
+
ListPlugins: Fr,
|
|
593
|
+
Query: jr,
|
|
594
|
+
QueryAll: Er,
|
|
595
|
+
Subscribe: Hr,
|
|
596
|
+
Unsubscribe: Or
|
|
597
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
598
|
+
function Wr(e, t) {
|
|
599
|
+
return n(3653639550, e, t);
|
|
600
|
+
}
|
|
601
|
+
function kr(e, t) {
|
|
602
|
+
return n(851823419, e, t);
|
|
603
|
+
}
|
|
604
|
+
function Mr(e) {
|
|
605
|
+
return n(2991415449, e).then((t) => Vr(t));
|
|
606
|
+
}
|
|
607
|
+
function Nr(e, t, r) {
|
|
608
|
+
return n(2695679023, e, t, r);
|
|
609
|
+
}
|
|
610
|
+
const Vr = s(a), eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
611
|
+
__proto__: null,
|
|
612
|
+
Delete: Wr,
|
|
613
|
+
Get: kr,
|
|
614
|
+
Keys: Mr,
|
|
615
|
+
Set: Nr
|
|
616
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
617
|
+
export {
|
|
618
|
+
gn as $,
|
|
619
|
+
We as A,
|
|
620
|
+
Rr as B,
|
|
621
|
+
bt as C,
|
|
622
|
+
lr as D,
|
|
623
|
+
wr as E,
|
|
624
|
+
Cr as F,
|
|
625
|
+
De as G,
|
|
626
|
+
Hr as H,
|
|
627
|
+
It as I,
|
|
628
|
+
Be as J,
|
|
629
|
+
ke as K,
|
|
630
|
+
wt as L,
|
|
631
|
+
Me as M,
|
|
632
|
+
xe as N,
|
|
633
|
+
Nt as O,
|
|
634
|
+
wn as P,
|
|
635
|
+
Er as Q,
|
|
636
|
+
Qt as R,
|
|
637
|
+
Ot as S,
|
|
638
|
+
Wt as T,
|
|
639
|
+
Or as U,
|
|
640
|
+
Xn as V,
|
|
641
|
+
sr as W,
|
|
642
|
+
Kt as X,
|
|
643
|
+
Mt as Y,
|
|
644
|
+
kt as Z,
|
|
645
|
+
ln as _,
|
|
646
|
+
xr as a,
|
|
647
|
+
fn as a0,
|
|
648
|
+
Sn as a1,
|
|
649
|
+
rn as a2,
|
|
650
|
+
Vt as a3,
|
|
651
|
+
Yt as a4,
|
|
652
|
+
Jt as a5,
|
|
653
|
+
cn as a6,
|
|
654
|
+
on as a7,
|
|
655
|
+
sn as a8,
|
|
656
|
+
dn as a9,
|
|
657
|
+
Tn as aa,
|
|
658
|
+
Pn as ab,
|
|
659
|
+
Dr as b,
|
|
660
|
+
Ir as c,
|
|
661
|
+
Kr as d,
|
|
662
|
+
Ur as e,
|
|
663
|
+
Xr as f,
|
|
664
|
+
Qr as g,
|
|
665
|
+
Ft as h,
|
|
666
|
+
xt as i,
|
|
667
|
+
Dt as j,
|
|
668
|
+
Rt as k,
|
|
669
|
+
Yr as l,
|
|
670
|
+
Zr as m,
|
|
671
|
+
qr as n,
|
|
672
|
+
un as o,
|
|
673
|
+
an as p,
|
|
674
|
+
yn as q,
|
|
675
|
+
Ut as r,
|
|
676
|
+
eo as s,
|
|
677
|
+
Ht as t,
|
|
678
|
+
zt as u,
|
|
679
|
+
lt as v,
|
|
680
|
+
vt as w,
|
|
681
|
+
qt as x,
|
|
682
|
+
kr as y,
|
|
683
|
+
Nr as z
|
|
684
|
+
};
|