@omniviewdev/runtime 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Client-RGYOEzh2.js → Client-07zrOerN.js} +259 -251
- package/dist/Client-CLvQWnuz.cjs +1 -0
- package/dist/api.cjs +1 -1
- package/dist/api.js +1 -1
- package/dist/extensions/provider.d.ts +12 -6
- package/dist/extensions/registry.d.ts +37 -18
- package/dist/index.cjs +2 -2
- package/dist/index.js +839 -838
- package/dist/models.cjs +1 -1
- package/dist/models.js +3 -3
- package/dist/types/app.d.ts +1 -1
- package/dist/types/extensions.d.ts +107 -161
- package/dist/wailsjs/go/models.d.ts +6 -6
- package/dist/wailsjs/go/resource/Client.d.ts +2 -0
- package/dist/wailsjs/go/settings/provider.d.ts +2 -0
- package/package.json +6 -2
- package/dist/Client-BRYjLBXY.cjs +0 -1
package/dist/models.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var G=Object.defineProperty;var K=(a,h,d)=>h in a?G(a,h,{enumerable:!0,configurable:!0,writable:!0,value:d}):a[h]=d;var e=(a,h,d)=>K(a,typeof h!="symbol"?h+"":h,d);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.config=void 0;(a=>{class h{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 h(s)}}a.PluginAuthor=h;class d{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 d(s)}}a.PluginResourceComponent=d;class p{constructor(s={}){e(this,"resource");typeof s=="string"&&(s=JSON.parse(s)),this.resource=this.convertValues(s.resource,d)}static createFrom(s={}){return new p(s)}convertValues(s,g,f=!1){if(!s)return s;if(s.slice&&s.map)return s.map(O=>this.convertValues(O,g));if(typeof s=="object"){if(f){for(const O of Object.keys(s))s[O]=new g(s[O]);return s}return new g(s)}return s}}a.PluginComponents=p;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 m{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 m(s)}}a.PluginThemeColors=m;class n{constructor(s={}){e(this,"colors");typeof s=="string"&&(s=JSON.parse(s)),this.colors=this.convertValues(s.colors,m)}static createFrom(s={}){return new n(s)}convertValues(s,g,f=!1){if(!s)return s;if(s.slice&&s.map)return s.map(O=>this.convertValues(O,g));if(typeof s=="object"){if(f){for(const O of Object.keys(s))s[O]=new g(s[O]);return s}return new g(s)}return s}}a.PluginTheme=n;class l{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,h),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,n),this.components=this.convertValues(s.components,p),this.schema_version=s.schema_version,this.sdk_protocol_version=s.sdk_protocol_version}static createFrom(s={}){return new l(s)}convertValues(s,g,f=!1){if(!s)return s;if(s.slice&&s.map)return s.map(O=>this.convertValues(O,g));if(typeof s=="object"){if(f){for(const O of Object.keys(s))s[O]=new g(s[O]);return s}return new g(s)}return s}}a.PluginMeta=l})(exports.config||(exports.config={}));exports.devserver=void 0;(a=>{class h{constructor(n={}){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 n=="string"&&(n=JSON.parse(n)),this.pid=n.pid,this.protocol=n.protocol,this.protocolVersion=n.protocolVersion,this.addr=n.addr,this.vitePort=n.vitePort,this.pluginId=n.pluginId,this.version=n.version,this.startedAt=n.startedAt}static createFrom(n={}){return new h(n)}}a.DevInfoFile=h;class d{static createFrom(n={}){return new d(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n))}}a.DevServerManager=d;class p{constructor(n={}){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 n=="string"&&(n=JSON.parse(n)),this.pluginID=n.pluginID,this.mode=n.mode,this.devPath=n.devPath,this.vitePort=n.vitePort,this.viteURL=n.viteURL,this.viteStatus=n.viteStatus,this.goStatus=n.goStatus,this.lastBuildDuration=n.lastBuildDuration,this.lastBuildTime=n.lastBuildTime,this.lastError=n.lastError,this.grpcConnected=n.grpcConnected}static createFrom(n={}){return new p(n)}}a.DevServerState=p;class o{constructor(n={}){e(this,"timestamp");e(this,"source");e(this,"level");e(this,"message");e(this,"pluginID");typeof n=="string"&&(n=JSON.parse(n)),this.timestamp=n.timestamp,this.source=n.source,this.level=n.level,this.message=n.message,this.pluginID=n.pluginID}static createFrom(n={}){return new o(n)}}a.LogEntry=o})(exports.devserver||(exports.devserver={}));exports.exec=void 0;(a=>{class h{constructor(i={}){e(this,"label");e(this,"label_selector");e(this,"paths");e(this,"selectors");typeof i=="string"&&(i=JSON.parse(i)),this.label=i.label,this.label_selector=i.label_selector,this.paths=i.paths,this.selectors=i.selectors}static createFrom(i={}){return new h(i)}}a.ActionTargetBuilder=h;class d{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 d(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.Session=d;class p{constructor(i={}){e(this,"session");e(this,"buffer");typeof i=="string"&&(i=JSON.parse(i)),this.session=this.convertValues(i.session,d),this.buffer=i.buffer}static createFrom(i={}){return new p(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.AttachSessionResult=p;class o{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 o(i)}}a.CreateTerminalOptions=o;class m{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,h),this.default_command=i.default_command}static createFrom(i={}){return new m(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.Handler=m;class n{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 n(i)}}a.SessionOptions=n})(exports.exec||(exports.exec={}));exports.logs=void 0;(a=>{class h{constructor(i={}){e(this,"label");e(this,"label_selector");e(this,"paths");e(this,"selectors");typeof i=="string"&&(i=JSON.parse(i)),this.label=i.label,this.label_selector=i.label_selector,this.paths=i.paths,this.selectors=i.selectors}static createFrom(i={}){return new h(i)}}a.ActionTargetBuilder=h;class d{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 d(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.LogSessionOptions=d;class p{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,d)}static createFrom(i={}){return new p(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.CreateSessionOptions=p;class o{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,h)}static createFrom(i={}){return new o(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.Handler=o;class m{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 m(i)}}a.LogSource=m;class n{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,d),this.status=i.status,this.active_sources=this.convertValues(i.active_sources,m),this.created_at=this.convertValues(i.created_at,exports.time.Time)}static createFrom(i={}){return new n(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.LogSession=n})(exports.logs||(exports.logs={}));exports.main=void 0;(a=>{class h{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 h(o)}}a.FileFilter=h;class d{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,h),this.showHiddenFiles=o.showHiddenFiles,this.canCreateDirectories=o.canCreateDirectories,this.resolvesAliases=o.resolvesAliases,this.treatPackagesAsDirectories=o.treatPackagesAsDirectories}static createFrom(o={}){return new d(o)}convertValues(o,m,n=!1){if(!o)return o;if(o.slice&&o.map)return o.map(l=>this.convertValues(l,m));if(typeof o=="object"){if(n){for(const l of Object.keys(o))o[l]=new m(o[l]);return o}return new m(o)}return o}}a.FileDialogOptions=d})(exports.main||(exports.main={}));exports.metric=void 0;(a=>{class h{constructor(r={}){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 r=="string"&&(r=JSON.parse(r)),this.metric_id=r.metric_id,this.min=r.min,this.max=r.max,this.avg=r.avg,this.sum=r.sum,this.p50=r.p50,this.p90=r.p90,this.p99=r.p99,this.count=r.count,this.window=r.window,this.labels=r.labels}static createFrom(r={}){return new h(r)}}a.AggregateValue=h;class d{constructor(r={}){e(this,"min");e(this,"max");e(this,"color");typeof r=="string"&&(r=JSON.parse(r)),this.min=r.min,this.max=r.max,this.color=r.color}static createFrom(r={}){return new d(r)}}a.ColorRange=d;class p{constructor(r={}){e(this,"metric_id");e(this,"value");e(this,"timestamp");e(this,"labels");typeof r=="string"&&(r=JSON.parse(r)),this.metric_id=r.metric_id,this.value=r.value,this.timestamp=this.convertValues(r.timestamp,exports.time.Time),this.labels=r.labels}static createFrom(r={}){return new p(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.CurrentValue=p;class o{constructor(r={}){e(this,"timestamp");e(this,"value");e(this,"labels");typeof r=="string"&&(r=JSON.parse(r)),this.timestamp=this.convertValues(r.timestamp,exports.time.Time),this.value=r.value,this.labels=r.labels}static createFrom(r={}){return new o(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.DataPoint=o;class m{constructor(r={}){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 r=="string"&&(r=JSON.parse(r)),this.id=r.id,this.name=r.name,this.unit=r.unit,this.icon=r.icon,this.color_ranges=this.convertValues(r.color_ranges,d),this.format_string=r.format_string,this.supported_shapes=r.supported_shapes,this.chart_group=r.chart_group}static createFrom(r={}){return new m(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.MetricDescriptor=m;class n{constructor(r={}){e(this,"resource");e(this,"metrics");typeof r=="string"&&(r=JSON.parse(r)),this.resource=r.resource,this.metrics=this.convertValues(r.metrics,m)}static createFrom(r={}){return new n(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.Handler=n;class l{constructor(r={}){e(this,"plugin_id");e(this,"provider_id");e(this,"name");e(this,"icon");e(this,"description");e(this,"handlers");typeof r=="string"&&(r=JSON.parse(r)),this.plugin_id=r.plugin_id,this.provider_id=r.provider_id,this.name=r.name,this.icon=r.icon,this.description=r.description,this.handlers=this.convertValues(r.handlers,n)}static createFrom(r={}){return new l(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.MetricProviderSummary=l;class i{constructor(r={}){e(this,"metric_id");e(this,"data_points");e(this,"labels");typeof r=="string"&&(r=JSON.parse(r)),this.metric_id=r.metric_id,this.data_points=this.convertValues(r.data_points,o),this.labels=r.labels}static createFrom(r={}){return new i(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.TimeSeries=i;class s{constructor(r={}){e(this,"time_series");e(this,"current_value");e(this,"aggregate_value");typeof r=="string"&&(r=JSON.parse(r)),this.time_series=this.convertValues(r.time_series,i),this.current_value=this.convertValues(r.current_value,p),this.aggregate_value=this.convertValues(r.aggregate_value,h)}static createFrom(r={}){return new s(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.MetricResult=s;class g{constructor(r={}){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 r=="string"&&(r=JSON.parse(r)),this.resource_key=r.resource_key,this.resource_id=r.resource_id,this.resource_namespace=r.resource_namespace,this.resource_data=r.resource_data,this.metric_ids=r.metric_ids,this.shape=r.shape,this.start_time=this.convertValues(r.start_time,exports.time.Time),this.end_time=this.convertValues(r.end_time,exports.time.Time),this.step=r.step,this.params=r.params}static createFrom(r={}){return new g(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.QueryRequest=g;class f{constructor(r={}){e(this,"success");e(this,"results");e(this,"error");typeof r=="string"&&(r=JSON.parse(r)),this.success=r.success,this.results=this.convertValues(r.results,s),this.error=r.error}static createFrom(r={}){return new f(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.QueryResponse=f;class O{constructor(r={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_namespace");e(this,"resource_data");e(this,"metric_ids");e(this,"interval");typeof r=="string"&&(r=JSON.parse(r)),this.resource_key=r.resource_key,this.resource_id=r.resource_id,this.resource_namespace=r.resource_namespace,this.resource_data=r.resource_data,this.metric_ids=r.metric_ids,this.interval=r.interval}static createFrom(r={}){return new O(r)}}a.SubscribeRequest=O})(exports.metric||(exports.metric={}));exports.networker=void 0;(a=>{class h{constructor(n={}){e(this,"resource_id");e(this,"connection_id");typeof n=="string"&&(n=JSON.parse(n)),this.resource_id=n.resource_id,this.connection_id=n.connection_id}static createFrom(n={}){return new h(n)}}a.FindPortForwardSessionRequest=h;class d{constructor(n={}){e(this,"algorithm");e(this,"key");e(this,"enabled");typeof n=="string"&&(n=JSON.parse(n)),this.algorithm=n.algorithm,this.key=n.key,this.enabled=n.enabled}static createFrom(n={}){return new d(n)}}a.PortForwardSessionEncryption=d;class p{constructor(n={}){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 n=="string"&&(n=JSON.parse(n)),this.created_at=this.convertValues(n.created_at,exports.time.Time),this.updated_at=this.convertValues(n.updated_at,exports.time.Time),this.connection=n.connection,this.labels=n.labels,this.id=n.id,this.protocol=n.protocol,this.state=n.state,this.connection_type=n.connection_type,this.encryption=this.convertValues(n.encryption,d),this.local_port=n.local_port,this.remote_port=n.remote_port}static createFrom(n={}){return new p(n)}convertValues(n,l,i=!1){if(!n)return n;if(n.slice&&n.map)return n.map(s=>this.convertValues(s,l));if(typeof n=="object"){if(i){for(const s of Object.keys(n))n[s]=new l(n[s]);return n}return new l(n)}return n}}a.PortForwardSession=p;class o{constructor(n={}){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 n=="string"&&(n=JSON.parse(n)),this.connection=n.connection,this.labels=n.labels,this.params=n.params,this.protocol=n.protocol,this.connection_type=n.connection_type,this.encryption=this.convertValues(n.encryption,d),this.local_port=n.local_port,this.remote_port=n.remote_port}static createFrom(n={}){return new o(n)}convertValues(n,l,i=!1){if(!n)return n;if(n.slice&&n.map)return n.map(s=>this.convertValues(s,l));if(typeof n=="object"){if(i){for(const s of Object.keys(n))n[s]=new l(n[s]);return n}return new l(n)}return n}}a.PortForwardSessionOptions=o})(exports.networker||(exports.networker={}));exports.plugin=void 0;(a=>{class h{constructor(p={}){e(this,"DevMode");e(this,"DevModePath");e(this,"ExistingState");typeof p=="string"&&(p=JSON.parse(p)),this.DevMode=p.DevMode,this.DevModePath=p.DevModePath,this.ExistingState=this.convertValues(p.ExistingState,exports.types.PluginStateRecord)}static createFrom(p={}){return new h(p)}convertValues(p,o,m=!1){if(!p)return p;if(p.slice&&p.map)return p.map(n=>this.convertValues(n,o));if(typeof p=="object"){if(m){for(const n of Object.keys(p))p[n]=new o(p[n]);return p}return new o(p)}return p}}a.LoadPluginOptions=h})(exports.plugin||(exports.plugin={}));exports.pluginlog=void 0;(a=>{class h{constructor(m={}){e(this,"timestamp");e(this,"pluginID");e(this,"source");e(this,"level");e(this,"message");typeof m=="string"&&(m=JSON.parse(m)),this.timestamp=m.timestamp,this.pluginID=m.pluginID,this.source=m.source,this.level=m.level,this.message=m.message}static createFrom(m={}){return new h(m)}}a.LogEntry=h;class d{static createFrom(m={}){return new d(m)}constructor(m={}){typeof m=="string"&&(m=JSON.parse(m))}}a.Manager=d;class p{static createFrom(m={}){return new p(m)}constructor(m={}){typeof m=="string"&&(m=JSON.parse(m))}}a.PluginLogStream=p})(exports.pluginlog||(exports.pluginlog={}));exports.registry=void 0;(a=>{class h{constructor(l={}){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 l=="string"&&(l=JSON.parse(l)),this.id=l.id,this.name=l.name,this.description=l.description,this.icon_url=l.icon_url,this.category=l.category,this.tags=l.tags,this.license=l.license,this.official=l.official,this.featured=l.featured,this.download_count=l.download_count,this.average_rating=l.average_rating,this.review_count=l.review_count,this.repository=l.repository,this.url=l.url,this.publisher_name=l.publisher_name,this.installed=l.installed,this.installed_version=l.installed_version,this.latest_version=l.latest_version,this.update_available=l.update_available}static createFrom(l={}){return new h(l)}}a.AvailablePlugin=h;class d{constructor(l={}){e(this,"date");e(this,"count");typeof l=="string"&&(l=JSON.parse(l)),this.date=l.date,this.count=l.count}static createFrom(l={}){return new d(l)}}a.DailyStat=d;class p{constructor(l={}){e(this,"total");e(this,"last_month");e(this,"last_week");e(this,"daily_stats");typeof l=="string"&&(l=JSON.parse(l)),this.total=l.total,this.last_month=l.last_month,this.last_week=l.last_week,this.daily_stats=this.convertValues(l.daily_stats,d)}static createFrom(l={}){return new p(l)}convertValues(l,i,s=!1){if(!l)return l;if(l.slice&&l.map)return l.map(g=>this.convertValues(g,i));if(typeof l=="object"){if(s){for(const g of Object.keys(l))l[g]=new i(l[g]);return l}return new i(l)}return l}}a.DownloadStats=p;class o{constructor(l={}){e(this,"id");e(this,"user_id");e(this,"rating");e(this,"title");e(this,"body");e(this,"created_at");typeof l=="string"&&(l=JSON.parse(l)),this.id=l.id,this.user_id=l.user_id,this.rating=l.rating,this.title=l.title,this.body=l.body,this.created_at=l.created_at}static createFrom(l={}){return new o(l)}}a.Review=o;class m{constructor(l={}){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 l=="string"&&(l=JSON.parse(l)),this.version=l.version,this.description=l.description,this.changelog=l.changelog,this.min_ide_version=l.min_ide_version,this.max_ide_version=l.max_ide_version,this.capabilities=l.capabilities,this.created_at=l.created_at}static createFrom(l={}){return new m(l)}}a.VersionInfo=m})(exports.registry||(exports.registry={}));exports.resource=void 0;(a=>{(b=>{b[b.IDLE=0]="IDLE",b[b.SYNCING=1]="SYNCING",b[b.SYNCED=2]="SYNCED",b[b.ERROR=3]="ERROR",b[b.STOPPED=4]="STOPPED",b[b.FAILED=5]="FAILED",b[b.FORBIDDEN=6]="FORBIDDEN",b[b.SKIPPED=7]="SKIPPED"})(a.WatchState||(a.WatchState={})),(b=>{b[b.ON_CONNECT=0]="ON_CONNECT",b[b.ON_FIRST_QUERY=1]="ON_FIRST_QUERY",b[b.NEVER=2]="NEVER"})(a.SyncPolicy||(a.SyncPolicy={}));class h{constructor(t={}){e(this,"type");e(this,"description");e(this,"enum");e(this,"default");e(this,"minimum");e(this,"maximum");e(this,"properties");e(this,"required");typeof t=="string"&&(t=JSON.parse(t)),this.type=t.type,this.description=t.description,this.enum=t.enum,this.default=t.default,this.minimum=t.minimum,this.maximum=t.maximum,this.properties=this.convertValues(t.properties,h,!0),this.required=t.required}static createFrom(t={}){return new h(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.SchemaProperty=h;class d{constructor(t={}){e(this,"properties");e(this,"required");typeof t=="string"&&(t=JSON.parse(t)),this.properties=this.convertValues(t.properties,h,!0),this.required=t.required}static createFrom(t={}){return new d(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.Schema=d;class p{constructor(t={}){e(this,"id");e(this,"label");e(this,"description");e(this,"icon");e(this,"scope");e(this,"streaming");e(this,"paramsSchema");e(this,"outputSchema");e(this,"dangerous");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,this.paramsSchema=this.convertValues(t.paramsSchema,d),this.outputSchema=this.convertValues(t.outputSchema,d),this.dangerous=t.dangerous}static createFrom(t={}){return new p(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ActionDescriptor=p;class o{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 o(t)}}a.ActionInput=o;class m{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 m(t)}}a.ActionResult=m;class n{constructor(t={}){e(this,"input");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.input=t.input,this.namespace=t.namespace}static createFrom(t={}){return new n(t)}}a.ClientCreateInput=n;class l{constructor(t={}){e(this,"result");e(this,"success");e(this,"totalCount");e(this,"nextCursor");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success,this.totalCount=t.totalCount,this.nextCursor=t.nextCursor}static createFrom(t={}){return new l(t)}}a.ClientListResult=l;class i{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 i(t)}}a.ClientResult=i;class s{constructor(t={}){e(this,"input");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.input=t.input,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new s(t)}}a.ClientUpdateInput=s;class g{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 g(t)}}a.ResourceLink=g;class f{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,g),this.valueMap=t.valueMap}static createFrom(t={}){return new f(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ColumnDefinition=f;class O{constructor(t={}){e(this,"id");e(this,"namespace");e(this,"gracePeriodSeconds");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.namespace=t.namespace,this.gracePeriodSeconds=t.gracePeriodSeconds}static createFrom(t={}){return new O(t)}}a.DeleteInput=O;class j{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 j(t)}}a.EditorSchema=j;class r{constructor(t={}){e(this,"field");e(this,"operator");e(this,"value");typeof t=="string"&&(t=JSON.parse(t)),this.field=t.field,this.operator=t.operator,this.value=t.value}static createFrom(t={}){return new r(t)}}a.FilterPredicate=r;class v{constructor(t={}){e(this,"logic");e(this,"predicates");e(this,"groups");typeof t=="string"&&(t=JSON.parse(t)),this.logic=t.logic,this.predicates=this.convertValues(t.predicates,r),this.groups=this.convertValues(t.groups,v)}static createFrom(t={}){return new v(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.FilterExpression=v;class V{constructor(t={}){e(this,"path");e(this,"displayName");e(this,"description");e(this,"type");e(this,"operators");e(this,"allowedValues");e(this,"required");typeof t=="string"&&(t=JSON.parse(t)),this.path=t.path,this.displayName=t.displayName,this.description=t.description,this.type=t.type,this.operators=t.operators,this.allowedValues=t.allowedValues,this.required=t.required}static createFrom(t={}){return new V(t)}}a.FilterField=V;class u{constructor(t={}){e(this,"page");e(this,"pageSize");e(this,"cursor");typeof t=="string"&&(t=JSON.parse(t)),this.page=t.page,this.pageSize=t.pageSize,this.cursor=t.cursor}static createFrom(t={}){return new u(t)}}a.PaginationParams=u;class _{constructor(t={}){e(this,"field");e(this,"descending");typeof t=="string"&&(t=JSON.parse(t)),this.field=t.field,this.descending=t.descending}static createFrom(t={}){return new _(t)}}a.OrderField=_;class D{constructor(t={}){e(this,"filters");e(this,"textQuery");e(this,"namespaces");e(this,"order");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.filters=this.convertValues(t.filters,v),this.textQuery=t.textQuery,this.namespaces=t.namespaces,this.order=this.convertValues(t.order,_),this.pagination=this.convertValues(t.pagination,u)}static createFrom(t={}){return new D(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.FindInput=D;class R{constructor(t={}){e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new R(t)}}a.GetInput=R;class S{constructor(t={}){e(this,"type");e(this,"status");e(this,"reason");e(this,"message");e(this,"lastProbeTime");e(this,"lastTransitionTime");typeof t=="string"&&(t=JSON.parse(t)),this.type=t.type,this.status=t.status,this.reason=t.reason,this.message=t.message,this.lastProbeTime=this.convertValues(t.lastProbeTime,exports.time.Time),this.lastTransitionTime=this.convertValues(t.lastTransitionTime,exports.time.Time)}static createFrom(t={}){return new S(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.HealthCondition=S;class P{constructor(t={}){e(this,"namespaces");e(this,"order");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.namespaces=t.namespaces,this.order=this.convertValues(t.order,_),this.pagination=this.convertValues(t.pagination,u)}static createFrom(t={}){return new P(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ListInput=P;class N{constructor(t={}){e(this,"method");e(this,"fieldPath");e(this,"ownerRefKind");e(this,"labelSelector");typeof t=="string"&&(t=JSON.parse(t)),this.method=t.method,this.fieldPath=t.fieldPath,this.ownerRefKind=t.ownerRefKind,this.labelSelector=t.labelSelector}static createFrom(t={}){return new N(t)}}a.RelationshipExtractor=N;class F{constructor(t={}){e(this,"type");e(this,"targetResourceKey");e(this,"label");e(this,"inverseLabel");e(this,"cardinality");e(this,"extractor");typeof t=="string"&&(t=JSON.parse(t)),this.type=t.type,this.targetResourceKey=t.targetResourceKey,this.label=t.label,this.inverseLabel=t.inverseLabel,this.cardinality=t.cardinality,this.extractor=this.convertValues(t.extractor,N)}static createFrom(t={}){return new F(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.RelationshipDescriptor=F;class k{constructor(t={}){e(this,"pluginId");e(this,"connectionId");e(this,"resourceKey");e(this,"id");e(this,"namespace");e(this,"displayName");typeof t=="string"&&(t=JSON.parse(t)),this.pluginId=t.pluginId,this.connectionId=t.connectionId,this.resourceKey=t.resourceKey,this.id=t.id,this.namespace=t.namespace,this.displayName=t.displayName}static createFrom(t={}){return new k(t)}}a.ResourceRef=k;class I{constructor(t={}){e(this,"descriptor");e(this,"targets");typeof t=="string"&&(t=JSON.parse(t)),this.descriptor=this.convertValues(t.descriptor,F),this.targets=this.convertValues(t.targets,k)}static createFrom(t={}){return new I(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResolvedRelationship=I;class J{constructor(t={}){e(this,"level");e(this,"expectedCount");e(this,"defaultPageSize");typeof t=="string"&&(t=JSON.parse(t)),this.level=t.level,this.expectedCount=t.expectedCount,this.defaultPageSize=t.defaultPageSize}static createFrom(t={}){return new J(t)}}a.ScaleHint=J;class T{constructor(t={}){e(this,"canGet");e(this,"canList");e(this,"canFind");e(this,"canCreate");e(this,"canUpdate");e(this,"canDelete");e(this,"watchable");e(this,"filterable");e(this,"searchable");e(this,"hasActions");e(this,"hasSchema");e(this,"namespaceScoped");e(this,"hasRelationships");e(this,"hasHealth");e(this,"hasEvents");e(this,"scaleHint");typeof t=="string"&&(t=JSON.parse(t)),this.canGet=t.canGet,this.canList=t.canList,this.canFind=t.canFind,this.canCreate=t.canCreate,this.canUpdate=t.canUpdate,this.canDelete=t.canDelete,this.watchable=t.watchable,this.filterable=t.filterable,this.searchable=t.searchable,this.hasActions=t.hasActions,this.hasSchema=t.hasSchema,this.namespaceScoped=t.namespaceScoped,this.hasRelationships=t.hasRelationships,this.hasHealth=t.hasHealth,this.hasEvents=t.hasEvents,this.scaleHint=this.convertValues(t.scaleHint,J)}static createFrom(t={}){return new T(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResourceCapabilities=T;class A{constructor(t={}){e(this,"id_accessor");e(this,"namespace_accessor");e(this,"memoizer_accessor");e(this,"columnDefs");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,f)}static createFrom(t={}){return new A(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResourceDefinition=A;class C{constructor(t={}){e(this,"type");e(this,"reason");e(this,"message");e(this,"source");e(this,"count");e(this,"firstSeen");e(this,"lastSeen");typeof t=="string"&&(t=JSON.parse(t)),this.type=t.type,this.reason=t.reason,this.message=t.message,this.source=t.source,this.count=t.count,this.firstSeen=this.convertValues(t.firstSeen,exports.time.Time),this.lastSeen=this.convertValues(t.lastSeen,exports.time.Time)}static createFrom(t={}){return new C(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResourceEvent=C;class L{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 L(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResourceGroup=L;class M{constructor(t={}){e(this,"status");e(this,"reason");e(this,"message");e(this,"since");e(this,"conditions");typeof t=="string"&&(t=JSON.parse(t)),this.status=t.status,this.reason=t.reason,this.message=t.message,this.since=this.convertValues(t.since,exports.time.Time),this.conditions=this.convertValues(t.conditions,S)}static createFrom(t={}){return new M(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResourceHealth=M;class x{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 x(t)}}a.ResourceMeta=x;class E{constructor(t={}){e(this,"partitions");typeof t=="string"&&(t=JSON.parse(t)),this.partitions=t.partitions}static createFrom(t={}){return new E(t)}}a.WatchScope=E;class U{constructor(t={}){e(this,"connectionId");e(this,"resources");e(this,"resourceCounts");e(this,"scope");typeof t=="string"&&(t=JSON.parse(t)),this.connectionId=t.connectionId,this.resources=t.resources,this.resourceCounts=t.resourceCounts,this.scope=this.convertValues(t.scope,E)}static createFrom(t={}){return new U(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.WatchConnectionSummary=U})(exports.resource||(exports.resource={}));exports.settings=void 0;(a=>{(m=>{m.TEXT="text",m.SELECT="select",m.MULTISELECT="multiselect",m.INTEGER="integer",m.FLOAT="float",m.TOGGLE="toggle",m.COLOR="color",m.DATETIME="datetime",m.PASSWORD="password"})(a.SettingType||(a.SettingType={}));class h{constructor(n={}){e(this,"enabled");e(this,"allowFolders");e(this,"extensions");e(this,"multiple");e(this,"relative");e(this,"defaultPath");typeof n=="string"&&(n=JSON.parse(n)),this.enabled=n.enabled,this.allowFolders=n.allowFolders,this.extensions=n.extensions,this.multiple=n.multiple,this.relative=n.relative,this.defaultPath=n.defaultPath}static createFrom(n={}){return new h(n)}}a.SettingFileSelection=h;class d{constructor(n={}){e(this,"label");e(this,"description");e(this,"value");typeof n=="string"&&(n=JSON.parse(n)),this.label=n.label,this.description=n.description,this.value=n.value}static createFrom(n={}){return new d(n)}}a.SettingOption=d;class p{constructor(n={}){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 n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.label=n.label,this.description=n.description,this.type=n.type,this.value=n.value,this.default=n.default,this.options=this.convertValues(n.options,d),this.fileSelection=this.convertValues(n.fileSelection,h),this.sensitive=n.sensitive}static createFrom(n={}){return new p(n)}convertValues(n,l,i=!1){if(!n)return n;if(n.slice&&n.map)return n.map(s=>this.convertValues(s,l));if(typeof n=="object"){if(i){for(const s of Object.keys(n))n[s]=new l(n[s]);return n}return new l(n)}return n}}a.Setting=p;class o{constructor(n={}){e(this,"settings");e(this,"id");e(this,"label");e(this,"description");e(this,"icon");typeof n=="string"&&(n=JSON.parse(n)),this.settings=this.convertValues(n.settings,p,!0),this.id=n.id,this.label=n.label,this.description=n.description,this.icon=n.icon}static createFrom(n={}){return new o(n)}convertValues(n,l,i=!1){if(!n)return n;if(n.slice&&n.map)return n.map(s=>this.convertValues(s,l));if(typeof n=="object"){if(i){for(const s of Object.keys(n))n[s]=new l(n[s]);return n}return new l(n)}return n}}a.Category=o})(exports.settings||(exports.settings={}));exports.time=void 0;(a=>{class h{static createFrom(p={}){return new h(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p))}}a.Time=h})(exports.time||(exports.time={}));exports.trivy=void 0;(a=>{(p=>{p.VULN="vuln",p.MISCONFIG="misconfig",p.SECRET="secret",p.LICENSE="license"})(a.Scanner||(a.Scanner={})),(p=>{p.CONFIG="config",p.FILESYSTEM="fs",p.IMAGE="image",p.KUBERNETES="kubernetes",p.REPOSITORY="repository",p.ROOTFS="rootfs",p.SBOM="sbom"})(a.Command||(a.Command={}));class h{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 h(o)}}a.ScanOptions=h;class d{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 d(o)}convertValues(o,m,n=!1){if(!o)return o;if(o.slice&&o.map)return o.map(l=>this.convertValues(l,m));if(typeof o=="object"){if(n){for(const l of Object.keys(o))o[l]=new m(o[l]);return o}return new m(o)}return o}}a.ScanResult=d})(exports.trivy||(exports.trivy={}));exports.types=void 0;(a=>{(l=>{l.UNKNOWN="UNKNOWN",l.CONNECTED="CONNECTED",l.DISCONNECTED="DISCONNECTED",l.PENDING="PENDING",l.FAILED="FAILED",l.ERROR="ERROR",l.UNAUTHORIZED="UNAUTHORIZED",l.FORBIDDEN="FORBIDDEN",l.BAD_REQUEST="BAD_REQUEST",l.NOT_FOUND="NOT_FOUND",l.TIMEOUT="TIMEOUT",l.UNAVAILABLE="UNAVAILABLE",l.REQUEST_ENTITY_TOO_LARGE="REQUEST_ENTITY_TOO_LARGE"})(a.ConnectionStatusCode||(a.ConnectionStatusCode={}));class h{constructor(i={}){e(this,"enabled");e(this,"triggers");e(this,"retry");typeof i=="string"&&(i=JSON.parse(i)),this.enabled=i.enabled,this.triggers=i.triggers,this.retry=i.retry}static createFrom(i={}){return new h(i)}}a.ConnectionAutoConnect=h;class d{constructor(i={}){e(this,"auto_connect");typeof i=="string"&&(i=JSON.parse(i)),this.auto_connect=this.convertValues(i.auto_connect,h)}static createFrom(i={}){return new d(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.ConnectionLifecycle=d;class p{constructor(i={}){e(this,"last_refresh");e(this,"data");e(this,"labels");e(this,"lifecycle");e(this,"id");e(this,"uid");e(this,"name");e(this,"description");e(this,"avatar");e(this,"expiry_time");e(this,"Client");typeof i=="string"&&(i=JSON.parse(i)),this.last_refresh=this.convertValues(i.last_refresh,exports.time.Time),this.data=i.data,this.labels=i.labels,this.lifecycle=this.convertValues(i.lifecycle,d),this.id=i.id,this.uid=i.uid,this.name=i.name,this.description=i.description,this.avatar=i.avatar,this.expiry_time=i.expiry_time,this.Client=i.Client}static createFrom(i={}){return new p(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.Connection=p;class o{constructor(i={}){e(this,"connection");e(this,"status");e(this,"error");e(this,"details");typeof i=="string"&&(i=JSON.parse(i)),this.connection=this.convertValues(i.connection,p),this.status=i.status,this.error=i.error,this.details=i.details}static createFrom(i={}){return new o(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.ConnectionStatus=o;class m{constructor(i={}){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 i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.metadata=this.convertValues(i.metadata,exports.config.PluginMeta),this.phase=i.phase,this.enabled=i.enabled,this.devMode=i.devMode,this.devPath=i.devPath,this.capabilities=i.capabilities,this.lastError=i.lastError}static createFrom(i={}){return new m(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.PluginInfo=m;class n{constructor(i={}){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 i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.phase=i.phase,this.metadata=this.convertValues(i.metadata,exports.config.PluginMeta),this.enabled=i.enabled,this.devMode=i.devMode,this.devPath=i.devPath,this.lastError=i.lastError,this.errorCount=i.errorCount,this.installedAt=this.convertValues(i.installedAt,exports.time.Time)}static createFrom(i={}){return new n(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.PluginStateRecord=n})(exports.types||(exports.types={}));exports.ui=void 0;(a=>{class h{constructor(n={}){e(this,"plugin");typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin}static createFrom(n={}){return new h(n)}}a.GetPluginComponentsInput=h;class d{constructor(n={}){e(this,"plugin");e(this,"resource");e(this,"area");typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.area=n.area}static createFrom(n={}){return new d(n)}}a.GetResourceAreaComponentInput=d;class p{constructor(n={}){e(this,"plugin");e(this,"resource");typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource}static createFrom(n={}){return new p(n)}}a.GetResourceComponentsInput=p;class o{constructor(n={}){e(this,"owner");e(this,"name");e(this,"plugin");e(this,"resource");e(this,"area");e(this,"extension");typeof n=="string"&&(n=JSON.parse(n)),this.owner=n.owner,this.name=n.name,this.plugin=n.plugin,this.resource=n.resource,this.area=n.area,this.extension=n.extension}static createFrom(n={}){return new o(n)}}a.ResourceComponent=o})(exports.ui||(exports.ui={}));exports.utils=void 0;(a=>{class h{constructor(p={}){e(this,"filename");e(this,"contents");typeof p=="string"&&(p=JSON.parse(p)),this.filename=p.filename,this.contents=p.contents}static createFrom(p={}){return new h(p)}}a.GetLanguageInput=h})(exports.utils||(exports.utils={}));
|
|
1
|
+
"use strict";var G=Object.defineProperty;var K=(a,h,d)=>h in a?G(a,h,{enumerable:!0,configurable:!0,writable:!0,value:d}):a[h]=d;var e=(a,h,d)=>K(a,typeof h!="symbol"?h+"":h,d);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.config=void 0;(a=>{class h{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 h(s)}}a.PluginAuthor=h;class d{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 d(s)}}a.PluginResourceComponent=d;class p{constructor(s={}){e(this,"resource");typeof s=="string"&&(s=JSON.parse(s)),this.resource=this.convertValues(s.resource,d)}static createFrom(s={}){return new p(s)}convertValues(s,g,f=!1){if(!s)return s;if(s.slice&&s.map)return s.map(O=>this.convertValues(O,g));if(typeof s=="object"){if(f){for(const O of Object.keys(s))s[O]=new g(s[O]);return s}return new g(s)}return s}}a.PluginComponents=p;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 m{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 m(s)}}a.PluginThemeColors=m;class n{constructor(s={}){e(this,"colors");typeof s=="string"&&(s=JSON.parse(s)),this.colors=this.convertValues(s.colors,m)}static createFrom(s={}){return new n(s)}convertValues(s,g,f=!1){if(!s)return s;if(s.slice&&s.map)return s.map(O=>this.convertValues(O,g));if(typeof s=="object"){if(f){for(const O of Object.keys(s))s[O]=new g(s[O]);return s}return new g(s)}return s}}a.PluginTheme=n;class l{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,h),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,n),this.components=this.convertValues(s.components,p),this.schema_version=s.schema_version,this.sdk_protocol_version=s.sdk_protocol_version}static createFrom(s={}){return new l(s)}convertValues(s,g,f=!1){if(!s)return s;if(s.slice&&s.map)return s.map(O=>this.convertValues(O,g));if(typeof s=="object"){if(f){for(const O of Object.keys(s))s[O]=new g(s[O]);return s}return new g(s)}return s}}a.PluginMeta=l})(exports.config||(exports.config={}));exports.devserver=void 0;(a=>{class h{constructor(n={}){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 n=="string"&&(n=JSON.parse(n)),this.pid=n.pid,this.protocol=n.protocol,this.protocolVersion=n.protocolVersion,this.addr=n.addr,this.vitePort=n.vitePort,this.pluginId=n.pluginId,this.version=n.version,this.startedAt=n.startedAt}static createFrom(n={}){return new h(n)}}a.DevInfoFile=h;class d{static createFrom(n={}){return new d(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n))}}a.DevServerManager=d;class p{constructor(n={}){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 n=="string"&&(n=JSON.parse(n)),this.pluginID=n.pluginID,this.mode=n.mode,this.devPath=n.devPath,this.vitePort=n.vitePort,this.viteURL=n.viteURL,this.viteStatus=n.viteStatus,this.goStatus=n.goStatus,this.lastBuildDuration=n.lastBuildDuration,this.lastBuildTime=n.lastBuildTime,this.lastError=n.lastError,this.grpcConnected=n.grpcConnected}static createFrom(n={}){return new p(n)}}a.DevServerState=p;class o{constructor(n={}){e(this,"timestamp");e(this,"source");e(this,"level");e(this,"message");e(this,"pluginID");typeof n=="string"&&(n=JSON.parse(n)),this.timestamp=n.timestamp,this.source=n.source,this.level=n.level,this.message=n.message,this.pluginID=n.pluginID}static createFrom(n={}){return new o(n)}}a.LogEntry=o})(exports.devserver||(exports.devserver={}));exports.exec=void 0;(a=>{class h{constructor(i={}){e(this,"label");e(this,"label_selector");e(this,"paths");e(this,"selectors");typeof i=="string"&&(i=JSON.parse(i)),this.label=i.label,this.label_selector=i.label_selector,this.paths=i.paths,this.selectors=i.selectors}static createFrom(i={}){return new h(i)}}a.ActionTargetBuilder=h;class d{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 d(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.Session=d;class p{constructor(i={}){e(this,"session");e(this,"buffer");typeof i=="string"&&(i=JSON.parse(i)),this.session=this.convertValues(i.session,d),this.buffer=i.buffer}static createFrom(i={}){return new p(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.AttachSessionResult=p;class o{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 o(i)}}a.CreateTerminalOptions=o;class m{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,h),this.default_command=i.default_command}static createFrom(i={}){return new m(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.Handler=m;class n{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 n(i)}}a.SessionOptions=n})(exports.exec||(exports.exec={}));exports.logs=void 0;(a=>{class h{constructor(i={}){e(this,"label");e(this,"label_selector");e(this,"paths");e(this,"selectors");typeof i=="string"&&(i=JSON.parse(i)),this.label=i.label,this.label_selector=i.label_selector,this.paths=i.paths,this.selectors=i.selectors}static createFrom(i={}){return new h(i)}}a.ActionTargetBuilder=h;class d{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 d(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.LogSessionOptions=d;class p{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,d)}static createFrom(i={}){return new p(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.CreateSessionOptions=p;class o{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,h)}static createFrom(i={}){return new o(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.Handler=o;class m{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 m(i)}}a.LogSource=m;class n{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,d),this.status=i.status,this.active_sources=this.convertValues(i.active_sources,m),this.created_at=this.convertValues(i.created_at,exports.time.Time)}static createFrom(i={}){return new n(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.LogSession=n})(exports.logs||(exports.logs={}));exports.main=void 0;(a=>{class h{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 h(o)}}a.FileFilter=h;class d{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,h),this.showHiddenFiles=o.showHiddenFiles,this.canCreateDirectories=o.canCreateDirectories,this.resolvesAliases=o.resolvesAliases,this.treatPackagesAsDirectories=o.treatPackagesAsDirectories}static createFrom(o={}){return new d(o)}convertValues(o,m,n=!1){if(!o)return o;if(o.slice&&o.map)return o.map(l=>this.convertValues(l,m));if(typeof o=="object"){if(n){for(const l of Object.keys(o))o[l]=new m(o[l]);return o}return new m(o)}return o}}a.FileDialogOptions=d})(exports.main||(exports.main={}));exports.metric=void 0;(a=>{class h{constructor(r={}){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 r=="string"&&(r=JSON.parse(r)),this.metric_id=r.metric_id,this.min=r.min,this.max=r.max,this.avg=r.avg,this.sum=r.sum,this.p50=r.p50,this.p90=r.p90,this.p99=r.p99,this.count=r.count,this.window=r.window,this.labels=r.labels}static createFrom(r={}){return new h(r)}}a.AggregateValue=h;class d{constructor(r={}){e(this,"min");e(this,"max");e(this,"color");typeof r=="string"&&(r=JSON.parse(r)),this.min=r.min,this.max=r.max,this.color=r.color}static createFrom(r={}){return new d(r)}}a.ColorRange=d;class p{constructor(r={}){e(this,"metric_id");e(this,"value");e(this,"timestamp");e(this,"labels");typeof r=="string"&&(r=JSON.parse(r)),this.metric_id=r.metric_id,this.value=r.value,this.timestamp=this.convertValues(r.timestamp,exports.time.Time),this.labels=r.labels}static createFrom(r={}){return new p(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.CurrentValue=p;class o{constructor(r={}){e(this,"timestamp");e(this,"value");e(this,"labels");typeof r=="string"&&(r=JSON.parse(r)),this.timestamp=this.convertValues(r.timestamp,exports.time.Time),this.value=r.value,this.labels=r.labels}static createFrom(r={}){return new o(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.DataPoint=o;class m{constructor(r={}){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 r=="string"&&(r=JSON.parse(r)),this.id=r.id,this.name=r.name,this.unit=r.unit,this.icon=r.icon,this.color_ranges=this.convertValues(r.color_ranges,d),this.format_string=r.format_string,this.supported_shapes=r.supported_shapes,this.chart_group=r.chart_group}static createFrom(r={}){return new m(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.MetricDescriptor=m;class n{constructor(r={}){e(this,"resource");e(this,"metrics");typeof r=="string"&&(r=JSON.parse(r)),this.resource=r.resource,this.metrics=this.convertValues(r.metrics,m)}static createFrom(r={}){return new n(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.Handler=n;class l{constructor(r={}){e(this,"plugin_id");e(this,"provider_id");e(this,"name");e(this,"icon");e(this,"description");e(this,"handlers");typeof r=="string"&&(r=JSON.parse(r)),this.plugin_id=r.plugin_id,this.provider_id=r.provider_id,this.name=r.name,this.icon=r.icon,this.description=r.description,this.handlers=this.convertValues(r.handlers,n)}static createFrom(r={}){return new l(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.MetricProviderSummary=l;class i{constructor(r={}){e(this,"metric_id");e(this,"data_points");e(this,"labels");typeof r=="string"&&(r=JSON.parse(r)),this.metric_id=r.metric_id,this.data_points=this.convertValues(r.data_points,o),this.labels=r.labels}static createFrom(r={}){return new i(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.TimeSeries=i;class s{constructor(r={}){e(this,"time_series");e(this,"current_value");e(this,"aggregate_value");typeof r=="string"&&(r=JSON.parse(r)),this.time_series=this.convertValues(r.time_series,i),this.current_value=this.convertValues(r.current_value,p),this.aggregate_value=this.convertValues(r.aggregate_value,h)}static createFrom(r={}){return new s(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.MetricResult=s;class g{constructor(r={}){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 r=="string"&&(r=JSON.parse(r)),this.resource_key=r.resource_key,this.resource_id=r.resource_id,this.resource_namespace=r.resource_namespace,this.resource_data=r.resource_data,this.metric_ids=r.metric_ids,this.shape=r.shape,this.start_time=this.convertValues(r.start_time,exports.time.Time),this.end_time=this.convertValues(r.end_time,exports.time.Time),this.step=r.step,this.params=r.params}static createFrom(r={}){return new g(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.QueryRequest=g;class f{constructor(r={}){e(this,"success");e(this,"results");e(this,"error");typeof r=="string"&&(r=JSON.parse(r)),this.success=r.success,this.results=this.convertValues(r.results,s),this.error=r.error}static createFrom(r={}){return new f(r)}convertValues(r,v,V=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(V){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.QueryResponse=f;class O{constructor(r={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_namespace");e(this,"resource_data");e(this,"metric_ids");e(this,"interval");typeof r=="string"&&(r=JSON.parse(r)),this.resource_key=r.resource_key,this.resource_id=r.resource_id,this.resource_namespace=r.resource_namespace,this.resource_data=r.resource_data,this.metric_ids=r.metric_ids,this.interval=r.interval}static createFrom(r={}){return new O(r)}}a.SubscribeRequest=O})(exports.metric||(exports.metric={}));exports.networker=void 0;(a=>{class h{constructor(n={}){e(this,"resource_id");e(this,"connection_id");typeof n=="string"&&(n=JSON.parse(n)),this.resource_id=n.resource_id,this.connection_id=n.connection_id}static createFrom(n={}){return new h(n)}}a.FindPortForwardSessionRequest=h;class d{constructor(n={}){e(this,"algorithm");e(this,"key");e(this,"enabled");typeof n=="string"&&(n=JSON.parse(n)),this.algorithm=n.algorithm,this.key=n.key,this.enabled=n.enabled}static createFrom(n={}){return new d(n)}}a.PortForwardSessionEncryption=d;class p{constructor(n={}){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 n=="string"&&(n=JSON.parse(n)),this.created_at=this.convertValues(n.created_at,exports.time.Time),this.updated_at=this.convertValues(n.updated_at,exports.time.Time),this.connection=n.connection,this.labels=n.labels,this.id=n.id,this.protocol=n.protocol,this.state=n.state,this.connection_type=n.connection_type,this.encryption=this.convertValues(n.encryption,d),this.local_port=n.local_port,this.remote_port=n.remote_port}static createFrom(n={}){return new p(n)}convertValues(n,l,i=!1){if(!n)return n;if(n.slice&&n.map)return n.map(s=>this.convertValues(s,l));if(typeof n=="object"){if(i){for(const s of Object.keys(n))n[s]=new l(n[s]);return n}return new l(n)}return n}}a.PortForwardSession=p;class o{constructor(n={}){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 n=="string"&&(n=JSON.parse(n)),this.connection=n.connection,this.labels=n.labels,this.params=n.params,this.protocol=n.protocol,this.connection_type=n.connection_type,this.encryption=this.convertValues(n.encryption,d),this.local_port=n.local_port,this.remote_port=n.remote_port}static createFrom(n={}){return new o(n)}convertValues(n,l,i=!1){if(!n)return n;if(n.slice&&n.map)return n.map(s=>this.convertValues(s,l));if(typeof n=="object"){if(i){for(const s of Object.keys(n))n[s]=new l(n[s]);return n}return new l(n)}return n}}a.PortForwardSessionOptions=o})(exports.networker||(exports.networker={}));exports.plugin=void 0;(a=>{class h{constructor(p={}){e(this,"DevMode");e(this,"DevModePath");e(this,"ExistingState");typeof p=="string"&&(p=JSON.parse(p)),this.DevMode=p.DevMode,this.DevModePath=p.DevModePath,this.ExistingState=this.convertValues(p.ExistingState,exports.types.PluginStateRecord)}static createFrom(p={}){return new h(p)}convertValues(p,o,m=!1){if(!p)return p;if(p.slice&&p.map)return p.map(n=>this.convertValues(n,o));if(typeof p=="object"){if(m){for(const n of Object.keys(p))p[n]=new o(p[n]);return p}return new o(p)}return p}}a.LoadPluginOptions=h})(exports.plugin||(exports.plugin={}));exports.pluginlog=void 0;(a=>{class h{constructor(m={}){e(this,"timestamp");e(this,"pluginID");e(this,"source");e(this,"level");e(this,"message");typeof m=="string"&&(m=JSON.parse(m)),this.timestamp=m.timestamp,this.pluginID=m.pluginID,this.source=m.source,this.level=m.level,this.message=m.message}static createFrom(m={}){return new h(m)}}a.LogEntry=h;class d{static createFrom(m={}){return new d(m)}constructor(m={}){typeof m=="string"&&(m=JSON.parse(m))}}a.Manager=d;class p{static createFrom(m={}){return new p(m)}constructor(m={}){typeof m=="string"&&(m=JSON.parse(m))}}a.PluginLogStream=p})(exports.pluginlog||(exports.pluginlog={}));exports.registry=void 0;(a=>{class h{constructor(l={}){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 l=="string"&&(l=JSON.parse(l)),this.id=l.id,this.name=l.name,this.description=l.description,this.icon_url=l.icon_url,this.category=l.category,this.tags=l.tags,this.license=l.license,this.official=l.official,this.featured=l.featured,this.download_count=l.download_count,this.average_rating=l.average_rating,this.review_count=l.review_count,this.repository=l.repository,this.url=l.url,this.publisher_name=l.publisher_name,this.installed=l.installed,this.installed_version=l.installed_version,this.latest_version=l.latest_version,this.update_available=l.update_available}static createFrom(l={}){return new h(l)}}a.AvailablePlugin=h;class d{constructor(l={}){e(this,"date");e(this,"count");typeof l=="string"&&(l=JSON.parse(l)),this.date=l.date,this.count=l.count}static createFrom(l={}){return new d(l)}}a.DailyStat=d;class p{constructor(l={}){e(this,"total");e(this,"last_month");e(this,"last_week");e(this,"daily_stats");typeof l=="string"&&(l=JSON.parse(l)),this.total=l.total,this.last_month=l.last_month,this.last_week=l.last_week,this.daily_stats=this.convertValues(l.daily_stats,d)}static createFrom(l={}){return new p(l)}convertValues(l,i,s=!1){if(!l)return l;if(l.slice&&l.map)return l.map(g=>this.convertValues(g,i));if(typeof l=="object"){if(s){for(const g of Object.keys(l))l[g]=new i(l[g]);return l}return new i(l)}return l}}a.DownloadStats=p;class o{constructor(l={}){e(this,"id");e(this,"user_id");e(this,"rating");e(this,"title");e(this,"body");e(this,"created_at");typeof l=="string"&&(l=JSON.parse(l)),this.id=l.id,this.user_id=l.user_id,this.rating=l.rating,this.title=l.title,this.body=l.body,this.created_at=l.created_at}static createFrom(l={}){return new o(l)}}a.Review=o;class m{constructor(l={}){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 l=="string"&&(l=JSON.parse(l)),this.version=l.version,this.description=l.description,this.changelog=l.changelog,this.min_ide_version=l.min_ide_version,this.max_ide_version=l.max_ide_version,this.capabilities=l.capabilities,this.created_at=l.created_at}static createFrom(l={}){return new m(l)}}a.VersionInfo=m})(exports.registry||(exports.registry={}));exports.resource=void 0;(a=>{(b=>{b[b.IDLE=0]="IDLE",b[b.SYNCING=1]="SYNCING",b[b.SYNCED=2]="SYNCED",b[b.ERROR=3]="ERROR",b[b.STOPPED=4]="STOPPED",b[b.FAILED=5]="FAILED",b[b.FORBIDDEN=6]="FORBIDDEN",b[b.SKIPPED=7]="SKIPPED"})(a.WatchState||(a.WatchState={})),(b=>{b[b.ON_CONNECT=0]="ON_CONNECT",b[b.ON_FIRST_QUERY=1]="ON_FIRST_QUERY",b[b.NEVER=2]="NEVER"})(a.SyncPolicy||(a.SyncPolicy={}));class h{constructor(t={}){e(this,"type");e(this,"description");e(this,"enum");e(this,"default");e(this,"minimum");e(this,"maximum");e(this,"properties");e(this,"required");typeof t=="string"&&(t=JSON.parse(t)),this.type=t.type,this.description=t.description,this.enum=t.enum,this.default=t.default,this.minimum=t.minimum,this.maximum=t.maximum,this.properties=this.convertValues(t.properties,h,!0),this.required=t.required}static createFrom(t={}){return new h(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.SchemaProperty=h;class d{constructor(t={}){e(this,"properties");e(this,"required");typeof t=="string"&&(t=JSON.parse(t)),this.properties=this.convertValues(t.properties,h,!0),this.required=t.required}static createFrom(t={}){return new d(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.Schema=d;class p{constructor(t={}){e(this,"id");e(this,"label");e(this,"description");e(this,"icon");e(this,"scope");e(this,"streaming");e(this,"paramsSchema");e(this,"outputSchema");e(this,"dangerous");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,this.paramsSchema=this.convertValues(t.paramsSchema,d),this.outputSchema=this.convertValues(t.outputSchema,d),this.dangerous=t.dangerous}static createFrom(t={}){return new p(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ActionDescriptor=p;class o{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 o(t)}}a.ActionInput=o;class m{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 m(t)}}a.ActionResult=m;class n{constructor(t={}){e(this,"input");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.input=t.input,this.namespace=t.namespace}static createFrom(t={}){return new n(t)}}a.ClientCreateInput=n;class l{constructor(t={}){e(this,"result");e(this,"success");e(this,"totalCount");e(this,"nextCursor");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success,this.totalCount=t.totalCount,this.nextCursor=t.nextCursor}static createFrom(t={}){return new l(t)}}a.ClientListResult=l;class i{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 i(t)}}a.ClientResult=i;class s{constructor(t={}){e(this,"input");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.input=t.input,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new s(t)}}a.ClientUpdateInput=s;class g{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 g(t)}}a.ResourceLink=g;class f{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,g),this.valueMap=t.valueMap}static createFrom(t={}){return new f(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ColumnDefinition=f;class O{constructor(t={}){e(this,"id");e(this,"namespace");e(this,"gracePeriodSeconds");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.namespace=t.namespace,this.gracePeriodSeconds=t.gracePeriodSeconds}static createFrom(t={}){return new O(t)}}a.DeleteInput=O;class j{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 j(t)}}a.EditorSchema=j;class r{constructor(t={}){e(this,"field");e(this,"operator");e(this,"value");typeof t=="string"&&(t=JSON.parse(t)),this.field=t.field,this.operator=t.operator,this.value=t.value}static createFrom(t={}){return new r(t)}}a.FilterPredicate=r;class v{constructor(t={}){e(this,"logic");e(this,"predicates");e(this,"groups");typeof t=="string"&&(t=JSON.parse(t)),this.logic=t.logic,this.predicates=this.convertValues(t.predicates,r),this.groups=this.convertValues(t.groups,v)}static createFrom(t={}){return new v(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.FilterExpression=v;class V{constructor(t={}){e(this,"path");e(this,"displayName");e(this,"description");e(this,"type");e(this,"operators");e(this,"allowedValues");e(this,"required");typeof t=="string"&&(t=JSON.parse(t)),this.path=t.path,this.displayName=t.displayName,this.description=t.description,this.type=t.type,this.operators=t.operators,this.allowedValues=t.allowedValues,this.required=t.required}static createFrom(t={}){return new V(t)}}a.FilterField=V;class u{constructor(t={}){e(this,"page");e(this,"pageSize");e(this,"cursor");typeof t=="string"&&(t=JSON.parse(t)),this.page=t.page,this.pageSize=t.pageSize,this.cursor=t.cursor}static createFrom(t={}){return new u(t)}}a.PaginationParams=u;class _{constructor(t={}){e(this,"field");e(this,"descending");typeof t=="string"&&(t=JSON.parse(t)),this.field=t.field,this.descending=t.descending}static createFrom(t={}){return new _(t)}}a.OrderField=_;class D{constructor(t={}){e(this,"filters");e(this,"textQuery");e(this,"namespaces");e(this,"order");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.filters=this.convertValues(t.filters,v),this.textQuery=t.textQuery,this.namespaces=t.namespaces,this.order=this.convertValues(t.order,_),this.pagination=this.convertValues(t.pagination,u)}static createFrom(t={}){return new D(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.FindInput=D;class R{constructor(t={}){e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new R(t)}}a.GetInput=R;class S{constructor(t={}){e(this,"type");e(this,"status");e(this,"reason");e(this,"message");e(this,"lastProbeTime");e(this,"lastTransitionTime");typeof t=="string"&&(t=JSON.parse(t)),this.type=t.type,this.status=t.status,this.reason=t.reason,this.message=t.message,this.lastProbeTime=this.convertValues(t.lastProbeTime,exports.time.Time),this.lastTransitionTime=this.convertValues(t.lastTransitionTime,exports.time.Time)}static createFrom(t={}){return new S(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.HealthCondition=S;class P{constructor(t={}){e(this,"namespaces");e(this,"order");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.namespaces=t.namespaces,this.order=this.convertValues(t.order,_),this.pagination=this.convertValues(t.pagination,u)}static createFrom(t={}){return new P(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ListInput=P;class N{constructor(t={}){e(this,"method");e(this,"fieldPath");e(this,"ownerRefKind");e(this,"labelSelector");typeof t=="string"&&(t=JSON.parse(t)),this.method=t.method,this.fieldPath=t.fieldPath,this.ownerRefKind=t.ownerRefKind,this.labelSelector=t.labelSelector}static createFrom(t={}){return new N(t)}}a.RelationshipExtractor=N;class F{constructor(t={}){e(this,"type");e(this,"targetResourceKey");e(this,"label");e(this,"inverseLabel");e(this,"cardinality");e(this,"extractor");typeof t=="string"&&(t=JSON.parse(t)),this.type=t.type,this.targetResourceKey=t.targetResourceKey,this.label=t.label,this.inverseLabel=t.inverseLabel,this.cardinality=t.cardinality,this.extractor=this.convertValues(t.extractor,N)}static createFrom(t={}){return new F(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.RelationshipDescriptor=F;class k{constructor(t={}){e(this,"pluginId");e(this,"connectionId");e(this,"resourceKey");e(this,"id");e(this,"namespace");e(this,"displayName");typeof t=="string"&&(t=JSON.parse(t)),this.pluginId=t.pluginId,this.connectionId=t.connectionId,this.resourceKey=t.resourceKey,this.id=t.id,this.namespace=t.namespace,this.displayName=t.displayName}static createFrom(t={}){return new k(t)}}a.ResourceRef=k;class I{constructor(t={}){e(this,"descriptor");e(this,"targets");typeof t=="string"&&(t=JSON.parse(t)),this.descriptor=this.convertValues(t.descriptor,F),this.targets=this.convertValues(t.targets,k)}static createFrom(t={}){return new I(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResolvedRelationship=I;class J{constructor(t={}){e(this,"level");e(this,"expectedCount");e(this,"defaultPageSize");typeof t=="string"&&(t=JSON.parse(t)),this.level=t.level,this.expectedCount=t.expectedCount,this.defaultPageSize=t.defaultPageSize}static createFrom(t={}){return new J(t)}}a.ScaleHint=J;class T{constructor(t={}){e(this,"canGet");e(this,"canList");e(this,"canFind");e(this,"canCreate");e(this,"canUpdate");e(this,"canDelete");e(this,"watchable");e(this,"filterable");e(this,"searchable");e(this,"hasActions");e(this,"hasSchema");e(this,"namespaceScoped");e(this,"hasRelationships");e(this,"hasHealth");e(this,"hasEvents");e(this,"scaleHint");typeof t=="string"&&(t=JSON.parse(t)),this.canGet=t.canGet,this.canList=t.canList,this.canFind=t.canFind,this.canCreate=t.canCreate,this.canUpdate=t.canUpdate,this.canDelete=t.canDelete,this.watchable=t.watchable,this.filterable=t.filterable,this.searchable=t.searchable,this.hasActions=t.hasActions,this.hasSchema=t.hasSchema,this.namespaceScoped=t.namespaceScoped,this.hasRelationships=t.hasRelationships,this.hasHealth=t.hasHealth,this.hasEvents=t.hasEvents,this.scaleHint=this.convertValues(t.scaleHint,J)}static createFrom(t={}){return new T(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResourceCapabilities=T;class A{constructor(t={}){e(this,"id_accessor");e(this,"namespace_accessor");e(this,"memoizer_accessor");e(this,"columnDefs");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,f)}static createFrom(t={}){return new A(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResourceDefinition=A;class C{constructor(t={}){e(this,"type");e(this,"reason");e(this,"message");e(this,"source");e(this,"count");e(this,"firstSeen");e(this,"lastSeen");typeof t=="string"&&(t=JSON.parse(t)),this.type=t.type,this.reason=t.reason,this.message=t.message,this.source=t.source,this.count=t.count,this.firstSeen=this.convertValues(t.firstSeen,exports.time.Time),this.lastSeen=this.convertValues(t.lastSeen,exports.time.Time)}static createFrom(t={}){return new C(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResourceEvent=C;class L{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 L(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResourceGroup=L;class M{constructor(t={}){e(this,"status");e(this,"reason");e(this,"message");e(this,"since");e(this,"conditions");typeof t=="string"&&(t=JSON.parse(t)),this.status=t.status,this.reason=t.reason,this.message=t.message,this.since=this.convertValues(t.since,exports.time.Time),this.conditions=this.convertValues(t.conditions,S)}static createFrom(t={}){return new M(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.ResourceHealth=M;class x{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 x(t)}}a.ResourceMeta=x;class E{constructor(t={}){e(this,"partitions");typeof t=="string"&&(t=JSON.parse(t)),this.partitions=t.partitions}static createFrom(t={}){return new E(t)}}a.WatchScope=E;class U{constructor(t={}){e(this,"connectionId");e(this,"resources");e(this,"resourceCounts");e(this,"scope");typeof t=="string"&&(t=JSON.parse(t)),this.connectionId=t.connectionId,this.resources=t.resources,this.resourceCounts=t.resourceCounts,this.scope=this.convertValues(t.scope,E)}static createFrom(t={}){return new U(t)}convertValues(t,y,w=!1){if(!t)return t;if(t.slice&&t.map)return t.map(c=>this.convertValues(c,y));if(typeof t=="object"){if(w){for(const c of Object.keys(t))t[c]=new y(t[c]);return t}return new y(t)}return t}}a.WatchConnectionSummary=U})(exports.resource||(exports.resource={}));exports.settings=void 0;(a=>{(m=>{m.TEXT="text",m.SELECT="select",m.MULTISELECT="multiselect",m.INTEGER="integer",m.FLOAT="float",m.TOGGLE="toggle",m.COLOR="color",m.DATETIME="datetime",m.PASSWORD="password"})(a.SettingType||(a.SettingType={}));class h{constructor(n={}){e(this,"enabled");e(this,"allowFolders");e(this,"extensions");e(this,"multiple");e(this,"relative");e(this,"defaultPath");typeof n=="string"&&(n=JSON.parse(n)),this.enabled=n.enabled,this.allowFolders=n.allowFolders,this.extensions=n.extensions,this.multiple=n.multiple,this.relative=n.relative,this.defaultPath=n.defaultPath}static createFrom(n={}){return new h(n)}}a.SettingFileSelection=h;class d{constructor(n={}){e(this,"label");e(this,"description");e(this,"value");typeof n=="string"&&(n=JSON.parse(n)),this.label=n.label,this.description=n.description,this.value=n.value}static createFrom(n={}){return new d(n)}}a.SettingOption=d;class p{constructor(n={}){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 n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.label=n.label,this.description=n.description,this.type=n.type,this.value=n.value,this.default=n.default,this.options=this.convertValues(n.options,d),this.fileSelection=this.convertValues(n.fileSelection,h),this.sensitive=n.sensitive}static createFrom(n={}){return new p(n)}convertValues(n,l,i=!1){if(!n)return n;if(n.slice&&n.map)return n.map(s=>this.convertValues(s,l));if(typeof n=="object"){if(i){for(const s of Object.keys(n))n[s]=new l(n[s]);return n}return new l(n)}return n}}a.Setting=p;class o{constructor(n={}){e(this,"settings");e(this,"id");e(this,"label");e(this,"description");e(this,"icon");typeof n=="string"&&(n=JSON.parse(n)),this.settings=this.convertValues(n.settings,p,!0),this.id=n.id,this.label=n.label,this.description=n.description,this.icon=n.icon}static createFrom(n={}){return new o(n)}convertValues(n,l,i=!1){if(!n)return n;if(n.slice&&n.map)return n.map(s=>this.convertValues(s,l));if(typeof n=="object"){if(i){for(const s of Object.keys(n))n[s]=new l(n[s]);return n}return new l(n)}return n}}a.Category=o})(exports.settings||(exports.settings={}));exports.time=void 0;(a=>{class h{static createFrom(p={}){return new h(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p))}}a.Time=h})(exports.time||(exports.time={}));exports.trivy=void 0;(a=>{(p=>{p.CONFIG="config",p.FILESYSTEM="fs",p.IMAGE="image",p.KUBERNETES="kubernetes",p.REPOSITORY="repository",p.ROOTFS="rootfs",p.SBOM="sbom"})(a.Command||(a.Command={})),(p=>{p.VULN="vuln",p.MISCONFIG="misconfig",p.SECRET="secret",p.LICENSE="license"})(a.Scanner||(a.Scanner={}));class h{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 h(o)}}a.ScanOptions=h;class d{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 d(o)}convertValues(o,m,n=!1){if(!o)return o;if(o.slice&&o.map)return o.map(l=>this.convertValues(l,m));if(typeof o=="object"){if(n){for(const l of Object.keys(o))o[l]=new m(o[l]);return o}return new m(o)}return o}}a.ScanResult=d})(exports.trivy||(exports.trivy={}));exports.types=void 0;(a=>{(l=>{l.UNKNOWN="UNKNOWN",l.CONNECTED="CONNECTED",l.DISCONNECTED="DISCONNECTED",l.PENDING="PENDING",l.FAILED="FAILED",l.ERROR="ERROR",l.UNAUTHORIZED="UNAUTHORIZED",l.FORBIDDEN="FORBIDDEN",l.BAD_REQUEST="BAD_REQUEST",l.NOT_FOUND="NOT_FOUND",l.TIMEOUT="TIMEOUT",l.UNAVAILABLE="UNAVAILABLE",l.REQUEST_ENTITY_TOO_LARGE="REQUEST_ENTITY_TOO_LARGE"})(a.ConnectionStatusCode||(a.ConnectionStatusCode={}));class h{constructor(i={}){e(this,"enabled");e(this,"triggers");e(this,"retry");typeof i=="string"&&(i=JSON.parse(i)),this.enabled=i.enabled,this.triggers=i.triggers,this.retry=i.retry}static createFrom(i={}){return new h(i)}}a.ConnectionAutoConnect=h;class d{constructor(i={}){e(this,"auto_connect");typeof i=="string"&&(i=JSON.parse(i)),this.auto_connect=this.convertValues(i.auto_connect,h)}static createFrom(i={}){return new d(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.ConnectionLifecycle=d;class p{constructor(i={}){e(this,"last_refresh");e(this,"data");e(this,"labels");e(this,"lifecycle");e(this,"id");e(this,"uid");e(this,"name");e(this,"description");e(this,"avatar");e(this,"expiry_time");e(this,"Client");typeof i=="string"&&(i=JSON.parse(i)),this.last_refresh=this.convertValues(i.last_refresh,exports.time.Time),this.data=i.data,this.labels=i.labels,this.lifecycle=this.convertValues(i.lifecycle,d),this.id=i.id,this.uid=i.uid,this.name=i.name,this.description=i.description,this.avatar=i.avatar,this.expiry_time=i.expiry_time,this.Client=i.Client}static createFrom(i={}){return new p(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.Connection=p;class o{constructor(i={}){e(this,"connection");e(this,"status");e(this,"error");e(this,"details");typeof i=="string"&&(i=JSON.parse(i)),this.connection=this.convertValues(i.connection,p),this.status=i.status,this.error=i.error,this.details=i.details}static createFrom(i={}){return new o(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.ConnectionStatus=o;class m{constructor(i={}){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 i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.metadata=this.convertValues(i.metadata,exports.config.PluginMeta),this.phase=i.phase,this.enabled=i.enabled,this.devMode=i.devMode,this.devPath=i.devPath,this.capabilities=i.capabilities,this.lastError=i.lastError}static createFrom(i={}){return new m(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.PluginInfo=m;class n{constructor(i={}){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 i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.phase=i.phase,this.metadata=this.convertValues(i.metadata,exports.config.PluginMeta),this.enabled=i.enabled,this.devMode=i.devMode,this.devPath=i.devPath,this.lastError=i.lastError,this.errorCount=i.errorCount,this.installedAt=this.convertValues(i.installedAt,exports.time.Time)}static createFrom(i={}){return new n(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(f=>this.convertValues(f,s));if(typeof i=="object"){if(g){for(const f of Object.keys(i))i[f]=new s(i[f]);return i}return new s(i)}return i}}a.PluginStateRecord=n})(exports.types||(exports.types={}));exports.ui=void 0;(a=>{class h{constructor(n={}){e(this,"plugin");typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin}static createFrom(n={}){return new h(n)}}a.GetPluginComponentsInput=h;class d{constructor(n={}){e(this,"plugin");e(this,"resource");e(this,"area");typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.area=n.area}static createFrom(n={}){return new d(n)}}a.GetResourceAreaComponentInput=d;class p{constructor(n={}){e(this,"plugin");e(this,"resource");typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource}static createFrom(n={}){return new p(n)}}a.GetResourceComponentsInput=p;class o{constructor(n={}){e(this,"owner");e(this,"name");e(this,"plugin");e(this,"resource");e(this,"area");e(this,"extension");typeof n=="string"&&(n=JSON.parse(n)),this.owner=n.owner,this.name=n.name,this.plugin=n.plugin,this.resource=n.resource,this.area=n.area,this.extension=n.extension}static createFrom(n={}){return new o(n)}}a.ResourceComponent=o})(exports.ui||(exports.ui={}));exports.utils=void 0;(a=>{class h{constructor(p={}){e(this,"filename");e(this,"contents");typeof p=="string"&&(p=JSON.parse(p)),this.filename=p.filename,this.contents=p.contents}static createFrom(p={}){return new h(p)}}a.GetLanguageInput=h})(exports.utils||(exports.utils={}));
|
package/dist/models.js
CHANGED
|
@@ -1943,10 +1943,10 @@ var _;
|
|
|
1943
1943
|
var it;
|
|
1944
1944
|
((a) => {
|
|
1945
1945
|
((p) => {
|
|
1946
|
-
p.VULN = "vuln", p.MISCONFIG = "misconfig", p.SECRET = "secret", p.LICENSE = "license";
|
|
1947
|
-
})(a.Scanner || (a.Scanner = {})), ((p) => {
|
|
1948
1946
|
p.CONFIG = "config", p.FILESYSTEM = "fs", p.IMAGE = "image", p.KUBERNETES = "kubernetes", p.REPOSITORY = "repository", p.ROOTFS = "rootfs", p.SBOM = "sbom";
|
|
1949
|
-
})(a.Command || (a.Command = {}))
|
|
1947
|
+
})(a.Command || (a.Command = {})), ((p) => {
|
|
1948
|
+
p.VULN = "vuln", p.MISCONFIG = "misconfig", p.SECRET = "secret", p.LICENSE = "license";
|
|
1949
|
+
})(a.Scanner || (a.Scanner = {}));
|
|
1950
1950
|
class h {
|
|
1951
1951
|
constructor(o = {}) {
|
|
1952
1952
|
e(this, "filePatterns");
|
package/dist/types/app.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare class PluginWindow {
|
|
|
45
45
|
*/
|
|
46
46
|
pages?: Record<string, ComponentType>;
|
|
47
47
|
_routes?: Array<RouteObject>;
|
|
48
|
-
get extensions(): ExtensionPointSettings[];
|
|
48
|
+
get extensions(): ExtensionPointSettings<import('./extensions').ExtensionRenderContext, unknown>[];
|
|
49
49
|
get Routes(): Array<RouteObject>;
|
|
50
50
|
/**
|
|
51
51
|
* Get's the route provider component to render within the plugin view
|
|
@@ -1,196 +1,142 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
/**
|
|
11
|
-
* The human readable label for the extension point
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* A description of the extension point
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Set the extension point to support rendering multiple components or a single component.
|
|
20
|
-
*/
|
|
21
|
-
mode: 'single' | 'multiple';
|
|
22
|
-
/**
|
|
23
|
-
* Disable the extension point to prevent rendering components.
|
|
24
|
-
* This is useful when the extension point should be disabled temporarily.
|
|
25
|
-
*/
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Selected component to render when the extension point is in single-component mode.
|
|
29
|
-
*/
|
|
30
|
-
selected?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The order in which the components should be rendered when the extension point is in multiple-component mode.
|
|
33
|
-
*/
|
|
34
|
-
order?: string[];
|
|
1
|
+
/**
|
|
2
|
+
* Context that can be passed to the registry to provide additional information to the matcher.
|
|
3
|
+
* The context should generate a cache key that can be used to cache the results of the matcher
|
|
4
|
+
* to avoid recalculating the same result multiple times.
|
|
5
|
+
*/
|
|
6
|
+
export type ExtensionRenderContext = {
|
|
7
|
+
getCacheKey?(): string;
|
|
35
8
|
};
|
|
36
9
|
/**
|
|
37
|
-
*
|
|
10
|
+
* A contribution registration entry stored within an extension point store.
|
|
11
|
+
* Generic over TValue — not limited to React components.
|
|
38
12
|
*/
|
|
39
|
-
export
|
|
40
|
-
/**
|
|
41
|
-
* The ID of the registered component
|
|
42
|
-
*/
|
|
13
|
+
export interface ExtensionContributionRegistration<TValue = unknown> {
|
|
43
14
|
id: string;
|
|
44
|
-
/**
|
|
45
|
-
* The plugin that owns the view
|
|
46
|
-
*/
|
|
47
15
|
plugin: string;
|
|
48
|
-
/**
|
|
49
|
-
* The human readable label for the component
|
|
50
|
-
*/
|
|
51
16
|
label: string;
|
|
52
|
-
|
|
53
|
-
* A description of the component
|
|
54
|
-
*/
|
|
55
|
-
description?: string;
|
|
56
|
-
/**
|
|
57
|
-
* The component to render
|
|
58
|
-
*/
|
|
59
|
-
component: React.ComponentType<Props>;
|
|
60
|
-
/**
|
|
61
|
-
* Additional optional metadata for the component
|
|
62
|
-
*/
|
|
17
|
+
value: TValue;
|
|
63
18
|
meta?: unknown;
|
|
64
|
-
}
|
|
65
|
-
export type Registration<Props> = RegisterOpts<Props> & {
|
|
66
|
-
/**
|
|
67
|
-
* The time the component was registered
|
|
68
|
-
*/
|
|
69
|
-
registeredAt: Date;
|
|
70
|
-
/**
|
|
71
|
-
* The time the component was last updated
|
|
72
|
-
* This will be the same as `registeredAt` if the component has not been updated
|
|
73
|
-
*/
|
|
74
|
-
updatedAt: Date;
|
|
75
|
-
/**
|
|
76
|
-
* Whether the component is enabled
|
|
77
|
-
* This can be used to disable a component without unregistering it.
|
|
78
|
-
*/
|
|
79
|
-
enabled?: boolean;
|
|
80
|
-
};
|
|
19
|
+
}
|
|
81
20
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* to avoid recalculating the same result multiple times.
|
|
21
|
+
* Settings for defining an extension point.
|
|
22
|
+
* Generic over TContext (the render/lookup context) and TValue (what contributions hold).
|
|
85
23
|
*/
|
|
86
|
-
export
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
24
|
+
export interface ExtensionPointSettings<TContext = ExtensionRenderContext, TValue = unknown> {
|
|
25
|
+
/** Unique extension point identifier */
|
|
26
|
+
id: string;
|
|
27
|
+
/** The plugin (or 'core') that owns this extension point */
|
|
28
|
+
pluginId?: string;
|
|
29
|
+
/** Whether this extension point resolves one or many contributions */
|
|
30
|
+
mode?: 'single' | 'multiple';
|
|
90
31
|
/**
|
|
91
|
-
*
|
|
92
|
-
* This is useful when the extension should only be registered for certain resources, like for example
|
|
93
|
-
* when a registry contains components that should only be rendered for specific resources.
|
|
94
|
-
*
|
|
95
|
-
* @param context The context to use to determine if the extension should be registered. The extension point
|
|
96
|
-
* renderer will call this function with the context provided by the extension point.
|
|
97
|
-
* @param item The item to check if it should be registered
|
|
98
|
-
* @returns Whether the item should be registered
|
|
32
|
+
* Filter contributions for a given context. Applied in both single and multiple modes.
|
|
99
33
|
*/
|
|
100
|
-
matcher?: (
|
|
101
|
-
|
|
34
|
+
matcher?: (contribution: ExtensionContributionRegistration<TValue>, context?: TContext) => boolean;
|
|
35
|
+
/**
|
|
36
|
+
* In single mode, select which of the matched contributions to return.
|
|
37
|
+
* If not provided, the first match in deterministic order is used.
|
|
38
|
+
*/
|
|
39
|
+
select?: (contributions: ExtensionContributionRegistration<TValue>[], context?: TContext) => ExtensionContributionRegistration<TValue> | undefined;
|
|
40
|
+
}
|
|
102
41
|
/**
|
|
103
|
-
* A registration entry that a plugin exports to register a
|
|
42
|
+
* A registration entry that a plugin exports to register a value into an extension point.
|
|
104
43
|
* The host app processes these at plugin load time.
|
|
105
44
|
*/
|
|
106
|
-
export type ExtensionRegistration<
|
|
45
|
+
export type ExtensionRegistration<TValue = unknown> = {
|
|
107
46
|
/** The ID of the extension point to register into */
|
|
108
47
|
extensionPointId: string;
|
|
109
|
-
/** The registration options
|
|
110
|
-
registration:
|
|
48
|
+
/** The registration options */
|
|
49
|
+
registration: Omit<ExtensionContributionRegistration<TValue>, 'plugin'> & {
|
|
50
|
+
plugin?: string;
|
|
51
|
+
};
|
|
111
52
|
};
|
|
112
53
|
/**
|
|
113
|
-
*
|
|
54
|
+
* Store contract for an extension point.
|
|
55
|
+
* Generic over TValue (what contributions hold) and TContext (the lookup context).
|
|
56
|
+
*/
|
|
57
|
+
export interface ExtensionPointStoreContract<TValue = unknown, TContext = ExtensionRenderContext> {
|
|
58
|
+
readonly id: string;
|
|
59
|
+
readonly mode: 'single' | 'multiple';
|
|
60
|
+
/** The plugin (or 'core') that owns this extension point, if set. */
|
|
61
|
+
readonly pluginId?: string;
|
|
62
|
+
/** Monotonically increasing version — increments on every mutation. */
|
|
63
|
+
readonly version: number;
|
|
64
|
+
register(contribution: ExtensionContributionRegistration<TValue>): void;
|
|
65
|
+
unregister(contributionId: string): void;
|
|
66
|
+
provide(context?: TContext): TValue[];
|
|
67
|
+
list(context?: TContext): ExtensionContributionRegistration<TValue>[];
|
|
68
|
+
listAll(): ExtensionContributionRegistration<TValue>[];
|
|
69
|
+
subscribe(listener: () => void): () => void;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Registry contract for managing extension points.
|
|
73
|
+
*/
|
|
74
|
+
export interface ExtensionPointRegistryContract {
|
|
75
|
+
addExtensionPoint<TValue = unknown, TContext = ExtensionRenderContext>(settings: ExtensionPointSettings<TContext, TValue> & {
|
|
76
|
+
pluginId?: string;
|
|
77
|
+
}): void;
|
|
78
|
+
getExtensionPoint<TValue = unknown, TContext = ExtensionRenderContext>(id: string): ExtensionPointStoreContract<TValue, TContext> | undefined;
|
|
79
|
+
hasExtensionPoint(id: string): boolean;
|
|
80
|
+
listExtensionPoints(): string[];
|
|
81
|
+
removeExtensionPoints(pluginId: string): void;
|
|
82
|
+
removeContributions(pluginId: string): void;
|
|
83
|
+
subscribe(listener: () => void): () => void;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* A registry to hold an extension point's registered contributions, providing type safe access.
|
|
114
87
|
*
|
|
115
|
-
*
|
|
88
|
+
* Generic over TValue (what contributions hold) and TContext (the lookup context).
|
|
116
89
|
*/
|
|
117
|
-
export declare class ExtensionPointStore<
|
|
118
|
-
|
|
119
|
-
|
|
90
|
+
export declare class ExtensionPointStore<TValue = unknown, TContext = ExtensionRenderContext> implements ExtensionPointStoreContract<TValue, TContext> {
|
|
91
|
+
readonly id: string;
|
|
92
|
+
readonly mode: 'single' | 'multiple';
|
|
93
|
+
private readonly _pluginId?;
|
|
94
|
+
private _version;
|
|
95
|
+
private readonly _contributions;
|
|
120
96
|
private readonly _lookupCache;
|
|
121
|
-
private readonly _matchCache;
|
|
122
97
|
private readonly _matcher?;
|
|
123
|
-
|
|
124
|
-
|
|
98
|
+
private readonly _select?;
|
|
99
|
+
private readonly _listeners;
|
|
100
|
+
constructor(settings: ExtensionPointSettings<TContext, TValue>);
|
|
101
|
+
get pluginId(): string | undefined;
|
|
102
|
+
get version(): number;
|
|
125
103
|
/**
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
* @param opts The registration options for the component, containing its ID, plugin, and other metadata.
|
|
130
|
-
* @throws Error if a component with the same ID is already registered.
|
|
131
|
-
* @example
|
|
132
|
-
* registry.register({
|
|
133
|
-
* id: 'unique-sidebar-item',
|
|
134
|
-
* plugin: 'examplePlugin',
|
|
135
|
-
* label: 'My Sidebar Item',
|
|
136
|
-
* component: MyComponent,
|
|
137
|
-
* });
|
|
138
|
-
*/
|
|
139
|
-
register(opts: RegisterOpts<ComponentProps>): void;
|
|
104
|
+
* Register a contribution. Throws if the contribution ID already exists.
|
|
105
|
+
*/
|
|
106
|
+
register(contribution: ExtensionContributionRegistration<TValue>): void;
|
|
140
107
|
/**
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
* @example
|
|
145
|
-
* registry.unregister('unique-sidebar-item');
|
|
146
|
-
*/
|
|
147
|
-
unregister(id: string): void;
|
|
108
|
+
* Unregister a contribution by ID.
|
|
109
|
+
*/
|
|
110
|
+
unregister(contributionId: string): void;
|
|
148
111
|
/**
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
* const component = registry.get('unique-sidebar-item');
|
|
155
|
-
* if (component) {
|
|
156
|
-
* render(component);
|
|
157
|
-
* }
|
|
158
|
-
*/
|
|
159
|
-
get(id: string): import('react').ComponentType<ComponentProps> | undefined;
|
|
112
|
+
* Synchronously provide matched values for the given context.
|
|
113
|
+
* In single mode, matcher is applied first, then select (or first match) picks one.
|
|
114
|
+
* In multiple mode, all matched contributions are returned in deterministic order.
|
|
115
|
+
*/
|
|
116
|
+
provide(context?: TContext): TValue[];
|
|
160
117
|
/**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
* @example
|
|
165
|
-
* const allComponents = registry.list();
|
|
166
|
-
* console.log('Registered Components:', allComponents);
|
|
167
|
-
*/
|
|
168
|
-
list(): Registration<ComponentProps>[];
|
|
169
|
-
generateMatchCacheKey(item: Registration<ComponentProps>): string;
|
|
118
|
+
* Synchronously list matched contribution registrations for the given context.
|
|
119
|
+
*/
|
|
120
|
+
list(context?: TContext): ExtensionContributionRegistration<TValue>[];
|
|
170
121
|
/**
|
|
171
|
-
*
|
|
122
|
+
* List all contributions regardless of context/matcher.
|
|
172
123
|
*/
|
|
173
|
-
|
|
124
|
+
listAll(): ExtensionContributionRegistration<TValue>[];
|
|
174
125
|
/**
|
|
175
|
-
*
|
|
176
|
-
* This is useful when the registry is used to provide components for a specific context, like for
|
|
177
|
-
* specific resources types.
|
|
178
|
-
*
|
|
179
|
-
* If the cache is already populated for the expected context, the cache key will be recalculated.
|
|
180
|
-
*
|
|
181
|
-
* @param context The context expected to be called preload the registry with on provide.
|
|
126
|
+
* Subscribe to changes in this store. Returns an unsubscribe function.
|
|
182
127
|
*/
|
|
183
|
-
|
|
128
|
+
subscribe(listener: () => void): () => void;
|
|
184
129
|
/**
|
|
185
|
-
*
|
|
130
|
+
* Remove all contributions owned by the given plugin.
|
|
186
131
|
*/
|
|
187
|
-
|
|
188
|
-
|
|
132
|
+
removeContributionsByPlugin(pluginId: string): void;
|
|
133
|
+
private _getMatched;
|
|
134
|
+
private _applyMode;
|
|
189
135
|
/**
|
|
190
|
-
*
|
|
136
|
+
* Sort contributions deterministically: plugin ascending, then id ascending.
|
|
191
137
|
*/
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
138
|
+
private _sortDeterministic;
|
|
139
|
+
private _getCacheKey;
|
|
140
|
+
private _invalidateCache;
|
|
141
|
+
private _notify;
|
|
196
142
|
}
|
|
@@ -905,12 +905,6 @@ export declare namespace time {
|
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
export declare namespace trivy {
|
|
908
|
-
enum Scanner {
|
|
909
|
-
VULN = "vuln",
|
|
910
|
-
MISCONFIG = "misconfig",
|
|
911
|
-
SECRET = "secret",
|
|
912
|
-
LICENSE = "license"
|
|
913
|
-
}
|
|
914
908
|
enum Command {
|
|
915
909
|
CONFIG = "config",
|
|
916
910
|
FILESYSTEM = "fs",
|
|
@@ -920,6 +914,12 @@ export declare namespace trivy {
|
|
|
920
914
|
ROOTFS = "rootfs",
|
|
921
915
|
SBOM = "sbom"
|
|
922
916
|
}
|
|
917
|
+
enum Scanner {
|
|
918
|
+
VULN = "vuln",
|
|
919
|
+
MISCONFIG = "misconfig",
|
|
920
|
+
SECRET = "secret",
|
|
921
|
+
LICENSE = "license"
|
|
922
|
+
}
|
|
923
923
|
class ScanOptions {
|
|
924
924
|
filePatterns: string[];
|
|
925
925
|
skipDirs: string[];
|