@omniviewdev/runtime 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs +1 -1
- package/dist/api.d.ts +7 -6
- package/dist/api.js +205 -133
- package/dist/bindings/events/index.d.ts +20 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/models.d.ts +19 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/models.d.ts +0 -20
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper.d.ts +3 -6
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +2 -2
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +3 -15
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +5 -18
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +190 -9
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +34 -74
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/models.d.ts +178 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/servicewrapper.d.ts +30 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +27 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +809 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +94 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +16 -6
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models.d.ts +27 -17
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models.d.ts +47 -24
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/models.d.ts +41 -20
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +16 -4
- package/dist/{calls-Bg_uMVc9.cjs → calls-B-HP1Icv.cjs} +1 -1
- package/dist/{calls-BvZkVSse.js → calls-DYGtxNJ6.js} +1 -0
- package/dist/compat/types.d.ts +1 -1
- package/dist/context/drawer/RightDrawerContext.d.ts +8 -4
- package/dist/context/drawer/types.d.ts +11 -21
- package/dist/context/operations/OperationsContext.d.ts +5 -5
- package/dist/exec.d.ts +5 -0
- package/dist/graph-JDqyJC_i.js +10 -0
- package/dist/graph-wHun0Bkz.cjs +1 -0
- package/dist/hooks/connection/index.d.ts +2 -1
- package/dist/hooks/connection/useConnection.d.ts +9 -30
- package/dist/hooks/connection/useConnectionProfiles.d.ts +7 -0
- package/dist/hooks/connection/useConnectionStatus.d.ts +8 -1
- package/dist/hooks/connection/useConnections.d.ts +3 -2
- package/dist/hooks/connection/useScopeValues.d.ts +9 -0
- package/dist/hooks/logs/useLogSession.d.ts +4 -1
- package/dist/hooks/metric/useMetricStream.d.ts +6 -2
- package/dist/hooks/metric/useResourceMetrics.d.ts +6 -2
- package/dist/hooks/networker/types.d.ts +5 -2
- package/dist/hooks/networker/useResourcePortForwarder.d.ts +1 -1
- package/dist/hooks/resource/useConnectionQueryGuard.d.ts +1 -1
- package/dist/hooks/resource/useDependencyTree.d.ts +4 -12
- package/dist/hooks/resource/useEditorSchemas.d.ts +12 -7
- package/dist/hooks/resource/useEventBatcher.d.ts +11 -47
- package/dist/hooks/resource/useRelatedResources.d.ts +6 -14
- package/dist/hooks/resource/useResolvedResourceTarget.d.ts +162 -0
- package/dist/hooks/resource/useResource.d.ts +7 -58
- package/dist/hooks/resource/useResourceActions.d.ts +9 -58
- package/dist/hooks/resource/useResourceGraph.d.ts +4 -12
- package/dist/hooks/resource/useResourceGroups.d.ts +5 -19
- package/dist/hooks/resource/useResourceMutations.d.ts +5 -61
- package/dist/hooks/resource/useResourceSearch.d.ts +5 -34
- package/dist/hooks/resource/useResourceType.d.ts +6 -19
- package/dist/hooks/resource/useResourceTypes.d.ts +5 -20
- package/dist/hooks/resource/useResources.d.ts +32 -60
- package/dist/hooks/resource/useStreamAction.d.ts +4 -8
- package/dist/hooks/resource/useWatchState.d.ts +15 -22
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2985 -2906
- package/dist/logs.d.ts +14 -0
- package/dist/metric.d.ts +35 -0
- package/dist/models-Cg1YRHQm.js +583 -0
- package/dist/models-DSGyy8lg.cjs +1 -0
- package/dist/models-UwESEW2B.js +1232 -0
- package/dist/models-dzj-SsFZ.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +13 -8
- package/dist/models.js +118 -209
- package/dist/networker.d.ts +31 -0
- package/dist/resource/v2/ancillary.d.ts +161 -0
- package/dist/resource/v2/client.d.ts +57 -0
- package/dist/resource/v2/domain.d.ts +204 -0
- package/dist/resource/v2/graph-client.d.ts +7 -0
- package/dist/resource/v2/graph.d.ts +35 -0
- package/dist/resource/v2/host.d.ts +129 -0
- package/dist/resource/v2/requestJSON.d.ts +2 -0
- package/dist/resource/v2/value.d.ts +9 -0
- package/dist/resourceQueryKeys.d.ts +8 -4
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +1 -1
- package/dist/search.d.ts +9 -11
- package/dist/servicewrapper-BOM6A8IG.cjs +1 -0
- package/dist/servicewrapper-Bda7yi8z.js +684 -0
- package/dist/types/watch.d.ts +48 -21
- package/dist/utils/activeSyncAggregator.d.ts +2 -2
- package/package.json +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/index.d.ts +0 -2
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models.d.ts +0 -1199
- package/dist/compat/resource.d.ts +0 -4
- package/dist/hooks/connection/useConnectionNamespaces.d.ts +0 -21
- package/dist/legacyEnum-CKqyRmbX.js +0 -15
- package/dist/legacyEnum-DkV5yRdA.cjs +0 -1
- package/dist/models-BxypsesT.cjs +0 -1
- package/dist/models-C6jzDokQ.js +0 -347
- package/dist/models-CT4kHj47.js +0 -2444
- package/dist/models-DQl7tqts.cjs +0 -1
- package/dist/servicewrapper-C6SURWw1.js +0 -850
- package/dist/servicewrapper-COMjQHnY.cjs +0 -1
- package/dist/utils/resourceKey.d.ts +0 -12
|
@@ -0,0 +1,1232 @@
|
|
|
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 a = typeof e == "string" ? JSON.parse(e) : e;
|
|
13
|
+
return new Z(a);
|
|
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 a = typeof e == "string" ? JSON.parse(e) : e;
|
|
28
|
+
return new G(a);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
let K = 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 a = S, i = f;
|
|
45
|
+
let s = typeof e == "string" ? JSON.parse(e) : e;
|
|
46
|
+
return "paths" in s && (s.paths = a(s.paths)), "selectors" in s && (s.selectors = i(s.selectors)), new fe(s);
|
|
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 K()), "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 a = ze, i = S;
|
|
62
|
+
let s = typeof e == "string" ? JSON.parse(e) : e;
|
|
63
|
+
return "target_builder" in s && (s.target_builder = a(s.target_builder)), "default_command" in s && (s.default_command = i(s.default_command)), new he(s);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
class V {
|
|
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 a = f, i = f, s = S;
|
|
82
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
83
|
+
return "labels" in n && (n.labels = a(n.labels)), "params" in n && (n.params = i(n.params)), "command" in n && (n.command = s(n.command)), new V(n);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
class q {
|
|
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 a = f, i = f, s = Ae, n = Ie, H = S;
|
|
106
|
+
let c = typeof e == "string" ? JSON.parse(e) : e;
|
|
107
|
+
return "params" in c && (c.params = a(c.params)), "labels" in c && (c.labels = i(c.labels)), "reference" in c && (c.reference = s(c.reference)), "route" in c && (c.route = n(c.route)), "command" in c && (c.command = H(c.command)), new q(c);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
const S = o(l), f = p(l, l), ze = K.createFrom, xe = G.createFrom, Ae = d(xe), ke = Z.createFrom, Ie = d(ke), Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
111
|
+
__proto__: null,
|
|
112
|
+
ActionTargetBuilder: K,
|
|
113
|
+
Handler: Pe,
|
|
114
|
+
Session: V,
|
|
115
|
+
SessionOptions: q
|
|
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 a = typeof e == "string" ? JSON.parse(e) : e;
|
|
129
|
+
return new Q(a);
|
|
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 a = Re, i = Be;
|
|
154
|
+
let s = typeof e == "string" ? JSON.parse(e) : e;
|
|
155
|
+
return "labels" in s && (s.labels = a(s.labels)), "encryption" in s && (s.encryption = i(s.encryption)), new L(s);
|
|
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 a = typeof e == "string" ? JSON.parse(e) : e;
|
|
171
|
+
return new h(a);
|
|
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 Re = 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 a = be;
|
|
213
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
214
|
+
return "tags" in i && (i.tags = a(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 a = typeof e == "string" ? JSON.parse(e) : e;
|
|
229
|
+
return new v(a);
|
|
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 a = Ue;
|
|
246
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
247
|
+
return "daily_stats" in i && (i.daily_stats = a(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 a = typeof e == "string" ? JSON.parse(e) : e;
|
|
266
|
+
return new X(a);
|
|
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 a = be;
|
|
286
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
287
|
+
return "capabilities" in i && (i.capabilities = a(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 a = typeof e == "string" ? JSON.parse(e) : e;
|
|
311
|
+
return new u(a);
|
|
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 a = He;
|
|
326
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
327
|
+
return "resource" in i && (i.resource = a(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 a = typeof e == "string" ? JSON.parse(e) : e;
|
|
342
|
+
return new T(a);
|
|
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 a = Ge, i = Ve, s = O, n = O, H = O, c = qe, Je = Qe, Ee = We;
|
|
379
|
+
let r = typeof e == "string" ? JSON.parse(e) : e;
|
|
380
|
+
return "author" in r && (r.author = a(r.author)), "maintainers" in r && (r.maintainers = i(r.maintainers)), "tags" in r && (r.tags = s(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 a = O;
|
|
398
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
399
|
+
return "resources" in i && (i.resources = a(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 a = Ye;
|
|
413
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
414
|
+
return "colors" in i && (i.colors = a(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 a = typeof e == "string" ? JSON.parse(e) : e;
|
|
430
|
+
return new b(a);
|
|
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 a = typeof e == "string" ? JSON.parse(e) : e;
|
|
454
|
+
return new N(a);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
const De = w.createFrom, He = o(De), Ze = u.createFrom, Ge = d(Ze), Ke = T.createFrom, Ve = o(Ke), O = o(l), qe = 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 a = pe, i = pe, s = tt;
|
|
544
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
545
|
+
return "data" in n && (n.data = a(n.data)), "labels" in n && (n.labels = i(n.labels)), "lifecycle" in n && (n.lifecycle = s(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 a = it;
|
|
561
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
562
|
+
return "triggers" in i && (i.triggers = a(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 a = st;
|
|
577
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
578
|
+
return "auto_connect" in i && (i.auto_connect = a(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 a = rt;
|
|
607
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
608
|
+
return "connection" in i && (i.connection = a(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 a = lt, i = ct;
|
|
630
|
+
let s = typeof e == "string" ? JSON.parse(e) : e;
|
|
631
|
+
return "metadata" in s && (s.metadata = a(s.metadata)), "capabilities" in s && (s.capabilities = i(s.capabilities)), new Oe(s);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
const pe = p(l, l), tt = J.createFrom, it = o(l), at = ee.createFrom, st = d(at), 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 a = dt;
|
|
650
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
651
|
+
return "settings" in i && (i.settings = a(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
|
+
/** Creates a new Setting instance. */
|
|
697
|
+
constructor(e = {}) {
|
|
698
|
+
"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), Object.assign(this, e);
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Creates a new Setting instance from a string or object.
|
|
702
|
+
*/
|
|
703
|
+
static createFrom(e = {}) {
|
|
704
|
+
const a = ft, i = mt;
|
|
705
|
+
let s = typeof e == "string" ? JSON.parse(e) : e;
|
|
706
|
+
return "options" in s && (s.options = a(s.options)), "fileSelection" in s && (s.fileSelection = i(s.fileSelection)), new E(s);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
class P {
|
|
710
|
+
/**
|
|
711
|
+
* Whether file selection should be allowed.
|
|
712
|
+
*/
|
|
713
|
+
enabled;
|
|
714
|
+
/**
|
|
715
|
+
* Allow the selection of folders.
|
|
716
|
+
*/
|
|
717
|
+
allowFolders;
|
|
718
|
+
/**
|
|
719
|
+
* The allowed extensions that should be selectable.
|
|
720
|
+
*/
|
|
721
|
+
extensions;
|
|
722
|
+
/**
|
|
723
|
+
* Multiple files can be selected.
|
|
724
|
+
*/
|
|
725
|
+
multiple;
|
|
726
|
+
/**
|
|
727
|
+
* Whether the file selection should be saved as a relative path.
|
|
728
|
+
*/
|
|
729
|
+
relative;
|
|
730
|
+
/**
|
|
731
|
+
* DefaultPath is the default path for the file selection.
|
|
732
|
+
*/
|
|
733
|
+
defaultPath;
|
|
734
|
+
/** Creates a new SettingFileSelection instance. */
|
|
735
|
+
constructor(e = {}) {
|
|
736
|
+
"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);
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Creates a new SettingFileSelection instance from a string or object.
|
|
740
|
+
*/
|
|
741
|
+
static createFrom(e = {}) {
|
|
742
|
+
const a = _t;
|
|
743
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
744
|
+
return "extensions" in i && (i.extensions = a(i.extensions)), new P(i);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
class z {
|
|
748
|
+
/**
|
|
749
|
+
* Label is the human readable label of the option
|
|
750
|
+
*/
|
|
751
|
+
label;
|
|
752
|
+
/**
|
|
753
|
+
* Description is an optional human readable description of the option
|
|
754
|
+
*/
|
|
755
|
+
description;
|
|
756
|
+
/**
|
|
757
|
+
* Value is the value of the option
|
|
758
|
+
*/
|
|
759
|
+
value;
|
|
760
|
+
/** Creates a new SettingOption instance. */
|
|
761
|
+
constructor(e = {}) {
|
|
762
|
+
"label" in e || (this.label = ""), "description" in e || (this.description = ""), "value" in e || (this.value = null), Object.assign(this, e);
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Creates a new SettingOption instance from a string or object.
|
|
766
|
+
*/
|
|
767
|
+
static createFrom(e = {}) {
|
|
768
|
+
let a = typeof e == "string" ? JSON.parse(e) : e;
|
|
769
|
+
return new z(a);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
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 || {});
|
|
773
|
+
class ie {
|
|
774
|
+
valid;
|
|
775
|
+
code;
|
|
776
|
+
message;
|
|
777
|
+
/** Creates a new ValidationResult instance. */
|
|
778
|
+
constructor(e = {}) {
|
|
779
|
+
"valid" in e || (this.valid = !1), "code" in e || (this.code = ""), "message" in e || (this.message = ""), Object.assign(this, e);
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Creates a new ValidationResult instance from a string or object.
|
|
783
|
+
*/
|
|
784
|
+
static createFrom(e = {}) {
|
|
785
|
+
let a = typeof e == "string" ? JSON.parse(e) : e;
|
|
786
|
+
return new ie(a);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
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({
|
|
790
|
+
__proto__: null,
|
|
791
|
+
Category: te,
|
|
792
|
+
Setting: E,
|
|
793
|
+
SettingFileSelection: P,
|
|
794
|
+
SettingOption: z,
|
|
795
|
+
SettingType: Se,
|
|
796
|
+
ValidationResult: ie
|
|
797
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
798
|
+
class ae {
|
|
799
|
+
plugin;
|
|
800
|
+
/** Creates a new GetPluginComponentsInput instance. */
|
|
801
|
+
constructor(e = {}) {
|
|
802
|
+
"plugin" in e || (this.plugin = ""), Object.assign(this, e);
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Creates a new GetPluginComponentsInput instance from a string or object.
|
|
806
|
+
*/
|
|
807
|
+
static createFrom(e = {}) {
|
|
808
|
+
let a = typeof e == "string" ? JSON.parse(e) : e;
|
|
809
|
+
return new ae(a);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
class se {
|
|
813
|
+
plugin;
|
|
814
|
+
resource;
|
|
815
|
+
area;
|
|
816
|
+
/** Creates a new GetResourceAreaComponentInput instance. */
|
|
817
|
+
constructor(e = {}) {
|
|
818
|
+
"plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), "area" in e || (this.area = ""), Object.assign(this, e);
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Creates a new GetResourceAreaComponentInput instance from a string or object.
|
|
822
|
+
*/
|
|
823
|
+
static createFrom(e = {}) {
|
|
824
|
+
let a = typeof e == "string" ? JSON.parse(e) : e;
|
|
825
|
+
return new se(a);
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
class ne {
|
|
829
|
+
plugin;
|
|
830
|
+
resource;
|
|
831
|
+
/** Creates a new GetResourceComponentsInput instance. */
|
|
832
|
+
constructor(e = {}) {
|
|
833
|
+
"plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), Object.assign(this, e);
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Creates a new GetResourceComponentsInput instance from a string or object.
|
|
837
|
+
*/
|
|
838
|
+
static createFrom(e = {}) {
|
|
839
|
+
let a = typeof e == "string" ? JSON.parse(e) : e;
|
|
840
|
+
return new ne(a);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
class re {
|
|
844
|
+
owner;
|
|
845
|
+
name;
|
|
846
|
+
plugin;
|
|
847
|
+
resource;
|
|
848
|
+
area;
|
|
849
|
+
extension;
|
|
850
|
+
/** Creates a new ResourceComponent instance. */
|
|
851
|
+
constructor(e = {}) {
|
|
852
|
+
"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);
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* Creates a new ResourceComponent instance from a string or object.
|
|
856
|
+
*/
|
|
857
|
+
static createFrom(e = {}) {
|
|
858
|
+
let a = typeof e == "string" ? JSON.parse(e) : e;
|
|
859
|
+
return new re(a);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
var ve = /* @__PURE__ */ ((t) => (t.$zero = "", t.ResourceComponentAreaSidebar = "SIDEBAR", t.ResourceComponentAreaTable = "TABLE", t))(ve || {});
|
|
863
|
+
const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
864
|
+
__proto__: null,
|
|
865
|
+
GetPluginComponentsInput: ae,
|
|
866
|
+
GetResourceAreaComponentInput: se,
|
|
867
|
+
GetResourceComponentsInput: ne,
|
|
868
|
+
ResourceComponent: re,
|
|
869
|
+
ResourceComponentArea: ve
|
|
870
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
871
|
+
class y {
|
|
872
|
+
label;
|
|
873
|
+
label_selector;
|
|
874
|
+
paths;
|
|
875
|
+
selectors;
|
|
876
|
+
/** Creates a new ActionTargetBuilder instance. */
|
|
877
|
+
constructor(e = {}) {
|
|
878
|
+
"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);
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Creates a new ActionTargetBuilder instance from a string or object.
|
|
882
|
+
*/
|
|
883
|
+
static createFrom(e = {}) {
|
|
884
|
+
const a = bt, i = ce;
|
|
885
|
+
let s = typeof e == "string" ? JSON.parse(e) : e;
|
|
886
|
+
return "paths" in s && (s.paths = a(s.paths)), "selectors" in s && (s.selectors = i(s.selectors)), new y(s);
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
let gt = class ue {
|
|
890
|
+
plugin;
|
|
891
|
+
resource;
|
|
892
|
+
target_builder;
|
|
893
|
+
/** Creates a new Handler instance. */
|
|
894
|
+
constructor(e = {}) {
|
|
895
|
+
"plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), "target_builder" in e || (this.target_builder = new y()), Object.assign(this, e);
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* Creates a new Handler instance from a string or object.
|
|
899
|
+
*/
|
|
900
|
+
static createFrom(e = {}) {
|
|
901
|
+
const a = yt;
|
|
902
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
903
|
+
return "target_builder" in i && (i.target_builder = a(i.target_builder)), new ue(i);
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
class le {
|
|
907
|
+
id;
|
|
908
|
+
plugin_id;
|
|
909
|
+
connection_id;
|
|
910
|
+
resource_key;
|
|
911
|
+
resource_id;
|
|
912
|
+
options;
|
|
913
|
+
status;
|
|
914
|
+
active_sources;
|
|
915
|
+
created_at;
|
|
916
|
+
/** Creates a new LogSession instance. */
|
|
917
|
+
constructor(e = {}) {
|
|
918
|
+
"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);
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Creates a new LogSession instance from a string or object.
|
|
922
|
+
*/
|
|
923
|
+
static createFrom(e = {}) {
|
|
924
|
+
const a = Ft, i = St;
|
|
925
|
+
let s = typeof e == "string" ? JSON.parse(e) : e;
|
|
926
|
+
return "options" in s && (s.options = a(s.options)), "active_sources" in s && (s.active_sources = i(s.active_sources)), new le(s);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
class F {
|
|
930
|
+
target;
|
|
931
|
+
follow;
|
|
932
|
+
include_previous;
|
|
933
|
+
include_timestamps;
|
|
934
|
+
tail_lines;
|
|
935
|
+
since_seconds;
|
|
936
|
+
since_time;
|
|
937
|
+
limit_bytes;
|
|
938
|
+
include_source_events;
|
|
939
|
+
params;
|
|
940
|
+
/** Creates a new LogSessionOptions instance. */
|
|
941
|
+
constructor(e = {}) {
|
|
942
|
+
"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);
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* Creates a new LogSessionOptions instance from a string or object.
|
|
946
|
+
*/
|
|
947
|
+
static createFrom(e = {}) {
|
|
948
|
+
const a = ce;
|
|
949
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
950
|
+
return "params" in i && (i.params = a(i.params)), new F(i);
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
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 || {});
|
|
954
|
+
class x {
|
|
955
|
+
id;
|
|
956
|
+
labels;
|
|
957
|
+
/** Creates a new LogSource instance. */
|
|
958
|
+
constructor(e = {}) {
|
|
959
|
+
"id" in e || (this.id = ""), "labels" in e || (this.labels = {}), Object.assign(this, e);
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Creates a new LogSource instance from a string or object.
|
|
963
|
+
*/
|
|
964
|
+
static createFrom(e = {}) {
|
|
965
|
+
const a = ce;
|
|
966
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
967
|
+
return "labels" in i && (i.labels = a(i.labels)), new x(i);
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
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 || {});
|
|
971
|
+
const bt = o(l), ce = p(l, l), yt = y.createFrom, Ft = F.createFrom, Ot = x.createFrom, St = o(Ot), Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
972
|
+
__proto__: null,
|
|
973
|
+
ActionTargetBuilder: y,
|
|
974
|
+
Handler: gt,
|
|
975
|
+
LogSession: le,
|
|
976
|
+
LogSessionOptions: F,
|
|
977
|
+
LogSessionStatus: Te,
|
|
978
|
+
LogSource: x,
|
|
979
|
+
LogStreamCommand: we
|
|
980
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
981
|
+
class A {
|
|
982
|
+
metric_id;
|
|
983
|
+
min;
|
|
984
|
+
max;
|
|
985
|
+
avg;
|
|
986
|
+
sum;
|
|
987
|
+
p50;
|
|
988
|
+
p90;
|
|
989
|
+
p99;
|
|
990
|
+
count;
|
|
991
|
+
window;
|
|
992
|
+
labels;
|
|
993
|
+
/** Creates a new AggregateValue instance. */
|
|
994
|
+
constructor(e = {}) {
|
|
995
|
+
"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);
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* Creates a new AggregateValue instance from a string or object.
|
|
999
|
+
*/
|
|
1000
|
+
static createFrom(e = {}) {
|
|
1001
|
+
const a = D;
|
|
1002
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
1003
|
+
return "labels" in i && (i.labels = a(i.labels)), new A(i);
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
class k {
|
|
1007
|
+
min;
|
|
1008
|
+
max;
|
|
1009
|
+
color;
|
|
1010
|
+
/** Creates a new ColorRange instance. */
|
|
1011
|
+
constructor(e = {}) {
|
|
1012
|
+
"min" in e || (this.min = 0), "max" in e || (this.max = 0), "color" in e || (this.color = ""), Object.assign(this, e);
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Creates a new ColorRange instance from a string or object.
|
|
1016
|
+
*/
|
|
1017
|
+
static createFrom(e = {}) {
|
|
1018
|
+
let a = typeof e == "string" ? JSON.parse(e) : e;
|
|
1019
|
+
return new k(a);
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
class I {
|
|
1023
|
+
metric_id;
|
|
1024
|
+
value;
|
|
1025
|
+
timestamp;
|
|
1026
|
+
labels;
|
|
1027
|
+
/** Creates a new CurrentValue instance. */
|
|
1028
|
+
constructor(e = {}) {
|
|
1029
|
+
"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);
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* Creates a new CurrentValue instance from a string or object.
|
|
1033
|
+
*/
|
|
1034
|
+
static createFrom(e = {}) {
|
|
1035
|
+
const a = D;
|
|
1036
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
1037
|
+
return "labels" in i && (i.labels = a(i.labels)), new I(i);
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
class R {
|
|
1041
|
+
timestamp;
|
|
1042
|
+
value;
|
|
1043
|
+
labels;
|
|
1044
|
+
/** Creates a new DataPoint instance. */
|
|
1045
|
+
constructor(e = {}) {
|
|
1046
|
+
"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);
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Creates a new DataPoint instance from a string or object.
|
|
1050
|
+
*/
|
|
1051
|
+
static createFrom(e = {}) {
|
|
1052
|
+
const a = D;
|
|
1053
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
1054
|
+
return "labels" in i && (i.labels = a(i.labels)), new R(i);
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
class oe {
|
|
1058
|
+
resource;
|
|
1059
|
+
metrics;
|
|
1060
|
+
/** Creates a new Handler instance. */
|
|
1061
|
+
constructor(e = {}) {
|
|
1062
|
+
"resource" in e || (this.resource = ""), "metrics" in e || (this.metrics = []), Object.assign(this, e);
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Creates a new Handler instance from a string or object.
|
|
1066
|
+
*/
|
|
1067
|
+
static createFrom(e = {}) {
|
|
1068
|
+
const a = ut;
|
|
1069
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
1070
|
+
return "metrics" in i && (i.metrics = a(i.metrics)), new oe(i);
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
class B {
|
|
1074
|
+
id;
|
|
1075
|
+
name;
|
|
1076
|
+
unit;
|
|
1077
|
+
icon;
|
|
1078
|
+
color_ranges;
|
|
1079
|
+
format_string;
|
|
1080
|
+
supported_shapes;
|
|
1081
|
+
chart_group;
|
|
1082
|
+
/** Creates a new MetricDescriptor instance. */
|
|
1083
|
+
constructor(e = {}) {
|
|
1084
|
+
"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);
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Creates a new MetricDescriptor instance from a string or object.
|
|
1088
|
+
*/
|
|
1089
|
+
static createFrom(e = {}) {
|
|
1090
|
+
const a = wt, i = Nt;
|
|
1091
|
+
let s = typeof e == "string" ? JSON.parse(e) : e;
|
|
1092
|
+
return "color_ranges" in s && (s.color_ranges = a(s.color_ranges)), "supported_shapes" in s && (s.supported_shapes = i(s.supported_shapes)), new B(s);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
class C {
|
|
1096
|
+
time_series;
|
|
1097
|
+
current_value;
|
|
1098
|
+
aggregate_value;
|
|
1099
|
+
/** Creates a new MetricResult instance. */
|
|
1100
|
+
constructor(e = {}) {
|
|
1101
|
+
Object.assign(this, e);
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Creates a new MetricResult instance from a string or object.
|
|
1105
|
+
*/
|
|
1106
|
+
static createFrom(e = {}) {
|
|
1107
|
+
const a = Jt, i = Pt, s = xt;
|
|
1108
|
+
let n = typeof e == "string" ? JSON.parse(e) : e;
|
|
1109
|
+
return "time_series" in n && (n.time_series = a(n.time_series)), "current_value" in n && (n.current_value = i(n.current_value)), "aggregate_value" in n && (n.aggregate_value = s(n.aggregate_value)), new C(n);
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
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 || {});
|
|
1113
|
+
class de {
|
|
1114
|
+
success;
|
|
1115
|
+
results;
|
|
1116
|
+
error;
|
|
1117
|
+
/** Creates a new QueryResponse instance. */
|
|
1118
|
+
constructor(e = {}) {
|
|
1119
|
+
"success" in e || (this.success = !1), "results" in e || (this.results = []), "error" in e || (this.error = ""), Object.assign(this, e);
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* Creates a new QueryResponse instance from a string or object.
|
|
1123
|
+
*/
|
|
1124
|
+
static createFrom(e = {}) {
|
|
1125
|
+
const a = kt;
|
|
1126
|
+
let i = typeof e == "string" ? JSON.parse(e) : e;
|
|
1127
|
+
return "results" in i && (i.results = a(i.results)), new de(i);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
class U {
|
|
1131
|
+
metric_id;
|
|
1132
|
+
data_points;
|
|
1133
|
+
labels;
|
|
1134
|
+
/** Creates a new TimeSeries instance. */
|
|
1135
|
+
constructor(e = {}) {
|
|
1136
|
+
"metric_id" in e || (this.metric_id = ""), "data_points" in e || (this.data_points = []), "labels" in e || (this.labels = {}), Object.assign(this, e);
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Creates a new TimeSeries instance from a string or object.
|
|
1140
|
+
*/
|
|
1141
|
+
static createFrom(e = {}) {
|
|
1142
|
+
const a = Rt, i = D;
|
|
1143
|
+
let s = typeof e == "string" ? JSON.parse(e) : e;
|
|
1144
|
+
return "data_points" in s && (s.data_points = a(s.data_points)), "labels" in s && (s.labels = i(s.labels)), new U(s);
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
const D = p(l, l), vt = B.createFrom, ut = o(vt), Tt = k.createFrom, wt = o(Tt), Nt = o(l), jt = U.createFrom, Jt = d(jt), Et = I.createFrom, Pt = d(Et), zt = A.createFrom, xt = d(zt), At = C.createFrom, kt = o(At), It = R.createFrom, Rt = o(It), qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1148
|
+
__proto__: null,
|
|
1149
|
+
AggregateValue: A,
|
|
1150
|
+
ColorRange: k,
|
|
1151
|
+
CurrentValue: I,
|
|
1152
|
+
DataPoint: R,
|
|
1153
|
+
Handler: oe,
|
|
1154
|
+
MetricDescriptor: B,
|
|
1155
|
+
MetricResult: C,
|
|
1156
|
+
MetricShape: Ne,
|
|
1157
|
+
MetricUnit: je,
|
|
1158
|
+
QueryResponse: de,
|
|
1159
|
+
TimeSeries: U
|
|
1160
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1161
|
+
export {
|
|
1162
|
+
ve as $,
|
|
1163
|
+
W as A,
|
|
1164
|
+
we as B,
|
|
1165
|
+
Fe as C,
|
|
1166
|
+
Y as D,
|
|
1167
|
+
C as E,
|
|
1168
|
+
Q as F,
|
|
1169
|
+
ae as G,
|
|
1170
|
+
Pe as H,
|
|
1171
|
+
Ne as I,
|
|
1172
|
+
je as J,
|
|
1173
|
+
u as K,
|
|
1174
|
+
le as L,
|
|
1175
|
+
B as M,
|
|
1176
|
+
ye as N,
|
|
1177
|
+
m as O,
|
|
1178
|
+
_ as P,
|
|
1179
|
+
de as Q,
|
|
1180
|
+
X as R,
|
|
1181
|
+
q as S,
|
|
1182
|
+
T,
|
|
1183
|
+
w as U,
|
|
1184
|
+
M as V,
|
|
1185
|
+
g as W,
|
|
1186
|
+
b as X,
|
|
1187
|
+
me as Y,
|
|
1188
|
+
_e as Z,
|
|
1189
|
+
h as _,
|
|
1190
|
+
V as a,
|
|
1191
|
+
ge as a0,
|
|
1192
|
+
P as a1,
|
|
1193
|
+
z as a2,
|
|
1194
|
+
Se as a3,
|
|
1195
|
+
N as a4,
|
|
1196
|
+
U as a5,
|
|
1197
|
+
Ht as a6,
|
|
1198
|
+
Ct as a7,
|
|
1199
|
+
Vt as a8,
|
|
1200
|
+
qt as a9,
|
|
1201
|
+
Ut as aa,
|
|
1202
|
+
Dt as ab,
|
|
1203
|
+
Gt as ac,
|
|
1204
|
+
Zt as ad,
|
|
1205
|
+
Kt as ae,
|
|
1206
|
+
j as af,
|
|
1207
|
+
L as b,
|
|
1208
|
+
Oe as c,
|
|
1209
|
+
$ as d,
|
|
1210
|
+
E as e,
|
|
1211
|
+
ie as f,
|
|
1212
|
+
te as g,
|
|
1213
|
+
re as h,
|
|
1214
|
+
gt as i,
|
|
1215
|
+
oe as j,
|
|
1216
|
+
et as k,
|
|
1217
|
+
ee as l,
|
|
1218
|
+
Me as m,
|
|
1219
|
+
$e as n,
|
|
1220
|
+
J as o,
|
|
1221
|
+
Xe as p,
|
|
1222
|
+
K as q,
|
|
1223
|
+
A as r,
|
|
1224
|
+
k as s,
|
|
1225
|
+
I as t,
|
|
1226
|
+
R as u,
|
|
1227
|
+
se as v,
|
|
1228
|
+
ne as w,
|
|
1229
|
+
F as x,
|
|
1230
|
+
Te as y,
|
|
1231
|
+
x as z
|
|
1232
|
+
};
|