@omniviewdev/runtime 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs +1 -1
- package/dist/api.js +2 -2
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +6 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +15 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +5 -0
- package/dist/context/drawer/types.d.ts +13 -1
- package/dist/exec.d.ts +3 -1
- package/dist/hooks/connection/useConnection.d.ts +2 -2
- package/dist/hooks/exec/index.d.ts +1 -0
- package/dist/hooks/exec/useNativeExec.d.ts +15 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +1617 -1529
- package/dist/{models-ddVn9pLv.js → models-BlRe-e25.js} +1 -1
- package/dist/{models-B8VGD21U.cjs → models-C-3HYV9E.cjs} +1 -1
- package/dist/models-D5pkScnE.cjs +1 -0
- package/dist/{models-BlxGoC2X.js → models-DNQykdGx.js} +6 -1
- package/dist/models.cjs +1 -1
- package/dist/models.js +3 -3
- package/dist/resource/v2/client.d.ts +2 -2
- package/dist/resource/v2/host.d.ts +5 -0
- package/dist/service-D25QhNF2.js +750 -0
- package/dist/service-MaHvflXn.cjs +1 -0
- package/package.json +1 -1
- package/dist/models-BJZVpONm.cjs +0 -1
- package/dist/service-DKddH-QF.cjs +0 -1
- package/dist/service-lcq0B7wi.js +0 -739
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-BVi9X4oU.cjs"),N=require("./models-
|
|
1
|
+
"use strict";const s=require("./index-BVi9X4oU.cjs"),N=require("./models-D5pkScnE.cjs");class r{Provider;Connection;ResourceType;Object;Action;Scope;constructor(i={}){"Provider"in i||(this.Provider=""),"Connection"in i||(this.Connection=""),"ResourceType"in i||(this.ResourceType=""),"Object"in i||(this.Object=""),"Action"in i||(this.Action=""),"Scope"in i||(this.Scope={}),Object.assign(this,i)}static createFrom(i={}){const t=P;let n=typeof i=="string"?JSON.parse(i):i;return"Scope"in n&&(n.Scope=t(n.Scope)),new r(n)}}const P=s.Map(s.Any,s.Any);class l{enabled;port;endpoint;token;blockConnectionsByDefault;globalPreset;userPresets;constructor(i={}){"enabled"in i||(this.enabled=!1),"port"in i||(this.port=0),"endpoint"in i||(this.endpoint=""),"token"in i||(this.token=""),"blockConnectionsByDefault"in i||(this.blockConnectionsByDefault=!1),"globalPreset"in i||(this.globalPreset=""),"userPresets"in i||(this.userPresets=[]),Object.assign(this,i)}static createFrom(i={}){const t=j;let n=typeof i=="string"?JSON.parse(i):i;return"userPresets"in n&&(n.userPresets=t(n.userPresets)),new l(n)}}class S{id;approved;reason;constructor(i={}){"id"in i||(this.id=""),"approved"in i||(this.approved=!1),"reason"in i||(this.reason=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new S(t)}}class o{pluginID;pluginName;connectionID;connectionName;access;effectiveAccess;preset;effectivePreset;constructor(i={}){"pluginID"in i||(this.pluginID=""),"pluginName"in i||(this.pluginName=""),"connectionID"in i||(this.connectionID=""),"connectionName"in i||(this.connectionName=""),"access"in i||(this.access=""),"effectiveAccess"in i||(this.effectiveAccess=!1),"preset"in i||(this.preset=""),"effectivePreset"in i||(this.effectivePreset=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new o(t)}}class f{id;mcpName;pluginID;pluginName;connectionID;connectionName;argumentsJSON;requestedAt;origin;credentialID;sessionID;invocationID;target;policyRevision;catalogRevision;constructor(i={}){"id"in i||(this.id=""),"mcpName"in i||(this.mcpName=""),"pluginID"in i||(this.pluginID=""),"pluginName"in i||(this.pluginName=""),"connectionID"in i||(this.connectionID=""),"connectionName"in i||(this.connectionName=""),"argumentsJSON"in i||(this.argumentsJSON=""),"requestedAt"in i||(this.requestedAt="0001-01-01T00:00:00.000Z"),"origin"in i||(this.origin=""),"credentialID"in i||(this.credentialID=""),"sessionID"in i||(this.sessionID=""),"invocationID"in i||(this.invocationID=""),"target"in i||(this.target=new r),"policyRevision"in i||(this.policyRevision=0),"catalogRevision"in i||(this.catalogRevision=0),Object.assign(this,i)}static createFrom(i={}){const t=F;let n=typeof i=="string"?JSON.parse(i):i;return"target"in n&&(n.target=t(n.target)),new f(n)}}class p{name;builtIn;toolCount;constructor(i={}){"name"in i||(this.name=""),"builtIn"in i||(this.builtIn=!1),"toolCount"in i||(this.toolCount=0),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new p(t)}}class b{pluginID;connectionID;constructor(i={}){"pluginID"in i||(this.pluginID=""),"connectionID"in i||(this.connectionID=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new b(t)}}class c{enabled;running;endpoint;error;constructor(i={}){"enabled"in i||(this.enabled=!1),"running"in i||(this.running=!1),"endpoint"in i||(this.endpoint=""),"error"in i||(this.error=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new c(t)}}class v{enabled;confirm;constructor(i={}){Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new v(t)}}class d{mcpName;pluginID;connectionID;pluginName;name;title;description;scope;status;builtIn;readOnly;listed;ready;destructive;enabled;enabledSource;confirm;confirmSource;overrideEnabled;overrideConfirm;constructor(i={}){"mcpName"in i||(this.mcpName=""),"pluginID"in i||(this.pluginID=""),"connectionID"in i||(this.connectionID=""),"pluginName"in i||(this.pluginName=""),"name"in i||(this.name=""),"title"in i||(this.title=""),"description"in i||(this.description=""),"scope"in i||(this.scope=""),"status"in i||(this.status=""),"builtIn"in i||(this.builtIn=!1),"readOnly"in i||(this.readOnly=!1),"listed"in i||(this.listed=!1),"ready"in i||(this.ready=!1),"destructive"in i||(this.destructive=!1),"enabled"in i||(this.enabled=!1),"enabledSource"in i||(this.enabledSource=""),"confirm"in i||(this.confirm=!1),"confirmSource"in i||(this.confirmSource=""),"overrideEnabled"in i||(this.overrideEnabled=null),"overrideConfirm"in i||(this.overrideConfirm=null),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new d(t)}}const j=s.Array(s.Any),F=r.createFrom,w=Object.freeze(Object.defineProperty({__proto__:null,ConfigView:l,ConfirmationResolved:S,ConnectionPolicyView:o,PendingConfirmation:f,PresetView:p,Scope:b,Status:c,ToolOverride:v,ToolView:d},Symbol.toStringTag,{value:"Module"}));class a{file;line;column;message;constructor(i={}){"file"in i||(this.file=""),"line"in i||(this.line=0),"column"in i||(this.column=0),"message"in i||(this.message=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new a(t)}}var D=(e=>(e.$zero="",e.DevProcessStatusIdle="idle",e.DevProcessStatusStarting="starting",e.DevProcessStatusBuilding="building",e.DevProcessStatusRunning="running",e.DevProcessStatusReady="ready",e.DevProcessStatusError="error",e.DevProcessStatusStopped="stopped",e.DevProcessStatusNotApplicable="n/a",e))(D||{});class g{pluginID;errors;constructor(i={}){"pluginID"in i||(this.pluginID=""),"errors"in i||(this.errors=[]),Object.assign(this,i)}static createFrom(i={}){const t=J;let n=typeof i=="string"?JSON.parse(i):i;return"errors"in n&&(n.errors=t(n.errors)),new g(n)}}var y=(e=>(e.$zero="",e.DevServerModeIdle="idle",e.DevServerModeManaged="managed",e))(y||{});class h{pluginID;mode;devPath;vitePort;viteURL;viteStatus;goStatus;lastBuildDuration;lastBuildTime;lastError;grpcConnected;generation;hmrURL;buildStatus;rpcStatus;controllerStatus;ready;constructor(i={}){"pluginID"in i||(this.pluginID=""),"mode"in i||(this.mode=""),"devPath"in i||(this.devPath=""),"vitePort"in i||(this.vitePort=0),"viteURL"in i||(this.viteURL=""),"viteStatus"in i||(this.viteStatus=""),"goStatus"in i||(this.goStatus=""),"lastBuildDuration"in i||(this.lastBuildDuration=N.Duration.$zero),"lastBuildTime"in i||(this.lastBuildTime=""),"lastError"in i||(this.lastError=""),"grpcConnected"in i||(this.grpcConnected=!1),"generation"in i||(this.generation=""),"hmrURL"in i||(this.hmrURL=""),"buildStatus"in i||(this.buildStatus=""),"rpcStatus"in i||(this.rpcStatus=""),"controllerStatus"in i||(this.controllerStatus=""),"ready"in i||(this.ready=!1),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new h(t)}}var I=(e=>(e.$zero="",e.StagePending="pending",e.StageBuilding="building",e.StageReady="ready",e.StageError="error",e.StageStopped="stopped",e.StageNotApplicable="n/a",e))(I||{});let u=class O{timestamp;source;level;message;pluginID;constructor(i={}){"timestamp"in i||(this.timestamp=""),"source"in i||(this.source=""),"level"in i||(this.level=""),"message"in i||(this.message=""),"pluginID"in i||(this.pluginID=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new O(t)}};const C=a.createFrom,J=s.Array(C),R=Object.freeze(Object.defineProperty({__proto__:null,BuildError:a,DevProcessStatus:D,DevServerErrorPayload:g,DevServerMode:y,DevServerState:h,LifecycleStage:I,LogEntry:u},Symbol.toStringTag,{value:"Module"}));class m{timestamp;pluginID;source;level;message;constructor(i={}){"timestamp"in i||(this.timestamp=""),"pluginID"in i||(this.pluginID=""),"source"in i||(this.source=""),"level"in i||(this.level=""),"message"in i||(this.message=""),Object.assign(this,i)}static createFrom(i={}){let t=typeof i=="string"?JSON.parse(i):i;return new m(t)}}const A=Object.freeze(Object.defineProperty({__proto__:null,LogEntry:m},Symbol.toStringTag,{value:"Module"}));exports.BuildError=a;exports.ConfigView=l;exports.ConnectionPolicyView=o;exports.DevProcessStatus=D;exports.DevServerErrorPayload=g;exports.DevServerMode=y;exports.DevServerState=h;exports.LifecycleStage=I;exports.LogEntry=u;exports.LogEntry$1=m;exports.PendingConfirmation=f;exports.PresetView=p;exports.Status=c;exports.ToolView=d;exports.models=R;exports.models$1=w;exports.models$2=A;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./index-BVi9X4oU.cjs");class ot{connection;constructor(t={}){"connection"in t||(this.connection=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new ot(n)}}class ct{address;incarnation;constructor(t={}){"address"in t||(this.address=null),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new ct(n)}}let z=class Ct{label;label_selector;paths;selectors;constructor(t={}){"label"in t||(this.label=""),"label_selector"in t||(this.label_selector=""),"paths"in t||(this.paths=[]),"selectors"in t||(this.selectors={}),Object.assign(this,t)}static createFrom(t={}){const n=W,i=g;let s=typeof t=="string"?JSON.parse(t):t;return"paths"in s&&(s.paths=n(s.paths)),"selectors"in s&&(s.selectors=i(s.selectors)),new Ct(s)}},Et=class Rt{plugin;resource;target_builder;default_command;supports_native_command;constructor(t={}){"plugin"in t||(this.plugin=""),"resource"in t||(this.resource=""),"target_builder"in t||(this.target_builder=new z),"default_command"in t||(this.default_command=[]),"supports_native_command"in t||(this.supports_native_command=!1),Object.assign(this,t)}static createFrom(t={}){const n=Lt,i=W;let s=typeof t=="string"?JSON.parse(t):t;return"target_builder"in s&&(s.target_builder=n(s.target_builder)),"default_command"in s&&(s.default_command=i(s.default_command)),new Rt(s)}};class x{created_at;labels;params;id;command;attached;constructor(t={}){"created_at"in t||(this.created_at="0001-01-01T00:00:00.000Z"),"labels"in t||(this.labels={}),"params"in t||(this.params={}),"id"in t||(this.id=""),"command"in t||(this.command=[]),"attached"in t||(this.attached=!1),Object.assign(this,t)}static createFrom(t={}){const n=g,i=g,s=W;let r=typeof t=="string"?JSON.parse(t):t;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 x(r)}}class B{params;labels;id;resource_plugin;resource_key;resource_data;reference;route;command;tty;constructor(t={}){"params"in t||(this.params={}),"labels"in t||(this.labels={}),"id"in t||(this.id=""),"resource_plugin"in t||(this.resource_plugin=""),"resource_key"in t||(this.resource_key=""),"command"in t||(this.command=[]),"tty"in t||(this.tty=!1),Object.assign(this,t)}static createFrom(t={}){const n=g,i=g,s=Vt,r=Xt,lt=W;let o=typeof t=="string"?JSON.parse(t):t;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=lt(o.command)),new B(o)}}const W=a.Array(a.Any),g=a.Map(a.Any,a.Any),Lt=z.createFrom,Mt=ct.createFrom,Vt=a.Nullable(Mt),Yt=ot.createFrom,Xt=a.Nullable(Yt),Kt=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:z,Handler:Et,Session:x,SessionOptions:B},Symbol.toStringTag,{value:"Module"}));class U{resource_id;connection_id;constructor(t={}){"resource_id"in t||(this.resource_id=""),"connection_id"in t||(this.connection_id=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new U(n)}}var dt=(e=>(e.$zero="",e.PortForwardConnectionTypeResource="RESOURCE",e.PortForwardConnectionTypeStatic="STATIC",e))(dt||{}),pt=(e=>(e.$zero="",e.PortForwardProtocolTCP="TCP",e.PortForwardProtocolUDP="UDP",e))(pt||{});class D{created_at;updated_at;connection;labels;id;protocol;state;connection_type;encryption;local_port;remote_port;constructor(t={}){"created_at"in t||(this.created_at="0001-01-01T00:00:00.000Z"),"updated_at"in t||(this.updated_at="0001-01-01T00:00:00.000Z"),"connection"in t||(this.connection=null),"labels"in t||(this.labels={}),"id"in t||(this.id=""),"protocol"in t||(this.protocol=""),"state"in t||(this.state=""),"connection_type"in t||(this.connection_type=""),"encryption"in t||(this.encryption=new c),"local_port"in t||(this.local_port=0),"remote_port"in t||(this.remote_port=0),Object.assign(this,t)}static createFrom(t={}){const n=Qt,i=$t;let s=typeof t=="string"?JSON.parse(t):t;return"labels"in s&&(s.labels=n(s.labels)),"encryption"in s&&(s.encryption=i(s.encryption)),new D(s)}}class c{algorithm;key;enabled;constructor(t={}){"algorithm"in t||(this.algorithm=""),"key"in t||(this.key=""),"enabled"in t||(this.enabled=!1),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new c(n)}}var ft=(e=>(e.$zero="",e.SessionStateActive="ACTIVE",e.SessionStatePaused="PAUSED",e.SessionStateStopped="STOPPED",e.SessionStateFailed="FAILED",e))(ft||{});const Qt=a.Map(a.Any,a.Any),$t=c.createFrom,te=Object.freeze(Object.defineProperty({__proto__:null,FindPortForwardSessionRequest:U,PortForwardConnectionType:dt,PortForwardProtocol:pt,PortForwardSession:D,PortForwardSessionEncryption:c,SessionState:ft},Symbol.toStringTag,{value:"Module"}));class H{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(t={}){"id"in t||(this.id=""),"name"in t||(this.name=""),"description"in t||(this.description=""),"icon_url"in t||(this.icon_url=""),"category"in t||(this.category=""),"tags"in t||(this.tags=[]),"license"in t||(this.license=""),"official"in t||(this.official=!1),"featured"in t||(this.featured=!1),"download_count"in t||(this.download_count=0),"average_rating"in t||(this.average_rating=0),"review_count"in t||(this.review_count=0),"repository"in t||(this.repository=""),"url"in t||(this.url=""),"publisher_name"in t||(this.publisher_name=""),"installed"in t||(this.installed=!1),"installed_version"in t||(this.installed_version=""),"latest_version"in t||(this.latest_version=""),"update_available"in t||(this.update_available=!1),Object.assign(this,t)}static createFrom(t={}){const n=kt;let i=typeof t=="string"?JSON.parse(t):t;return"tags"in i&&(i.tags=n(i.tags)),new H(i)}}class q{date;count;constructor(t={}){"date"in t||(this.date=""),"count"in t||(this.count=0),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new q(n)}}class G{total;last_month;last_week;daily_stats;constructor(t={}){"total"in t||(this.total=0),"last_month"in t||(this.last_month=0),"last_week"in t||(this.last_week=0),"daily_stats"in t||(this.daily_stats=[]),Object.assign(this,t)}static createFrom(t={}){const n=ie;let i=typeof t=="string"?JSON.parse(t):t;return"daily_stats"in i&&(i.daily_stats=n(i.daily_stats)),new G(i)}}class Z{id;user_id;rating;title;body;created_at;constructor(t={}){"id"in t||(this.id=""),"user_id"in t||(this.user_id=0),"rating"in t||(this.rating=0),"title"in t||(this.title=""),"body"in t||(this.body=""),"created_at"in t||(this.created_at=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new Z(n)}}class L{version;description;changelog;min_ide_version;max_ide_version;capabilities;created_at;constructor(t={}){"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)}static createFrom(t={}){const n=kt;let i=typeof t=="string"?JSON.parse(t):t;return"capabilities"in i&&(i.capabilities=n(i.capabilities)),new L(i)}}const kt=a.Array(a.Any),ee=q.createFrom,ie=a.Array(ee),ne=Object.freeze(Object.defineProperty({__proto__:null,AvailablePlugin:H,DailyStat:q,DownloadStats:G,Review:Z,VersionInfo:L},Symbol.toStringTag,{value:"Module"}));class _{name;email;url;constructor(t={}){"name"in t||(this.name=""),"email"in t||(this.email=""),"url"in t||(this.url=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new _(n)}}var ht=(e=>(e.$zero="",e.PluginComponentAreaEditor="EDITOR",e.PluginComponentAreaSidebar="SIDEBAR",e))(ht||{});class d{resource;constructor(t={}){"resource"in t||(this.resource=[]),Object.assign(this,t)}static createFrom(t={}){const n=ae;let i=typeof t=="string"?JSON.parse(t):t;return"resource"in i&&(i.resource=n(i.resource)),new d(i)}}class y{name;email;constructor(t={}){"name"in t||(this.name=""),"email"in t||(this.email=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new y(n)}}class p{id;version;name;icon;icon_url;description;repository;website;category;license;author;maintainers;tags;dependencies;capabilities;theme;components;schema_version;sdk_protocol_version;state_isolation;constructor(t={}){"id"in t||(this.id=""),"version"in t||(this.version=""),"name"in t||(this.name=""),"icon"in t||(this.icon=""),"icon_url"in t||(this.icon_url=""),"description"in t||(this.description=""),"repository"in t||(this.repository=""),"website"in t||(this.website=""),"category"in t||(this.category=""),"license"in t||(this.license=""),"maintainers"in t||(this.maintainers=[]),"tags"in t||(this.tags=[]),"dependencies"in t||(this.dependencies=[]),"capabilities"in t||(this.capabilities=[]),"theme"in t||(this.theme=new f),"components"in t||(this.components=new d),"schema_version"in t||(this.schema_version=0),"sdk_protocol_version"in t||(this.sdk_protocol_version=0),Object.assign(this,t)}static createFrom(t={}){const n=le,i=ce,s=k,r=k,lt=k,o=de,Gt=pe,Zt=he;let l=typeof t=="string"?JSON.parse(t):t;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=lt(l.capabilities)),"theme"in l&&(l.theme=o(l.theme)),"components"in l&&(l.components=Gt(l.components)),"state_isolation"in l&&(l.state_isolation=Zt(l.state_isolation)),new p(l)}}class b{name;plugin;area;resources;extension;constructor(t={}){"name"in t||(this.name=""),"plugin"in t||(this.plugin=""),"area"in t||(this.area=""),"resources"in t||(this.resources=[]),"extension"in t||(this.extension=""),Object.assign(this,t)}static createFrom(t={}){const n=k;let i=typeof t=="string"?JSON.parse(t):t;return"resources"in i&&(i.resources=n(i.resources)),new b(i)}}class f{colors;constructor(t={}){"colors"in t||(this.colors=new h),Object.assign(this,t)}static createFrom(t={}){const n=me;let i=typeof t=="string"?JSON.parse(t):t;return"colors"in i&&(i.colors=n(i.colors)),new f(i)}}class h{primary;secondary;tertiary;constructor(t={}){"primary"in t||(this.primary=""),"secondary"in t||(this.secondary=""),"tertiary"in t||(this.tertiary=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new h(n)}}class S{schema_version;capability;sdk_module;sdk_revision;sdk_source_sha256;binary_sha256;constructor(t={}){"schema_version"in t||(this.schema_version=0),"capability"in t||(this.capability=""),"sdk_module"in t||(this.sdk_module=""),"sdk_revision"in t||(this.sdk_revision=""),"binary_sha256"in t||(this.binary_sha256=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new S(n)}}const se=b.createFrom,ae=a.Array(se),re=_.createFrom,le=a.Nullable(re),oe=y.createFrom,ce=a.Array(oe),k=a.Array(a.Any),de=f.createFrom,pe=d.createFrom,fe=S.createFrom,he=a.Nullable(fe),me=h.createFrom,ge=Object.freeze(Object.defineProperty({__proto__:null,PluginAuthor:_,PluginComponentArea:ht,PluginComponents:d,PluginMaintainer:y,PluginMeta:p,PluginResourceComponent:b,PluginTheme:f,PluginThemeColors:h,StateIsolationProvenance:S},Symbol.toStringTag,{value:"Module"}));var F=(e=>(e[e.$zero=0]="$zero",e[e.minDuration=-9223372036854776e3]="minDuration",e[e.maxDuration=9223372036854776e3]="maxDuration",e[e.Nanosecond=1]="Nanosecond",e[e.Microsecond=1e3]="Microsecond",e[e.Millisecond=1e6]="Millisecond",e[e.Second=1e9]="Second",e[e.Minute=6e10]="Minute",e[e.Hour=36e11]="Hour",e))(F||{});const _e=Object.freeze(Object.defineProperty({__proto__:null,Duration:F},Symbol.toStringTag,{value:"Module"}));var zt=(e=>(e.$zero="",e.CapabilityResource="resource",e.CapabilityExec="exec",e.CapabilityNetworker="networker",e.CapabilityLog="log",e.CapabilityMetric="metric",e.CapabilitySettings="settings",e.CapabilityTools="tools",e.CapabilityUI="ui",e))(zt||{});class M{last_refresh;data;labels;lifecycle;id;uid;name;description;avatar;expiry_time;Client;constructor(t={}){"last_refresh"in t||(this.last_refresh="0001-01-01T00:00:00.000Z"),"data"in t||(this.data={}),"labels"in t||(this.labels={}),"lifecycle"in t||(this.lifecycle=new O),"id"in t||(this.id=""),"uid"in t||(this.uid=""),"name"in t||(this.name=""),"description"in t||(this.description=""),"avatar"in t||(this.avatar=""),"expiry_time"in t||(this.expiry_time=F.$zero),"Client"in t||(this.Client=null),Object.assign(this,t)}static createFrom(t={}){const n=It,i=It,s=ye;let r=typeof t=="string"?JSON.parse(t):t;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 M(r)}}class V{enabled;triggers;retry;constructor(t={}){"enabled"in t||(this.enabled=!1),"triggers"in t||(this.triggers=[]),"retry"in t||(this.retry=""),Object.assign(this,t)}static createFrom(t={}){const n=be;let i=typeof t=="string"?JSON.parse(t):t;return"triggers"in i&&(i.triggers=n(i.triggers)),new V(i)}}var xt=(e=>(e.$zero="",e.ConnectionAutoConnectRetryNone="NONE",e.ConnectionAutoConnectRetryOnChange="ON_CHANGE",e))(xt||{}),Bt=(e=>(e.$zero="",e.ConnectionAutoConnectTriggerPluginStart="PLUGIN_START",e.ConnectionAutoConnectTriggerConnectionDiscovered="CONNECTION_DISCOVERED",e))(Bt||{});class O{auto_connect;constructor(t={}){Object.assign(this,t)}static createFrom(t={}){const n=Fe;let i=typeof t=="string"?JSON.parse(t):t;return"auto_connect"in i&&(i.auto_connect=n(i.auto_connect)),new O(i)}}class mt{connection;status;error;details;constructor(t={}){"connection"in t||(this.connection=null),"status"in t||(this.status=""),"error"in t||(this.error=""),"details"in t||(this.details=""),Object.assign(this,t)}static createFrom(t={}){const n=ue;let i=typeof t=="string"?JSON.parse(t):t;return"connection"in i&&(i.connection=n(i.connection)),new mt(i)}}var Wt=(e=>(e.$zero="",e.ConnectionStatusUnknown="UNKNOWN",e.ConnectionStatusConnected="CONNECTED",e.ConnectionStatusDisconnected="DISCONNECTED",e.ConnectionStatusPending="PENDING",e.ConnectionStatusFailed="FAILED",e.ConnectionStatusError="ERROR",e.ConnectionStatusUnauthorized="UNAUTHORIZED",e.ConnectionStatusForbidden="FORBIDDEN",e.ConnectionStatusBadRequest="BAD_REQUEST",e.ConnectionStatusNotFound="NOT_FOUND",e.ConnectionStatusTimeout="TIMEOUT",e.ConnectionStatusUnavailable="UNAVAILABLE",e.ConnectionStatusRequestEntityTooLarge="REQUEST_ENTITY_TOO_LARGE",e))(Wt||{});class gt{id;metadata;phase;enabled;devMode;devPath;capabilities;lastError;constructor(t={}){"id"in t||(this.id=""),"metadata"in t||(this.metadata=new p),"phase"in t||(this.phase=""),"enabled"in t||(this.enabled=!1),"devMode"in t||(this.devMode=!1),"capabilities"in t||(this.capabilities=[]),Object.assign(this,t)}static createFrom(t={}){const n=we,i=ve;let s=typeof t=="string"?JSON.parse(t):t;return"metadata"in s&&(s.metadata=n(s.metadata)),"capabilities"in s&&(s.capabilities=i(s.capabilities)),new gt(s)}}const It=a.Map(a.Any,a.Any),ye=O.createFrom,be=a.Array(a.Any),Se=V.createFrom,Fe=a.Nullable(Se),Oe=M.createFrom,ue=a.Nullable(Oe),we=p.createFrom,ve=a.Array(a.Any);class Y{settings;id;label;description;icon;constructor(t={}){"settings"in t||(this.settings={}),"id"in t||(this.id=""),"label"in t||(this.label=""),"description"in t||(this.description=""),"icon"in t||(this.icon=""),Object.assign(this,t)}static createFrom(t={}){const n=Ne;let i=typeof t=="string"?JSON.parse(t):t;return"settings"in i&&(i.settings=n(i.settings)),new Y(i)}}class u{id;label;description;type;value;default;options;fileSelection;sensitive;devOnly;requiresRestart;pendingRestart;constructor(t={}){"id"in t||(this.id=""),"label"in t||(this.label=""),"description"in t||(this.description=""),"type"in t||(this.type=""),"value"in t||(this.value=null),"default"in t||(this.default=null),"options"in t||(this.options=[]),"fileSelection"in t||(this.fileSelection=null),"sensitive"in t||(this.sensitive=!1),"devOnly"in t||(this.devOnly=!1),"requiresRestart"in t||(this.requiresRestart=!1),"pendingRestart"in t||(this.pendingRestart=!1),Object.assign(this,t)}static createFrom(t={}){const n=Ae,i=Pe;let s=typeof t=="string"?JSON.parse(t):t;return"options"in s&&(s.options=n(s.options)),"fileSelection"in s&&(s.fileSelection=i(s.fileSelection)),new u(s)}}class w{enabled;allowFolders;extensions;multiple;relative;defaultPath;constructor(t={}){"enabled"in t||(this.enabled=!1),"allowFolders"in t||(this.allowFolders=!1),"extensions"in t||(this.extensions=[]),"multiple"in t||(this.multiple=!1),"relative"in t||(this.relative=!1),"defaultPath"in t||(this.defaultPath=""),Object.assign(this,t)}static createFrom(t={}){const n=Ie;let i=typeof t=="string"?JSON.parse(t):t;return"extensions"in i&&(i.extensions=n(i.extensions)),new w(i)}}class v{label;description;value;constructor(t={}){"label"in t||(this.label=""),"description"in t||(this.description=""),"value"in t||(this.value=null),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new v(n)}}var _t=(e=>(e.$zero="",e.Text="text",e.Select="select",e.MultiSelect="multiselect",e.Integer="integer",e.Float="float",e.Toggle="toggle",e.Color="color",e.DateTime="datetime",e.Password="password",e))(_t||{});class X{valid;code;message;constructor(t={}){"valid"in t||(this.valid=!1),"code"in t||(this.code=""),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new X(n)}}const Te=u.createFrom,Ne=a.Map(a.Any,Te),je=v.createFrom,Ae=a.Array(je),Je=w.createFrom,Pe=a.Nullable(Je),Ie=a.Array(a.Any),Ce=Object.freeze(Object.defineProperty({__proto__:null,Category:Y,Setting:u,SettingFileSelection:w,SettingOption:v,SettingType:_t,ValidationResult:X},Symbol.toStringTag,{value:"Module"}));class K{plugin;constructor(t={}){"plugin"in t||(this.plugin=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new K(n)}}class Q{plugin;resource;area;constructor(t={}){"plugin"in t||(this.plugin=""),"resource"in t||(this.resource=""),"area"in t||(this.area=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new Q(n)}}class ${plugin;resource;constructor(t={}){"plugin"in t||(this.plugin=""),"resource"in t||(this.resource=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new $(n)}}class tt{owner;name;plugin;resource;area;extension;constructor(t={}){"owner"in t||(this.owner=""),"name"in t||(this.name=""),"plugin"in t||(this.plugin=""),"resource"in t||(this.resource=""),"area"in t||(this.area=""),"extension"in t||(this.extension=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new tt(n)}}var yt=(e=>(e.$zero="",e.ResourceComponentAreaSidebar="SIDEBAR",e.ResourceComponentAreaTable="TABLE",e))(yt||{});const Ee=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponentsInput:K,GetResourceAreaComponentInput:Q,GetResourceComponentsInput:$,ResourceComponent:tt,ResourceComponentArea:yt},Symbol.toStringTag,{value:"Module"}));class T{label;label_selector;paths;selectors;constructor(t={}){"label"in t||(this.label=""),"label_selector"in t||(this.label_selector=""),"paths"in t||(this.paths=[]),"selectors"in t||(this.selectors={}),Object.assign(this,t)}static createFrom(t={}){const n=Re,i=Ft;let s=typeof t=="string"?JSON.parse(t):t;return"paths"in s&&(s.paths=n(s.paths)),"selectors"in s&&(s.selectors=i(s.selectors)),new T(s)}}let Ut=class Dt{plugin;resource;target_builder;constructor(t={}){"plugin"in t||(this.plugin=""),"resource"in t||(this.resource=""),"target_builder"in t||(this.target_builder=new T),Object.assign(this,t)}static createFrom(t={}){const n=ke;let i=typeof t=="string"?JSON.parse(t):t;return"target_builder"in i&&(i.target_builder=n(i.target_builder)),new Dt(i)}};class et{id;plugin_id;connection_id;resource_key;resource_id;options;status;active_sources;created_at;constructor(t={}){"id"in t||(this.id=""),"plugin_id"in t||(this.plugin_id=""),"connection_id"in t||(this.connection_id=""),"resource_key"in t||(this.resource_key=""),"resource_id"in t||(this.resource_id=""),"options"in t||(this.options=new m),"status"in t||(this.status=0),"active_sources"in t||(this.active_sources=[]),"created_at"in t||(this.created_at="0001-01-01T00:00:00.000Z"),Object.assign(this,t)}static createFrom(t={}){const n=ze,i=Be;let s=typeof t=="string"?JSON.parse(t):t;return"options"in s&&(s.options=n(s.options)),"active_sources"in s&&(s.active_sources=i(s.active_sources)),new et(s)}}class m{target;follow;include_previous;include_timestamps;tail_lines;since_seconds;since_time;limit_bytes;include_source_events;params;constructor(t={}){"target"in t||(this.target=""),"follow"in t||(this.follow=!1),"include_previous"in t||(this.include_previous=!1),"include_timestamps"in t||(this.include_timestamps=!1),"tail_lines"in t||(this.tail_lines=0),"since_seconds"in t||(this.since_seconds=0),"limit_bytes"in t||(this.limit_bytes=0),"include_source_events"in t||(this.include_source_events=!1),"params"in t||(this.params={}),Object.assign(this,t)}static createFrom(t={}){const n=Ft;let i=typeof t=="string"?JSON.parse(t):t;return"params"in i&&(i.params=n(i.params)),new m(i)}}var bt=(e=>(e[e.$zero=0]="$zero",e[e.LogSessionStatusActive=0]="LogSessionStatusActive",e[e.LogSessionStatusPaused=1]="LogSessionStatusPaused",e[e.LogSessionStatusClosed=2]="LogSessionStatusClosed",e[e.LogSessionStatusError=3]="LogSessionStatusError",e[e.LogSessionStatusConnecting=4]="LogSessionStatusConnecting",e[e.LogSessionStatusInitializing=5]="LogSessionStatusInitializing",e))(bt||{});class N{id;labels;constructor(t={}){"id"in t||(this.id=""),"labels"in t||(this.labels={}),Object.assign(this,t)}static createFrom(t={}){const n=Ft;let i=typeof t=="string"?JSON.parse(t):t;return"labels"in i&&(i.labels=n(i.labels)),new N(i)}}var St=(e=>(e[e.$zero=0]="$zero",e[e.StreamCommandPause=0]="StreamCommandPause",e[e.StreamCommandResume=1]="StreamCommandResume",e[e.StreamCommandClose=2]="StreamCommandClose",e))(St||{});const Re=a.Array(a.Any),Ft=a.Map(a.Any,a.Any),ke=T.createFrom,ze=m.createFrom,xe=N.createFrom,Be=a.Array(xe),We=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:T,Handler:Ut,LogSession:et,LogSessionOptions:m,LogSessionStatus:bt,LogSource:N,LogStreamCommand:St},Symbol.toStringTag,{value:"Module"}));class j{metric_id;min;max;avg;sum;p50;p90;p99;count;window;labels;constructor(t={}){"metric_id"in t||(this.metric_id=""),"min"in t||(this.min=0),"max"in t||(this.max=0),"avg"in t||(this.avg=0),"sum"in t||(this.sum=0),"p50"in t||(this.p50=0),"p90"in t||(this.p90=0),"p99"in t||(this.p99=0),"count"in t||(this.count=0),"window"in t||(this.window=F.$zero),"labels"in t||(this.labels={}),Object.assign(this,t)}static createFrom(t={}){const n=st;let i=typeof t=="string"?JSON.parse(t):t;return"labels"in i&&(i.labels=n(i.labels)),new j(i)}}class A{min;max;color;constructor(t={}){"min"in t||(this.min=0),"max"in t||(this.max=0),"color"in t||(this.color=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new A(n)}}class J{metric_id;value;timestamp;labels;constructor(t={}){"metric_id"in t||(this.metric_id=""),"value"in t||(this.value=0),"timestamp"in t||(this.timestamp="0001-01-01T00:00:00.000Z"),"labels"in t||(this.labels={}),Object.assign(this,t)}static createFrom(t={}){const n=st;let i=typeof t=="string"?JSON.parse(t):t;return"labels"in i&&(i.labels=n(i.labels)),new J(i)}}class P{timestamp;value;labels;constructor(t={}){"timestamp"in t||(this.timestamp="0001-01-01T00:00:00.000Z"),"value"in t||(this.value=0),"labels"in t||(this.labels={}),Object.assign(this,t)}static createFrom(t={}){const n=st;let i=typeof t=="string"?JSON.parse(t):t;return"labels"in i&&(i.labels=n(i.labels)),new P(i)}}class it{resource;metrics;constructor(t={}){"resource"in t||(this.resource=""),"metrics"in t||(this.metrics=[]),Object.assign(this,t)}static createFrom(t={}){const n=De;let i=typeof t=="string"?JSON.parse(t):t;return"metrics"in i&&(i.metrics=n(i.metrics)),new it(i)}}class I{id;name;unit;icon;color_ranges;format_string;supported_shapes;chart_group;constructor(t={}){"id"in t||(this.id=""),"name"in t||(this.name=""),"unit"in t||(this.unit=0),"icon"in t||(this.icon=""),"color_ranges"in t||(this.color_ranges=[]),"format_string"in t||(this.format_string=""),"supported_shapes"in t||(this.supported_shapes=[]),"chart_group"in t||(this.chart_group=""),Object.assign(this,t)}static createFrom(t={}){const n=qe,i=Ge;let s=typeof t=="string"?JSON.parse(t):t;return"color_ranges"in s&&(s.color_ranges=n(s.color_ranges)),"supported_shapes"in s&&(s.supported_shapes=i(s.supported_shapes)),new I(s)}}class C{time_series;current_value;aggregate_value;constructor(t={}){Object.assign(this,t)}static createFrom(t={}){const n=Le,i=Ve,s=Xe;let r=typeof t=="string"?JSON.parse(t):t;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 C(r)}}var Ot=(e=>(e[e.$zero=0]="$zero",e[e.ShapeCurrent=0]="ShapeCurrent",e[e.ShapeTimeseries=1]="ShapeTimeseries",e[e.ShapeAggregate=2]="ShapeAggregate",e))(Ot||{}),ut=(e=>(e[e.$zero=0]="$zero",e[e.UnitNone=0]="UnitNone",e[e.UnitBytes=1]="UnitBytes",e[e.UnitKB=2]="UnitKB",e[e.UnitMB=3]="UnitMB",e[e.UnitGB=4]="UnitGB",e[e.UnitPercentage=5]="UnitPercentage",e[e.UnitMillis=6]="UnitMillis",e[e.UnitSeconds=7]="UnitSeconds",e[e.UnitCount=8]="UnitCount",e[e.UnitOpsPerSec=9]="UnitOpsPerSec",e[e.UnitBytesPerSec=10]="UnitBytesPerSec",e[e.UnitMillicores=11]="UnitMillicores",e[e.UnitCores=12]="UnitCores",e))(ut||{});class nt{success;results;error;constructor(t={}){"success"in t||(this.success=!1),"results"in t||(this.results=[]),"error"in t||(this.error=""),Object.assign(this,t)}static createFrom(t={}){const n=Qe;let i=typeof t=="string"?JSON.parse(t):t;return"results"in i&&(i.results=n(i.results)),new nt(i)}}class E{metric_id;data_points;labels;constructor(t={}){"metric_id"in t||(this.metric_id=""),"data_points"in t||(this.data_points=[]),"labels"in t||(this.labels={}),Object.assign(this,t)}static createFrom(t={}){const n=ti,i=st;let s=typeof t=="string"?JSON.parse(t):t;return"data_points"in s&&(s.data_points=n(s.data_points)),"labels"in s&&(s.labels=i(s.labels)),new E(s)}}const st=a.Map(a.Any,a.Any),Ue=I.createFrom,De=a.Array(Ue),He=A.createFrom,qe=a.Array(He),Ge=a.Array(a.Any),Ze=E.createFrom,Le=a.Nullable(Ze),Me=J.createFrom,Ve=a.Nullable(Me),Ye=j.createFrom,Xe=a.Nullable(Ye),Ke=C.createFrom,Qe=a.Array(Ke),$e=P.createFrom,ti=a.Array($e),ei=Object.freeze(Object.defineProperty({__proto__:null,AggregateValue:j,ColorRange:A,CurrentValue:J,DataPoint:P,Handler:it,MetricDescriptor:I,MetricResult:C,MetricShape:Ot,MetricUnit:ut,QueryResponse:nt,TimeSeries:E},Symbol.toStringTag,{value:"Module"}));class wt{sessionId;sourceWindow;dragType;payload;constructor(t={}){"sessionId"in t||(this.sessionId=""),"sourceWindow"in t||(this.sourceWindow=""),"dragType"in t||(this.dragType=""),"payload"in t||(this.payload=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new wt(n)}}class vt{sessionId;sourceWindow;dragType;constructor(t={}){"sessionId"in t||(this.sessionId=""),"sourceWindow"in t||(this.sourceWindow=""),"dragType"in t||(this.dragType=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new vt(n)}}class Tt{sessionId;constructor(t={}){"sessionId"in t||(this.sessionId=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new Tt(n)}}class Nt{sessionId;targetWindow;constructor(t={}){"sessionId"in t||(this.sessionId=""),"targetWindow"in t||(this.targetWindow=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new Nt(n)}}class jt{sessionId;targetWindow;payload;clientX;clientY;constructor(t={}){"sessionId"in t||(this.sessionId=""),"targetWindow"in t||(this.targetWindow=""),"payload"in t||(this.payload=""),"clientX"in t||(this.clientX=0),"clientY"in t||(this.clientY=0),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new jt(n)}}class at{accepted;targetWindow;targetInstanceId;constructor(t={}){"accepted"in t||(this.accepted=!1),"targetWindow"in t||(this.targetWindow=""),"targetInstanceId"in t||(this.targetInstanceId=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new at(n)}}class R{name;kind;focused;constructor(t={}){"name"in t||(this.name=""),"kind"in t||(this.kind=""),"focused"in t||(this.focused=!1),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new R(n)}}var Ht=(e=>(e.$zero="",e.KindWorkspace="workspace",e.KindPanel="panel",e.KindSettings="settings",e))(Ht||{});class At{kind;initialState;anchorWindow;clientX;clientY;hasPosition;width;height;constructor(t={}){"kind"in t||(this.kind=""),"initialState"in t||(this.initialState={}),"anchorWindow"in t||(this.anchorWindow=""),"clientX"in t||(this.clientX=0),"clientY"in t||(this.clientY=0),"hasPosition"in t||(this.hasPosition=!1),"width"in t||(this.width=0),"height"in t||(this.height=0),Object.assign(this,t)}static createFrom(t={}){const n=qt;let i=typeof t=="string"?JSON.parse(t):t;return"initialState"in i&&(i.initialState=n(i.initialState)),new At(i)}}class rt{requestId;target;visible;constructor(t={}){"requestId"in t||(this.requestId=0),"target"in t||(this.target=""),"visible"in t||(this.visible=!1),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new rt(n)}}class Jt{name;kind;states;constructor(t={}){"name"in t||(this.name=""),"kind"in t||(this.kind=""),"states"in t||(this.states={}),Object.assign(this,t)}static createFrom(t={}){const n=qt;let i=typeof t=="string"?JSON.parse(t):t;return"states"in i&&(i.states=n(i.states)),new Jt(i)}}class Pt{windows;constructor(t={}){"windows"in t||(this.windows=[]),Object.assign(this,t)}static createFrom(t={}){const n=ni;let i=typeof t=="string"?JSON.parse(t):t;return"windows"in i&&(i.windows=n(i.windows)),new Pt(i)}}const qt=a.Map(a.Any,a.Any),ii=R.createFrom,ni=a.Array(ii),si=Object.freeze(Object.defineProperty({__proto__:null,DragBegin:wt,DragBeginEvent:vt,DragEndEvent:Tt,DragLeaveEvent:Nt,DragPointerEvent:jt,DropResult:at,Info:R,Kind:Ht,OpenRequest:At,SettingsState:rt,WindowClosedEvent:Jt,WindowsChangedEvent:Pt},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=z;exports.AggregateValue=j;exports.AvailablePlugin=H;exports.Capability=zt;exports.Category=Y;exports.ColorRange=A;exports.Connection=M;exports.ConnectionAutoConnect=V;exports.ConnectionAutoConnectRetry=xt;exports.ConnectionAutoConnectTrigger=Bt;exports.ConnectionLifecycle=O;exports.ConnectionStatus=mt;exports.ConnectionStatusCode=Wt;exports.CurrentValue=J;exports.DataPoint=P;exports.DownloadStats=G;exports.DropResult=at;exports.Duration=F;exports.FindPortForwardSessionRequest=U;exports.GetPluginComponentsInput=K;exports.GetResourceAreaComponentInput=Q;exports.GetResourceComponentsInput=$;exports.Handler=Et;exports.Handler$1=Ut;exports.Handler$2=it;exports.Info=R;exports.LogSession=et;exports.LogSessionOptions=m;exports.LogSessionStatus=bt;exports.LogSource=N;exports.LogStreamCommand=St;exports.MetricDescriptor=I;exports.MetricResult=C;exports.MetricShape=Ot;exports.MetricUnit=ut;exports.PluginAuthor=_;exports.PluginComponentArea=ht;exports.PluginComponents=d;exports.PluginInfo=gt;exports.PluginMaintainer=y;exports.PluginMeta=p;exports.PluginResourceComponent=b;exports.PluginTheme=f;exports.PluginThemeColors=h;exports.PortForwardConnectionType=dt;exports.PortForwardProtocol=pt;exports.PortForwardSession=D;exports.PortForwardSessionEncryption=c;exports.QueryResponse=nt;exports.ResourceComponent=tt;exports.ResourceComponentArea=yt;exports.Review=Z;exports.Session=x;exports.SessionOptions=B;exports.SessionState=ft;exports.Setting=u;exports.SettingFileSelection=w;exports.SettingOption=v;exports.SettingType=_t;exports.SettingsState=rt;exports.StateIsolationProvenance=S;exports.TimeSeries=E;exports.ValidationResult=X;exports.VersionInfo=L;exports.models=ge;exports.models$1=Kt;exports.models$2=We;exports.models$3=ei;exports.models$4=te;exports.models$5=ne;exports.models$6=Ce;exports.models$7=_e;exports.models$8=Ee;exports.models$9=si;
|
|
@@ -50,9 +50,14 @@ let Y = class vt {
|
|
|
50
50
|
resource;
|
|
51
51
|
target_builder;
|
|
52
52
|
default_command;
|
|
53
|
+
/**
|
|
54
|
+
* SupportsNativeCommand advertises planning support in remote metadata.
|
|
55
|
+
* Local support is determined by NativeCommandHandler, not this flag.
|
|
56
|
+
*/
|
|
57
|
+
supports_native_command;
|
|
53
58
|
/** Creates a new Handler instance. */
|
|
54
59
|
constructor(t = {}) {
|
|
55
|
-
"plugin" in t || (this.plugin = ""), "resource" in t || (this.resource = ""), "target_builder" in t || (this.target_builder = new Y()), "default_command" in t || (this.default_command = []), Object.assign(this, t);
|
|
60
|
+
"plugin" in t || (this.plugin = ""), "resource" in t || (this.resource = ""), "target_builder" in t || (this.target_builder = new Y()), "default_command" in t || (this.default_command = []), "supports_native_command" in t || (this.supports_native_command = !1), Object.assign(this, t);
|
|
56
61
|
}
|
|
57
62
|
/**
|
|
58
63
|
* Creates a new Handler instance from a string or object.
|
package/dist/models.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index-BVi9X4oU.cjs"),e=require("./models-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index-BVi9X4oU.cjs"),e=require("./models-D5pkScnE.cjs"),s=require("./graph-wHun0Bkz.cjs"),n=require("./models-C-3HYV9E.cjs");class a{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=d;let i=typeof t=="string"?JSON.parse(t):t;return"filters"in i&&(i.filters=o(i.filters)),new a(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 S=r.createFrom,d=C.Array(S);function p(c,t){const o={...c};for(const[i,g]of Object.entries(c)){if(i==="$zero"||!i.startsWith(t))continue;const u=i.slice(t.length).replace(/([a-z0-9])([A-Z])/g,"$1_$2").toUpperCase();u&&(o[u]=g)}return o}const m=p(e.ConnectionStatusCode,"ConnectionStatus"),y=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 l{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 l(o)}}const f=Object.freeze(Object.defineProperty({__proto__:null,GetLanguageInput:l},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.ConnectionLifecycle=e.ConnectionLifecycle;exports.ConnectionStatus=e.ConnectionStatus;exports.ConnectionStatusCode=e.ConnectionStatusCode;exports.CurrentValue=e.CurrentValue;exports.DataPoint=e.DataPoint;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.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.SyncPolicy=s.SyncPolicy;exports.WatchState=s.WatchState;exports.sameGraphNode=s.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=a;exports.FileFilter=r;exports.types=y;exports.utils=f;
|
package/dist/models.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as c } from "./index-zyAgCXOO.js";
|
|
2
|
-
import { l as g, d as p, m as f, n as u, o as S, p as d, C as m, q as y, c as C } from "./models-
|
|
3
|
-
import { r as T, s as R, e as M, t as N, u as j, v as _, F as E, G as x, w as z, x as G, H, L as I, y as k, z as B, B as J, E as W, M as U, J as V, K as q, N as Q, O as Z, T as K, U as X, W as Y, P as $, X as ee, Y as te, Z as ae, _ as se, $ as ie, b as ne, a0 as oe, Q as re, g as le, a1 as ce, a as ge, S as pe, a2 as fe, a3 as ue, a4 as Se, a5 as de, a6 as me, a7 as ye, a8 as Ce, f as Pe, a9 as he, aa as ve, ab as Fe, ac as Ae, ad as De, ae as we, af as be, ag as Oe, ah as Le, ai as Te } from "./models-
|
|
2
|
+
import { l as g, d as p, m as f, n as u, o as S, p as d, C as m, q as y, c as C } from "./models-DNQykdGx.js";
|
|
3
|
+
import { r as T, s as R, e as M, t as N, u as j, v as _, F as E, G as x, w as z, x as G, H, L as I, y as k, z as B, B as J, E as W, M as U, J as V, K as q, N as Q, O as Z, T as K, U as X, W as Y, P as $, X as ee, Y as te, Z as ae, _ as se, $ as ie, b as ne, a0 as oe, Q as re, g as le, a1 as ce, a as ge, S as pe, a2 as fe, a3 as ue, a4 as Se, a5 as de, a6 as me, a7 as ye, a8 as Ce, f as Pe, a9 as he, aa as ve, ab as Fe, ac as Ae, ad as De, ae as we, af as be, ag as Oe, ah as Le, ai as Te } from "./models-DNQykdGx.js";
|
|
4
4
|
import { S as Me, W as Ne, s as je } from "./graph-JDqyJC_i.js";
|
|
5
|
-
import { B as Ee, d as xe, e as ze, L as Ge, f as He, D as Ie, g as ke, c as Be, m as Je, h as We, i as Ue } from "./models-
|
|
5
|
+
import { B as Ee, d as xe, e as ze, L as Ge, f as He, D as Ie, g as ke, c as Be, m as Je, h as We, i as Ue } from "./models-BlRe-e25.js";
|
|
6
6
|
class r {
|
|
7
7
|
defaultDirectory;
|
|
8
8
|
defaultFilename;
|
|
@@ -3,7 +3,7 @@ import { AccessRoute, ActionRequest, Catalog as CatalogResult, CatalogRequest, G
|
|
|
3
3
|
import { ActionDescriptor, EditorSchema, FeatureSet, RelationshipDescriptor, ResolvedRelationship, ResourceDefinition, ResourceEvent, ResourceGroup, ResourceHealth } from './ancillary';
|
|
4
4
|
import { AppError } from '../../errors/types';
|
|
5
5
|
import { WatchConnectionSummary } from '../../types/watch';
|
|
6
|
-
import { ConnectionProfile, ConnectionProfileResult, HostConnectionState, HostEnumerateRequest, HostGetRequest, HostNativeQueryRequest, HostRecord, HostSourcePage, HostSubscriptionRequest, ResolvedResourceReference, ResolvedResourceTarget, ResolveReferenceRequest, ResolveTargetRequest } from './host';
|
|
6
|
+
import { ConnectionProfile, ConnectionProfileCredentials, ConnectionProfileResult, HostConnectionState, HostEnumerateRequest, HostGetRequest, HostNativeQueryRequest, HostRecord, HostSourcePage, HostSubscriptionRequest, ResolvedResourceReference, ResolvedResourceTarget, ResolveReferenceRequest, ResolveTargetRequest } from './host';
|
|
7
7
|
import { Connection } from '../../bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
|
|
8
8
|
import { ConnectionMetadataEnvelope } from '../../connection/metadata';
|
|
9
9
|
export declare const Features: (pluginID: string) => CancellablePromise<FeatureSet>;
|
|
@@ -22,7 +22,7 @@ export declare const GetAllConnectionStates: () => CancellablePromise<{
|
|
|
22
22
|
[pluginID: string]: HostConnectionState[];
|
|
23
23
|
}>;
|
|
24
24
|
export declare const ListConnectionProfiles: (pluginID: string) => CancellablePromise<ConnectionProfile[]>;
|
|
25
|
-
export declare const SaveConnectionProfile: (pluginID: string, connection: Connection) => CancellablePromise<ConnectionProfileResult>;
|
|
25
|
+
export declare const SaveConnectionProfile: (pluginID: string, connection: Connection, credentials?: ConnectionProfileCredentials) => CancellablePromise<ConnectionProfileResult>;
|
|
26
26
|
export declare const ImportConnectionProfile: (pluginID: string, id: string) => CancellablePromise<ConnectionProfileResult>;
|
|
27
27
|
export declare const ResetConnectionProfile: (pluginID: string, id: string) => CancellablePromise<ConnectionProfileResult>;
|
|
28
28
|
export declare const RemoveConnection: (pluginID: string, id: string) => CancellablePromise<void>;
|
|
@@ -55,6 +55,11 @@ export interface ConnectionProfileResult {
|
|
|
55
55
|
applied: boolean;
|
|
56
56
|
profile: ConnectionProfile;
|
|
57
57
|
}
|
|
58
|
+
/** Write-only credentials. Omission preserves only unchanged profile identity/configuration; empty string clears. */
|
|
59
|
+
export interface ConnectionProfileCredentials {
|
|
60
|
+
username?: string;
|
|
61
|
+
token?: string;
|
|
62
|
+
}
|
|
58
63
|
export interface HostGetRequest {
|
|
59
64
|
targetId: string;
|
|
60
65
|
request: GetRequest;
|