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