@omniviewdev/runtime 0.25.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs +1 -1
- package/dist/api.d.ts +2 -0
- package/dist/api.js +492 -276
- package/dist/bindings/events/index.d.ts +12 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +85 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +3 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +2 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/models.d.ts +22 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/resourcecatalog/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/resourcecatalog/models.d.ts +127 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +45 -18
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +0 -22
- package/dist/compat/types.d.ts +2 -1
- package/dist/context/drawer/types.d.ts +8 -0
- package/dist/hooks/resource/index.d.ts +1 -0
- package/dist/hooks/resource/useEditorSchemas.d.ts +9 -8
- package/dist/hooks/resource/useSchemaFields.d.ts +45 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1685 -1582
- package/dist/{models-CewFz24b.js → models-BwT6PfKo.js} +41 -38
- package/dist/{models-CLq49NOj.js → models-CcH0zldZ.js} +1 -1
- package/dist/{models-BHsd9kBp.cjs → models-CpFXL1IY.cjs} +1 -1
- package/dist/models-R2rKpSiU.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +4 -1
- package/dist/models.js +100 -94
- package/dist/resource/v2/ancillary.d.ts +1 -8
- package/dist/resource/v2/client.d.ts +5 -2
- package/dist/resource/v2/domain.d.ts +0 -2
- package/dist/resource/v2/query-lease.d.ts +145 -0
- package/dist/resource/v2/query-observer.d.ts +37 -0
- package/dist/resource/v2/query.d.ts +120 -0
- package/dist/resource/v2/schema.d.ts +86 -0
- package/dist/{service-Bu30yNPj.js → service-Brxo1pLe.js} +306 -299
- package/dist/service-COOtx0k6.cjs +1 -0
- package/package.json +3 -3
- package/dist/models-DH1E1koG.cjs +0 -1
- package/dist/service-wGUMmq3M.cjs +0 -1
|
@@ -543,12 +543,37 @@ const p = c(l), ae = v.createFrom, re = d(ae), le = J.createFrom, ce = c(le), oe
|
|
|
543
543
|
RequiresSpec: I,
|
|
544
544
|
StateIsolationProvenance: P
|
|
545
545
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
546
|
+
class xt {
|
|
547
|
+
id;
|
|
548
|
+
metadata;
|
|
549
|
+
phase;
|
|
550
|
+
enabled;
|
|
551
|
+
devMode;
|
|
552
|
+
devPath;
|
|
553
|
+
capabilities;
|
|
554
|
+
lastError;
|
|
555
|
+
origin;
|
|
556
|
+
frontendModule;
|
|
557
|
+
/** Creates a new PluginInfo instance. */
|
|
558
|
+
constructor(t = {}) {
|
|
559
|
+
"id" in t || (this.id = ""), "metadata" in t || (this.metadata = new _()), "phase" in t || (this.phase = ""), "enabled" in t || (this.enabled = !1), "devMode" in t || (this.devMode = !1), "capabilities" in t || (this.capabilities = []), "origin" in t || (this.origin = ""), "frontendModule" in t || (this.frontendModule = ""), Object.assign(this, t);
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Creates a new PluginInfo instance from a string or object.
|
|
563
|
+
*/
|
|
564
|
+
static createFrom(t = {}) {
|
|
565
|
+
const s = Te, i = ue;
|
|
566
|
+
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
567
|
+
return "metadata" in n && (n.metadata = s(n.metadata)), "capabilities" in n && (n.capabilities = i(n.capabilities)), new xt(n);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
const Te = _.createFrom, ue = c(l);
|
|
546
571
|
var E = /* @__PURE__ */ ((e) => (e[e.$zero = 0] = "$zero", e[e.minDuration = -9223372036854776e3] = "minDuration", e[e.maxDuration = 9223372036854776e3] = "maxDuration", e[e.Nanosecond = 1] = "Nanosecond", e[e.Microsecond = 1e3] = "Microsecond", e[e.Millisecond = 1e6] = "Millisecond", e[e.Second = 1e9] = "Second", e[e.Minute = 6e10] = "Minute", e[e.Hour = 36e11] = "Hour", e))(E || {});
|
|
547
572
|
const yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
548
573
|
__proto__: null,
|
|
549
574
|
Duration: E
|
|
550
575
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
551
|
-
var
|
|
576
|
+
var Ne = /* @__PURE__ */ ((e) => (e.$zero = "", e.CapabilityResource = "resource", e.CapabilityExec = "exec", e.CapabilityNetworker = "networker", e.CapabilityLog = "log", e.CapabilityMetric = "metric", e.CapabilitySettings = "settings", e.CapabilityTools = "tools", e.CapabilityUI = "ui", e))(Ne || {});
|
|
552
577
|
class nt {
|
|
553
578
|
/**
|
|
554
579
|
* LastRefresh is the time when the auth context was last refreshed
|
|
@@ -617,7 +642,7 @@ class nt {
|
|
|
617
642
|
* Creates a new Connection instance from a string or object.
|
|
618
643
|
*/
|
|
619
644
|
static createFrom(t = {}) {
|
|
620
|
-
const s = Nt, i = Nt, n =
|
|
645
|
+
const s = Nt, i = Nt, n = Pe;
|
|
621
646
|
let a = typeof t == "string" ? JSON.parse(t) : t;
|
|
622
647
|
return "data" in a && (a.data = s(a.data)), "labels" in a && (a.labels = i(a.labels)), "lifecycle" in a && (a.lifecycle = n(a.lifecycle)), new nt(a);
|
|
623
648
|
}
|
|
@@ -634,12 +659,12 @@ class at {
|
|
|
634
659
|
* Creates a new ConnectionAutoConnect instance from a string or object.
|
|
635
660
|
*/
|
|
636
661
|
static createFrom(t = {}) {
|
|
637
|
-
const s =
|
|
662
|
+
const s = Ee;
|
|
638
663
|
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
639
664
|
return "triggers" in i && (i.triggers = s(i.triggers)), new at(i);
|
|
640
665
|
}
|
|
641
666
|
}
|
|
642
|
-
var
|
|
667
|
+
var je = /* @__PURE__ */ ((e) => (e.$zero = "", e.ConnectionAutoConnectRetryNone = "NONE", e.ConnectionAutoConnectRetryOnChange = "ON_CHANGE", e))(je || {}), Je = /* @__PURE__ */ ((e) => (e.$zero = "", e.ConnectionAutoConnectTriggerPluginStart = "PLUGIN_START", e.ConnectionAutoConnectTriggerConnectionDiscovered = "CONNECTION_DISCOVERED", e))(Je || {});
|
|
643
668
|
class k {
|
|
644
669
|
auto_connect;
|
|
645
670
|
/** Creates a new ConnectionLifecycle instance. */
|
|
@@ -650,12 +675,12 @@ class k {
|
|
|
650
675
|
* Creates a new ConnectionLifecycle instance from a string or object.
|
|
651
676
|
*/
|
|
652
677
|
static createFrom(t = {}) {
|
|
653
|
-
const s =
|
|
678
|
+
const s = ze;
|
|
654
679
|
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
655
680
|
return "auto_connect" in i && (i.auto_connect = s(i.auto_connect)), new k(i);
|
|
656
681
|
}
|
|
657
682
|
}
|
|
658
|
-
class
|
|
683
|
+
class At {
|
|
659
684
|
/**
|
|
660
685
|
* Connection is the connection that the status is for.
|
|
661
686
|
*/
|
|
@@ -680,35 +705,13 @@ class xt {
|
|
|
680
705
|
* Creates a new ConnectionStatus instance from a string or object.
|
|
681
706
|
*/
|
|
682
707
|
static createFrom(t = {}) {
|
|
683
|
-
const s =
|
|
708
|
+
const s = Ae;
|
|
684
709
|
let i = typeof t == "string" ? JSON.parse(t) : t;
|
|
685
|
-
return "connection" in i && (i.connection = s(i.connection)), new
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
var je = /* @__PURE__ */ ((e) => (e.$zero = "", e.ConnectionStatusUnknown = "UNKNOWN", e.ConnectionStatusConnected = "CONNECTED", e.ConnectionStatusDisconnected = "DISCONNECTED", e.ConnectionStatusPending = "PENDING", e.ConnectionStatusFailed = "FAILED", e.ConnectionStatusError = "ERROR", e.ConnectionStatusUnauthorized = "UNAUTHORIZED", e.ConnectionStatusForbidden = "FORBIDDEN", e.ConnectionStatusBadRequest = "BAD_REQUEST", e.ConnectionStatusNotFound = "NOT_FOUND", e.ConnectionStatusTimeout = "TIMEOUT", e.ConnectionStatusUnavailable = "UNAVAILABLE", e.ConnectionStatusRequestEntityTooLarge = "REQUEST_ENTITY_TOO_LARGE", e))(je || {});
|
|
689
|
-
class At {
|
|
690
|
-
id;
|
|
691
|
-
metadata;
|
|
692
|
-
phase;
|
|
693
|
-
enabled;
|
|
694
|
-
devMode;
|
|
695
|
-
devPath;
|
|
696
|
-
capabilities;
|
|
697
|
-
lastError;
|
|
698
|
-
/** Creates a new PluginInfo instance. */
|
|
699
|
-
constructor(t = {}) {
|
|
700
|
-
"id" in t || (this.id = ""), "metadata" in t || (this.metadata = new _()), "phase" in t || (this.phase = ""), "enabled" in t || (this.enabled = !1), "devMode" in t || (this.devMode = !1), "capabilities" in t || (this.capabilities = []), Object.assign(this, t);
|
|
701
|
-
}
|
|
702
|
-
/**
|
|
703
|
-
* Creates a new PluginInfo instance from a string or object.
|
|
704
|
-
*/
|
|
705
|
-
static createFrom(t = {}) {
|
|
706
|
-
const s = xe, i = Ae;
|
|
707
|
-
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
708
|
-
return "metadata" in n && (n.metadata = s(n.metadata)), "capabilities" in n && (n.capabilities = i(n.capabilities)), new At(n);
|
|
710
|
+
return "connection" in i && (i.connection = s(i.connection)), new At(i);
|
|
709
711
|
}
|
|
710
712
|
}
|
|
711
|
-
|
|
713
|
+
var Ie = /* @__PURE__ */ ((e) => (e.$zero = "", e.ConnectionStatusUnknown = "UNKNOWN", e.ConnectionStatusConnected = "CONNECTED", e.ConnectionStatusDisconnected = "DISCONNECTED", e.ConnectionStatusPending = "PENDING", e.ConnectionStatusFailed = "FAILED", e.ConnectionStatusError = "ERROR", e.ConnectionStatusUnauthorized = "UNAUTHORIZED", e.ConnectionStatusForbidden = "FORBIDDEN", e.ConnectionStatusBadRequest = "BAD_REQUEST", e.ConnectionStatusNotFound = "NOT_FOUND", e.ConnectionStatusTimeout = "TIMEOUT", e.ConnectionStatusUnavailable = "UNAVAILABLE", e.ConnectionStatusRequestEntityTooLarge = "REQUEST_ENTITY_TOO_LARGE", e))(Ie || {});
|
|
714
|
+
const Nt = f(l, l), Pe = k.createFrom, Ee = c(l), ke = at.createFrom, ze = d(ke), xe = nt.createFrom, Ae = d(xe);
|
|
712
715
|
class rt {
|
|
713
716
|
settings;
|
|
714
717
|
id;
|
|
@@ -1466,7 +1469,7 @@ export {
|
|
|
1466
1469
|
y as $,
|
|
1467
1470
|
tt as A,
|
|
1468
1471
|
S as B,
|
|
1469
|
-
|
|
1472
|
+
At as C,
|
|
1470
1473
|
et as D,
|
|
1471
1474
|
u as E,
|
|
1472
1475
|
M as F,
|
|
@@ -1517,7 +1520,7 @@ export {
|
|
|
1517
1520
|
wi as am,
|
|
1518
1521
|
E as an,
|
|
1519
1522
|
$ as b,
|
|
1520
|
-
|
|
1523
|
+
xt as c,
|
|
1521
1524
|
nt as d,
|
|
1522
1525
|
rt as e,
|
|
1523
1526
|
lt as f,
|
|
@@ -1526,12 +1529,12 @@ export {
|
|
|
1526
1529
|
mt as i,
|
|
1527
1530
|
Ot as j,
|
|
1528
1531
|
vt as k,
|
|
1529
|
-
|
|
1532
|
+
Ie as l,
|
|
1530
1533
|
at as m,
|
|
1531
|
-
|
|
1532
|
-
|
|
1534
|
+
je as n,
|
|
1535
|
+
Je as o,
|
|
1533
1536
|
k as p,
|
|
1534
|
-
|
|
1537
|
+
Ne as q,
|
|
1535
1538
|
V as r,
|
|
1536
1539
|
B as s,
|
|
1537
1540
|
W as t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-BVi9X4oU.cjs"),N=require("./models-
|
|
1
|
+
"use strict";const s=require("./index-BVi9X4oU.cjs"),N=require("./models-R2rKpSiU.cjs");class r{Provider;Connection;ResourceType;Object;Action;Scope;constructor(i={}){"Provider"in i||(this.Provider=""),"Connection"in i||(this.Connection=""),"ResourceType"in i||(this.ResourceType=""),"Object"in i||(this.Object=""),"Action"in i||(this.Action=""),"Scope"in i||(this.Scope={}),Object.assign(this,i)}static createFrom(i={}){const t=P;let n=typeof i=="string"?JSON.parse(i):i;return"Scope"in n&&(n.Scope=t(n.Scope)),new r(n)}}const P=s.Map(s.Any,s.Any);class l{enabled;port;endpoint;token;blockConnectionsByDefault;globalPreset;userPresets;constructor(i={}){"enabled"in i||(this.enabled=!1),"port"in i||(this.port=0),"endpoint"in i||(this.endpoint=""),"token"in i||(this.token=""),"blockConnectionsByDefault"in i||(this.blockConnectionsByDefault=!1),"globalPreset"in i||(this.globalPreset=""),"userPresets"in i||(this.userPresets=[]),Object.assign(this,i)}static createFrom(i={}){const t=j;let n=typeof i=="string"?JSON.parse(i):i;return"userPresets"in n&&(n.userPresets=t(n.userPresets)),new l(n)}}class S{id;approved;reason;constructor(i={}){"id"in i||(this.id=""),"approved"in i||(this.approved=!1),"reason"in i||(this.reason=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new S(t)}}class o{pluginID;pluginName;connectionID;connectionName;access;effectiveAccess;preset;effectivePreset;constructor(i={}){"pluginID"in i||(this.pluginID=""),"pluginName"in i||(this.pluginName=""),"connectionID"in i||(this.connectionID=""),"connectionName"in i||(this.connectionName=""),"access"in i||(this.access=""),"effectiveAccess"in i||(this.effectiveAccess=!1),"preset"in i||(this.preset=""),"effectivePreset"in i||(this.effectivePreset=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new o(t)}}class f{id;mcpName;pluginID;pluginName;connectionID;connectionName;argumentsJSON;requestedAt;origin;credentialID;sessionID;invocationID;target;policyRevision;catalogRevision;constructor(i={}){"id"in i||(this.id=""),"mcpName"in i||(this.mcpName=""),"pluginID"in i||(this.pluginID=""),"pluginName"in i||(this.pluginName=""),"connectionID"in i||(this.connectionID=""),"connectionName"in i||(this.connectionName=""),"argumentsJSON"in i||(this.argumentsJSON=""),"requestedAt"in i||(this.requestedAt="0001-01-01T00:00:00.000Z"),"origin"in i||(this.origin=""),"credentialID"in i||(this.credentialID=""),"sessionID"in i||(this.sessionID=""),"invocationID"in i||(this.invocationID=""),"target"in i||(this.target=new r),"policyRevision"in i||(this.policyRevision=0),"catalogRevision"in i||(this.catalogRevision=0),Object.assign(this,i)}static createFrom(i={}){const t=F;let n=typeof i=="string"?JSON.parse(i):i;return"target"in n&&(n.target=t(n.target)),new f(n)}}class p{name;builtIn;toolCount;constructor(i={}){"name"in i||(this.name=""),"builtIn"in i||(this.builtIn=!1),"toolCount"in i||(this.toolCount=0),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new p(t)}}class b{pluginID;connectionID;constructor(i={}){"pluginID"in i||(this.pluginID=""),"connectionID"in i||(this.connectionID=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new b(t)}}class c{enabled;running;endpoint;error;constructor(i={}){"enabled"in i||(this.enabled=!1),"running"in i||(this.running=!1),"endpoint"in i||(this.endpoint=""),"error"in i||(this.error=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new c(t)}}class v{enabled;confirm;constructor(i={}){Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new v(t)}}class d{mcpName;pluginID;connectionID;pluginName;name;title;description;scope;status;builtIn;readOnly;listed;ready;destructive;enabled;enabledSource;confirm;confirmSource;overrideEnabled;overrideConfirm;constructor(i={}){"mcpName"in i||(this.mcpName=""),"pluginID"in i||(this.pluginID=""),"connectionID"in i||(this.connectionID=""),"pluginName"in i||(this.pluginName=""),"name"in i||(this.name=""),"title"in i||(this.title=""),"description"in i||(this.description=""),"scope"in i||(this.scope=""),"status"in i||(this.status=""),"builtIn"in i||(this.builtIn=!1),"readOnly"in i||(this.readOnly=!1),"listed"in i||(this.listed=!1),"ready"in i||(this.ready=!1),"destructive"in i||(this.destructive=!1),"enabled"in i||(this.enabled=!1),"enabledSource"in i||(this.enabledSource=""),"confirm"in i||(this.confirm=!1),"confirmSource"in i||(this.confirmSource=""),"overrideEnabled"in i||(this.overrideEnabled=null),"overrideConfirm"in i||(this.overrideConfirm=null),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new d(t)}}const j=s.Array(s.Any),F=r.createFrom,w=Object.freeze(Object.defineProperty({__proto__:null,ConfigView:l,ConfirmationResolved:S,ConnectionPolicyView:o,PendingConfirmation:f,PresetView:p,Scope:b,Status:c,ToolOverride:v,ToolView:d},Symbol.toStringTag,{value:"Module"}));class a{file;line;column;message;constructor(i={}){"file"in i||(this.file=""),"line"in i||(this.line=0),"column"in i||(this.column=0),"message"in i||(this.message=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new a(t)}}var D=(e=>(e.$zero="",e.DevProcessStatusIdle="idle",e.DevProcessStatusStarting="starting",e.DevProcessStatusBuilding="building",e.DevProcessStatusRunning="running",e.DevProcessStatusReady="ready",e.DevProcessStatusError="error",e.DevProcessStatusStopped="stopped",e.DevProcessStatusNotApplicable="n/a",e))(D||{});class g{pluginID;errors;constructor(i={}){"pluginID"in i||(this.pluginID=""),"errors"in i||(this.errors=[]),Object.assign(this,i)}static createFrom(i={}){const t=J;let n=typeof i=="string"?JSON.parse(i):i;return"errors"in n&&(n.errors=t(n.errors)),new g(n)}}var y=(e=>(e.$zero="",e.DevServerModeIdle="idle",e.DevServerModeManaged="managed",e))(y||{});class h{pluginID;mode;devPath;vitePort;viteURL;viteStatus;goStatus;lastBuildDuration;lastBuildTime;lastError;grpcConnected;generation;hmrURL;buildStatus;rpcStatus;controllerStatus;ready;constructor(i={}){"pluginID"in i||(this.pluginID=""),"mode"in i||(this.mode=""),"devPath"in i||(this.devPath=""),"vitePort"in i||(this.vitePort=0),"viteURL"in i||(this.viteURL=""),"viteStatus"in i||(this.viteStatus=""),"goStatus"in i||(this.goStatus=""),"lastBuildDuration"in i||(this.lastBuildDuration=N.Duration.$zero),"lastBuildTime"in i||(this.lastBuildTime=""),"lastError"in i||(this.lastError=""),"grpcConnected"in i||(this.grpcConnected=!1),"generation"in i||(this.generation=""),"hmrURL"in i||(this.hmrURL=""),"buildStatus"in i||(this.buildStatus=""),"rpcStatus"in i||(this.rpcStatus=""),"controllerStatus"in i||(this.controllerStatus=""),"ready"in i||(this.ready=!1),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new h(t)}}var I=(e=>(e.$zero="",e.StagePending="pending",e.StageBuilding="building",e.StageReady="ready",e.StageError="error",e.StageStopped="stopped",e.StageNotApplicable="n/a",e))(I||{});let u=class O{timestamp;source;level;message;pluginID;constructor(i={}){"timestamp"in i||(this.timestamp=""),"source"in i||(this.source=""),"level"in i||(this.level=""),"message"in i||(this.message=""),"pluginID"in i||(this.pluginID=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new O(t)}};const C=a.createFrom,J=s.Array(C),R=Object.freeze(Object.defineProperty({__proto__:null,BuildError:a,DevProcessStatus:D,DevServerErrorPayload:g,DevServerMode:y,DevServerState:h,LifecycleStage:I,LogEntry:u},Symbol.toStringTag,{value:"Module"}));class m{timestamp;pluginID;source;level;message;constructor(i={}){"timestamp"in i||(this.timestamp=""),"pluginID"in i||(this.pluginID=""),"source"in i||(this.source=""),"level"in i||(this.level=""),"message"in i||(this.message=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new m(t)}}const A=Object.freeze(Object.defineProperty({__proto__:null,LogEntry:m},Symbol.toStringTag,{value:"Module"}));exports.BuildError=a;exports.ConfigView=l;exports.ConnectionPolicyView=o;exports.DevProcessStatus=D;exports.DevServerErrorPayload=g;exports.DevServerMode=y;exports.DevServerState=h;exports.LifecycleStage=I;exports.LogEntry=u;exports.LogEntry$1=m;exports.PendingConfirmation=f;exports.PresetView=p;exports.Status=c;exports.ToolView=d;exports.models=R;exports.models$1=w;exports.models$2=A;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./index-BVi9X4oU.cjs");class fe{connection;constructor(e={}){"connection"in e||(this.connection=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new fe(n)}}class he{address;incarnation;constructor(e={}){"address"in e||(this.address=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new he(n)}}let U=class ke{label;label_selector;paths;selectors;constructor(e={}){"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)}static createFrom(e={}){const n=H,i=_;let s=typeof e=="string"?JSON.parse(e):e;return"paths"in s&&(s.paths=n(s.paths)),"selectors"in s&&(s.selectors=i(s.selectors)),new ke(s)}},ze=class Be{plugin;resource;target_builder;default_command;supports_native_command;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new U),"default_command"in e||(this.default_command=[]),"supports_native_command"in e||(this.supports_native_command=!1),Object.assign(this,e)}static createFrom(e={}){const n=Qe,i=H;let s=typeof e=="string"?JSON.parse(e):e;return"target_builder"in s&&(s.target_builder=n(s.target_builder)),"default_command"in s&&(s.default_command=i(s.default_command)),new Be(s)}};class q{created_at;labels;params;id;command;attached;constructor(e={}){"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)}static createFrom(e={}){const n=_,i=_,s=H;let r=typeof e=="string"?JSON.parse(e):e;return"labels"in r&&(r.labels=n(r.labels)),"params"in r&&(r.params=i(r.params)),"command"in r&&(r.command=s(r.command)),new q(r)}}class D{params;labels;id;resource_plugin;resource_key;resource_data;reference;route;command;tty;constructor(e={}){"params"in e||(this.params={}),"labels"in e||(this.labels={}),"id"in e||(this.id=""),"resource_plugin"in e||(this.resource_plugin=""),"resource_key"in e||(this.resource_key=""),"command"in e||(this.command=[]),"tty"in e||(this.tty=!1),Object.assign(this,e)}static createFrom(e={}){const n=_,i=_,s=et,r=it,pe=H;let o=typeof e=="string"?JSON.parse(e):e;return"params"in o&&(o.params=n(o.params)),"labels"in o&&(o.labels=i(o.labels)),"reference"in o&&(o.reference=s(o.reference)),"route"in o&&(o.route=r(o.route)),"command"in o&&(o.command=pe(o.command)),new D(o)}}const H=a.Array(a.Any),_=a.Map(a.Any,a.Any),Qe=U.createFrom,$e=he.createFrom,et=a.Nullable($e),tt=fe.createFrom,it=a.Nullable(tt),nt=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:U,Handler:ze,Session:q,SessionOptions:D},Symbol.toStringTag,{value:"Module"}));class M{resource_id;connection_id;constructor(e={}){"resource_id"in e||(this.resource_id=""),"connection_id"in e||(this.connection_id=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new M(n)}}var me=(t=>(t.$zero="",t.PortForwardConnectionTypeResource="RESOURCE",t.PortForwardConnectionTypeStatic="STATIC",t))(me||{}),ge=(t=>(t.$zero="",t.PortForwardProtocolTCP="TCP",t.PortForwardProtocolUDP="UDP",t))(ge||{});class G{created_at;updated_at;connection;labels;id;protocol;state;connection_type;encryption;local_port;remote_port;constructor(e={}){"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 d),"local_port"in e||(this.local_port=0),"remote_port"in e||(this.remote_port=0),Object.assign(this,e)}static createFrom(e={}){const n=st,i=at;let s=typeof e=="string"?JSON.parse(e):e;return"labels"in s&&(s.labels=n(s.labels)),"encryption"in s&&(s.encryption=i(s.encryption)),new G(s)}}class d{algorithm;key;enabled;constructor(e={}){"algorithm"in e||(this.algorithm=""),"key"in e||(this.key=""),"enabled"in e||(this.enabled=!1),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new d(n)}}var _e=(t=>(t.$zero="",t.SessionStateActive="ACTIVE",t.SessionStatePaused="PAUSED",t.SessionStateStopped="STOPPED",t.SessionStateFailed="FAILED",t))(_e||{});const st=a.Map(a.Any,a.Any),at=d.createFrom,rt=Object.freeze(Object.defineProperty({__proto__:null,FindPortForwardSessionRequest:M,PortForwardConnectionType:me,PortForwardProtocol:ge,PortForwardSession:G,PortForwardSessionEncryption:d,SessionState:_e},Symbol.toStringTag,{value:"Module"}));class Z{id;name;description;icon_url;category;tags;license;official;featured;download_count;average_rating;review_count;repository;url;publisher_name;installed;installed_version;latest_version;update_available;constructor(e={}){"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)}static createFrom(e={}){const n=We;let i=typeof e=="string"?JSON.parse(e):e;return"tags"in i&&(i.tags=n(i.tags)),new Z(i)}}class L{date;count;constructor(e={}){"date"in e||(this.date=""),"count"in e||(this.count=0),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new L(n)}}class V{total;last_month;last_week;daily_stats;constructor(e={}){"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)}static createFrom(e={}){const n=ot;let i=typeof e=="string"?JSON.parse(e):e;return"daily_stats"in i&&(i.daily_stats=n(i.daily_stats)),new V(i)}}class Y{id;user_id;rating;title;body;created_at;constructor(e={}){"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)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Y(n)}}class X{version;description;changelog;min_ide_version;max_ide_version;capabilities;created_at;compatible;compatibility_reason;discovery_supported;constructor(e={}){"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=""),"compatible"in e||(this.compatible=!1),"compatibility_reason"in e||(this.compatibility_reason=""),"discovery_supported"in e||(this.discovery_supported=!1),Object.assign(this,e)}static createFrom(e={}){const n=We;let i=typeof e=="string"?JSON.parse(e):e;return"capabilities"in i&&(i.capabilities=n(i.capabilities)),new X(i)}}const We=a.Array(a.Any),lt=L.createFrom,ot=a.Array(lt),ct=Object.freeze(Object.defineProperty({__proto__:null,AvailablePlugin:Z,DailyStat:L,DownloadStats:V,Review:Y,VersionInfo:X},Symbol.toStringTag,{value:"Module"}));class y{operations;resource_types;constructor(e={}){"operations"in e||(this.operations=[]),"resource_types"in e||(this.resource_types=[]),Object.assign(this,e)}static createFrom(e={}){const n=c,i=c;let s=typeof e=="string"?JSON.parse(e):e;return"operations"in s&&(s.operations=n(s.operations)),"resource_types"in s&&(s.resource_types=i(s.resource_types)),new y(s)}}class b{plugin;operations;resource_types;constructor(e={}){"plugin"in e||(this.plugin=""),"operations"in e||(this.operations=[]),"resource_types"in e||(this.resource_types=[]),Object.assign(this,e)}static createFrom(e={}){const n=c,i=c;let s=typeof e=="string"?JSON.parse(e):e;return"operations"in s&&(s.operations=n(s.operations)),"resource_types"in s&&(s.resource_types=i(s.resource_types)),new b(s)}}class S{connections;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=pt;let i=typeof e=="string"?JSON.parse(e):e;return"connections"in i&&(i.connections=n(i.connections)),new S(i)}}class F{name;email;url;constructor(e={}){"name"in e||(this.name=""),"email"in e||(this.email=""),"url"in e||(this.url=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new F(n)}}var ye=(t=>(t.$zero="",t.PluginComponentAreaEditor="EDITOR",t.PluginComponentAreaSidebar="SIDEBAR",t))(ye||{});class p{resource;constructor(e={}){"resource"in e||(this.resource=[]),Object.assign(this,e)}static createFrom(e={}){const n=ht;let i=typeof e=="string"?JSON.parse(e):e;return"resource"in i&&(i.resource=n(i.resource)),new p(i)}}class O{name;email;constructor(e={}){"name"in e||(this.name=""),"email"in e||(this.email=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new O(n)}}class f{id;version;name;icon;icon_url;description;repository;website;category;license;author;maintainers;tags;dependencies;capabilities;theme;components;schema_version;sdk_protocol_version;exports;requires;state_isolation;constructor(e={}){"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 h),"components"in e||(this.components=new p),"schema_version"in e||(this.schema_version=0),"sdk_protocol_version"in e||(this.sdk_protocol_version=0),Object.assign(this,e)}static createFrom(e={}){const n=gt,i=yt,s=c,r=c,pe=c,o=bt,Ve=St,Ye=Ot,Xe=wt,Ke=Tt;let l=typeof e=="string"?JSON.parse(e):e;return"author"in l&&(l.author=n(l.author)),"maintainers"in l&&(l.maintainers=i(l.maintainers)),"tags"in l&&(l.tags=s(l.tags)),"dependencies"in l&&(l.dependencies=r(l.dependencies)),"capabilities"in l&&(l.capabilities=pe(l.capabilities)),"theme"in l&&(l.theme=o(l.theme)),"components"in l&&(l.components=Ve(l.components)),"exports"in l&&(l.exports=Ye(l.exports)),"requires"in l&&(l.requires=Xe(l.requires)),"state_isolation"in l&&(l.state_isolation=Ke(l.state_isolation)),new f(l)}}class u{name;plugin;area;resources;extension;constructor(e={}){"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)}static createFrom(e={}){const n=c;let i=typeof e=="string"?JSON.parse(e):e;return"resources"in i&&(i.resources=n(i.resources)),new u(i)}}class h{colors;constructor(e={}){"colors"in e||(this.colors=new m),Object.assign(this,e)}static createFrom(e={}){const n=Nt;let i=typeof e=="string"?JSON.parse(e):e;return"colors"in i&&(i.colors=n(i.colors)),new h(i)}}class m{primary;secondary;tertiary;constructor(e={}){"primary"in e||(this.primary=""),"secondary"in e||(this.secondary=""),"tertiary"in e||(this.tertiary=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new m(n)}}class w{connections;constructor(e={}){"connections"in e||(this.connections=[]),Object.assign(this,e)}static createFrom(e={}){const n=At;let i=typeof e=="string"?JSON.parse(e):e;return"connections"in i&&(i.connections=n(i.connections)),new w(i)}}class v{schema_version;capability;sdk_module;sdk_revision;sdk_source_sha256;binary_sha256;constructor(e={}){"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)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new v(n)}}const c=a.Array(a.Any),dt=y.createFrom,pt=a.Nullable(dt),ft=u.createFrom,ht=a.Array(ft),mt=F.createFrom,gt=a.Nullable(mt),_t=O.createFrom,yt=a.Array(_t),bt=h.createFrom,St=p.createFrom,Ft=S.createFrom,Ot=a.Nullable(Ft),ut=w.createFrom,wt=a.Nullable(ut),vt=v.createFrom,Tt=a.Nullable(vt),Nt=m.createFrom,jt=b.createFrom,At=a.Array(jt),Jt=Object.freeze(Object.defineProperty({__proto__:null,ConnectionExport:y,ConnectionRequirement:b,ExportsSpec:S,PluginAuthor:F,PluginComponentArea:ye,PluginComponents:p,PluginMaintainer:O,PluginMeta:f,PluginResourceComponent:u,PluginTheme:h,PluginThemeColors:m,RequiresSpec:w,StateIsolationProvenance:v},Symbol.toStringTag,{value:"Module"}));class be{id;metadata;phase;enabled;devMode;devPath;capabilities;lastError;origin;frontendModule;constructor(e={}){"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=[]),"origin"in e||(this.origin=""),"frontendModule"in e||(this.frontendModule=""),Object.assign(this,e)}static createFrom(e={}){const n=Pt,i=It;let s=typeof e=="string"?JSON.parse(e):e;return"metadata"in s&&(s.metadata=n(s.metadata)),"capabilities"in s&&(s.capabilities=i(s.capabilities)),new be(s)}}const Pt=f.createFrom,It=a.Array(a.Any);var T=(t=>(t[t.$zero=0]="$zero",t[t.minDuration=-9223372036854776e3]="minDuration",t[t.maxDuration=9223372036854776e3]="maxDuration",t[t.Nanosecond=1]="Nanosecond",t[t.Microsecond=1e3]="Microsecond",t[t.Millisecond=1e6]="Millisecond",t[t.Second=1e9]="Second",t[t.Minute=6e10]="Minute",t[t.Hour=36e11]="Hour",t))(T||{});const Ct=Object.freeze(Object.defineProperty({__proto__:null,Duration:T},Symbol.toStringTag,{value:"Module"}));var Ue=(t=>(t.$zero="",t.CapabilityResource="resource",t.CapabilityExec="exec",t.CapabilityNetworker="networker",t.CapabilityLog="log",t.CapabilityMetric="metric",t.CapabilitySettings="settings",t.CapabilityTools="tools",t.CapabilityUI="ui",t))(Ue||{});class K{last_refresh;data;labels;lifecycle;id;uid;name;description;avatar;expiry_time;Client;constructor(e={}){"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 N),"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=T.$zero),"Client"in e||(this.Client=null),Object.assign(this,e)}static createFrom(e={}){const n=xe,i=xe,s=Et;let r=typeof e=="string"?JSON.parse(e):e;return"data"in r&&(r.data=n(r.data)),"labels"in r&&(r.labels=i(r.labels)),"lifecycle"in r&&(r.lifecycle=s(r.lifecycle)),new K(r)}}class Q{enabled;triggers;retry;constructor(e={}){"enabled"in e||(this.enabled=!1),"triggers"in e||(this.triggers=[]),"retry"in e||(this.retry=""),Object.assign(this,e)}static createFrom(e={}){const n=Rt;let i=typeof e=="string"?JSON.parse(e):e;return"triggers"in i&&(i.triggers=n(i.triggers)),new Q(i)}}var qe=(t=>(t.$zero="",t.ConnectionAutoConnectRetryNone="NONE",t.ConnectionAutoConnectRetryOnChange="ON_CHANGE",t))(qe||{}),De=(t=>(t.$zero="",t.ConnectionAutoConnectTriggerPluginStart="PLUGIN_START",t.ConnectionAutoConnectTriggerConnectionDiscovered="CONNECTION_DISCOVERED",t))(De||{});class N{auto_connect;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=kt;let i=typeof e=="string"?JSON.parse(e):e;return"auto_connect"in i&&(i.auto_connect=n(i.auto_connect)),new N(i)}}class Se{connection;status;error;details;constructor(e={}){"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)}static createFrom(e={}){const n=Bt;let i=typeof e=="string"?JSON.parse(e):e;return"connection"in i&&(i.connection=n(i.connection)),new Se(i)}}var He=(t=>(t.$zero="",t.ConnectionStatusUnknown="UNKNOWN",t.ConnectionStatusConnected="CONNECTED",t.ConnectionStatusDisconnected="DISCONNECTED",t.ConnectionStatusPending="PENDING",t.ConnectionStatusFailed="FAILED",t.ConnectionStatusError="ERROR",t.ConnectionStatusUnauthorized="UNAUTHORIZED",t.ConnectionStatusForbidden="FORBIDDEN",t.ConnectionStatusBadRequest="BAD_REQUEST",t.ConnectionStatusNotFound="NOT_FOUND",t.ConnectionStatusTimeout="TIMEOUT",t.ConnectionStatusUnavailable="UNAVAILABLE",t.ConnectionStatusRequestEntityTooLarge="REQUEST_ENTITY_TOO_LARGE",t))(He||{});const xe=a.Map(a.Any,a.Any),Et=N.createFrom,Rt=a.Array(a.Any),xt=Q.createFrom,kt=a.Nullable(xt),zt=K.createFrom,Bt=a.Nullable(zt);class ${settings;id;label;description;icon;constructor(e={}){"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)}static createFrom(e={}){const n=Ut;let i=typeof e=="string"?JSON.parse(e):e;return"settings"in i&&(i.settings=n(i.settings)),new $(i)}}class j{id;label;description;type;value;default;options;fileSelection;sensitive;devOnly;requiresRestart;pendingRestart;constructor(e={}){"id"in e||(this.id=""),"label"in e||(this.label=""),"description"in e||(this.description=""),"type"in e||(this.type=""),"value"in e||(this.value=null),"default"in e||(this.default=null),"options"in e||(this.options=[]),"fileSelection"in e||(this.fileSelection=null),"sensitive"in e||(this.sensitive=!1),"devOnly"in e||(this.devOnly=!1),"requiresRestart"in e||(this.requiresRestart=!1),"pendingRestart"in e||(this.pendingRestart=!1),Object.assign(this,e)}static createFrom(e={}){const n=Dt,i=Mt;let s=typeof e=="string"?JSON.parse(e):e;return"options"in s&&(s.options=n(s.options)),"fileSelection"in s&&(s.fileSelection=i(s.fileSelection)),new j(s)}}class A{enabled;allowFolders;extensions;multiple;relative;defaultPath;constructor(e={}){"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)}static createFrom(e={}){const n=Gt;let i=typeof e=="string"?JSON.parse(e):e;return"extensions"in i&&(i.extensions=n(i.extensions)),new A(i)}}class J{label;description;value;constructor(e={}){"label"in e||(this.label=""),"description"in e||(this.description=""),"value"in e||(this.value=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new J(n)}}var Fe=(t=>(t.$zero="",t.Text="text",t.Select="select",t.MultiSelect="multiselect",t.Integer="integer",t.Float="float",t.Toggle="toggle",t.Color="color",t.DateTime="datetime",t.Password="password",t))(Fe||{});class ee{valid;code;message;constructor(e={}){"valid"in e||(this.valid=!1),"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new ee(n)}}const Wt=j.createFrom,Ut=a.Map(a.Any,Wt),qt=J.createFrom,Dt=a.Array(qt),Ht=A.createFrom,Mt=a.Nullable(Ht),Gt=a.Array(a.Any),Zt=Object.freeze(Object.defineProperty({__proto__:null,Category:$,Setting:j,SettingFileSelection:A,SettingOption:J,SettingType:Fe,ValidationResult:ee},Symbol.toStringTag,{value:"Module"}));class te{plugin;constructor(e={}){"plugin"in e||(this.plugin=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new te(n)}}class ie{plugin;resource;area;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"area"in e||(this.area=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new ie(n)}}class ne{plugin;resource;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new ne(n)}}class se{owner;name;plugin;resource;area;extension;constructor(e={}){"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)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new se(n)}}var Oe=(t=>(t.$zero="",t.ResourceComponentAreaSidebar="SIDEBAR",t.ResourceComponentAreaTable="TABLE",t))(Oe||{});const Lt=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponentsInput:te,GetResourceAreaComponentInput:ie,GetResourceComponentsInput:ne,ResourceComponent:se,ResourceComponentArea:Oe},Symbol.toStringTag,{value:"Module"}));class P{label;label_selector;paths;selectors;constructor(e={}){"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)}static createFrom(e={}){const n=Vt,i=ve;let s=typeof e=="string"?JSON.parse(e):e;return"paths"in s&&(s.paths=n(s.paths)),"selectors"in s&&(s.selectors=i(s.selectors)),new P(s)}}let Me=class Ge{plugin;resource;target_builder;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new P),Object.assign(this,e)}static createFrom(e={}){const n=Yt;let i=typeof e=="string"?JSON.parse(e):e;return"target_builder"in i&&(i.target_builder=n(i.target_builder)),new Ge(i)}};class ae{id;plugin_id;connection_id;resource_key;resource_id;options;status;active_sources;created_at;constructor(e={}){"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 g),"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)}static createFrom(e={}){const n=Xt,i=Qt;let s=typeof e=="string"?JSON.parse(e):e;return"options"in s&&(s.options=n(s.options)),"active_sources"in s&&(s.active_sources=i(s.active_sources)),new ae(s)}}class g{target;follow;include_previous;include_timestamps;tail_lines;since_seconds;since_time;limit_bytes;include_source_events;params;constructor(e={}){"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)}static createFrom(e={}){const n=ve;let i=typeof e=="string"?JSON.parse(e):e;return"params"in i&&(i.params=n(i.params)),new g(i)}}var ue=(t=>(t[t.$zero=0]="$zero",t[t.LogSessionStatusActive=0]="LogSessionStatusActive",t[t.LogSessionStatusPaused=1]="LogSessionStatusPaused",t[t.LogSessionStatusClosed=2]="LogSessionStatusClosed",t[t.LogSessionStatusError=3]="LogSessionStatusError",t[t.LogSessionStatusConnecting=4]="LogSessionStatusConnecting",t[t.LogSessionStatusInitializing=5]="LogSessionStatusInitializing",t))(ue||{});class I{id;labels;constructor(e={}){"id"in e||(this.id=""),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ve;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new I(i)}}var we=(t=>(t[t.$zero=0]="$zero",t[t.StreamCommandPause=0]="StreamCommandPause",t[t.StreamCommandResume=1]="StreamCommandResume",t[t.StreamCommandClose=2]="StreamCommandClose",t))(we||{});const Vt=a.Array(a.Any),ve=a.Map(a.Any,a.Any),Yt=P.createFrom,Xt=g.createFrom,Kt=I.createFrom,Qt=a.Array(Kt),$t=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:P,Handler:Me,LogSession:ae,LogSessionOptions:g,LogSessionStatus:ue,LogSource:I,LogStreamCommand:we},Symbol.toStringTag,{value:"Module"}));class C{metric_id;min;max;avg;sum;p50;p90;p99;count;window;labels;constructor(e={}){"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=T.$zero),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=oe;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new C(i)}}class E{min;max;color;constructor(e={}){"min"in e||(this.min=0),"max"in e||(this.max=0),"color"in e||(this.color=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new E(n)}}class R{metric_id;value;timestamp;labels;constructor(e={}){"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)}static createFrom(e={}){const n=oe;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new R(i)}}class x{timestamp;value;labels;constructor(e={}){"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)}static createFrom(e={}){const n=oe;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new x(i)}}class re{resource;metrics;constructor(e={}){"resource"in e||(this.resource=""),"metrics"in e||(this.metrics=[]),Object.assign(this,e)}static createFrom(e={}){const n=ti;let i=typeof e=="string"?JSON.parse(e):e;return"metrics"in i&&(i.metrics=n(i.metrics)),new re(i)}}class k{id;name;unit;icon;color_ranges;format_string;supported_shapes;chart_group;constructor(e={}){"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)}static createFrom(e={}){const n=ni,i=si;let s=typeof e=="string"?JSON.parse(e):e;return"color_ranges"in s&&(s.color_ranges=n(s.color_ranges)),"supported_shapes"in s&&(s.supported_shapes=i(s.supported_shapes)),new k(s)}}class z{time_series;current_value;aggregate_value;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=ri,i=oi,s=di;let r=typeof e=="string"?JSON.parse(e):e;return"time_series"in r&&(r.time_series=n(r.time_series)),"current_value"in r&&(r.current_value=i(r.current_value)),"aggregate_value"in r&&(r.aggregate_value=s(r.aggregate_value)),new z(r)}}var Te=(t=>(t[t.$zero=0]="$zero",t[t.ShapeCurrent=0]="ShapeCurrent",t[t.ShapeTimeseries=1]="ShapeTimeseries",t[t.ShapeAggregate=2]="ShapeAggregate",t))(Te||{}),Ne=(t=>(t[t.$zero=0]="$zero",t[t.UnitNone=0]="UnitNone",t[t.UnitBytes=1]="UnitBytes",t[t.UnitKB=2]="UnitKB",t[t.UnitMB=3]="UnitMB",t[t.UnitGB=4]="UnitGB",t[t.UnitPercentage=5]="UnitPercentage",t[t.UnitMillis=6]="UnitMillis",t[t.UnitSeconds=7]="UnitSeconds",t[t.UnitCount=8]="UnitCount",t[t.UnitOpsPerSec=9]="UnitOpsPerSec",t[t.UnitBytesPerSec=10]="UnitBytesPerSec",t[t.UnitMillicores=11]="UnitMillicores",t[t.UnitCores=12]="UnitCores",t))(Ne||{});class le{success;results;error;constructor(e={}){"success"in e||(this.success=!1),"results"in e||(this.results=[]),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){const n=fi;let i=typeof e=="string"?JSON.parse(e):e;return"results"in i&&(i.results=n(i.results)),new le(i)}}class B{metric_id;data_points;labels;constructor(e={}){"metric_id"in e||(this.metric_id=""),"data_points"in e||(this.data_points=[]),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=mi,i=oe;let s=typeof e=="string"?JSON.parse(e):e;return"data_points"in s&&(s.data_points=n(s.data_points)),"labels"in s&&(s.labels=i(s.labels)),new B(s)}}const oe=a.Map(a.Any,a.Any),ei=k.createFrom,ti=a.Array(ei),ii=E.createFrom,ni=a.Array(ii),si=a.Array(a.Any),ai=B.createFrom,ri=a.Nullable(ai),li=R.createFrom,oi=a.Nullable(li),ci=C.createFrom,di=a.Nullable(ci),pi=z.createFrom,fi=a.Array(pi),hi=x.createFrom,mi=a.Array(hi),gi=Object.freeze(Object.defineProperty({__proto__:null,AggregateValue:C,ColorRange:E,CurrentValue:R,DataPoint:x,Handler:re,MetricDescriptor:k,MetricResult:z,MetricShape:Te,MetricUnit:Ne,QueryResponse:le,TimeSeries:B},Symbol.toStringTag,{value:"Module"}));class je{sessionId;sourceWindow;dragType;payload;constructor(e={}){"sessionId"in e||(this.sessionId=""),"sourceWindow"in e||(this.sourceWindow=""),"dragType"in e||(this.dragType=""),"payload"in e||(this.payload=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new je(n)}}class Ae{sessionId;sourceWindow;dragType;constructor(e={}){"sessionId"in e||(this.sessionId=""),"sourceWindow"in e||(this.sourceWindow=""),"dragType"in e||(this.dragType=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Ae(n)}}class Je{sessionId;constructor(e={}){"sessionId"in e||(this.sessionId=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Je(n)}}class Pe{sessionId;targetWindow;constructor(e={}){"sessionId"in e||(this.sessionId=""),"targetWindow"in e||(this.targetWindow=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Pe(n)}}class Ie{sessionId;targetWindow;payload;clientX;clientY;constructor(e={}){"sessionId"in e||(this.sessionId=""),"targetWindow"in e||(this.targetWindow=""),"payload"in e||(this.payload=""),"clientX"in e||(this.clientX=0),"clientY"in e||(this.clientY=0),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Ie(n)}}class ce{accepted;targetWindow;targetInstanceId;constructor(e={}){"accepted"in e||(this.accepted=!1),"targetWindow"in e||(this.targetWindow=""),"targetInstanceId"in e||(this.targetInstanceId=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new ce(n)}}class W{name;kind;focused;constructor(e={}){"name"in e||(this.name=""),"kind"in e||(this.kind=""),"focused"in e||(this.focused=!1),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new W(n)}}var Ze=(t=>(t.$zero="",t.KindWorkspace="workspace",t.KindPanel="panel",t.KindSettings="settings",t))(Ze||{});class Ce{kind;initialState;anchorWindow;clientX;clientY;hasPosition;width;height;constructor(e={}){"kind"in e||(this.kind=""),"initialState"in e||(this.initialState={}),"anchorWindow"in e||(this.anchorWindow=""),"clientX"in e||(this.clientX=0),"clientY"in e||(this.clientY=0),"hasPosition"in e||(this.hasPosition=!1),"width"in e||(this.width=0),"height"in e||(this.height=0),Object.assign(this,e)}static createFrom(e={}){const n=Le;let i=typeof e=="string"?JSON.parse(e):e;return"initialState"in i&&(i.initialState=n(i.initialState)),new Ce(i)}}class de{requestId;target;visible;constructor(e={}){"requestId"in e||(this.requestId=0),"target"in e||(this.target=""),"visible"in e||(this.visible=!1),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new de(n)}}class Ee{name;kind;states;constructor(e={}){"name"in e||(this.name=""),"kind"in e||(this.kind=""),"states"in e||(this.states={}),Object.assign(this,e)}static createFrom(e={}){const n=Le;let i=typeof e=="string"?JSON.parse(e):e;return"states"in i&&(i.states=n(i.states)),new Ee(i)}}class Re{windows;constructor(e={}){"windows"in e||(this.windows=[]),Object.assign(this,e)}static createFrom(e={}){const n=yi;let i=typeof e=="string"?JSON.parse(e):e;return"windows"in i&&(i.windows=n(i.windows)),new Re(i)}}const Le=a.Map(a.Any,a.Any),_i=W.createFrom,yi=a.Array(_i),bi=Object.freeze(Object.defineProperty({__proto__:null,DragBegin:je,DragBeginEvent:Ae,DragEndEvent:Je,DragLeaveEvent:Pe,DragPointerEvent:Ie,DropResult:ce,Info:W,Kind:Ze,OpenRequest:Ce,SettingsState:de,WindowClosedEvent:Ee,WindowsChangedEvent:Re},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=U;exports.AggregateValue=C;exports.AvailablePlugin=Z;exports.Capability=Ue;exports.Category=$;exports.ColorRange=E;exports.Connection=K;exports.ConnectionAutoConnect=Q;exports.ConnectionAutoConnectRetry=qe;exports.ConnectionAutoConnectTrigger=De;exports.ConnectionExport=y;exports.ConnectionLifecycle=N;exports.ConnectionRequirement=b;exports.ConnectionStatus=Se;exports.ConnectionStatusCode=He;exports.CurrentValue=R;exports.DataPoint=x;exports.DownloadStats=V;exports.DropResult=ce;exports.Duration=T;exports.ExportsSpec=S;exports.FindPortForwardSessionRequest=M;exports.GetPluginComponentsInput=te;exports.GetResourceAreaComponentInput=ie;exports.GetResourceComponentsInput=ne;exports.Handler=ze;exports.Handler$1=Me;exports.Handler$2=re;exports.Info=W;exports.LogSession=ae;exports.LogSessionOptions=g;exports.LogSessionStatus=ue;exports.LogSource=I;exports.LogStreamCommand=we;exports.MetricDescriptor=k;exports.MetricResult=z;exports.MetricShape=Te;exports.MetricUnit=Ne;exports.PluginAuthor=F;exports.PluginComponentArea=ye;exports.PluginComponents=p;exports.PluginInfo=be;exports.PluginMaintainer=O;exports.PluginMeta=f;exports.PluginResourceComponent=u;exports.PluginTheme=h;exports.PluginThemeColors=m;exports.PortForwardConnectionType=me;exports.PortForwardProtocol=ge;exports.PortForwardSession=G;exports.PortForwardSessionEncryption=d;exports.QueryResponse=le;exports.RequiresSpec=w;exports.ResourceComponent=se;exports.ResourceComponentArea=Oe;exports.Review=Y;exports.Session=q;exports.SessionOptions=D;exports.SessionState=_e;exports.Setting=j;exports.SettingFileSelection=A;exports.SettingOption=J;exports.SettingType=Fe;exports.SettingsState=de;exports.StateIsolationProvenance=v;exports.TimeSeries=B;exports.ValidationResult=ee;exports.VersionInfo=X;exports.models=Jt;exports.models$1=nt;exports.models$2=$t;exports.models$3=gi;exports.models$4=rt;exports.models$5=ct;exports.models$6=Zt;exports.models$7=Ct;exports.models$8=Lt;exports.models$9=bi;
|
package/dist/models.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-BVi9X4oU.cjs"),e=require("./models-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-BVi9X4oU.cjs"),e=require("./models-R2rKpSiU.cjs"),p=require("./graph-D4xtzkXX.cjs"),n=require("./models-CpFXL1IY.cjs");class s{defaultDirectory;defaultFilename;title;filters;showHiddenFiles;canCreateDirectories;resolvesAliases;treatPackagesAsDirectories;constructor(t={}){"defaultDirectory"in t||(this.defaultDirectory=""),"defaultFilename"in t||(this.defaultFilename=""),"title"in t||(this.title=""),"filters"in t||(this.filters=[]),"showHiddenFiles"in t||(this.showHiddenFiles=!1),"canCreateDirectories"in t||(this.canCreateDirectories=!1),"resolvesAliases"in t||(this.resolvesAliases=!1),"treatPackagesAsDirectories"in t||(this.treatPackagesAsDirectories=!1),Object.assign(this,t)}static createFrom(t={}){const o=S;let i=typeof t=="string"?JSON.parse(t):t;return"filters"in i&&(i.filters=o(i.filters)),new s(i)}}class r{displayName;pattern;constructor(t={}){"displayName"in t||(this.displayName=""),"pattern"in t||(this.pattern=""),Object.assign(this,t)}static createFrom(t={}){let o=typeof t=="string"?JSON.parse(t):t;return new r(o)}}const C=r.createFrom,S=g.Array(C),d=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),m=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function y(l,t){const o={...l};for(const[i,u]of Object.entries(l)){if(i==="$zero"||!i.startsWith(t))continue;const c=i.slice(t.length).replace(/([a-z0-9])([A-Z])/g,"$1_$2").toUpperCase();c&&(o[c]=u)}return o}const f=y(e.ConnectionStatusCode,"ConnectionStatus"),P=Object.freeze(Object.defineProperty({__proto__:null,Connection:e.Connection,ConnectionAutoConnect:e.ConnectionAutoConnect,ConnectionAutoConnectRetry:e.ConnectionAutoConnectRetry,ConnectionAutoConnectTrigger:e.ConnectionAutoConnectTrigger,ConnectionLifecycle:e.ConnectionLifecycle,ConnectionStatus:e.ConnectionStatus,ConnectionStatusCode:f,PluginCapability:e.Capability,PluginInfo:e.PluginInfo},Symbol.toStringTag,{value:"Module"}));class a{filename;contents;constructor(t={}){"filename"in t||(this.filename=""),"contents"in t||(this.contents=""),Object.assign(this,t)}static createFrom(t={}){let o=typeof t=="string"?JSON.parse(t):t;return new a(o)}}const h=Object.freeze(Object.defineProperty({__proto__:null,GetLanguageInput:a},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=e.ActionTargetBuilder;exports.AggregateValue=e.AggregateValue;exports.Category=e.Category;exports.ColorRange=e.ColorRange;exports.Connection=e.Connection;exports.ConnectionAutoConnect=e.ConnectionAutoConnect;exports.ConnectionAutoConnectRetry=e.ConnectionAutoConnectRetry;exports.ConnectionAutoConnectTrigger=e.ConnectionAutoConnectTrigger;exports.ConnectionExport=e.ConnectionExport;exports.ConnectionLifecycle=e.ConnectionLifecycle;exports.ConnectionRequirement=e.ConnectionRequirement;exports.ConnectionStatus=e.ConnectionStatus;exports.ConnectionStatusCode=e.ConnectionStatusCode;exports.CurrentValue=e.CurrentValue;exports.DataPoint=e.DataPoint;exports.ExportsSpec=e.ExportsSpec;exports.FindPortForwardSessionRequest=e.FindPortForwardSessionRequest;exports.GetPluginComponentsInput=e.GetPluginComponentsInput;exports.GetResourceAreaComponentInput=e.GetResourceAreaComponentInput;exports.GetResourceComponentsInput=e.GetResourceComponentsInput;exports.Handler=e.Handler;exports.LogSession=e.LogSession;exports.LogSessionOptions=e.LogSessionOptions;exports.LogSessionStatus=e.LogSessionStatus;exports.LogSource=e.LogSource;exports.LogStreamCommand=e.LogStreamCommand;exports.MetricDescriptor=e.MetricDescriptor;exports.MetricResult=e.MetricResult;exports.MetricShape=e.MetricShape;exports.MetricUnit=e.MetricUnit;exports.PluginAuthor=e.PluginAuthor;exports.PluginCapability=e.Capability;exports.PluginComponentArea=e.PluginComponentArea;exports.PluginComponents=e.PluginComponents;exports.PluginInfo=e.PluginInfo;exports.PluginMaintainer=e.PluginMaintainer;exports.PluginMeta=e.PluginMeta;exports.PluginResourceComponent=e.PluginResourceComponent;exports.PluginTheme=e.PluginTheme;exports.PluginThemeColors=e.PluginThemeColors;exports.PortForwardConnectionType=e.PortForwardConnectionType;exports.PortForwardProtocol=e.PortForwardProtocol;exports.PortForwardSession=e.PortForwardSession;exports.PortForwardSessionEncryption=e.PortForwardSessionEncryption;exports.QueryResponse=e.QueryResponse;exports.RequiresSpec=e.RequiresSpec;exports.ResourceComponent=e.ResourceComponent;exports.ResourceComponentArea=e.ResourceComponentArea;exports.Session=e.Session;exports.SessionOptions=e.SessionOptions;exports.SessionState=e.SessionState;exports.Setting=e.Setting;exports.SettingFileSelection=e.SettingFileSelection;exports.SettingOption=e.SettingOption;exports.SettingType=e.SettingType;exports.StateIsolationProvenance=e.StateIsolationProvenance;exports.TimeSeries=e.TimeSeries;exports.ValidationResult=e.ValidationResult;exports.config=e.models;exports.exec=e.models$1;exports.logs=e.models$2;exports.metric=e.models$3;exports.networker=e.models$4;exports.registry=e.models$5;exports.settings=e.models$6;exports.time=e.models$7;exports.ui=e.models$8;exports.window=e.models$9;exports.sameGraphNode=p.sameGraphNode;exports.BuildError=n.BuildError;exports.DevProcessStatus=n.DevProcessStatus;exports.DevServerErrorPayload=n.DevServerErrorPayload;exports.DevServerLogEntry=n.LogEntry;exports.DevServerMode=n.DevServerMode;exports.DevServerState=n.DevServerState;exports.LifecycleStage=n.LifecycleStage;exports.PluginLogEntry=n.LogEntry$1;exports.devserver=n.models;exports.mcprelay=n.models$1;exports.pluginlog=n.models$2;exports.FileDialogOptions=s;exports.FileFilter=r;exports.QueryLease=m;exports.ResourceQuery=d;exports.types=P;exports.utils=h;
|
package/dist/models.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export * from './bindings/github.com/omniviewdev/omniview/models';
|
|
2
|
-
export { Capability as PluginCapability, Connection, ConnectionAutoConnect, ConnectionAutoConnectRetry, ConnectionAutoConnectTrigger, ConnectionLifecycle, ConnectionStatus, ConnectionStatusCode,
|
|
2
|
+
export { Capability as PluginCapability, Connection, ConnectionAutoConnect, ConnectionAutoConnectRetry, ConnectionAutoConnectTrigger, ConnectionLifecycle, ConnectionStatus, ConnectionStatusCode, } from './bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
|
|
3
|
+
export { PluginInfo } from './bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/models';
|
|
3
4
|
export * from './bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models';
|
|
4
5
|
export * from './resource/v2/domain';
|
|
5
6
|
export * from './resource/v2/ancillary';
|
|
6
7
|
export * from './resource/v2/host';
|
|
7
8
|
export * from './resource/v2/graph';
|
|
9
|
+
export * as ResourceQuery from './resource/v2/query';
|
|
10
|
+
export * as QueryLease from './resource/v2/query-lease';
|
|
8
11
|
export type { SourceSessionState, SourceMode, SourceContinuity, SourceCoverage } from './types/source';
|
|
9
12
|
export type { LogSessionRequest } from './logs';
|
|
10
13
|
export type { MetricQueryRequest, SubscribeRequest } from './metric';
|
package/dist/models.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as c } from "./index-zyAgCXOO.js";
|
|
2
|
-
import { l as
|
|
3
|
-
import { r as
|
|
4
|
-
import { s as
|
|
5
|
-
import { B as ke, d as
|
|
2
|
+
import { l as u, d as p, m as g, n as f, o as d, p as S, C as m, q as y, c as C } from "./models-BwT6PfKo.js";
|
|
3
|
+
import { r as T, s as j, e as M, t as N, u as E, v as x, w as z, x as q, E as k, F as G, G as H, y as I, z as B, H as J, L as Q, B as U, J as V, K as W, M as Z, N as K, O as X, T as Y, U as $, W as ee, X as te, Y as ae, Z as se, P as ne, _ as ie, $ as oe, a0 as re, a1 as le, a2 as ce, b as ue, a3 as pe, Q as ge, a4 as fe, g as de, a5 as Se, a as me, S as ye, a6 as Ce, a7 as Pe, a8 as he, a9 as be, aa as ve, ab as Fe, ac as Oe, f as Ae, ad as De, ae as we, af as _e, ag as Le, ah as Re, ai as Te, aj as je, ak as Me, al as Ne, am as Ee } from "./models-BwT6PfKo.js";
|
|
4
|
+
import { s as ze } from "./graph-iJFYWdRz.js";
|
|
5
|
+
import { B as ke, d as Ge, e as He, L as Ie, f as Be, D as Je, g as Qe, c as Ue, m as Ve, h as We, i as Ze } from "./models-CcH0zldZ.js";
|
|
6
6
|
class r {
|
|
7
7
|
defaultDirectory;
|
|
8
8
|
defaultFilename;
|
|
@@ -46,12 +46,16 @@ class s {
|
|
|
46
46
|
return new s(t);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
const P = s.createFrom, h = c(P)
|
|
50
|
-
|
|
49
|
+
const P = s.createFrom, h = c(P), A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50
|
+
__proto__: null
|
|
51
|
+
}, Symbol.toStringTag, { value: "Module" })), D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
52
|
+
__proto__: null
|
|
53
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
54
|
+
function b(i, e) {
|
|
51
55
|
const t = {
|
|
52
|
-
...
|
|
56
|
+
...i
|
|
53
57
|
};
|
|
54
|
-
for (const [a, l] of Object.entries(
|
|
58
|
+
for (const [a, l] of Object.entries(i)) {
|
|
55
59
|
if (a === "$zero" || !a.startsWith(e))
|
|
56
60
|
continue;
|
|
57
61
|
const o = a.slice(e.length).replace(/([a-z0-9])([A-Z])/g, "$1_$2").toUpperCase();
|
|
@@ -59,19 +63,19 @@ function v(n, e) {
|
|
|
59
63
|
}
|
|
60
64
|
return t;
|
|
61
65
|
}
|
|
62
|
-
const
|
|
66
|
+
const v = b(u, "ConnectionStatus"), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
63
67
|
__proto__: null,
|
|
64
|
-
Connection:
|
|
65
|
-
ConnectionAutoConnect:
|
|
66
|
-
ConnectionAutoConnectRetry:
|
|
67
|
-
ConnectionAutoConnectTrigger:
|
|
68
|
-
ConnectionLifecycle:
|
|
69
|
-
ConnectionStatus:
|
|
70
|
-
ConnectionStatusCode:
|
|
71
|
-
PluginCapability:
|
|
72
|
-
PluginInfo:
|
|
68
|
+
Connection: p,
|
|
69
|
+
ConnectionAutoConnect: g,
|
|
70
|
+
ConnectionAutoConnectRetry: f,
|
|
71
|
+
ConnectionAutoConnectTrigger: d,
|
|
72
|
+
ConnectionLifecycle: S,
|
|
73
|
+
ConnectionStatus: m,
|
|
74
|
+
ConnectionStatusCode: v,
|
|
75
|
+
PluginCapability: y,
|
|
76
|
+
PluginInfo: C
|
|
73
77
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
|
-
class
|
|
78
|
+
class n {
|
|
75
79
|
filename;
|
|
76
80
|
contents;
|
|
77
81
|
/** Creates a new GetLanguageInput instance. */
|
|
@@ -83,96 +87,98 @@ class i {
|
|
|
83
87
|
*/
|
|
84
88
|
static createFrom(e = {}) {
|
|
85
89
|
let t = typeof e == "string" ? JSON.parse(e) : e;
|
|
86
|
-
return new
|
|
90
|
+
return new n(t);
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
|
-
const
|
|
93
|
+
const _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
90
94
|
__proto__: null,
|
|
91
|
-
GetLanguageInput:
|
|
95
|
+
GetLanguageInput: n
|
|
92
96
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
93
97
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
98
|
+
T as ActionTargetBuilder,
|
|
99
|
+
j as AggregateValue,
|
|
96
100
|
ke as BuildError,
|
|
97
101
|
M as Category,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
102
|
+
N as ColorRange,
|
|
103
|
+
p as Connection,
|
|
104
|
+
g as ConnectionAutoConnect,
|
|
105
|
+
f as ConnectionAutoConnectRetry,
|
|
106
|
+
d as ConnectionAutoConnectTrigger,
|
|
107
|
+
E as ConnectionExport,
|
|
108
|
+
S as ConnectionLifecycle,
|
|
109
|
+
x as ConnectionRequirement,
|
|
110
|
+
m as ConnectionStatus,
|
|
111
|
+
u as ConnectionStatusCode,
|
|
112
|
+
z as CurrentValue,
|
|
113
|
+
q as DataPoint,
|
|
114
|
+
Ge as DevProcessStatus,
|
|
115
|
+
He as DevServerErrorPayload,
|
|
116
|
+
Ie as DevServerLogEntry,
|
|
117
|
+
Be as DevServerMode,
|
|
118
|
+
Je as DevServerState,
|
|
115
119
|
k as ExportsSpec,
|
|
116
120
|
r as FileDialogOptions,
|
|
117
121
|
s as FileFilter,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
ge as
|
|
150
|
-
fe as
|
|
151
|
-
|
|
122
|
+
G as FindPortForwardSessionRequest,
|
|
123
|
+
H as GetPluginComponentsInput,
|
|
124
|
+
I as GetResourceAreaComponentInput,
|
|
125
|
+
B as GetResourceComponentsInput,
|
|
126
|
+
J as Handler,
|
|
127
|
+
Qe as LifecycleStage,
|
|
128
|
+
Q as LogSession,
|
|
129
|
+
U as LogSessionOptions,
|
|
130
|
+
V as LogSessionStatus,
|
|
131
|
+
W as LogSource,
|
|
132
|
+
Z as LogStreamCommand,
|
|
133
|
+
K as MetricDescriptor,
|
|
134
|
+
X as MetricResult,
|
|
135
|
+
Y as MetricShape,
|
|
136
|
+
$ as MetricUnit,
|
|
137
|
+
ee as PluginAuthor,
|
|
138
|
+
y as PluginCapability,
|
|
139
|
+
te as PluginComponentArea,
|
|
140
|
+
ae as PluginComponents,
|
|
141
|
+
C as PluginInfo,
|
|
142
|
+
Ue as PluginLogEntry,
|
|
143
|
+
se as PluginMaintainer,
|
|
144
|
+
ne as PluginMeta,
|
|
145
|
+
ie as PluginResourceComponent,
|
|
146
|
+
oe as PluginTheme,
|
|
147
|
+
re as PluginThemeColors,
|
|
148
|
+
le as PortForwardConnectionType,
|
|
149
|
+
ce as PortForwardProtocol,
|
|
150
|
+
ue as PortForwardSession,
|
|
151
|
+
pe as PortForwardSessionEncryption,
|
|
152
|
+
D as QueryLease,
|
|
153
|
+
ge as QueryResponse,
|
|
154
|
+
fe as RequiresSpec,
|
|
155
|
+
de as ResourceComponent,
|
|
156
|
+
Se as ResourceComponentArea,
|
|
157
|
+
A as ResourceQuery,
|
|
152
158
|
me as Session,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
ye as SessionOptions,
|
|
160
|
+
Ce as SessionState,
|
|
161
|
+
Pe as Setting,
|
|
162
|
+
he as SettingFileSelection,
|
|
163
|
+
be as SettingOption,
|
|
164
|
+
ve as SettingType,
|
|
165
|
+
Fe as StateIsolationProvenance,
|
|
166
|
+
Oe as TimeSeries,
|
|
161
167
|
Ae as ValidationResult,
|
|
162
168
|
De as config,
|
|
163
|
-
|
|
169
|
+
Ve as devserver,
|
|
164
170
|
we as exec,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
171
|
+
_e as logs,
|
|
172
|
+
We as mcprelay,
|
|
173
|
+
Le as metric,
|
|
168
174
|
Re as networker,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
175
|
+
Ze as pluginlog,
|
|
176
|
+
Te as registry,
|
|
177
|
+
ze as sameGraphNode,
|
|
178
|
+
je as settings,
|
|
173
179
|
Me as time,
|
|
174
180
|
w as types,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
181
|
+
Ne as ui,
|
|
182
|
+
_ as utils,
|
|
183
|
+
Ee as window
|
|
178
184
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessRoute, ResourceReference,
|
|
1
|
+
import { AccessRoute, ResourceReference, ScopeEntry, Value } from './domain';
|
|
2
2
|
import { Connection } from '../../bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
|
|
3
3
|
/** Ancillary transport traits; finite support comes only from the qualified catalog. */
|
|
4
4
|
export type Feature = 'connections' | 'connectionBrowser' | 'connectionOverlay' | 'scopeValues' | 'presentation' | 'editorSchemas' | 'schemaDocuments' | 'relationships' | 'health' | 'actionCatalog' | 'streamingActions' | 'sourceSessions';
|
|
@@ -10,13 +10,6 @@ export interface ConnectionOverlay {
|
|
|
10
10
|
upserts: readonly Connection[];
|
|
11
11
|
disabledIDs: readonly string[];
|
|
12
12
|
}
|
|
13
|
-
export interface EditorSchema {
|
|
14
|
-
type: string;
|
|
15
|
-
fileMatch: string;
|
|
16
|
-
uri: string;
|
|
17
|
-
language: string;
|
|
18
|
-
binding: SchemaBinding;
|
|
19
|
-
}
|
|
20
13
|
export interface ResourceGroup {
|
|
21
14
|
id: string;
|
|
22
15
|
name: string;
|