@omniviewdev/runtime 0.23.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";const s=require("./index-BVi9X4oU.cjs"),N=require("./models-B3B5AdrM.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;
1
+ "use strict";const s=require("./index-BVi9X4oU.cjs"),N=require("./models-DH1E1koG.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;
@@ -1,5 +1,5 @@
1
1
  import { M as N, a as r, A as D } from "./index-zyAgCXOO.js";
2
- import { an as P } from "./models-eKPHQdEl.js";
2
+ import { an as P } from "./models-CewFz24b.js";
3
3
  class s {
4
4
  Provider;
5
5
  Connection;
@@ -279,9 +279,12 @@ class st {
279
279
  max_ide_version;
280
280
  capabilities;
281
281
  created_at;
282
+ compatible;
283
+ compatibility_reason;
284
+ discovery_supported;
282
285
  /** Creates a new VersionInfo instance. */
283
286
  constructor(t = {}) {
284
- "version" in t || (this.version = ""), "description" in t || (this.description = ""), "changelog" in t || (this.changelog = ""), "min_ide_version" in t || (this.min_ide_version = ""), "max_ide_version" in t || (this.max_ide_version = ""), "capabilities" in t || (this.capabilities = []), "created_at" in t || (this.created_at = ""), Object.assign(this, t);
287
+ "version" in t || (this.version = ""), "description" in t || (this.description = ""), "changelog" in t || (this.changelog = ""), "min_ide_version" in t || (this.min_ide_version = ""), "max_ide_version" in t || (this.max_ide_version = ""), "capabilities" in t || (this.capabilities = []), "created_at" in t || (this.created_at = ""), "compatible" in t || (this.compatible = !1), "compatibility_reason" in t || (this.compatibility_reason = ""), "discovery_supported" in t || (this.discovery_supported = !1), Object.assign(this, t);
285
288
  }
286
289
  /**
287
290
  * Creates a new VersionInfo instance from a string or object.
@@ -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,de=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=de(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 G{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 G(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 Z{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 p),"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 Z(s)}}class p{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 p(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=p.createFrom,rt=Object.freeze(Object.defineProperty({__proto__:null,FindPortForwardSessionRequest:G,PortForwardConnectionType:me,PortForwardProtocol:ge,PortForwardSession:Z,PortForwardSessionEncryption:p,SessionState:_e},Symbol.toStringTag,{value:"Module"}));class L{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 L(i)}}class M{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 M(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=M.createFrom,ot=a.Array(lt),ct=Object.freeze(Object.defineProperty({__proto__:null,AvailablePlugin:L,DailyStat:M,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=dt;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 d{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 d(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 d),"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,de=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=de(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),pt=y.createFrom,dt=a.Nullable(pt),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=d.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:d,PluginMaintainer:O,PluginMeta:f,PluginResourceComponent:u,PluginTheme:h,PluginThemeColors:m,RequiresSpec:w,StateIsolationProvenance:v},Symbol.toStringTag,{value:"Module"}));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 Pt=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=It;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=Ct;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=Rt;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 be{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=kt;let i=typeof e=="string"?JSON.parse(e):e;return"connection"in i&&(i.connection=n(i.connection)),new be(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||{});class Se{id;metadata;phase;enabled;devMode;devPath;capabilities;lastError;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=[]),Object.assign(this,e)}static createFrom(e={}){const n=zt,i=Bt;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 Se(s)}}const xe=a.Map(a.Any,a.Any),It=N.createFrom,Ct=a.Array(a.Any),Et=Q.createFrom,Rt=a.Nullable(Et),xt=K.createFrom,kt=a.Nullable(xt),zt=f.createFrom,Bt=a.Array(a.Any);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=Gt;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=Zt;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,Gt=a.Nullable(Ht),Zt=a.Array(a.Any),Lt=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 Mt=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 Ge=class Ze{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 Ze(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:Ge,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=pi;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,pi=a.Nullable(ci),di=z.createFrom,fi=a.Array(di),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 Le=(t=>(t.$zero="",t.KindWorkspace="workspace",t.KindPanel="panel",t.KindSettings="settings",t))(Le||{});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=Me;let i=typeof e=="string"?JSON.parse(e):e;return"initialState"in i&&(i.initialState=n(i.initialState)),new Ce(i)}}class pe{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 pe(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=Me;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 Me=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:Le,OpenRequest:Ce,SettingsState:pe,WindowClosedEvent:Ee,WindowsChangedEvent:Re},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=U;exports.AggregateValue=C;exports.AvailablePlugin=L;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=be;exports.ConnectionStatusCode=He;exports.CurrentValue=R;exports.DataPoint=x;exports.DownloadStats=V;exports.DropResult=ce;exports.Duration=T;exports.ExportsSpec=S;exports.FindPortForwardSessionRequest=G;exports.GetPluginComponentsInput=te;exports.GetResourceAreaComponentInput=ie;exports.GetResourceComponentsInput=ne;exports.Handler=ze;exports.Handler$1=Ge;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=d;exports.PluginInfo=Se;exports.PluginMaintainer=O;exports.PluginMeta=f;exports.PluginResourceComponent=u;exports.PluginTheme=h;exports.PluginThemeColors=m;exports.PortForwardConnectionType=me;exports.PortForwardProtocol=ge;exports.PortForwardSession=Z;exports.PortForwardSessionEncryption=p;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=pe;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=Lt;exports.models$7=Pt;exports.models$8=Mt;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-B3B5AdrM.cjs"),C=require("./graph-D4xtzkXX.cjs"),n=require("./models-CX8HlqvF.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 p=r.createFrom,S=g.Array(p);function d(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 m=d(e.ConnectionStatusCode,"ConnectionStatus"),f=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:m,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 y=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=C.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.types=f;exports.utils=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-BVi9X4oU.cjs"),e=require("./models-DH1E1koG.cjs"),C=require("./graph-D4xtzkXX.cjs"),n=require("./models-BHsd9kBp.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 p=r.createFrom,S=g.Array(p);function d(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 m=d(e.ConnectionStatusCode,"ConnectionStatus"),f=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:m,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 y=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=C.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.types=f;exports.utils=y;
package/dist/models.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { A as c } from "./index-zyAgCXOO.js";
2
- import { l as p, d as g, m as f, n as u, o as m, p as d, C as S, q as C, c as y } from "./models-eKPHQdEl.js";
3
- import { r as L, s as T, e as M, t as j, u as N, v as E, w as _, x, E as k, F as z, G, y as H, z as I, H as q, L as B, B as J, J as U, K as V, M as Q, N as W, O as Z, T as K, U as X, W as Y, X as $, Y as ee, Z as te, P as ae, _ as se, $ as ie, a0 as ne, a1 as oe, a2 as re, b as le, a3 as ce, Q as pe, a4 as ge, g as fe, a5 as ue, a as me, S as de, a6 as Se, a7 as Ce, a8 as ye, a9 as Pe, aa as he, ab as ve, ac as Fe, f as Ae, ad as De, ae as we, af as be, ag as Oe, ah as Re, ai as Le, aj as Te, ak as Me, al as je, am as Ne } from "./models-eKPHQdEl.js";
2
+ import { l as p, d as g, m as f, n as u, o as m, p as d, C as S, q as C, c as y } from "./models-CewFz24b.js";
3
+ import { r as L, s as T, e as M, t as j, u as N, v as E, w as _, x, E as k, F as z, G, y as H, z as I, H as q, L as B, B as J, J as U, K as V, M as Q, N as W, O as Z, T as K, U as X, W as Y, X as $, Y as ee, Z as te, P as ae, _ as se, $ as ie, a0 as ne, a1 as oe, a2 as re, b as le, a3 as ce, Q as pe, a4 as ge, g as fe, a5 as ue, a as me, S as de, a6 as Se, a7 as Ce, a8 as ye, a9 as Pe, aa as he, ab as ve, ac as Fe, f as Ae, ad as De, ae as we, af as be, ag as Oe, ah as Re, ai as Le, aj as Te, ak as Me, al as je, am as Ne } from "./models-CewFz24b.js";
4
4
  import { s as _e } from "./graph-iJFYWdRz.js";
5
- import { B as ke, d as ze, e as Ge, L as He, f as Ie, D as qe, g as Be, c as Je, m as Ue, h as Ve, i as Qe } from "./models-B_Ef0-Dw.js";
5
+ import { B as ke, d as ze, e as Ge, L as He, f as Ie, D as qe, g as Be, c as Je, m as Ue, h as Ve, i as Qe } from "./models-CLq49NOj.js";
6
6
  class r {
7
7
  defaultDirectory;
8
8
  defaultFilename;
@@ -1,5 +1,5 @@
1
1
  import { B as ee, N as S, M as y, A as a, a as l } from "./index-zyAgCXOO.js";
2
- import { a as B, H as te, b as ne, c as re, P as oe, D as ie, V as se, R as ce, A as ae, C as ue, d as le, e as fe, f as pe, g as he, L as $e, h as ge, i as de, Q as Se, j as ye, k as me, I as Te } from "./models-eKPHQdEl.js";
2
+ import { a as B, H as te, b as ne, c as re, P as oe, D as ie, V as se, R as ce, A as ae, C as ue, d as le, e as fe, f as pe, g as he, L as $e, h as ge, i as de, Q as Se, j as ye, k as me, I as Te } from "./models-CewFz24b.js";
3
3
  import { B as n, a as h } from "./calls-DYGtxNJ6.js";
4
4
  function p(e, t = []) {
5
5
  let u = 0;
@@ -1 +1 @@
1
- "use strict";const o=require("./index-BVi9X4oU.cjs"),u=require("./models-B3B5AdrM.cjs"),n=require("./calls-B-HP1Icv.cjs");function p(e,t=[]){let l=0;for(const s of t){if(s.length>65536)throw new RangeError("Request routing byte limit");l+=new TextEncoder().encode(JSON.stringify(s)).length+1}if(l>57344)throw new RangeError("Request routing byte limit");let _=0,N=2,ot=0,M=0;const L=[],f=s=>{for(let y=0;y<s.length;y++){const a=s.charCodeAt(y);let S=a<128?1:a<2048?2:3;if(a>=55296&&a<=56319){const d=s.charCodeAt(++y);if(!(d>=56320&&d<=57343))throw new TypeError("Invalid Unicode");S=4}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode");if(_+=S,N+=a===34||a===92?2:S,_>33554432||N>67043328)throw new RangeError("Request JSON byte limit")}L.push(s)},j=s=>{if(s.length>33554432)throw new RangeError("Request JSON byte limit");for(let y=0;y<s.length;y++){const a=s.charCodeAt(y);if(a>=55296&&a<=56319){const S=s.charCodeAt(++y);if(!(S>=56320&&S<=57343))throw new TypeError("Invalid Unicode")}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode")}f(JSON.stringify(s))},P=(s,y)=>{if(++ot>262144||y>64)throw new RangeError("Request JSON structural limit");if(s===null){f("null");return}if(typeof s=="string"){j(s);return}if(typeof s=="boolean"){f(s?"true":"false");return}if(typeof s=="number"){if(!Number.isFinite(s))throw new TypeError("Request numbers must be finite");f(Object.is(s,-0)?"-0":JSON.stringify(s));return}if(Array.isArray(s)){f("[");for(let a=0;a<s.length;a++){if(++M>1048576)throw new RangeError("Request JSON field limit");a&&f(","),P(s[a],y+1)}f("]");return}if(typeof s=="object"){f("{");let a=!0;for(const[S,d]of Object.entries(s))if(d!==void 0){if(++M>1048576)throw new RangeError("Request JSON field limit");a||f(","),a=!1,j(S),f(":"),P(d,y+1)}f("}");return}throw new TypeError("Unsupported request JSON value")};return P(e,0),L.join("")}function it(e){return n.ByID(93318075,e).then(t=>(t[0]=g(t[0]),t[1]=o.ByteSlice(t[1]),t))}function ct(e){return n.ByID(1353297556,e)}function st(e){return n.ByID(4182196712,e).then(t=>g(t))}function ut(e){return n.ByID(3993344525,e).then(t=>g(t))}function k(e,t){return n.ByID(1779192716,e,t).then(r=>$t(r))}function at(){return n.ByID(4033362541).then(e=>mt(e))}function E(){return n.ByID(3434119522)}function lt(e){return n.ByID(2619212338,e).then(t=>H(t))}function yt(e){return n.ByID(1371268636,e).then(t=>g(t))}function pt(e){return n.ByID(3881019319,e)}function ft(){return n.ByID(3006426324).then(e=>Bt(e))}function St(){return n.ByID(265791345).then(e=>Dt(e))}function ht(e,t,r){return n.ByID(1492965384,e,t,r)}function dt(e,t){return n.ByID(486465741,e,t)}const gt=u.Session.createFrom,g=o.Nullable(gt),V=u.Handler.createFrom,$t=o.Nullable(V),H=o.Map(o.Any,V),mt=o.Map(o.Any,H),Bt=o.Array(o.Any),Dt=o.Array(g);function J(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession",e,t,p(r,[e,t])).then(c=>c===null?null:u.Session.createFrom(c))}function q(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.OpenNativeSession",e,t,p(r,[e,t]))}const It=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:it,CloseSession:ct,CreateSession:J,CreateTerminal:st,DetachSession:ut,GetHandler:k,GetHandlers:at,GetNativeTerminalSupport:E,GetPluginHandlers:lt,GetSession:yt,HasPlugin:pt,ListPlugins:ft,ListSessions:St,OpenNativeSession:q,ResizeSession:ht,WriteSession:dt},Symbol.toStringTag,{value:"Module"}));function z(e){return n.ByID(182596922,e).then(t=>T(t))}function x(e,t,r){return n.ByID(981100722,e,t,r).then(c=>b(c))}function Pt(e){return n.ByID(2157304970,e).then(t=>T(t))}function Tt(e){return n.ByID(650882,e).then(t=>Q(t))}function bt(e){return n.ByID(3624690437,e)}function U(){return n.ByID(2195697754).then(e=>b(e))}function wt(){return n.ByID(167463150).then(e=>Q(e))}function Ct(e,t){return n.ByID(2090415403,e,t).then(r=>b(r))}const Gt=u.PortForwardSession.createFrom,T=o.Nullable(Gt),b=o.Array(T),Q=o.Array(o.Any);function W(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/networker.ServiceWrapper.StartResourcePortForwardingSession",e,t,p(r,[e,t]))}const vt=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:z,FindPortForwardSessions:x,GetPortForwardSession:Pt,GetSupportedPortForwardTargets:Tt,HasPlugin:bt,ListAllPortForwardSessions:U,ListPlugins:wt,ListPortForwardSessions:Ct,StartResourcePortForwardingSession:W},Symbol.toStringTag,{value:"Module"}));class w{pluginID;running;url;error;supported;pid;constructor(t={}){"pluginID"in t||(this.pluginID=""),"running"in t||(this.running=!1),"url"in t||(this.url=""),"error"in t||(this.error=""),"supported"in t||(this.supported=!1),"pid"in t||(this.pid=0),Object.assign(this,t)}static createFrom(t={}){let r=typeof t=="string"?JSON.parse(t):t;return new w(r)}}function Rt(e){return n.ByID(3150413499,e).then(t=>h(t))}function At(e){return n.ByID(1152913314,e).then(t=>Xt(t))}function K(e){return n.ByID(111194374,e).then(t=>C(t))}function Ft(){return n.ByID(1083754477).then(e=>Zt(e))}function Ot(e){return n.ByID(3945933305,e)}function _t(e){return n.ByID(2859775056,e).then(t=>Y(t))}function Nt(e,t){return n.ByID(2209599792,e,t).then(r=>nn(r))}function Mt(e){return n.ByID(3963363730,e).then(t=>Y(t))}function Lt(e){return n.ByID(1357029266,e).then(t=>h(t))}function jt(){return n.ByID(2477486666).then(e=>B(e))}function kt(){return n.ByID(976517756).then(e=>B(e))}function Et(e){return n.ByID(1020548995,e).then(t=>B(t))}function Vt(e,t){return n.ByID(2004740384,e,t).then(r=>B(r))}function Ht(){return n.ByID(873697101).then(e=>Z(e))}function Jt(){return n.ByID(637134283).then(e=>on(e))}function qt(){return n.ByID(550607756).then(e=>cn(e))}function zt(e,t){return n.ByID(288660195,e,t).then(r=>h(r))}function xt(e){return n.ByID(1771013494,e).then(t=>h(t))}function X(e){return n.ByID(2433379724,e).then(t=>h(t))}function Ut(e,t,r){return n.ByID(2783597264,e,t,r).then(c=>Z(c))}function Qt(e){return n.ByID(1369550929,e).then(t=>h(t))}function Wt(e){return n.ByID(3828800061,e).then(t=>h(t))}const h=u.PluginInfo.createFrom,Kt=u.DownloadStats.createFrom,Xt=o.Nullable(Kt),C=u.PluginMeta.createFrom,Yt=w.createFrom,Zt=o.Array(Yt),en=u.VersionInfo.createFrom,Y=o.Array(en),tn=u.Review.createFrom,nn=o.Array(tn),B=o.Nullable(C),rn=u.AvailablePlugin.createFrom,Z=o.Array(rn),on=o.Array(C),cn=o.Array(h),sn=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:Rt,GetPluginDownloadStats:At,GetPluginMeta:K,GetPluginProfilingStatuses:Ft,GetPluginReadme:Ot,GetPluginReleaseHistory:_t,GetPluginReviews:Nt,GetPluginVersions:Mt,InstallDevPluginFromPath:Lt,InstallFromPathPrompt:jt,InstallInDevMode:kt,InstallPluginFromPath:Et,InstallPluginVersion:Vt,ListAvailablePlugins:Ht,ListPluginMetas:Jt,ListPlugins:qt,LoadPlugin:zt,ReloadPlugin:xt,RetryFailedPlugin:X,SearchPlugins:Ut,UninstallPlugin:Qt,UnlinkDevPlugin:Wt},Symbol.toStringTag,{value:"Module"}));function ee(e,t){return n.ByID(1688967279,e,t).then(r=>ce(r))}function te(e,t){return n.ByID(950535743,e,t).then(r=>G(r))}function un(e){return n.ByID(854008408,e)}function ne(){return n.ByID(1598984489).then(e=>yn(e))}function re(e){return n.ByID(1775572154,e).then(t=>v(t))}function an(){return n.ByID(3217612415).then(e=>pn(e))}function ln(e){return n.ByID(2037329938,e).then(t=>v(t))}function oe(e,t){return n.ByID(3276991559,e,t).then(r=>ce(r))}function ie(e,t){return n.ByID(794258089,e,t).then(r=>G(r))}const ce=u.ConnectionStatus.createFrom,G=u.Connection.createFrom,v=o.Array(G),yn=o.Map(o.Any,v),pn=o.Array(o.Any),fn="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";function i(e,...t){return n.ByName(`${fn}.${e}`,...t)}const Sn=e=>i("Features",e),se=(e,t)=>i("GetConnectionMetadata",e,t),ue=(e,t)=>i("RefreshConnectionMetadata",e,t),ae=(e,t)=>i("Catalog",e,t),le=(e,t)=>i("Get",e,t),ye=(e,t)=>i("Enumerate",e,t),pe=(e,t)=>i("NativeQuery",e,p(t,[e])),fe=(e,t)=>i("Mutate",e,p(t,[e])),Se=(e,t)=>i("Action",e,p(t,[e])),he=(e,t)=>i("ResolveTarget",e,t),hn=(e,t)=>i("ResolveReference",e,t),de=(e,t,r)=>i("GetSchemaDocument",e,t,r),ge=()=>i("GetAllConnectionStates"),$e=e=>i("ListConnectionProfiles",e),me=(e,t,r)=>i("SaveConnectionProfile",e,p(t,[e]),r??null),Be=(e,t)=>i("ImportConnectionProfile",e,t),De=(e,t)=>i("ResetConnectionProfile",e,t),Ie=(e,t)=>i("RemoveConnection",e,t),Pe=(e,t)=>i("GetResourceGroups",e,t),dn=(e,t,r)=>i("GetResourceDefinition",e,t,r),Te=(e,t)=>i("GetEditorSchemas",e,t),gn=(e,t,r)=>i("GetRelationships",e,t,r),$n=(e,t)=>i("ResolveRelationships",e,t),mn=(e,t,r)=>i("GetHealth",e,p({request:t,body:r},[e])),Bn=(e,t,r)=>i("GetResourceEvents",e,t,r),be=(e,t,r)=>i("GetActions",e,t,r),we=(e,t)=>i("StreamAction",e,p(t,[e])),Ce=e=>i("AttachStreamAction",e),Ge=e=>i("CancelStreamAction",e),ve=(e,t)=>i("OpenSourceView",e,t),Re=(e,t)=>i("SyncSourceView",e,t),Ae=(e,t)=>i("RefreshSourceView",e,t),Fe=(e,t)=>i("CloseSourceView",e,t),Oe=(e,t)=>i("GetSourceStates",e,t),_e=(e,t)=>i("RetryConnectionSources",e,t),Ne=(e,t,r)=>i("ScopeValues",e,t,r),Dn=Object.freeze(Object.defineProperty({__proto__:null,Action:Se,AttachStreamAction:Ce,CancelStreamAction:Ge,Catalog:ae,CheckConnection:ee,CloseSourceView:Fe,Enumerate:ye,Features:Sn,Get:le,GetActions:be,GetAllConnectionStates:ge,GetConnection:te,GetConnectionMetadata:se,GetEditorSchemas:Te,GetHealth:mn,GetRelationships:gn,GetResourceDefinition:dn,GetResourceEvents:Bn,GetResourceGroups:Pe,GetSchemaDocument:de,GetSourceStates:Oe,HasPlugin:un,ImportConnectionProfile:Be,ListAllConnections:ne,ListConnectionProfiles:$e,ListConnections:re,ListPlugins:an,LoadConnections:ln,Mutate:fe,NativeQuery:pe,OpenSourceView:ve,RefreshConnectionMetadata:ue,RefreshSourceView:Ae,RemoveConnection:Ie,ResetConnectionProfile:De,ResolveReference:hn,ResolveRelationships:$n,ResolveTarget:he,RetryConnectionSources:_e,SaveConnectionProfile:me,ScopeValues:Ne,StartConnection:oe,StopConnection:ie,StreamAction:we,SyncSourceView:Re},Symbol.toStringTag,{value:"Module"})),D="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";function Me(e,t,r,c,l){return n.ByName(`${D}.GetRelated`,e,t,r,c,l)}function In(e,t,r,c,l){return n.ByName(`${D}.GetRelationshipChain`,e,t,r,c,l)}function Le(e,t,r,c){return n.ByName(`${D}.GetDependencyTree`,e,t,r,c)}function je(e,t,r,c,l){return n.ByName(`${D}.GetSubgraph`,e,t,r,c,l)}const Pn=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:Le,GetRelated:Me,GetRelationshipChain:In,GetSubgraph:je},Symbol.toStringTag,{value:"Module"}));class R{snapshot;applied;uncertain;message;constructor(t={}){"snapshot"in t||(this.snapshot=new $),"applied"in t||(this.applied=!1),"uncertain"in t||(this.uncertain=!1),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){const r=Tn;let c=typeof t=="string"?JSON.parse(t):t;return"snapshot"in c&&(c.snapshot=r(c.snapshot)),new R(c)}}class I{kind;pluginId;constructor(t={}){"kind"in t||(this.kind=""),Object.assign(this,t)}static createFrom(t={}){let r=typeof t=="string"?JSON.parse(t):t;return new I(r)}}class ${scope;categories;constructor(t={}){"scope"in t||(this.scope=new I),"categories"in t||(this.categories={}),Object.assign(this,t)}static createFrom(t={}){const r=bn,c=m;let l=typeof t=="string"?JSON.parse(t):t;return"scope"in l&&(l.scope=r(l.scope)),"categories"in l&&(l.categories=c(l.categories)),new $(l)}}const Tn=$.createFrom,bn=I.createFrom;var m=function e(...t){return m===e&&(m=Cn),m(...t)};const wn=u.Category.createFrom,Cn=o.Map(o.Any,wn);function ke(e,t){return n.ByID(1766083910,e,t).then(r=>Gn(r))}function Ee(e){return n.ByID(3969198041,e).then(t=>vn(t))}function Ve(e,t,r){return n.ByID(3964153809,e,t,r).then(c=>Rn(c))}const Gn=R.createFrom,vn=$.createFrom,Rn=u.ValidationResult.createFrom,An=Object.freeze(Object.defineProperty({__proto__:null,Commit:ke,GetSnapshot:Ee,Validate:Ve},Symbol.toStringTag,{value:"Module"}));function Fn(e){return n.ByID(2106300110,e).then(t=>_n(t))}function He(e){return n.ByID(765209827,e).then(t=>Nn(t))}function On(e){return n.ByID(2355436169,e).then(t=>qe(t))}const Je=u.ResourceComponent.createFrom,qe=o.Array(Je),_n=o.Map(o.Any,qe),Nn=o.Nullable(Je),Mn=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:Fn,GetResourceAreaComponent:He,GetResourceComponents:On},Symbol.toStringTag,{value:"Module"}));function ze(e){return n.ByID(2776241946,e)}function Ln(e){return n.ByID(1474987050,e).then(t=>A(t))}function jn(e){return n.ByID(3156347865,e).then(t=>xn(t))}function kn(e){return n.ByID(1444002509,e)}function En(){return n.ByID(3104582886).then(e=>Un(e))}function Vn(){return n.ByID(2249742267).then(e=>Qn(e))}function Hn(e,t){return n.ByID(1212190993,e,t)}function Jn(e,t){return n.ByID(2177127885,e,t).then(r=>A(r))}const qn=u.LogSession.createFrom,A=o.Nullable(qn),zn=u.Handler$1.createFrom,xn=o.Array(zn),Un=o.Array(o.Any),Qn=o.Array(A);function xe(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession",e,t,p(r,[e,t]))}const Wn=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:ze,CreateSession:xe,GetSession:Ln,GetSupportedResources:jn,HasPlugin:kn,ListPlugins:En,ListSessions:Vn,SendCommand:Hn,UpdateSessionOptions:Jn},Symbol.toStringTag,{value:"Module"}));class F{plugin_id;provider_id;name;icon;description;handlers;constructor(t={}){"plugin_id"in t||(this.plugin_id=""),"provider_id"in t||(this.provider_id=""),"name"in t||(this.name=""),"icon"in t||(this.icon=""),"description"in t||(this.description=""),"handlers"in t||(this.handlers=[]),Object.assign(this,t)}static createFrom(t={}){const r=Xn;let c=typeof t=="string"?JSON.parse(t):t;return"handlers"in c&&(c.handlers=r(c.handlers)),new F(c)}}const Kn=u.Handler$2.createFrom,Xn=o.Array(Kn);function Ue(){return n.ByID(3919346639).then(e=>Ke(e))}function Qe(e){return n.ByID(3953821778,e).then(t=>Ke(t))}function Yn(e){return n.ByID(1815388456,e)}function Zn(){return n.ByID(2730149903).then(e=>tr(e))}function We(e){return n.ByID(3994236150,e)}const er=F.createFrom,Ke=o.Array(er),tr=o.Array(o.Any);u.QueryResponse.createFrom;const O="github.com/omniviewdev/omniview/backend/pkg/plugin/metric.ServiceWrapper";function nr(e,t,r){return n.ByName(`${O}.Query`,e,t,p(r,[e,t]))}function Xe(e,t){return n.ByName(`${O}.QueryAll`,e,p(t,[e]))}function Ye(e,t,r){return n.ByName(`${O}.Subscribe`,e,t,p(r,[e,t]))}const rr=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:Ue,GetProvidersForResource:Qe,HasPlugin:Yn,ListPlugins:Zn,Query:nr,QueryAll:Xe,Subscribe:Ye,Unsubscribe:We},Symbol.toStringTag,{value:"Module"}));function or(e,t){return n.ByID(3653639550,e,t)}function Ze(e,t){return n.ByID(851823419,e,t)}function ir(e){return n.ByID(2991415449,e).then(t=>cr(t))}function et(e,t,r){return n.ByID(2695679023,e,t,r)}const cr=o.Array(o.Any),sr=Object.freeze(Object.defineProperty({__proto__:null,Delete:or,Get:Ze,Keys:ir,Set:et},Symbol.toStringTag,{value:"Module"}));function ur(e){return n.ByID(584261046,e)}function ar(e){return n.ByID(3098255555,e)}function lr(e){return n.ByID(903698361,e)}function yr(e,t,r){return n.ByID(1235170530,e,t,r).then(c=>Tr(c))}function tt(e){return n.ByID(3199298309,e)}function pr(){return n.ByID(2119827301).then(e=>br(e))}function fr(e){return n.ByID(2822783534,e).then(t=>rt(t))}function Sr(){return n.ByID(1563865534)}function hr(){return n.ByID(914742443).then(e=>Cr(e))}function dr(){return n.ByID(3392737293).then(e=>Gr(e))}function gr(e,t,r){return n.ByID(1474486628,e,t,r)}function $r(e,t,r){return n.ByID(2366942716,e,t,r)}function mr(e){return n.ByID(4008581935,e)}function nt(e){return n.ByID(520255202,e)}function Br(e,t,r){return n.ByID(958877691,e,t,r)}function Dr(e,t,r){return n.ByID(1772958861,e,t,r)}function Ir(e,t,r){return n.ByID(728919203,e,t,r)}function Pr(e,t){return n.ByID(1547965995,e,t)}const Tr=u.DropResult.createFrom,br=u.SettingsState.createFrom,rt=o.Map(o.Any,o.Any),wr=u.Info.createFrom,Cr=o.Array(wr),Gr=o.Map(o.Any,rt),vr=Object.freeze(Object.defineProperty({__proto__:null,BeginDrag:ur,CancelDrag:ar,Close:lr,EndDrag:yr,Focus:tt,GetSettingsState:pr,GetState:fr,HideSettings:Sr,List:hr,ListStates:dr,MoveDrag:gr,MoveToPointer:$r,Open:mr,OpenSettings:nt,ReportViewport:Br,RespondDrop:Dr,SaveState:Ir,SetSettingsLocation:Pr},Symbol.toStringTag,{value:"Module"}));exports.Action=Se;exports.AttachStreamAction=Ce;exports.CancelStreamAction=Ge;exports.Catalog=ae;exports.CheckConnection=ee;exports.ClosePortForwardSession=z;exports.CloseSession=ze;exports.CloseSourceView=Fe;exports.Commit=ke;exports.CreateSession=J;exports.CreateSession$1=xe;exports.Enumerate=ye;exports.FindPortForwardSessions=x;exports.Focus=tt;exports.Get=Ze;exports.Get$1=le;exports.GetActions=be;exports.GetAllConnectionStates=ge;exports.GetConnection=te;exports.GetConnectionMetadata=se;exports.GetDependencyTree=Le;exports.GetEditorSchemas=Te;exports.GetHandler=k;exports.GetNativeTerminalSupport=E;exports.GetPluginMeta=K;exports.GetProviders=Ue;exports.GetProvidersForResource=Qe;exports.GetRelated=Me;exports.GetResourceAreaComponent=He;exports.GetResourceGroups=Pe;exports.GetSchemaDocument=de;exports.GetSnapshot=Ee;exports.GetSourceStates=Oe;exports.GetSubgraph=je;exports.ImportConnectionProfile=Be;exports.ListAllConnections=ne;exports.ListAllPortForwardSessions=U;exports.ListConnectionProfiles=$e;exports.ListConnections=re;exports.Mutate=fe;exports.NativeQuery=pe;exports.OpenNativeSession=q;exports.OpenSettings=nt;exports.OpenSourceView=ve;exports.QueryAll=Xe;exports.RefreshConnectionMetadata=ue;exports.RefreshSourceView=Ae;exports.RemoveConnection=Ie;exports.ResetConnectionProfile=De;exports.ResolveTarget=he;exports.RetryConnectionSources=_e;exports.RetryFailedPlugin=X;exports.SaveConnectionProfile=me;exports.ScopeValues=Ne;exports.Set=et;exports.StartConnection=oe;exports.StartResourcePortForwardingSession=W;exports.StopConnection=ie;exports.StreamAction=we;exports.Subscribe=Ye;exports.SyncSourceView=Re;exports.Unsubscribe=We;exports.Validate=Ve;exports.binding=An;exports.client=Dn;exports.exec=It;exports.graphClient=Pn;exports.logs=Wn;exports.metric=rr;exports.networker=vt;exports.service=vr;exports.servicewrapper=sr;exports.servicewrapper$1=sn;exports.servicewrapper$2=Mn;
1
+ "use strict";const o=require("./index-BVi9X4oU.cjs"),u=require("./models-DH1E1koG.cjs"),n=require("./calls-B-HP1Icv.cjs");function p(e,t=[]){let l=0;for(const s of t){if(s.length>65536)throw new RangeError("Request routing byte limit");l+=new TextEncoder().encode(JSON.stringify(s)).length+1}if(l>57344)throw new RangeError("Request routing byte limit");let _=0,N=2,ot=0,M=0;const L=[],f=s=>{for(let y=0;y<s.length;y++){const a=s.charCodeAt(y);let S=a<128?1:a<2048?2:3;if(a>=55296&&a<=56319){const d=s.charCodeAt(++y);if(!(d>=56320&&d<=57343))throw new TypeError("Invalid Unicode");S=4}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode");if(_+=S,N+=a===34||a===92?2:S,_>33554432||N>67043328)throw new RangeError("Request JSON byte limit")}L.push(s)},j=s=>{if(s.length>33554432)throw new RangeError("Request JSON byte limit");for(let y=0;y<s.length;y++){const a=s.charCodeAt(y);if(a>=55296&&a<=56319){const S=s.charCodeAt(++y);if(!(S>=56320&&S<=57343))throw new TypeError("Invalid Unicode")}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode")}f(JSON.stringify(s))},P=(s,y)=>{if(++ot>262144||y>64)throw new RangeError("Request JSON structural limit");if(s===null){f("null");return}if(typeof s=="string"){j(s);return}if(typeof s=="boolean"){f(s?"true":"false");return}if(typeof s=="number"){if(!Number.isFinite(s))throw new TypeError("Request numbers must be finite");f(Object.is(s,-0)?"-0":JSON.stringify(s));return}if(Array.isArray(s)){f("[");for(let a=0;a<s.length;a++){if(++M>1048576)throw new RangeError("Request JSON field limit");a&&f(","),P(s[a],y+1)}f("]");return}if(typeof s=="object"){f("{");let a=!0;for(const[S,d]of Object.entries(s))if(d!==void 0){if(++M>1048576)throw new RangeError("Request JSON field limit");a||f(","),a=!1,j(S),f(":"),P(d,y+1)}f("}");return}throw new TypeError("Unsupported request JSON value")};return P(e,0),L.join("")}function it(e){return n.ByID(93318075,e).then(t=>(t[0]=g(t[0]),t[1]=o.ByteSlice(t[1]),t))}function ct(e){return n.ByID(1353297556,e)}function st(e){return n.ByID(4182196712,e).then(t=>g(t))}function ut(e){return n.ByID(3993344525,e).then(t=>g(t))}function k(e,t){return n.ByID(1779192716,e,t).then(r=>$t(r))}function at(){return n.ByID(4033362541).then(e=>mt(e))}function E(){return n.ByID(3434119522)}function lt(e){return n.ByID(2619212338,e).then(t=>H(t))}function yt(e){return n.ByID(1371268636,e).then(t=>g(t))}function pt(e){return n.ByID(3881019319,e)}function ft(){return n.ByID(3006426324).then(e=>Bt(e))}function St(){return n.ByID(265791345).then(e=>Dt(e))}function ht(e,t,r){return n.ByID(1492965384,e,t,r)}function dt(e,t){return n.ByID(486465741,e,t)}const gt=u.Session.createFrom,g=o.Nullable(gt),V=u.Handler.createFrom,$t=o.Nullable(V),H=o.Map(o.Any,V),mt=o.Map(o.Any,H),Bt=o.Array(o.Any),Dt=o.Array(g);function J(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession",e,t,p(r,[e,t])).then(c=>c===null?null:u.Session.createFrom(c))}function q(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.OpenNativeSession",e,t,p(r,[e,t]))}const It=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:it,CloseSession:ct,CreateSession:J,CreateTerminal:st,DetachSession:ut,GetHandler:k,GetHandlers:at,GetNativeTerminalSupport:E,GetPluginHandlers:lt,GetSession:yt,HasPlugin:pt,ListPlugins:ft,ListSessions:St,OpenNativeSession:q,ResizeSession:ht,WriteSession:dt},Symbol.toStringTag,{value:"Module"}));function z(e){return n.ByID(182596922,e).then(t=>T(t))}function x(e,t,r){return n.ByID(981100722,e,t,r).then(c=>b(c))}function Pt(e){return n.ByID(2157304970,e).then(t=>T(t))}function Tt(e){return n.ByID(650882,e).then(t=>Q(t))}function bt(e){return n.ByID(3624690437,e)}function U(){return n.ByID(2195697754).then(e=>b(e))}function wt(){return n.ByID(167463150).then(e=>Q(e))}function Ct(e,t){return n.ByID(2090415403,e,t).then(r=>b(r))}const Gt=u.PortForwardSession.createFrom,T=o.Nullable(Gt),b=o.Array(T),Q=o.Array(o.Any);function W(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/networker.ServiceWrapper.StartResourcePortForwardingSession",e,t,p(r,[e,t]))}const vt=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:z,FindPortForwardSessions:x,GetPortForwardSession:Pt,GetSupportedPortForwardTargets:Tt,HasPlugin:bt,ListAllPortForwardSessions:U,ListPlugins:wt,ListPortForwardSessions:Ct,StartResourcePortForwardingSession:W},Symbol.toStringTag,{value:"Module"}));class w{pluginID;running;url;error;supported;pid;constructor(t={}){"pluginID"in t||(this.pluginID=""),"running"in t||(this.running=!1),"url"in t||(this.url=""),"error"in t||(this.error=""),"supported"in t||(this.supported=!1),"pid"in t||(this.pid=0),Object.assign(this,t)}static createFrom(t={}){let r=typeof t=="string"?JSON.parse(t):t;return new w(r)}}function Rt(e){return n.ByID(3150413499,e).then(t=>h(t))}function At(e){return n.ByID(1152913314,e).then(t=>Xt(t))}function K(e){return n.ByID(111194374,e).then(t=>C(t))}function Ft(){return n.ByID(1083754477).then(e=>Zt(e))}function Ot(e){return n.ByID(3945933305,e)}function _t(e){return n.ByID(2859775056,e).then(t=>Y(t))}function Nt(e,t){return n.ByID(2209599792,e,t).then(r=>nn(r))}function Mt(e){return n.ByID(3963363730,e).then(t=>Y(t))}function Lt(e){return n.ByID(1357029266,e).then(t=>h(t))}function jt(){return n.ByID(2477486666).then(e=>B(e))}function kt(){return n.ByID(976517756).then(e=>B(e))}function Et(e){return n.ByID(1020548995,e).then(t=>B(t))}function Vt(e,t){return n.ByID(2004740384,e,t).then(r=>B(r))}function Ht(){return n.ByID(873697101).then(e=>Z(e))}function Jt(){return n.ByID(637134283).then(e=>on(e))}function qt(){return n.ByID(550607756).then(e=>cn(e))}function zt(e,t){return n.ByID(288660195,e,t).then(r=>h(r))}function xt(e){return n.ByID(1771013494,e).then(t=>h(t))}function X(e){return n.ByID(2433379724,e).then(t=>h(t))}function Ut(e,t,r){return n.ByID(2783597264,e,t,r).then(c=>Z(c))}function Qt(e){return n.ByID(1369550929,e).then(t=>h(t))}function Wt(e){return n.ByID(3828800061,e).then(t=>h(t))}const h=u.PluginInfo.createFrom,Kt=u.DownloadStats.createFrom,Xt=o.Nullable(Kt),C=u.PluginMeta.createFrom,Yt=w.createFrom,Zt=o.Array(Yt),en=u.VersionInfo.createFrom,Y=o.Array(en),tn=u.Review.createFrom,nn=o.Array(tn),B=o.Nullable(C),rn=u.AvailablePlugin.createFrom,Z=o.Array(rn),on=o.Array(C),cn=o.Array(h),sn=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:Rt,GetPluginDownloadStats:At,GetPluginMeta:K,GetPluginProfilingStatuses:Ft,GetPluginReadme:Ot,GetPluginReleaseHistory:_t,GetPluginReviews:Nt,GetPluginVersions:Mt,InstallDevPluginFromPath:Lt,InstallFromPathPrompt:jt,InstallInDevMode:kt,InstallPluginFromPath:Et,InstallPluginVersion:Vt,ListAvailablePlugins:Ht,ListPluginMetas:Jt,ListPlugins:qt,LoadPlugin:zt,ReloadPlugin:xt,RetryFailedPlugin:X,SearchPlugins:Ut,UninstallPlugin:Qt,UnlinkDevPlugin:Wt},Symbol.toStringTag,{value:"Module"}));function ee(e,t){return n.ByID(1688967279,e,t).then(r=>ce(r))}function te(e,t){return n.ByID(950535743,e,t).then(r=>G(r))}function un(e){return n.ByID(854008408,e)}function ne(){return n.ByID(1598984489).then(e=>yn(e))}function re(e){return n.ByID(1775572154,e).then(t=>v(t))}function an(){return n.ByID(3217612415).then(e=>pn(e))}function ln(e){return n.ByID(2037329938,e).then(t=>v(t))}function oe(e,t){return n.ByID(3276991559,e,t).then(r=>ce(r))}function ie(e,t){return n.ByID(794258089,e,t).then(r=>G(r))}const ce=u.ConnectionStatus.createFrom,G=u.Connection.createFrom,v=o.Array(G),yn=o.Map(o.Any,v),pn=o.Array(o.Any),fn="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";function i(e,...t){return n.ByName(`${fn}.${e}`,...t)}const Sn=e=>i("Features",e),se=(e,t)=>i("GetConnectionMetadata",e,t),ue=(e,t)=>i("RefreshConnectionMetadata",e,t),ae=(e,t)=>i("Catalog",e,t),le=(e,t)=>i("Get",e,t),ye=(e,t)=>i("Enumerate",e,t),pe=(e,t)=>i("NativeQuery",e,p(t,[e])),fe=(e,t)=>i("Mutate",e,p(t,[e])),Se=(e,t)=>i("Action",e,p(t,[e])),he=(e,t)=>i("ResolveTarget",e,t),hn=(e,t)=>i("ResolveReference",e,t),de=(e,t,r)=>i("GetSchemaDocument",e,t,r),ge=()=>i("GetAllConnectionStates"),$e=e=>i("ListConnectionProfiles",e),me=(e,t,r)=>i("SaveConnectionProfile",e,p(t,[e]),r??null),Be=(e,t)=>i("ImportConnectionProfile",e,t),De=(e,t)=>i("ResetConnectionProfile",e,t),Ie=(e,t)=>i("RemoveConnection",e,t),Pe=(e,t)=>i("GetResourceGroups",e,t),dn=(e,t,r)=>i("GetResourceDefinition",e,t,r),Te=(e,t)=>i("GetEditorSchemas",e,t),gn=(e,t,r)=>i("GetRelationships",e,t,r),$n=(e,t)=>i("ResolveRelationships",e,t),mn=(e,t,r)=>i("GetHealth",e,p({request:t,body:r},[e])),Bn=(e,t,r)=>i("GetResourceEvents",e,t,r),be=(e,t,r)=>i("GetActions",e,t,r),we=(e,t)=>i("StreamAction",e,p(t,[e])),Ce=e=>i("AttachStreamAction",e),Ge=e=>i("CancelStreamAction",e),ve=(e,t)=>i("OpenSourceView",e,t),Re=(e,t)=>i("SyncSourceView",e,t),Ae=(e,t)=>i("RefreshSourceView",e,t),Fe=(e,t)=>i("CloseSourceView",e,t),Oe=(e,t)=>i("GetSourceStates",e,t),_e=(e,t)=>i("RetryConnectionSources",e,t),Ne=(e,t,r)=>i("ScopeValues",e,t,r),Dn=Object.freeze(Object.defineProperty({__proto__:null,Action:Se,AttachStreamAction:Ce,CancelStreamAction:Ge,Catalog:ae,CheckConnection:ee,CloseSourceView:Fe,Enumerate:ye,Features:Sn,Get:le,GetActions:be,GetAllConnectionStates:ge,GetConnection:te,GetConnectionMetadata:se,GetEditorSchemas:Te,GetHealth:mn,GetRelationships:gn,GetResourceDefinition:dn,GetResourceEvents:Bn,GetResourceGroups:Pe,GetSchemaDocument:de,GetSourceStates:Oe,HasPlugin:un,ImportConnectionProfile:Be,ListAllConnections:ne,ListConnectionProfiles:$e,ListConnections:re,ListPlugins:an,LoadConnections:ln,Mutate:fe,NativeQuery:pe,OpenSourceView:ve,RefreshConnectionMetadata:ue,RefreshSourceView:Ae,RemoveConnection:Ie,ResetConnectionProfile:De,ResolveReference:hn,ResolveRelationships:$n,ResolveTarget:he,RetryConnectionSources:_e,SaveConnectionProfile:me,ScopeValues:Ne,StartConnection:oe,StopConnection:ie,StreamAction:we,SyncSourceView:Re},Symbol.toStringTag,{value:"Module"})),D="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";function Me(e,t,r,c,l){return n.ByName(`${D}.GetRelated`,e,t,r,c,l)}function In(e,t,r,c,l){return n.ByName(`${D}.GetRelationshipChain`,e,t,r,c,l)}function Le(e,t,r,c){return n.ByName(`${D}.GetDependencyTree`,e,t,r,c)}function je(e,t,r,c,l){return n.ByName(`${D}.GetSubgraph`,e,t,r,c,l)}const Pn=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:Le,GetRelated:Me,GetRelationshipChain:In,GetSubgraph:je},Symbol.toStringTag,{value:"Module"}));class R{snapshot;applied;uncertain;message;constructor(t={}){"snapshot"in t||(this.snapshot=new $),"applied"in t||(this.applied=!1),"uncertain"in t||(this.uncertain=!1),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){const r=Tn;let c=typeof t=="string"?JSON.parse(t):t;return"snapshot"in c&&(c.snapshot=r(c.snapshot)),new R(c)}}class I{kind;pluginId;constructor(t={}){"kind"in t||(this.kind=""),Object.assign(this,t)}static createFrom(t={}){let r=typeof t=="string"?JSON.parse(t):t;return new I(r)}}class ${scope;categories;constructor(t={}){"scope"in t||(this.scope=new I),"categories"in t||(this.categories={}),Object.assign(this,t)}static createFrom(t={}){const r=bn,c=m;let l=typeof t=="string"?JSON.parse(t):t;return"scope"in l&&(l.scope=r(l.scope)),"categories"in l&&(l.categories=c(l.categories)),new $(l)}}const Tn=$.createFrom,bn=I.createFrom;var m=function e(...t){return m===e&&(m=Cn),m(...t)};const wn=u.Category.createFrom,Cn=o.Map(o.Any,wn);function ke(e,t){return n.ByID(1766083910,e,t).then(r=>Gn(r))}function Ee(e){return n.ByID(3969198041,e).then(t=>vn(t))}function Ve(e,t,r){return n.ByID(3964153809,e,t,r).then(c=>Rn(c))}const Gn=R.createFrom,vn=$.createFrom,Rn=u.ValidationResult.createFrom,An=Object.freeze(Object.defineProperty({__proto__:null,Commit:ke,GetSnapshot:Ee,Validate:Ve},Symbol.toStringTag,{value:"Module"}));function Fn(e){return n.ByID(2106300110,e).then(t=>_n(t))}function He(e){return n.ByID(765209827,e).then(t=>Nn(t))}function On(e){return n.ByID(2355436169,e).then(t=>qe(t))}const Je=u.ResourceComponent.createFrom,qe=o.Array(Je),_n=o.Map(o.Any,qe),Nn=o.Nullable(Je),Mn=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:Fn,GetResourceAreaComponent:He,GetResourceComponents:On},Symbol.toStringTag,{value:"Module"}));function ze(e){return n.ByID(2776241946,e)}function Ln(e){return n.ByID(1474987050,e).then(t=>A(t))}function jn(e){return n.ByID(3156347865,e).then(t=>xn(t))}function kn(e){return n.ByID(1444002509,e)}function En(){return n.ByID(3104582886).then(e=>Un(e))}function Vn(){return n.ByID(2249742267).then(e=>Qn(e))}function Hn(e,t){return n.ByID(1212190993,e,t)}function Jn(e,t){return n.ByID(2177127885,e,t).then(r=>A(r))}const qn=u.LogSession.createFrom,A=o.Nullable(qn),zn=u.Handler$1.createFrom,xn=o.Array(zn),Un=o.Array(o.Any),Qn=o.Array(A);function xe(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession",e,t,p(r,[e,t]))}const Wn=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:ze,CreateSession:xe,GetSession:Ln,GetSupportedResources:jn,HasPlugin:kn,ListPlugins:En,ListSessions:Vn,SendCommand:Hn,UpdateSessionOptions:Jn},Symbol.toStringTag,{value:"Module"}));class F{plugin_id;provider_id;name;icon;description;handlers;constructor(t={}){"plugin_id"in t||(this.plugin_id=""),"provider_id"in t||(this.provider_id=""),"name"in t||(this.name=""),"icon"in t||(this.icon=""),"description"in t||(this.description=""),"handlers"in t||(this.handlers=[]),Object.assign(this,t)}static createFrom(t={}){const r=Xn;let c=typeof t=="string"?JSON.parse(t):t;return"handlers"in c&&(c.handlers=r(c.handlers)),new F(c)}}const Kn=u.Handler$2.createFrom,Xn=o.Array(Kn);function Ue(){return n.ByID(3919346639).then(e=>Ke(e))}function Qe(e){return n.ByID(3953821778,e).then(t=>Ke(t))}function Yn(e){return n.ByID(1815388456,e)}function Zn(){return n.ByID(2730149903).then(e=>tr(e))}function We(e){return n.ByID(3994236150,e)}const er=F.createFrom,Ke=o.Array(er),tr=o.Array(o.Any);u.QueryResponse.createFrom;const O="github.com/omniviewdev/omniview/backend/pkg/plugin/metric.ServiceWrapper";function nr(e,t,r){return n.ByName(`${O}.Query`,e,t,p(r,[e,t]))}function Xe(e,t){return n.ByName(`${O}.QueryAll`,e,p(t,[e]))}function Ye(e,t,r){return n.ByName(`${O}.Subscribe`,e,t,p(r,[e,t]))}const rr=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:Ue,GetProvidersForResource:Qe,HasPlugin:Yn,ListPlugins:Zn,Query:nr,QueryAll:Xe,Subscribe:Ye,Unsubscribe:We},Symbol.toStringTag,{value:"Module"}));function or(e,t){return n.ByID(3653639550,e,t)}function Ze(e,t){return n.ByID(851823419,e,t)}function ir(e){return n.ByID(2991415449,e).then(t=>cr(t))}function et(e,t,r){return n.ByID(2695679023,e,t,r)}const cr=o.Array(o.Any),sr=Object.freeze(Object.defineProperty({__proto__:null,Delete:or,Get:Ze,Keys:ir,Set:et},Symbol.toStringTag,{value:"Module"}));function ur(e){return n.ByID(584261046,e)}function ar(e){return n.ByID(3098255555,e)}function lr(e){return n.ByID(903698361,e)}function yr(e,t,r){return n.ByID(1235170530,e,t,r).then(c=>Tr(c))}function tt(e){return n.ByID(3199298309,e)}function pr(){return n.ByID(2119827301).then(e=>br(e))}function fr(e){return n.ByID(2822783534,e).then(t=>rt(t))}function Sr(){return n.ByID(1563865534)}function hr(){return n.ByID(914742443).then(e=>Cr(e))}function dr(){return n.ByID(3392737293).then(e=>Gr(e))}function gr(e,t,r){return n.ByID(1474486628,e,t,r)}function $r(e,t,r){return n.ByID(2366942716,e,t,r)}function mr(e){return n.ByID(4008581935,e)}function nt(e){return n.ByID(520255202,e)}function Br(e,t,r){return n.ByID(958877691,e,t,r)}function Dr(e,t,r){return n.ByID(1772958861,e,t,r)}function Ir(e,t,r){return n.ByID(728919203,e,t,r)}function Pr(e,t){return n.ByID(1547965995,e,t)}const Tr=u.DropResult.createFrom,br=u.SettingsState.createFrom,rt=o.Map(o.Any,o.Any),wr=u.Info.createFrom,Cr=o.Array(wr),Gr=o.Map(o.Any,rt),vr=Object.freeze(Object.defineProperty({__proto__:null,BeginDrag:ur,CancelDrag:ar,Close:lr,EndDrag:yr,Focus:tt,GetSettingsState:pr,GetState:fr,HideSettings:Sr,List:hr,ListStates:dr,MoveDrag:gr,MoveToPointer:$r,Open:mr,OpenSettings:nt,ReportViewport:Br,RespondDrop:Dr,SaveState:Ir,SetSettingsLocation:Pr},Symbol.toStringTag,{value:"Module"}));exports.Action=Se;exports.AttachStreamAction=Ce;exports.CancelStreamAction=Ge;exports.Catalog=ae;exports.CheckConnection=ee;exports.ClosePortForwardSession=z;exports.CloseSession=ze;exports.CloseSourceView=Fe;exports.Commit=ke;exports.CreateSession=J;exports.CreateSession$1=xe;exports.Enumerate=ye;exports.FindPortForwardSessions=x;exports.Focus=tt;exports.Get=Ze;exports.Get$1=le;exports.GetActions=be;exports.GetAllConnectionStates=ge;exports.GetConnection=te;exports.GetConnectionMetadata=se;exports.GetDependencyTree=Le;exports.GetEditorSchemas=Te;exports.GetHandler=k;exports.GetNativeTerminalSupport=E;exports.GetPluginMeta=K;exports.GetProviders=Ue;exports.GetProvidersForResource=Qe;exports.GetRelated=Me;exports.GetResourceAreaComponent=He;exports.GetResourceGroups=Pe;exports.GetSchemaDocument=de;exports.GetSnapshot=Ee;exports.GetSourceStates=Oe;exports.GetSubgraph=je;exports.ImportConnectionProfile=Be;exports.ListAllConnections=ne;exports.ListAllPortForwardSessions=U;exports.ListConnectionProfiles=$e;exports.ListConnections=re;exports.Mutate=fe;exports.NativeQuery=pe;exports.OpenNativeSession=q;exports.OpenSettings=nt;exports.OpenSourceView=ve;exports.QueryAll=Xe;exports.RefreshConnectionMetadata=ue;exports.RefreshSourceView=Ae;exports.RemoveConnection=Ie;exports.ResetConnectionProfile=De;exports.ResolveTarget=he;exports.RetryConnectionSources=_e;exports.RetryFailedPlugin=X;exports.SaveConnectionProfile=me;exports.ScopeValues=Ne;exports.Set=et;exports.StartConnection=oe;exports.StartResourcePortForwardingSession=W;exports.StopConnection=ie;exports.StreamAction=we;exports.Subscribe=Ye;exports.SyncSourceView=Re;exports.Unsubscribe=We;exports.Validate=Ve;exports.binding=An;exports.client=Dn;exports.exec=It;exports.graphClient=Pn;exports.logs=Wn;exports.metric=rr;exports.networker=vt;exports.service=vr;exports.servicewrapper=sr;exports.servicewrapper$1=sn;exports.servicewrapper$2=Mn;
@@ -3,3 +3,4 @@ export * from './plugin';
3
3
  export * from './extensions';
4
4
  export * from './source';
5
5
  export * from './homepage';
6
+ export * from './resource-editor';
@@ -0,0 +1,195 @@
1
+ import { ComponentType } from 'react';
2
+ export declare const RESOURCE_EDITOR_EXTENSION_POINT: "kubernetes/resource/editor/v1";
3
+ export type ResourceEditorPath = readonly (string | number)[];
4
+ export type ResourceEditorIntent = 'create' | 'edit' | 'inspect' | 'action';
5
+ export type ResourceEditorAvailability = 'available' | 'denied' | 'unavailable' | 'absent' | 'unknown';
6
+ export interface ResourceEditorTarget {
7
+ group: string;
8
+ version: string;
9
+ kind: string;
10
+ resource: string;
11
+ scope: 'Namespaced' | 'Cluster';
12
+ }
13
+ export interface ResourceEditorCapabilities {
14
+ create: ResourceEditorAvailability;
15
+ update: ResourceEditorAvailability;
16
+ delete: ResourceEditorAvailability;
17
+ list: ResourceEditorAvailability;
18
+ get: ResourceEditorAvailability;
19
+ actions: Readonly<Record<string, ResourceEditorAvailability>>;
20
+ }
21
+ export interface ResourceEditorContext extends ResourceEditorTarget {
22
+ connectionID: string;
23
+ namespace?: string;
24
+ /** Trusted host policy only. Omission means unknown, never application-owned. */
25
+ ownership?: {
26
+ status: 'application' | 'controller' | 'system' | 'unknown';
27
+ };
28
+ name?: string;
29
+ uid?: string;
30
+ resourceVersion?: string;
31
+ intent: ResourceEditorIntent;
32
+ capabilities: ResourceEditorCapabilities;
33
+ discovery: {
34
+ status: ResourceEditorAvailability;
35
+ features: Readonly<Record<string, ResourceEditorAvailability>>;
36
+ };
37
+ schema: {
38
+ status: ResourceEditorAvailability;
39
+ identity?: string;
40
+ paths?: readonly ResourceEditorPath[];
41
+ };
42
+ }
43
+ /** Host-owned immutable, redacted projection. Never persist drafts or opaque values. */
44
+ export interface ResourceEditorDraft {
45
+ readonly sessionID: string;
46
+ readonly revision: number;
47
+ get(this: void, path: ResourceEditorPath): unknown;
48
+ has(this: void, path: ResourceEditorPath): boolean;
49
+ }
50
+ export type ResourceEditorPatch = {
51
+ op: 'set';
52
+ path: ResourceEditorPath;
53
+ value: unknown;
54
+ } | {
55
+ op: 'remove';
56
+ path: ResourceEditorPath;
57
+ } | {
58
+ op: 'insert';
59
+ path: ResourceEditorPath;
60
+ index: number;
61
+ value: unknown;
62
+ };
63
+ export interface ResourceEditorPatchRequest {
64
+ sessionID: string;
65
+ expectedRevision: number;
66
+ operations: readonly ResourceEditorPatch[];
67
+ }
68
+ export type ResourceEditorPatchResult = {
69
+ status: 'accepted';
70
+ revision: number;
71
+ } | {
72
+ status: 'stale' | 'forbidden' | 'immutable' | 'unsafe' | 'invalid';
73
+ message: string;
74
+ };
75
+ export interface ResourceEditorFieldIssue {
76
+ path: ResourceEditorPath;
77
+ message: string;
78
+ }
79
+ export type ResourceEditorReferenceProjection = 'metadata' | 'servicePorts' | 'storageClass' | 'ingressClass' | 'secretType';
80
+ export interface ResourceEditorServiceRequest {
81
+ sessionID: string;
82
+ generation: number;
83
+ signal: AbortSignal;
84
+ }
85
+ export interface ResourceEditorReferenceRequest extends ResourceEditorServiceRequest {
86
+ group: string;
87
+ version: string;
88
+ resource: string;
89
+ namespace?: string;
90
+ projection?: ResourceEditorReferenceProjection;
91
+ }
92
+ /** Sanitized reference only; secret data and arbitrary resource bodies are never returned. */
93
+ export interface ResourceEditorReference {
94
+ name: string;
95
+ namespace?: string;
96
+ uid?: string;
97
+ labels?: Readonly<Record<string, string>>;
98
+ servicePorts?: readonly {
99
+ name?: string;
100
+ port: number;
101
+ protocol?: string;
102
+ targetPort?: string | number;
103
+ }[];
104
+ /** Sanitized selector presence; omission must be treated as unknown. */
105
+ serviceSelector?: 'none' | 'present' | 'unknown';
106
+ storageClass?: {
107
+ provisioner: string;
108
+ volumeBindingMode?: string;
109
+ allowVolumeExpansion?: boolean;
110
+ };
111
+ ingressClass?: {
112
+ controller: string;
113
+ isDefault?: boolean;
114
+ };
115
+ secretType?: string;
116
+ }
117
+ export type ResourceEditorReferenceResult = {
118
+ status: 'ready';
119
+ items: readonly ResourceEditorReference[];
120
+ } | {
121
+ status: 'denied' | 'unavailable' | 'absent';
122
+ message: string;
123
+ };
124
+ export interface ResourceEditorReferenceService {
125
+ list(this: void, request: ResourceEditorReferenceRequest): Promise<ResourceEditorReferenceResult>;
126
+ }
127
+ export interface ResourceEditorActionRequest extends ResourceEditorServiceRequest {
128
+ protocol: string;
129
+ input: unknown;
130
+ }
131
+ export type ResourceEditorActionResult = {
132
+ status: 'ready';
133
+ output: unknown;
134
+ sensitive?: boolean;
135
+ } | {
136
+ status: 'denied' | 'unavailable' | 'absent' | 'invalid' | 'cancelled';
137
+ message: string;
138
+ };
139
+ export interface ResourceEditorActionService {
140
+ execute(this: void, request: ResourceEditorActionRequest): Promise<ResourceEditorActionResult>;
141
+ }
142
+ export interface ResourceEditorFormProps {
143
+ context: ResourceEditorContext;
144
+ draft: ResourceEditorDraft;
145
+ baseline?: ResourceEditorDraft;
146
+ section: string;
147
+ disabled: boolean;
148
+ patch(this: void, request: ResourceEditorPatchRequest): ResourceEditorPatchResult;
149
+ onValidityChange(this: void, error: string | null): void;
150
+ references: ResourceEditorReferenceService;
151
+ actions: ResourceEditorActionService;
152
+ requestResult?: ResourceEditorActionResult;
153
+ }
154
+ export interface ResourceEditorRequirements {
155
+ capabilities?: readonly (keyof Omit<ResourceEditorCapabilities, 'actions'>)[];
156
+ actions?: readonly string[];
157
+ features?: readonly string[];
158
+ schema?: {
159
+ identity?: string;
160
+ paths?: readonly ResourceEditorPath[];
161
+ };
162
+ }
163
+ export interface ResourceEditorContribution {
164
+ contractVersion: 1;
165
+ targets: readonly ResourceEditorTarget[];
166
+ intents: readonly ResourceEditorIntent[];
167
+ label: string;
168
+ sections: readonly {
169
+ id: string;
170
+ label: string;
171
+ }[];
172
+ ownedPaths: readonly ResourceEditorPath[];
173
+ sensitivePaths?: readonly ResourceEditorPath[];
174
+ requirements?: ResourceEditorRequirements;
175
+ /** Domain authoring policy, never RBAC authority; omission means unknown. */
176
+ ownershipPolicy?: 'declarative' | 'conditional' | 'controller' | 'system';
177
+ component: ComponentType<ResourceEditorFormProps>;
178
+ validate?: (draft: ResourceEditorDraft, context: ResourceEditorContext) => readonly ResourceEditorFieldIssue[];
179
+ /** Read-only admission at submit, never enumeration; draft remains redacted. */
180
+ validateSubmission?: (draft: ResourceEditorDraft, context: ResourceEditorContext, services: {
181
+ references: ResourceEditorReferenceService;
182
+ actions: ResourceEditorActionService;
183
+ }, signal: AbortSignal) => Promise<readonly ResourceEditorFieldIssue[]>;
184
+ formUnavailable?: (draft: ResourceEditorDraft, context: ResourceEditorContext) => string | null;
185
+ readOnly?: (draft: ResourceEditorDraft, context: ResourceEditorContext) => boolean;
186
+ request?: {
187
+ protocol: string;
188
+ source: 'canonical';
189
+ } | {
190
+ protocol: string;
191
+ source?: 'projection';
192
+ /** Always receives the redacted projection, never canonical sensitive source. */
193
+ buildInput: (draft: ResourceEditorDraft, context: ResourceEditorContext) => unknown;
194
+ };
195
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Omniview",
3
3
  "license": "AGPL-3.0-only",
4
4
  "name": "@omniviewdev/runtime",
5
- "version": "0.23.0",
5
+ "version": "0.25.0",
6
6
  "description": "Runtime shared library for Omniview",
7
7
  "sideEffects": false,
8
8
  "type": "module",
@@ -52,7 +52,7 @@
52
52
  "omniview"
53
53
  ],
54
54
  "devDependencies": {
55
- "@omniviewdev/base-ui": "~0.11.0",
55
+ "@omniviewdev/base-ui": "~0.11.1",
56
56
  "@tanstack/react-query": "5.105.0",
57
57
  "@types/node": "26.6.5",
58
58
  "@types/react": "19.3.0",
@@ -68,7 +68,7 @@
68
68
  "@typescript/native": "npm:typescript@7.0.2"
69
69
  },
70
70
  "peerDependencies": {
71
- "@omniviewdev/base-ui": "~0.11.0",
71
+ "@omniviewdev/base-ui": "~0.11.1",
72
72
  "@tanstack/react-query": "^5.105.0",
73
73
  "react": "^19.3.1",
74
74
  "react-dom": "^19.3.1",