@omniviewdev/runtime 0.15.0 → 0.17.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.
@@ -1,1240 +0,0 @@
1
- import { A as o, a as l, M as p, N as d } from "./index-zyAgCXOO.js";
2
- class Z {
3
- connection;
4
- /** Creates a new AccessRoute instance. */
5
- constructor(e = {}) {
6
- "connection" in e || (this.connection = ""), Object.assign(this, e);
7
- }
8
- /**
9
- * Creates a new AccessRoute instance from a string or object.
10
- */
11
- static createFrom(e = {}) {
12
- let s = typeof e == "string" ? JSON.parse(e) : e;
13
- return new Z(s);
14
- }
15
- }
16
- class G {
17
- address;
18
- incarnation;
19
- /** Creates a new ResourceReference instance. */
20
- constructor(e = {}) {
21
- "address" in e || (this.address = null), Object.assign(this, e);
22
- }
23
- /**
24
- * Creates a new ResourceReference instance from a string or object.
25
- */
26
- static createFrom(e = {}) {
27
- let s = typeof e == "string" ? JSON.parse(e) : e;
28
- return new G(s);
29
- }
30
- }
31
- let q = class fe {
32
- label;
33
- label_selector;
34
- paths;
35
- selectors;
36
- /** Creates a new ActionTargetBuilder instance. */
37
- constructor(e = {}) {
38
- "label" in e || (this.label = ""), "label_selector" in e || (this.label_selector = ""), "paths" in e || (this.paths = []), "selectors" in e || (this.selectors = {}), Object.assign(this, e);
39
- }
40
- /**
41
- * Creates a new ActionTargetBuilder instance from a string or object.
42
- */
43
- static createFrom(e = {}) {
44
- const s = S, i = f;
45
- let a = typeof e == "string" ? JSON.parse(e) : e;
46
- return "paths" in a && (a.paths = s(a.paths)), "selectors" in a && (a.selectors = i(a.selectors)), new fe(a);
47
- }
48
- }, Pe = class he {
49
- plugin;
50
- resource;
51
- target_builder;
52
- default_command;
53
- /** Creates a new Handler instance. */
54
- constructor(e = {}) {
55
- "plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), "target_builder" in e || (this.target_builder = new q()), "default_command" in e || (this.default_command = []), Object.assign(this, e);
56
- }
57
- /**
58
- * Creates a new Handler instance from a string or object.
59
- */
60
- static createFrom(e = {}) {
61
- const s = ze, i = S;
62
- let a = typeof e == "string" ? JSON.parse(e) : e;
63
- return "target_builder" in a && (a.target_builder = s(a.target_builder)), "default_command" in a && (a.default_command = i(a.default_command)), new he(a);
64
- }
65
- };
66
- class K {
67
- created_at;
68
- labels;
69
- params;
70
- id;
71
- command;
72
- attached;
73
- /** Creates a new Session instance. */
74
- constructor(e = {}) {
75
- "created_at" in e || (this.created_at = "0001-01-01T00:00:00.000Z"), "labels" in e || (this.labels = {}), "params" in e || (this.params = {}), "id" in e || (this.id = ""), "command" in e || (this.command = []), "attached" in e || (this.attached = !1), Object.assign(this, e);
76
- }
77
- /**
78
- * Creates a new Session instance from a string or object.
79
- */
80
- static createFrom(e = {}) {
81
- const s = f, i = f, a = S;
82
- let n = typeof e == "string" ? JSON.parse(e) : e;
83
- return "labels" in n && (n.labels = s(n.labels)), "params" in n && (n.params = i(n.params)), "command" in n && (n.command = a(n.command)), new K(n);
84
- }
85
- }
86
- class V {
87
- params;
88
- labels;
89
- id;
90
- resource_plugin;
91
- resource_key;
92
- resource_data;
93
- reference;
94
- route;
95
- command;
96
- tty;
97
- /** Creates a new SessionOptions instance. */
98
- constructor(e = {}) {
99
- "params" in e || (this.params = {}), "labels" in e || (this.labels = {}), "id" in e || (this.id = ""), "resource_plugin" in e || (this.resource_plugin = ""), "resource_key" in e || (this.resource_key = ""), "command" in e || (this.command = []), "tty" in e || (this.tty = !1), Object.assign(this, e);
100
- }
101
- /**
102
- * Creates a new SessionOptions instance from a string or object.
103
- */
104
- static createFrom(e = {}) {
105
- const s = f, i = f, a = Ae, n = ke, H = S;
106
- let c = typeof e == "string" ? JSON.parse(e) : e;
107
- return "params" in c && (c.params = s(c.params)), "labels" in c && (c.labels = i(c.labels)), "reference" in c && (c.reference = a(c.reference)), "route" in c && (c.route = n(c.route)), "command" in c && (c.command = H(c.command)), new V(c);
108
- }
109
- }
110
- const S = o(l), f = p(l, l), ze = q.createFrom, xe = G.createFrom, Ae = d(xe), Re = Z.createFrom, ke = d(Re), Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
111
- __proto__: null,
112
- ActionTargetBuilder: q,
113
- Handler: Pe,
114
- Session: K,
115
- SessionOptions: V
116
- }, Symbol.toStringTag, { value: "Module" }));
117
- class Q {
118
- resource_id;
119
- connection_id;
120
- /** Creates a new FindPortForwardSessionRequest instance. */
121
- constructor(e = {}) {
122
- "resource_id" in e || (this.resource_id = ""), "connection_id" in e || (this.connection_id = ""), Object.assign(this, e);
123
- }
124
- /**
125
- * Creates a new FindPortForwardSessionRequest instance from a string or object.
126
- */
127
- static createFrom(e = {}) {
128
- let s = typeof e == "string" ? JSON.parse(e) : e;
129
- return new Q(s);
130
- }
131
- }
132
- var me = /* @__PURE__ */ ((t) => (t.$zero = "", t.PortForwardConnectionTypeResource = "RESOURCE", t.PortForwardConnectionTypeStatic = "STATIC", t))(me || {}), _e = /* @__PURE__ */ ((t) => (t.$zero = "", t.PortForwardProtocolTCP = "TCP", t.PortForwardProtocolUDP = "UDP", t))(_e || {});
133
- class L {
134
- created_at;
135
- updated_at;
136
- connection;
137
- labels;
138
- id;
139
- protocol;
140
- state;
141
- connection_type;
142
- encryption;
143
- local_port;
144
- remote_port;
145
- /** Creates a new PortForwardSession instance. */
146
- constructor(e = {}) {
147
- "created_at" in e || (this.created_at = "0001-01-01T00:00:00.000Z"), "updated_at" in e || (this.updated_at = "0001-01-01T00:00:00.000Z"), "connection" in e || (this.connection = null), "labels" in e || (this.labels = {}), "id" in e || (this.id = ""), "protocol" in e || (this.protocol = ""), "state" in e || (this.state = ""), "connection_type" in e || (this.connection_type = ""), "encryption" in e || (this.encryption = new h()), "local_port" in e || (this.local_port = 0), "remote_port" in e || (this.remote_port = 0), Object.assign(this, e);
148
- }
149
- /**
150
- * Creates a new PortForwardSession instance from a string or object.
151
- */
152
- static createFrom(e = {}) {
153
- const s = Ie, i = Be;
154
- let a = typeof e == "string" ? JSON.parse(e) : e;
155
- return "labels" in a && (a.labels = s(a.labels)), "encryption" in a && (a.encryption = i(a.encryption)), new L(a);
156
- }
157
- }
158
- class h {
159
- algorithm;
160
- key;
161
- enabled;
162
- /** Creates a new PortForwardSessionEncryption instance. */
163
- constructor(e = {}) {
164
- "algorithm" in e || (this.algorithm = ""), "key" in e || (this.key = ""), "enabled" in e || (this.enabled = !1), Object.assign(this, e);
165
- }
166
- /**
167
- * Creates a new PortForwardSessionEncryption instance from a string or object.
168
- */
169
- static createFrom(e = {}) {
170
- let s = typeof e == "string" ? JSON.parse(e) : e;
171
- return new h(s);
172
- }
173
- }
174
- var ge = /* @__PURE__ */ ((t) => (t.$zero = "", t.SessionStateActive = "ACTIVE", t.SessionStatePaused = "PAUSED", t.SessionStateStopped = "STOPPED", t.SessionStateFailed = "FAILED", t))(ge || {});
175
- const Ie = p(l, l), Be = h.createFrom, Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
176
- __proto__: null,
177
- FindPortForwardSessionRequest: Q,
178
- PortForwardConnectionType: me,
179
- PortForwardProtocol: _e,
180
- PortForwardSession: L,
181
- PortForwardSessionEncryption: h,
182
- SessionState: ge
183
- }, Symbol.toStringTag, { value: "Module" }));
184
- class W {
185
- id;
186
- name;
187
- description;
188
- icon_url;
189
- category;
190
- tags;
191
- license;
192
- official;
193
- featured;
194
- download_count;
195
- average_rating;
196
- review_count;
197
- repository;
198
- url;
199
- publisher_name;
200
- installed;
201
- installed_version;
202
- latest_version;
203
- update_available;
204
- /** Creates a new AvailablePlugin instance. */
205
- constructor(e = {}) {
206
- "id" in e || (this.id = ""), "name" in e || (this.name = ""), "description" in e || (this.description = ""), "icon_url" in e || (this.icon_url = ""), "category" in e || (this.category = ""), "tags" in e || (this.tags = []), "license" in e || (this.license = ""), "official" in e || (this.official = !1), "featured" in e || (this.featured = !1), "download_count" in e || (this.download_count = 0), "average_rating" in e || (this.average_rating = 0), "review_count" in e || (this.review_count = 0), "repository" in e || (this.repository = ""), "url" in e || (this.url = ""), "publisher_name" in e || (this.publisher_name = ""), "installed" in e || (this.installed = !1), "installed_version" in e || (this.installed_version = ""), "latest_version" in e || (this.latest_version = ""), "update_available" in e || (this.update_available = !1), Object.assign(this, e);
207
- }
208
- /**
209
- * Creates a new AvailablePlugin instance from a string or object.
210
- */
211
- static createFrom(e = {}) {
212
- const s = be;
213
- let i = typeof e == "string" ? JSON.parse(e) : e;
214
- return "tags" in i && (i.tags = s(i.tags)), new W(i);
215
- }
216
- }
217
- class v {
218
- date;
219
- count;
220
- /** Creates a new DailyStat instance. */
221
- constructor(e = {}) {
222
- "date" in e || (this.date = ""), "count" in e || (this.count = 0), Object.assign(this, e);
223
- }
224
- /**
225
- * Creates a new DailyStat instance from a string or object.
226
- */
227
- static createFrom(e = {}) {
228
- let s = typeof e == "string" ? JSON.parse(e) : e;
229
- return new v(s);
230
- }
231
- }
232
- class Y {
233
- total;
234
- last_month;
235
- last_week;
236
- daily_stats;
237
- /** Creates a new DownloadStats instance. */
238
- constructor(e = {}) {
239
- "total" in e || (this.total = 0), "last_month" in e || (this.last_month = 0), "last_week" in e || (this.last_week = 0), "daily_stats" in e || (this.daily_stats = []), Object.assign(this, e);
240
- }
241
- /**
242
- * Creates a new DownloadStats instance from a string or object.
243
- */
244
- static createFrom(e = {}) {
245
- const s = Ue;
246
- let i = typeof e == "string" ? JSON.parse(e) : e;
247
- return "daily_stats" in i && (i.daily_stats = s(i.daily_stats)), new Y(i);
248
- }
249
- }
250
- class X {
251
- id;
252
- user_id;
253
- rating;
254
- title;
255
- body;
256
- created_at;
257
- /** Creates a new Review instance. */
258
- constructor(e = {}) {
259
- "id" in e || (this.id = ""), "user_id" in e || (this.user_id = 0), "rating" in e || (this.rating = 0), "title" in e || (this.title = ""), "body" in e || (this.body = ""), "created_at" in e || (this.created_at = ""), Object.assign(this, e);
260
- }
261
- /**
262
- * Creates a new Review instance from a string or object.
263
- */
264
- static createFrom(e = {}) {
265
- let s = typeof e == "string" ? JSON.parse(e) : e;
266
- return new X(s);
267
- }
268
- }
269
- class M {
270
- version;
271
- description;
272
- changelog;
273
- min_ide_version;
274
- max_ide_version;
275
- capabilities;
276
- created_at;
277
- /** Creates a new VersionInfo instance. */
278
- constructor(e = {}) {
279
- "version" in e || (this.version = ""), "description" in e || (this.description = ""), "changelog" in e || (this.changelog = ""), "min_ide_version" in e || (this.min_ide_version = ""), "max_ide_version" in e || (this.max_ide_version = ""), "capabilities" in e || (this.capabilities = []), "created_at" in e || (this.created_at = ""), Object.assign(this, e);
280
- }
281
- /**
282
- * Creates a new VersionInfo instance from a string or object.
283
- */
284
- static createFrom(e = {}) {
285
- const s = be;
286
- let i = typeof e == "string" ? JSON.parse(e) : e;
287
- return "capabilities" in i && (i.capabilities = s(i.capabilities)), new M(i);
288
- }
289
- }
290
- const be = o(l), Ce = v.createFrom, Ue = o(Ce), Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
291
- __proto__: null,
292
- AvailablePlugin: W,
293
- DailyStat: v,
294
- DownloadStats: Y,
295
- Review: X,
296
- VersionInfo: M
297
- }, Symbol.toStringTag, { value: "Module" }));
298
- class u {
299
- name;
300
- email;
301
- url;
302
- /** Creates a new PluginAuthor instance. */
303
- constructor(e = {}) {
304
- "name" in e || (this.name = ""), "email" in e || (this.email = ""), "url" in e || (this.url = ""), Object.assign(this, e);
305
- }
306
- /**
307
- * Creates a new PluginAuthor instance from a string or object.
308
- */
309
- static createFrom(e = {}) {
310
- let s = typeof e == "string" ? JSON.parse(e) : e;
311
- return new u(s);
312
- }
313
- }
314
- var ye = /* @__PURE__ */ ((t) => (t.$zero = "", t.PluginComponentAreaEditor = "EDITOR", t.PluginComponentAreaSidebar = "SIDEBAR", t))(ye || {});
315
- class m {
316
- resource;
317
- /** Creates a new PluginComponents instance. */
318
- constructor(e = {}) {
319
- "resource" in e || (this.resource = []), Object.assign(this, e);
320
- }
321
- /**
322
- * Creates a new PluginComponents instance from a string or object.
323
- */
324
- static createFrom(e = {}) {
325
- const s = He;
326
- let i = typeof e == "string" ? JSON.parse(e) : e;
327
- return "resource" in i && (i.resource = s(i.resource)), new m(i);
328
- }
329
- }
330
- class T {
331
- name;
332
- email;
333
- /** Creates a new PluginMaintainer instance. */
334
- constructor(e = {}) {
335
- "name" in e || (this.name = ""), "email" in e || (this.email = ""), Object.assign(this, e);
336
- }
337
- /**
338
- * Creates a new PluginMaintainer instance from a string or object.
339
- */
340
- static createFrom(e = {}) {
341
- let s = typeof e == "string" ? JSON.parse(e) : e;
342
- return new T(s);
343
- }
344
- }
345
- class _ {
346
- id;
347
- version;
348
- name;
349
- icon;
350
- icon_url;
351
- description;
352
- repository;
353
- website;
354
- category;
355
- license;
356
- author;
357
- maintainers;
358
- tags;
359
- dependencies;
360
- capabilities;
361
- theme;
362
- components;
363
- schema_version;
364
- sdk_protocol_version;
365
- /**
366
- * StateIsolation is inspectable before launch; only a trusted builder's
367
- * attestation may authorize isolated startup, never self-asserted YAML.
368
- */
369
- state_isolation;
370
- /** Creates a new PluginMeta instance. */
371
- constructor(e = {}) {
372
- "id" in e || (this.id = ""), "version" in e || (this.version = ""), "name" in e || (this.name = ""), "icon" in e || (this.icon = ""), "icon_url" in e || (this.icon_url = ""), "description" in e || (this.description = ""), "repository" in e || (this.repository = ""), "website" in e || (this.website = ""), "category" in e || (this.category = ""), "license" in e || (this.license = ""), "maintainers" in e || (this.maintainers = []), "tags" in e || (this.tags = []), "dependencies" in e || (this.dependencies = []), "capabilities" in e || (this.capabilities = []), "theme" in e || (this.theme = new g()), "components" in e || (this.components = new m()), "schema_version" in e || (this.schema_version = 0), "sdk_protocol_version" in e || (this.sdk_protocol_version = 0), Object.assign(this, e);
373
- }
374
- /**
375
- * Creates a new PluginMeta instance from a string or object.
376
- */
377
- static createFrom(e = {}) {
378
- const s = Ge, i = Ke, a = O, n = O, H = O, c = Ve, Je = Qe, Ee = We;
379
- let r = typeof e == "string" ? JSON.parse(e) : e;
380
- return "author" in r && (r.author = s(r.author)), "maintainers" in r && (r.maintainers = i(r.maintainers)), "tags" in r && (r.tags = a(r.tags)), "dependencies" in r && (r.dependencies = n(r.dependencies)), "capabilities" in r && (r.capabilities = H(r.capabilities)), "theme" in r && (r.theme = c(r.theme)), "components" in r && (r.components = Je(r.components)), "state_isolation" in r && (r.state_isolation = Ee(r.state_isolation)), new _(r);
381
- }
382
- }
383
- class w {
384
- name;
385
- plugin;
386
- area;
387
- resources;
388
- extension;
389
- /** Creates a new PluginResourceComponent instance. */
390
- constructor(e = {}) {
391
- "name" in e || (this.name = ""), "plugin" in e || (this.plugin = ""), "area" in e || (this.area = ""), "resources" in e || (this.resources = []), "extension" in e || (this.extension = ""), Object.assign(this, e);
392
- }
393
- /**
394
- * Creates a new PluginResourceComponent instance from a string or object.
395
- */
396
- static createFrom(e = {}) {
397
- const s = O;
398
- let i = typeof e == "string" ? JSON.parse(e) : e;
399
- return "resources" in i && (i.resources = s(i.resources)), new w(i);
400
- }
401
- }
402
- class g {
403
- colors;
404
- /** Creates a new PluginTheme instance. */
405
- constructor(e = {}) {
406
- "colors" in e || (this.colors = new b()), Object.assign(this, e);
407
- }
408
- /**
409
- * Creates a new PluginTheme instance from a string or object.
410
- */
411
- static createFrom(e = {}) {
412
- const s = Ye;
413
- let i = typeof e == "string" ? JSON.parse(e) : e;
414
- return "colors" in i && (i.colors = s(i.colors)), new g(i);
415
- }
416
- }
417
- class b {
418
- primary;
419
- secondary;
420
- tertiary;
421
- /** Creates a new PluginThemeColors instance. */
422
- constructor(e = {}) {
423
- "primary" in e || (this.primary = ""), "secondary" in e || (this.secondary = ""), "tertiary" in e || (this.tertiary = ""), Object.assign(this, e);
424
- }
425
- /**
426
- * Creates a new PluginThemeColors instance from a string or object.
427
- */
428
- static createFrom(e = {}) {
429
- let s = typeof e == "string" ? JSON.parse(e) : e;
430
- return new b(s);
431
- }
432
- }
433
- class N {
434
- schema_version;
435
- capability;
436
- sdk_module;
437
- sdk_revision;
438
- /**
439
- * SDKSourceSHA256 identifies the trusted builder's exact selected working-tree
440
- * snapshot, permitting live feature edits above the reviewed capability base.
441
- * Empty is reserved for immutable, clean, commit-only trusted builds.
442
- */
443
- sdk_source_sha256;
444
- binary_sha256;
445
- /** Creates a new StateIsolationProvenance instance. */
446
- constructor(e = {}) {
447
- "schema_version" in e || (this.schema_version = 0), "capability" in e || (this.capability = ""), "sdk_module" in e || (this.sdk_module = ""), "sdk_revision" in e || (this.sdk_revision = ""), "binary_sha256" in e || (this.binary_sha256 = ""), Object.assign(this, e);
448
- }
449
- /**
450
- * Creates a new StateIsolationProvenance instance from a string or object.
451
- */
452
- static createFrom(e = {}) {
453
- let s = typeof e == "string" ? JSON.parse(e) : e;
454
- return new N(s);
455
- }
456
- }
457
- const De = w.createFrom, He = o(De), Ze = u.createFrom, Ge = d(Ze), qe = T.createFrom, Ke = o(qe), O = o(l), Ve = g.createFrom, Qe = m.createFrom, Le = N.createFrom, We = d(Le), Ye = b.createFrom, Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
458
- __proto__: null,
459
- PluginAuthor: u,
460
- PluginComponentArea: ye,
461
- PluginComponents: m,
462
- PluginMaintainer: T,
463
- PluginMeta: _,
464
- PluginResourceComponent: w,
465
- PluginTheme: g,
466
- PluginThemeColors: b,
467
- StateIsolationProvenance: N
468
- }, Symbol.toStringTag, { value: "Module" }));
469
- var j = /* @__PURE__ */ ((t) => (t[t.$zero = 0] = "$zero", t[t.minDuration = -9223372036854776e3] = "minDuration", t[t.maxDuration = 9223372036854776e3] = "maxDuration", t[t.Nanosecond = 1] = "Nanosecond", t[t.Microsecond = 1e3] = "Microsecond", t[t.Millisecond = 1e6] = "Millisecond", t[t.Second = 1e9] = "Second", t[t.Minute = 6e10] = "Minute", t[t.Hour = 36e11] = "Hour", t))(j || {});
470
- const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
471
- __proto__: null,
472
- Duration: j
473
- }, Symbol.toStringTag, { value: "Module" }));
474
- var Xe = /* @__PURE__ */ ((t) => (t.$zero = "", t.CapabilityResource = "resource", t.CapabilityExec = "exec", t.CapabilityNetworker = "networker", t.CapabilityLog = "log", t.CapabilityMetric = "metric", t.CapabilitySettings = "settings", t.CapabilityTools = "tools", t.CapabilityUI = "ui", t))(Xe || {});
475
- class $ {
476
- /**
477
- * LastRefresh is the time when the auth context was last refreshed
478
- * +optional
479
- */
480
- last_refresh;
481
- /**
482
- * Data is an optional map of arbitrary data that can be used to store additional information about the connection,
483
- * such as credential file locations, etc.
484
- *
485
- * This data is exposed to the user in the UI under the settings panel for the namespace. If the data is sensitive,
486
- * it should be stored in the SensitiveData field.
487
- * +optional
488
- */
489
- data;
490
- /**
491
- * Labels is a map of arbitrary key-value pairs that can be used to store additional information about the connection.
492
- * Users will likely use and modify these labels to help organize and categorize their connections.
493
- */
494
- labels;
495
- /**
496
- * Lifecycle contains IDE-managed lifecycle behavior for the connection.
497
- * This is used by the host to orchestrate behaviors like auto-connect.
498
- */
499
- lifecycle;
500
- /**
501
- * ID is the unique identifier for the connection that makes sense to the plugin implementation.
502
- * +required
503
- */
504
- id;
505
- /**
506
- * UID is an autogenerated unique identifier for the connection that the IDE will use to identify and track.
507
- */
508
- uid;
509
- /**
510
- * Name is the readable name of the connection. Editable by the user.
511
- * +required
512
- */
513
- name;
514
- /**
515
- * Description is an optional description of the connection. This is primarily for the user to customize
516
- * the visual representation of the connection.
517
- * +optional
518
- */
519
- description;
520
- /**
521
- * Avatar is an optional image that can be used to represent the connection. This is primarily for the user to customize
522
- * the visual representation of the connection in the UI.
523
- * +optional
524
- */
525
- avatar;
526
- /**
527
- * ExpiryTime is the amount of time before the connection expires.
528
- * +optional
529
- */
530
- expiry_time;
531
- /**
532
- * Client is a client structure that should be populated when the connection is created and used for connections
533
- */
534
- Client;
535
- /** Creates a new Connection instance. */
536
- constructor(e = {}) {
537
- "last_refresh" in e || (this.last_refresh = "0001-01-01T00:00:00.000Z"), "data" in e || (this.data = {}), "labels" in e || (this.labels = {}), "lifecycle" in e || (this.lifecycle = new J()), "id" in e || (this.id = ""), "uid" in e || (this.uid = ""), "name" in e || (this.name = ""), "description" in e || (this.description = ""), "avatar" in e || (this.avatar = ""), "expiry_time" in e || (this.expiry_time = j.$zero), "Client" in e || (this.Client = null), Object.assign(this, e);
538
- }
539
- /**
540
- * Creates a new Connection instance from a string or object.
541
- */
542
- static createFrom(e = {}) {
543
- const s = pe, i = pe, a = tt;
544
- let n = typeof e == "string" ? JSON.parse(e) : e;
545
- return "data" in n && (n.data = s(n.data)), "labels" in n && (n.labels = i(n.labels)), "lifecycle" in n && (n.lifecycle = a(n.lifecycle)), new $(n);
546
- }
547
- }
548
- class ee {
549
- enabled;
550
- triggers;
551
- retry;
552
- /** Creates a new ConnectionAutoConnect instance. */
553
- constructor(e = {}) {
554
- "enabled" in e || (this.enabled = !1), "triggers" in e || (this.triggers = []), "retry" in e || (this.retry = ""), Object.assign(this, e);
555
- }
556
- /**
557
- * Creates a new ConnectionAutoConnect instance from a string or object.
558
- */
559
- static createFrom(e = {}) {
560
- const s = it;
561
- let i = typeof e == "string" ? JSON.parse(e) : e;
562
- return "triggers" in i && (i.triggers = s(i.triggers)), new ee(i);
563
- }
564
- }
565
- var Me = /* @__PURE__ */ ((t) => (t.$zero = "", t.ConnectionAutoConnectRetryNone = "NONE", t.ConnectionAutoConnectRetryOnChange = "ON_CHANGE", t))(Me || {}), $e = /* @__PURE__ */ ((t) => (t.$zero = "", t.ConnectionAutoConnectTriggerPluginStart = "PLUGIN_START", t.ConnectionAutoConnectTriggerConnectionDiscovered = "CONNECTION_DISCOVERED", t))($e || {});
566
- class J {
567
- auto_connect;
568
- /** Creates a new ConnectionLifecycle instance. */
569
- constructor(e = {}) {
570
- Object.assign(this, e);
571
- }
572
- /**
573
- * Creates a new ConnectionLifecycle instance from a string or object.
574
- */
575
- static createFrom(e = {}) {
576
- const s = at;
577
- let i = typeof e == "string" ? JSON.parse(e) : e;
578
- return "auto_connect" in i && (i.auto_connect = s(i.auto_connect)), new J(i);
579
- }
580
- }
581
- class Fe {
582
- /**
583
- * Connection is the connection that the status is for.
584
- */
585
- connection;
586
- /**
587
- * StatusCode is the status code of the connection status.
588
- */
589
- status;
590
- /**
591
- * Error is the error that occurred when checking the connection status.
592
- */
593
- error;
594
- /**
595
- * Message is a human readable message that describes the status.
596
- */
597
- details;
598
- /** Creates a new ConnectionStatus instance. */
599
- constructor(e = {}) {
600
- "connection" in e || (this.connection = null), "status" in e || (this.status = ""), "error" in e || (this.error = ""), "details" in e || (this.details = ""), Object.assign(this, e);
601
- }
602
- /**
603
- * Creates a new ConnectionStatus instance from a string or object.
604
- */
605
- static createFrom(e = {}) {
606
- const s = rt;
607
- let i = typeof e == "string" ? JSON.parse(e) : e;
608
- return "connection" in i && (i.connection = s(i.connection)), new Fe(i);
609
- }
610
- }
611
- var et = /* @__PURE__ */ ((t) => (t.$zero = "", t.ConnectionStatusUnknown = "UNKNOWN", t.ConnectionStatusConnected = "CONNECTED", t.ConnectionStatusDisconnected = "DISCONNECTED", t.ConnectionStatusPending = "PENDING", t.ConnectionStatusFailed = "FAILED", t.ConnectionStatusError = "ERROR", t.ConnectionStatusUnauthorized = "UNAUTHORIZED", t.ConnectionStatusForbidden = "FORBIDDEN", t.ConnectionStatusBadRequest = "BAD_REQUEST", t.ConnectionStatusNotFound = "NOT_FOUND", t.ConnectionStatusTimeout = "TIMEOUT", t.ConnectionStatusUnavailable = "UNAVAILABLE", t.ConnectionStatusRequestEntityTooLarge = "REQUEST_ENTITY_TOO_LARGE", t))(et || {});
612
- class Oe {
613
- id;
614
- metadata;
615
- phase;
616
- enabled;
617
- devMode;
618
- devPath;
619
- capabilities;
620
- lastError;
621
- /** Creates a new PluginInfo instance. */
622
- constructor(e = {}) {
623
- "id" in e || (this.id = ""), "metadata" in e || (this.metadata = new _()), "phase" in e || (this.phase = ""), "enabled" in e || (this.enabled = !1), "devMode" in e || (this.devMode = !1), "capabilities" in e || (this.capabilities = []), Object.assign(this, e);
624
- }
625
- /**
626
- * Creates a new PluginInfo instance from a string or object.
627
- */
628
- static createFrom(e = {}) {
629
- const s = lt, i = ct;
630
- let a = typeof e == "string" ? JSON.parse(e) : e;
631
- return "metadata" in a && (a.metadata = s(a.metadata)), "capabilities" in a && (a.capabilities = i(a.capabilities)), new Oe(a);
632
- }
633
- }
634
- const pe = p(l, l), tt = J.createFrom, it = o(l), st = ee.createFrom, at = d(st), nt = $.createFrom, rt = d(nt), lt = _.createFrom, ct = o(l);
635
- class te {
636
- settings;
637
- id;
638
- label;
639
- description;
640
- icon;
641
- /** Creates a new Category instance. */
642
- constructor(e = {}) {
643
- "settings" in e || (this.settings = {}), "id" in e || (this.id = ""), "label" in e || (this.label = ""), "description" in e || (this.description = ""), "icon" in e || (this.icon = ""), Object.assign(this, e);
644
- }
645
- /**
646
- * Creates a new Category instance from a string or object.
647
- */
648
- static createFrom(e = {}) {
649
- const s = dt;
650
- let i = typeof e == "string" ? JSON.parse(e) : e;
651
- return "settings" in i && (i.settings = s(i.settings)), new te(i);
652
- }
653
- }
654
- class E {
655
- /**
656
- * ID is the unique identifier of the setting
657
- */
658
- id;
659
- /**
660
- * Label is the human readable label of the setting
661
- */
662
- label;
663
- /**
664
- * Description is the human readable description of the setting
665
- */
666
- description;
667
- /**
668
- * Type is the type of the setting
669
- */
670
- type;
671
- /**
672
- * Value is the value of the setting
673
- */
674
- value;
675
- /**
676
- * Default is the default value of the setting
677
- */
678
- default;
679
- /**
680
- * Options is an optional list of options for a select setting
681
- */
682
- options;
683
- /**
684
- * FileSelection is an optional setting for file selection
685
- */
686
- fileSelection;
687
- /**
688
- * Sensitive is a flag to indicate if the setting is sensitive and should not be
689
- * shown in the UI, nor allowed to be used by any other plugin.
690
- */
691
- sensitive;
692
- /**
693
- * DevOnly indicates the setting should only be visible when dev mode is active.
694
- */
695
- devOnly;
696
- /**
697
- * RequiresRestart declares that changes apply after restart.
698
- */
699
- requiresRestart;
700
- /**
701
- * PendingRestart is host snapshot projection, not provider-owned state.
702
- */
703
- pendingRestart;
704
- /** Creates a new Setting instance. */
705
- constructor(e = {}) {
706
- "id" in e || (this.id = ""), "label" in e || (this.label = ""), "description" in e || (this.description = ""), "type" in e || (this.type = ""), "value" in e || (this.value = null), "default" in e || (this.default = null), "options" in e || (this.options = []), "fileSelection" in e || (this.fileSelection = null), "sensitive" in e || (this.sensitive = !1), "devOnly" in e || (this.devOnly = !1), "requiresRestart" in e || (this.requiresRestart = !1), "pendingRestart" in e || (this.pendingRestart = !1), Object.assign(this, e);
707
- }
708
- /**
709
- * Creates a new Setting instance from a string or object.
710
- */
711
- static createFrom(e = {}) {
712
- const s = ft, i = mt;
713
- let a = typeof e == "string" ? JSON.parse(e) : e;
714
- return "options" in a && (a.options = s(a.options)), "fileSelection" in a && (a.fileSelection = i(a.fileSelection)), new E(a);
715
- }
716
- }
717
- class P {
718
- /**
719
- * Whether file selection should be allowed.
720
- */
721
- enabled;
722
- /**
723
- * Allow the selection of folders.
724
- */
725
- allowFolders;
726
- /**
727
- * The allowed extensions that should be selectable.
728
- */
729
- extensions;
730
- /**
731
- * Multiple files can be selected.
732
- */
733
- multiple;
734
- /**
735
- * Whether the file selection should be saved as a relative path.
736
- */
737
- relative;
738
- /**
739
- * DefaultPath is the default path for the file selection.
740
- */
741
- defaultPath;
742
- /** Creates a new SettingFileSelection instance. */
743
- constructor(e = {}) {
744
- "enabled" in e || (this.enabled = !1), "allowFolders" in e || (this.allowFolders = !1), "extensions" in e || (this.extensions = []), "multiple" in e || (this.multiple = !1), "relative" in e || (this.relative = !1), "defaultPath" in e || (this.defaultPath = ""), Object.assign(this, e);
745
- }
746
- /**
747
- * Creates a new SettingFileSelection instance from a string or object.
748
- */
749
- static createFrom(e = {}) {
750
- const s = _t;
751
- let i = typeof e == "string" ? JSON.parse(e) : e;
752
- return "extensions" in i && (i.extensions = s(i.extensions)), new P(i);
753
- }
754
- }
755
- class z {
756
- /**
757
- * Label is the human readable label of the option
758
- */
759
- label;
760
- /**
761
- * Description is an optional human readable description of the option
762
- */
763
- description;
764
- /**
765
- * Value is the value of the option
766
- */
767
- value;
768
- /** Creates a new SettingOption instance. */
769
- constructor(e = {}) {
770
- "label" in e || (this.label = ""), "description" in e || (this.description = ""), "value" in e || (this.value = null), Object.assign(this, e);
771
- }
772
- /**
773
- * Creates a new SettingOption instance from a string or object.
774
- */
775
- static createFrom(e = {}) {
776
- let s = typeof e == "string" ? JSON.parse(e) : e;
777
- return new z(s);
778
- }
779
- }
780
- var Se = /* @__PURE__ */ ((t) => (t.$zero = "", t.Text = "text", t.Select = "select", t.MultiSelect = "multiselect", t.Integer = "integer", t.Float = "float", t.Toggle = "toggle", t.Color = "color", t.DateTime = "datetime", t.Password = "password", t))(Se || {});
781
- class ie {
782
- valid;
783
- code;
784
- message;
785
- /** Creates a new ValidationResult instance. */
786
- constructor(e = {}) {
787
- "valid" in e || (this.valid = !1), "code" in e || (this.code = ""), "message" in e || (this.message = ""), Object.assign(this, e);
788
- }
789
- /**
790
- * Creates a new ValidationResult instance from a string or object.
791
- */
792
- static createFrom(e = {}) {
793
- let s = typeof e == "string" ? JSON.parse(e) : e;
794
- return new ie(s);
795
- }
796
- }
797
- const ot = E.createFrom, dt = p(l, ot), pt = z.createFrom, ft = o(pt), ht = P.createFrom, mt = d(ht), _t = o(l), Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
798
- __proto__: null,
799
- Category: te,
800
- Setting: E,
801
- SettingFileSelection: P,
802
- SettingOption: z,
803
- SettingType: Se,
804
- ValidationResult: ie
805
- }, Symbol.toStringTag, { value: "Module" }));
806
- class se {
807
- plugin;
808
- /** Creates a new GetPluginComponentsInput instance. */
809
- constructor(e = {}) {
810
- "plugin" in e || (this.plugin = ""), Object.assign(this, e);
811
- }
812
- /**
813
- * Creates a new GetPluginComponentsInput instance from a string or object.
814
- */
815
- static createFrom(e = {}) {
816
- let s = typeof e == "string" ? JSON.parse(e) : e;
817
- return new se(s);
818
- }
819
- }
820
- class ae {
821
- plugin;
822
- resource;
823
- area;
824
- /** Creates a new GetResourceAreaComponentInput instance. */
825
- constructor(e = {}) {
826
- "plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), "area" in e || (this.area = ""), Object.assign(this, e);
827
- }
828
- /**
829
- * Creates a new GetResourceAreaComponentInput instance from a string or object.
830
- */
831
- static createFrom(e = {}) {
832
- let s = typeof e == "string" ? JSON.parse(e) : e;
833
- return new ae(s);
834
- }
835
- }
836
- class ne {
837
- plugin;
838
- resource;
839
- /** Creates a new GetResourceComponentsInput instance. */
840
- constructor(e = {}) {
841
- "plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), Object.assign(this, e);
842
- }
843
- /**
844
- * Creates a new GetResourceComponentsInput instance from a string or object.
845
- */
846
- static createFrom(e = {}) {
847
- let s = typeof e == "string" ? JSON.parse(e) : e;
848
- return new ne(s);
849
- }
850
- }
851
- class re {
852
- owner;
853
- name;
854
- plugin;
855
- resource;
856
- area;
857
- extension;
858
- /** Creates a new ResourceComponent instance. */
859
- constructor(e = {}) {
860
- "owner" in e || (this.owner = ""), "name" in e || (this.name = ""), "plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), "area" in e || (this.area = ""), "extension" in e || (this.extension = ""), Object.assign(this, e);
861
- }
862
- /**
863
- * Creates a new ResourceComponent instance from a string or object.
864
- */
865
- static createFrom(e = {}) {
866
- let s = typeof e == "string" ? JSON.parse(e) : e;
867
- return new re(s);
868
- }
869
- }
870
- var ve = /* @__PURE__ */ ((t) => (t.$zero = "", t.ResourceComponentAreaSidebar = "SIDEBAR", t.ResourceComponentAreaTable = "TABLE", t))(ve || {});
871
- const qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
872
- __proto__: null,
873
- GetPluginComponentsInput: se,
874
- GetResourceAreaComponentInput: ae,
875
- GetResourceComponentsInput: ne,
876
- ResourceComponent: re,
877
- ResourceComponentArea: ve
878
- }, Symbol.toStringTag, { value: "Module" }));
879
- class y {
880
- label;
881
- label_selector;
882
- paths;
883
- selectors;
884
- /** Creates a new ActionTargetBuilder instance. */
885
- constructor(e = {}) {
886
- "label" in e || (this.label = ""), "label_selector" in e || (this.label_selector = ""), "paths" in e || (this.paths = []), "selectors" in e || (this.selectors = {}), Object.assign(this, e);
887
- }
888
- /**
889
- * Creates a new ActionTargetBuilder instance from a string or object.
890
- */
891
- static createFrom(e = {}) {
892
- const s = bt, i = ce;
893
- let a = typeof e == "string" ? JSON.parse(e) : e;
894
- return "paths" in a && (a.paths = s(a.paths)), "selectors" in a && (a.selectors = i(a.selectors)), new y(a);
895
- }
896
- }
897
- let gt = class ue {
898
- plugin;
899
- resource;
900
- target_builder;
901
- /** Creates a new Handler instance. */
902
- constructor(e = {}) {
903
- "plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), "target_builder" in e || (this.target_builder = new y()), Object.assign(this, e);
904
- }
905
- /**
906
- * Creates a new Handler instance from a string or object.
907
- */
908
- static createFrom(e = {}) {
909
- const s = yt;
910
- let i = typeof e == "string" ? JSON.parse(e) : e;
911
- return "target_builder" in i && (i.target_builder = s(i.target_builder)), new ue(i);
912
- }
913
- };
914
- class le {
915
- id;
916
- plugin_id;
917
- connection_id;
918
- resource_key;
919
- resource_id;
920
- options;
921
- status;
922
- active_sources;
923
- created_at;
924
- /** Creates a new LogSession instance. */
925
- constructor(e = {}) {
926
- "id" in e || (this.id = ""), "plugin_id" in e || (this.plugin_id = ""), "connection_id" in e || (this.connection_id = ""), "resource_key" in e || (this.resource_key = ""), "resource_id" in e || (this.resource_id = ""), "options" in e || (this.options = new F()), "status" in e || (this.status = 0), "active_sources" in e || (this.active_sources = []), "created_at" in e || (this.created_at = "0001-01-01T00:00:00.000Z"), Object.assign(this, e);
927
- }
928
- /**
929
- * Creates a new LogSession instance from a string or object.
930
- */
931
- static createFrom(e = {}) {
932
- const s = Ft, i = St;
933
- let a = typeof e == "string" ? JSON.parse(e) : e;
934
- return "options" in a && (a.options = s(a.options)), "active_sources" in a && (a.active_sources = i(a.active_sources)), new le(a);
935
- }
936
- }
937
- class F {
938
- target;
939
- follow;
940
- include_previous;
941
- include_timestamps;
942
- tail_lines;
943
- since_seconds;
944
- since_time;
945
- limit_bytes;
946
- include_source_events;
947
- params;
948
- /** Creates a new LogSessionOptions instance. */
949
- constructor(e = {}) {
950
- "target" in e || (this.target = ""), "follow" in e || (this.follow = !1), "include_previous" in e || (this.include_previous = !1), "include_timestamps" in e || (this.include_timestamps = !1), "tail_lines" in e || (this.tail_lines = 0), "since_seconds" in e || (this.since_seconds = 0), "limit_bytes" in e || (this.limit_bytes = 0), "include_source_events" in e || (this.include_source_events = !1), "params" in e || (this.params = {}), Object.assign(this, e);
951
- }
952
- /**
953
- * Creates a new LogSessionOptions instance from a string or object.
954
- */
955
- static createFrom(e = {}) {
956
- const s = ce;
957
- let i = typeof e == "string" ? JSON.parse(e) : e;
958
- return "params" in i && (i.params = s(i.params)), new F(i);
959
- }
960
- }
961
- var Te = /* @__PURE__ */ ((t) => (t[t.$zero = 0] = "$zero", t[t.LogSessionStatusActive = 0] = "LogSessionStatusActive", t[t.LogSessionStatusPaused = 1] = "LogSessionStatusPaused", t[t.LogSessionStatusClosed = 2] = "LogSessionStatusClosed", t[t.LogSessionStatusError = 3] = "LogSessionStatusError", t[t.LogSessionStatusConnecting = 4] = "LogSessionStatusConnecting", t[t.LogSessionStatusInitializing = 5] = "LogSessionStatusInitializing", t))(Te || {});
962
- class x {
963
- id;
964
- labels;
965
- /** Creates a new LogSource instance. */
966
- constructor(e = {}) {
967
- "id" in e || (this.id = ""), "labels" in e || (this.labels = {}), Object.assign(this, e);
968
- }
969
- /**
970
- * Creates a new LogSource instance from a string or object.
971
- */
972
- static createFrom(e = {}) {
973
- const s = ce;
974
- let i = typeof e == "string" ? JSON.parse(e) : e;
975
- return "labels" in i && (i.labels = s(i.labels)), new x(i);
976
- }
977
- }
978
- var we = /* @__PURE__ */ ((t) => (t[t.$zero = 0] = "$zero", t[t.StreamCommandPause = 0] = "StreamCommandPause", t[t.StreamCommandResume = 1] = "StreamCommandResume", t[t.StreamCommandClose = 2] = "StreamCommandClose", t))(we || {});
979
- const bt = o(l), ce = p(l, l), yt = y.createFrom, Ft = F.createFrom, Ot = x.createFrom, St = o(Ot), Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
980
- __proto__: null,
981
- ActionTargetBuilder: y,
982
- Handler: gt,
983
- LogSession: le,
984
- LogSessionOptions: F,
985
- LogSessionStatus: Te,
986
- LogSource: x,
987
- LogStreamCommand: we
988
- }, Symbol.toStringTag, { value: "Module" }));
989
- class A {
990
- metric_id;
991
- min;
992
- max;
993
- avg;
994
- sum;
995
- p50;
996
- p90;
997
- p99;
998
- count;
999
- window;
1000
- labels;
1001
- /** Creates a new AggregateValue instance. */
1002
- constructor(e = {}) {
1003
- "metric_id" in e || (this.metric_id = ""), "min" in e || (this.min = 0), "max" in e || (this.max = 0), "avg" in e || (this.avg = 0), "sum" in e || (this.sum = 0), "p50" in e || (this.p50 = 0), "p90" in e || (this.p90 = 0), "p99" in e || (this.p99 = 0), "count" in e || (this.count = 0), "window" in e || (this.window = j.$zero), "labels" in e || (this.labels = {}), Object.assign(this, e);
1004
- }
1005
- /**
1006
- * Creates a new AggregateValue instance from a string or object.
1007
- */
1008
- static createFrom(e = {}) {
1009
- const s = D;
1010
- let i = typeof e == "string" ? JSON.parse(e) : e;
1011
- return "labels" in i && (i.labels = s(i.labels)), new A(i);
1012
- }
1013
- }
1014
- class R {
1015
- min;
1016
- max;
1017
- color;
1018
- /** Creates a new ColorRange instance. */
1019
- constructor(e = {}) {
1020
- "min" in e || (this.min = 0), "max" in e || (this.max = 0), "color" in e || (this.color = ""), Object.assign(this, e);
1021
- }
1022
- /**
1023
- * Creates a new ColorRange instance from a string or object.
1024
- */
1025
- static createFrom(e = {}) {
1026
- let s = typeof e == "string" ? JSON.parse(e) : e;
1027
- return new R(s);
1028
- }
1029
- }
1030
- class k {
1031
- metric_id;
1032
- value;
1033
- timestamp;
1034
- labels;
1035
- /** Creates a new CurrentValue instance. */
1036
- constructor(e = {}) {
1037
- "metric_id" in e || (this.metric_id = ""), "value" in e || (this.value = 0), "timestamp" in e || (this.timestamp = "0001-01-01T00:00:00.000Z"), "labels" in e || (this.labels = {}), Object.assign(this, e);
1038
- }
1039
- /**
1040
- * Creates a new CurrentValue instance from a string or object.
1041
- */
1042
- static createFrom(e = {}) {
1043
- const s = D;
1044
- let i = typeof e == "string" ? JSON.parse(e) : e;
1045
- return "labels" in i && (i.labels = s(i.labels)), new k(i);
1046
- }
1047
- }
1048
- class I {
1049
- timestamp;
1050
- value;
1051
- labels;
1052
- /** Creates a new DataPoint instance. */
1053
- constructor(e = {}) {
1054
- "timestamp" in e || (this.timestamp = "0001-01-01T00:00:00.000Z"), "value" in e || (this.value = 0), "labels" in e || (this.labels = {}), Object.assign(this, e);
1055
- }
1056
- /**
1057
- * Creates a new DataPoint instance from a string or object.
1058
- */
1059
- static createFrom(e = {}) {
1060
- const s = D;
1061
- let i = typeof e == "string" ? JSON.parse(e) : e;
1062
- return "labels" in i && (i.labels = s(i.labels)), new I(i);
1063
- }
1064
- }
1065
- class oe {
1066
- resource;
1067
- metrics;
1068
- /** Creates a new Handler instance. */
1069
- constructor(e = {}) {
1070
- "resource" in e || (this.resource = ""), "metrics" in e || (this.metrics = []), Object.assign(this, e);
1071
- }
1072
- /**
1073
- * Creates a new Handler instance from a string or object.
1074
- */
1075
- static createFrom(e = {}) {
1076
- const s = ut;
1077
- let i = typeof e == "string" ? JSON.parse(e) : e;
1078
- return "metrics" in i && (i.metrics = s(i.metrics)), new oe(i);
1079
- }
1080
- }
1081
- class B {
1082
- id;
1083
- name;
1084
- unit;
1085
- icon;
1086
- color_ranges;
1087
- format_string;
1088
- supported_shapes;
1089
- chart_group;
1090
- /** Creates a new MetricDescriptor instance. */
1091
- constructor(e = {}) {
1092
- "id" in e || (this.id = ""), "name" in e || (this.name = ""), "unit" in e || (this.unit = 0), "icon" in e || (this.icon = ""), "color_ranges" in e || (this.color_ranges = []), "format_string" in e || (this.format_string = ""), "supported_shapes" in e || (this.supported_shapes = []), "chart_group" in e || (this.chart_group = ""), Object.assign(this, e);
1093
- }
1094
- /**
1095
- * Creates a new MetricDescriptor instance from a string or object.
1096
- */
1097
- static createFrom(e = {}) {
1098
- const s = wt, i = Nt;
1099
- let a = typeof e == "string" ? JSON.parse(e) : e;
1100
- return "color_ranges" in a && (a.color_ranges = s(a.color_ranges)), "supported_shapes" in a && (a.supported_shapes = i(a.supported_shapes)), new B(a);
1101
- }
1102
- }
1103
- class C {
1104
- time_series;
1105
- current_value;
1106
- aggregate_value;
1107
- /** Creates a new MetricResult instance. */
1108
- constructor(e = {}) {
1109
- Object.assign(this, e);
1110
- }
1111
- /**
1112
- * Creates a new MetricResult instance from a string or object.
1113
- */
1114
- static createFrom(e = {}) {
1115
- const s = Jt, i = Pt, a = xt;
1116
- let n = typeof e == "string" ? JSON.parse(e) : e;
1117
- return "time_series" in n && (n.time_series = s(n.time_series)), "current_value" in n && (n.current_value = i(n.current_value)), "aggregate_value" in n && (n.aggregate_value = a(n.aggregate_value)), new C(n);
1118
- }
1119
- }
1120
- var Ne = /* @__PURE__ */ ((t) => (t[t.$zero = 0] = "$zero", t[t.ShapeCurrent = 0] = "ShapeCurrent", t[t.ShapeTimeseries = 1] = "ShapeTimeseries", t[t.ShapeAggregate = 2] = "ShapeAggregate", t))(Ne || {}), je = /* @__PURE__ */ ((t) => (t[t.$zero = 0] = "$zero", t[t.UnitNone = 0] = "UnitNone", t[t.UnitBytes = 1] = "UnitBytes", t[t.UnitKB = 2] = "UnitKB", t[t.UnitMB = 3] = "UnitMB", t[t.UnitGB = 4] = "UnitGB", t[t.UnitPercentage = 5] = "UnitPercentage", t[t.UnitMillis = 6] = "UnitMillis", t[t.UnitSeconds = 7] = "UnitSeconds", t[t.UnitCount = 8] = "UnitCount", t[t.UnitOpsPerSec = 9] = "UnitOpsPerSec", t[t.UnitBytesPerSec = 10] = "UnitBytesPerSec", t[t.UnitMillicores = 11] = "UnitMillicores", t[t.UnitCores = 12] = "UnitCores", t))(je || {});
1121
- class de {
1122
- success;
1123
- results;
1124
- error;
1125
- /** Creates a new QueryResponse instance. */
1126
- constructor(e = {}) {
1127
- "success" in e || (this.success = !1), "results" in e || (this.results = []), "error" in e || (this.error = ""), Object.assign(this, e);
1128
- }
1129
- /**
1130
- * Creates a new QueryResponse instance from a string or object.
1131
- */
1132
- static createFrom(e = {}) {
1133
- const s = Rt;
1134
- let i = typeof e == "string" ? JSON.parse(e) : e;
1135
- return "results" in i && (i.results = s(i.results)), new de(i);
1136
- }
1137
- }
1138
- class U {
1139
- metric_id;
1140
- data_points;
1141
- labels;
1142
- /** Creates a new TimeSeries instance. */
1143
- constructor(e = {}) {
1144
- "metric_id" in e || (this.metric_id = ""), "data_points" in e || (this.data_points = []), "labels" in e || (this.labels = {}), Object.assign(this, e);
1145
- }
1146
- /**
1147
- * Creates a new TimeSeries instance from a string or object.
1148
- */
1149
- static createFrom(e = {}) {
1150
- const s = It, i = D;
1151
- let a = typeof e == "string" ? JSON.parse(e) : e;
1152
- return "data_points" in a && (a.data_points = s(a.data_points)), "labels" in a && (a.labels = i(a.labels)), new U(a);
1153
- }
1154
- }
1155
- const D = p(l, l), vt = B.createFrom, ut = o(vt), Tt = R.createFrom, wt = o(Tt), Nt = o(l), jt = U.createFrom, Jt = d(jt), Et = k.createFrom, Pt = d(Et), zt = A.createFrom, xt = d(zt), At = C.createFrom, Rt = o(At), kt = I.createFrom, It = o(kt), Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1156
- __proto__: null,
1157
- AggregateValue: A,
1158
- ColorRange: R,
1159
- CurrentValue: k,
1160
- DataPoint: I,
1161
- Handler: oe,
1162
- MetricDescriptor: B,
1163
- MetricResult: C,
1164
- MetricShape: Ne,
1165
- MetricUnit: je,
1166
- QueryResponse: de,
1167
- TimeSeries: U
1168
- }, Symbol.toStringTag, { value: "Module" }));
1169
- export {
1170
- ge as $,
1171
- W as A,
1172
- C as B,
1173
- Fe as C,
1174
- Y as D,
1175
- Ne as E,
1176
- Q as F,
1177
- se as G,
1178
- Pe as H,
1179
- je as I,
1180
- u as J,
1181
- ye as K,
1182
- le as L,
1183
- B as M,
1184
- m as N,
1185
- T as O,
1186
- _ as P,
1187
- de as Q,
1188
- X as R,
1189
- V as S,
1190
- w as T,
1191
- g as U,
1192
- M as V,
1193
- b as W,
1194
- me as X,
1195
- _e as Y,
1196
- h as Z,
1197
- ve as _,
1198
- K as a,
1199
- E as a0,
1200
- P as a1,
1201
- z as a2,
1202
- Se as a3,
1203
- N as a4,
1204
- U as a5,
1205
- Ht as a6,
1206
- Ct as a7,
1207
- Kt as a8,
1208
- Vt as a9,
1209
- Ut as aa,
1210
- Dt as ab,
1211
- Gt as ac,
1212
- Zt as ad,
1213
- qt as ae,
1214
- j as af,
1215
- L as b,
1216
- Oe as c,
1217
- $ as d,
1218
- te as e,
1219
- ie as f,
1220
- re as g,
1221
- gt as h,
1222
- oe as i,
1223
- et as j,
1224
- ee as k,
1225
- Me as l,
1226
- $e as m,
1227
- J as n,
1228
- Xe as o,
1229
- q as p,
1230
- A as q,
1231
- R as r,
1232
- k as s,
1233
- I as t,
1234
- ae as u,
1235
- ne as v,
1236
- F as w,
1237
- Te as x,
1238
- x as y,
1239
- we as z
1240
- };