@omniviewdev/runtime 0.1.8 → 0.1.9

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/models.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var L=Object.defineProperty;var C=(a,p,f)=>p in a?L(a,p,{enumerable:!0,configurable:!0,writable:!0,value:f}):a[p]=f;var e=(a,p,f)=>C(a,typeof p!="symbol"?p+"":p,f);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.config=void 0;(a=>{class p{constructor(s={}){e(this,"name");e(this,"email");e(this,"url");typeof s=="string"&&(s=JSON.parse(s)),this.name=s.name,this.email=s.email,this.url=s.url}static createFrom(s={}){return new p(s)}}a.PluginAuthor=p;class f{constructor(s={}){e(this,"name");e(this,"plugin");e(this,"area");e(this,"resources");e(this,"extension");typeof s=="string"&&(s=JSON.parse(s)),this.name=s.name,this.plugin=s.plugin,this.area=s.area,this.resources=s.resources,this.extension=s.extension}static createFrom(s={}){return new f(s)}}a.PluginResourceComponent=f;class l{constructor(s={}){e(this,"resource");typeof s=="string"&&(s=JSON.parse(s)),this.resource=this.convertValues(s.resource,f)}static createFrom(s={}){return new l(s)}convertValues(s,c,_=!1){if(!s)return s;if(s.slice&&s.map)return s.map(w=>this.convertValues(w,c));if(typeof s=="object"){if(_){for(const w of Object.keys(s))s[w]=new c(s[w]);return s}return new c(s)}return s}}a.PluginComponents=l;class o{constructor(s={}){e(this,"name");e(this,"email");typeof s=="string"&&(s=JSON.parse(s)),this.name=s.name,this.email=s.email}static createFrom(s={}){return new o(s)}}a.PluginMaintainer=o;class y{constructor(s={}){e(this,"primary");e(this,"secondary");e(this,"tertiary");typeof s=="string"&&(s=JSON.parse(s)),this.primary=s.primary,this.secondary=s.secondary,this.tertiary=s.tertiary}static createFrom(s={}){return new y(s)}}a.PluginThemeColors=y;class r{constructor(s={}){e(this,"colors");typeof s=="string"&&(s=JSON.parse(s)),this.colors=this.convertValues(s.colors,y)}static createFrom(s={}){return new r(s)}convertValues(s,c,_=!1){if(!s)return s;if(s.slice&&s.map)return s.map(w=>this.convertValues(w,c));if(typeof s=="object"){if(_){for(const w of Object.keys(s))s[w]=new c(s[w]);return s}return new c(s)}return s}}a.PluginTheme=r;class i{constructor(s={}){e(this,"id");e(this,"version");e(this,"name");e(this,"icon");e(this,"icon_url");e(this,"description");e(this,"repository");e(this,"website");e(this,"category");e(this,"license");e(this,"author");e(this,"maintainers");e(this,"tags");e(this,"dependencies");e(this,"capabilities");e(this,"theme");e(this,"components");e(this,"schema_version");e(this,"sdk_protocol_version");typeof s=="string"&&(s=JSON.parse(s)),this.id=s.id,this.version=s.version,this.name=s.name,this.icon=s.icon,this.icon_url=s.icon_url,this.description=s.description,this.repository=s.repository,this.website=s.website,this.category=s.category,this.license=s.license,this.author=this.convertValues(s.author,p),this.maintainers=this.convertValues(s.maintainers,o),this.tags=s.tags,this.dependencies=s.dependencies,this.capabilities=s.capabilities,this.theme=this.convertValues(s.theme,r),this.components=this.convertValues(s.components,l),this.schema_version=s.schema_version,this.sdk_protocol_version=s.sdk_protocol_version}static createFrom(s={}){return new i(s)}convertValues(s,c,_=!1){if(!s)return s;if(s.slice&&s.map)return s.map(w=>this.convertValues(w,c));if(typeof s=="object"){if(_){for(const w of Object.keys(s))s[w]=new c(s[w]);return s}return new c(s)}return s}}a.PluginMeta=i})(exports.config||(exports.config={}));exports.devserver=void 0;(a=>{class p{constructor(r={}){e(this,"pid");e(this,"protocol");e(this,"protocolVersion");e(this,"addr");e(this,"vitePort");e(this,"pluginId");e(this,"version");e(this,"startedAt");typeof r=="string"&&(r=JSON.parse(r)),this.pid=r.pid,this.protocol=r.protocol,this.protocolVersion=r.protocolVersion,this.addr=r.addr,this.vitePort=r.vitePort,this.pluginId=r.pluginId,this.version=r.version,this.startedAt=r.startedAt}static createFrom(r={}){return new p(r)}}a.DevInfoFile=p;class f{static createFrom(r={}){return new f(r)}constructor(r={}){typeof r=="string"&&(r=JSON.parse(r))}}a.DevServerManager=f;class l{constructor(r={}){e(this,"pluginID");e(this,"mode");e(this,"devPath");e(this,"vitePort");e(this,"viteURL");e(this,"viteStatus");e(this,"goStatus");e(this,"lastBuildDuration");e(this,"lastBuildTime");e(this,"lastError");e(this,"grpcConnected");typeof r=="string"&&(r=JSON.parse(r)),this.pluginID=r.pluginID,this.mode=r.mode,this.devPath=r.devPath,this.vitePort=r.vitePort,this.viteURL=r.viteURL,this.viteStatus=r.viteStatus,this.goStatus=r.goStatus,this.lastBuildDuration=r.lastBuildDuration,this.lastBuildTime=this.convertValues(r.lastBuildTime,exports.time.Time),this.lastError=r.lastError,this.grpcConnected=r.grpcConnected}static createFrom(r={}){return new l(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.DevServerState=l;class o{constructor(r={}){e(this,"timestamp");e(this,"source");e(this,"level");e(this,"message");e(this,"pluginID");typeof r=="string"&&(r=JSON.parse(r)),this.timestamp=this.convertValues(r.timestamp,exports.time.Time),this.source=r.source,this.level=r.level,this.message=r.message,this.pluginID=r.pluginID}static createFrom(r={}){return new o(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.LogEntry=o})(exports.devserver||(exports.devserver={}));exports.exec=void 0;(a=>{class p{constructor(i={}){e(this,"created_at");e(this,"labels");e(this,"params");e(this,"id");e(this,"command");e(this,"attached");typeof i=="string"&&(i=JSON.parse(i)),this.created_at=this.convertValues(i.created_at,exports.time.Time),this.labels=i.labels,this.params=i.params,this.id=i.id,this.command=i.command,this.attached=i.attached}static createFrom(i={}){return new p(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.Session=p;class f{constructor(i={}){e(this,"session");e(this,"buffer");typeof i=="string"&&(i=JSON.parse(i)),this.session=this.convertValues(i.session,p),this.buffer=i.buffer}static createFrom(i={}){return new f(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.AttachSessionResult=f;class l{constructor(i={}){e(this,"labels");e(this,"command");typeof i=="string"&&(i=JSON.parse(i)),this.labels=i.labels,this.command=i.command}static createFrom(i={}){return new l(i)}}a.CreateTerminalOptions=l;class o{constructor(i={}){e(this,"plugin");e(this,"resource");e(this,"target_builder");e(this,"default_command");typeof i=="string"&&(i=JSON.parse(i)),this.plugin=i.plugin,this.resource=i.resource,this.target_builder=this.convertValues(i.target_builder,exports.types.ActionTargetBuilder),this.default_command=i.default_command}static createFrom(i={}){return new o(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.Handler=o;class y{constructor(i={}){e(this,"params");e(this,"labels");e(this,"id");e(this,"resource_plugin");e(this,"resource_key");e(this,"resource_data");e(this,"command");e(this,"tty");typeof i=="string"&&(i=JSON.parse(i)),this.params=i.params,this.labels=i.labels,this.id=i.id,this.resource_plugin=i.resource_plugin,this.resource_key=i.resource_key,this.resource_data=i.resource_data,this.command=i.command,this.tty=i.tty}static createFrom(i={}){return new y(i)}}a.SessionOptions=y})(exports.exec||(exports.exec={}));exports.logs=void 0;(a=>{class p{constructor(i={}){e(this,"target");e(this,"follow");e(this,"include_previous");e(this,"include_timestamps");e(this,"tail_lines");e(this,"since_seconds");e(this,"since_time");e(this,"limit_bytes");e(this,"include_source_events");e(this,"params");typeof i=="string"&&(i=JSON.parse(i)),this.target=i.target,this.follow=i.follow,this.include_previous=i.include_previous,this.include_timestamps=i.include_timestamps,this.tail_lines=i.tail_lines,this.since_seconds=i.since_seconds,this.since_time=this.convertValues(i.since_time,exports.time.Time),this.limit_bytes=i.limit_bytes,this.include_source_events=i.include_source_events,this.params=i.params}static createFrom(i={}){return new p(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.LogSessionOptions=p;class f{constructor(i={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_data");e(this,"options");typeof i=="string"&&(i=JSON.parse(i)),this.resource_key=i.resource_key,this.resource_id=i.resource_id,this.resource_data=i.resource_data,this.options=this.convertValues(i.options,p)}static createFrom(i={}){return new f(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.CreateSessionOptions=f;class l{constructor(i={}){e(this,"plugin");e(this,"resource");e(this,"target_builder");typeof i=="string"&&(i=JSON.parse(i)),this.plugin=i.plugin,this.resource=i.resource,this.target_builder=this.convertValues(i.target_builder,exports.types.ActionTargetBuilder)}static createFrom(i={}){return new l(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.Handler=l;class o{constructor(i={}){e(this,"id");e(this,"labels");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.labels=i.labels}static createFrom(i={}){return new o(i)}}a.LogSource=o;class y{constructor(i={}){e(this,"id");e(this,"plugin_id");e(this,"connection_id");e(this,"resource_key");e(this,"resource_id");e(this,"options");e(this,"status");e(this,"active_sources");e(this,"created_at");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.plugin_id=i.plugin_id,this.connection_id=i.connection_id,this.resource_key=i.resource_key,this.resource_id=i.resource_id,this.options=this.convertValues(i.options,p),this.status=i.status,this.active_sources=this.convertValues(i.active_sources,o),this.created_at=this.convertValues(i.created_at,exports.time.Time)}static createFrom(i={}){return new y(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.LogSession=y})(exports.logs||(exports.logs={}));exports.main=void 0;(a=>{class p{constructor(o={}){e(this,"displayName");e(this,"pattern");typeof o=="string"&&(o=JSON.parse(o)),this.displayName=o.displayName,this.pattern=o.pattern}static createFrom(o={}){return new p(o)}}a.FileFilter=p;class f{constructor(o={}){e(this,"defaultDirectory");e(this,"defaultFilename");e(this,"title");e(this,"filters");e(this,"showHiddenFiles");e(this,"canCreateDirectories");e(this,"resolvesAliases");e(this,"treatPackagesAsDirectories");typeof o=="string"&&(o=JSON.parse(o)),this.defaultDirectory=o.defaultDirectory,this.defaultFilename=o.defaultFilename,this.title=o.title,this.filters=this.convertValues(o.filters,p),this.showHiddenFiles=o.showHiddenFiles,this.canCreateDirectories=o.canCreateDirectories,this.resolvesAliases=o.resolvesAliases,this.treatPackagesAsDirectories=o.treatPackagesAsDirectories}static createFrom(o={}){return new f(o)}convertValues(o,y,r=!1){if(!o)return o;if(o.slice&&o.map)return o.map(i=>this.convertValues(i,y));if(typeof o=="object"){if(r){for(const i of Object.keys(o))o[i]=new y(o[i]);return o}return new y(o)}return o}}a.FileDialogOptions=f})(exports.main||(exports.main={}));exports.metric=void 0;(a=>{class p{constructor(n={}){e(this,"metric_id");e(this,"min");e(this,"max");e(this,"avg");e(this,"sum");e(this,"p50");e(this,"p90");e(this,"p99");e(this,"count");e(this,"window");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.metric_id=n.metric_id,this.min=n.min,this.max=n.max,this.avg=n.avg,this.sum=n.sum,this.p50=n.p50,this.p90=n.p90,this.p99=n.p99,this.count=n.count,this.window=n.window,this.labels=n.labels}static createFrom(n={}){return new p(n)}}a.AggregateValue=p;class f{constructor(n={}){e(this,"min");e(this,"max");e(this,"color");typeof n=="string"&&(n=JSON.parse(n)),this.min=n.min,this.max=n.max,this.color=n.color}static createFrom(n={}){return new f(n)}}a.ColorRange=f;class l{constructor(n={}){e(this,"metric_id");e(this,"value");e(this,"timestamp");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.metric_id=n.metric_id,this.value=n.value,this.timestamp=this.convertValues(n.timestamp,exports.time.Time),this.labels=n.labels}static createFrom(n={}){return new l(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.CurrentValue=l;class o{constructor(n={}){e(this,"timestamp");e(this,"value");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.timestamp=this.convertValues(n.timestamp,exports.time.Time),this.value=n.value,this.labels=n.labels}static createFrom(n={}){return new o(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.DataPoint=o;class y{constructor(n={}){e(this,"id");e(this,"name");e(this,"unit");e(this,"icon");e(this,"color_ranges");e(this,"format_string");e(this,"supported_shapes");e(this,"chart_group");typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.name=n.name,this.unit=n.unit,this.icon=n.icon,this.color_ranges=this.convertValues(n.color_ranges,f),this.format_string=n.format_string,this.supported_shapes=n.supported_shapes,this.chart_group=n.chart_group}static createFrom(n={}){return new y(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.MetricDescriptor=y;class r{constructor(n={}){e(this,"resource");e(this,"metrics");typeof n=="string"&&(n=JSON.parse(n)),this.resource=n.resource,this.metrics=this.convertValues(n.metrics,y)}static createFrom(n={}){return new r(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.Handler=r;class i{constructor(n={}){e(this,"plugin_id");e(this,"provider_id");e(this,"name");e(this,"icon");e(this,"description");e(this,"handlers");typeof n=="string"&&(n=JSON.parse(n)),this.plugin_id=n.plugin_id,this.provider_id=n.provider_id,this.name=n.name,this.icon=n.icon,this.description=n.description,this.handlers=this.convertValues(n.handlers,r)}static createFrom(n={}){return new i(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.MetricProviderSummary=i;class m{constructor(n={}){e(this,"metric_id");e(this,"data_points");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.metric_id=n.metric_id,this.data_points=this.convertValues(n.data_points,o),this.labels=n.labels}static createFrom(n={}){return new m(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.TimeSeries=m;class s{constructor(n={}){e(this,"time_series");e(this,"current_value");e(this,"aggregate_value");typeof n=="string"&&(n=JSON.parse(n)),this.time_series=this.convertValues(n.time_series,m),this.current_value=this.convertValues(n.current_value,l),this.aggregate_value=this.convertValues(n.aggregate_value,p)}static createFrom(n={}){return new s(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.MetricResult=s;class c{constructor(n={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_namespace");e(this,"resource_data");e(this,"metric_ids");e(this,"shape");e(this,"start_time");e(this,"end_time");e(this,"step");e(this,"params");typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_namespace=n.resource_namespace,this.resource_data=n.resource_data,this.metric_ids=n.metric_ids,this.shape=n.shape,this.start_time=this.convertValues(n.start_time,exports.time.Time),this.end_time=this.convertValues(n.end_time,exports.time.Time),this.step=n.step,this.params=n.params}static createFrom(n={}){return new c(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.QueryRequest=c;class _{constructor(n={}){e(this,"success");e(this,"results");e(this,"error");typeof n=="string"&&(n=JSON.parse(n)),this.success=n.success,this.results=this.convertValues(n.results,s),this.error=n.error}static createFrom(n={}){return new _(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.QueryResponse=_;class w{constructor(n={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_namespace");e(this,"resource_data");e(this,"metric_ids");e(this,"interval");typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_namespace=n.resource_namespace,this.resource_data=n.resource_data,this.metric_ids=n.metric_ids,this.interval=n.interval}static createFrom(n={}){return new w(n)}}a.SubscribeRequest=w})(exports.metric||(exports.metric={}));exports.networker=void 0;(a=>{class p{constructor(r={}){e(this,"resource_id");e(this,"connection_id");typeof r=="string"&&(r=JSON.parse(r)),this.resource_id=r.resource_id,this.connection_id=r.connection_id}static createFrom(r={}){return new p(r)}}a.FindPortForwardSessionRequest=p;class f{constructor(r={}){e(this,"algorithm");e(this,"key");e(this,"enabled");typeof r=="string"&&(r=JSON.parse(r)),this.algorithm=r.algorithm,this.key=r.key,this.enabled=r.enabled}static createFrom(r={}){return new f(r)}}a.PortForwardSessionEncryption=f;class l{constructor(r={}){e(this,"created_at");e(this,"updated_at");e(this,"connection");e(this,"labels");e(this,"id");e(this,"protocol");e(this,"state");e(this,"connection_type");e(this,"encryption");e(this,"local_port");e(this,"remote_port");typeof r=="string"&&(r=JSON.parse(r)),this.created_at=this.convertValues(r.created_at,exports.time.Time),this.updated_at=this.convertValues(r.updated_at,exports.time.Time),this.connection=r.connection,this.labels=r.labels,this.id=r.id,this.protocol=r.protocol,this.state=r.state,this.connection_type=r.connection_type,this.encryption=this.convertValues(r.encryption,f),this.local_port=r.local_port,this.remote_port=r.remote_port}static createFrom(r={}){return new l(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.PortForwardSession=l;class o{constructor(r={}){e(this,"connection");e(this,"labels");e(this,"params");e(this,"protocol");e(this,"connection_type");e(this,"encryption");e(this,"local_port");e(this,"remote_port");typeof r=="string"&&(r=JSON.parse(r)),this.connection=r.connection,this.labels=r.labels,this.params=r.params,this.protocol=r.protocol,this.connection_type=r.connection_type,this.encryption=this.convertValues(r.encryption,f),this.local_port=r.local_port,this.remote_port=r.remote_port}static createFrom(r={}){return new o(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.PortForwardSessionOptions=o})(exports.networker||(exports.networker={}));exports.plugin=void 0;(a=>{class p{constructor(l={}){e(this,"DevMode");e(this,"DevModePath");e(this,"ExistingState");typeof l=="string"&&(l=JSON.parse(l)),this.DevMode=l.DevMode,this.DevModePath=l.DevModePath,this.ExistingState=this.convertValues(l.ExistingState,exports.types.PluginStateRecord)}static createFrom(l={}){return new p(l)}convertValues(l,o,y=!1){if(!l)return l;if(l.slice&&l.map)return l.map(r=>this.convertValues(r,o));if(typeof l=="object"){if(y){for(const r of Object.keys(l))l[r]=new o(l[r]);return l}return new o(l)}return l}}a.LoadPluginOptions=p})(exports.plugin||(exports.plugin={}));exports.registry=void 0;(a=>{class p{constructor(i={}){e(this,"id");e(this,"name");e(this,"description");e(this,"icon_url");e(this,"category");e(this,"tags");e(this,"license");e(this,"official");e(this,"featured");e(this,"download_count");e(this,"average_rating");e(this,"review_count");e(this,"repository");e(this,"url");e(this,"publisher_name");e(this,"installed");e(this,"installed_version");e(this,"latest_version");e(this,"update_available");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.name=i.name,this.description=i.description,this.icon_url=i.icon_url,this.category=i.category,this.tags=i.tags,this.license=i.license,this.official=i.official,this.featured=i.featured,this.download_count=i.download_count,this.average_rating=i.average_rating,this.review_count=i.review_count,this.repository=i.repository,this.url=i.url,this.publisher_name=i.publisher_name,this.installed=i.installed,this.installed_version=i.installed_version,this.latest_version=i.latest_version,this.update_available=i.update_available}static createFrom(i={}){return new p(i)}}a.AvailablePlugin=p;class f{constructor(i={}){e(this,"date");e(this,"count");typeof i=="string"&&(i=JSON.parse(i)),this.date=i.date,this.count=i.count}static createFrom(i={}){return new f(i)}}a.DailyStat=f;class l{constructor(i={}){e(this,"total");e(this,"last_month");e(this,"last_week");e(this,"daily_stats");typeof i=="string"&&(i=JSON.parse(i)),this.total=i.total,this.last_month=i.last_month,this.last_week=i.last_week,this.daily_stats=this.convertValues(i.daily_stats,f)}static createFrom(i={}){return new l(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.DownloadStats=l;class o{constructor(i={}){e(this,"id");e(this,"user_id");e(this,"rating");e(this,"title");e(this,"body");e(this,"created_at");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.user_id=i.user_id,this.rating=i.rating,this.title=i.title,this.body=i.body,this.created_at=i.created_at}static createFrom(i={}){return new o(i)}}a.Review=o;class y{constructor(i={}){e(this,"version");e(this,"description");e(this,"changelog");e(this,"min_ide_version");e(this,"max_ide_version");e(this,"capabilities");e(this,"created_at");typeof i=="string"&&(i=JSON.parse(i)),this.version=i.version,this.description=i.description,this.changelog=i.changelog,this.min_ide_version=i.min_ide_version,this.max_ide_version=i.max_ide_version,this.capabilities=i.capabilities,this.created_at=i.created_at}static createFrom(i={}){return new y(i)}}a.VersionInfo=y})(exports.registry||(exports.registry={}));exports.settings=void 0;(a=>{(y=>{y.TEXT="text",y.INTEGER="integer",y.FLOAT="float",y.TOGGLE="toggle",y.COLOR="color",y.DATETIME="datetime",y.PASSWORD="password"})(a.SettingType||(a.SettingType={}));class p{constructor(r={}){e(this,"enabled");e(this,"allowFolders");e(this,"extensions");e(this,"multiple");e(this,"relative");e(this,"defaultPath");typeof r=="string"&&(r=JSON.parse(r)),this.enabled=r.enabled,this.allowFolders=r.allowFolders,this.extensions=r.extensions,this.multiple=r.multiple,this.relative=r.relative,this.defaultPath=r.defaultPath}static createFrom(r={}){return new p(r)}}a.SettingFileSelection=p;class f{constructor(r={}){e(this,"label");e(this,"description");e(this,"value");typeof r=="string"&&(r=JSON.parse(r)),this.label=r.label,this.description=r.description,this.value=r.value}static createFrom(r={}){return new f(r)}}a.SettingOption=f;class l{constructor(r={}){e(this,"id");e(this,"label");e(this,"description");e(this,"type");e(this,"value");e(this,"default");e(this,"options");e(this,"fileSelection");e(this,"sensitive");typeof r=="string"&&(r=JSON.parse(r)),this.id=r.id,this.label=r.label,this.description=r.description,this.type=r.type,this.value=r.value,this.default=r.default,this.options=this.convertValues(r.options,f),this.fileSelection=this.convertValues(r.fileSelection,p),this.sensitive=r.sensitive}static createFrom(r={}){return new l(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.Setting=l;class o{constructor(r={}){e(this,"settings");e(this,"id");e(this,"label");e(this,"description");e(this,"icon");typeof r=="string"&&(r=JSON.parse(r)),this.settings=this.convertValues(r.settings,l,!0),this.id=r.id,this.label=r.label,this.description=r.description,this.icon=r.icon}static createFrom(r={}){return new o(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.Category=o})(exports.settings||(exports.settings={}));exports.time=void 0;(a=>{class p{static createFrom(l={}){return new p(l)}constructor(l={}){typeof l=="string"&&(l=JSON.parse(l))}}a.Time=p})(exports.time||(exports.time={}));exports.trivy=void 0;(a=>{(l=>{l.VULN="vuln",l.MISCONFIG="misconfig",l.SECRET="secret",l.LICENSE="license"})(a.Scanner||(a.Scanner={})),(l=>{l.CONFIG="config",l.FILESYSTEM="fs",l.IMAGE="image",l.KUBERNETES="kubernetes",l.REPOSITORY="repository",l.ROOTFS="rootfs",l.SBOM="sbom"})(a.Command||(a.Command={}));class p{constructor(o={}){e(this,"filePatterns");e(this,"skipDirs");e(this,"skipFiles");e(this,"scanners");typeof o=="string"&&(o=JSON.parse(o)),this.filePatterns=o.filePatterns,this.skipDirs=o.skipDirs,this.skipFiles=o.skipFiles,this.scanners=o.scanners}static createFrom(o={}){return new p(o)}}a.ScanOptions=p;class f{constructor(o={}){e(this,"timestamp");e(this,"result");e(this,"id");e(this,"command");typeof o=="string"&&(o=JSON.parse(o)),this.timestamp=this.convertValues(o.timestamp,exports.time.Time),this.result=o.result,this.id=o.id,this.command=o.command}static createFrom(o={}){return new f(o)}convertValues(o,y,r=!1){if(!o)return o;if(o.slice&&o.map)return o.map(i=>this.convertValues(i,y));if(typeof o=="object"){if(r){for(const i of Object.keys(o))o[i]=new y(o[i]);return o}return new y(o)}return o}}a.ScanResult=f})(exports.trivy||(exports.trivy={}));exports.types=void 0;(a=>{(O=>{O.UNKNOWN="UNKNOWN",O.CONNECTED="CONNECTED",O.DISCONNECTED="DISCONNECTED",O.PENDING="PENDING",O.FAILED="FAILED",O.ERROR="ERROR",O.UNAUTHORIZED="UNAUTHORIZED",O.FORBIDDEN="FORBIDDEN",O.BAD_REQUEST="BAD_REQUEST",O.NOT_FOUND="NOT_FOUND",O.TIMEOUT="TIMEOUT",O.UNAVAILABLE="UNAVAILABLE",O.REQUEST_ENTITY_TOO_LARGE="REQUEST_ENTITY_TOO_LARGE"})(a.ConnectionStatusCode||(a.ConnectionStatusCode={}));class p{constructor(t={}){e(this,"id");e(this,"label");e(this,"description");e(this,"icon");e(this,"scope");e(this,"streaming");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.label=t.label,this.description=t.description,this.icon=t.icon,this.scope=t.scope,this.streaming=t.streaming}static createFrom(t={}){return new p(t)}}a.ActionDescriptor=p;class f{constructor(t={}){e(this,"id");e(this,"namespace");e(this,"params");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.namespace=t.namespace,this.params=t.params}static createFrom(t={}){return new f(t)}}a.ActionInput=f;class l{constructor(t={}){e(this,"success");e(this,"data");e(this,"message");typeof t=="string"&&(t=JSON.parse(t)),this.success=t.success,this.data=t.data,this.message=t.message}static createFrom(t={}){return new l(t)}}a.ActionResult=l;class o{constructor(t={}){e(this,"selectors");e(this,"label_selector");e(this,"label");e(this,"paths");typeof t=="string"&&(t=JSON.parse(t)),this.selectors=t.selectors,this.label_selector=t.label_selector,this.label=t.label,this.paths=t.paths}static createFrom(t={}){return new o(t)}}a.ActionTargetBuilder=o;class y{constructor(t={}){e(this,"idAccessor");e(this,"namespaceAccessor");e(this,"namespaced");e(this,"resourceKey");e(this,"keyAccessor");e(this,"keyMap");e(this,"detailExtractors");e(this,"displayId");typeof t=="string"&&(t=JSON.parse(t)),this.idAccessor=t.idAccessor,this.namespaceAccessor=t.namespaceAccessor,this.namespaced=t.namespaced,this.resourceKey=t.resourceKey,this.keyAccessor=t.keyAccessor,this.keyMap=t.keyMap,this.detailExtractors=t.detailExtractors,this.displayId=t.displayId}static createFrom(t={}){return new y(t)}}a.ResourceLink=y;class r{constructor(t={}){e(this,"id");e(this,"header");e(this,"accessor");e(this,"accessorPriority");e(this,"colorMap");e(this,"color");e(this,"align");e(this,"hidden");e(this,"width");e(this,"formatter");e(this,"component");e(this,"componentParams");e(this,"resourceLink");e(this,"valueMap");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.header=t.header,this.accessor=t.accessor,this.accessorPriority=t.accessorPriority,this.colorMap=t.colorMap,this.color=t.color,this.align=t.align,this.hidden=t.hidden,this.width=t.width,this.formatter=t.formatter,this.component=t.component,this.componentParams=t.componentParams,this.resourceLink=this.convertValues(t.resourceLink,y),this.valueMap=t.valueMap}static createFrom(t={}){return new r(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ColumnDef=r;class i{constructor(t={}){e(this,"last_refresh");e(this,"data");e(this,"labels");e(this,"id");e(this,"uid");e(this,"name");e(this,"description");e(this,"avatar");e(this,"expiry_time");e(this,"Client");typeof t=="string"&&(t=JSON.parse(t)),this.last_refresh=this.convertValues(t.last_refresh,exports.time.Time),this.data=t.data,this.labels=t.labels,this.id=t.id,this.uid=t.uid,this.name=t.name,this.description=t.description,this.avatar=t.avatar,this.expiry_time=t.expiry_time,this.Client=t.Client}static createFrom(t={}){return new i(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.Connection=i;class m{constructor(t={}){e(this,"connection");e(this,"status");e(this,"error");e(this,"details");typeof t=="string"&&(t=JSON.parse(t)),this.connection=this.convertValues(t.connection,i),this.status=t.status,this.error=t.error,this.details=t.details}static createFrom(t={}){return new m(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ConnectionStatus=m;class s{constructor(t={}){e(this,"params");e(this,"input");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.input=t.input,this.namespace=t.namespace}static createFrom(t={}){return new s(t)}}a.CreateInput=s;class c{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new c(t)}}a.CreateResult=c;class _{constructor(t={}){e(this,"input");e(this,"params");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.input=t.input,this.params=t.params,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new _(t)}}a.DeleteInput=_;class w{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new w(t)}}a.DeleteResult=w;class S{constructor(t={}){e(this,"resourceKey");e(this,"fileMatch");e(this,"uri");e(this,"url");e(this,"content");e(this,"language");typeof t=="string"&&(t=JSON.parse(t)),this.resourceKey=t.resourceKey,this.fileMatch=t.fileMatch,this.uri=t.uri,this.url=t.url,this.content=t.content,this.language=t.language}static createFrom(t={}){return new S(t)}}a.EditorSchema=S;class n{constructor(t={}){e(this,"page");e(this,"pageSize");typeof t=="string"&&(t=JSON.parse(t)),this.page=t.page,this.pageSize=t.pageSize}static createFrom(t={}){return new n(t)}}a.PaginationParams=n;class g{constructor(t={}){e(this,"by");e(this,"direction");typeof t=="string"&&(t=JSON.parse(t)),this.by=t.by,this.direction=t.direction}static createFrom(t={}){return new g(t)}}a.OrderParams=g;class b{constructor(t={}){e(this,"params");e(this,"conditions");e(this,"namespaces");e(this,"order");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.conditions=t.conditions,this.namespaces=t.namespaces,this.order=this.convertValues(t.order,g),this.pagination=this.convertValues(t.pagination,n)}static createFrom(t={}){return new b(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.FindInput=b;class d{constructor(t={}){e(this,"page");e(this,"pageSize");e(this,"total");e(this,"pages");typeof t=="string"&&(t=JSON.parse(t)),this.page=t.page,this.pageSize=t.pageSize,this.total=t.total,this.pages=t.pages}static createFrom(t={}){return new d(t)}}a.PaginationResult=d;class k{constructor(t={}){e(this,"result");e(this,"success");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success,this.pagination=this.convertValues(t.pagination,d)}static createFrom(t={}){return new k(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.FindResult=k;class N{constructor(t={}){e(this,"params");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new N(t)}}a.GetInput=N;class F{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new F(t)}}a.GetResult=F;class J{constructor(t={}){e(this,"connection");e(this,"resources");e(this,"resourceCounts");e(this,"totalResources");e(this,"syncedCount");e(this,"errorCount");typeof t=="string"&&(t=JSON.parse(t)),this.connection=t.connection,this.resources=t.resources,this.resourceCounts=t.resourceCounts,this.totalResources=t.totalResources,this.syncedCount=t.syncedCount,this.errorCount=t.errorCount}static createFrom(t={}){return new J(t)}}a.InformerConnectionSummary=J;class V{constructor(t={}){e(this,"id");e(this,"title");e(this,"icon");e(this,"description");e(this,"items");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.title=t.title,this.icon=t.icon,this.description=t.description,this.items=this.convertValues(t.items,V)}static createFrom(t={}){return new V(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.LayoutItem=V;class j{constructor(t={}){e(this,"params");e(this,"namespaces");e(this,"order");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.namespaces=t.namespaces,this.order=this.convertValues(t.order,g),this.pagination=this.convertValues(t.pagination,n)}static createFrom(t={}){return new j(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ListInput=j;class E{constructor(t={}){e(this,"result");e(this,"success");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success,this.pagination=this.convertValues(t.pagination,d)}static createFrom(t={}){return new E(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ListResult=E;class D{constructor(t={}){e(this,"id");e(this,"metadata");e(this,"phase");e(this,"enabled");e(this,"devMode");e(this,"devPath");e(this,"capabilities");e(this,"lastError");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.metadata=this.convertValues(t.metadata,exports.config.PluginMeta),this.phase=t.phase,this.enabled=t.enabled,this.devMode=t.devMode,this.devPath=t.devPath,this.capabilities=t.capabilities,this.lastError=t.lastError}static createFrom(t={}){return new D(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.PluginInfo=D;class P{constructor(t={}){e(this,"id");e(this,"phase");e(this,"metadata");e(this,"enabled");e(this,"devMode");e(this,"devPath");e(this,"lastError");e(this,"errorCount");e(this,"installedAt");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.phase=t.phase,this.metadata=this.convertValues(t.metadata,exports.config.PluginMeta),this.enabled=t.enabled,this.devMode=t.devMode,this.devPath=t.devPath,this.lastError=t.lastError,this.errorCount=t.errorCount,this.installedAt=this.convertValues(t.installedAt,exports.time.Time)}static createFrom(t={}){return new P(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.PluginStateRecord=P;class R{constructor(t={}){e(this,"id_accessor");e(this,"namespace_accessor");e(this,"memoizer_accessor");e(this,"columnDefs");e(this,"supportedOperations");typeof t=="string"&&(t=JSON.parse(t)),this.id_accessor=t.id_accessor,this.namespace_accessor=t.namespace_accessor,this.memoizer_accessor=t.memoizer_accessor,this.columnDefs=this.convertValues(t.columnDefs,r),this.supportedOperations=t.supportedOperations}static createFrom(t={}){return new R(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ResourceDefinition=R;class T{constructor(t={}){e(this,"id");e(this,"name");e(this,"description");e(this,"icon");e(this,"resources");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.name=t.name,this.description=t.description,this.icon=t.icon,this.resources=this.convertValues(t.resources,Array,!0)}static createFrom(t={}){return new T(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ResourceGroup=T;class I{constructor(t={}){e(this,"group");e(this,"version");e(this,"kind");e(this,"label");e(this,"icon");e(this,"description");e(this,"category");typeof t=="string"&&(t=JSON.parse(t)),this.group=t.group,this.version=t.version,this.kind=t.kind,this.label=t.label,this.icon=t.icon,this.description=t.description,this.category=t.category}static createFrom(t={}){return new I(t)}}a.ResourceMeta=I;class A{constructor(t={}){e(this,"input");e(this,"params");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.input=t.input,this.params=t.params,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new A(t)}}a.UpdateInput=A;class M{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new M(t)}}a.UpdateResult=M})(exports.types||(exports.types={}));exports.ui=void 0;(a=>{class p{constructor(r={}){e(this,"plugin");typeof r=="string"&&(r=JSON.parse(r)),this.plugin=r.plugin}static createFrom(r={}){return new p(r)}}a.GetPluginComponentsInput=p;class f{constructor(r={}){e(this,"plugin");e(this,"resource");e(this,"area");typeof r=="string"&&(r=JSON.parse(r)),this.plugin=r.plugin,this.resource=r.resource,this.area=r.area}static createFrom(r={}){return new f(r)}}a.GetResourceAreaComponentInput=f;class l{constructor(r={}){e(this,"plugin");e(this,"resource");typeof r=="string"&&(r=JSON.parse(r)),this.plugin=r.plugin,this.resource=r.resource}static createFrom(r={}){return new l(r)}}a.GetResourceComponentsInput=l;class o{constructor(r={}){e(this,"owner");e(this,"name");e(this,"plugin");e(this,"resource");e(this,"area");e(this,"extension");typeof r=="string"&&(r=JSON.parse(r)),this.owner=r.owner,this.name=r.name,this.plugin=r.plugin,this.resource=r.resource,this.area=r.area,this.extension=r.extension}static createFrom(r={}){return new o(r)}}a.ResourceComponent=o})(exports.ui||(exports.ui={}));exports.utils=void 0;(a=>{class p{constructor(l={}){e(this,"filename");e(this,"contents");typeof l=="string"&&(l=JSON.parse(l)),this.filename=l.filename,this.contents=l.contents}static createFrom(l={}){return new p(l)}}a.GetLanguageInput=p})(exports.utils||(exports.utils={}));
1
+ "use strict";var L=Object.defineProperty;var C=(a,p,f)=>p in a?L(a,p,{enumerable:!0,configurable:!0,writable:!0,value:f}):a[p]=f;var e=(a,p,f)=>C(a,typeof p!="symbol"?p+"":p,f);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.config=void 0;(a=>{class p{constructor(s={}){e(this,"name");e(this,"email");e(this,"url");typeof s=="string"&&(s=JSON.parse(s)),this.name=s.name,this.email=s.email,this.url=s.url}static createFrom(s={}){return new p(s)}}a.PluginAuthor=p;class f{constructor(s={}){e(this,"name");e(this,"plugin");e(this,"area");e(this,"resources");e(this,"extension");typeof s=="string"&&(s=JSON.parse(s)),this.name=s.name,this.plugin=s.plugin,this.area=s.area,this.resources=s.resources,this.extension=s.extension}static createFrom(s={}){return new f(s)}}a.PluginResourceComponent=f;class l{constructor(s={}){e(this,"resource");typeof s=="string"&&(s=JSON.parse(s)),this.resource=this.convertValues(s.resource,f)}static createFrom(s={}){return new l(s)}convertValues(s,c,_=!1){if(!s)return s;if(s.slice&&s.map)return s.map(w=>this.convertValues(w,c));if(typeof s=="object"){if(_){for(const w of Object.keys(s))s[w]=new c(s[w]);return s}return new c(s)}return s}}a.PluginComponents=l;class o{constructor(s={}){e(this,"name");e(this,"email");typeof s=="string"&&(s=JSON.parse(s)),this.name=s.name,this.email=s.email}static createFrom(s={}){return new o(s)}}a.PluginMaintainer=o;class y{constructor(s={}){e(this,"primary");e(this,"secondary");e(this,"tertiary");typeof s=="string"&&(s=JSON.parse(s)),this.primary=s.primary,this.secondary=s.secondary,this.tertiary=s.tertiary}static createFrom(s={}){return new y(s)}}a.PluginThemeColors=y;class r{constructor(s={}){e(this,"colors");typeof s=="string"&&(s=JSON.parse(s)),this.colors=this.convertValues(s.colors,y)}static createFrom(s={}){return new r(s)}convertValues(s,c,_=!1){if(!s)return s;if(s.slice&&s.map)return s.map(w=>this.convertValues(w,c));if(typeof s=="object"){if(_){for(const w of Object.keys(s))s[w]=new c(s[w]);return s}return new c(s)}return s}}a.PluginTheme=r;class i{constructor(s={}){e(this,"id");e(this,"version");e(this,"name");e(this,"icon");e(this,"icon_url");e(this,"description");e(this,"repository");e(this,"website");e(this,"category");e(this,"license");e(this,"author");e(this,"maintainers");e(this,"tags");e(this,"dependencies");e(this,"capabilities");e(this,"theme");e(this,"components");e(this,"schema_version");e(this,"sdk_protocol_version");typeof s=="string"&&(s=JSON.parse(s)),this.id=s.id,this.version=s.version,this.name=s.name,this.icon=s.icon,this.icon_url=s.icon_url,this.description=s.description,this.repository=s.repository,this.website=s.website,this.category=s.category,this.license=s.license,this.author=this.convertValues(s.author,p),this.maintainers=this.convertValues(s.maintainers,o),this.tags=s.tags,this.dependencies=s.dependencies,this.capabilities=s.capabilities,this.theme=this.convertValues(s.theme,r),this.components=this.convertValues(s.components,l),this.schema_version=s.schema_version,this.sdk_protocol_version=s.sdk_protocol_version}static createFrom(s={}){return new i(s)}convertValues(s,c,_=!1){if(!s)return s;if(s.slice&&s.map)return s.map(w=>this.convertValues(w,c));if(typeof s=="object"){if(_){for(const w of Object.keys(s))s[w]=new c(s[w]);return s}return new c(s)}return s}}a.PluginMeta=i})(exports.config||(exports.config={}));exports.devserver=void 0;(a=>{class p{constructor(r={}){e(this,"pid");e(this,"protocol");e(this,"protocolVersion");e(this,"addr");e(this,"vitePort");e(this,"pluginId");e(this,"version");e(this,"startedAt");typeof r=="string"&&(r=JSON.parse(r)),this.pid=r.pid,this.protocol=r.protocol,this.protocolVersion=r.protocolVersion,this.addr=r.addr,this.vitePort=r.vitePort,this.pluginId=r.pluginId,this.version=r.version,this.startedAt=r.startedAt}static createFrom(r={}){return new p(r)}}a.DevInfoFile=p;class f{static createFrom(r={}){return new f(r)}constructor(r={}){typeof r=="string"&&(r=JSON.parse(r))}}a.DevServerManager=f;class l{constructor(r={}){e(this,"pluginID");e(this,"mode");e(this,"devPath");e(this,"vitePort");e(this,"viteURL");e(this,"viteStatus");e(this,"goStatus");e(this,"lastBuildDuration");e(this,"lastBuildTime");e(this,"lastError");e(this,"grpcConnected");typeof r=="string"&&(r=JSON.parse(r)),this.pluginID=r.pluginID,this.mode=r.mode,this.devPath=r.devPath,this.vitePort=r.vitePort,this.viteURL=r.viteURL,this.viteStatus=r.viteStatus,this.goStatus=r.goStatus,this.lastBuildDuration=r.lastBuildDuration,this.lastBuildTime=this.convertValues(r.lastBuildTime,exports.time.Time),this.lastError=r.lastError,this.grpcConnected=r.grpcConnected}static createFrom(r={}){return new l(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.DevServerState=l;class o{constructor(r={}){e(this,"timestamp");e(this,"source");e(this,"level");e(this,"message");e(this,"pluginID");typeof r=="string"&&(r=JSON.parse(r)),this.timestamp=this.convertValues(r.timestamp,exports.time.Time),this.source=r.source,this.level=r.level,this.message=r.message,this.pluginID=r.pluginID}static createFrom(r={}){return new o(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.LogEntry=o})(exports.devserver||(exports.devserver={}));exports.exec=void 0;(a=>{class p{constructor(i={}){e(this,"created_at");e(this,"labels");e(this,"params");e(this,"id");e(this,"command");e(this,"attached");typeof i=="string"&&(i=JSON.parse(i)),this.created_at=this.convertValues(i.created_at,exports.time.Time),this.labels=i.labels,this.params=i.params,this.id=i.id,this.command=i.command,this.attached=i.attached}static createFrom(i={}){return new p(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.Session=p;class f{constructor(i={}){e(this,"session");e(this,"buffer");typeof i=="string"&&(i=JSON.parse(i)),this.session=this.convertValues(i.session,p),this.buffer=i.buffer}static createFrom(i={}){return new f(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.AttachSessionResult=f;class l{constructor(i={}){e(this,"labels");e(this,"command");typeof i=="string"&&(i=JSON.parse(i)),this.labels=i.labels,this.command=i.command}static createFrom(i={}){return new l(i)}}a.CreateTerminalOptions=l;class o{constructor(i={}){e(this,"plugin");e(this,"resource");e(this,"target_builder");e(this,"default_command");typeof i=="string"&&(i=JSON.parse(i)),this.plugin=i.plugin,this.resource=i.resource,this.target_builder=this.convertValues(i.target_builder,exports.types.ActionTargetBuilder),this.default_command=i.default_command}static createFrom(i={}){return new o(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.Handler=o;class y{constructor(i={}){e(this,"params");e(this,"labels");e(this,"id");e(this,"resource_plugin");e(this,"resource_key");e(this,"resource_data");e(this,"command");e(this,"tty");typeof i=="string"&&(i=JSON.parse(i)),this.params=i.params,this.labels=i.labels,this.id=i.id,this.resource_plugin=i.resource_plugin,this.resource_key=i.resource_key,this.resource_data=i.resource_data,this.command=i.command,this.tty=i.tty}static createFrom(i={}){return new y(i)}}a.SessionOptions=y})(exports.exec||(exports.exec={}));exports.logs=void 0;(a=>{class p{constructor(i={}){e(this,"target");e(this,"follow");e(this,"include_previous");e(this,"include_timestamps");e(this,"tail_lines");e(this,"since_seconds");e(this,"since_time");e(this,"limit_bytes");e(this,"include_source_events");e(this,"params");typeof i=="string"&&(i=JSON.parse(i)),this.target=i.target,this.follow=i.follow,this.include_previous=i.include_previous,this.include_timestamps=i.include_timestamps,this.tail_lines=i.tail_lines,this.since_seconds=i.since_seconds,this.since_time=this.convertValues(i.since_time,exports.time.Time),this.limit_bytes=i.limit_bytes,this.include_source_events=i.include_source_events,this.params=i.params}static createFrom(i={}){return new p(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.LogSessionOptions=p;class f{constructor(i={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_data");e(this,"options");typeof i=="string"&&(i=JSON.parse(i)),this.resource_key=i.resource_key,this.resource_id=i.resource_id,this.resource_data=i.resource_data,this.options=this.convertValues(i.options,p)}static createFrom(i={}){return new f(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.CreateSessionOptions=f;class l{constructor(i={}){e(this,"plugin");e(this,"resource");e(this,"target_builder");typeof i=="string"&&(i=JSON.parse(i)),this.plugin=i.plugin,this.resource=i.resource,this.target_builder=this.convertValues(i.target_builder,exports.types.ActionTargetBuilder)}static createFrom(i={}){return new l(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.Handler=l;class o{constructor(i={}){e(this,"id");e(this,"labels");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.labels=i.labels}static createFrom(i={}){return new o(i)}}a.LogSource=o;class y{constructor(i={}){e(this,"id");e(this,"plugin_id");e(this,"connection_id");e(this,"resource_key");e(this,"resource_id");e(this,"options");e(this,"status");e(this,"active_sources");e(this,"created_at");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.plugin_id=i.plugin_id,this.connection_id=i.connection_id,this.resource_key=i.resource_key,this.resource_id=i.resource_id,this.options=this.convertValues(i.options,p),this.status=i.status,this.active_sources=this.convertValues(i.active_sources,o),this.created_at=this.convertValues(i.created_at,exports.time.Time)}static createFrom(i={}){return new y(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.LogSession=y})(exports.logs||(exports.logs={}));exports.main=void 0;(a=>{class p{constructor(o={}){e(this,"displayName");e(this,"pattern");typeof o=="string"&&(o=JSON.parse(o)),this.displayName=o.displayName,this.pattern=o.pattern}static createFrom(o={}){return new p(o)}}a.FileFilter=p;class f{constructor(o={}){e(this,"defaultDirectory");e(this,"defaultFilename");e(this,"title");e(this,"filters");e(this,"showHiddenFiles");e(this,"canCreateDirectories");e(this,"resolvesAliases");e(this,"treatPackagesAsDirectories");typeof o=="string"&&(o=JSON.parse(o)),this.defaultDirectory=o.defaultDirectory,this.defaultFilename=o.defaultFilename,this.title=o.title,this.filters=this.convertValues(o.filters,p),this.showHiddenFiles=o.showHiddenFiles,this.canCreateDirectories=o.canCreateDirectories,this.resolvesAliases=o.resolvesAliases,this.treatPackagesAsDirectories=o.treatPackagesAsDirectories}static createFrom(o={}){return new f(o)}convertValues(o,y,r=!1){if(!o)return o;if(o.slice&&o.map)return o.map(i=>this.convertValues(i,y));if(typeof o=="object"){if(r){for(const i of Object.keys(o))o[i]=new y(o[i]);return o}return new y(o)}return o}}a.FileDialogOptions=f})(exports.main||(exports.main={}));exports.metric=void 0;(a=>{class p{constructor(n={}){e(this,"metric_id");e(this,"min");e(this,"max");e(this,"avg");e(this,"sum");e(this,"p50");e(this,"p90");e(this,"p99");e(this,"count");e(this,"window");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.metric_id=n.metric_id,this.min=n.min,this.max=n.max,this.avg=n.avg,this.sum=n.sum,this.p50=n.p50,this.p90=n.p90,this.p99=n.p99,this.count=n.count,this.window=n.window,this.labels=n.labels}static createFrom(n={}){return new p(n)}}a.AggregateValue=p;class f{constructor(n={}){e(this,"min");e(this,"max");e(this,"color");typeof n=="string"&&(n=JSON.parse(n)),this.min=n.min,this.max=n.max,this.color=n.color}static createFrom(n={}){return new f(n)}}a.ColorRange=f;class l{constructor(n={}){e(this,"metric_id");e(this,"value");e(this,"timestamp");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.metric_id=n.metric_id,this.value=n.value,this.timestamp=this.convertValues(n.timestamp,exports.time.Time),this.labels=n.labels}static createFrom(n={}){return new l(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.CurrentValue=l;class o{constructor(n={}){e(this,"timestamp");e(this,"value");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.timestamp=this.convertValues(n.timestamp,exports.time.Time),this.value=n.value,this.labels=n.labels}static createFrom(n={}){return new o(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.DataPoint=o;class y{constructor(n={}){e(this,"id");e(this,"name");e(this,"unit");e(this,"icon");e(this,"color_ranges");e(this,"format_string");e(this,"supported_shapes");e(this,"chart_group");typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.name=n.name,this.unit=n.unit,this.icon=n.icon,this.color_ranges=this.convertValues(n.color_ranges,f),this.format_string=n.format_string,this.supported_shapes=n.supported_shapes,this.chart_group=n.chart_group}static createFrom(n={}){return new y(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.MetricDescriptor=y;class r{constructor(n={}){e(this,"resource");e(this,"metrics");typeof n=="string"&&(n=JSON.parse(n)),this.resource=n.resource,this.metrics=this.convertValues(n.metrics,y)}static createFrom(n={}){return new r(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.Handler=r;class i{constructor(n={}){e(this,"plugin_id");e(this,"provider_id");e(this,"name");e(this,"icon");e(this,"description");e(this,"handlers");typeof n=="string"&&(n=JSON.parse(n)),this.plugin_id=n.plugin_id,this.provider_id=n.provider_id,this.name=n.name,this.icon=n.icon,this.description=n.description,this.handlers=this.convertValues(n.handlers,r)}static createFrom(n={}){return new i(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.MetricProviderSummary=i;class m{constructor(n={}){e(this,"metric_id");e(this,"data_points");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.metric_id=n.metric_id,this.data_points=this.convertValues(n.data_points,o),this.labels=n.labels}static createFrom(n={}){return new m(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.TimeSeries=m;class s{constructor(n={}){e(this,"time_series");e(this,"current_value");e(this,"aggregate_value");typeof n=="string"&&(n=JSON.parse(n)),this.time_series=this.convertValues(n.time_series,m),this.current_value=this.convertValues(n.current_value,l),this.aggregate_value=this.convertValues(n.aggregate_value,p)}static createFrom(n={}){return new s(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.MetricResult=s;class c{constructor(n={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_namespace");e(this,"resource_data");e(this,"metric_ids");e(this,"shape");e(this,"start_time");e(this,"end_time");e(this,"step");e(this,"params");typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_namespace=n.resource_namespace,this.resource_data=n.resource_data,this.metric_ids=n.metric_ids,this.shape=n.shape,this.start_time=this.convertValues(n.start_time,exports.time.Time),this.end_time=this.convertValues(n.end_time,exports.time.Time),this.step=n.step,this.params=n.params}static createFrom(n={}){return new c(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.QueryRequest=c;class _{constructor(n={}){e(this,"success");e(this,"results");e(this,"error");typeof n=="string"&&(n=JSON.parse(n)),this.success=n.success,this.results=this.convertValues(n.results,s),this.error=n.error}static createFrom(n={}){return new _(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.QueryResponse=_;class w{constructor(n={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_namespace");e(this,"resource_data");e(this,"metric_ids");e(this,"interval");typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_namespace=n.resource_namespace,this.resource_data=n.resource_data,this.metric_ids=n.metric_ids,this.interval=n.interval}static createFrom(n={}){return new w(n)}}a.SubscribeRequest=w})(exports.metric||(exports.metric={}));exports.networker=void 0;(a=>{class p{constructor(r={}){e(this,"resource_id");e(this,"connection_id");typeof r=="string"&&(r=JSON.parse(r)),this.resource_id=r.resource_id,this.connection_id=r.connection_id}static createFrom(r={}){return new p(r)}}a.FindPortForwardSessionRequest=p;class f{constructor(r={}){e(this,"algorithm");e(this,"key");e(this,"enabled");typeof r=="string"&&(r=JSON.parse(r)),this.algorithm=r.algorithm,this.key=r.key,this.enabled=r.enabled}static createFrom(r={}){return new f(r)}}a.PortForwardSessionEncryption=f;class l{constructor(r={}){e(this,"created_at");e(this,"updated_at");e(this,"connection");e(this,"labels");e(this,"id");e(this,"protocol");e(this,"state");e(this,"connection_type");e(this,"encryption");e(this,"local_port");e(this,"remote_port");typeof r=="string"&&(r=JSON.parse(r)),this.created_at=this.convertValues(r.created_at,exports.time.Time),this.updated_at=this.convertValues(r.updated_at,exports.time.Time),this.connection=r.connection,this.labels=r.labels,this.id=r.id,this.protocol=r.protocol,this.state=r.state,this.connection_type=r.connection_type,this.encryption=this.convertValues(r.encryption,f),this.local_port=r.local_port,this.remote_port=r.remote_port}static createFrom(r={}){return new l(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.PortForwardSession=l;class o{constructor(r={}){e(this,"connection");e(this,"labels");e(this,"params");e(this,"protocol");e(this,"connection_type");e(this,"encryption");e(this,"local_port");e(this,"remote_port");typeof r=="string"&&(r=JSON.parse(r)),this.connection=r.connection,this.labels=r.labels,this.params=r.params,this.protocol=r.protocol,this.connection_type=r.connection_type,this.encryption=this.convertValues(r.encryption,f),this.local_port=r.local_port,this.remote_port=r.remote_port}static createFrom(r={}){return new o(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.PortForwardSessionOptions=o})(exports.networker||(exports.networker={}));exports.plugin=void 0;(a=>{class p{constructor(l={}){e(this,"DevMode");e(this,"DevModePath");e(this,"ExistingState");typeof l=="string"&&(l=JSON.parse(l)),this.DevMode=l.DevMode,this.DevModePath=l.DevModePath,this.ExistingState=this.convertValues(l.ExistingState,exports.types.PluginStateRecord)}static createFrom(l={}){return new p(l)}convertValues(l,o,y=!1){if(!l)return l;if(l.slice&&l.map)return l.map(r=>this.convertValues(r,o));if(typeof l=="object"){if(y){for(const r of Object.keys(l))l[r]=new o(l[r]);return l}return new o(l)}return l}}a.LoadPluginOptions=p})(exports.plugin||(exports.plugin={}));exports.registry=void 0;(a=>{class p{constructor(i={}){e(this,"id");e(this,"name");e(this,"description");e(this,"icon_url");e(this,"category");e(this,"tags");e(this,"license");e(this,"official");e(this,"featured");e(this,"download_count");e(this,"average_rating");e(this,"review_count");e(this,"repository");e(this,"url");e(this,"publisher_name");e(this,"installed");e(this,"installed_version");e(this,"latest_version");e(this,"update_available");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.name=i.name,this.description=i.description,this.icon_url=i.icon_url,this.category=i.category,this.tags=i.tags,this.license=i.license,this.official=i.official,this.featured=i.featured,this.download_count=i.download_count,this.average_rating=i.average_rating,this.review_count=i.review_count,this.repository=i.repository,this.url=i.url,this.publisher_name=i.publisher_name,this.installed=i.installed,this.installed_version=i.installed_version,this.latest_version=i.latest_version,this.update_available=i.update_available}static createFrom(i={}){return new p(i)}}a.AvailablePlugin=p;class f{constructor(i={}){e(this,"date");e(this,"count");typeof i=="string"&&(i=JSON.parse(i)),this.date=i.date,this.count=i.count}static createFrom(i={}){return new f(i)}}a.DailyStat=f;class l{constructor(i={}){e(this,"total");e(this,"last_month");e(this,"last_week");e(this,"daily_stats");typeof i=="string"&&(i=JSON.parse(i)),this.total=i.total,this.last_month=i.last_month,this.last_week=i.last_week,this.daily_stats=this.convertValues(i.daily_stats,f)}static createFrom(i={}){return new l(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.DownloadStats=l;class o{constructor(i={}){e(this,"id");e(this,"user_id");e(this,"rating");e(this,"title");e(this,"body");e(this,"created_at");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.user_id=i.user_id,this.rating=i.rating,this.title=i.title,this.body=i.body,this.created_at=i.created_at}static createFrom(i={}){return new o(i)}}a.Review=o;class y{constructor(i={}){e(this,"version");e(this,"description");e(this,"changelog");e(this,"min_ide_version");e(this,"max_ide_version");e(this,"capabilities");e(this,"created_at");typeof i=="string"&&(i=JSON.parse(i)),this.version=i.version,this.description=i.description,this.changelog=i.changelog,this.min_ide_version=i.min_ide_version,this.max_ide_version=i.max_ide_version,this.capabilities=i.capabilities,this.created_at=i.created_at}static createFrom(i={}){return new y(i)}}a.VersionInfo=y})(exports.registry||(exports.registry={}));exports.settings=void 0;(a=>{(y=>{y.TEXT="text",y.INTEGER="integer",y.FLOAT="float",y.TOGGLE="toggle",y.COLOR="color",y.DATETIME="datetime",y.PASSWORD="password"})(a.SettingType||(a.SettingType={}));class p{constructor(r={}){e(this,"enabled");e(this,"allowFolders");e(this,"extensions");e(this,"multiple");e(this,"relative");e(this,"defaultPath");typeof r=="string"&&(r=JSON.parse(r)),this.enabled=r.enabled,this.allowFolders=r.allowFolders,this.extensions=r.extensions,this.multiple=r.multiple,this.relative=r.relative,this.defaultPath=r.defaultPath}static createFrom(r={}){return new p(r)}}a.SettingFileSelection=p;class f{constructor(r={}){e(this,"label");e(this,"description");e(this,"value");typeof r=="string"&&(r=JSON.parse(r)),this.label=r.label,this.description=r.description,this.value=r.value}static createFrom(r={}){return new f(r)}}a.SettingOption=f;class l{constructor(r={}){e(this,"id");e(this,"label");e(this,"description");e(this,"type");e(this,"value");e(this,"default");e(this,"options");e(this,"fileSelection");e(this,"sensitive");typeof r=="string"&&(r=JSON.parse(r)),this.id=r.id,this.label=r.label,this.description=r.description,this.type=r.type,this.value=r.value,this.default=r.default,this.options=this.convertValues(r.options,f),this.fileSelection=this.convertValues(r.fileSelection,p),this.sensitive=r.sensitive}static createFrom(r={}){return new l(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.Setting=l;class o{constructor(r={}){e(this,"settings");e(this,"id");e(this,"label");e(this,"description");e(this,"icon");typeof r=="string"&&(r=JSON.parse(r)),this.settings=this.convertValues(r.settings,l,!0),this.id=r.id,this.label=r.label,this.description=r.description,this.icon=r.icon}static createFrom(r={}){return new o(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.Category=o})(exports.settings||(exports.settings={}));exports.time=void 0;(a=>{class p{static createFrom(l={}){return new p(l)}constructor(l={}){typeof l=="string"&&(l=JSON.parse(l))}}a.Time=p})(exports.time||(exports.time={}));exports.trivy=void 0;(a=>{(l=>{l.CONFIG="config",l.FILESYSTEM="fs",l.IMAGE="image",l.KUBERNETES="kubernetes",l.REPOSITORY="repository",l.ROOTFS="rootfs",l.SBOM="sbom"})(a.Command||(a.Command={})),(l=>{l.VULN="vuln",l.MISCONFIG="misconfig",l.SECRET="secret",l.LICENSE="license"})(a.Scanner||(a.Scanner={}));class p{constructor(o={}){e(this,"filePatterns");e(this,"skipDirs");e(this,"skipFiles");e(this,"scanners");typeof o=="string"&&(o=JSON.parse(o)),this.filePatterns=o.filePatterns,this.skipDirs=o.skipDirs,this.skipFiles=o.skipFiles,this.scanners=o.scanners}static createFrom(o={}){return new p(o)}}a.ScanOptions=p;class f{constructor(o={}){e(this,"timestamp");e(this,"result");e(this,"id");e(this,"command");typeof o=="string"&&(o=JSON.parse(o)),this.timestamp=this.convertValues(o.timestamp,exports.time.Time),this.result=o.result,this.id=o.id,this.command=o.command}static createFrom(o={}){return new f(o)}convertValues(o,y,r=!1){if(!o)return o;if(o.slice&&o.map)return o.map(i=>this.convertValues(i,y));if(typeof o=="object"){if(r){for(const i of Object.keys(o))o[i]=new y(o[i]);return o}return new y(o)}return o}}a.ScanResult=f})(exports.trivy||(exports.trivy={}));exports.types=void 0;(a=>{(O=>{O.UNKNOWN="UNKNOWN",O.CONNECTED="CONNECTED",O.DISCONNECTED="DISCONNECTED",O.PENDING="PENDING",O.FAILED="FAILED",O.ERROR="ERROR",O.UNAUTHORIZED="UNAUTHORIZED",O.FORBIDDEN="FORBIDDEN",O.BAD_REQUEST="BAD_REQUEST",O.NOT_FOUND="NOT_FOUND",O.TIMEOUT="TIMEOUT",O.UNAVAILABLE="UNAVAILABLE",O.REQUEST_ENTITY_TOO_LARGE="REQUEST_ENTITY_TOO_LARGE"})(a.ConnectionStatusCode||(a.ConnectionStatusCode={}));class p{constructor(t={}){e(this,"id");e(this,"label");e(this,"description");e(this,"icon");e(this,"scope");e(this,"streaming");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.label=t.label,this.description=t.description,this.icon=t.icon,this.scope=t.scope,this.streaming=t.streaming}static createFrom(t={}){return new p(t)}}a.ActionDescriptor=p;class f{constructor(t={}){e(this,"id");e(this,"namespace");e(this,"params");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.namespace=t.namespace,this.params=t.params}static createFrom(t={}){return new f(t)}}a.ActionInput=f;class l{constructor(t={}){e(this,"success");e(this,"data");e(this,"message");typeof t=="string"&&(t=JSON.parse(t)),this.success=t.success,this.data=t.data,this.message=t.message}static createFrom(t={}){return new l(t)}}a.ActionResult=l;class o{constructor(t={}){e(this,"selectors");e(this,"label_selector");e(this,"label");e(this,"paths");typeof t=="string"&&(t=JSON.parse(t)),this.selectors=t.selectors,this.label_selector=t.label_selector,this.label=t.label,this.paths=t.paths}static createFrom(t={}){return new o(t)}}a.ActionTargetBuilder=o;class y{constructor(t={}){e(this,"idAccessor");e(this,"namespaceAccessor");e(this,"namespaced");e(this,"resourceKey");e(this,"keyAccessor");e(this,"keyMap");e(this,"detailExtractors");e(this,"displayId");typeof t=="string"&&(t=JSON.parse(t)),this.idAccessor=t.idAccessor,this.namespaceAccessor=t.namespaceAccessor,this.namespaced=t.namespaced,this.resourceKey=t.resourceKey,this.keyAccessor=t.keyAccessor,this.keyMap=t.keyMap,this.detailExtractors=t.detailExtractors,this.displayId=t.displayId}static createFrom(t={}){return new y(t)}}a.ResourceLink=y;class r{constructor(t={}){e(this,"id");e(this,"header");e(this,"accessor");e(this,"accessorPriority");e(this,"colorMap");e(this,"color");e(this,"align");e(this,"hidden");e(this,"width");e(this,"formatter");e(this,"component");e(this,"componentParams");e(this,"resourceLink");e(this,"valueMap");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.header=t.header,this.accessor=t.accessor,this.accessorPriority=t.accessorPriority,this.colorMap=t.colorMap,this.color=t.color,this.align=t.align,this.hidden=t.hidden,this.width=t.width,this.formatter=t.formatter,this.component=t.component,this.componentParams=t.componentParams,this.resourceLink=this.convertValues(t.resourceLink,y),this.valueMap=t.valueMap}static createFrom(t={}){return new r(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ColumnDef=r;class i{constructor(t={}){e(this,"last_refresh");e(this,"data");e(this,"labels");e(this,"id");e(this,"uid");e(this,"name");e(this,"description");e(this,"avatar");e(this,"expiry_time");e(this,"Client");typeof t=="string"&&(t=JSON.parse(t)),this.last_refresh=this.convertValues(t.last_refresh,exports.time.Time),this.data=t.data,this.labels=t.labels,this.id=t.id,this.uid=t.uid,this.name=t.name,this.description=t.description,this.avatar=t.avatar,this.expiry_time=t.expiry_time,this.Client=t.Client}static createFrom(t={}){return new i(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.Connection=i;class m{constructor(t={}){e(this,"connection");e(this,"status");e(this,"error");e(this,"details");typeof t=="string"&&(t=JSON.parse(t)),this.connection=this.convertValues(t.connection,i),this.status=t.status,this.error=t.error,this.details=t.details}static createFrom(t={}){return new m(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ConnectionStatus=m;class s{constructor(t={}){e(this,"params");e(this,"input");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.input=t.input,this.namespace=t.namespace}static createFrom(t={}){return new s(t)}}a.CreateInput=s;class c{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new c(t)}}a.CreateResult=c;class _{constructor(t={}){e(this,"input");e(this,"params");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.input=t.input,this.params=t.params,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new _(t)}}a.DeleteInput=_;class w{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new w(t)}}a.DeleteResult=w;class S{constructor(t={}){e(this,"resourceKey");e(this,"fileMatch");e(this,"uri");e(this,"url");e(this,"content");e(this,"language");typeof t=="string"&&(t=JSON.parse(t)),this.resourceKey=t.resourceKey,this.fileMatch=t.fileMatch,this.uri=t.uri,this.url=t.url,this.content=t.content,this.language=t.language}static createFrom(t={}){return new S(t)}}a.EditorSchema=S;class n{constructor(t={}){e(this,"page");e(this,"pageSize");typeof t=="string"&&(t=JSON.parse(t)),this.page=t.page,this.pageSize=t.pageSize}static createFrom(t={}){return new n(t)}}a.PaginationParams=n;class g{constructor(t={}){e(this,"by");e(this,"direction");typeof t=="string"&&(t=JSON.parse(t)),this.by=t.by,this.direction=t.direction}static createFrom(t={}){return new g(t)}}a.OrderParams=g;class b{constructor(t={}){e(this,"params");e(this,"conditions");e(this,"namespaces");e(this,"order");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.conditions=t.conditions,this.namespaces=t.namespaces,this.order=this.convertValues(t.order,g),this.pagination=this.convertValues(t.pagination,n)}static createFrom(t={}){return new b(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.FindInput=b;class d{constructor(t={}){e(this,"page");e(this,"pageSize");e(this,"total");e(this,"pages");typeof t=="string"&&(t=JSON.parse(t)),this.page=t.page,this.pageSize=t.pageSize,this.total=t.total,this.pages=t.pages}static createFrom(t={}){return new d(t)}}a.PaginationResult=d;class k{constructor(t={}){e(this,"result");e(this,"success");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success,this.pagination=this.convertValues(t.pagination,d)}static createFrom(t={}){return new k(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.FindResult=k;class N{constructor(t={}){e(this,"params");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new N(t)}}a.GetInput=N;class F{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new F(t)}}a.GetResult=F;class J{constructor(t={}){e(this,"connection");e(this,"resources");e(this,"resourceCounts");e(this,"totalResources");e(this,"syncedCount");e(this,"errorCount");typeof t=="string"&&(t=JSON.parse(t)),this.connection=t.connection,this.resources=t.resources,this.resourceCounts=t.resourceCounts,this.totalResources=t.totalResources,this.syncedCount=t.syncedCount,this.errorCount=t.errorCount}static createFrom(t={}){return new J(t)}}a.InformerConnectionSummary=J;class V{constructor(t={}){e(this,"id");e(this,"title");e(this,"icon");e(this,"description");e(this,"items");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.title=t.title,this.icon=t.icon,this.description=t.description,this.items=this.convertValues(t.items,V)}static createFrom(t={}){return new V(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.LayoutItem=V;class j{constructor(t={}){e(this,"params");e(this,"namespaces");e(this,"order");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.namespaces=t.namespaces,this.order=this.convertValues(t.order,g),this.pagination=this.convertValues(t.pagination,n)}static createFrom(t={}){return new j(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ListInput=j;class E{constructor(t={}){e(this,"result");e(this,"success");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success,this.pagination=this.convertValues(t.pagination,d)}static createFrom(t={}){return new E(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ListResult=E;class D{constructor(t={}){e(this,"id");e(this,"metadata");e(this,"phase");e(this,"enabled");e(this,"devMode");e(this,"devPath");e(this,"capabilities");e(this,"lastError");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.metadata=this.convertValues(t.metadata,exports.config.PluginMeta),this.phase=t.phase,this.enabled=t.enabled,this.devMode=t.devMode,this.devPath=t.devPath,this.capabilities=t.capabilities,this.lastError=t.lastError}static createFrom(t={}){return new D(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.PluginInfo=D;class P{constructor(t={}){e(this,"id");e(this,"phase");e(this,"metadata");e(this,"enabled");e(this,"devMode");e(this,"devPath");e(this,"lastError");e(this,"errorCount");e(this,"installedAt");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.phase=t.phase,this.metadata=this.convertValues(t.metadata,exports.config.PluginMeta),this.enabled=t.enabled,this.devMode=t.devMode,this.devPath=t.devPath,this.lastError=t.lastError,this.errorCount=t.errorCount,this.installedAt=this.convertValues(t.installedAt,exports.time.Time)}static createFrom(t={}){return new P(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.PluginStateRecord=P;class R{constructor(t={}){e(this,"id_accessor");e(this,"namespace_accessor");e(this,"memoizer_accessor");e(this,"columnDefs");e(this,"supportedOperations");typeof t=="string"&&(t=JSON.parse(t)),this.id_accessor=t.id_accessor,this.namespace_accessor=t.namespace_accessor,this.memoizer_accessor=t.memoizer_accessor,this.columnDefs=this.convertValues(t.columnDefs,r),this.supportedOperations=t.supportedOperations}static createFrom(t={}){return new R(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ResourceDefinition=R;class T{constructor(t={}){e(this,"id");e(this,"name");e(this,"description");e(this,"icon");e(this,"resources");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.name=t.name,this.description=t.description,this.icon=t.icon,this.resources=this.convertValues(t.resources,Array,!0)}static createFrom(t={}){return new T(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ResourceGroup=T;class I{constructor(t={}){e(this,"group");e(this,"version");e(this,"kind");e(this,"label");e(this,"icon");e(this,"description");e(this,"category");typeof t=="string"&&(t=JSON.parse(t)),this.group=t.group,this.version=t.version,this.kind=t.kind,this.label=t.label,this.icon=t.icon,this.description=t.description,this.category=t.category}static createFrom(t={}){return new I(t)}}a.ResourceMeta=I;class A{constructor(t={}){e(this,"input");e(this,"params");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.input=t.input,this.params=t.params,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new A(t)}}a.UpdateInput=A;class M{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new M(t)}}a.UpdateResult=M})(exports.types||(exports.types={}));exports.ui=void 0;(a=>{class p{constructor(r={}){e(this,"plugin");typeof r=="string"&&(r=JSON.parse(r)),this.plugin=r.plugin}static createFrom(r={}){return new p(r)}}a.GetPluginComponentsInput=p;class f{constructor(r={}){e(this,"plugin");e(this,"resource");e(this,"area");typeof r=="string"&&(r=JSON.parse(r)),this.plugin=r.plugin,this.resource=r.resource,this.area=r.area}static createFrom(r={}){return new f(r)}}a.GetResourceAreaComponentInput=f;class l{constructor(r={}){e(this,"plugin");e(this,"resource");typeof r=="string"&&(r=JSON.parse(r)),this.plugin=r.plugin,this.resource=r.resource}static createFrom(r={}){return new l(r)}}a.GetResourceComponentsInput=l;class o{constructor(r={}){e(this,"owner");e(this,"name");e(this,"plugin");e(this,"resource");e(this,"area");e(this,"extension");typeof r=="string"&&(r=JSON.parse(r)),this.owner=r.owner,this.name=r.name,this.plugin=r.plugin,this.resource=r.resource,this.area=r.area,this.extension=r.extension}static createFrom(r={}){return new o(r)}}a.ResourceComponent=o})(exports.ui||(exports.ui={}));exports.utils=void 0;(a=>{class p{constructor(l={}){e(this,"filename");e(this,"contents");typeof l=="string"&&(l=JSON.parse(l)),this.filename=l.filename,this.contents=l.contents}static createFrom(l={}){return new p(l)}}a.GetLanguageInput=p})(exports.utils||(exports.utils={}));
package/dist/models.js CHANGED
@@ -1178,10 +1178,10 @@ var _;
1178
1178
  var W;
1179
1179
  ((a) => {
1180
1180
  ((l) => {
1181
- l.VULN = "vuln", l.MISCONFIG = "misconfig", l.SECRET = "secret", l.LICENSE = "license";
1182
- })(a.Scanner || (a.Scanner = {})), ((l) => {
1183
1181
  l.CONFIG = "config", l.FILESYSTEM = "fs", l.IMAGE = "image", l.KUBERNETES = "kubernetes", l.REPOSITORY = "repository", l.ROOTFS = "rootfs", l.SBOM = "sbom";
1184
- })(a.Command || (a.Command = {}));
1182
+ })(a.Command || (a.Command = {})), ((l) => {
1183
+ l.VULN = "vuln", l.MISCONFIG = "misconfig", l.SECRET = "secret", l.LICENSE = "license";
1184
+ })(a.Scanner || (a.Scanner = {}));
1185
1185
  class p {
1186
1186
  constructor(o = {}) {
1187
1187
  e(this, "filePatterns");
@@ -526,12 +526,6 @@ export declare namespace time {
526
526
  }
527
527
  }
528
528
  export declare namespace trivy {
529
- enum Scanner {
530
- VULN = "vuln",
531
- MISCONFIG = "misconfig",
532
- SECRET = "secret",
533
- LICENSE = "license"
534
- }
535
529
  enum Command {
536
530
  CONFIG = "config",
537
531
  FILESYSTEM = "fs",
@@ -541,6 +535,12 @@ export declare namespace trivy {
541
535
  ROOTFS = "rootfs",
542
536
  SBOM = "sbom"
543
537
  }
538
+ enum Scanner {
539
+ VULN = "vuln",
540
+ MISCONFIG = "misconfig",
541
+ SECRET = "secret",
542
+ LICENSE = "license"
543
+ }
544
544
  class ScanOptions {
545
545
  filePatterns: string[];
546
546
  skipDirs: string[];
@@ -63,6 +63,10 @@ export function StopConnectionInformer(arg1:string,arg2:string):Promise<void>;
63
63
 
64
64
  export function StreamAction(arg1:string,arg2:string,arg3:string,arg4:string,arg5:types.ActionInput):Promise<string>;
65
65
 
66
+ export function SubscribeResource(arg1:string,arg2:string,arg3:string):Promise<void>;
67
+
68
+ export function UnsubscribeResource(arg1:string,arg2:string,arg3:string):Promise<void>;
69
+
66
70
  export function Update(arg1:string,arg2:string,arg3:string,arg4:types.UpdateInput):Promise<types.UpdateResult>;
67
71
 
68
72
  export function UpdateConnection(arg1:string,arg2:types.Connection):Promise<types.Connection>;
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.1.8",
5
+ "version": "0.1.9",
6
6
  "description": "Runtime shared library for Omniview",
7
7
  "sideEffects": false,
8
8
  "type": "module",
@@ -1 +0,0 @@
1
- "use strict";function J(n,e){return window.go.settings.Client.GetSetting(n,e)}function K(){return window.go.settings.Client.ListPlugins()}function X(n){return window.go.settings.Client.ListSettings(n)}function r(n){return window.go.settings.Client.PluginValues(n)}function Y(n,e,t){return window.go.settings.Client.SetSetting(n,e,t)}function Z(n,e){return window.go.settings.Client.SetSettings(n,e)}function nn(){return window.go.settings.Client.Values()}const en=Object.freeze(Object.defineProperty({__proto__:null,GetSetting:J,ListPlugins:K,ListSettings:X,PluginValues:r,SetSetting:Y,SetSettings:Z,Values:nn},Symbol.toStringTag,{value:"Module"}));function tn(n){return window.go.plugin.pluginManager.GetPlugin(n)}function on(n){return window.go.plugin.pluginManager.GetPluginDownloadStats(n)}function u(n){return window.go.plugin.pluginManager.GetPluginMeta(n)}function rn(n){return window.go.plugin.pluginManager.GetPluginReadme(n)}function un(n){return window.go.plugin.pluginManager.GetPluginReleaseHistory(n)}function sn(n,e){return window.go.plugin.pluginManager.GetPluginReviews(n,e)}function gn(n){return window.go.plugin.pluginManager.GetPluginVersions(n)}function ln(n){return window.go.plugin.pluginManager.HandlePluginCrash(n)}function cn(n){return window.go.plugin.pluginManager.Initialize(n)}function wn(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function an(){return window.go.plugin.pluginManager.InstallInDevMode()}function dn(n){return window.go.plugin.pluginManager.InstallPluginFromPath(n)}function Sn(n,e){return window.go.plugin.pluginManager.InstallPluginVersion(n,e)}function Cn(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function fn(){return window.go.plugin.pluginManager.ListPluginMetas()}function pn(){return window.go.plugin.pluginManager.ListPlugins()}function Gn(n,e){return window.go.plugin.pluginManager.LoadPlugin(n,e)}function Pn(n){return window.go.plugin.pluginManager.ReloadPlugin(n)}function vn(n){return window.go.plugin.pluginManager.Run(n)}function mn(n,e,t){return window.go.plugin.pluginManager.SearchPlugins(n,e,t)}function Rn(n){return window.go.plugin.pluginManager.SetDevServerChecker(n)}function Ln(n){return window.go.plugin.pluginManager.SetDevServerManager(n)}function Mn(){return window.go.plugin.pluginManager.Shutdown()}function yn(n){return window.go.plugin.pluginManager.UninstallPlugin(n)}function bn(n){return window.go.plugin.pluginManager.UnloadPlugin(n)}const Fn=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:tn,GetPluginDownloadStats:on,GetPluginMeta:u,GetPluginReadme:rn,GetPluginReleaseHistory:un,GetPluginReviews:sn,GetPluginVersions:gn,HandlePluginCrash:ln,Initialize:cn,InstallFromPathPrompt:wn,InstallInDevMode:an,InstallPluginFromPath:dn,InstallPluginVersion:Sn,ListAvailablePlugins:Cn,ListPluginMetas:fn,ListPlugins:pn,LoadPlugin:Gn,ReloadPlugin:Pn,Run:vn,SearchPlugins:mn,SetDevServerChecker:Rn,SetDevServerManager:Ln,Shutdown:Mn,UninstallPlugin:yn,UnloadPlugin:bn},Symbol.toStringTag,{value:"Module"}));function _n(n){return window.go.settings.provider.GetBool(n)}function In(){return window.go.settings.provider.GetCategories()}function An(n){return window.go.settings.provider.GetCategory(n)}function $n(n){return window.go.settings.provider.GetCategoryValues(n)}function Tn(n){return window.go.settings.provider.GetFloat(n)}function On(n){return window.go.settings.provider.GetFloatSlice(n)}function hn(n){return window.go.settings.provider.GetInt(n)}function jn(n){return window.go.settings.provider.GetIntSlice(n)}function Dn(n){return window.go.settings.provider.GetSetting(n)}function Vn(n){return window.go.settings.provider.GetSettingValue(n)}function xn(n){return window.go.settings.provider.GetString(n)}function zn(n){return window.go.settings.provider.GetStringSlice(n)}function Un(n){return window.go.settings.provider.HasSetting(n)}function Hn(n,e){return window.go.settings.provider.Initialize(n,e)}function kn(){return window.go.settings.provider.ListSettings()}function En(){return window.go.settings.provider.LoadSettings()}function Qn(n,e){return window.go.settings.provider.RegisterSetting(n,e)}function Nn(n,e){return window.go.settings.provider.RegisterSettings(n,e)}function Bn(n){return window.go.settings.provider.ResetSetting(n)}function Wn(){return window.go.settings.provider.SaveSettings()}function qn(n,e){return window.go.settings.provider.SetSetting(n,e)}function Jn(n){return window.go.settings.provider.SetSettings(n)}function s(){return window.go.settings.provider.Values()}const Kn=Object.freeze(Object.defineProperty({__proto__:null,GetBool:_n,GetCategories:In,GetCategory:An,GetCategoryValues:$n,GetFloat:Tn,GetFloatSlice:On,GetInt:hn,GetIntSlice:jn,GetSetting:Dn,GetSettingValue:Vn,GetString:xn,GetStringSlice:zn,HasSetting:Un,Initialize:Hn,ListSettings:kn,LoadSettings:En,RegisterSetting:Qn,RegisterSettings:Nn,ResetSetting:Bn,SaveSettings:Wn,SetSetting:qn,SetSettings:Jn,Values:s},Symbol.toStringTag,{value:"Module"}));function Xn(n,e){return window.go.resource.Client.AddConnection(n,e)}function g(n,e,t,o){return window.go.resource.Client.Create(n,e,t,o)}function l(n,e,t,o){return window.go.resource.Client.Delete(n,e,t,o)}function Yn(n,e,t){return window.go.resource.Client.EnsureInformerForResource(n,e,t)}function c(n,e,t,o,i){return window.go.resource.Client.ExecuteAction(n,e,t,o,i)}function Zn(n,e,t,o){return window.go.resource.Client.Find(n,e,t,o)}function w(n,e,t,o){return window.go.resource.Client.Get(n,e,t,o)}function a(n,e,t){return window.go.resource.Client.GetActions(n,e,t)}function d(n,e){return window.go.resource.Client.GetConnection(n,e)}function S(n,e){return window.go.resource.Client.GetConnectionNamespaces(n,e)}function ne(n){return window.go.resource.Client.GetDefaultLayout(n)}function C(n,e){return window.go.resource.Client.GetEditorSchemas(n,e)}function f(n,e){return window.go.resource.Client.GetInformerState(n,e)}function ee(n,e){return window.go.resource.Client.GetLayout(n,e)}function te(n,e){return window.go.resource.Client.GetResourceDefinition(n,e)}function oe(n,e){return window.go.resource.Client.GetResourceGroup(n,e)}function p(n,e){return window.go.resource.Client.GetResourceGroups(n,e)}function G(n,e){return window.go.resource.Client.GetResourceType(n,e)}function P(n,e){return window.go.resource.Client.GetResourceTypes(n,e)}function ie(n,e){return window.go.resource.Client.HasResourceType(n,e)}function v(n,e,t,o){return window.go.resource.Client.List(n,e,t,o)}function m(){return window.go.resource.Client.ListAllConnections()}function R(n){return window.go.resource.Client.ListConnections(n)}function re(){return window.go.resource.Client.ListPlugins()}function ue(n){return window.go.resource.Client.LoadConnections(n)}function L(n,e){return window.go.resource.Client.RemoveConnection(n,e)}function se(n,e,t){return window.go.resource.Client.SetLayout(n,e,t)}function M(n,e){return window.go.resource.Client.StartConnection(n,e)}function y(n,e){return window.go.resource.Client.StartConnectionInformer(n,e)}function b(n,e){return window.go.resource.Client.StopConnection(n,e)}function F(n,e){return window.go.resource.Client.StopConnectionInformer(n,e)}function _(n,e,t,o,i){return window.go.resource.Client.StreamAction(n,e,t,o,i)}function I(n,e,t,o){return window.go.resource.Client.Update(n,e,t,o)}function A(n,e){return window.go.resource.Client.UpdateConnection(n,e)}const ge=Object.freeze(Object.defineProperty({__proto__:null,AddConnection:Xn,Create:g,Delete:l,EnsureInformerForResource:Yn,ExecuteAction:c,Find:Zn,Get:w,GetActions:a,GetConnection:d,GetConnectionNamespaces:S,GetDefaultLayout:ne,GetEditorSchemas:C,GetInformerState:f,GetLayout:ee,GetResourceDefinition:te,GetResourceGroup:oe,GetResourceGroups:p,GetResourceType:G,GetResourceTypes:P,HasResourceType:ie,List:v,ListAllConnections:m,ListConnections:R,ListPlugins:re,LoadConnections:ue,RemoveConnection:L,SetLayout:se,StartConnection:M,StartConnectionInformer:y,StopConnection:b,StopConnectionInformer:F,StreamAction:_,Update:I,UpdateConnection:A},Symbol.toStringTag,{value:"Module"}));function le(n){return window.go.exec.Client.AttachSession(n)}function ce(n){return window.go.exec.Client.CloseSession(n)}function $(n,e,t){return window.go.exec.Client.CreateSession(n,e,t)}function we(n){return window.go.exec.Client.CreateTerminal(n)}function ae(n){return window.go.exec.Client.DetachSession(n)}function de(n,e){return window.go.exec.Client.GetHandler(n,e)}function Se(){return window.go.exec.Client.GetHandlers()}function Ce(n){return window.go.exec.Client.GetPluginHandlers(n)}function fe(n){return window.go.exec.Client.GetSession(n)}function pe(){return window.go.exec.Client.ListPlugins()}function Ge(){return window.go.exec.Client.ListSessions()}function Pe(n,e,t){return window.go.exec.Client.ResizeSession(n,e,t)}function ve(n,e){return window.go.exec.Client.WriteSession(n,e)}const me=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:le,CloseSession:ce,CreateSession:$,CreateTerminal:we,DetachSession:ae,GetHandler:de,GetHandlers:Se,GetPluginHandlers:Ce,GetSession:fe,ListPlugins:pe,ListSessions:Ge,ResizeSession:Pe,WriteSession:ve},Symbol.toStringTag,{value:"Module"}));function T(n){return window.go.logs.Client.CloseSession(n)}function O(n,e,t){return window.go.logs.Client.CreateSession(n,e,t)}function Re(n){return window.go.logs.Client.GetSession(n)}function Le(n){return window.go.logs.Client.GetSupportedResources(n)}function Me(){return window.go.logs.Client.ListSessions()}function ye(n){return window.go.logs.Client.PauseSession(n)}function be(n){return window.go.logs.Client.ResumeSession(n)}function Fe(n,e){return window.go.logs.Client.UpdateSessionOptions(n,e)}const _e=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:T,CreateSession:O,GetSession:Re,GetSupportedResources:Le,ListSessions:Me,PauseSession:ye,ResumeSession:be,UpdateSessionOptions:Fe},Symbol.toStringTag,{value:"Module"}));function h(){return window.go.metric.Client.GetProviders()}function j(n){return window.go.metric.Client.GetProvidersForResource(n)}function Ie(n,e,t){return window.go.metric.Client.Query(n,e,t)}function D(n,e,t,o,i,Q,N,B,W,q){return window.go.metric.Client.QueryAll(n,e,t,o,i,Q,N,B,W,q)}function V(n,e,t){return window.go.metric.Client.Subscribe(n,e,t)}function x(n){return window.go.metric.Client.Unsubscribe(n)}const Ae=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:h,GetProvidersForResource:j,Query:Ie,QueryAll:D,Subscribe:V,Unsubscribe:x},Symbol.toStringTag,{value:"Module"}));function z(n){return window.go.networker.Client.ClosePortForwardSession(n)}function U(n,e,t){return window.go.networker.Client.FindPortForwardSessions(n,e,t)}function $e(n){return window.go.networker.Client.GetPortForwardSession(n)}function Te(n){return window.go.networker.Client.GetSupportedPortForwardTargets(n)}function H(){return window.go.networker.Client.ListAllPortForwardSessions()}function Oe(n,e){return window.go.networker.Client.ListPortForwardSessions(n,e)}function k(n,e,t){return window.go.networker.Client.StartResourcePortForwardingSession(n,e,t)}const he=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:z,FindPortForwardSessions:U,GetPortForwardSession:$e,GetSupportedPortForwardTargets:Te,ListAllPortForwardSessions:H,ListPortForwardSessions:Oe,StartResourcePortForwardingSession:k},Symbol.toStringTag,{value:"Module"}));function je(n){return window.go.ui.Client.GetPluginComponents(n)}function E(n){return window.go.ui.Client.GetResourceAreaComponent(n)}function De(n){return window.go.ui.Client.GetResourceComponents(n)}const Ve=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:je,GetResourceAreaComponent:E,GetResourceComponents:De},Symbol.toStringTag,{value:"Module"}));exports.Client=me;exports.Client$1=he;exports.Client$2=ge;exports.Client$3=en;exports.Client$4=Ve;exports.Client$5=_e;exports.Client$6=Ae;exports.ClosePortForwardSession=z;exports.CloseSession=T;exports.Create=g;exports.CreateSession=$;exports.CreateSession$1=O;exports.Delete=l;exports.ExecuteAction=c;exports.FindPortForwardSessions=U;exports.Get=w;exports.GetActions=a;exports.GetConnection=d;exports.GetConnectionNamespaces=S;exports.GetEditorSchemas=C;exports.GetInformerState=f;exports.GetPluginMeta=u;exports.GetProviders=h;exports.GetProvidersForResource=j;exports.GetResourceAreaComponent=E;exports.GetResourceGroups=p;exports.GetResourceType=G;exports.GetResourceTypes=P;exports.List=v;exports.ListAllConnections=m;exports.ListAllPortForwardSessions=H;exports.ListConnections=R;exports.PluginValues=r;exports.QueryAll=D;exports.RemoveConnection=L;exports.StartConnection=M;exports.StartConnectionInformer=y;exports.StartResourcePortForwardingSession=k;exports.StopConnection=b;exports.StopConnectionInformer=F;exports.StreamAction=_;exports.Subscribe=V;exports.Unsubscribe=x;exports.Update=I;exports.UpdateConnection=A;exports.Values=s;exports.pluginManager=Fn;exports.provider=Kn;