@omniviewdev/runtime 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs +1 -1
- package/dist/api.js +160 -219
- package/dist/bindings/events/index.d.ts +4 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/models.d.ts +18 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/models.d.ts +19 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/window/service.d.ts +16 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/index.d.ts +0 -1
- package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/servicewrapper.d.ts +2 -2
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/profiling/index.d.ts +1 -0
- package/dist/context/settings/index.d.ts +1 -0
- package/dist/context/settings/settingsWindow.d.ts +4 -0
- package/dist/context/windows/activePageNavigator.d.ts +2 -3
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +400 -381
- package/dist/models-B8VGD21U.cjs +1 -0
- package/dist/models-BJZVpONm.cjs +1 -0
- package/dist/models-BlxGoC2X.js +1463 -0
- package/dist/{models-BJgLAHwq.js → models-ddVn9pLv.js} +79 -284
- package/dist/models.cjs +1 -1
- package/dist/models.js +33 -33
- package/dist/service-DKddH-QF.cjs +1 -0
- package/dist/service-lcq0B7wi.js +739 -0
- package/dist/settingsEditors.d.ts +35 -0
- package/package.json +1 -1
- package/dist/models-BTzXdmUY.js +0 -1240
- package/dist/models-BhsFYb70.cjs +0 -1
- package/dist/models-NYvUa5Yc.cjs +0 -1
- package/dist/servicewrapper-B-DdHGSp.cjs +0 -1
- package/dist/servicewrapper-Bl98xvmZ.js +0 -639
- /package/dist/bindings/github.com/omniviewdev/{omniview/internal → plugin-sdk/pkg}/profiling/models.d.ts +0 -0
|
@@ -0,0 +1,1463 @@
|
|
|
1
|
+
import { A as o, a as l, M as p, N as d } from "./index-zyAgCXOO.js";
|
|
2
|
+
class q {
|
|
3
|
+
connection;
|
|
4
|
+
/** Creates a new AccessRoute instance. */
|
|
5
|
+
constructor(t = {}) {
|
|
6
|
+
"connection" in t || (this.connection = ""), Object.assign(this, t);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new AccessRoute instance from a string or object.
|
|
10
|
+
*/
|
|
11
|
+
static createFrom(t = {}) {
|
|
12
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
13
|
+
return new q(s);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class Z {
|
|
17
|
+
address;
|
|
18
|
+
incarnation;
|
|
19
|
+
/** Creates a new ResourceReference instance. */
|
|
20
|
+
constructor(t = {}) {
|
|
21
|
+
"address" in t || (this.address = null), Object.assign(this, t);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new ResourceReference instance from a string or object.
|
|
25
|
+
*/
|
|
26
|
+
static createFrom(t = {}) {
|
|
27
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
28
|
+
return new Z(s);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
let Y = class vt {
|
|
32
|
+
label;
|
|
33
|
+
label_selector;
|
|
34
|
+
paths;
|
|
35
|
+
selectors;
|
|
36
|
+
/** Creates a new ActionTargetBuilder instance. */
|
|
37
|
+
constructor(t = {}) {
|
|
38
|
+
"label" in t || (this.label = ""), "label_selector" in t || (this.label_selector = ""), "paths" in t || (this.paths = []), "selectors" in t || (this.selectors = {}), Object.assign(this, t);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new ActionTargetBuilder instance from a string or object.
|
|
42
|
+
*/
|
|
43
|
+
static createFrom(t = {}) {
|
|
44
|
+
const s = F, i = f;
|
|
45
|
+
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
46
|
+
return "paths" in n && (n.paths = s(n.paths)), "selectors" in n && (n.selectors = i(n.selectors)), new vt(n);
|
|
47
|
+
}
|
|
48
|
+
}, qt = class Tt {
|
|
49
|
+
plugin;
|
|
50
|
+
resource;
|
|
51
|
+
target_builder;
|
|
52
|
+
default_command;
|
|
53
|
+
/** Creates a new Handler instance. */
|
|
54
|
+
constructor(t = {}) {
|
|
55
|
+
"plugin" in t || (this.plugin = ""), "resource" in t || (this.resource = ""), "target_builder" in t || (this.target_builder = new Y()), "default_command" in t || (this.default_command = []), Object.assign(this, t);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Creates a new Handler instance from a string or object.
|
|
59
|
+
*/
|
|
60
|
+
static createFrom(t = {}) {
|
|
61
|
+
const s = Zt, i = F;
|
|
62
|
+
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
63
|
+
return "target_builder" in n && (n.target_builder = s(n.target_builder)), "default_command" in n && (n.default_command = i(n.default_command)), new Tt(n);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
class G {
|
|
67
|
+
created_at;
|
|
68
|
+
labels;
|
|
69
|
+
params;
|
|
70
|
+
id;
|
|
71
|
+
command;
|
|
72
|
+
attached;
|
|
73
|
+
/** Creates a new Session instance. */
|
|
74
|
+
constructor(t = {}) {
|
|
75
|
+
"created_at" in t || (this.created_at = "0001-01-01T00:00:00.000Z"), "labels" in t || (this.labels = {}), "params" in t || (this.params = {}), "id" in t || (this.id = ""), "command" in t || (this.command = []), "attached" in t || (this.attached = !1), Object.assign(this, t);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Creates a new Session instance from a string or object.
|
|
79
|
+
*/
|
|
80
|
+
static createFrom(t = {}) {
|
|
81
|
+
const s = f, i = f, n = F;
|
|
82
|
+
let a = typeof t == "string" ? JSON.parse(t) : t;
|
|
83
|
+
return "labels" in a && (a.labels = s(a.labels)), "params" in a && (a.params = i(a.params)), "command" in a && (a.command = n(a.command)), new G(a);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
class X {
|
|
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(t = {}) {
|
|
99
|
+
"params" in t || (this.params = {}), "labels" in t || (this.labels = {}), "id" in t || (this.id = ""), "resource_plugin" in t || (this.resource_plugin = ""), "resource_key" in t || (this.resource_key = ""), "command" in t || (this.command = []), "tty" in t || (this.tty = !1), Object.assign(this, t);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Creates a new SessionOptions instance from a string or object.
|
|
103
|
+
*/
|
|
104
|
+
static createFrom(t = {}) {
|
|
105
|
+
const s = f, i = f, n = Gt, a = Kt, H = F;
|
|
106
|
+
let c = typeof t == "string" ? JSON.parse(t) : t;
|
|
107
|
+
return "params" in c && (c.params = s(c.params)), "labels" in c && (c.labels = i(c.labels)), "reference" in c && (c.reference = n(c.reference)), "route" in c && (c.route = a(c.route)), "command" in c && (c.command = H(c.command)), new X(c);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
const F = o(l), f = p(l, l), Zt = Y.createFrom, Yt = Z.createFrom, Gt = d(Yt), Xt = q.createFrom, Kt = d(Xt), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
111
|
+
__proto__: null,
|
|
112
|
+
ActionTargetBuilder: Y,
|
|
113
|
+
Handler: qt,
|
|
114
|
+
Session: G,
|
|
115
|
+
SessionOptions: X
|
|
116
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
117
|
+
class K {
|
|
118
|
+
resource_id;
|
|
119
|
+
connection_id;
|
|
120
|
+
/** Creates a new FindPortForwardSessionRequest instance. */
|
|
121
|
+
constructor(t = {}) {
|
|
122
|
+
"resource_id" in t || (this.resource_id = ""), "connection_id" in t || (this.connection_id = ""), Object.assign(this, t);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Creates a new FindPortForwardSessionRequest instance from a string or object.
|
|
126
|
+
*/
|
|
127
|
+
static createFrom(t = {}) {
|
|
128
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
129
|
+
return new K(s);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
var ut = /* @__PURE__ */ ((e) => (e.$zero = "", e.PortForwardConnectionTypeResource = "RESOURCE", e.PortForwardConnectionTypeStatic = "STATIC", e))(ut || {}), Nt = /* @__PURE__ */ ((e) => (e.$zero = "", e.PortForwardProtocolTCP = "TCP", e.PortForwardProtocolUDP = "UDP", e))(Nt || {});
|
|
133
|
+
class V {
|
|
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(t = {}) {
|
|
147
|
+
"created_at" in t || (this.created_at = "0001-01-01T00:00:00.000Z"), "updated_at" in t || (this.updated_at = "0001-01-01T00:00:00.000Z"), "connection" in t || (this.connection = null), "labels" in t || (this.labels = {}), "id" in t || (this.id = ""), "protocol" in t || (this.protocol = ""), "state" in t || (this.state = ""), "connection_type" in t || (this.connection_type = ""), "encryption" in t || (this.encryption = new h()), "local_port" in t || (this.local_port = 0), "remote_port" in t || (this.remote_port = 0), Object.assign(this, t);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Creates a new PortForwardSession instance from a string or object.
|
|
151
|
+
*/
|
|
152
|
+
static createFrom(t = {}) {
|
|
153
|
+
const s = Vt, i = Qt;
|
|
154
|
+
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
155
|
+
return "labels" in n && (n.labels = s(n.labels)), "encryption" in n && (n.encryption = i(n.encryption)), new V(n);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
class h {
|
|
159
|
+
algorithm;
|
|
160
|
+
key;
|
|
161
|
+
enabled;
|
|
162
|
+
/** Creates a new PortForwardSessionEncryption instance. */
|
|
163
|
+
constructor(t = {}) {
|
|
164
|
+
"algorithm" in t || (this.algorithm = ""), "key" in t || (this.key = ""), "enabled" in t || (this.enabled = !1), Object.assign(this, t);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Creates a new PortForwardSessionEncryption instance from a string or object.
|
|
168
|
+
*/
|
|
169
|
+
static createFrom(t = {}) {
|
|
170
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
171
|
+
return new h(s);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
var jt = /* @__PURE__ */ ((e) => (e.$zero = "", e.SessionStateActive = "ACTIVE", e.SessionStatePaused = "PAUSED", e.SessionStateStopped = "STOPPED", e.SessionStateFailed = "FAILED", e))(jt || {});
|
|
175
|
+
const Vt = p(l, l), Qt = h.createFrom, ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
176
|
+
__proto__: null,
|
|
177
|
+
FindPortForwardSessionRequest: K,
|
|
178
|
+
PortForwardConnectionType: ut,
|
|
179
|
+
PortForwardProtocol: Nt,
|
|
180
|
+
PortForwardSession: V,
|
|
181
|
+
PortForwardSessionEncryption: h,
|
|
182
|
+
SessionState: jt
|
|
183
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
184
|
+
class Q {
|
|
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(t = {}) {
|
|
206
|
+
"id" in t || (this.id = ""), "name" in t || (this.name = ""), "description" in t || (this.description = ""), "icon_url" in t || (this.icon_url = ""), "category" in t || (this.category = ""), "tags" in t || (this.tags = []), "license" in t || (this.license = ""), "official" in t || (this.official = !1), "featured" in t || (this.featured = !1), "download_count" in t || (this.download_count = 0), "average_rating" in t || (this.average_rating = 0), "review_count" in t || (this.review_count = 0), "repository" in t || (this.repository = ""), "url" in t || (this.url = ""), "publisher_name" in t || (this.publisher_name = ""), "installed" in t || (this.installed = !1), "installed_version" in t || (this.installed_version = ""), "latest_version" in t || (this.latest_version = ""), "update_available" in t || (this.update_available = !1), Object.assign(this, t);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Creates a new AvailablePlugin instance from a string or object.
|
|
210
|
+
*/
|
|
211
|
+
static createFrom(t = {}) {
|
|
212
|
+
const s = Jt;
|
|
213
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
214
|
+
return "tags" in i && (i.tags = s(i.tags)), new Q(i);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
class w {
|
|
218
|
+
date;
|
|
219
|
+
count;
|
|
220
|
+
/** Creates a new DailyStat instance. */
|
|
221
|
+
constructor(t = {}) {
|
|
222
|
+
"date" in t || (this.date = ""), "count" in t || (this.count = 0), Object.assign(this, t);
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Creates a new DailyStat instance from a string or object.
|
|
226
|
+
*/
|
|
227
|
+
static createFrom(t = {}) {
|
|
228
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
229
|
+
return new w(s);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
class L {
|
|
233
|
+
total;
|
|
234
|
+
last_month;
|
|
235
|
+
last_week;
|
|
236
|
+
daily_stats;
|
|
237
|
+
/** Creates a new DownloadStats instance. */
|
|
238
|
+
constructor(t = {}) {
|
|
239
|
+
"total" in t || (this.total = 0), "last_month" in t || (this.last_month = 0), "last_week" in t || (this.last_week = 0), "daily_stats" in t || (this.daily_stats = []), Object.assign(this, t);
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Creates a new DownloadStats instance from a string or object.
|
|
243
|
+
*/
|
|
244
|
+
static createFrom(t = {}) {
|
|
245
|
+
const s = Mt;
|
|
246
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
247
|
+
return "daily_stats" in i && (i.daily_stats = s(i.daily_stats)), new L(i);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
class M {
|
|
251
|
+
id;
|
|
252
|
+
user_id;
|
|
253
|
+
rating;
|
|
254
|
+
title;
|
|
255
|
+
body;
|
|
256
|
+
created_at;
|
|
257
|
+
/** Creates a new Review instance. */
|
|
258
|
+
constructor(t = {}) {
|
|
259
|
+
"id" in t || (this.id = ""), "user_id" in t || (this.user_id = 0), "rating" in t || (this.rating = 0), "title" in t || (this.title = ""), "body" in t || (this.body = ""), "created_at" in t || (this.created_at = ""), Object.assign(this, t);
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Creates a new Review instance from a string or object.
|
|
263
|
+
*/
|
|
264
|
+
static createFrom(t = {}) {
|
|
265
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
266
|
+
return new M(s);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
class $ {
|
|
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(t = {}) {
|
|
279
|
+
"version" in t || (this.version = ""), "description" in t || (this.description = ""), "changelog" in t || (this.changelog = ""), "min_ide_version" in t || (this.min_ide_version = ""), "max_ide_version" in t || (this.max_ide_version = ""), "capabilities" in t || (this.capabilities = []), "created_at" in t || (this.created_at = ""), Object.assign(this, t);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Creates a new VersionInfo instance from a string or object.
|
|
283
|
+
*/
|
|
284
|
+
static createFrom(t = {}) {
|
|
285
|
+
const s = Jt;
|
|
286
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
287
|
+
return "capabilities" in i && (i.capabilities = s(i.capabilities)), new $(i);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
const Jt = o(l), Lt = w.createFrom, Mt = o(Lt), ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
291
|
+
__proto__: null,
|
|
292
|
+
AvailablePlugin: Q,
|
|
293
|
+
DailyStat: w,
|
|
294
|
+
DownloadStats: L,
|
|
295
|
+
Review: M,
|
|
296
|
+
VersionInfo: $
|
|
297
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
298
|
+
class v {
|
|
299
|
+
name;
|
|
300
|
+
email;
|
|
301
|
+
url;
|
|
302
|
+
/** Creates a new PluginAuthor instance. */
|
|
303
|
+
constructor(t = {}) {
|
|
304
|
+
"name" in t || (this.name = ""), "email" in t || (this.email = ""), "url" in t || (this.url = ""), Object.assign(this, t);
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Creates a new PluginAuthor instance from a string or object.
|
|
308
|
+
*/
|
|
309
|
+
static createFrom(t = {}) {
|
|
310
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
311
|
+
return new v(s);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
var It = /* @__PURE__ */ ((e) => (e.$zero = "", e.PluginComponentAreaEditor = "EDITOR", e.PluginComponentAreaSidebar = "SIDEBAR", e))(It || {});
|
|
315
|
+
class m {
|
|
316
|
+
resource;
|
|
317
|
+
/** Creates a new PluginComponents instance. */
|
|
318
|
+
constructor(t = {}) {
|
|
319
|
+
"resource" in t || (this.resource = []), Object.assign(this, t);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Creates a new PluginComponents instance from a string or object.
|
|
323
|
+
*/
|
|
324
|
+
static createFrom(t = {}) {
|
|
325
|
+
const s = te;
|
|
326
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
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(t = {}) {
|
|
335
|
+
"name" in t || (this.name = ""), "email" in t || (this.email = ""), Object.assign(this, t);
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Creates a new PluginMaintainer instance from a string or object.
|
|
339
|
+
*/
|
|
340
|
+
static createFrom(t = {}) {
|
|
341
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
342
|
+
return new T(s);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
class g {
|
|
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(t = {}) {
|
|
372
|
+
"id" in t || (this.id = ""), "version" in t || (this.version = ""), "name" in t || (this.name = ""), "icon" in t || (this.icon = ""), "icon_url" in t || (this.icon_url = ""), "description" in t || (this.description = ""), "repository" in t || (this.repository = ""), "website" in t || (this.website = ""), "category" in t || (this.category = ""), "license" in t || (this.license = ""), "maintainers" in t || (this.maintainers = []), "tags" in t || (this.tags = []), "dependencies" in t || (this.dependencies = []), "capabilities" in t || (this.capabilities = []), "theme" in t || (this.theme = new _()), "components" in t || (this.components = new m()), "schema_version" in t || (this.schema_version = 0), "sdk_protocol_version" in t || (this.sdk_protocol_version = 0), Object.assign(this, t);
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Creates a new PluginMeta instance from a string or object.
|
|
376
|
+
*/
|
|
377
|
+
static createFrom(t = {}) {
|
|
378
|
+
const s = ie, i = ne, n = O, a = O, H = O, c = ae, Dt = re, Ht = ce;
|
|
379
|
+
let r = typeof t == "string" ? JSON.parse(t) : t;
|
|
380
|
+
return "author" in r && (r.author = s(r.author)), "maintainers" in r && (r.maintainers = i(r.maintainers)), "tags" in r && (r.tags = n(r.tags)), "dependencies" in r && (r.dependencies = a(r.dependencies)), "capabilities" in r && (r.capabilities = H(r.capabilities)), "theme" in r && (r.theme = c(r.theme)), "components" in r && (r.components = Dt(r.components)), "state_isolation" in r && (r.state_isolation = Ht(r.state_isolation)), new g(r);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
class u {
|
|
384
|
+
name;
|
|
385
|
+
plugin;
|
|
386
|
+
area;
|
|
387
|
+
resources;
|
|
388
|
+
extension;
|
|
389
|
+
/** Creates a new PluginResourceComponent instance. */
|
|
390
|
+
constructor(t = {}) {
|
|
391
|
+
"name" in t || (this.name = ""), "plugin" in t || (this.plugin = ""), "area" in t || (this.area = ""), "resources" in t || (this.resources = []), "extension" in t || (this.extension = ""), Object.assign(this, t);
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Creates a new PluginResourceComponent instance from a string or object.
|
|
395
|
+
*/
|
|
396
|
+
static createFrom(t = {}) {
|
|
397
|
+
const s = O;
|
|
398
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
399
|
+
return "resources" in i && (i.resources = s(i.resources)), new u(i);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
class _ {
|
|
403
|
+
colors;
|
|
404
|
+
/** Creates a new PluginTheme instance. */
|
|
405
|
+
constructor(t = {}) {
|
|
406
|
+
"colors" in t || (this.colors = new b()), Object.assign(this, t);
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Creates a new PluginTheme instance from a string or object.
|
|
410
|
+
*/
|
|
411
|
+
static createFrom(t = {}) {
|
|
412
|
+
const s = oe;
|
|
413
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
414
|
+
return "colors" in i && (i.colors = s(i.colors)), new _(i);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
class b {
|
|
418
|
+
primary;
|
|
419
|
+
secondary;
|
|
420
|
+
tertiary;
|
|
421
|
+
/** Creates a new PluginThemeColors instance. */
|
|
422
|
+
constructor(t = {}) {
|
|
423
|
+
"primary" in t || (this.primary = ""), "secondary" in t || (this.secondary = ""), "tertiary" in t || (this.tertiary = ""), Object.assign(this, t);
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Creates a new PluginThemeColors instance from a string or object.
|
|
427
|
+
*/
|
|
428
|
+
static createFrom(t = {}) {
|
|
429
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
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(t = {}) {
|
|
447
|
+
"schema_version" in t || (this.schema_version = 0), "capability" in t || (this.capability = ""), "sdk_module" in t || (this.sdk_module = ""), "sdk_revision" in t || (this.sdk_revision = ""), "binary_sha256" in t || (this.binary_sha256 = ""), Object.assign(this, t);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Creates a new StateIsolationProvenance instance from a string or object.
|
|
451
|
+
*/
|
|
452
|
+
static createFrom(t = {}) {
|
|
453
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
454
|
+
return new N(s);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
const $t = u.createFrom, te = o($t), ee = v.createFrom, ie = d(ee), se = T.createFrom, ne = o(se), O = o(l), ae = _.createFrom, re = m.createFrom, le = N.createFrom, ce = d(le), oe = b.createFrom, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
458
|
+
__proto__: null,
|
|
459
|
+
PluginAuthor: v,
|
|
460
|
+
PluginComponentArea: It,
|
|
461
|
+
PluginComponents: m,
|
|
462
|
+
PluginMaintainer: T,
|
|
463
|
+
PluginMeta: g,
|
|
464
|
+
PluginResourceComponent: u,
|
|
465
|
+
PluginTheme: _,
|
|
466
|
+
PluginThemeColors: b,
|
|
467
|
+
StateIsolationProvenance: N
|
|
468
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
469
|
+
var j = /* @__PURE__ */ ((e) => (e[e.$zero = 0] = "$zero", e[e.minDuration = -9223372036854776e3] = "minDuration", e[e.maxDuration = 9223372036854776e3] = "maxDuration", e[e.Nanosecond = 1] = "Nanosecond", e[e.Microsecond = 1e3] = "Microsecond", e[e.Millisecond = 1e6] = "Millisecond", e[e.Second = 1e9] = "Second", e[e.Minute = 6e10] = "Minute", e[e.Hour = 36e11] = "Hour", e))(j || {});
|
|
470
|
+
const si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
471
|
+
__proto__: null,
|
|
472
|
+
Duration: j
|
|
473
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
474
|
+
var de = /* @__PURE__ */ ((e) => (e.$zero = "", e.CapabilityResource = "resource", e.CapabilityExec = "exec", e.CapabilityNetworker = "networker", e.CapabilityLog = "log", e.CapabilityMetric = "metric", e.CapabilitySettings = "settings", e.CapabilityTools = "tools", e.CapabilityUI = "ui", e))(de || {});
|
|
475
|
+
class tt {
|
|
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(t = {}) {
|
|
537
|
+
"last_refresh" in t || (this.last_refresh = "0001-01-01T00:00:00.000Z"), "data" in t || (this.data = {}), "labels" in t || (this.labels = {}), "lifecycle" in t || (this.lifecycle = new J()), "id" in t || (this.id = ""), "uid" in t || (this.uid = ""), "name" in t || (this.name = ""), "description" in t || (this.description = ""), "avatar" in t || (this.avatar = ""), "expiry_time" in t || (this.expiry_time = j.$zero), "Client" in t || (this.Client = null), Object.assign(this, t);
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Creates a new Connection instance from a string or object.
|
|
541
|
+
*/
|
|
542
|
+
static createFrom(t = {}) {
|
|
543
|
+
const s = wt, i = wt, n = me;
|
|
544
|
+
let a = typeof t == "string" ? JSON.parse(t) : t;
|
|
545
|
+
return "data" in a && (a.data = s(a.data)), "labels" in a && (a.labels = i(a.labels)), "lifecycle" in a && (a.lifecycle = n(a.lifecycle)), new tt(a);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
class et {
|
|
549
|
+
enabled;
|
|
550
|
+
triggers;
|
|
551
|
+
retry;
|
|
552
|
+
/** Creates a new ConnectionAutoConnect instance. */
|
|
553
|
+
constructor(t = {}) {
|
|
554
|
+
"enabled" in t || (this.enabled = !1), "triggers" in t || (this.triggers = []), "retry" in t || (this.retry = ""), Object.assign(this, t);
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Creates a new ConnectionAutoConnect instance from a string or object.
|
|
558
|
+
*/
|
|
559
|
+
static createFrom(t = {}) {
|
|
560
|
+
const s = ge;
|
|
561
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
562
|
+
return "triggers" in i && (i.triggers = s(i.triggers)), new et(i);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
var pe = /* @__PURE__ */ ((e) => (e.$zero = "", e.ConnectionAutoConnectRetryNone = "NONE", e.ConnectionAutoConnectRetryOnChange = "ON_CHANGE", e))(pe || {}), fe = /* @__PURE__ */ ((e) => (e.$zero = "", e.ConnectionAutoConnectTriggerPluginStart = "PLUGIN_START", e.ConnectionAutoConnectTriggerConnectionDiscovered = "CONNECTION_DISCOVERED", e))(fe || {});
|
|
566
|
+
class J {
|
|
567
|
+
auto_connect;
|
|
568
|
+
/** Creates a new ConnectionLifecycle instance. */
|
|
569
|
+
constructor(t = {}) {
|
|
570
|
+
Object.assign(this, t);
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Creates a new ConnectionLifecycle instance from a string or object.
|
|
574
|
+
*/
|
|
575
|
+
static createFrom(t = {}) {
|
|
576
|
+
const s = be;
|
|
577
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
578
|
+
return "auto_connect" in i && (i.auto_connect = s(i.auto_connect)), new J(i);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
class Pt {
|
|
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(t = {}) {
|
|
600
|
+
"connection" in t || (this.connection = null), "status" in t || (this.status = ""), "error" in t || (this.error = ""), "details" in t || (this.details = ""), Object.assign(this, t);
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* Creates a new ConnectionStatus instance from a string or object.
|
|
604
|
+
*/
|
|
605
|
+
static createFrom(t = {}) {
|
|
606
|
+
const s = Se;
|
|
607
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
608
|
+
return "connection" in i && (i.connection = s(i.connection)), new Pt(i);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
var he = /* @__PURE__ */ ((e) => (e.$zero = "", e.ConnectionStatusUnknown = "UNKNOWN", e.ConnectionStatusConnected = "CONNECTED", e.ConnectionStatusDisconnected = "DISCONNECTED", e.ConnectionStatusPending = "PENDING", e.ConnectionStatusFailed = "FAILED", e.ConnectionStatusError = "ERROR", e.ConnectionStatusUnauthorized = "UNAUTHORIZED", e.ConnectionStatusForbidden = "FORBIDDEN", e.ConnectionStatusBadRequest = "BAD_REQUEST", e.ConnectionStatusNotFound = "NOT_FOUND", e.ConnectionStatusTimeout = "TIMEOUT", e.ConnectionStatusUnavailable = "UNAVAILABLE", e.ConnectionStatusRequestEntityTooLarge = "REQUEST_ENTITY_TOO_LARGE", e))(he || {});
|
|
612
|
+
class Et {
|
|
613
|
+
id;
|
|
614
|
+
metadata;
|
|
615
|
+
phase;
|
|
616
|
+
enabled;
|
|
617
|
+
devMode;
|
|
618
|
+
devPath;
|
|
619
|
+
capabilities;
|
|
620
|
+
lastError;
|
|
621
|
+
/** Creates a new PluginInfo instance. */
|
|
622
|
+
constructor(t = {}) {
|
|
623
|
+
"id" in t || (this.id = ""), "metadata" in t || (this.metadata = new g()), "phase" in t || (this.phase = ""), "enabled" in t || (this.enabled = !1), "devMode" in t || (this.devMode = !1), "capabilities" in t || (this.capabilities = []), Object.assign(this, t);
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Creates a new PluginInfo instance from a string or object.
|
|
627
|
+
*/
|
|
628
|
+
static createFrom(t = {}) {
|
|
629
|
+
const s = Oe, i = Fe;
|
|
630
|
+
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
631
|
+
return "metadata" in n && (n.metadata = s(n.metadata)), "capabilities" in n && (n.capabilities = i(n.capabilities)), new Et(n);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
const wt = p(l, l), me = J.createFrom, ge = o(l), _e = et.createFrom, be = d(_e), ye = tt.createFrom, Se = d(ye), Oe = g.createFrom, Fe = o(l);
|
|
635
|
+
class it {
|
|
636
|
+
settings;
|
|
637
|
+
id;
|
|
638
|
+
label;
|
|
639
|
+
description;
|
|
640
|
+
icon;
|
|
641
|
+
/** Creates a new Category instance. */
|
|
642
|
+
constructor(t = {}) {
|
|
643
|
+
"settings" in t || (this.settings = {}), "id" in t || (this.id = ""), "label" in t || (this.label = ""), "description" in t || (this.description = ""), "icon" in t || (this.icon = ""), Object.assign(this, t);
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Creates a new Category instance from a string or object.
|
|
647
|
+
*/
|
|
648
|
+
static createFrom(t = {}) {
|
|
649
|
+
const s = ve;
|
|
650
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
651
|
+
return "settings" in i && (i.settings = s(i.settings)), new it(i);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
class I {
|
|
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(t = {}) {
|
|
706
|
+
"id" in t || (this.id = ""), "label" in t || (this.label = ""), "description" in t || (this.description = ""), "type" in t || (this.type = ""), "value" in t || (this.value = null), "default" in t || (this.default = null), "options" in t || (this.options = []), "fileSelection" in t || (this.fileSelection = null), "sensitive" in t || (this.sensitive = !1), "devOnly" in t || (this.devOnly = !1), "requiresRestart" in t || (this.requiresRestart = !1), "pendingRestart" in t || (this.pendingRestart = !1), Object.assign(this, t);
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Creates a new Setting instance from a string or object.
|
|
710
|
+
*/
|
|
711
|
+
static createFrom(t = {}) {
|
|
712
|
+
const s = ue, i = je;
|
|
713
|
+
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
714
|
+
return "options" in n && (n.options = s(n.options)), "fileSelection" in n && (n.fileSelection = i(n.fileSelection)), new I(n);
|
|
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(t = {}) {
|
|
744
|
+
"enabled" in t || (this.enabled = !1), "allowFolders" in t || (this.allowFolders = !1), "extensions" in t || (this.extensions = []), "multiple" in t || (this.multiple = !1), "relative" in t || (this.relative = !1), "defaultPath" in t || (this.defaultPath = ""), Object.assign(this, t);
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Creates a new SettingFileSelection instance from a string or object.
|
|
748
|
+
*/
|
|
749
|
+
static createFrom(t = {}) {
|
|
750
|
+
const s = Je;
|
|
751
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
752
|
+
return "extensions" in i && (i.extensions = s(i.extensions)), new P(i);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
class E {
|
|
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(t = {}) {
|
|
770
|
+
"label" in t || (this.label = ""), "description" in t || (this.description = ""), "value" in t || (this.value = null), Object.assign(this, t);
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* Creates a new SettingOption instance from a string or object.
|
|
774
|
+
*/
|
|
775
|
+
static createFrom(t = {}) {
|
|
776
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
777
|
+
return new E(s);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
var kt = /* @__PURE__ */ ((e) => (e.$zero = "", e.Text = "text", e.Select = "select", e.MultiSelect = "multiselect", e.Integer = "integer", e.Float = "float", e.Toggle = "toggle", e.Color = "color", e.DateTime = "datetime", e.Password = "password", e))(kt || {});
|
|
781
|
+
class st {
|
|
782
|
+
valid;
|
|
783
|
+
code;
|
|
784
|
+
message;
|
|
785
|
+
/** Creates a new ValidationResult instance. */
|
|
786
|
+
constructor(t = {}) {
|
|
787
|
+
"valid" in t || (this.valid = !1), "code" in t || (this.code = ""), "message" in t || (this.message = ""), Object.assign(this, t);
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Creates a new ValidationResult instance from a string or object.
|
|
791
|
+
*/
|
|
792
|
+
static createFrom(t = {}) {
|
|
793
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
794
|
+
return new st(s);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
const we = I.createFrom, ve = p(l, we), Te = E.createFrom, ue = o(Te), Ne = P.createFrom, je = d(Ne), Je = o(l), ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
798
|
+
__proto__: null,
|
|
799
|
+
Category: it,
|
|
800
|
+
Setting: I,
|
|
801
|
+
SettingFileSelection: P,
|
|
802
|
+
SettingOption: E,
|
|
803
|
+
SettingType: kt,
|
|
804
|
+
ValidationResult: st
|
|
805
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
806
|
+
class nt {
|
|
807
|
+
plugin;
|
|
808
|
+
/** Creates a new GetPluginComponentsInput instance. */
|
|
809
|
+
constructor(t = {}) {
|
|
810
|
+
"plugin" in t || (this.plugin = ""), Object.assign(this, t);
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Creates a new GetPluginComponentsInput instance from a string or object.
|
|
814
|
+
*/
|
|
815
|
+
static createFrom(t = {}) {
|
|
816
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
817
|
+
return new nt(s);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
class at {
|
|
821
|
+
plugin;
|
|
822
|
+
resource;
|
|
823
|
+
area;
|
|
824
|
+
/** Creates a new GetResourceAreaComponentInput instance. */
|
|
825
|
+
constructor(t = {}) {
|
|
826
|
+
"plugin" in t || (this.plugin = ""), "resource" in t || (this.resource = ""), "area" in t || (this.area = ""), Object.assign(this, t);
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Creates a new GetResourceAreaComponentInput instance from a string or object.
|
|
830
|
+
*/
|
|
831
|
+
static createFrom(t = {}) {
|
|
832
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
833
|
+
return new at(s);
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
class rt {
|
|
837
|
+
plugin;
|
|
838
|
+
resource;
|
|
839
|
+
/** Creates a new GetResourceComponentsInput instance. */
|
|
840
|
+
constructor(t = {}) {
|
|
841
|
+
"plugin" in t || (this.plugin = ""), "resource" in t || (this.resource = ""), Object.assign(this, t);
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Creates a new GetResourceComponentsInput instance from a string or object.
|
|
845
|
+
*/
|
|
846
|
+
static createFrom(t = {}) {
|
|
847
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
848
|
+
return new rt(s);
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
class lt {
|
|
852
|
+
owner;
|
|
853
|
+
name;
|
|
854
|
+
plugin;
|
|
855
|
+
resource;
|
|
856
|
+
area;
|
|
857
|
+
extension;
|
|
858
|
+
/** Creates a new ResourceComponent instance. */
|
|
859
|
+
constructor(t = {}) {
|
|
860
|
+
"owner" in t || (this.owner = ""), "name" in t || (this.name = ""), "plugin" in t || (this.plugin = ""), "resource" in t || (this.resource = ""), "area" in t || (this.area = ""), "extension" in t || (this.extension = ""), Object.assign(this, t);
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Creates a new ResourceComponent instance from a string or object.
|
|
864
|
+
*/
|
|
865
|
+
static createFrom(t = {}) {
|
|
866
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
867
|
+
return new lt(s);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
var zt = /* @__PURE__ */ ((e) => (e.$zero = "", e.ResourceComponentAreaSidebar = "SIDEBAR", e.ResourceComponentAreaTable = "TABLE", e))(zt || {});
|
|
871
|
+
const ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
872
|
+
__proto__: null,
|
|
873
|
+
GetPluginComponentsInput: nt,
|
|
874
|
+
GetResourceAreaComponentInput: at,
|
|
875
|
+
GetResourceComponentsInput: rt,
|
|
876
|
+
ResourceComponent: lt,
|
|
877
|
+
ResourceComponentArea: zt
|
|
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(t = {}) {
|
|
886
|
+
"label" in t || (this.label = ""), "label_selector" in t || (this.label_selector = ""), "paths" in t || (this.paths = []), "selectors" in t || (this.selectors = {}), Object.assign(this, t);
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* Creates a new ActionTargetBuilder instance from a string or object.
|
|
890
|
+
*/
|
|
891
|
+
static createFrom(t = {}) {
|
|
892
|
+
const s = Pe, i = ot;
|
|
893
|
+
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
894
|
+
return "paths" in n && (n.paths = s(n.paths)), "selectors" in n && (n.selectors = i(n.selectors)), new y(n);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
let Ie = class xt {
|
|
898
|
+
plugin;
|
|
899
|
+
resource;
|
|
900
|
+
target_builder;
|
|
901
|
+
/** Creates a new Handler instance. */
|
|
902
|
+
constructor(t = {}) {
|
|
903
|
+
"plugin" in t || (this.plugin = ""), "resource" in t || (this.resource = ""), "target_builder" in t || (this.target_builder = new y()), Object.assign(this, t);
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* Creates a new Handler instance from a string or object.
|
|
907
|
+
*/
|
|
908
|
+
static createFrom(t = {}) {
|
|
909
|
+
const s = Ee;
|
|
910
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
911
|
+
return "target_builder" in i && (i.target_builder = s(i.target_builder)), new xt(i);
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
class ct {
|
|
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(t = {}) {
|
|
926
|
+
"id" in t || (this.id = ""), "plugin_id" in t || (this.plugin_id = ""), "connection_id" in t || (this.connection_id = ""), "resource_key" in t || (this.resource_key = ""), "resource_id" in t || (this.resource_id = ""), "options" in t || (this.options = new S()), "status" in t || (this.status = 0), "active_sources" in t || (this.active_sources = []), "created_at" in t || (this.created_at = "0001-01-01T00:00:00.000Z"), Object.assign(this, t);
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Creates a new LogSession instance from a string or object.
|
|
930
|
+
*/
|
|
931
|
+
static createFrom(t = {}) {
|
|
932
|
+
const s = ke, i = xe;
|
|
933
|
+
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
934
|
+
return "options" in n && (n.options = s(n.options)), "active_sources" in n && (n.active_sources = i(n.active_sources)), new ct(n);
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
class S {
|
|
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(t = {}) {
|
|
950
|
+
"target" in t || (this.target = ""), "follow" in t || (this.follow = !1), "include_previous" in t || (this.include_previous = !1), "include_timestamps" in t || (this.include_timestamps = !1), "tail_lines" in t || (this.tail_lines = 0), "since_seconds" in t || (this.since_seconds = 0), "limit_bytes" in t || (this.limit_bytes = 0), "include_source_events" in t || (this.include_source_events = !1), "params" in t || (this.params = {}), Object.assign(this, t);
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Creates a new LogSessionOptions instance from a string or object.
|
|
954
|
+
*/
|
|
955
|
+
static createFrom(t = {}) {
|
|
956
|
+
const s = ot;
|
|
957
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
958
|
+
return "params" in i && (i.params = s(i.params)), new S(i);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
var At = /* @__PURE__ */ ((e) => (e[e.$zero = 0] = "$zero", e[e.LogSessionStatusActive = 0] = "LogSessionStatusActive", e[e.LogSessionStatusPaused = 1] = "LogSessionStatusPaused", e[e.LogSessionStatusClosed = 2] = "LogSessionStatusClosed", e[e.LogSessionStatusError = 3] = "LogSessionStatusError", e[e.LogSessionStatusConnecting = 4] = "LogSessionStatusConnecting", e[e.LogSessionStatusInitializing = 5] = "LogSessionStatusInitializing", e))(At || {});
|
|
962
|
+
class k {
|
|
963
|
+
id;
|
|
964
|
+
labels;
|
|
965
|
+
/** Creates a new LogSource instance. */
|
|
966
|
+
constructor(t = {}) {
|
|
967
|
+
"id" in t || (this.id = ""), "labels" in t || (this.labels = {}), Object.assign(this, t);
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* Creates a new LogSource instance from a string or object.
|
|
971
|
+
*/
|
|
972
|
+
static createFrom(t = {}) {
|
|
973
|
+
const s = ot;
|
|
974
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
975
|
+
return "labels" in i && (i.labels = s(i.labels)), new k(i);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
var Rt = /* @__PURE__ */ ((e) => (e[e.$zero = 0] = "$zero", e[e.StreamCommandPause = 0] = "StreamCommandPause", e[e.StreamCommandResume = 1] = "StreamCommandResume", e[e.StreamCommandClose = 2] = "StreamCommandClose", e))(Rt || {});
|
|
979
|
+
const Pe = o(l), ot = p(l, l), Ee = y.createFrom, ke = S.createFrom, ze = k.createFrom, xe = o(ze), ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
980
|
+
__proto__: null,
|
|
981
|
+
ActionTargetBuilder: y,
|
|
982
|
+
Handler: Ie,
|
|
983
|
+
LogSession: ct,
|
|
984
|
+
LogSessionOptions: S,
|
|
985
|
+
LogSessionStatus: At,
|
|
986
|
+
LogSource: k,
|
|
987
|
+
LogStreamCommand: Rt
|
|
988
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
989
|
+
class z {
|
|
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(t = {}) {
|
|
1003
|
+
"metric_id" in t || (this.metric_id = ""), "min" in t || (this.min = 0), "max" in t || (this.max = 0), "avg" in t || (this.avg = 0), "sum" in t || (this.sum = 0), "p50" in t || (this.p50 = 0), "p90" in t || (this.p90 = 0), "p99" in t || (this.p99 = 0), "count" in t || (this.count = 0), "window" in t || (this.window = j.$zero), "labels" in t || (this.labels = {}), Object.assign(this, t);
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Creates a new AggregateValue instance from a string or object.
|
|
1007
|
+
*/
|
|
1008
|
+
static createFrom(t = {}) {
|
|
1009
|
+
const s = U;
|
|
1010
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
1011
|
+
return "labels" in i && (i.labels = s(i.labels)), new z(i);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
class x {
|
|
1015
|
+
min;
|
|
1016
|
+
max;
|
|
1017
|
+
color;
|
|
1018
|
+
/** Creates a new ColorRange instance. */
|
|
1019
|
+
constructor(t = {}) {
|
|
1020
|
+
"min" in t || (this.min = 0), "max" in t || (this.max = 0), "color" in t || (this.color = ""), Object.assign(this, t);
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Creates a new ColorRange instance from a string or object.
|
|
1024
|
+
*/
|
|
1025
|
+
static createFrom(t = {}) {
|
|
1026
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
1027
|
+
return new x(s);
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
class A {
|
|
1031
|
+
metric_id;
|
|
1032
|
+
value;
|
|
1033
|
+
timestamp;
|
|
1034
|
+
labels;
|
|
1035
|
+
/** Creates a new CurrentValue instance. */
|
|
1036
|
+
constructor(t = {}) {
|
|
1037
|
+
"metric_id" in t || (this.metric_id = ""), "value" in t || (this.value = 0), "timestamp" in t || (this.timestamp = "0001-01-01T00:00:00.000Z"), "labels" in t || (this.labels = {}), Object.assign(this, t);
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Creates a new CurrentValue instance from a string or object.
|
|
1041
|
+
*/
|
|
1042
|
+
static createFrom(t = {}) {
|
|
1043
|
+
const s = U;
|
|
1044
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
1045
|
+
return "labels" in i && (i.labels = s(i.labels)), new A(i);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
class R {
|
|
1049
|
+
timestamp;
|
|
1050
|
+
value;
|
|
1051
|
+
labels;
|
|
1052
|
+
/** Creates a new DataPoint instance. */
|
|
1053
|
+
constructor(t = {}) {
|
|
1054
|
+
"timestamp" in t || (this.timestamp = "0001-01-01T00:00:00.000Z"), "value" in t || (this.value = 0), "labels" in t || (this.labels = {}), Object.assign(this, t);
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* Creates a new DataPoint instance from a string or object.
|
|
1058
|
+
*/
|
|
1059
|
+
static createFrom(t = {}) {
|
|
1060
|
+
const s = U;
|
|
1061
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
1062
|
+
return "labels" in i && (i.labels = s(i.labels)), new R(i);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
class dt {
|
|
1066
|
+
resource;
|
|
1067
|
+
metrics;
|
|
1068
|
+
/** Creates a new Handler instance. */
|
|
1069
|
+
constructor(t = {}) {
|
|
1070
|
+
"resource" in t || (this.resource = ""), "metrics" in t || (this.metrics = []), Object.assign(this, t);
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Creates a new Handler instance from a string or object.
|
|
1074
|
+
*/
|
|
1075
|
+
static createFrom(t = {}) {
|
|
1076
|
+
const s = Re;
|
|
1077
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
1078
|
+
return "metrics" in i && (i.metrics = s(i.metrics)), new dt(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(t = {}) {
|
|
1092
|
+
"id" in t || (this.id = ""), "name" in t || (this.name = ""), "unit" in t || (this.unit = 0), "icon" in t || (this.icon = ""), "color_ranges" in t || (this.color_ranges = []), "format_string" in t || (this.format_string = ""), "supported_shapes" in t || (this.supported_shapes = []), "chart_group" in t || (this.chart_group = ""), Object.assign(this, t);
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Creates a new MetricDescriptor instance from a string or object.
|
|
1096
|
+
*/
|
|
1097
|
+
static createFrom(t = {}) {
|
|
1098
|
+
const s = We, i = Ce;
|
|
1099
|
+
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
1100
|
+
return "color_ranges" in n && (n.color_ranges = s(n.color_ranges)), "supported_shapes" in n && (n.supported_shapes = i(n.supported_shapes)), new B(n);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
class W {
|
|
1104
|
+
time_series;
|
|
1105
|
+
current_value;
|
|
1106
|
+
aggregate_value;
|
|
1107
|
+
/** Creates a new MetricResult instance. */
|
|
1108
|
+
constructor(t = {}) {
|
|
1109
|
+
Object.assign(this, t);
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* Creates a new MetricResult instance from a string or object.
|
|
1113
|
+
*/
|
|
1114
|
+
static createFrom(t = {}) {
|
|
1115
|
+
const s = De, i = qe, n = Ye;
|
|
1116
|
+
let a = typeof t == "string" ? JSON.parse(t) : t;
|
|
1117
|
+
return "time_series" in a && (a.time_series = s(a.time_series)), "current_value" in a && (a.current_value = i(a.current_value)), "aggregate_value" in a && (a.aggregate_value = n(a.aggregate_value)), new W(a);
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
var Bt = /* @__PURE__ */ ((e) => (e[e.$zero = 0] = "$zero", e[e.ShapeCurrent = 0] = "ShapeCurrent", e[e.ShapeTimeseries = 1] = "ShapeTimeseries", e[e.ShapeAggregate = 2] = "ShapeAggregate", e))(Bt || {}), Wt = /* @__PURE__ */ ((e) => (e[e.$zero = 0] = "$zero", e[e.UnitNone = 0] = "UnitNone", e[e.UnitBytes = 1] = "UnitBytes", e[e.UnitKB = 2] = "UnitKB", e[e.UnitMB = 3] = "UnitMB", e[e.UnitGB = 4] = "UnitGB", e[e.UnitPercentage = 5] = "UnitPercentage", e[e.UnitMillis = 6] = "UnitMillis", e[e.UnitSeconds = 7] = "UnitSeconds", e[e.UnitCount = 8] = "UnitCount", e[e.UnitOpsPerSec = 9] = "UnitOpsPerSec", e[e.UnitBytesPerSec = 10] = "UnitBytesPerSec", e[e.UnitMillicores = 11] = "UnitMillicores", e[e.UnitCores = 12] = "UnitCores", e))(Wt || {});
|
|
1121
|
+
class pt {
|
|
1122
|
+
success;
|
|
1123
|
+
results;
|
|
1124
|
+
error;
|
|
1125
|
+
/** Creates a new QueryResponse instance. */
|
|
1126
|
+
constructor(t = {}) {
|
|
1127
|
+
"success" in t || (this.success = !1), "results" in t || (this.results = []), "error" in t || (this.error = ""), Object.assign(this, t);
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Creates a new QueryResponse instance from a string or object.
|
|
1131
|
+
*/
|
|
1132
|
+
static createFrom(t = {}) {
|
|
1133
|
+
const s = Xe;
|
|
1134
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
1135
|
+
return "results" in i && (i.results = s(i.results)), new pt(i);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
class C {
|
|
1139
|
+
metric_id;
|
|
1140
|
+
data_points;
|
|
1141
|
+
labels;
|
|
1142
|
+
/** Creates a new TimeSeries instance. */
|
|
1143
|
+
constructor(t = {}) {
|
|
1144
|
+
"metric_id" in t || (this.metric_id = ""), "data_points" in t || (this.data_points = []), "labels" in t || (this.labels = {}), Object.assign(this, t);
|
|
1145
|
+
}
|
|
1146
|
+
/**
|
|
1147
|
+
* Creates a new TimeSeries instance from a string or object.
|
|
1148
|
+
*/
|
|
1149
|
+
static createFrom(t = {}) {
|
|
1150
|
+
const s = Ve, i = U;
|
|
1151
|
+
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
1152
|
+
return "data_points" in n && (n.data_points = s(n.data_points)), "labels" in n && (n.labels = i(n.labels)), new C(n);
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
const U = p(l, l), Ae = B.createFrom, Re = o(Ae), Be = x.createFrom, We = o(Be), Ce = o(l), Ue = C.createFrom, De = d(Ue), He = A.createFrom, qe = d(He), Ze = z.createFrom, Ye = d(Ze), Ge = W.createFrom, Xe = o(Ge), Ke = R.createFrom, Ve = o(Ke), li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1156
|
+
__proto__: null,
|
|
1157
|
+
AggregateValue: z,
|
|
1158
|
+
ColorRange: x,
|
|
1159
|
+
CurrentValue: A,
|
|
1160
|
+
DataPoint: R,
|
|
1161
|
+
Handler: dt,
|
|
1162
|
+
MetricDescriptor: B,
|
|
1163
|
+
MetricResult: W,
|
|
1164
|
+
MetricShape: Bt,
|
|
1165
|
+
MetricUnit: Wt,
|
|
1166
|
+
QueryResponse: pt,
|
|
1167
|
+
TimeSeries: C
|
|
1168
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1169
|
+
class ft {
|
|
1170
|
+
sessionId;
|
|
1171
|
+
sourceWindow;
|
|
1172
|
+
dragType;
|
|
1173
|
+
/**
|
|
1174
|
+
* Payload is the JSON of the base-ui TabDragPayload; it is forwarded to
|
|
1175
|
+
* target windows verbatim.
|
|
1176
|
+
*/
|
|
1177
|
+
payload;
|
|
1178
|
+
/** Creates a new DragBegin instance. */
|
|
1179
|
+
constructor(t = {}) {
|
|
1180
|
+
"sessionId" in t || (this.sessionId = ""), "sourceWindow" in t || (this.sourceWindow = ""), "dragType" in t || (this.dragType = ""), "payload" in t || (this.payload = ""), Object.assign(this, t);
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Creates a new DragBegin instance from a string or object.
|
|
1184
|
+
*/
|
|
1185
|
+
static createFrom(t = {}) {
|
|
1186
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
1187
|
+
return new ft(s);
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
class ht {
|
|
1191
|
+
sessionId;
|
|
1192
|
+
sourceWindow;
|
|
1193
|
+
dragType;
|
|
1194
|
+
/** Creates a new DragBeginEvent instance. */
|
|
1195
|
+
constructor(t = {}) {
|
|
1196
|
+
"sessionId" in t || (this.sessionId = ""), "sourceWindow" in t || (this.sourceWindow = ""), "dragType" in t || (this.dragType = ""), Object.assign(this, t);
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Creates a new DragBeginEvent instance from a string or object.
|
|
1200
|
+
*/
|
|
1201
|
+
static createFrom(t = {}) {
|
|
1202
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
1203
|
+
return new ht(s);
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
class mt {
|
|
1207
|
+
sessionId;
|
|
1208
|
+
/** Creates a new DragEndEvent instance. */
|
|
1209
|
+
constructor(t = {}) {
|
|
1210
|
+
"sessionId" in t || (this.sessionId = ""), Object.assign(this, t);
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* Creates a new DragEndEvent instance from a string or object.
|
|
1214
|
+
*/
|
|
1215
|
+
static createFrom(t = {}) {
|
|
1216
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
1217
|
+
return new mt(s);
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
class gt {
|
|
1221
|
+
sessionId;
|
|
1222
|
+
targetWindow;
|
|
1223
|
+
/** Creates a new DragLeaveEvent instance. */
|
|
1224
|
+
constructor(t = {}) {
|
|
1225
|
+
"sessionId" in t || (this.sessionId = ""), "targetWindow" in t || (this.targetWindow = ""), Object.assign(this, t);
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Creates a new DragLeaveEvent instance from a string or object.
|
|
1229
|
+
*/
|
|
1230
|
+
static createFrom(t = {}) {
|
|
1231
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
1232
|
+
return new gt(s);
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
class _t {
|
|
1236
|
+
sessionId;
|
|
1237
|
+
targetWindow;
|
|
1238
|
+
/**
|
|
1239
|
+
* Payload is DragBegin.Payload verbatim (JSON of TabDragPayload).
|
|
1240
|
+
*/
|
|
1241
|
+
payload;
|
|
1242
|
+
clientX;
|
|
1243
|
+
clientY;
|
|
1244
|
+
/** Creates a new DragPointerEvent instance. */
|
|
1245
|
+
constructor(t = {}) {
|
|
1246
|
+
"sessionId" in t || (this.sessionId = ""), "targetWindow" in t || (this.targetWindow = ""), "payload" in t || (this.payload = ""), "clientX" in t || (this.clientX = 0), "clientY" in t || (this.clientY = 0), Object.assign(this, t);
|
|
1247
|
+
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Creates a new DragPointerEvent instance from a string or object.
|
|
1250
|
+
*/
|
|
1251
|
+
static createFrom(t = {}) {
|
|
1252
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
1253
|
+
return new _t(s);
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
class bt {
|
|
1257
|
+
accepted;
|
|
1258
|
+
targetWindow;
|
|
1259
|
+
targetInstanceId;
|
|
1260
|
+
/** Creates a new DropResult instance. */
|
|
1261
|
+
constructor(t = {}) {
|
|
1262
|
+
"accepted" in t || (this.accepted = !1), "targetWindow" in t || (this.targetWindow = ""), "targetInstanceId" in t || (this.targetInstanceId = ""), Object.assign(this, t);
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* Creates a new DropResult instance from a string or object.
|
|
1266
|
+
*/
|
|
1267
|
+
static createFrom(t = {}) {
|
|
1268
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
1269
|
+
return new bt(s);
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
class D {
|
|
1273
|
+
name;
|
|
1274
|
+
kind;
|
|
1275
|
+
/**
|
|
1276
|
+
* Focused is true for the most recently focused window.
|
|
1277
|
+
*/
|
|
1278
|
+
focused;
|
|
1279
|
+
/** Creates a new Info instance. */
|
|
1280
|
+
constructor(t = {}) {
|
|
1281
|
+
"name" in t || (this.name = ""), "kind" in t || (this.kind = ""), "focused" in t || (this.focused = !1), Object.assign(this, t);
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Creates a new Info instance from a string or object.
|
|
1285
|
+
*/
|
|
1286
|
+
static createFrom(t = {}) {
|
|
1287
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
1288
|
+
return new D(s);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
var Ct = /* @__PURE__ */ ((e) => (e.$zero = "", e.KindWorkspace = "workspace", e.KindPanel = "panel", e.KindSettings = "settings", e))(Ct || {});
|
|
1292
|
+
class yt {
|
|
1293
|
+
kind;
|
|
1294
|
+
/**
|
|
1295
|
+
* InitialState is the opaque per-slot state handed to the new window
|
|
1296
|
+
* before it loads (same format as SaveState slots).
|
|
1297
|
+
*/
|
|
1298
|
+
initialState;
|
|
1299
|
+
/**
|
|
1300
|
+
* When HasPosition is set the new window's top-left is placed near the
|
|
1301
|
+
* pointer at (ClientX, ClientY) in AnchorWindow's client space.
|
|
1302
|
+
*/
|
|
1303
|
+
anchorWindow;
|
|
1304
|
+
clientX;
|
|
1305
|
+
clientY;
|
|
1306
|
+
hasPosition;
|
|
1307
|
+
/**
|
|
1308
|
+
* Width and Height of the new window; 0 selects the kind's default.
|
|
1309
|
+
*/
|
|
1310
|
+
width;
|
|
1311
|
+
height;
|
|
1312
|
+
/** Creates a new OpenRequest instance. */
|
|
1313
|
+
constructor(t = {}) {
|
|
1314
|
+
"kind" in t || (this.kind = ""), "initialState" in t || (this.initialState = {}), "anchorWindow" in t || (this.anchorWindow = ""), "clientX" in t || (this.clientX = 0), "clientY" in t || (this.clientY = 0), "hasPosition" in t || (this.hasPosition = !1), "width" in t || (this.width = 0), "height" in t || (this.height = 0), Object.assign(this, t);
|
|
1315
|
+
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Creates a new OpenRequest instance from a string or object.
|
|
1318
|
+
*/
|
|
1319
|
+
static createFrom(t = {}) {
|
|
1320
|
+
const s = Ut;
|
|
1321
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
1322
|
+
return "initialState" in i && (i.initialState = s(i.initialState)), new yt(i);
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
class St {
|
|
1326
|
+
requestId;
|
|
1327
|
+
target;
|
|
1328
|
+
visible;
|
|
1329
|
+
/** Creates a new SettingsState instance. */
|
|
1330
|
+
constructor(t = {}) {
|
|
1331
|
+
"requestId" in t || (this.requestId = 0), "target" in t || (this.target = ""), "visible" in t || (this.visible = !1), Object.assign(this, t);
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* Creates a new SettingsState instance from a string or object.
|
|
1335
|
+
*/
|
|
1336
|
+
static createFrom(t = {}) {
|
|
1337
|
+
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
1338
|
+
return new St(s);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
class Ot {
|
|
1342
|
+
name;
|
|
1343
|
+
kind;
|
|
1344
|
+
states;
|
|
1345
|
+
/** Creates a new WindowClosedEvent instance. */
|
|
1346
|
+
constructor(t = {}) {
|
|
1347
|
+
"name" in t || (this.name = ""), "kind" in t || (this.kind = ""), "states" in t || (this.states = {}), Object.assign(this, t);
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Creates a new WindowClosedEvent instance from a string or object.
|
|
1351
|
+
*/
|
|
1352
|
+
static createFrom(t = {}) {
|
|
1353
|
+
const s = Ut;
|
|
1354
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
1355
|
+
return "states" in i && (i.states = s(i.states)), new Ot(i);
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
class Ft {
|
|
1359
|
+
windows;
|
|
1360
|
+
/** Creates a new WindowsChangedEvent instance. */
|
|
1361
|
+
constructor(t = {}) {
|
|
1362
|
+
"windows" in t || (this.windows = []), Object.assign(this, t);
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Creates a new WindowsChangedEvent instance from a string or object.
|
|
1366
|
+
*/
|
|
1367
|
+
static createFrom(t = {}) {
|
|
1368
|
+
const s = Le;
|
|
1369
|
+
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
1370
|
+
return "windows" in i && (i.windows = s(i.windows)), new Ft(i);
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
const Ut = p(l, l), Qe = D.createFrom, Le = o(Qe), ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1374
|
+
__proto__: null,
|
|
1375
|
+
DragBegin: ft,
|
|
1376
|
+
DragBeginEvent: ht,
|
|
1377
|
+
DragEndEvent: mt,
|
|
1378
|
+
DragLeaveEvent: gt,
|
|
1379
|
+
DragPointerEvent: _t,
|
|
1380
|
+
DropResult: bt,
|
|
1381
|
+
Info: D,
|
|
1382
|
+
Kind: Ct,
|
|
1383
|
+
OpenRequest: yt,
|
|
1384
|
+
SettingsState: St,
|
|
1385
|
+
WindowClosedEvent: Ot,
|
|
1386
|
+
WindowsChangedEvent: Ft
|
|
1387
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1388
|
+
export {
|
|
1389
|
+
Nt as $,
|
|
1390
|
+
Q as A,
|
|
1391
|
+
k as B,
|
|
1392
|
+
Pt as C,
|
|
1393
|
+
L as D,
|
|
1394
|
+
Rt as E,
|
|
1395
|
+
K as F,
|
|
1396
|
+
nt as G,
|
|
1397
|
+
qt as H,
|
|
1398
|
+
D as I,
|
|
1399
|
+
W as J,
|
|
1400
|
+
Bt as K,
|
|
1401
|
+
ct as L,
|
|
1402
|
+
B as M,
|
|
1403
|
+
Wt as N,
|
|
1404
|
+
v as O,
|
|
1405
|
+
g as P,
|
|
1406
|
+
pt as Q,
|
|
1407
|
+
M as R,
|
|
1408
|
+
X as S,
|
|
1409
|
+
It as T,
|
|
1410
|
+
m as U,
|
|
1411
|
+
$ as V,
|
|
1412
|
+
T as W,
|
|
1413
|
+
u as X,
|
|
1414
|
+
_ as Y,
|
|
1415
|
+
b as Z,
|
|
1416
|
+
ut as _,
|
|
1417
|
+
G as a,
|
|
1418
|
+
h as a0,
|
|
1419
|
+
zt as a1,
|
|
1420
|
+
jt as a2,
|
|
1421
|
+
I as a3,
|
|
1422
|
+
P as a4,
|
|
1423
|
+
E as a5,
|
|
1424
|
+
kt as a6,
|
|
1425
|
+
N as a7,
|
|
1426
|
+
C as a8,
|
|
1427
|
+
ii as a9,
|
|
1428
|
+
$e as aa,
|
|
1429
|
+
ri as ab,
|
|
1430
|
+
li as ac,
|
|
1431
|
+
ti as ad,
|
|
1432
|
+
ei as ae,
|
|
1433
|
+
ni as af,
|
|
1434
|
+
si as ag,
|
|
1435
|
+
ai as ah,
|
|
1436
|
+
ci as ai,
|
|
1437
|
+
j as aj,
|
|
1438
|
+
V as b,
|
|
1439
|
+
Et as c,
|
|
1440
|
+
tt as d,
|
|
1441
|
+
it as e,
|
|
1442
|
+
st as f,
|
|
1443
|
+
lt as g,
|
|
1444
|
+
Ie as h,
|
|
1445
|
+
dt as i,
|
|
1446
|
+
bt as j,
|
|
1447
|
+
St as k,
|
|
1448
|
+
he as l,
|
|
1449
|
+
et as m,
|
|
1450
|
+
pe as n,
|
|
1451
|
+
fe as o,
|
|
1452
|
+
J as p,
|
|
1453
|
+
de as q,
|
|
1454
|
+
Y as r,
|
|
1455
|
+
z as s,
|
|
1456
|
+
x as t,
|
|
1457
|
+
A as u,
|
|
1458
|
+
R as v,
|
|
1459
|
+
at as w,
|
|
1460
|
+
rt as x,
|
|
1461
|
+
S as y,
|
|
1462
|
+
At as z
|
|
1463
|
+
};
|