@omniviewdev/runtime 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.js +183 -186
  3. package/dist/calls-Bg_uMVc9.cjs +1 -0
  4. package/dist/{calls-C1yoW06C.js → calls-BvZkVSse.js} +11 -5
  5. package/dist/context/settings/SettingsContext.d.ts +1 -1
  6. package/dist/{events-CtgYnKmS.cjs → events-DnLqUWri.cjs} +1 -1
  7. package/dist/{events-Bcx6NsMp.js → events-uBheGmqm.js} +1 -1
  8. package/dist/hooks/resource/useResource.d.ts +1 -1
  9. package/dist/index-BVi9X4oU.cjs +6 -0
  10. package/dist/{index-D2mKAO8s.js → index-zyAgCXOO.js} +52 -52
  11. package/dist/index.cjs +4 -4
  12. package/dist/index.js +2940 -2104
  13. package/dist/{legacyEnum-DORXlU_y.js → legacyEnum-CKqyRmbX.js} +3 -1
  14. package/dist/models-CT4kHj47.js +2444 -0
  15. package/dist/models-DQl7tqts.cjs +1 -0
  16. package/dist/models-DU8pTcoZ.js +142 -0
  17. package/dist/models-KV9f8Ceh.cjs +1 -0
  18. package/dist/models.cjs +1 -1
  19. package/dist/models.js +229 -232
  20. package/dist/resourceIcons.d.ts +2 -2
  21. package/dist/router/Link.d.ts +1 -1
  22. package/dist/router/index.d.ts +1 -1
  23. package/dist/router/usePluginRouter.d.ts +1 -1
  24. package/dist/runtime.cjs +1 -1
  25. package/dist/runtime.js +6 -6
  26. package/dist/servicewrapper-CCW7kIVs.cjs +1 -0
  27. package/dist/servicewrapper-Q1ww3DUo.js +849 -0
  28. package/dist/types/app.d.ts +1 -1
  29. package/package.json +22 -16
  30. package/dist/calls-DUhq86Ki.cjs +0 -1
  31. package/dist/graphservice-1J8q3eeL.cjs +0 -1
  32. package/dist/graphservice-CUg1PUsC.js +0 -852
  33. package/dist/index-D_aIcqH0.cjs +0 -6
  34. package/dist/models-4EtitZnM.js +0 -2447
  35. package/dist/models-BQsuB2Lj.cjs +0 -1
  36. package/dist/models-BpVWHqlF.cjs +0 -1
  37. package/dist/models-C5sf8GNY.js +0 -145
@@ -1,2447 +0,0 @@
1
- var Ct = Object.defineProperty;
2
- var Rt = (i, e, a) => e in i ? Ct(i, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : i[e] = a;
3
- var t = (i, e, a) => Rt(i, typeof e != "symbol" ? e + "" : e, a);
4
- import { M as d, A as l, N as f, a as c, B as Bt } from "./index-D2mKAO8s.js";
5
- class W {
6
- /** Creates a new Category instance. */
7
- constructor(e = {}) {
8
- t(this, "settings");
9
- t(this, "id");
10
- t(this, "label");
11
- t(this, "description");
12
- t(this, "icon");
13
- "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);
14
- }
15
- /**
16
- * Creates a new Category instance from a string or object.
17
- */
18
- static createFrom(e = {}) {
19
- const a = Ut;
20
- let s = typeof e == "string" ? JSON.parse(e) : e;
21
- return "settings" in s && (s.settings = a(s.settings)), new W(s);
22
- }
23
- }
24
- class J {
25
- /** Creates a new Setting instance. */
26
- constructor(e = {}) {
27
- /**
28
- * ID is the unique identifier of the setting
29
- */
30
- t(this, "id");
31
- /**
32
- * Label is the human readable label of the setting
33
- */
34
- t(this, "label");
35
- /**
36
- * Description is the human readable description of the setting
37
- */
38
- t(this, "description");
39
- /**
40
- * Type is the type of the setting
41
- */
42
- t(this, "type");
43
- /**
44
- * Value is the value of the setting
45
- */
46
- t(this, "value");
47
- /**
48
- * Default is the default value of the setting
49
- */
50
- t(this, "default");
51
- /**
52
- * Options is an optional list of options for a select setting
53
- */
54
- t(this, "options");
55
- /**
56
- * FileSelection is an optional setting for file selection
57
- */
58
- t(this, "fileSelection");
59
- /**
60
- * Sensitive is a flag to indicate if the setting is sensitive and should not be
61
- * shown in the UI, nor allowed to be used by any other plugin.
62
- */
63
- t(this, "sensitive");
64
- /**
65
- * DevOnly indicates the setting should only be visible when dev mode is active.
66
- */
67
- t(this, "devOnly");
68
- "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);
69
- }
70
- /**
71
- * Creates a new Setting instance from a string or object.
72
- */
73
- static createFrom(e = {}) {
74
- const a = Dt, s = Zt;
75
- let n = typeof e == "string" ? JSON.parse(e) : e;
76
- return "options" in n && (n.options = a(n.options)), "fileSelection" in n && (n.fileSelection = s(n.fileSelection)), new J(n);
77
- }
78
- }
79
- class x {
80
- /** Creates a new SettingFileSelection instance. */
81
- constructor(e = {}) {
82
- /**
83
- * Whether file selection should be allowed.
84
- */
85
- t(this, "enabled");
86
- /**
87
- * Allow the selection of folders.
88
- */
89
- t(this, "allowFolders");
90
- /**
91
- * The allowed extensions that should be selectable.
92
- */
93
- t(this, "extensions");
94
- /**
95
- * Multiple files can be selected.
96
- */
97
- t(this, "multiple");
98
- /**
99
- * Whether the file selection should be saved as a relative path.
100
- */
101
- t(this, "relative");
102
- /**
103
- * DefaultPath is the default path for the file selection.
104
- */
105
- t(this, "defaultPath");
106
- "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);
107
- }
108
- /**
109
- * Creates a new SettingFileSelection instance from a string or object.
110
- */
111
- static createFrom(e = {}) {
112
- const a = Gt;
113
- let s = typeof e == "string" ? JSON.parse(e) : e;
114
- return "extensions" in s && (s.extensions = a(s.extensions)), new x(s);
115
- }
116
- }
117
- class E {
118
- /** Creates a new SettingOption instance. */
119
- constructor(e = {}) {
120
- /**
121
- * Label is the human readable label of the option
122
- */
123
- t(this, "label");
124
- /**
125
- * Description is an optional human readable description of the option
126
- */
127
- t(this, "description");
128
- /**
129
- * Value is the value of the option
130
- */
131
- t(this, "value");
132
- "label" in e || (this.label = ""), "description" in e || (this.description = ""), "value" in e || (this.value = null), Object.assign(this, e);
133
- }
134
- /**
135
- * Creates a new SettingOption instance from a string or object.
136
- */
137
- static createFrom(e = {}) {
138
- let a = typeof e == "string" ? JSON.parse(e) : e;
139
- return new E(a);
140
- }
141
- }
142
- var Pe = /* @__PURE__ */ ((i) => (i.$zero = "", i.Text = "text", i.Select = "select", i.MultiSelect = "multiselect", i.Integer = "integer", i.Float = "float", i.Toggle = "toggle", i.Color = "color", i.DateTime = "datetime", i.Password = "password", i))(Pe || {});
143
- class Y {
144
- /** Creates a new ValidationResult instance. */
145
- constructor(e = {}) {
146
- t(this, "valid");
147
- t(this, "code");
148
- t(this, "message");
149
- "valid" in e || (this.valid = !1), "code" in e || (this.code = ""), "message" in e || (this.message = ""), Object.assign(this, e);
150
- }
151
- /**
152
- * Creates a new ValidationResult instance from a string or object.
153
- */
154
- static createFrom(e = {}) {
155
- let a = typeof e == "string" ? JSON.parse(e) : e;
156
- return new Y(a);
157
- }
158
- }
159
- const Kt = J.createFrom, Ut = d(c, Kt), Ht = E.createFrom, Dt = l(Ht), Mt = x.createFrom, Zt = f(Mt), Gt = l(c), Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
160
- __proto__: null,
161
- Category: W,
162
- Setting: J,
163
- SettingFileSelection: x,
164
- SettingOption: E,
165
- SettingType: Pe,
166
- ValidationResult: Y
167
- }, Symbol.toStringTag, { value: "Module" }));
168
- class z {
169
- /** Creates a new PluginAuthor instance. */
170
- constructor(e = {}) {
171
- t(this, "name");
172
- t(this, "email");
173
- t(this, "url");
174
- "name" in e || (this.name = ""), "email" in e || (this.email = ""), "url" in e || (this.url = ""), Object.assign(this, e);
175
- }
176
- /**
177
- * Creates a new PluginAuthor instance from a string or object.
178
- */
179
- static createFrom(e = {}) {
180
- let a = typeof e == "string" ? JSON.parse(e) : e;
181
- return new z(a);
182
- }
183
- }
184
- var Ae = /* @__PURE__ */ ((i) => (i.$zero = "", i.PluginComponentAreaEditor = "EDITOR", i.PluginComponentAreaSidebar = "SIDEBAR", i))(Ae || {});
185
- class S {
186
- /** Creates a new PluginComponents instance. */
187
- constructor(e = {}) {
188
- t(this, "resource");
189
- "resource" in e || (this.resource = []), Object.assign(this, e);
190
- }
191
- /**
192
- * Creates a new PluginComponents instance from a string or object.
193
- */
194
- static createFrom(e = {}) {
195
- const a = Vt;
196
- let s = typeof e == "string" ? JSON.parse(e) : e;
197
- return "resource" in s && (s.resource = a(s.resource)), new S(s);
198
- }
199
- }
200
- class k {
201
- /** Creates a new PluginMaintainer instance. */
202
- constructor(e = {}) {
203
- t(this, "name");
204
- t(this, "email");
205
- "name" in e || (this.name = ""), "email" in e || (this.email = ""), Object.assign(this, e);
206
- }
207
- /**
208
- * Creates a new PluginMaintainer instance from a string or object.
209
- */
210
- static createFrom(e = {}) {
211
- let a = typeof e == "string" ? JSON.parse(e) : e;
212
- return new k(a);
213
- }
214
- }
215
- class F {
216
- /** Creates a new PluginMeta instance. */
217
- constructor(e = {}) {
218
- t(this, "id");
219
- t(this, "version");
220
- t(this, "name");
221
- t(this, "icon");
222
- t(this, "icon_url");
223
- t(this, "description");
224
- t(this, "repository");
225
- t(this, "website");
226
- t(this, "category");
227
- t(this, "license");
228
- t(this, "author");
229
- t(this, "maintainers");
230
- t(this, "tags");
231
- t(this, "dependencies");
232
- t(this, "capabilities");
233
- t(this, "theme");
234
- t(this, "components");
235
- t(this, "schema_version");
236
- t(this, "sdk_protocol_version");
237
- /**
238
- * StateIsolation is inspectable before launch; only a trusted builder's
239
- * attestation may authorize isolated startup, never self-asserted YAML.
240
- */
241
- t(this, "state_isolation");
242
- "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 O()), "components" in e || (this.components = new S()), "schema_version" in e || (this.schema_version = 0), "sdk_protocol_version" in e || (this.sdk_protocol_version = 0), Object.assign(this, e);
243
- }
244
- /**
245
- * Creates a new PluginMeta instance from a string or object.
246
- */
247
- static createFrom(e = {}) {
248
- const a = Qt, s = Yt, n = j, r = j, o = j, It = Xt, Pt = $t, At = ti;
249
- let p = typeof e == "string" ? JSON.parse(e) : e;
250
- return "author" in p && (p.author = a(p.author)), "maintainers" in p && (p.maintainers = s(p.maintainers)), "tags" in p && (p.tags = n(p.tags)), "dependencies" in p && (p.dependencies = r(p.dependencies)), "capabilities" in p && (p.capabilities = o(p.capabilities)), "theme" in p && (p.theme = It(p.theme)), "components" in p && (p.components = Pt(p.components)), "state_isolation" in p && (p.state_isolation = At(p.state_isolation)), new F(p);
251
- }
252
- }
253
- class I {
254
- /** Creates a new PluginResourceComponent instance. */
255
- constructor(e = {}) {
256
- t(this, "name");
257
- t(this, "plugin");
258
- t(this, "area");
259
- t(this, "resources");
260
- t(this, "extension");
261
- "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);
262
- }
263
- /**
264
- * Creates a new PluginResourceComponent instance from a string or object.
265
- */
266
- static createFrom(e = {}) {
267
- const a = j;
268
- let s = typeof e == "string" ? JSON.parse(e) : e;
269
- return "resources" in s && (s.resources = a(s.resources)), new I(s);
270
- }
271
- }
272
- class O {
273
- /** Creates a new PluginTheme instance. */
274
- constructor(e = {}) {
275
- t(this, "colors");
276
- "colors" in e || (this.colors = new u()), Object.assign(this, e);
277
- }
278
- /**
279
- * Creates a new PluginTheme instance from a string or object.
280
- */
281
- static createFrom(e = {}) {
282
- const a = ii;
283
- let s = typeof e == "string" ? JSON.parse(e) : e;
284
- return "colors" in s && (s.colors = a(s.colors)), new O(s);
285
- }
286
- }
287
- class u {
288
- /** Creates a new PluginThemeColors instance. */
289
- constructor(e = {}) {
290
- t(this, "primary");
291
- t(this, "secondary");
292
- t(this, "tertiary");
293
- "primary" in e || (this.primary = ""), "secondary" in e || (this.secondary = ""), "tertiary" in e || (this.tertiary = ""), Object.assign(this, e);
294
- }
295
- /**
296
- * Creates a new PluginThemeColors instance from a string or object.
297
- */
298
- static createFrom(e = {}) {
299
- let a = typeof e == "string" ? JSON.parse(e) : e;
300
- return new u(a);
301
- }
302
- }
303
- class P {
304
- /** Creates a new StateIsolationProvenance instance. */
305
- constructor(e = {}) {
306
- t(this, "schema_version");
307
- t(this, "capability");
308
- t(this, "sdk_module");
309
- t(this, "sdk_revision");
310
- /**
311
- * SDKSourceSHA256 identifies the trusted builder's exact selected working-tree
312
- * snapshot, permitting live feature edits above the reviewed capability base.
313
- * Empty is reserved for immutable, clean, commit-only trusted builds.
314
- */
315
- t(this, "sdk_source_sha256");
316
- t(this, "binary_sha256");
317
- "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);
318
- }
319
- /**
320
- * Creates a new StateIsolationProvenance instance from a string or object.
321
- */
322
- static createFrom(e = {}) {
323
- let a = typeof e == "string" ? JSON.parse(e) : e;
324
- return new P(a);
325
- }
326
- }
327
- const qt = I.createFrom, Vt = l(qt), Lt = z.createFrom, Qt = f(Lt), Wt = k.createFrom, Yt = l(Wt), j = l(c), Xt = O.createFrom, $t = S.createFrom, ei = P.createFrom, ti = f(ei), ii = u.createFrom, zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
328
- __proto__: null,
329
- PluginAuthor: z,
330
- PluginComponentArea: Ae,
331
- PluginComponents: S,
332
- PluginMaintainer: k,
333
- PluginMeta: F,
334
- PluginResourceComponent: I,
335
- PluginTheme: O,
336
- PluginThemeColors: u,
337
- StateIsolationProvenance: P
338
- }, Symbol.toStringTag, { value: "Module" }));
339
- class X {
340
- /** Creates a new AvailablePlugin instance. */
341
- constructor(e = {}) {
342
- t(this, "id");
343
- t(this, "name");
344
- t(this, "description");
345
- t(this, "icon_url");
346
- t(this, "category");
347
- t(this, "tags");
348
- t(this, "license");
349
- t(this, "official");
350
- t(this, "featured");
351
- t(this, "download_count");
352
- t(this, "average_rating");
353
- t(this, "review_count");
354
- t(this, "repository");
355
- t(this, "url");
356
- t(this, "publisher_name");
357
- t(this, "installed");
358
- t(this, "installed_version");
359
- t(this, "latest_version");
360
- t(this, "update_available");
361
- "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);
362
- }
363
- /**
364
- * Creates a new AvailablePlugin instance from a string or object.
365
- */
366
- static createFrom(e = {}) {
367
- const a = Ce;
368
- let s = typeof e == "string" ? JSON.parse(e) : e;
369
- return "tags" in s && (s.tags = a(s.tags)), new X(s);
370
- }
371
- }
372
- class A {
373
- /** Creates a new DailyStat instance. */
374
- constructor(e = {}) {
375
- t(this, "date");
376
- t(this, "count");
377
- "date" in e || (this.date = ""), "count" in e || (this.count = 0), Object.assign(this, e);
378
- }
379
- /**
380
- * Creates a new DailyStat instance from a string or object.
381
- */
382
- static createFrom(e = {}) {
383
- let a = typeof e == "string" ? JSON.parse(e) : e;
384
- return new A(a);
385
- }
386
- }
387
- class $ {
388
- /** Creates a new DownloadStats instance. */
389
- constructor(e = {}) {
390
- t(this, "total");
391
- t(this, "last_month");
392
- t(this, "last_week");
393
- t(this, "daily_stats");
394
- "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);
395
- }
396
- /**
397
- * Creates a new DownloadStats instance from a string or object.
398
- */
399
- static createFrom(e = {}) {
400
- const a = ai;
401
- let s = typeof e == "string" ? JSON.parse(e) : e;
402
- return "daily_stats" in s && (s.daily_stats = a(s.daily_stats)), new $(s);
403
- }
404
- }
405
- class ee {
406
- /** Creates a new Review instance. */
407
- constructor(e = {}) {
408
- t(this, "id");
409
- t(this, "user_id");
410
- t(this, "rating");
411
- t(this, "title");
412
- t(this, "body");
413
- t(this, "created_at");
414
- "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);
415
- }
416
- /**
417
- * Creates a new Review instance from a string or object.
418
- */
419
- static createFrom(e = {}) {
420
- let a = typeof e == "string" ? JSON.parse(e) : e;
421
- return new ee(a);
422
- }
423
- }
424
- class te {
425
- /** Creates a new VersionInfo instance. */
426
- constructor(e = {}) {
427
- t(this, "version");
428
- t(this, "description");
429
- t(this, "changelog");
430
- t(this, "min_ide_version");
431
- t(this, "max_ide_version");
432
- t(this, "capabilities");
433
- t(this, "created_at");
434
- "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);
435
- }
436
- /**
437
- * Creates a new VersionInfo instance from a string or object.
438
- */
439
- static createFrom(e = {}) {
440
- const a = Ce;
441
- let s = typeof e == "string" ? JSON.parse(e) : e;
442
- return "capabilities" in s && (s.capabilities = a(s.capabilities)), new te(s);
443
- }
444
- }
445
- const Ce = l(c), si = A.createFrom, ai = l(si), ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
446
- __proto__: null,
447
- AvailablePlugin: X,
448
- DailyStat: A,
449
- DownloadStats: $,
450
- Review: ee,
451
- VersionInfo: te
452
- }, Symbol.toStringTag, { value: "Module" }));
453
- var w = /* @__PURE__ */ ((i) => (i[i.$zero = 0] = "$zero", i[i.minDuration = -9223372036854776e3] = "minDuration", i[i.maxDuration = 9223372036854776e3] = "maxDuration", i[i.Nanosecond = 1] = "Nanosecond", i[i.Microsecond = 1e3] = "Microsecond", i[i.Millisecond = 1e6] = "Millisecond", i[i.Second = 1e9] = "Second", i[i.Minute = 6e10] = "Minute", i[i.Hour = 36e11] = "Hour", i))(w || {});
454
- const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
455
- __proto__: null,
456
- Duration: w
457
- }, Symbol.toStringTag, { value: "Module" }));
458
- var ni = /* @__PURE__ */ ((i) => (i.$zero = "", i.CapabilityResource = "resource", i.CapabilityExec = "exec", i.CapabilityNetworker = "networker", i.CapabilityLog = "log", i.CapabilityMetric = "metric", i.CapabilitySettings = "settings", i.CapabilityUI = "ui", i))(ni || {});
459
- class ie {
460
- /** Creates a new Connection instance. */
461
- constructor(e = {}) {
462
- /**
463
- * LastRefresh is the time when the auth context was last refreshed
464
- * +optional
465
- */
466
- t(this, "last_refresh");
467
- /**
468
- * Data is an optional map of arbitrary data that can be used to store additional information about the connection,
469
- * such as credential file locations, etc.
470
- *
471
- * This data is exposed to the user in the UI under the settings panel for the namespace. If the data is sensitive,
472
- * it should be stored in the SensitiveData field.
473
- * +optional
474
- */
475
- t(this, "data");
476
- /**
477
- * Labels is a map of arbitrary key-value pairs that can be used to store additional information about the connection.
478
- * Users will likely use and modify these labels to help organize and categorize their connections.
479
- */
480
- t(this, "labels");
481
- /**
482
- * Lifecycle contains IDE-managed lifecycle behavior for the connection.
483
- * This is used by the host to orchestrate behaviors like auto-connect.
484
- */
485
- t(this, "lifecycle");
486
- /**
487
- * ID is the unique identifier for the connection that makes sense to the plugin implementation.
488
- * +required
489
- */
490
- t(this, "id");
491
- /**
492
- * UID is an autogenerated unique identifier for the connection that the IDE will use to identify and track.
493
- */
494
- t(this, "uid");
495
- /**
496
- * Name is the readable name of the connection. Editable by the user.
497
- * +required
498
- */
499
- t(this, "name");
500
- /**
501
- * Description is an optional description of the connection. This is primarily for the user to customize
502
- * the visual representation of the connection.
503
- * +optional
504
- */
505
- t(this, "description");
506
- /**
507
- * Avatar is an optional image that can be used to represent the connection. This is primarily for the user to customize
508
- * the visual representation of the connection in the UI.
509
- * +optional
510
- */
511
- t(this, "avatar");
512
- /**
513
- * ExpiryTime is the amount of time before the connection expires.
514
- * +optional
515
- */
516
- t(this, "expiry_time");
517
- /**
518
- * Client is a client structure that should be populated when the connection is created and used for connections
519
- */
520
- t(this, "Client");
521
- "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 C()), "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 = w.$zero), "Client" in e || (this.Client = null), Object.assign(this, e);
522
- }
523
- /**
524
- * Creates a new Connection instance from a string or object.
525
- */
526
- static createFrom(e = {}) {
527
- const a = Ie, s = Ie, n = oi;
528
- let r = typeof e == "string" ? JSON.parse(e) : e;
529
- return "data" in r && (r.data = a(r.data)), "labels" in r && (r.labels = s(r.labels)), "lifecycle" in r && (r.lifecycle = n(r.lifecycle)), new ie(r);
530
- }
531
- }
532
- class se {
533
- /** Creates a new ConnectionAutoConnect instance. */
534
- constructor(e = {}) {
535
- t(this, "enabled");
536
- t(this, "triggers");
537
- t(this, "retry");
538
- "enabled" in e || (this.enabled = !1), "triggers" in e || (this.triggers = []), "retry" in e || (this.retry = ""), Object.assign(this, e);
539
- }
540
- /**
541
- * Creates a new ConnectionAutoConnect instance from a string or object.
542
- */
543
- static createFrom(e = {}) {
544
- const a = pi;
545
- let s = typeof e == "string" ? JSON.parse(e) : e;
546
- return "triggers" in s && (s.triggers = a(s.triggers)), new se(s);
547
- }
548
- }
549
- var ri = /* @__PURE__ */ ((i) => (i.$zero = "", i.ConnectionAutoConnectRetryNone = "NONE", i.ConnectionAutoConnectRetryOnChange = "ON_CHANGE", i))(ri || {}), ci = /* @__PURE__ */ ((i) => (i.$zero = "", i.ConnectionAutoConnectTriggerPluginStart = "PLUGIN_START", i.ConnectionAutoConnectTriggerConnectionDiscovered = "CONNECTION_DISCOVERED", i))(ci || {});
550
- class C {
551
- /** Creates a new ConnectionLifecycle instance. */
552
- constructor(e = {}) {
553
- t(this, "auto_connect");
554
- Object.assign(this, e);
555
- }
556
- /**
557
- * Creates a new ConnectionLifecycle instance from a string or object.
558
- */
559
- static createFrom(e = {}) {
560
- const a = fi;
561
- let s = typeof e == "string" ? JSON.parse(e) : e;
562
- return "auto_connect" in s && (s.auto_connect = a(s.auto_connect)), new C(s);
563
- }
564
- }
565
- class Re {
566
- /** Creates a new ConnectionStatus instance. */
567
- constructor(e = {}) {
568
- /**
569
- * Connection is the connection that the status is for.
570
- */
571
- t(this, "connection");
572
- /**
573
- * StatusCode is the status code of the connection status.
574
- */
575
- t(this, "status");
576
- /**
577
- * Error is the error that occurred when checking the connection status.
578
- */
579
- t(this, "error");
580
- /**
581
- * Message is a human readable message that describes the status.
582
- */
583
- t(this, "details");
584
- "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);
585
- }
586
- /**
587
- * Creates a new ConnectionStatus instance from a string or object.
588
- */
589
- static createFrom(e = {}) {
590
- const a = mi;
591
- let s = typeof e == "string" ? JSON.parse(e) : e;
592
- return "connection" in s && (s.connection = a(s.connection)), new Re(s);
593
- }
594
- }
595
- var li = /* @__PURE__ */ ((i) => (i.$zero = "", i.ConnectionStatusUnknown = "UNKNOWN", i.ConnectionStatusConnected = "CONNECTED", i.ConnectionStatusDisconnected = "DISCONNECTED", i.ConnectionStatusPending = "PENDING", i.ConnectionStatusFailed = "FAILED", i.ConnectionStatusError = "ERROR", i.ConnectionStatusUnauthorized = "UNAUTHORIZED", i.ConnectionStatusForbidden = "FORBIDDEN", i.ConnectionStatusBadRequest = "BAD_REQUEST", i.ConnectionStatusNotFound = "NOT_FOUND", i.ConnectionStatusTimeout = "TIMEOUT", i.ConnectionStatusUnavailable = "UNAVAILABLE", i.ConnectionStatusRequestEntityTooLarge = "REQUEST_ENTITY_TOO_LARGE", i))(li || {});
596
- class Be {
597
- /** Creates a new PluginInfo instance. */
598
- constructor(e = {}) {
599
- t(this, "id");
600
- t(this, "metadata");
601
- t(this, "phase");
602
- t(this, "enabled");
603
- t(this, "devMode");
604
- t(this, "devPath");
605
- t(this, "capabilities");
606
- t(this, "lastError");
607
- "id" in e || (this.id = ""), "metadata" in e || (this.metadata = new F()), "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);
608
- }
609
- /**
610
- * Creates a new PluginInfo instance from a string or object.
611
- */
612
- static createFrom(e = {}) {
613
- const a = gi, s = yi;
614
- let n = typeof e == "string" ? JSON.parse(e) : e;
615
- return "metadata" in n && (n.metadata = a(n.metadata)), "capabilities" in n && (n.capabilities = s(n.capabilities)), new Be(n);
616
- }
617
- }
618
- const Ie = d(c, c), oi = C.createFrom, pi = l(c), di = se.createFrom, fi = f(di), hi = ie.createFrom, mi = f(hi), gi = F.createFrom, yi = l(c);
619
- class Ke {
620
- /** Creates a new ActionDescriptor instance. */
621
- constructor(e = {}) {
622
- t(this, "id");
623
- t(this, "label");
624
- t(this, "description");
625
- t(this, "icon");
626
- t(this, "scope");
627
- t(this, "streaming");
628
- /**
629
- * ParamsSchema describes the action's input parameters as a typed JSON Schema.
630
- * Serialized to JSON Schema bytes for gRPC and MCP tool generators.
631
- */
632
- t(this, "paramsSchema");
633
- /**
634
- * OutputSchema describes the action's result structure as a typed JSON Schema.
635
- * Serialized to JSON Schema bytes for gRPC and MCP tool generators.
636
- */
637
- t(this, "outputSchema");
638
- /**
639
- * Dangerous indicates this action has destructive side effects.
640
- * AI agents should confirm before executing.
641
- */
642
- t(this, "dangerous");
643
- "id" in e || (this.id = ""), "label" in e || (this.label = ""), "description" in e || (this.description = ""), "icon" in e || (this.icon = ""), "scope" in e || (this.scope = ""), "streaming" in e || (this.streaming = !1), Object.assign(this, e);
644
- }
645
- /**
646
- * Creates a new ActionDescriptor instance from a string or object.
647
- */
648
- static createFrom(e = {}) {
649
- let a = typeof e == "string" ? JSON.parse(e) : e;
650
- return new Ke(a);
651
- }
652
- }
653
- class Ue {
654
- /** Creates a new ActionInput instance. */
655
- constructor(e = {}) {
656
- t(this, "id");
657
- t(this, "namespace");
658
- t(this, "params");
659
- "id" in e || (this.id = ""), "namespace" in e || (this.namespace = ""), "params" in e || (this.params = {}), Object.assign(this, e);
660
- }
661
- /**
662
- * Creates a new ActionInput instance from a string or object.
663
- */
664
- static createFrom(e = {}) {
665
- const a = dt;
666
- let s = typeof e == "string" ? JSON.parse(e) : e;
667
- return "params" in s && (s.params = a(s.params)), new Ue(s);
668
- }
669
- }
670
- class He {
671
- /** Creates a new ActionResult instance. */
672
- constructor(e = {}) {
673
- t(this, "success");
674
- t(this, "data");
675
- t(this, "message");
676
- "success" in e || (this.success = !1), "data" in e || (this.data = {}), "message" in e || (this.message = ""), Object.assign(this, e);
677
- }
678
- /**
679
- * Creates a new ActionResult instance from a string or object.
680
- */
681
- static createFrom(e = {}) {
682
- const a = dt;
683
- let s = typeof e == "string" ? JSON.parse(e) : e;
684
- return "data" in s && (s.data = a(s.data)), new He(s);
685
- }
686
- }
687
- var _i = /* @__PURE__ */ ((i) => (i.$zero = "", i.ActionScopeInstance = "instance", i.ActionScopeType = "type", i))(_i || {});
688
- class ae {
689
- /** Creates a new ColumnDefinition instance. */
690
- constructor(e = {}) {
691
- /**
692
- * ID is the unique identifier for this column.
693
- */
694
- t(this, "id");
695
- /**
696
- * Header is the display header text.
697
- */
698
- t(this, "header");
699
- /**
700
- * Accessors is a comma-separated list of JSON path accessors.
701
- */
702
- t(this, "accessor");
703
- /**
704
- * AccessorPriority controls which value to return when multiple
705
- * accessors match. Values: "ALL", "FIRST", "LAST".
706
- */
707
- t(this, "accessorPriority");
708
- /**
709
- * ColorMap maps cell values to color variants.
710
- */
711
- t(this, "colorMap");
712
- /**
713
- * Color is the default color variant for the cell.
714
- */
715
- t(this, "color");
716
- /**
717
- * Alignment is the column alignment: "LEFT", "CENTER", "RIGHT".
718
- */
719
- t(this, "align");
720
- /**
721
- * Hidden controls whether the column is visible by default.
722
- */
723
- t(this, "hidden");
724
- /**
725
- * Width is the column width in pixels. 0 means auto-size.
726
- */
727
- t(this, "width");
728
- /**
729
- * Formatter is the value formatter: "NONE", "BYTES", "DURATION", "AGE", etc.
730
- */
731
- t(this, "formatter");
732
- /**
733
- * Component is the cell renderer component name.
734
- */
735
- t(this, "component");
736
- /**
737
- * ComponentParams are parameters passed to the cell component.
738
- */
739
- t(this, "componentParams");
740
- /**
741
- * ResourceLink creates a link to another resource.
742
- */
743
- t(this, "resourceLink");
744
- /**
745
- * ValueMap maps values via regex replacement.
746
- */
747
- t(this, "valueMap");
748
- "id" in e || (this.id = ""), "header" in e || (this.header = ""), "accessor" in e || (this.accessor = ""), Object.assign(this, e);
749
- }
750
- /**
751
- * Creates a new ColumnDefinition instance from a string or object.
752
- */
753
- static createFrom(e = {}) {
754
- const a = y, s = ji, n = y;
755
- let r = typeof e == "string" ? JSON.parse(e) : e;
756
- return "colorMap" in r && (r.colorMap = a(r.colorMap)), "resourceLink" in r && (r.resourceLink = s(r.resourceLink)), "valueMap" in r && (r.valueMap = n(r.valueMap)), new ae(r);
757
- }
758
- }
759
- class De {
760
- /** Creates a new CreateInput instance. */
761
- constructor(e = {}) {
762
- /**
763
- * Input is the resource data to create.
764
- */
765
- t(this, "input");
766
- /**
767
- * Namespace is an optional namespace for the new resource.
768
- */
769
- t(this, "namespace");
770
- "input" in e || (this.input = null), "namespace" in e || (this.namespace = ""), Object.assign(this, e);
771
- }
772
- /**
773
- * Creates a new CreateInput instance from a string or object.
774
- */
775
- static createFrom(e = {}) {
776
- let a = typeof e == "string" ? JSON.parse(e) : e;
777
- return new De(a);
778
- }
779
- }
780
- class Me {
781
- /** Creates a new CreateResult instance. */
782
- constructor(e = {}) {
783
- /**
784
- * Result is the created resource as pre-serialized JSON.
785
- */
786
- t(this, "result");
787
- /**
788
- * Success indicates whether the operation succeeded.
789
- */
790
- t(this, "success");
791
- "result" in e || (this.result = null), "success" in e || (this.success = !1), Object.assign(this, e);
792
- }
793
- /**
794
- * Creates a new CreateResult instance from a string or object.
795
- */
796
- static createFrom(e = {}) {
797
- let a = typeof e == "string" ? JSON.parse(e) : e;
798
- return new Me(a);
799
- }
800
- }
801
- class Ze {
802
- /** Creates a new DeleteInput instance. */
803
- constructor(e = {}) {
804
- /**
805
- * ID is the unique identifier of the resource to delete.
806
- */
807
- t(this, "id");
808
- /**
809
- * Namespace is an optional namespace identifier.
810
- */
811
- t(this, "namespace");
812
- /**
813
- * GracePeriodSeconds is an optional grace period before deletion.
814
- * nil means use the default.
815
- */
816
- t(this, "gracePeriodSeconds");
817
- "id" in e || (this.id = ""), "namespace" in e || (this.namespace = ""), Object.assign(this, e);
818
- }
819
- /**
820
- * Creates a new DeleteInput instance from a string or object.
821
- */
822
- static createFrom(e = {}) {
823
- let a = typeof e == "string" ? JSON.parse(e) : e;
824
- return new Ze(a);
825
- }
826
- }
827
- class Ge {
828
- /** Creates a new DeleteResult instance. */
829
- constructor(e = {}) {
830
- /**
831
- * Result is the deleted resource as pre-serialized JSON (if available).
832
- */
833
- t(this, "result");
834
- /**
835
- * Success indicates whether the operation succeeded.
836
- */
837
- t(this, "success");
838
- "result" in e || (this.result = null), "success" in e || (this.success = !1), Object.assign(this, e);
839
- }
840
- /**
841
- * Creates a new DeleteResult instance from a string or object.
842
- */
843
- static createFrom(e = {}) {
844
- let a = typeof e == "string" ? JSON.parse(e) : e;
845
- return new Ge(a);
846
- }
847
- }
848
- var bi = /* @__PURE__ */ ((i) => (i.$zero = "", i.EdgeOutgoing = "", i.EdgeIncoming = "incoming", i))(bi || {});
849
- class qe {
850
- /** Creates a new EditorSchema instance. */
851
- constructor(e = {}) {
852
- t(this, "resourceKey");
853
- t(this, "fileMatch");
854
- t(this, "uri");
855
- t(this, "url");
856
- t(this, "content");
857
- t(this, "language");
858
- "resourceKey" in e || (this.resourceKey = ""), "fileMatch" in e || (this.fileMatch = ""), "uri" in e || (this.uri = ""), "language" in e || (this.language = ""), Object.assign(this, e);
859
- }
860
- /**
861
- * Creates a new EditorSchema instance from a string or object.
862
- */
863
- static createFrom(e = {}) {
864
- const a = Bt;
865
- let s = typeof e == "string" ? JSON.parse(e) : e;
866
- return "content" in s && (s.content = a(s.content)), new qe(s);
867
- }
868
- }
869
- var Si = /* @__PURE__ */ ((i) => (i.$zero = "", i.SeverityNormal = "normal", i.SeverityWarning = "warning", i.SeverityError = "error", i))(Si || {});
870
- class ne {
871
- /** Creates a new FilterExpression instance. */
872
- constructor(e = {}) {
873
- t(this, "logic");
874
- t(this, "predicates");
875
- t(this, "groups");
876
- Object.assign(this, e);
877
- }
878
- /**
879
- * Creates a new FilterExpression instance from a string or object.
880
- */
881
- static createFrom(e = {}) {
882
- const a = xi, s = Ei;
883
- let n = typeof e == "string" ? JSON.parse(e) : e;
884
- return "predicates" in n && (n.predicates = a(n.predicates)), "groups" in n && (n.groups = s(n.groups)), new ne(n);
885
- }
886
- }
887
- class Ve {
888
- /** Creates a new FilterField instance. */
889
- constructor(e = {}) {
890
- /**
891
- * Path is the dot-separated field path (e.g., "metadata.name", "status.phase").
892
- */
893
- t(this, "path");
894
- /**
895
- * DisplayName is the human-readable name for UI and MCP tool descriptions.
896
- */
897
- t(this, "displayName");
898
- /**
899
- * Description explains what this field represents.
900
- */
901
- t(this, "description");
902
- /**
903
- * Type declares the value type.
904
- */
905
- t(this, "type");
906
- /**
907
- * Operators lists valid comparison operators for this field.
908
- * If empty, defaults to [OpEqual, OpNotEqual].
909
- */
910
- t(this, "operators");
911
- /**
912
- * AllowedValues is the fixed set of valid values (only for FilterFieldEnum).
913
- */
914
- t(this, "allowedValues");
915
- /**
916
- * Required indicates this field must be provided in filter queries.
917
- */
918
- t(this, "required");
919
- "path" in e || (this.path = ""), "displayName" in e || (this.displayName = ""), "description" in e || (this.description = ""), "type" in e || (this.type = ""), "operators" in e || (this.operators = []), Object.assign(this, e);
920
- }
921
- /**
922
- * Creates a new FilterField instance from a string or object.
923
- */
924
- static createFrom(e = {}) {
925
- const a = zi, s = B;
926
- let n = typeof e == "string" ? JSON.parse(e) : e;
927
- return "operators" in n && (n.operators = a(n.operators)), "allowedValues" in n && (n.allowedValues = s(n.allowedValues)), new Ve(n);
928
- }
929
- }
930
- var Fi = /* @__PURE__ */ ((i) => (i.$zero = "", i.FilterFieldString = "string", i.FilterFieldInt = "integer", i.FilterFieldFloat = "number", i.FilterFieldBool = "boolean", i.FilterFieldTime = "datetime", i.FilterFieldEnum = "enum", i.FilterFieldMap = "map", i))(Fi || {}), Oi = /* @__PURE__ */ ((i) => (i.$zero = "", i.FilterAnd = "and", i.FilterOr = "or", i))(Oi || {}), ui = /* @__PURE__ */ ((i) => (i.$zero = "", i.OpEqual = "eq", i.OpNotEqual = "neq", i.OpGreaterThan = "gt", i.OpGreaterOrEqual = "gte", i.OpLessThan = "lt", i.OpLessOrEqual = "lte", i.OpContains = "contains", i.OpPrefix = "prefix", i.OpSuffix = "suffix", i.OpRegex = "regex", i.OpIn = "in", i.OpNotIn = "notin", i.OpExists = "exists", i.OpNotExists = "notexists", i.OpHasKey = "haskey", i))(ui || {});
931
- class re {
932
- /** Creates a new FilterPredicate instance. */
933
- constructor(e = {}) {
934
- /**
935
- * Field is the filter field path (must match a FilterField.Path).
936
- */
937
- t(this, "field");
938
- /**
939
- * Operator is the comparison operator.
940
- */
941
- t(this, "operator");
942
- /**
943
- * Value is the comparison value. Type depends on field and operator:
944
- * - OpIn/OpNotIn: []string
945
- * - OpExists/OpNotExists: ignored (nil)
946
- * - All others: scalar matching the field's FilterFieldType
947
- */
948
- t(this, "value");
949
- "field" in e || (this.field = ""), "operator" in e || (this.operator = ""), Object.assign(this, e);
950
- }
951
- /**
952
- * Creates a new FilterPredicate instance from a string or object.
953
- */
954
- static createFrom(e = {}) {
955
- let a = typeof e == "string" ? JSON.parse(e) : e;
956
- return new re(a);
957
- }
958
- }
959
- class Le {
960
- /** Creates a new FindInput instance. */
961
- constructor(e = {}) {
962
- /**
963
- * Filters is a typed filter expression replacing the old untyped Conditions.
964
- */
965
- t(this, "filters");
966
- /**
967
- * TextQuery is a free-text search string.
968
- */
969
- t(this, "textQuery");
970
- /**
971
- * Namespaces limits the search scope.
972
- */
973
- t(this, "namespaces");
974
- /**
975
- * Order specifies multi-field ordering.
976
- */
977
- t(this, "order");
978
- /**
979
- * Pagination controls pagination.
980
- */
981
- t(this, "pagination");
982
- "namespaces" in e || (this.namespaces = []), "order" in e || (this.order = []), "pagination" in e || (this.pagination = new v()), Object.assign(this, e);
983
- }
984
- /**
985
- * Creates a new FindInput instance from a string or object.
986
- */
987
- static createFrom(e = {}) {
988
- const a = ki, s = B, n = ht, r = mt;
989
- let o = typeof e == "string" ? JSON.parse(e) : e;
990
- return "filters" in o && (o.filters = a(o.filters)), "namespaces" in o && (o.namespaces = s(o.namespaces)), "order" in o && (o.order = n(o.order)), "pagination" in o && (o.pagination = r(o.pagination)), new Le(o);
991
- }
992
- }
993
- class Qe {
994
- /** Creates a new FindResult instance. */
995
- constructor(e = {}) {
996
- /**
997
- * Result is the list of matching resources as pre-serialized JSON.
998
- */
999
- t(this, "result");
1000
- /**
1001
- * Success indicates whether the operation succeeded.
1002
- */
1003
- t(this, "success");
1004
- /**
1005
- * TotalCount is the total number of matching resources.
1006
- * -1 if unknown.
1007
- */
1008
- t(this, "totalCount");
1009
- /**
1010
- * NextCursor is the continuation token for cursor-based pagination.
1011
- */
1012
- t(this, "nextCursor");
1013
- "result" in e || (this.result = []), "success" in e || (this.success = !1), "totalCount" in e || (this.totalCount = 0), Object.assign(this, e);
1014
- }
1015
- /**
1016
- * Creates a new FindResult instance from a string or object.
1017
- */
1018
- static createFrom(e = {}) {
1019
- const a = gt;
1020
- let s = typeof e == "string" ? JSON.parse(e) : e;
1021
- return "result" in s && (s.result = a(s.result)), new Qe(s);
1022
- }
1023
- }
1024
- class We {
1025
- /** Creates a new GetInput instance. */
1026
- constructor(e = {}) {
1027
- /**
1028
- * ID is the unique identifier of the resource.
1029
- */
1030
- t(this, "id");
1031
- /**
1032
- * Namespace is an optional namespace identifier.
1033
- */
1034
- t(this, "namespace");
1035
- "id" in e || (this.id = ""), "namespace" in e || (this.namespace = ""), Object.assign(this, e);
1036
- }
1037
- /**
1038
- * Creates a new GetInput instance from a string or object.
1039
- */
1040
- static createFrom(e = {}) {
1041
- let a = typeof e == "string" ? JSON.parse(e) : e;
1042
- return new We(a);
1043
- }
1044
- }
1045
- class Ye {
1046
- /** Creates a new GetResult instance. */
1047
- constructor(e = {}) {
1048
- /**
1049
- * Result is the resource data as pre-serialized JSON.
1050
- */
1051
- t(this, "result");
1052
- /**
1053
- * Success indicates whether the operation succeeded.
1054
- */
1055
- t(this, "success");
1056
- "result" in e || (this.result = null), "success" in e || (this.success = !1), Object.assign(this, e);
1057
- }
1058
- /**
1059
- * Creates a new GetResult instance from a string or object.
1060
- */
1061
- static createFrom(e = {}) {
1062
- let a = typeof e == "string" ? JSON.parse(e) : e;
1063
- return new Ye(a);
1064
- }
1065
- }
1066
- class ce {
1067
- /** Creates a new HealthCondition instance. */
1068
- constructor(e = {}) {
1069
- t(this, "type");
1070
- t(this, "status");
1071
- t(this, "reason");
1072
- t(this, "message");
1073
- t(this, "lastProbeTime");
1074
- t(this, "lastTransitionTime");
1075
- "type" in e || (this.type = ""), "status" in e || (this.status = ""), Object.assign(this, e);
1076
- }
1077
- /**
1078
- * Creates a new HealthCondition instance from a string or object.
1079
- */
1080
- static createFrom(e = {}) {
1081
- let a = typeof e == "string" ? JSON.parse(e) : e;
1082
- return new ce(a);
1083
- }
1084
- }
1085
- var wi = /* @__PURE__ */ ((i) => (i.$zero = "", i.HealthHealthy = "healthy", i.HealthDegraded = "degraded", i.HealthUnhealthy = "unhealthy", i.HealthPending = "pending", i.HealthUnknown = "unknown", i))(wi || {});
1086
- class Xe {
1087
- /** Creates a new ListInput instance. */
1088
- constructor(e = {}) {
1089
- /**
1090
- * Namespaces limits listing to these namespaces.
1091
- * Empty means all namespaces.
1092
- */
1093
- t(this, "namespaces");
1094
- /**
1095
- * Order specifies multi-field ordering.
1096
- */
1097
- t(this, "order");
1098
- /**
1099
- * Pagination controls pagination.
1100
- */
1101
- t(this, "pagination");
1102
- "namespaces" in e || (this.namespaces = []), "order" in e || (this.order = []), "pagination" in e || (this.pagination = new v()), Object.assign(this, e);
1103
- }
1104
- /**
1105
- * Creates a new ListInput instance from a string or object.
1106
- */
1107
- static createFrom(e = {}) {
1108
- const a = B, s = ht, n = mt;
1109
- let r = typeof e == "string" ? JSON.parse(e) : e;
1110
- return "namespaces" in r && (r.namespaces = a(r.namespaces)), "order" in r && (r.order = s(r.order)), "pagination" in r && (r.pagination = n(r.pagination)), new Xe(r);
1111
- }
1112
- }
1113
- class $e {
1114
- /** Creates a new ListResult instance. */
1115
- constructor(e = {}) {
1116
- /**
1117
- * Result is the list of resources as pre-serialized JSON.
1118
- */
1119
- t(this, "result");
1120
- /**
1121
- * Success indicates whether the operation succeeded.
1122
- */
1123
- t(this, "success");
1124
- /**
1125
- * TotalCount is the total number of resources (for pagination).
1126
- * -1 if unknown.
1127
- */
1128
- t(this, "totalCount");
1129
- /**
1130
- * NextCursor is the continuation token for cursor-based pagination.
1131
- */
1132
- t(this, "nextCursor");
1133
- "result" in e || (this.result = []), "success" in e || (this.success = !1), "totalCount" in e || (this.totalCount = 0), Object.assign(this, e);
1134
- }
1135
- /**
1136
- * Creates a new ListResult instance from a string or object.
1137
- */
1138
- static createFrom(e = {}) {
1139
- const a = gt;
1140
- let s = typeof e == "string" ? JSON.parse(e) : e;
1141
- return "result" in s && (s.result = a(s.result)), new $e(s);
1142
- }
1143
- }
1144
- class le {
1145
- /** Creates a new OrderField instance. */
1146
- constructor(e = {}) {
1147
- /**
1148
- * Field is the dot-separated path to the field to order by.
1149
- */
1150
- t(this, "field");
1151
- /**
1152
- * Descending controls sort direction. false = ascending (default).
1153
- */
1154
- t(this, "descending");
1155
- "field" in e || (this.field = ""), "descending" in e || (this.descending = !1), Object.assign(this, e);
1156
- }
1157
- /**
1158
- * Creates a new OrderField instance from a string or object.
1159
- */
1160
- static createFrom(e = {}) {
1161
- let a = typeof e == "string" ? JSON.parse(e) : e;
1162
- return new le(a);
1163
- }
1164
- }
1165
- class v {
1166
- /** Creates a new PaginationParams instance. */
1167
- constructor(e = {}) {
1168
- /**
1169
- * Page is the 1-based page number (for page-based pagination).
1170
- */
1171
- t(this, "page");
1172
- /**
1173
- * PageSize is the maximum number of results per page.
1174
- * 0 means return all results.
1175
- */
1176
- t(this, "pageSize");
1177
- /**
1178
- * Cursor is the continuation token from a previous response
1179
- * (for cursor-based pagination). Mutually exclusive with Page.
1180
- */
1181
- t(this, "cursor");
1182
- "page" in e || (this.page = 0), "pageSize" in e || (this.pageSize = 0), Object.assign(this, e);
1183
- }
1184
- /**
1185
- * Creates a new PaginationParams instance from a string or object.
1186
- */
1187
- static createFrom(e = {}) {
1188
- let a = typeof e == "string" ? JSON.parse(e) : e;
1189
- return new v(a);
1190
- }
1191
- }
1192
- class R {
1193
- /** Creates a new RelationshipDescriptor instance. */
1194
- constructor(e = {}) {
1195
- t(this, "type");
1196
- t(this, "targetResourceKey");
1197
- t(this, "label");
1198
- t(this, "inverseLabel");
1199
- t(this, "cardinality");
1200
- t(this, "direction");
1201
- t(this, "extractor");
1202
- /**
1203
- * TargetNamespaced is a tri-state flag: nil = default to namespaced (common case),
1204
- * true = explicitly namespaced, false = cluster-scoped target (e.g., Node, PV,
1205
- * StorageClass). Pointer type distinguishes "unspecified" from explicit values;
1206
- * callers must check for nil before dereferencing.
1207
- */
1208
- t(this, "targetNamespaced");
1209
- "type" in e || (this.type = ""), "targetResourceKey" in e || (this.targetResourceKey = ""), "label" in e || (this.label = ""), Object.assign(this, e);
1210
- }
1211
- /**
1212
- * Creates a new RelationshipDescriptor instance from a string or object.
1213
- */
1214
- static createFrom(e = {}) {
1215
- const a = Ai;
1216
- let s = typeof e == "string" ? JSON.parse(e) : e;
1217
- return "extractor" in s && (s.extractor = a(s.extractor)), new R(s);
1218
- }
1219
- }
1220
- class oe {
1221
- /** Creates a new RelationshipExtractor instance. */
1222
- constructor(e = {}) {
1223
- t(this, "method");
1224
- t(this, "fieldPath");
1225
- t(this, "labelSelector");
1226
- "method" in e || (this.method = ""), Object.assign(this, e);
1227
- }
1228
- /**
1229
- * Creates a new RelationshipExtractor instance from a string or object.
1230
- */
1231
- static createFrom(e = {}) {
1232
- const a = y;
1233
- let s = typeof e == "string" ? JSON.parse(e) : e;
1234
- return "labelSelector" in s && (s.labelSelector = a(s.labelSelector)), new oe(s);
1235
- }
1236
- }
1237
- var et = /* @__PURE__ */ ((i) => (i.$zero = "", i.RelOwns = "owns", i.RelRunsOn = "runs_on", i.RelUses = "uses", i.RelExposes = "exposes", i.RelManages = "manages", i.RelMemberOf = "member_of", i.RelSelects = "selects", i))(et || {});
1238
- class tt {
1239
- /** Creates a new ResolvedRelationship instance. */
1240
- constructor(e = {}) {
1241
- t(this, "descriptor");
1242
- t(this, "targets");
1243
- "descriptor" in e || (this.descriptor = new R()), "targets" in e || (this.targets = []), Object.assign(this, e);
1244
- }
1245
- /**
1246
- * Creates a new ResolvedRelationship instance from a string or object.
1247
- */
1248
- static createFrom(e = {}) {
1249
- const a = Ci, s = Bi;
1250
- let n = typeof e == "string" ? JSON.parse(e) : e;
1251
- return "descriptor" in n && (n.descriptor = a(n.descriptor)), "targets" in n && (n.targets = s(n.targets)), new tt(n);
1252
- }
1253
- }
1254
- class it {
1255
- /** Creates a new ResourceCapabilities instance. */
1256
- constructor(e = {}) {
1257
- /**
1258
- * CRUD flags.
1259
- */
1260
- t(this, "canGet");
1261
- t(this, "canList");
1262
- t(this, "canFind");
1263
- t(this, "canCreate");
1264
- t(this, "canUpdate");
1265
- t(this, "canDelete");
1266
- /**
1267
- * Extended capabilities.
1268
- */
1269
- t(this, "watchable");
1270
- t(this, "filterable");
1271
- t(this, "searchable");
1272
- t(this, "hasActions");
1273
- t(this, "hasSchema");
1274
- t(this, "namespaceScoped");
1275
- t(this, "hasRelationships");
1276
- t(this, "hasHealth");
1277
- t(this, "hasEvents");
1278
- /**
1279
- * ScaleHint indicates expected cardinality.
1280
- */
1281
- t(this, "scaleHint");
1282
- "canGet" in e || (this.canGet = !1), "canList" in e || (this.canList = !1), "canFind" in e || (this.canFind = !1), "canCreate" in e || (this.canCreate = !1), "canUpdate" in e || (this.canUpdate = !1), "canDelete" in e || (this.canDelete = !1), "watchable" in e || (this.watchable = !1), "filterable" in e || (this.filterable = !1), "searchable" in e || (this.searchable = !1), "hasActions" in e || (this.hasActions = !1), "hasSchema" in e || (this.hasSchema = !1), "namespaceScoped" in e || (this.namespaceScoped = !1), "hasRelationships" in e || (this.hasRelationships = !1), "hasHealth" in e || (this.hasHealth = !1), "hasEvents" in e || (this.hasEvents = !1), Object.assign(this, e);
1283
- }
1284
- /**
1285
- * Creates a new ResourceCapabilities instance from a string or object.
1286
- */
1287
- static createFrom(e = {}) {
1288
- const a = Ui;
1289
- let s = typeof e == "string" ? JSON.parse(e) : e;
1290
- return "scaleHint" in s && (s.scaleHint = a(s.scaleHint)), new it(s);
1291
- }
1292
- }
1293
- class st {
1294
- /** Creates a new ResourceDefinition instance. */
1295
- constructor(e = {}) {
1296
- /**
1297
- * IDAccessor is the JSON path to extract the resource ID.
1298
- */
1299
- t(this, "id_accessor");
1300
- /**
1301
- * NamespaceAccessor is the JSON path to extract the namespace.
1302
- */
1303
- t(this, "namespace_accessor");
1304
- /**
1305
- * MemoizerAccessor is the JSON path to extract a memoization key.
1306
- */
1307
- t(this, "memoizer_accessor");
1308
- /**
1309
- * ColumnDefs defines the table columns for this resource type.
1310
- */
1311
- t(this, "columnDefs");
1312
- "id_accessor" in e || (this.id_accessor = ""), "namespace_accessor" in e || (this.namespace_accessor = ""), "memoizer_accessor" in e || (this.memoizer_accessor = ""), "columnDefs" in e || (this.columnDefs = []), Object.assign(this, e);
1313
- }
1314
- /**
1315
- * Creates a new ResourceDefinition instance from a string or object.
1316
- */
1317
- static createFrom(e = {}) {
1318
- const a = Di;
1319
- let s = typeof e == "string" ? JSON.parse(e) : e;
1320
- return "columnDefs" in s && (s.columnDefs = a(s.columnDefs)), new st(s);
1321
- }
1322
- }
1323
- class at {
1324
- /** Creates a new ResourceEvent instance. */
1325
- constructor(e = {}) {
1326
- t(this, "type");
1327
- t(this, "reason");
1328
- t(this, "message");
1329
- t(this, "source");
1330
- t(this, "count");
1331
- t(this, "firstSeen");
1332
- t(this, "lastSeen");
1333
- "type" in e || (this.type = ""), "reason" in e || (this.reason = ""), "message" in e || (this.message = ""), "firstSeen" in e || (this.firstSeen = "0001-01-01T00:00:00.000Z"), "lastSeen" in e || (this.lastSeen = "0001-01-01T00:00:00.000Z"), Object.assign(this, e);
1334
- }
1335
- /**
1336
- * Creates a new ResourceEvent instance from a string or object.
1337
- */
1338
- static createFrom(e = {}) {
1339
- let a = typeof e == "string" ? JSON.parse(e) : e;
1340
- return new at(a);
1341
- }
1342
- }
1343
- class nt {
1344
- /** Creates a new ResourceGroup instance. */
1345
- constructor(e = {}) {
1346
- /**
1347
- * ID is the unique identifier of the resource group.
1348
- */
1349
- t(this, "id");
1350
- /**
1351
- * Name is the display name of the resource group.
1352
- */
1353
- t(this, "name");
1354
- /**
1355
- * Description is a human-readable description.
1356
- */
1357
- t(this, "description");
1358
- /**
1359
- * Icon is an optional icon for the resource group.
1360
- */
1361
- t(this, "icon");
1362
- /**
1363
- * Resources is a map of resource versions to the resources in that version.
1364
- */
1365
- t(this, "resources");
1366
- "id" in e || (this.id = ""), "name" in e || (this.name = ""), "description" in e || (this.description = ""), "icon" in e || (this.icon = ""), "resources" in e || (this.resources = {}), Object.assign(this, e);
1367
- }
1368
- /**
1369
- * Creates a new ResourceGroup instance from a string or object.
1370
- */
1371
- static createFrom(e = {}) {
1372
- const a = Gi;
1373
- let s = typeof e == "string" ? JSON.parse(e) : e;
1374
- return "resources" in s && (s.resources = a(s.resources)), new nt(s);
1375
- }
1376
- }
1377
- class rt {
1378
- /** Creates a new ResourceHealth instance. */
1379
- constructor(e = {}) {
1380
- t(this, "status");
1381
- t(this, "reason");
1382
- t(this, "message");
1383
- t(this, "since");
1384
- t(this, "conditions");
1385
- "status" in e || (this.status = ""), Object.assign(this, e);
1386
- }
1387
- /**
1388
- * Creates a new ResourceHealth instance from a string or object.
1389
- */
1390
- static createFrom(e = {}) {
1391
- const a = Vi;
1392
- let s = typeof e == "string" ? JSON.parse(e) : e;
1393
- return "conditions" in s && (s.conditions = a(s.conditions)), new rt(s);
1394
- }
1395
- }
1396
- class pe {
1397
- /** Creates a new ResourceLink instance. */
1398
- constructor(e = {}) {
1399
- t(this, "idAccessor");
1400
- t(this, "namespaceAccessor");
1401
- t(this, "namespaced");
1402
- t(this, "resourceKey");
1403
- t(this, "keyAccessor");
1404
- t(this, "keyMap");
1405
- t(this, "detailExtractors");
1406
- t(this, "displayId");
1407
- "idAccessor" in e || (this.idAccessor = ""), "namespaceAccessor" in e || (this.namespaceAccessor = ""), "namespaced" in e || (this.namespaced = !1), "resourceKey" in e || (this.resourceKey = ""), "keyAccessor" in e || (this.keyAccessor = ""), "keyMap" in e || (this.keyMap = {}), "detailExtractors" in e || (this.detailExtractors = {}), "displayId" in e || (this.displayId = !1), Object.assign(this, e);
1408
- }
1409
- /**
1410
- * Creates a new ResourceLink instance from a string or object.
1411
- */
1412
- static createFrom(e = {}) {
1413
- const a = y, s = y;
1414
- let n = typeof e == "string" ? JSON.parse(e) : e;
1415
- return "keyMap" in n && (n.keyMap = a(n.keyMap)), "detailExtractors" in n && (n.detailExtractors = s(n.detailExtractors)), new pe(n);
1416
- }
1417
- }
1418
- class de {
1419
- /** Creates a new ResourceMeta instance. */
1420
- constructor(e = {}) {
1421
- /**
1422
- * Group is the group of the resource (e.g., "core", "apps", "ec2").
1423
- */
1424
- t(this, "group");
1425
- /**
1426
- * Version is the version of the resource (e.g., "v1", "v1beta1").
1427
- */
1428
- t(this, "version");
1429
- /**
1430
- * Kind is the kind of the resource (e.g., "Pod", "Deployment", "EC2Instance").
1431
- */
1432
- t(this, "kind");
1433
- /**
1434
- * Label is a human-readable label. Defaults to Kind if not provided.
1435
- */
1436
- t(this, "label");
1437
- /**
1438
- * Icon is an optional icon (icon name, data URI, or URL).
1439
- */
1440
- t(this, "icon");
1441
- /**
1442
- * Description is a human-readable description of the resource.
1443
- */
1444
- t(this, "description");
1445
- /**
1446
- * Category is the category for grouping (e.g., "Workloads", "Networking").
1447
- * Defaults to "Uncategorized" if empty.
1448
- */
1449
- t(this, "category");
1450
- "group" in e || (this.group = ""), "version" in e || (this.version = ""), "kind" in e || (this.kind = ""), "label" in e || (this.label = ""), "icon" in e || (this.icon = ""), "description" in e || (this.description = ""), "category" in e || (this.category = ""), Object.assign(this, e);
1451
- }
1452
- /**
1453
- * Creates a new ResourceMeta instance from a string or object.
1454
- */
1455
- static createFrom(e = {}) {
1456
- let a = typeof e == "string" ? JSON.parse(e) : e;
1457
- return new de(a);
1458
- }
1459
- }
1460
- class fe {
1461
- /** Creates a new ResourceRef instance. */
1462
- constructor(e = {}) {
1463
- t(this, "pluginId");
1464
- t(this, "connectionId");
1465
- t(this, "resourceKey");
1466
- t(this, "id");
1467
- t(this, "namespace");
1468
- t(this, "displayName");
1469
- "connectionId" in e || (this.connectionId = ""), "resourceKey" in e || (this.resourceKey = ""), "id" in e || (this.id = ""), Object.assign(this, e);
1470
- }
1471
- /**
1472
- * Creates a new ResourceRef instance from a string or object.
1473
- */
1474
- static createFrom(e = {}) {
1475
- let a = typeof e == "string" ? JSON.parse(e) : e;
1476
- return new fe(a);
1477
- }
1478
- }
1479
- class he {
1480
- /** Creates a new ScaleHint instance. */
1481
- constructor(e = {}) {
1482
- /**
1483
- * Level is the expected scale: "few", "moderate", "many".
1484
- */
1485
- t(this, "level");
1486
- /**
1487
- * ExpectedCount is the approximate expected count (optional).
1488
- */
1489
- t(this, "expectedCount");
1490
- /**
1491
- * DefaultPageSize is the recommended page size for this resource.
1492
- */
1493
- t(this, "defaultPageSize");
1494
- "level" in e || (this.level = ""), Object.assign(this, e);
1495
- }
1496
- /**
1497
- * Creates a new ScaleHint instance from a string or object.
1498
- */
1499
- static createFrom(e = {}) {
1500
- let a = typeof e == "string" ? JSON.parse(e) : e;
1501
- return new he(a);
1502
- }
1503
- }
1504
- var vi = /* @__PURE__ */ ((i) => (i.$zero = "", i.ScaleFew = "few", i.ScaleModerate = "moderate", i.ScaleMany = "many", i))(vi || {});
1505
- class ct {
1506
- /** Creates a new UpdateInput instance. */
1507
- constructor(e = {}) {
1508
- /**
1509
- * Input is the updated resource data.
1510
- */
1511
- t(this, "input");
1512
- /**
1513
- * ID is the unique identifier of the resource to update.
1514
- */
1515
- t(this, "id");
1516
- /**
1517
- * Namespace is an optional namespace identifier.
1518
- */
1519
- t(this, "namespace");
1520
- "input" in e || (this.input = null), "id" in e || (this.id = ""), "namespace" in e || (this.namespace = ""), Object.assign(this, e);
1521
- }
1522
- /**
1523
- * Creates a new UpdateInput instance from a string or object.
1524
- */
1525
- static createFrom(e = {}) {
1526
- let a = typeof e == "string" ? JSON.parse(e) : e;
1527
- return new ct(a);
1528
- }
1529
- }
1530
- class lt {
1531
- /** Creates a new UpdateResult instance. */
1532
- constructor(e = {}) {
1533
- /**
1534
- * Result is the updated resource as pre-serialized JSON.
1535
- */
1536
- t(this, "result");
1537
- /**
1538
- * Success indicates whether the operation succeeded.
1539
- */
1540
- t(this, "success");
1541
- "result" in e || (this.result = null), "success" in e || (this.success = !1), Object.assign(this, e);
1542
- }
1543
- /**
1544
- * Creates a new UpdateResult instance from a string or object.
1545
- */
1546
- static createFrom(e = {}) {
1547
- let a = typeof e == "string" ? JSON.parse(e) : e;
1548
- return new lt(a);
1549
- }
1550
- }
1551
- class ot {
1552
- /** Creates a new WatchConnectionSummary instance. */
1553
- constructor(e = {}) {
1554
- t(this, "connectionId");
1555
- t(this, "resources");
1556
- t(this, "resourceCounts");
1557
- t(this, "scope");
1558
- "connectionId" in e || (this.connectionId = ""), "resources" in e || (this.resources = {}), "resourceCounts" in e || (this.resourceCounts = {}), Object.assign(this, e);
1559
- }
1560
- /**
1561
- * Creates a new WatchConnectionSummary instance from a string or object.
1562
- */
1563
- static createFrom(e = {}) {
1564
- const a = Li, s = Qi, n = Yi;
1565
- let r = typeof e == "string" ? JSON.parse(e) : e;
1566
- return "resources" in r && (r.resources = a(r.resources)), "resourceCounts" in r && (r.resourceCounts = s(r.resourceCounts)), "scope" in r && (r.scope = n(r.scope)), new ot(r);
1567
- }
1568
- }
1569
- class me {
1570
- /** Creates a new WatchScope instance. */
1571
- constructor(e = {}) {
1572
- /**
1573
- * empty = unscoped
1574
- */
1575
- t(this, "partitions");
1576
- Object.assign(this, e);
1577
- }
1578
- /**
1579
- * Creates a new WatchScope instance from a string or object.
1580
- */
1581
- static createFrom(e = {}) {
1582
- const a = B;
1583
- let s = typeof e == "string" ? JSON.parse(e) : e;
1584
- return "partitions" in s && (s.partitions = a(s.partitions)), new me(s);
1585
- }
1586
- }
1587
- var Ti = /* @__PURE__ */ ((i) => (i[i.$zero = 0] = "$zero", i[i.WatchStateIdle = 0] = "WatchStateIdle", i[i.WatchStateSyncing = 1] = "WatchStateSyncing", i[i.WatchStateSynced = 2] = "WatchStateSynced", i[i.WatchStateError = 3] = "WatchStateError", i[i.WatchStateStopped = 4] = "WatchStateStopped", i[i.WatchStateFailed = 5] = "WatchStateFailed", i[i.WatchStateForbidden = 6] = "WatchStateForbidden", i[i.WatchStateSkipped = 7] = "WatchStateSkipped", i))(Ti || {});
1588
- class pt {
1589
- /** Creates a new WatchStateEvent instance. */
1590
- constructor(e = {}) {
1591
- /**
1592
- * PluginID identifies the source plugin.
1593
- */
1594
- t(this, "pluginId");
1595
- /**
1596
- * Connection is the connection ID that produced this event.
1597
- */
1598
- t(this, "connection");
1599
- /**
1600
- * ResourceKey is the resource type key (e.g., "core::v1::Pod").
1601
- */
1602
- t(this, "resourceKey");
1603
- /**
1604
- * State is the new watch state.
1605
- */
1606
- t(this, "state");
1607
- /**
1608
- * Message is a human-readable description of the state change.
1609
- */
1610
- t(this, "message");
1611
- /**
1612
- * ResourceCount is the number of resources observed (if known).
1613
- */
1614
- t(this, "resourceCount");
1615
- /**
1616
- * ErrorCode is a machine-readable error classification (e.g., "FORBIDDEN", "TIMEOUT").
1617
- * Only set when State is WatchStateError, WatchStateFailed, or WatchStateForbidden.
1618
- */
1619
- t(this, "errorCode");
1620
- "pluginId" in e || (this.pluginId = ""), "connection" in e || (this.connection = ""), "resourceKey" in e || (this.resourceKey = ""), "state" in e || (this.state = 0), Object.assign(this, e);
1621
- }
1622
- /**
1623
- * Creates a new WatchStateEvent instance from a string or object.
1624
- */
1625
- static createFrom(e = {}) {
1626
- let a = typeof e == "string" ? JSON.parse(e) : e;
1627
- return new pt(a);
1628
- }
1629
- }
1630
- const dt = d(c, c), y = d(c, c), Ni = pe.createFrom, ji = f(Ni), Ji = re.createFrom, xi = l(Ji), ft = ne.createFrom, Ei = l(ft), zi = l(c), B = l(c), ki = f(ft), Ii = le.createFrom, ht = l(Ii), mt = v.createFrom, gt = l(c), Pi = oe.createFrom, Ai = f(Pi), Ci = R.createFrom, Ri = fe.createFrom, Bi = l(Ri), Ki = he.createFrom, Ui = f(Ki), Hi = ae.createFrom, Di = l(Hi), Mi = de.createFrom, Zi = l(Mi), Gi = d(c, Zi), qi = ce.createFrom, Vi = l(qi), Li = d(c, c), Qi = d(c, c), Wi = me.createFrom, Yi = f(Wi);
1631
- let ge = class yt {
1632
- /** Creates a new ActionTargetBuilder instance. */
1633
- constructor(e = {}) {
1634
- t(this, "label");
1635
- t(this, "label_selector");
1636
- t(this, "paths");
1637
- t(this, "selectors");
1638
- "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);
1639
- }
1640
- /**
1641
- * Creates a new ActionTargetBuilder instance from a string or object.
1642
- */
1643
- static createFrom(e = {}) {
1644
- const a = K, s = _;
1645
- let n = typeof e == "string" ? JSON.parse(e) : e;
1646
- return "paths" in n && (n.paths = a(n.paths)), "selectors" in n && (n.selectors = s(n.selectors)), new yt(n);
1647
- }
1648
- }, Xi = class _t {
1649
- /** Creates a new Handler instance. */
1650
- constructor(e = {}) {
1651
- t(this, "plugin");
1652
- t(this, "resource");
1653
- t(this, "target_builder");
1654
- t(this, "default_command");
1655
- "plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), "target_builder" in e || (this.target_builder = new ge()), "default_command" in e || (this.default_command = []), Object.assign(this, e);
1656
- }
1657
- /**
1658
- * Creates a new Handler instance from a string or object.
1659
- */
1660
- static createFrom(e = {}) {
1661
- const a = $i, s = K;
1662
- let n = typeof e == "string" ? JSON.parse(e) : e;
1663
- return "target_builder" in n && (n.target_builder = a(n.target_builder)), "default_command" in n && (n.default_command = s(n.default_command)), new _t(n);
1664
- }
1665
- };
1666
- class ye {
1667
- /** Creates a new Session instance. */
1668
- constructor(e = {}) {
1669
- t(this, "created_at");
1670
- t(this, "labels");
1671
- t(this, "params");
1672
- t(this, "id");
1673
- t(this, "command");
1674
- t(this, "attached");
1675
- "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);
1676
- }
1677
- /**
1678
- * Creates a new Session instance from a string or object.
1679
- */
1680
- static createFrom(e = {}) {
1681
- const a = _, s = _, n = K;
1682
- let r = typeof e == "string" ? JSON.parse(e) : e;
1683
- return "labels" in r && (r.labels = a(r.labels)), "params" in r && (r.params = s(r.params)), "command" in r && (r.command = n(r.command)), new ye(r);
1684
- }
1685
- }
1686
- class _e {
1687
- /** Creates a new SessionOptions instance. */
1688
- constructor(e = {}) {
1689
- t(this, "params");
1690
- t(this, "labels");
1691
- t(this, "id");
1692
- t(this, "resource_plugin");
1693
- t(this, "resource_key");
1694
- t(this, "resource_data");
1695
- t(this, "command");
1696
- t(this, "tty");
1697
- "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 = ""), "resource_data" in e || (this.resource_data = {}), "command" in e || (this.command = []), "tty" in e || (this.tty = !1), Object.assign(this, e);
1698
- }
1699
- /**
1700
- * Creates a new SessionOptions instance from a string or object.
1701
- */
1702
- static createFrom(e = {}) {
1703
- const a = _, s = _, n = es, r = K;
1704
- let o = typeof e == "string" ? JSON.parse(e) : e;
1705
- return "params" in o && (o.params = a(o.params)), "labels" in o && (o.labels = s(o.labels)), "resource_data" in o && (o.resource_data = n(o.resource_data)), "command" in o && (o.command = r(o.command)), new _e(o);
1706
- }
1707
- }
1708
- const K = l(c), _ = d(c, c), $i = ge.createFrom, es = d(c, c), Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1709
- __proto__: null,
1710
- ActionTargetBuilder: ge,
1711
- Handler: Xi,
1712
- Session: ye,
1713
- SessionOptions: _e
1714
- }, Symbol.toStringTag, { value: "Module" }));
1715
- class T {
1716
- /** Creates a new ActionTargetBuilder instance. */
1717
- constructor(e = {}) {
1718
- t(this, "label");
1719
- t(this, "label_selector");
1720
- t(this, "paths");
1721
- t(this, "selectors");
1722
- "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);
1723
- }
1724
- /**
1725
- * Creates a new ActionTargetBuilder instance from a string or object.
1726
- */
1727
- static createFrom(e = {}) {
1728
- const a = is, s = Fe;
1729
- let n = typeof e == "string" ? JSON.parse(e) : e;
1730
- return "paths" in n && (n.paths = a(n.paths)), "selectors" in n && (n.selectors = s(n.selectors)), new T(n);
1731
- }
1732
- }
1733
- class be {
1734
- /** Creates a new CreateSessionOptions instance. */
1735
- constructor(e = {}) {
1736
- t(this, "resource_key");
1737
- t(this, "resource_id");
1738
- t(this, "resource_data");
1739
- t(this, "options");
1740
- "resource_key" in e || (this.resource_key = ""), "resource_id" in e || (this.resource_id = ""), "resource_data" in e || (this.resource_data = {}), "options" in e || (this.options = new m()), Object.assign(this, e);
1741
- }
1742
- /**
1743
- * Creates a new CreateSessionOptions instance from a string or object.
1744
- */
1745
- static createFrom(e = {}) {
1746
- const a = ss, s = Ot;
1747
- let n = typeof e == "string" ? JSON.parse(e) : e;
1748
- return "resource_data" in n && (n.resource_data = a(n.resource_data)), "options" in n && (n.options = s(n.options)), new be(n);
1749
- }
1750
- }
1751
- let ts = class bt {
1752
- /** Creates a new Handler instance. */
1753
- constructor(e = {}) {
1754
- t(this, "plugin");
1755
- t(this, "resource");
1756
- t(this, "target_builder");
1757
- "plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), "target_builder" in e || (this.target_builder = new T()), Object.assign(this, e);
1758
- }
1759
- /**
1760
- * Creates a new Handler instance from a string or object.
1761
- */
1762
- static createFrom(e = {}) {
1763
- const a = as;
1764
- let s = typeof e == "string" ? JSON.parse(e) : e;
1765
- return "target_builder" in s && (s.target_builder = a(s.target_builder)), new bt(s);
1766
- }
1767
- };
1768
- class Se {
1769
- /** Creates a new LogSession instance. */
1770
- constructor(e = {}) {
1771
- t(this, "id");
1772
- t(this, "plugin_id");
1773
- t(this, "connection_id");
1774
- t(this, "resource_key");
1775
- t(this, "resource_id");
1776
- t(this, "options");
1777
- t(this, "status");
1778
- t(this, "active_sources");
1779
- t(this, "created_at");
1780
- "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 m()), "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);
1781
- }
1782
- /**
1783
- * Creates a new LogSession instance from a string or object.
1784
- */
1785
- static createFrom(e = {}) {
1786
- const a = Ot, s = rs;
1787
- let n = typeof e == "string" ? JSON.parse(e) : e;
1788
- return "options" in n && (n.options = a(n.options)), "active_sources" in n && (n.active_sources = s(n.active_sources)), new Se(n);
1789
- }
1790
- }
1791
- class m {
1792
- /** Creates a new LogSessionOptions instance. */
1793
- constructor(e = {}) {
1794
- t(this, "target");
1795
- t(this, "follow");
1796
- t(this, "include_previous");
1797
- t(this, "include_timestamps");
1798
- t(this, "tail_lines");
1799
- t(this, "since_seconds");
1800
- t(this, "since_time");
1801
- t(this, "limit_bytes");
1802
- t(this, "include_source_events");
1803
- t(this, "params");
1804
- "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);
1805
- }
1806
- /**
1807
- * Creates a new LogSessionOptions instance from a string or object.
1808
- */
1809
- static createFrom(e = {}) {
1810
- const a = Fe;
1811
- let s = typeof e == "string" ? JSON.parse(e) : e;
1812
- return "params" in s && (s.params = a(s.params)), new m(s);
1813
- }
1814
- }
1815
- var St = /* @__PURE__ */ ((i) => (i[i.$zero = 0] = "$zero", i[i.LogSessionStatusActive = 0] = "LogSessionStatusActive", i[i.LogSessionStatusPaused = 1] = "LogSessionStatusPaused", i[i.LogSessionStatusClosed = 2] = "LogSessionStatusClosed", i[i.LogSessionStatusError = 3] = "LogSessionStatusError", i[i.LogSessionStatusConnecting = 4] = "LogSessionStatusConnecting", i[i.LogSessionStatusInitializing = 5] = "LogSessionStatusInitializing", i))(St || {});
1816
- class U {
1817
- /** Creates a new LogSource instance. */
1818
- constructor(e = {}) {
1819
- t(this, "id");
1820
- t(this, "labels");
1821
- "id" in e || (this.id = ""), "labels" in e || (this.labels = {}), Object.assign(this, e);
1822
- }
1823
- /**
1824
- * Creates a new LogSource instance from a string or object.
1825
- */
1826
- static createFrom(e = {}) {
1827
- const a = Fe;
1828
- let s = typeof e == "string" ? JSON.parse(e) : e;
1829
- return "labels" in s && (s.labels = a(s.labels)), new U(s);
1830
- }
1831
- }
1832
- var Ft = /* @__PURE__ */ ((i) => (i[i.$zero = 0] = "$zero", i[i.StreamCommandPause = 0] = "StreamCommandPause", i[i.StreamCommandResume = 1] = "StreamCommandResume", i[i.StreamCommandClose = 2] = "StreamCommandClose", i))(Ft || {});
1833
- const is = l(c), Fe = d(c, c), ss = d(c, c), Ot = m.createFrom, as = T.createFrom, ns = U.createFrom, rs = l(ns), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1834
- __proto__: null,
1835
- ActionTargetBuilder: T,
1836
- CreateSessionOptions: be,
1837
- Handler: ts,
1838
- LogSession: Se,
1839
- LogSessionOptions: m,
1840
- LogSessionStatus: St,
1841
- LogSource: U,
1842
- LogStreamCommand: Ft
1843
- }, Symbol.toStringTag, { value: "Module" }));
1844
- class H {
1845
- /** Creates a new AggregateValue instance. */
1846
- constructor(e = {}) {
1847
- t(this, "metric_id");
1848
- t(this, "min");
1849
- t(this, "max");
1850
- t(this, "avg");
1851
- t(this, "sum");
1852
- t(this, "p50");
1853
- t(this, "p90");
1854
- t(this, "p99");
1855
- t(this, "count");
1856
- t(this, "window");
1857
- t(this, "labels");
1858
- "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 = w.$zero), "labels" in e || (this.labels = {}), Object.assign(this, e);
1859
- }
1860
- /**
1861
- * Creates a new AggregateValue instance from a string or object.
1862
- */
1863
- static createFrom(e = {}) {
1864
- const a = N;
1865
- let s = typeof e == "string" ? JSON.parse(e) : e;
1866
- return "labels" in s && (s.labels = a(s.labels)), new H(s);
1867
- }
1868
- }
1869
- class D {
1870
- /** Creates a new ColorRange instance. */
1871
- constructor(e = {}) {
1872
- t(this, "min");
1873
- t(this, "max");
1874
- t(this, "color");
1875
- "min" in e || (this.min = 0), "max" in e || (this.max = 0), "color" in e || (this.color = ""), Object.assign(this, e);
1876
- }
1877
- /**
1878
- * Creates a new ColorRange instance from a string or object.
1879
- */
1880
- static createFrom(e = {}) {
1881
- let a = typeof e == "string" ? JSON.parse(e) : e;
1882
- return new D(a);
1883
- }
1884
- }
1885
- class M {
1886
- /** Creates a new CurrentValue instance. */
1887
- constructor(e = {}) {
1888
- t(this, "metric_id");
1889
- t(this, "value");
1890
- t(this, "timestamp");
1891
- t(this, "labels");
1892
- "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);
1893
- }
1894
- /**
1895
- * Creates a new CurrentValue instance from a string or object.
1896
- */
1897
- static createFrom(e = {}) {
1898
- const a = N;
1899
- let s = typeof e == "string" ? JSON.parse(e) : e;
1900
- return "labels" in s && (s.labels = a(s.labels)), new M(s);
1901
- }
1902
- }
1903
- class Z {
1904
- /** Creates a new DataPoint instance. */
1905
- constructor(e = {}) {
1906
- t(this, "timestamp");
1907
- t(this, "value");
1908
- t(this, "labels");
1909
- "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);
1910
- }
1911
- /**
1912
- * Creates a new DataPoint instance from a string or object.
1913
- */
1914
- static createFrom(e = {}) {
1915
- const a = N;
1916
- let s = typeof e == "string" ? JSON.parse(e) : e;
1917
- return "labels" in s && (s.labels = a(s.labels)), new Z(s);
1918
- }
1919
- }
1920
- class Oe {
1921
- /** Creates a new Handler instance. */
1922
- constructor(e = {}) {
1923
- t(this, "resource");
1924
- t(this, "metrics");
1925
- "resource" in e || (this.resource = ""), "metrics" in e || (this.metrics = []), Object.assign(this, e);
1926
- }
1927
- /**
1928
- * Creates a new Handler instance from a string or object.
1929
- */
1930
- static createFrom(e = {}) {
1931
- const a = ls;
1932
- let s = typeof e == "string" ? JSON.parse(e) : e;
1933
- return "metrics" in s && (s.metrics = a(s.metrics)), new Oe(s);
1934
- }
1935
- }
1936
- class G {
1937
- /** Creates a new MetricDescriptor instance. */
1938
- constructor(e = {}) {
1939
- t(this, "id");
1940
- t(this, "name");
1941
- t(this, "unit");
1942
- t(this, "icon");
1943
- t(this, "color_ranges");
1944
- t(this, "format_string");
1945
- t(this, "supported_shapes");
1946
- t(this, "chart_group");
1947
- "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);
1948
- }
1949
- /**
1950
- * Creates a new MetricDescriptor instance from a string or object.
1951
- */
1952
- static createFrom(e = {}) {
1953
- const a = ps, s = ds;
1954
- let n = typeof e == "string" ? JSON.parse(e) : e;
1955
- return "color_ranges" in n && (n.color_ranges = a(n.color_ranges)), "supported_shapes" in n && (n.supported_shapes = s(n.supported_shapes)), new G(n);
1956
- }
1957
- }
1958
- class q {
1959
- /** Creates a new MetricResult instance. */
1960
- constructor(e = {}) {
1961
- t(this, "time_series");
1962
- t(this, "current_value");
1963
- t(this, "aggregate_value");
1964
- Object.assign(this, e);
1965
- }
1966
- /**
1967
- * Creates a new MetricResult instance from a string or object.
1968
- */
1969
- static createFrom(e = {}) {
1970
- const a = hs, s = gs, n = _s;
1971
- let r = typeof e == "string" ? JSON.parse(e) : e;
1972
- return "time_series" in r && (r.time_series = a(r.time_series)), "current_value" in r && (r.current_value = s(r.current_value)), "aggregate_value" in r && (r.aggregate_value = n(r.aggregate_value)), new q(r);
1973
- }
1974
- }
1975
- var ut = /* @__PURE__ */ ((i) => (i[i.$zero = 0] = "$zero", i[i.ShapeCurrent = 0] = "ShapeCurrent", i[i.ShapeTimeseries = 1] = "ShapeTimeseries", i[i.ShapeAggregate = 2] = "ShapeAggregate", i))(ut || {}), wt = /* @__PURE__ */ ((i) => (i[i.$zero = 0] = "$zero", i[i.UnitNone = 0] = "UnitNone", i[i.UnitBytes = 1] = "UnitBytes", i[i.UnitKB = 2] = "UnitKB", i[i.UnitMB = 3] = "UnitMB", i[i.UnitGB = 4] = "UnitGB", i[i.UnitPercentage = 5] = "UnitPercentage", i[i.UnitMillis = 6] = "UnitMillis", i[i.UnitSeconds = 7] = "UnitSeconds", i[i.UnitCount = 8] = "UnitCount", i[i.UnitOpsPerSec = 9] = "UnitOpsPerSec", i[i.UnitBytesPerSec = 10] = "UnitBytesPerSec", i[i.UnitMillicores = 11] = "UnitMillicores", i[i.UnitCores = 12] = "UnitCores", i))(wt || {});
1976
- class ue {
1977
- /** Creates a new QueryRequest instance. */
1978
- constructor(e = {}) {
1979
- t(this, "resource_key");
1980
- t(this, "resource_id");
1981
- t(this, "resource_namespace");
1982
- t(this, "resource_data");
1983
- t(this, "metric_ids");
1984
- t(this, "shape");
1985
- t(this, "start_time");
1986
- t(this, "end_time");
1987
- t(this, "step");
1988
- t(this, "params");
1989
- "resource_key" in e || (this.resource_key = ""), "resource_id" in e || (this.resource_id = ""), "resource_namespace" in e || (this.resource_namespace = ""), "resource_data" in e || (this.resource_data = {}), "metric_ids" in e || (this.metric_ids = []), "shape" in e || (this.shape = 0), "start_time" in e || (this.start_time = "0001-01-01T00:00:00.000Z"), "end_time" in e || (this.end_time = "0001-01-01T00:00:00.000Z"), "step" in e || (this.step = w.$zero), "params" in e || (this.params = {}), Object.assign(this, e);
1990
- }
1991
- /**
1992
- * Creates a new QueryRequest instance from a string or object.
1993
- */
1994
- static createFrom(e = {}) {
1995
- const a = bs, s = Ss, n = N;
1996
- let r = typeof e == "string" ? JSON.parse(e) : e;
1997
- return "resource_data" in r && (r.resource_data = a(r.resource_data)), "metric_ids" in r && (r.metric_ids = s(r.metric_ids)), "params" in r && (r.params = n(r.params)), new ue(r);
1998
- }
1999
- }
2000
- class we {
2001
- /** Creates a new QueryResponse instance. */
2002
- constructor(e = {}) {
2003
- t(this, "success");
2004
- t(this, "results");
2005
- t(this, "error");
2006
- "success" in e || (this.success = !1), "results" in e || (this.results = []), "error" in e || (this.error = ""), Object.assign(this, e);
2007
- }
2008
- /**
2009
- * Creates a new QueryResponse instance from a string or object.
2010
- */
2011
- static createFrom(e = {}) {
2012
- const a = Os;
2013
- let s = typeof e == "string" ? JSON.parse(e) : e;
2014
- return "results" in s && (s.results = a(s.results)), new we(s);
2015
- }
2016
- }
2017
- class V {
2018
- /** Creates a new TimeSeries instance. */
2019
- constructor(e = {}) {
2020
- t(this, "metric_id");
2021
- t(this, "data_points");
2022
- t(this, "labels");
2023
- "metric_id" in e || (this.metric_id = ""), "data_points" in e || (this.data_points = []), "labels" in e || (this.labels = {}), Object.assign(this, e);
2024
- }
2025
- /**
2026
- * Creates a new TimeSeries instance from a string or object.
2027
- */
2028
- static createFrom(e = {}) {
2029
- const a = ws, s = N;
2030
- let n = typeof e == "string" ? JSON.parse(e) : e;
2031
- return "data_points" in n && (n.data_points = a(n.data_points)), "labels" in n && (n.labels = s(n.labels)), new V(n);
2032
- }
2033
- }
2034
- const N = d(c, c), cs = G.createFrom, ls = l(cs), os = D.createFrom, ps = l(os), ds = l(c), fs = V.createFrom, hs = f(fs), ms = M.createFrom, gs = f(ms), ys = H.createFrom, _s = f(ys), bs = d(c, c), Ss = l(c), Fs = q.createFrom, Os = l(Fs), us = Z.createFrom, ws = l(us), Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2035
- __proto__: null,
2036
- AggregateValue: H,
2037
- ColorRange: D,
2038
- CurrentValue: M,
2039
- DataPoint: Z,
2040
- Handler: Oe,
2041
- MetricDescriptor: G,
2042
- MetricResult: q,
2043
- MetricShape: ut,
2044
- MetricUnit: wt,
2045
- QueryRequest: ue,
2046
- QueryResponse: we,
2047
- TimeSeries: V
2048
- }, Symbol.toStringTag, { value: "Module" }));
2049
- class ve {
2050
- /** Creates a new FindPortForwardSessionRequest instance. */
2051
- constructor(e = {}) {
2052
- t(this, "resource_id");
2053
- t(this, "connection_id");
2054
- "resource_id" in e || (this.resource_id = ""), "connection_id" in e || (this.connection_id = ""), Object.assign(this, e);
2055
- }
2056
- /**
2057
- * Creates a new FindPortForwardSessionRequest instance from a string or object.
2058
- */
2059
- static createFrom(e = {}) {
2060
- let a = typeof e == "string" ? JSON.parse(e) : e;
2061
- return new ve(a);
2062
- }
2063
- }
2064
- var vt = /* @__PURE__ */ ((i) => (i.$zero = "", i.PortForwardConnectionTypeResource = "RESOURCE", i.PortForwardConnectionTypeStatic = "STATIC", i))(vt || {}), Tt = /* @__PURE__ */ ((i) => (i.$zero = "", i.PortForwardProtocolTCP = "TCP", i.PortForwardProtocolUDP = "UDP", i))(Tt || {});
2065
- class Te {
2066
- /** Creates a new PortForwardSession instance. */
2067
- constructor(e = {}) {
2068
- t(this, "created_at");
2069
- t(this, "updated_at");
2070
- t(this, "connection");
2071
- t(this, "labels");
2072
- t(this, "id");
2073
- t(this, "protocol");
2074
- t(this, "state");
2075
- t(this, "connection_type");
2076
- t(this, "encryption");
2077
- t(this, "local_port");
2078
- t(this, "remote_port");
2079
- "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 g()), "local_port" in e || (this.local_port = 0), "remote_port" in e || (this.remote_port = 0), Object.assign(this, e);
2080
- }
2081
- /**
2082
- * Creates a new PortForwardSession instance from a string or object.
2083
- */
2084
- static createFrom(e = {}) {
2085
- const a = Q, s = jt;
2086
- let n = typeof e == "string" ? JSON.parse(e) : e;
2087
- return "labels" in n && (n.labels = a(n.labels)), "encryption" in n && (n.encryption = s(n.encryption)), new Te(n);
2088
- }
2089
- }
2090
- class g {
2091
- /** Creates a new PortForwardSessionEncryption instance. */
2092
- constructor(e = {}) {
2093
- t(this, "algorithm");
2094
- t(this, "key");
2095
- t(this, "enabled");
2096
- "algorithm" in e || (this.algorithm = ""), "key" in e || (this.key = ""), "enabled" in e || (this.enabled = !1), Object.assign(this, e);
2097
- }
2098
- /**
2099
- * Creates a new PortForwardSessionEncryption instance from a string or object.
2100
- */
2101
- static createFrom(e = {}) {
2102
- let a = typeof e == "string" ? JSON.parse(e) : e;
2103
- return new g(a);
2104
- }
2105
- }
2106
- class Ne {
2107
- /** Creates a new PortForwardSessionOptions instance. */
2108
- constructor(e = {}) {
2109
- t(this, "connection");
2110
- t(this, "labels");
2111
- t(this, "params");
2112
- t(this, "protocol");
2113
- t(this, "connection_type");
2114
- t(this, "encryption");
2115
- t(this, "local_port");
2116
- t(this, "remote_port");
2117
- "connection" in e || (this.connection = null), "labels" in e || (this.labels = {}), "params" in e || (this.params = {}), "protocol" in e || (this.protocol = ""), "connection_type" in e || (this.connection_type = ""), "encryption" in e || (this.encryption = new g()), "local_port" in e || (this.local_port = 0), "remote_port" in e || (this.remote_port = 0), Object.assign(this, e);
2118
- }
2119
- /**
2120
- * Creates a new PortForwardSessionOptions instance from a string or object.
2121
- */
2122
- static createFrom(e = {}) {
2123
- const a = Q, s = Q, n = jt;
2124
- let r = typeof e == "string" ? JSON.parse(e) : e;
2125
- return "labels" in r && (r.labels = a(r.labels)), "params" in r && (r.params = s(r.params)), "encryption" in r && (r.encryption = n(r.encryption)), new Ne(r);
2126
- }
2127
- }
2128
- var Nt = /* @__PURE__ */ ((i) => (i.$zero = "", i.SessionStateActive = "ACTIVE", i.SessionStatePaused = "PAUSED", i.SessionStateStopped = "STOPPED", i.SessionStateFailed = "FAILED", i))(Nt || {});
2129
- const Q = d(c, c), jt = g.createFrom, Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2130
- __proto__: null,
2131
- FindPortForwardSessionRequest: ve,
2132
- PortForwardConnectionType: vt,
2133
- PortForwardProtocol: Tt,
2134
- PortForwardSession: Te,
2135
- PortForwardSessionEncryption: g,
2136
- PortForwardSessionOptions: Ne,
2137
- SessionState: Nt
2138
- }, Symbol.toStringTag, { value: "Module" }));
2139
- class je {
2140
- /** Creates a new GetPluginComponentsInput instance. */
2141
- constructor(e = {}) {
2142
- t(this, "plugin");
2143
- "plugin" in e || (this.plugin = ""), Object.assign(this, e);
2144
- }
2145
- /**
2146
- * Creates a new GetPluginComponentsInput instance from a string or object.
2147
- */
2148
- static createFrom(e = {}) {
2149
- let a = typeof e == "string" ? JSON.parse(e) : e;
2150
- return new je(a);
2151
- }
2152
- }
2153
- class Je {
2154
- /** Creates a new GetResourceAreaComponentInput instance. */
2155
- constructor(e = {}) {
2156
- t(this, "plugin");
2157
- t(this, "resource");
2158
- t(this, "area");
2159
- "plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), "area" in e || (this.area = ""), Object.assign(this, e);
2160
- }
2161
- /**
2162
- * Creates a new GetResourceAreaComponentInput instance from a string or object.
2163
- */
2164
- static createFrom(e = {}) {
2165
- let a = typeof e == "string" ? JSON.parse(e) : e;
2166
- return new Je(a);
2167
- }
2168
- }
2169
- class xe {
2170
- /** Creates a new GetResourceComponentsInput instance. */
2171
- constructor(e = {}) {
2172
- t(this, "plugin");
2173
- t(this, "resource");
2174
- "plugin" in e || (this.plugin = ""), "resource" in e || (this.resource = ""), Object.assign(this, e);
2175
- }
2176
- /**
2177
- * Creates a new GetResourceComponentsInput instance from a string or object.
2178
- */
2179
- static createFrom(e = {}) {
2180
- let a = typeof e == "string" ? JSON.parse(e) : e;
2181
- return new xe(a);
2182
- }
2183
- }
2184
- class Ee {
2185
- /** Creates a new ResourceComponent instance. */
2186
- constructor(e = {}) {
2187
- t(this, "owner");
2188
- t(this, "name");
2189
- t(this, "plugin");
2190
- t(this, "resource");
2191
- t(this, "area");
2192
- t(this, "extension");
2193
- "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);
2194
- }
2195
- /**
2196
- * Creates a new ResourceComponent instance from a string or object.
2197
- */
2198
- static createFrom(e = {}) {
2199
- let a = typeof e == "string" ? JSON.parse(e) : e;
2200
- return new Ee(a);
2201
- }
2202
- }
2203
- var Jt = /* @__PURE__ */ ((i) => (i.$zero = "", i.ResourceComponentAreaSidebar = "SIDEBAR", i.ResourceComponentAreaTable = "TABLE", i))(Jt || {});
2204
- const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2205
- __proto__: null,
2206
- GetPluginComponentsInput: je,
2207
- GetResourceAreaComponentInput: Je,
2208
- GetResourceComponentsInput: xe,
2209
- ResourceComponent: Ee,
2210
- ResourceComponentArea: Jt
2211
- }, Symbol.toStringTag, { value: "Module" }));
2212
- class ze {
2213
- /** Creates a new DependencyNode instance. */
2214
- constructor(e = {}) {
2215
- t(this, "edge");
2216
- t(this, "children");
2217
- "edge" in e || (this.edge = new L()), "children" in e || (this.children = []), Object.assign(this, e);
2218
- }
2219
- /**
2220
- * Creates a new DependencyNode instance from a string or object.
2221
- */
2222
- static createFrom(e = {}) {
2223
- const a = zt, s = kt;
2224
- let n = typeof e == "string" ? JSON.parse(e) : e;
2225
- return "edge" in n && (n.edge = a(n.edge)), "children" in n && (n.children = s(n.children)), new ze(n);
2226
- }
2227
- }
2228
- class xt {
2229
- /** Creates a new DependencyTree instance. */
2230
- constructor(e = {}) {
2231
- t(this, "root");
2232
- t(this, "children");
2233
- "root" in e || (this.root = new h()), "children" in e || (this.children = []), Object.assign(this, e);
2234
- }
2235
- /**
2236
- * Creates a new DependencyTree instance from a string or object.
2237
- */
2238
- static createFrom(e = {}) {
2239
- const a = b, s = kt;
2240
- let n = typeof e == "string" ? JSON.parse(e) : e;
2241
- return "root" in n && (n.root = a(n.root)), "children" in n && (n.children = s(n.children)), new xt(n);
2242
- }
2243
- }
2244
- class L {
2245
- /** Creates a new GraphEdge instance. */
2246
- constructor(e = {}) {
2247
- t(this, "source");
2248
- t(this, "target");
2249
- t(this, "type");
2250
- t(this, "label");
2251
- "source" in e || (this.source = new h()), "target" in e || (this.target = new h()), "type" in e || (this.type = et.$zero), "label" in e || (this.label = ""), Object.assign(this, e);
2252
- }
2253
- /**
2254
- * Creates a new GraphEdge instance from a string or object.
2255
- */
2256
- static createFrom(e = {}) {
2257
- const a = b, s = b;
2258
- let n = typeof e == "string" ? JSON.parse(e) : e;
2259
- return "source" in n && (n.source = a(n.source)), "target" in n && (n.target = s(n.target)), new L(n);
2260
- }
2261
- }
2262
- class h {
2263
- /** Creates a new GraphNode instance. */
2264
- constructor(e = {}) {
2265
- t(this, "pluginId");
2266
- t(this, "connectionId");
2267
- t(this, "resourceKey");
2268
- t(this, "id");
2269
- t(this, "namespace");
2270
- "pluginId" in e || (this.pluginId = ""), "connectionId" in e || (this.connectionId = ""), "resourceKey" in e || (this.resourceKey = ""), "id" in e || (this.id = ""), Object.assign(this, e);
2271
- }
2272
- /**
2273
- * Creates a new GraphNode instance from a string or object.
2274
- */
2275
- static createFrom(e = {}) {
2276
- let a = typeof e == "string" ? JSON.parse(e) : e;
2277
- return new h(a);
2278
- }
2279
- }
2280
- class Et {
2281
- /** Creates a new Subgraph instance. */
2282
- constructor(e = {}) {
2283
- t(this, "root");
2284
- t(this, "nodes");
2285
- t(this, "edges");
2286
- /**
2287
- * Truncated reports that maxSubgraphNodes was reached and some nodes and
2288
- * their edges were left out.
2289
- */
2290
- t(this, "truncated");
2291
- "root" in e || (this.root = new h()), "nodes" in e || (this.nodes = []), "edges" in e || (this.edges = []), "truncated" in e || (this.truncated = !1), Object.assign(this, e);
2292
- }
2293
- /**
2294
- * Creates a new Subgraph instance from a string or object.
2295
- */
2296
- static createFrom(e = {}) {
2297
- const a = b, s = Ns, n = js;
2298
- let r = typeof e == "string" ? JSON.parse(e) : e;
2299
- return "root" in r && (r.root = a(r.root)), "nodes" in r && (r.nodes = s(r.nodes)), "edges" in r && (r.edges = n(r.edges)), new Et(r);
2300
- }
2301
- }
2302
- class ke {
2303
- /** Creates a new SubgraphNode instance. */
2304
- constructor(e = {}) {
2305
- t(this, "node");
2306
- t(this, "depth");
2307
- "node" in e || (this.node = new h()), "depth" in e || (this.depth = 0), Object.assign(this, e);
2308
- }
2309
- /**
2310
- * Creates a new SubgraphNode instance from a string or object.
2311
- */
2312
- static createFrom(e = {}) {
2313
- const a = b;
2314
- let s = typeof e == "string" ? JSON.parse(e) : e;
2315
- return "node" in s && (s.node = a(s.node)), new ke(s);
2316
- }
2317
- }
2318
- const zt = L.createFrom, vs = ze.createFrom, kt = l(vs), b = h.createFrom, Ts = ke.createFrom, Ns = l(Ts), js = l(zt);
2319
- export {
2320
- _i as $,
2321
- Ue as A,
2322
- $e as B,
2323
- be as C,
2324
- Ze as D,
2325
- qe as E,
2326
- ve as F,
2327
- We as G,
2328
- tt as H,
2329
- lt as I,
2330
- Xi as J,
2331
- ye as K,
2332
- m as L,
2333
- Se as M,
2334
- ts as N,
2335
- Oe as O,
2336
- F as P,
2337
- we as Q,
2338
- ee as R,
2339
- _e as S,
2340
- Te as T,
2341
- ct as U,
2342
- Y as V,
2343
- Ti as W,
2344
- Ee as X,
2345
- xt as Y,
2346
- L as Z,
2347
- Et as _,
2348
- Ne as a,
2349
- u as a$,
2350
- ae as a0,
2351
- bi as a1,
2352
- Si as a2,
2353
- ne as a3,
2354
- Fi as a4,
2355
- Oi as a5,
2356
- ui as a6,
2357
- re as a7,
2358
- Le as a8,
2359
- ce as a9,
2360
- M as aA,
2361
- Z as aB,
2362
- G as aC,
2363
- q as aD,
2364
- ut as aE,
2365
- wt as aF,
2366
- ue as aG,
2367
- V as aH,
2368
- vt as aI,
2369
- Tt as aJ,
2370
- g as aK,
2371
- Nt as aL,
2372
- zs as aM,
2373
- Ps as aN,
2374
- As as aO,
2375
- Cs as aP,
2376
- Rs as aQ,
2377
- Es as aR,
2378
- ks as aS,
2379
- Bs as aT,
2380
- Is as aU,
2381
- z as aV,
2382
- Ae as aW,
2383
- S as aX,
2384
- k as aY,
2385
- I as aZ,
2386
- O as a_,
2387
- wi as aa,
2388
- le as ab,
2389
- v as ac,
2390
- oe as ad,
2391
- et as ae,
2392
- pe as af,
2393
- fe as ag,
2394
- he as ah,
2395
- vi as ai,
2396
- me as aj,
2397
- pt as ak,
2398
- li as al,
2399
- ni as am,
2400
- se as an,
2401
- ri as ao,
2402
- ci as ap,
2403
- C as aq,
2404
- ze as ar,
2405
- h as as,
2406
- ke as at,
2407
- ge as au,
2408
- St as av,
2409
- U as aw,
2410
- Ft as ax,
2411
- H as ay,
2412
- D as az,
2413
- Xe as b,
2414
- P as b0,
2415
- x as b1,
2416
- E as b2,
2417
- Pe as b3,
2418
- je as b4,
2419
- Je as b5,
2420
- xe as b6,
2421
- Jt as b7,
2422
- w as b8,
2423
- De as c,
2424
- J as d,
2425
- Be as e,
2426
- $ as f,
2427
- te as g,
2428
- X as h,
2429
- W as i,
2430
- ie as j,
2431
- Re as k,
2432
- st as l,
2433
- nt as m,
2434
- Me as n,
2435
- Ge as o,
2436
- He as p,
2437
- Qe as q,
2438
- Ye as r,
2439
- Ke as s,
2440
- Ve as t,
2441
- rt as u,
2442
- R as v,
2443
- it as w,
2444
- at as x,
2445
- de as y,
2446
- ot as z
2447
- };