@omniviewdev/runtime 0.13.0 → 0.15.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.
Files changed (35) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +199 -175
  4. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/index.d.ts +1 -1
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/models.d.ts +18 -0
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +1 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/binding.d.ts +8 -0
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/index.d.ts +3 -0
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/models.d.ts +33 -0
  10. package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/servicewrapper.d.ts +3 -0
  11. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/profiling/index.d.ts +1 -0
  12. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/profiling/models.d.ts +12 -0
  13. package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +8 -0
  14. package/dist/context/plugins/usePluginContext.d.ts +0 -1
  15. package/dist/context/settings/SettingsContext.d.ts +0 -1
  16. package/dist/hooks/settings/index.d.ts +1 -0
  17. package/dist/hooks/settings/useScopedSettings.d.ts +30 -0
  18. package/dist/index.cjs +4 -4
  19. package/dist/index.js +1829 -1756
  20. package/dist/{models-Cg1YRHQm.js → models-BJgLAHwq.js} +1 -1
  21. package/dist/{models-UwESEW2B.js → models-BTzXdmUY.js} +183 -175
  22. package/dist/{models-dzj-SsFZ.cjs → models-BhsFYb70.cjs} +1 -1
  23. package/dist/models-NYvUa5Yc.cjs +1 -0
  24. package/dist/models.cjs +1 -1
  25. package/dist/models.js +8 -8
  26. package/dist/servicewrapper-CZ9BUUjp.js +662 -0
  27. package/dist/servicewrapper-lF8bBrIo.cjs +1 -0
  28. package/package.json +1 -1
  29. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/servicewrapper.d.ts +0 -19
  30. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/index.d.ts +0 -2
  31. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/servicewrapper.d.ts +0 -52
  32. package/dist/models-DSGyy8lg.cjs +0 -1
  33. package/dist/servicewrapper-BhxHs5DR.js +0 -688
  34. package/dist/servicewrapper-CNtZecKV.cjs +0 -1
  35. /package/dist/bindings/github.com/omniviewdev/omniview/{backend/pkg/plugin/settings → internal/profiling}/index.d.ts +0 -0
@@ -1,688 +0,0 @@
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 M = 0, E = 2, ee = 0, H = 0;
12
- const W = [], 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 (M += g, E += u === 34 || u === 92 ? 2 : g, M > 33554432 || E > 67043328) throw new RangeError("Request JSON byte limit");
22
- }
23
- W.push(i);
24
- }, k = (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
- k(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 (++H > 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 (++H > 1048576) throw new RangeError("Request JSON field limit");
68
- u || f(","), u = !1, k(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), W.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 Ce(e) {
99
- return n(1371268636, e).then((t) => T(t));
100
- }
101
- function ve(e) {
102
- return n(3881019319, e);
103
- }
104
- function we() {
105
- return n(3006426324).then((e) => Me(e));
106
- }
107
- function _e() {
108
- return n(265791345).then((e) => Ee(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), Me = s(a), Ee = s(T);
117
- function He(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 xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
121
- __proto__: null,
122
- AttachSession: de,
123
- CloseSession: me,
124
- CreateSession: He,
125
- CreateTerminal: Te,
126
- DetachSession: Pe,
127
- GetHandler: be,
128
- GetHandlers: Re,
129
- GetPluginHandlers: Ge,
130
- GetSession: Ce,
131
- HasPlugin: ve,
132
- ListPlugins: we,
133
- ListSessions: _e,
134
- ResizeSession: Fe,
135
- WriteSession: Oe
136
- }, Symbol.toStringTag, { value: "Module" }));
137
- function We(e) {
138
- return n(182596922, e).then((t) => C(t));
139
- }
140
- function ke(e, t, r) {
141
- return n(981100722, e, t, r).then((c) => v(c));
142
- }
143
- function Ne(e) {
144
- return n(2157304970, e).then((t) => C(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) => v(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) => v(r));
160
- }
161
- const qe = re.createFrom, C = d(qe), v = s(C), 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 Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
166
- __proto__: null,
167
- ClosePortForwardSession: We,
168
- FindPortForwardSessions: ke,
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) => w(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), w = ie.createFrom, St = ce.createFrom, q = s(St), yt = ue.createFrom, dt = s(yt), b = d(w), mt = ae.createFrom, x = s(mt), Tt = s(w), Pt = s(y), Qr = /* @__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 Ct() {
274
- return n(1598984489).then((e) => At(e));
275
- }
276
- function vt(e) {
277
- return n(1775572154, e).then((t) => F(t));
278
- }
279
- function wt() {
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 Mt = (e) => o("Features", e), Et = (e, t) => o("GetConnectionMetadata", e, t), Ht = (e, t) => o("RefreshConnectionMetadata", e, t), Wt = (e, t) => o("Catalog", e, t), kt = (e, t) => o("Get", e, t), Nt = (e, t) => o("Enumerate", e, t), Vt = (e, t) => o("NativeQuery", e, p(t, [e])), zt = (e, t) => o("Mutate", e, p(t, [e])), Bt = (e, t) => o("Action", e, p(t, [e])), Jt = (e, t) => o("ResolveTarget", e, t), Ut = (e, t) => o("ResolveReference", e, t), qt = (e, t, r) => o("GetSchemaDocument", e, t, r), xt = () => o("GetAllConnectionStates"), It = (e) => o("ListConnectionProfiles", e), Qt = (e, t) => o("SaveConnectionProfile", e, t), Dt = (e, t) => o("ImportConnectionProfile", e, t), Kt = (e, t) => o("ResetConnectionProfile", e, t), Xt = (e, t) => o("RemoveConnection", e, t), Yt = (e, t) => o("GetResourceGroups", e, t), Zt = (e, t, r) => o("GetResourceDefinition", e, t, r), en = (e, t) => o("GetEditorSchemas", e, t), tn = (e, t, r) => o("GetRelationships", e, t, r), nn = (e, t) => o("ResolveRelationships", e, t), rn = (e, t, r) => o("GetHealth", e, p({
296
- request: t,
297
- body: r
298
- }, [e])), on = (e, t, r) => o("GetResourceEvents", e, t, r), sn = (e, t, r) => o("GetActions", e, t, r), cn = (e, t) => o("StreamAction", e, p(t, [e])), un = (e) => o("AttachStreamAction", e), an = (e) => o("CancelStreamAction", e), ln = (e, t) => o("StartConnectionWatch", e, t), fn = (e, t) => o("StopConnectionWatch", e, t), $n = (e, t) => o("GetWatchState", e, t), pn = (e, t) => o("EnsureResourceWatch", e, t), hn = (e, t, r) => o("StopResourceWatch", e, t, r), gn = (e, t) => o("RestartResourceWatch", e, t), Sn = (e, t, r) => o("IsResourceWatchRunning", e, t, r), yn = (e, t) => o("SubscribeResource", e, t), dn = (e, t) => o("UnsubscribeResource", e, t), mn = (e, t, r) => o("ScopeValues", e, t, r), Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
299
- __proto__: null,
300
- Action: Bt,
301
- AttachStreamAction: un,
302
- CancelStreamAction: an,
303
- Catalog: Wt,
304
- CheckConnection: bt,
305
- EnsureResourceWatch: pn,
306
- Enumerate: Nt,
307
- Features: Mt,
308
- Get: kt,
309
- GetActions: sn,
310
- GetAllConnectionStates: xt,
311
- GetConnection: Rt,
312
- GetConnectionMetadata: Et,
313
- GetEditorSchemas: en,
314
- GetHealth: rn,
315
- GetRelationships: tn,
316
- GetResourceDefinition: Zt,
317
- GetResourceEvents: on,
318
- GetResourceGroups: Yt,
319
- GetSchemaDocument: qt,
320
- GetWatchState: $n,
321
- HasPlugin: Gt,
322
- ImportConnectionProfile: Dt,
323
- IsResourceWatchRunning: Sn,
324
- ListAllConnections: Ct,
325
- ListConnectionProfiles: It,
326
- ListConnections: vt,
327
- ListPlugins: wt,
328
- LoadConnections: _t,
329
- Mutate: zt,
330
- NativeQuery: Vt,
331
- RefreshConnectionMetadata: Ht,
332
- RemoveConnection: Xt,
333
- ResetConnectionProfile: Kt,
334
- ResolveReference: Ut,
335
- ResolveRelationships: nn,
336
- ResolveTarget: Jt,
337
- RestartResourceWatch: gn,
338
- SaveConnectionProfile: Qt,
339
- ScopeValues: mn,
340
- StartConnection: Ft,
341
- StartConnectionWatch: ln,
342
- StopConnection: Ot,
343
- StopConnectionWatch: fn,
344
- StopResourceWatch: hn,
345
- StreamAction: cn,
346
- SubscribeResource: yn,
347
- UnsubscribeResource: dn
348
- }, Symbol.toStringTag, { value: "Module" })), R = "github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";
349
- function Tn(e, t, r, c, h) {
350
- return $(`${R}.GetRelated`, e, t, r, c, h);
351
- }
352
- function Pn(e, t, r, c, h) {
353
- return $(`${R}.GetRelationshipChain`, e, t, r, c, h);
354
- }
355
- function bn(e, t, r, c) {
356
- return $(`${R}.GetDependencyTree`, e, t, r, c);
357
- }
358
- function Rn(e, t, r, c, h) {
359
- return $(`${R}.GetSubgraph`, e, t, r, c, h);
360
- }
361
- const Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
362
- __proto__: null,
363
- GetDependencyTree: bn,
364
- GetRelated: Tn,
365
- GetRelationshipChain: Pn,
366
- GetSubgraph: Rn
367
- }, Symbol.toStringTag, { value: "Module" }));
368
- function Gn(e, t) {
369
- return n(3867104420, e, t).then((r) => Q(r));
370
- }
371
- function Cn(e) {
372
- return n(3795411887, e);
373
- }
374
- function vn() {
375
- return n(1053995964).then((e) => jn(e));
376
- }
377
- function wn(e) {
378
- return n(3231741321, e).then((t) => Mn(t));
379
- }
380
- function _n(e) {
381
- return n(2597562645, e).then((t) => D(t));
382
- }
383
- function Fn(e, t, r) {
384
- return n(1481837168, e, t, r);
385
- }
386
- function On(e, t) {
387
- return n(230212281, e, t);
388
- }
389
- function An(e, t, r) {
390
- return n(1534017462, e, t, r).then((c) => En(c));
391
- }
392
- function Ln() {
393
- return n(2408440370).then((e) => D(e));
394
- }
395
- const Q = V.createFrom, jn = s(a), Mn = S(a, Q), D = S(a, a), En = z.createFrom, Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
396
- __proto__: null,
397
- GetSetting: Gn,
398
- HasPlugin: Cn,
399
- ListPlugins: vn,
400
- ListSettings: wn,
401
- PluginValues: _n,
402
- SetSetting: Fn,
403
- SetSettings: On,
404
- ValidateSetting: An,
405
- Values: Ln
406
- }, Symbol.toStringTag, { value: "Module" }));
407
- function Hn(e) {
408
- return n(122243240, e);
409
- }
410
- function Wn() {
411
- return n(269082212).then((e) => er(e));
412
- }
413
- function kn(e) {
414
- return n(1421156656, e).then((t) => O(t));
415
- }
416
- function Nn(e) {
417
- return n(3143996982, e).then((t) => K(t));
418
- }
419
- function Vn(e) {
420
- return n(1695819138, e);
421
- }
422
- function zn(e) {
423
- return n(1827194808, e).then((t) => tr(t));
424
- }
425
- function Bn(e) {
426
- return n(72059321, e);
427
- }
428
- function Jn(e) {
429
- return n(62418781, e).then((t) => nr(t));
430
- }
431
- function Un(e) {
432
- return n(2222012564, e).then((t) => rr(t));
433
- }
434
- function qn(e) {
435
- return n(2753368941, e);
436
- }
437
- function xn(e) {
438
- return n(3825211425, e);
439
- }
440
- function In(e) {
441
- return n(2121298005, e).then((t) => or(t));
442
- }
443
- function Qn() {
444
- return n(3038957305).then((e) => P(e));
445
- }
446
- function Dn() {
447
- return n(3369612893);
448
- }
449
- function Kn(e, t) {
450
- return n(252556992, e, t);
451
- }
452
- function Xn(e) {
453
- return n(1704369097, e);
454
- }
455
- function Yn(e, t) {
456
- return n(1399113254, e, t).then((r) => sr(r));
457
- }
458
- function Zn() {
459
- return n(2936263106).then((e) => K(e));
460
- }
461
- const O = $e.createFrom, er = s(O), K = S(a, a), tr = s(a), nr = s(a), rr = V.createFrom, or = s(a);
462
- var P = function e(...t) {
463
- return P === e && (P = ir), P(...t);
464
- };
465
- const ir = S(a, O), sr = z.createFrom, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
466
- __proto__: null,
467
- GetBool: Hn,
468
- GetCategories: Wn,
469
- GetCategory: kn,
470
- GetCategoryValues: Nn,
471
- GetFloat: Vn,
472
- GetFloatSlice: zn,
473
- GetInt: Bn,
474
- GetIntSlice: Jn,
475
- GetSetting: Un,
476
- GetSettingValue: qn,
477
- GetString: xn,
478
- GetStringSlice: In,
479
- ListSettings: Qn,
480
- LoadSettings: Dn,
481
- SetSetting: Kn,
482
- SetSettings: Xn,
483
- ValidateSetting: Yn,
484
- Values: Zn
485
- }, Symbol.toStringTag, { value: "Module" }));
486
- function cr(e) {
487
- return n(2106300110, e).then((t) => lr(t));
488
- }
489
- function ur(e) {
490
- return n(765209827, e).then((t) => fr(t));
491
- }
492
- function ar(e) {
493
- return n(2355436169, e).then((t) => Y(t));
494
- }
495
- const X = pe.createFrom, Y = s(X), lr = S(a, Y), fr = d(X), Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
496
- __proto__: null,
497
- GetPluginComponents: cr,
498
- GetResourceAreaComponent: ur,
499
- GetResourceComponents: ar
500
- }, Symbol.toStringTag, { value: "Module" }));
501
- function $r(e) {
502
- return n(2776241946, e);
503
- }
504
- function pr(e) {
505
- return n(1474987050, e).then((t) => A(t));
506
- }
507
- function hr(e) {
508
- return n(3156347865, e).then((t) => br(t));
509
- }
510
- function gr(e) {
511
- return n(1444002509, e);
512
- }
513
- function Sr() {
514
- return n(3104582886).then((e) => Rr(e));
515
- }
516
- function yr() {
517
- return n(2249742267).then((e) => Gr(e));
518
- }
519
- function dr(e, t) {
520
- return n(1212190993, e, t);
521
- }
522
- function mr(e, t) {
523
- return n(2177127885, e, t).then((r) => A(r));
524
- }
525
- const Tr = he.createFrom, A = d(Tr), Pr = ge.createFrom, br = s(Pr), Rr = s(a), Gr = s(A);
526
- function Cr(e, t, r) {
527
- return $("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession", e, t, p(r, [e, t]));
528
- }
529
- const eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
530
- __proto__: null,
531
- CloseSession: $r,
532
- CreateSession: Cr,
533
- GetSession: pr,
534
- GetSupportedResources: hr,
535
- HasPlugin: gr,
536
- ListPlugins: Sr,
537
- ListSessions: yr,
538
- SendCommand: dr,
539
- UpdateSessionOptions: mr
540
- }, Symbol.toStringTag, { value: "Module" }));
541
- class L {
542
- plugin_id;
543
- provider_id;
544
- name;
545
- icon;
546
- description;
547
- handlers;
548
- /** Creates a new MetricProviderSummary instance. */
549
- constructor(t = {}) {
550
- "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);
551
- }
552
- /**
553
- * Creates a new MetricProviderSummary instance from a string or object.
554
- */
555
- static createFrom(t = {}) {
556
- const r = wr;
557
- let c = typeof t == "string" ? JSON.parse(t) : t;
558
- return "handlers" in c && (c.handlers = r(c.handlers)), new L(c);
559
- }
560
- }
561
- const vr = Se.createFrom, wr = s(vr);
562
- function _r() {
563
- return n(3919346639).then((e) => Z(e));
564
- }
565
- function Fr(e) {
566
- return n(3953821778, e).then((t) => Z(t));
567
- }
568
- function Or(e) {
569
- return n(1815388456, e);
570
- }
571
- function Ar() {
572
- return n(2730149903).then((e) => Mr(e));
573
- }
574
- function Lr(e) {
575
- return n(3994236150, e);
576
- }
577
- const jr = L.createFrom, Z = s(jr), Mr = s(a);
578
- ye.createFrom;
579
- const j = "github.com/omniviewdev/omniview/backend/pkg/plugin/metric.ServiceWrapper";
580
- function Er(e, t, r) {
581
- return $(`${j}.Query`, e, t, p(r, [e, t]));
582
- }
583
- function Hr(e, t) {
584
- return $(`${j}.QueryAll`, e, p(t, [e]));
585
- }
586
- function Wr(e, t, r) {
587
- return $(`${j}.Subscribe`, e, t, p(r, [e, t]));
588
- }
589
- const to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
590
- __proto__: null,
591
- GetProviders: _r,
592
- GetProvidersForResource: Fr,
593
- HasPlugin: Or,
594
- ListPlugins: Ar,
595
- Query: Er,
596
- QueryAll: Hr,
597
- Subscribe: Wr,
598
- Unsubscribe: Lr
599
- }, Symbol.toStringTag, { value: "Module" }));
600
- function kr(e, t) {
601
- return n(3653639550, e, t);
602
- }
603
- function Nr(e, t) {
604
- return n(851823419, e, t);
605
- }
606
- function Vr(e) {
607
- return n(2991415449, e).then((t) => Br(t));
608
- }
609
- function zr(e, t, r) {
610
- return n(2695679023, e, t, r);
611
- }
612
- const Br = s(a), no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
613
- __proto__: null,
614
- Delete: kr,
615
- Get: Nr,
616
- Keys: Vr,
617
- Set: zr
618
- }, Symbol.toStringTag, { value: "Module" }));
619
- export {
620
- Nt as $,
621
- Nr as A,
622
- zr as B,
623
- bt as C,
624
- He as D,
625
- Cr as E,
626
- $r as F,
627
- De as G,
628
- _r as H,
629
- Dt as I,
630
- Fr as J,
631
- Wr as K,
632
- vt as L,
633
- Be as M,
634
- We as N,
635
- ke as O,
636
- _n as P,
637
- Hr as Q,
638
- Kt as R,
639
- Ot as S,
640
- xe as T,
641
- Lr as U,
642
- Zn as V,
643
- zt as W,
644
- kt as X,
645
- ur as Y,
646
- Yt as Z,
647
- Vt as _,
648
- Qr as a,
649
- $n as a0,
650
- yn as a1,
651
- pn as a2,
652
- dn as a3,
653
- sn as a4,
654
- Bt as a5,
655
- en as a6,
656
- qt as a7,
657
- an as a8,
658
- cn as a9,
659
- un as aa,
660
- Tn as ab,
661
- bn as ac,
662
- Rn as ad,
663
- Xr as b,
664
- Dr as c,
665
- Yr as d,
666
- xr as e,
667
- Zr as f,
668
- Kr as g,
669
- Ft as h,
670
- Qt as i,
671
- Xt as j,
672
- Rt as k,
673
- eo as l,
674
- to as m,
675
- Ir as n,
676
- ln as o,
677
- fn as p,
678
- mn as q,
679
- xt as r,
680
- no as s,
681
- Wt as t,
682
- Jt as u,
683
- lt as v,
684
- Ct as w,
685
- It as x,
686
- Et as y,
687
- Ht as z
688
- };