@omniviewdev/runtime 0.18.0 → 0.19.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/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.18.0",
5
+ "version": "0.19.0",
6
6
  "description": "Runtime shared library for Omniview",
7
7
  "sideEffects": false,
8
8
  "type": "module",
@@ -1 +0,0 @@
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;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=[]),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;
@@ -1 +0,0 @@
1
- "use strict";const o=require("./index-BVi9X4oU.cjs"),u=require("./models-BJZVpONm.cjs"),n=require("./calls-B-HP1Icv.cjs");function f(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,et=0,M=0;const L=[],p=s=>{for(let y=0;y<s.length;y++){const a=s.charCodeAt(y);let h=a<128?1:a<2048?2:3;if(a>=55296&&a<=56319){const S=s.charCodeAt(++y);if(!(S>=56320&&S<=57343))throw new TypeError("Invalid Unicode");h=4}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode");if(_+=h,N+=a===34||a===92?2:h,_>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 h=s.charCodeAt(++y);if(!(h>=56320&&h<=57343))throw new TypeError("Invalid Unicode")}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode")}p(JSON.stringify(s))},b=(s,y)=>{if(++et>262144||y>64)throw new RangeError("Request JSON structural limit");if(s===null){p("null");return}if(typeof s=="string"){j(s);return}if(typeof s=="boolean"){p(s?"true":"false");return}if(typeof s=="number"){if(!Number.isFinite(s))throw new TypeError("Request numbers must be finite");p(Object.is(s,-0)?"-0":JSON.stringify(s));return}if(Array.isArray(s)){p("[");for(let a=0;a<s.length;a++){if(++M>1048576)throw new RangeError("Request JSON field limit");a&&p(","),b(s[a],y+1)}p("]");return}if(typeof s=="object"){p("{");let a=!0;for(const[h,S]of Object.entries(s))if(S!==void 0){if(++M>1048576)throw new RangeError("Request JSON field limit");a||p(","),a=!1,j(h),p(":"),b(S,y+1)}p("}");return}throw new TypeError("Unsupported request JSON value")};return b(e,0),L.join("")}function tt(e){return n.ByID(93318075,e).then(t=>(t[0]=d(t[0]),t[1]=o.ByteSlice(t[1]),t))}function nt(e){return n.ByID(1353297556,e)}function rt(e){return n.ByID(4182196712,e).then(t=>d(t))}function ot(e){return n.ByID(3993344525,e).then(t=>d(t))}function it(e,t){return n.ByID(1779192716,e,t).then(r=>gt(r))}function ct(){return n.ByID(4033362541).then(e=>St(e))}function st(e){return n.ByID(2619212338,e).then(t=>k(t))}function ut(e){return n.ByID(1371268636,e).then(t=>d(t))}function at(e){return n.ByID(3881019319,e)}function lt(){return n.ByID(3006426324).then(e=>dt(e))}function yt(){return n.ByID(265791345).then(e=>$t(e))}function pt(e,t,r){return n.ByID(1492965384,e,t,r)}function ft(e,t){return n.ByID(486465741,e,t)}const ht=u.Session.createFrom,d=o.Nullable(ht),E=u.Handler.createFrom,gt=o.Nullable(E),k=o.Map(o.Any,E),St=o.Map(o.Any,k),dt=o.Array(o.Any),$t=o.Array(d);function W(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession",e,t,f(r,[e,t])).then(c=>c===null?null:u.Session.createFrom(c))}const mt=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:tt,CloseSession:nt,CreateSession:W,CreateTerminal:rt,DetachSession:ot,GetHandler:it,GetHandlers:ct,GetPluginHandlers:st,GetSession:ut,HasPlugin:at,ListPlugins:lt,ListSessions:yt,ResizeSession:pt,WriteSession:ft},Symbol.toStringTag,{value:"Module"}));function H(e){return n.ByID(182596922,e).then(t=>P(t))}function J(e,t,r){return n.ByID(981100722,e,t,r).then(c=>R(c))}function Bt(e){return n.ByID(2157304970,e).then(t=>P(t))}function Dt(e){return n.ByID(650882,e).then(t=>z(t))}function It(e){return n.ByID(3624690437,e)}function q(){return n.ByID(2195697754).then(e=>R(e))}function bt(){return n.ByID(167463150).then(e=>z(e))}function Pt(e,t){return n.ByID(2090415403,e,t).then(r=>R(r))}const Rt=u.PortForwardSession.createFrom,P=o.Nullable(Rt),R=o.Array(P),z=o.Array(o.Any);function U(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/networker.ServiceWrapper.StartResourcePortForwardingSession",e,t,f(r,[e,t]))}const Tt=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:H,FindPortForwardSessions:J,GetPortForwardSession:Bt,GetSupportedPortForwardTargets:Dt,HasPlugin:It,ListAllPortForwardSessions:q,ListPlugins:bt,ListPortForwardSessions:Pt,StartResourcePortForwardingSession:U},Symbol.toStringTag,{value:"Module"}));class T{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 T(r)}}function Ct(e){return n.ByID(3150413499,e).then(t=>g(t))}function Gt(e){return n.ByID(1152913314,e).then(t=>Vt(t))}function x(e){return n.ByID(111194374,e).then(t=>C(t))}function At(){return n.ByID(1083754477).then(e=>Kt(e))}function vt(e){return n.ByID(3945933305,e)}function wt(e){return n.ByID(2859775056,e).then(t=>Q(t))}function Ft(e,t){return n.ByID(2209599792,e,t).then(r=>Zt(r))}function Ot(e){return n.ByID(3963363730,e).then(t=>Q(t))}function _t(e){return n.ByID(1357029266,e).then(t=>g(t))}function Nt(){return n.ByID(2477486666).then(e=>B(e))}function Mt(){return n.ByID(976517756).then(e=>B(e))}function Lt(e){return n.ByID(1020548995,e).then(t=>B(t))}function jt(e,t){return n.ByID(2004740384,e,t).then(r=>B(r))}function Et(){return n.ByID(873697101).then(e=>K(e))}function kt(){return n.ByID(637134283).then(e=>tn(e))}function Wt(){return n.ByID(550607756).then(e=>nn(e))}function Ht(e,t){return n.ByID(288660195,e,t).then(r=>g(r))}function Jt(e){return n.ByID(1771013494,e).then(t=>g(t))}function V(e){return n.ByID(2433379724,e).then(t=>g(t))}function qt(e,t,r){return n.ByID(2783597264,e,t,r).then(c=>K(c))}function zt(e){return n.ByID(1369550929,e).then(t=>g(t))}function Ut(e){return n.ByID(3828800061,e).then(t=>g(t))}const g=u.PluginInfo.createFrom,xt=u.DownloadStats.createFrom,Vt=o.Nullable(xt),C=u.PluginMeta.createFrom,Qt=T.createFrom,Kt=o.Array(Qt),Xt=u.VersionInfo.createFrom,Q=o.Array(Xt),Yt=u.Review.createFrom,Zt=o.Array(Yt),B=o.Nullable(C),en=u.AvailablePlugin.createFrom,K=o.Array(en),tn=o.Array(C),nn=o.Array(g),rn=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:Ct,GetPluginDownloadStats:Gt,GetPluginMeta:x,GetPluginProfilingStatuses:At,GetPluginReadme:vt,GetPluginReleaseHistory:wt,GetPluginReviews:Ft,GetPluginVersions:Ot,InstallDevPluginFromPath:_t,InstallFromPathPrompt:Nt,InstallInDevMode:Mt,InstallPluginFromPath:Lt,InstallPluginVersion:jt,ListAvailablePlugins:Et,ListPluginMetas:kt,ListPlugins:Wt,LoadPlugin:Ht,ReloadPlugin:Jt,RetryFailedPlugin:V,SearchPlugins:qt,UninstallPlugin:zt,UnlinkDevPlugin:Ut},Symbol.toStringTag,{value:"Module"}));function X(e,t){return n.ByID(1688967279,e,t).then(r=>re(r))}function Y(e,t){return n.ByID(950535743,e,t).then(r=>G(r))}function on(e){return n.ByID(854008408,e)}function Z(){return n.ByID(1598984489).then(e=>un(e))}function ee(e){return n.ByID(1775572154,e).then(t=>A(t))}function cn(){return n.ByID(3217612415).then(e=>an(e))}function sn(e){return n.ByID(2037329938,e).then(t=>A(t))}function te(e,t){return n.ByID(3276991559,e,t).then(r=>re(r))}function ne(e,t){return n.ByID(794258089,e,t).then(r=>G(r))}const re=u.ConnectionStatus.createFrom,G=u.Connection.createFrom,A=o.Array(G),un=o.Map(o.Any,A),an=o.Array(o.Any),ln="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";function i(e,...t){return n.ByName(`${ln}.${e}`,...t)}const yn=e=>i("Features",e),oe=(e,t)=>i("GetConnectionMetadata",e,t),ie=(e,t)=>i("RefreshConnectionMetadata",e,t),ce=(e,t)=>i("Catalog",e,t),se=(e,t)=>i("Get",e,t),ue=(e,t)=>i("Enumerate",e,t),ae=(e,t)=>i("NativeQuery",e,f(t,[e])),le=(e,t)=>i("Mutate",e,f(t,[e])),ye=(e,t)=>i("Action",e,f(t,[e])),pe=(e,t)=>i("ResolveTarget",e,t),pn=(e,t)=>i("ResolveReference",e,t),fe=(e,t,r)=>i("GetSchemaDocument",e,t,r),he=()=>i("GetAllConnectionStates"),ge=e=>i("ListConnectionProfiles",e),Se=(e,t)=>i("SaveConnectionProfile",e,t),de=(e,t)=>i("ImportConnectionProfile",e,t),$e=(e,t)=>i("ResetConnectionProfile",e,t),me=(e,t)=>i("RemoveConnection",e,t),Be=(e,t)=>i("GetResourceGroups",e,t),fn=(e,t,r)=>i("GetResourceDefinition",e,t,r),De=(e,t)=>i("GetEditorSchemas",e,t),hn=(e,t,r)=>i("GetRelationships",e,t,r),gn=(e,t)=>i("ResolveRelationships",e,t),Sn=(e,t,r)=>i("GetHealth",e,f({request:t,body:r},[e])),dn=(e,t,r)=>i("GetResourceEvents",e,t,r),Ie=(e,t,r)=>i("GetActions",e,t,r),be=(e,t)=>i("StreamAction",e,f(t,[e])),Pe=e=>i("AttachStreamAction",e),Re=e=>i("CancelStreamAction",e),Te=(e,t)=>i("StartConnectionWatch",e,t),Ce=(e,t)=>i("StopConnectionWatch",e,t),Ge=(e,t)=>i("GetWatchState",e,t),Ae=(e,t)=>i("EnsureResourceWatch",e,t),$n=(e,t,r)=>i("StopResourceWatch",e,t,r),mn=(e,t)=>i("RestartResourceWatch",e,t),Bn=(e,t,r)=>i("IsResourceWatchRunning",e,t,r),ve=(e,t)=>i("SubscribeResource",e,t),we=(e,t)=>i("UnsubscribeResource",e,t),Fe=(e,t,r)=>i("ScopeValues",e,t,r),Dn=Object.freeze(Object.defineProperty({__proto__:null,Action:ye,AttachStreamAction:Pe,CancelStreamAction:Re,Catalog:ce,CheckConnection:X,EnsureResourceWatch:Ae,Enumerate:ue,Features:yn,Get:se,GetActions:Ie,GetAllConnectionStates:he,GetConnection:Y,GetConnectionMetadata:oe,GetEditorSchemas:De,GetHealth:Sn,GetRelationships:hn,GetResourceDefinition:fn,GetResourceEvents:dn,GetResourceGroups:Be,GetSchemaDocument:fe,GetWatchState:Ge,HasPlugin:on,ImportConnectionProfile:de,IsResourceWatchRunning:Bn,ListAllConnections:Z,ListConnectionProfiles:ge,ListConnections:ee,ListPlugins:cn,LoadConnections:sn,Mutate:le,NativeQuery:ae,RefreshConnectionMetadata:ie,RemoveConnection:me,ResetConnectionProfile:$e,ResolveReference:pn,ResolveRelationships:gn,ResolveTarget:pe,RestartResourceWatch:mn,SaveConnectionProfile:Se,ScopeValues:Fe,StartConnection:te,StartConnectionWatch:Te,StopConnection:ne,StopConnectionWatch:Ce,StopResourceWatch:$n,StreamAction:be,SubscribeResource:ve,UnsubscribeResource:we},Symbol.toStringTag,{value:"Module"})),D="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";function Oe(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 _e(e,t,r,c){return n.ByName(`${D}.GetDependencyTree`,e,t,r,c)}function Ne(e,t,r,c,l){return n.ByName(`${D}.GetSubgraph`,e,t,r,c,l)}const bn=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:_e,GetRelated:Oe,GetRelationshipChain:In,GetSubgraph:Ne},Symbol.toStringTag,{value:"Module"}));class v{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=Pn;let c=typeof t=="string"?JSON.parse(t):t;return"snapshot"in c&&(c.snapshot=r(c.snapshot)),new v(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=Rn,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 Pn=$.createFrom,Rn=I.createFrom;var m=function e(...t){return m===e&&(m=Cn),m(...t)};const Tn=u.Category.createFrom,Cn=o.Map(o.Any,Tn);function Me(e,t){return n.ByID(1766083910,e,t).then(r=>Gn(r))}function Le(e){return n.ByID(3969198041,e).then(t=>An(t))}function je(e,t,r){return n.ByID(3964153809,e,t,r).then(c=>vn(c))}const Gn=v.createFrom,An=$.createFrom,vn=u.ValidationResult.createFrom,wn=Object.freeze(Object.defineProperty({__proto__:null,Commit:Me,GetSnapshot:Le,Validate:je},Symbol.toStringTag,{value:"Module"}));function Fn(e){return n.ByID(2106300110,e).then(t=>_n(t))}function Ee(e){return n.ByID(765209827,e).then(t=>Nn(t))}function On(e){return n.ByID(2355436169,e).then(t=>We(t))}const ke=u.ResourceComponent.createFrom,We=o.Array(ke),_n=o.Map(o.Any,We),Nn=o.Nullable(ke),Mn=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:Fn,GetResourceAreaComponent:Ee,GetResourceComponents:On},Symbol.toStringTag,{value:"Module"}));function He(e){return n.ByID(2776241946,e)}function Ln(e){return n.ByID(1474987050,e).then(t=>w(t))}function jn(e){return n.ByID(3156347865,e).then(t=>Un(t))}function En(e){return n.ByID(1444002509,e)}function kn(){return n.ByID(3104582886).then(e=>xn(e))}function Wn(){return n.ByID(2249742267).then(e=>Vn(e))}function Hn(e,t){return n.ByID(1212190993,e,t)}function Jn(e,t){return n.ByID(2177127885,e,t).then(r=>w(r))}const qn=u.LogSession.createFrom,w=o.Nullable(qn),zn=u.Handler$1.createFrom,Un=o.Array(zn),xn=o.Array(o.Any),Vn=o.Array(w);function Je(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession",e,t,f(r,[e,t]))}const Qn=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:He,CreateSession:Je,GetSession:Ln,GetSupportedResources:jn,HasPlugin:En,ListPlugins:kn,ListSessions:Wn,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 qe(){return n.ByID(3919346639).then(e=>xe(e))}function ze(e){return n.ByID(3953821778,e).then(t=>xe(t))}function Yn(e){return n.ByID(1815388456,e)}function Zn(){return n.ByID(2730149903).then(e=>tr(e))}function Ue(e){return n.ByID(3994236150,e)}const er=F.createFrom,xe=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,f(r,[e,t]))}function Ve(e,t){return n.ByName(`${O}.QueryAll`,e,f(t,[e]))}function Qe(e,t,r){return n.ByName(`${O}.Subscribe`,e,t,f(r,[e,t]))}const rr=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:qe,GetProvidersForResource:ze,HasPlugin:Yn,ListPlugins:Zn,Query:nr,QueryAll:Ve,Subscribe:Qe,Unsubscribe:Ue},Symbol.toStringTag,{value:"Module"}));function or(e,t){return n.ByID(3653639550,e,t)}function Ke(e,t){return n.ByID(851823419,e,t)}function ir(e){return n.ByID(2991415449,e).then(t=>cr(t))}function Xe(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:Ke,Keys:ir,Set:Xe},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=>Rr(c))}function pr(e){return n.ByID(3199298309,e)}function fr(){return n.ByID(2119827301).then(e=>Tr(e))}function hr(e){return n.ByID(2822783534,e).then(t=>Ze(t))}function gr(){return n.ByID(1563865534)}function Sr(){return n.ByID(914742443).then(e=>Gr(e))}function dr(){return n.ByID(3392737293).then(e=>Ar(e))}function $r(e,t,r){return n.ByID(1474486628,e,t,r)}function mr(e,t,r){return n.ByID(2366942716,e,t,r)}function Br(e){return n.ByID(4008581935,e)}function Ye(e){return n.ByID(520255202,e)}function Dr(e,t,r){return n.ByID(958877691,e,t,r)}function Ir(e,t,r){return n.ByID(1772958861,e,t,r)}function br(e,t,r){return n.ByID(728919203,e,t,r)}function Pr(e,t){return n.ByID(1547965995,e,t)}const Rr=u.DropResult.createFrom,Tr=u.SettingsState.createFrom,Ze=o.Map(o.Any,o.Any),Cr=u.Info.createFrom,Gr=o.Array(Cr),Ar=o.Map(o.Any,Ze),vr=Object.freeze(Object.defineProperty({__proto__:null,BeginDrag:ur,CancelDrag:ar,Close:lr,EndDrag:yr,Focus:pr,GetSettingsState:fr,GetState:hr,HideSettings:gr,List:Sr,ListStates:dr,MoveDrag:$r,MoveToPointer:mr,Open:Br,OpenSettings:Ye,ReportViewport:Dr,RespondDrop:Ir,SaveState:br,SetSettingsLocation:Pr},Symbol.toStringTag,{value:"Module"}));exports.Action=ye;exports.AttachStreamAction=Pe;exports.CancelStreamAction=Re;exports.Catalog=ce;exports.CheckConnection=X;exports.ClosePortForwardSession=H;exports.CloseSession=He;exports.Commit=Me;exports.CreateSession=W;exports.CreateSession$1=Je;exports.EnsureResourceWatch=Ae;exports.Enumerate=ue;exports.FindPortForwardSessions=J;exports.Get=Ke;exports.Get$1=se;exports.GetActions=Ie;exports.GetAllConnectionStates=he;exports.GetConnection=Y;exports.GetConnectionMetadata=oe;exports.GetDependencyTree=_e;exports.GetEditorSchemas=De;exports.GetPluginMeta=x;exports.GetProviders=qe;exports.GetProvidersForResource=ze;exports.GetRelated=Oe;exports.GetResourceAreaComponent=Ee;exports.GetResourceGroups=Be;exports.GetSchemaDocument=fe;exports.GetSnapshot=Le;exports.GetSubgraph=Ne;exports.GetWatchState=Ge;exports.ImportConnectionProfile=de;exports.ListAllConnections=Z;exports.ListAllPortForwardSessions=q;exports.ListConnectionProfiles=ge;exports.ListConnections=ee;exports.Mutate=le;exports.NativeQuery=ae;exports.OpenSettings=Ye;exports.QueryAll=Ve;exports.RefreshConnectionMetadata=ie;exports.RemoveConnection=me;exports.ResetConnectionProfile=$e;exports.ResolveTarget=pe;exports.RetryFailedPlugin=V;exports.SaveConnectionProfile=Se;exports.ScopeValues=Fe;exports.Set=Xe;exports.StartConnection=te;exports.StartConnectionWatch=Te;exports.StartResourcePortForwardingSession=U;exports.StopConnection=ne;exports.StopConnectionWatch=Ce;exports.StreamAction=be;exports.Subscribe=Qe;exports.SubscribeResource=ve;exports.Unsubscribe=Ue;exports.UnsubscribeResource=we;exports.Validate=je;exports.binding=wn;exports.client=Dn;exports.exec=mt;exports.graphClient=bn;exports.logs=Qn;exports.metric=rr;exports.networker=Tt;exports.service=vr;exports.servicewrapper=sr;exports.servicewrapper$1=rn;exports.servicewrapper$2=Mn;