@omniviewdev/runtime 0.1.11 → 0.2.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.
Files changed (42) hide show
  1. package/dist/Client-BRYjLBXY.cjs +1 -0
  2. package/dist/{Client-DRRyPmcf.js → Client-RGYOEzh2.js} +312 -275
  3. package/dist/api.cjs +1 -1
  4. package/dist/api.d.ts +1 -0
  5. package/dist/api.js +95 -51
  6. package/dist/context/drawer/types.d.ts +1 -1
  7. package/dist/errors/types.d.ts +2 -0
  8. package/dist/hooks/connection/useConnectionStatus.d.ts +3 -3
  9. package/dist/hooks/connection/useConnections.d.ts +2 -2
  10. package/dist/hooks/resource/index.d.ts +2 -1
  11. package/dist/hooks/resource/useActiveSyncs.d.ts +2 -2
  12. package/dist/hooks/resource/useEditorSchemas.d.ts +2 -2
  13. package/dist/hooks/resource/useEventBatcher.d.ts +55 -0
  14. package/dist/hooks/resource/useResource.d.ts +9 -21
  15. package/dist/hooks/resource/useResourceActions.d.ts +3 -3
  16. package/dist/hooks/resource/useResourceGroups.d.ts +1 -1
  17. package/dist/hooks/resource/useResourceMutations.d.ts +14 -7
  18. package/dist/hooks/resource/useResourceSearch.d.ts +1 -1
  19. package/dist/hooks/resource/useResourceType.d.ts +1 -1
  20. package/dist/hooks/resource/useResourceTypes.d.ts +1 -1
  21. package/dist/hooks/resource/useResources.d.ts +14 -22
  22. package/dist/hooks/resource/useWatchState.d.ts +28 -0
  23. package/dist/index.cjs +2 -2
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +1406 -1295
  26. package/dist/models.cjs +1 -1
  27. package/dist/models.js +1343 -972
  28. package/dist/types/index.d.ts +1 -1
  29. package/dist/types/watch.d.ts +29 -0
  30. package/dist/utils/activeSyncAggregator.d.ts +13 -8
  31. package/dist/utils/resourceKey.d.ts +12 -0
  32. package/dist/wailsjs/go/devserver/DevServerManager.d.ts +2 -0
  33. package/dist/wailsjs/go/models.d.ts +400 -214
  34. package/dist/wailsjs/go/plugin/pluginManager.d.ts +3 -1
  35. package/dist/wailsjs/go/pluginlog/Manager.d.ts +18 -0
  36. package/dist/wailsjs/go/resource/Client.d.ts +39 -23
  37. package/package.json +1 -1
  38. package/dist/Client-BtQwAB3N.cjs +0 -1
  39. package/dist/errors/parseAppError.test.d.ts +0 -1
  40. package/dist/hooks/resource/useInformerState.d.ts +0 -24
  41. package/dist/types/informer.d.ts +0 -49
  42. package/dist/utils/activeSyncAggregator.test.d.ts +0 -1
package/dist/models.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var L=Object.defineProperty;var C=(a,p,f)=>p in a?L(a,p,{enumerable:!0,configurable:!0,writable:!0,value:f}):a[p]=f;var e=(a,p,f)=>C(a,typeof p!="symbol"?p+"":p,f);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.config=void 0;(a=>{class p{constructor(s={}){e(this,"name");e(this,"email");e(this,"url");typeof s=="string"&&(s=JSON.parse(s)),this.name=s.name,this.email=s.email,this.url=s.url}static createFrom(s={}){return new p(s)}}a.PluginAuthor=p;class f{constructor(s={}){e(this,"name");e(this,"plugin");e(this,"area");e(this,"resources");e(this,"extension");typeof s=="string"&&(s=JSON.parse(s)),this.name=s.name,this.plugin=s.plugin,this.area=s.area,this.resources=s.resources,this.extension=s.extension}static createFrom(s={}){return new f(s)}}a.PluginResourceComponent=f;class l{constructor(s={}){e(this,"resource");typeof s=="string"&&(s=JSON.parse(s)),this.resource=this.convertValues(s.resource,f)}static createFrom(s={}){return new l(s)}convertValues(s,c,_=!1){if(!s)return s;if(s.slice&&s.map)return s.map(w=>this.convertValues(w,c));if(typeof s=="object"){if(_){for(const w of Object.keys(s))s[w]=new c(s[w]);return s}return new c(s)}return s}}a.PluginComponents=l;class o{constructor(s={}){e(this,"name");e(this,"email");typeof s=="string"&&(s=JSON.parse(s)),this.name=s.name,this.email=s.email}static createFrom(s={}){return new o(s)}}a.PluginMaintainer=o;class y{constructor(s={}){e(this,"primary");e(this,"secondary");e(this,"tertiary");typeof s=="string"&&(s=JSON.parse(s)),this.primary=s.primary,this.secondary=s.secondary,this.tertiary=s.tertiary}static createFrom(s={}){return new y(s)}}a.PluginThemeColors=y;class r{constructor(s={}){e(this,"colors");typeof s=="string"&&(s=JSON.parse(s)),this.colors=this.convertValues(s.colors,y)}static createFrom(s={}){return new r(s)}convertValues(s,c,_=!1){if(!s)return s;if(s.slice&&s.map)return s.map(w=>this.convertValues(w,c));if(typeof s=="object"){if(_){for(const w of Object.keys(s))s[w]=new c(s[w]);return s}return new c(s)}return s}}a.PluginTheme=r;class i{constructor(s={}){e(this,"id");e(this,"version");e(this,"name");e(this,"icon");e(this,"icon_url");e(this,"description");e(this,"repository");e(this,"website");e(this,"category");e(this,"license");e(this,"author");e(this,"maintainers");e(this,"tags");e(this,"dependencies");e(this,"capabilities");e(this,"theme");e(this,"components");e(this,"schema_version");e(this,"sdk_protocol_version");typeof s=="string"&&(s=JSON.parse(s)),this.id=s.id,this.version=s.version,this.name=s.name,this.icon=s.icon,this.icon_url=s.icon_url,this.description=s.description,this.repository=s.repository,this.website=s.website,this.category=s.category,this.license=s.license,this.author=this.convertValues(s.author,p),this.maintainers=this.convertValues(s.maintainers,o),this.tags=s.tags,this.dependencies=s.dependencies,this.capabilities=s.capabilities,this.theme=this.convertValues(s.theme,r),this.components=this.convertValues(s.components,l),this.schema_version=s.schema_version,this.sdk_protocol_version=s.sdk_protocol_version}static createFrom(s={}){return new i(s)}convertValues(s,c,_=!1){if(!s)return s;if(s.slice&&s.map)return s.map(w=>this.convertValues(w,c));if(typeof s=="object"){if(_){for(const w of Object.keys(s))s[w]=new c(s[w]);return s}return new c(s)}return s}}a.PluginMeta=i})(exports.config||(exports.config={}));exports.devserver=void 0;(a=>{class p{constructor(r={}){e(this,"pid");e(this,"protocol");e(this,"protocolVersion");e(this,"addr");e(this,"vitePort");e(this,"pluginId");e(this,"version");e(this,"startedAt");typeof r=="string"&&(r=JSON.parse(r)),this.pid=r.pid,this.protocol=r.protocol,this.protocolVersion=r.protocolVersion,this.addr=r.addr,this.vitePort=r.vitePort,this.pluginId=r.pluginId,this.version=r.version,this.startedAt=r.startedAt}static createFrom(r={}){return new p(r)}}a.DevInfoFile=p;class f{static createFrom(r={}){return new f(r)}constructor(r={}){typeof r=="string"&&(r=JSON.parse(r))}}a.DevServerManager=f;class l{constructor(r={}){e(this,"pluginID");e(this,"mode");e(this,"devPath");e(this,"vitePort");e(this,"viteURL");e(this,"viteStatus");e(this,"goStatus");e(this,"lastBuildDuration");e(this,"lastBuildTime");e(this,"lastError");e(this,"grpcConnected");typeof r=="string"&&(r=JSON.parse(r)),this.pluginID=r.pluginID,this.mode=r.mode,this.devPath=r.devPath,this.vitePort=r.vitePort,this.viteURL=r.viteURL,this.viteStatus=r.viteStatus,this.goStatus=r.goStatus,this.lastBuildDuration=r.lastBuildDuration,this.lastBuildTime=this.convertValues(r.lastBuildTime,exports.time.Time),this.lastError=r.lastError,this.grpcConnected=r.grpcConnected}static createFrom(r={}){return new l(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.DevServerState=l;class o{constructor(r={}){e(this,"timestamp");e(this,"source");e(this,"level");e(this,"message");e(this,"pluginID");typeof r=="string"&&(r=JSON.parse(r)),this.timestamp=this.convertValues(r.timestamp,exports.time.Time),this.source=r.source,this.level=r.level,this.message=r.message,this.pluginID=r.pluginID}static createFrom(r={}){return new o(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.LogEntry=o})(exports.devserver||(exports.devserver={}));exports.exec=void 0;(a=>{class p{constructor(i={}){e(this,"created_at");e(this,"labels");e(this,"params");e(this,"id");e(this,"command");e(this,"attached");typeof i=="string"&&(i=JSON.parse(i)),this.created_at=this.convertValues(i.created_at,exports.time.Time),this.labels=i.labels,this.params=i.params,this.id=i.id,this.command=i.command,this.attached=i.attached}static createFrom(i={}){return new p(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.Session=p;class f{constructor(i={}){e(this,"session");e(this,"buffer");typeof i=="string"&&(i=JSON.parse(i)),this.session=this.convertValues(i.session,p),this.buffer=i.buffer}static createFrom(i={}){return new f(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.AttachSessionResult=f;class l{constructor(i={}){e(this,"labels");e(this,"command");typeof i=="string"&&(i=JSON.parse(i)),this.labels=i.labels,this.command=i.command}static createFrom(i={}){return new l(i)}}a.CreateTerminalOptions=l;class o{constructor(i={}){e(this,"plugin");e(this,"resource");e(this,"target_builder");e(this,"default_command");typeof i=="string"&&(i=JSON.parse(i)),this.plugin=i.plugin,this.resource=i.resource,this.target_builder=this.convertValues(i.target_builder,exports.types.ActionTargetBuilder),this.default_command=i.default_command}static createFrom(i={}){return new o(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.Handler=o;class y{constructor(i={}){e(this,"params");e(this,"labels");e(this,"id");e(this,"resource_plugin");e(this,"resource_key");e(this,"resource_data");e(this,"command");e(this,"tty");typeof i=="string"&&(i=JSON.parse(i)),this.params=i.params,this.labels=i.labels,this.id=i.id,this.resource_plugin=i.resource_plugin,this.resource_key=i.resource_key,this.resource_data=i.resource_data,this.command=i.command,this.tty=i.tty}static createFrom(i={}){return new y(i)}}a.SessionOptions=y})(exports.exec||(exports.exec={}));exports.logs=void 0;(a=>{class p{constructor(i={}){e(this,"target");e(this,"follow");e(this,"include_previous");e(this,"include_timestamps");e(this,"tail_lines");e(this,"since_seconds");e(this,"since_time");e(this,"limit_bytes");e(this,"include_source_events");e(this,"params");typeof i=="string"&&(i=JSON.parse(i)),this.target=i.target,this.follow=i.follow,this.include_previous=i.include_previous,this.include_timestamps=i.include_timestamps,this.tail_lines=i.tail_lines,this.since_seconds=i.since_seconds,this.since_time=this.convertValues(i.since_time,exports.time.Time),this.limit_bytes=i.limit_bytes,this.include_source_events=i.include_source_events,this.params=i.params}static createFrom(i={}){return new p(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.LogSessionOptions=p;class f{constructor(i={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_data");e(this,"options");typeof i=="string"&&(i=JSON.parse(i)),this.resource_key=i.resource_key,this.resource_id=i.resource_id,this.resource_data=i.resource_data,this.options=this.convertValues(i.options,p)}static createFrom(i={}){return new f(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.CreateSessionOptions=f;class l{constructor(i={}){e(this,"plugin");e(this,"resource");e(this,"target_builder");typeof i=="string"&&(i=JSON.parse(i)),this.plugin=i.plugin,this.resource=i.resource,this.target_builder=this.convertValues(i.target_builder,exports.types.ActionTargetBuilder)}static createFrom(i={}){return new l(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.Handler=l;class o{constructor(i={}){e(this,"id");e(this,"labels");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.labels=i.labels}static createFrom(i={}){return new o(i)}}a.LogSource=o;class y{constructor(i={}){e(this,"id");e(this,"plugin_id");e(this,"connection_id");e(this,"resource_key");e(this,"resource_id");e(this,"options");e(this,"status");e(this,"active_sources");e(this,"created_at");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.plugin_id=i.plugin_id,this.connection_id=i.connection_id,this.resource_key=i.resource_key,this.resource_id=i.resource_id,this.options=this.convertValues(i.options,p),this.status=i.status,this.active_sources=this.convertValues(i.active_sources,o),this.created_at=this.convertValues(i.created_at,exports.time.Time)}static createFrom(i={}){return new y(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.LogSession=y})(exports.logs||(exports.logs={}));exports.main=void 0;(a=>{class p{constructor(o={}){e(this,"displayName");e(this,"pattern");typeof o=="string"&&(o=JSON.parse(o)),this.displayName=o.displayName,this.pattern=o.pattern}static createFrom(o={}){return new p(o)}}a.FileFilter=p;class f{constructor(o={}){e(this,"defaultDirectory");e(this,"defaultFilename");e(this,"title");e(this,"filters");e(this,"showHiddenFiles");e(this,"canCreateDirectories");e(this,"resolvesAliases");e(this,"treatPackagesAsDirectories");typeof o=="string"&&(o=JSON.parse(o)),this.defaultDirectory=o.defaultDirectory,this.defaultFilename=o.defaultFilename,this.title=o.title,this.filters=this.convertValues(o.filters,p),this.showHiddenFiles=o.showHiddenFiles,this.canCreateDirectories=o.canCreateDirectories,this.resolvesAliases=o.resolvesAliases,this.treatPackagesAsDirectories=o.treatPackagesAsDirectories}static createFrom(o={}){return new f(o)}convertValues(o,y,r=!1){if(!o)return o;if(o.slice&&o.map)return o.map(i=>this.convertValues(i,y));if(typeof o=="object"){if(r){for(const i of Object.keys(o))o[i]=new y(o[i]);return o}return new y(o)}return o}}a.FileDialogOptions=f})(exports.main||(exports.main={}));exports.metric=void 0;(a=>{class p{constructor(n={}){e(this,"metric_id");e(this,"min");e(this,"max");e(this,"avg");e(this,"sum");e(this,"p50");e(this,"p90");e(this,"p99");e(this,"count");e(this,"window");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.metric_id=n.metric_id,this.min=n.min,this.max=n.max,this.avg=n.avg,this.sum=n.sum,this.p50=n.p50,this.p90=n.p90,this.p99=n.p99,this.count=n.count,this.window=n.window,this.labels=n.labels}static createFrom(n={}){return new p(n)}}a.AggregateValue=p;class f{constructor(n={}){e(this,"min");e(this,"max");e(this,"color");typeof n=="string"&&(n=JSON.parse(n)),this.min=n.min,this.max=n.max,this.color=n.color}static createFrom(n={}){return new f(n)}}a.ColorRange=f;class l{constructor(n={}){e(this,"metric_id");e(this,"value");e(this,"timestamp");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.metric_id=n.metric_id,this.value=n.value,this.timestamp=this.convertValues(n.timestamp,exports.time.Time),this.labels=n.labels}static createFrom(n={}){return new l(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.CurrentValue=l;class o{constructor(n={}){e(this,"timestamp");e(this,"value");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.timestamp=this.convertValues(n.timestamp,exports.time.Time),this.value=n.value,this.labels=n.labels}static createFrom(n={}){return new o(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.DataPoint=o;class y{constructor(n={}){e(this,"id");e(this,"name");e(this,"unit");e(this,"icon");e(this,"color_ranges");e(this,"format_string");e(this,"supported_shapes");e(this,"chart_group");typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.name=n.name,this.unit=n.unit,this.icon=n.icon,this.color_ranges=this.convertValues(n.color_ranges,f),this.format_string=n.format_string,this.supported_shapes=n.supported_shapes,this.chart_group=n.chart_group}static createFrom(n={}){return new y(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.MetricDescriptor=y;class r{constructor(n={}){e(this,"resource");e(this,"metrics");typeof n=="string"&&(n=JSON.parse(n)),this.resource=n.resource,this.metrics=this.convertValues(n.metrics,y)}static createFrom(n={}){return new r(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.Handler=r;class i{constructor(n={}){e(this,"plugin_id");e(this,"provider_id");e(this,"name");e(this,"icon");e(this,"description");e(this,"handlers");typeof n=="string"&&(n=JSON.parse(n)),this.plugin_id=n.plugin_id,this.provider_id=n.provider_id,this.name=n.name,this.icon=n.icon,this.description=n.description,this.handlers=this.convertValues(n.handlers,r)}static createFrom(n={}){return new i(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.MetricProviderSummary=i;class m{constructor(n={}){e(this,"metric_id");e(this,"data_points");e(this,"labels");typeof n=="string"&&(n=JSON.parse(n)),this.metric_id=n.metric_id,this.data_points=this.convertValues(n.data_points,o),this.labels=n.labels}static createFrom(n={}){return new m(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.TimeSeries=m;class s{constructor(n={}){e(this,"time_series");e(this,"current_value");e(this,"aggregate_value");typeof n=="string"&&(n=JSON.parse(n)),this.time_series=this.convertValues(n.time_series,m),this.current_value=this.convertValues(n.current_value,l),this.aggregate_value=this.convertValues(n.aggregate_value,p)}static createFrom(n={}){return new s(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.MetricResult=s;class c{constructor(n={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_namespace");e(this,"resource_data");e(this,"metric_ids");e(this,"shape");e(this,"start_time");e(this,"end_time");e(this,"step");e(this,"params");typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_namespace=n.resource_namespace,this.resource_data=n.resource_data,this.metric_ids=n.metric_ids,this.shape=n.shape,this.start_time=this.convertValues(n.start_time,exports.time.Time),this.end_time=this.convertValues(n.end_time,exports.time.Time),this.step=n.step,this.params=n.params}static createFrom(n={}){return new c(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.QueryRequest=c;class _{constructor(n={}){e(this,"success");e(this,"results");e(this,"error");typeof n=="string"&&(n=JSON.parse(n)),this.success=n.success,this.results=this.convertValues(n.results,s),this.error=n.error}static createFrom(n={}){return new _(n)}convertValues(n,g,b=!1){if(!n)return n;if(n.slice&&n.map)return n.map(d=>this.convertValues(d,g));if(typeof n=="object"){if(b){for(const d of Object.keys(n))n[d]=new g(n[d]);return n}return new g(n)}return n}}a.QueryResponse=_;class w{constructor(n={}){e(this,"resource_key");e(this,"resource_id");e(this,"resource_namespace");e(this,"resource_data");e(this,"metric_ids");e(this,"interval");typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_namespace=n.resource_namespace,this.resource_data=n.resource_data,this.metric_ids=n.metric_ids,this.interval=n.interval}static createFrom(n={}){return new w(n)}}a.SubscribeRequest=w})(exports.metric||(exports.metric={}));exports.networker=void 0;(a=>{class p{constructor(r={}){e(this,"resource_id");e(this,"connection_id");typeof r=="string"&&(r=JSON.parse(r)),this.resource_id=r.resource_id,this.connection_id=r.connection_id}static createFrom(r={}){return new p(r)}}a.FindPortForwardSessionRequest=p;class f{constructor(r={}){e(this,"algorithm");e(this,"key");e(this,"enabled");typeof r=="string"&&(r=JSON.parse(r)),this.algorithm=r.algorithm,this.key=r.key,this.enabled=r.enabled}static createFrom(r={}){return new f(r)}}a.PortForwardSessionEncryption=f;class l{constructor(r={}){e(this,"created_at");e(this,"updated_at");e(this,"connection");e(this,"labels");e(this,"id");e(this,"protocol");e(this,"state");e(this,"connection_type");e(this,"encryption");e(this,"local_port");e(this,"remote_port");typeof r=="string"&&(r=JSON.parse(r)),this.created_at=this.convertValues(r.created_at,exports.time.Time),this.updated_at=this.convertValues(r.updated_at,exports.time.Time),this.connection=r.connection,this.labels=r.labels,this.id=r.id,this.protocol=r.protocol,this.state=r.state,this.connection_type=r.connection_type,this.encryption=this.convertValues(r.encryption,f),this.local_port=r.local_port,this.remote_port=r.remote_port}static createFrom(r={}){return new l(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.PortForwardSession=l;class o{constructor(r={}){e(this,"connection");e(this,"labels");e(this,"params");e(this,"protocol");e(this,"connection_type");e(this,"encryption");e(this,"local_port");e(this,"remote_port");typeof r=="string"&&(r=JSON.parse(r)),this.connection=r.connection,this.labels=r.labels,this.params=r.params,this.protocol=r.protocol,this.connection_type=r.connection_type,this.encryption=this.convertValues(r.encryption,f),this.local_port=r.local_port,this.remote_port=r.remote_port}static createFrom(r={}){return new o(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.PortForwardSessionOptions=o})(exports.networker||(exports.networker={}));exports.plugin=void 0;(a=>{class p{constructor(l={}){e(this,"DevMode");e(this,"DevModePath");e(this,"ExistingState");typeof l=="string"&&(l=JSON.parse(l)),this.DevMode=l.DevMode,this.DevModePath=l.DevModePath,this.ExistingState=this.convertValues(l.ExistingState,exports.types.PluginStateRecord)}static createFrom(l={}){return new p(l)}convertValues(l,o,y=!1){if(!l)return l;if(l.slice&&l.map)return l.map(r=>this.convertValues(r,o));if(typeof l=="object"){if(y){for(const r of Object.keys(l))l[r]=new o(l[r]);return l}return new o(l)}return l}}a.LoadPluginOptions=p})(exports.plugin||(exports.plugin={}));exports.registry=void 0;(a=>{class p{constructor(i={}){e(this,"id");e(this,"name");e(this,"description");e(this,"icon_url");e(this,"category");e(this,"tags");e(this,"license");e(this,"official");e(this,"featured");e(this,"download_count");e(this,"average_rating");e(this,"review_count");e(this,"repository");e(this,"url");e(this,"publisher_name");e(this,"installed");e(this,"installed_version");e(this,"latest_version");e(this,"update_available");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.name=i.name,this.description=i.description,this.icon_url=i.icon_url,this.category=i.category,this.tags=i.tags,this.license=i.license,this.official=i.official,this.featured=i.featured,this.download_count=i.download_count,this.average_rating=i.average_rating,this.review_count=i.review_count,this.repository=i.repository,this.url=i.url,this.publisher_name=i.publisher_name,this.installed=i.installed,this.installed_version=i.installed_version,this.latest_version=i.latest_version,this.update_available=i.update_available}static createFrom(i={}){return new p(i)}}a.AvailablePlugin=p;class f{constructor(i={}){e(this,"date");e(this,"count");typeof i=="string"&&(i=JSON.parse(i)),this.date=i.date,this.count=i.count}static createFrom(i={}){return new f(i)}}a.DailyStat=f;class l{constructor(i={}){e(this,"total");e(this,"last_month");e(this,"last_week");e(this,"daily_stats");typeof i=="string"&&(i=JSON.parse(i)),this.total=i.total,this.last_month=i.last_month,this.last_week=i.last_week,this.daily_stats=this.convertValues(i.daily_stats,f)}static createFrom(i={}){return new l(i)}convertValues(i,m,s=!1){if(!i)return i;if(i.slice&&i.map)return i.map(c=>this.convertValues(c,m));if(typeof i=="object"){if(s){for(const c of Object.keys(i))i[c]=new m(i[c]);return i}return new m(i)}return i}}a.DownloadStats=l;class o{constructor(i={}){e(this,"id");e(this,"user_id");e(this,"rating");e(this,"title");e(this,"body");e(this,"created_at");typeof i=="string"&&(i=JSON.parse(i)),this.id=i.id,this.user_id=i.user_id,this.rating=i.rating,this.title=i.title,this.body=i.body,this.created_at=i.created_at}static createFrom(i={}){return new o(i)}}a.Review=o;class y{constructor(i={}){e(this,"version");e(this,"description");e(this,"changelog");e(this,"min_ide_version");e(this,"max_ide_version");e(this,"capabilities");e(this,"created_at");typeof i=="string"&&(i=JSON.parse(i)),this.version=i.version,this.description=i.description,this.changelog=i.changelog,this.min_ide_version=i.min_ide_version,this.max_ide_version=i.max_ide_version,this.capabilities=i.capabilities,this.created_at=i.created_at}static createFrom(i={}){return new y(i)}}a.VersionInfo=y})(exports.registry||(exports.registry={}));exports.settings=void 0;(a=>{(y=>{y.TEXT="text",y.INTEGER="integer",y.FLOAT="float",y.TOGGLE="toggle",y.COLOR="color",y.DATETIME="datetime",y.PASSWORD="password"})(a.SettingType||(a.SettingType={}));class p{constructor(r={}){e(this,"enabled");e(this,"allowFolders");e(this,"extensions");e(this,"multiple");e(this,"relative");e(this,"defaultPath");typeof r=="string"&&(r=JSON.parse(r)),this.enabled=r.enabled,this.allowFolders=r.allowFolders,this.extensions=r.extensions,this.multiple=r.multiple,this.relative=r.relative,this.defaultPath=r.defaultPath}static createFrom(r={}){return new p(r)}}a.SettingFileSelection=p;class f{constructor(r={}){e(this,"label");e(this,"description");e(this,"value");typeof r=="string"&&(r=JSON.parse(r)),this.label=r.label,this.description=r.description,this.value=r.value}static createFrom(r={}){return new f(r)}}a.SettingOption=f;class l{constructor(r={}){e(this,"id");e(this,"label");e(this,"description");e(this,"type");e(this,"value");e(this,"default");e(this,"options");e(this,"fileSelection");e(this,"sensitive");typeof r=="string"&&(r=JSON.parse(r)),this.id=r.id,this.label=r.label,this.description=r.description,this.type=r.type,this.value=r.value,this.default=r.default,this.options=this.convertValues(r.options,f),this.fileSelection=this.convertValues(r.fileSelection,p),this.sensitive=r.sensitive}static createFrom(r={}){return new l(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.Setting=l;class o{constructor(r={}){e(this,"settings");e(this,"id");e(this,"label");e(this,"description");e(this,"icon");typeof r=="string"&&(r=JSON.parse(r)),this.settings=this.convertValues(r.settings,l,!0),this.id=r.id,this.label=r.label,this.description=r.description,this.icon=r.icon}static createFrom(r={}){return new o(r)}convertValues(r,i,m=!1){if(!r)return r;if(r.slice&&r.map)return r.map(s=>this.convertValues(s,i));if(typeof r=="object"){if(m){for(const s of Object.keys(r))r[s]=new i(r[s]);return r}return new i(r)}return r}}a.Category=o})(exports.settings||(exports.settings={}));exports.time=void 0;(a=>{class p{static createFrom(l={}){return new p(l)}constructor(l={}){typeof l=="string"&&(l=JSON.parse(l))}}a.Time=p})(exports.time||(exports.time={}));exports.trivy=void 0;(a=>{(l=>{l.CONFIG="config",l.FILESYSTEM="fs",l.IMAGE="image",l.KUBERNETES="kubernetes",l.REPOSITORY="repository",l.ROOTFS="rootfs",l.SBOM="sbom"})(a.Command||(a.Command={})),(l=>{l.VULN="vuln",l.MISCONFIG="misconfig",l.SECRET="secret",l.LICENSE="license"})(a.Scanner||(a.Scanner={}));class p{constructor(o={}){e(this,"filePatterns");e(this,"skipDirs");e(this,"skipFiles");e(this,"scanners");typeof o=="string"&&(o=JSON.parse(o)),this.filePatterns=o.filePatterns,this.skipDirs=o.skipDirs,this.skipFiles=o.skipFiles,this.scanners=o.scanners}static createFrom(o={}){return new p(o)}}a.ScanOptions=p;class f{constructor(o={}){e(this,"timestamp");e(this,"result");e(this,"id");e(this,"command");typeof o=="string"&&(o=JSON.parse(o)),this.timestamp=this.convertValues(o.timestamp,exports.time.Time),this.result=o.result,this.id=o.id,this.command=o.command}static createFrom(o={}){return new f(o)}convertValues(o,y,r=!1){if(!o)return o;if(o.slice&&o.map)return o.map(i=>this.convertValues(i,y));if(typeof o=="object"){if(r){for(const i of Object.keys(o))o[i]=new y(o[i]);return o}return new y(o)}return o}}a.ScanResult=f})(exports.trivy||(exports.trivy={}));exports.types=void 0;(a=>{(O=>{O.UNKNOWN="UNKNOWN",O.CONNECTED="CONNECTED",O.DISCONNECTED="DISCONNECTED",O.PENDING="PENDING",O.FAILED="FAILED",O.ERROR="ERROR",O.UNAUTHORIZED="UNAUTHORIZED",O.FORBIDDEN="FORBIDDEN",O.BAD_REQUEST="BAD_REQUEST",O.NOT_FOUND="NOT_FOUND",O.TIMEOUT="TIMEOUT",O.UNAVAILABLE="UNAVAILABLE",O.REQUEST_ENTITY_TOO_LARGE="REQUEST_ENTITY_TOO_LARGE"})(a.ConnectionStatusCode||(a.ConnectionStatusCode={}));class p{constructor(t={}){e(this,"id");e(this,"label");e(this,"description");e(this,"icon");e(this,"scope");e(this,"streaming");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.label=t.label,this.description=t.description,this.icon=t.icon,this.scope=t.scope,this.streaming=t.streaming}static createFrom(t={}){return new p(t)}}a.ActionDescriptor=p;class f{constructor(t={}){e(this,"id");e(this,"namespace");e(this,"params");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.namespace=t.namespace,this.params=t.params}static createFrom(t={}){return new f(t)}}a.ActionInput=f;class l{constructor(t={}){e(this,"success");e(this,"data");e(this,"message");typeof t=="string"&&(t=JSON.parse(t)),this.success=t.success,this.data=t.data,this.message=t.message}static createFrom(t={}){return new l(t)}}a.ActionResult=l;class o{constructor(t={}){e(this,"selectors");e(this,"label_selector");e(this,"label");e(this,"paths");typeof t=="string"&&(t=JSON.parse(t)),this.selectors=t.selectors,this.label_selector=t.label_selector,this.label=t.label,this.paths=t.paths}static createFrom(t={}){return new o(t)}}a.ActionTargetBuilder=o;class y{constructor(t={}){e(this,"idAccessor");e(this,"namespaceAccessor");e(this,"namespaced");e(this,"resourceKey");e(this,"keyAccessor");e(this,"keyMap");e(this,"detailExtractors");e(this,"displayId");typeof t=="string"&&(t=JSON.parse(t)),this.idAccessor=t.idAccessor,this.namespaceAccessor=t.namespaceAccessor,this.namespaced=t.namespaced,this.resourceKey=t.resourceKey,this.keyAccessor=t.keyAccessor,this.keyMap=t.keyMap,this.detailExtractors=t.detailExtractors,this.displayId=t.displayId}static createFrom(t={}){return new y(t)}}a.ResourceLink=y;class r{constructor(t={}){e(this,"id");e(this,"header");e(this,"accessor");e(this,"accessorPriority");e(this,"colorMap");e(this,"color");e(this,"align");e(this,"hidden");e(this,"width");e(this,"formatter");e(this,"component");e(this,"componentParams");e(this,"resourceLink");e(this,"valueMap");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.header=t.header,this.accessor=t.accessor,this.accessorPriority=t.accessorPriority,this.colorMap=t.colorMap,this.color=t.color,this.align=t.align,this.hidden=t.hidden,this.width=t.width,this.formatter=t.formatter,this.component=t.component,this.componentParams=t.componentParams,this.resourceLink=this.convertValues(t.resourceLink,y),this.valueMap=t.valueMap}static createFrom(t={}){return new r(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ColumnDef=r;class i{constructor(t={}){e(this,"last_refresh");e(this,"data");e(this,"labels");e(this,"id");e(this,"uid");e(this,"name");e(this,"description");e(this,"avatar");e(this,"expiry_time");e(this,"Client");typeof t=="string"&&(t=JSON.parse(t)),this.last_refresh=this.convertValues(t.last_refresh,exports.time.Time),this.data=t.data,this.labels=t.labels,this.id=t.id,this.uid=t.uid,this.name=t.name,this.description=t.description,this.avatar=t.avatar,this.expiry_time=t.expiry_time,this.Client=t.Client}static createFrom(t={}){return new i(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.Connection=i;class m{constructor(t={}){e(this,"connection");e(this,"status");e(this,"error");e(this,"details");typeof t=="string"&&(t=JSON.parse(t)),this.connection=this.convertValues(t.connection,i),this.status=t.status,this.error=t.error,this.details=t.details}static createFrom(t={}){return new m(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ConnectionStatus=m;class s{constructor(t={}){e(this,"params");e(this,"input");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.input=t.input,this.namespace=t.namespace}static createFrom(t={}){return new s(t)}}a.CreateInput=s;class c{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new c(t)}}a.CreateResult=c;class _{constructor(t={}){e(this,"input");e(this,"params");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.input=t.input,this.params=t.params,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new _(t)}}a.DeleteInput=_;class w{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new w(t)}}a.DeleteResult=w;class S{constructor(t={}){e(this,"resourceKey");e(this,"fileMatch");e(this,"uri");e(this,"url");e(this,"content");e(this,"language");typeof t=="string"&&(t=JSON.parse(t)),this.resourceKey=t.resourceKey,this.fileMatch=t.fileMatch,this.uri=t.uri,this.url=t.url,this.content=t.content,this.language=t.language}static createFrom(t={}){return new S(t)}}a.EditorSchema=S;class n{constructor(t={}){e(this,"page");e(this,"pageSize");typeof t=="string"&&(t=JSON.parse(t)),this.page=t.page,this.pageSize=t.pageSize}static createFrom(t={}){return new n(t)}}a.PaginationParams=n;class g{constructor(t={}){e(this,"by");e(this,"direction");typeof t=="string"&&(t=JSON.parse(t)),this.by=t.by,this.direction=t.direction}static createFrom(t={}){return new g(t)}}a.OrderParams=g;class b{constructor(t={}){e(this,"params");e(this,"conditions");e(this,"namespaces");e(this,"order");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.conditions=t.conditions,this.namespaces=t.namespaces,this.order=this.convertValues(t.order,g),this.pagination=this.convertValues(t.pagination,n)}static createFrom(t={}){return new b(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.FindInput=b;class d{constructor(t={}){e(this,"page");e(this,"pageSize");e(this,"total");e(this,"pages");typeof t=="string"&&(t=JSON.parse(t)),this.page=t.page,this.pageSize=t.pageSize,this.total=t.total,this.pages=t.pages}static createFrom(t={}){return new d(t)}}a.PaginationResult=d;class k{constructor(t={}){e(this,"result");e(this,"success");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success,this.pagination=this.convertValues(t.pagination,d)}static createFrom(t={}){return new k(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.FindResult=k;class N{constructor(t={}){e(this,"params");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new N(t)}}a.GetInput=N;class F{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new F(t)}}a.GetResult=F;class J{constructor(t={}){e(this,"connection");e(this,"resources");e(this,"resourceCounts");e(this,"totalResources");e(this,"syncedCount");e(this,"errorCount");typeof t=="string"&&(t=JSON.parse(t)),this.connection=t.connection,this.resources=t.resources,this.resourceCounts=t.resourceCounts,this.totalResources=t.totalResources,this.syncedCount=t.syncedCount,this.errorCount=t.errorCount}static createFrom(t={}){return new J(t)}}a.InformerConnectionSummary=J;class V{constructor(t={}){e(this,"id");e(this,"title");e(this,"icon");e(this,"description");e(this,"items");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.title=t.title,this.icon=t.icon,this.description=t.description,this.items=this.convertValues(t.items,V)}static createFrom(t={}){return new V(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.LayoutItem=V;class j{constructor(t={}){e(this,"params");e(this,"namespaces");e(this,"order");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.params=t.params,this.namespaces=t.namespaces,this.order=this.convertValues(t.order,g),this.pagination=this.convertValues(t.pagination,n)}static createFrom(t={}){return new j(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ListInput=j;class E{constructor(t={}){e(this,"result");e(this,"success");e(this,"pagination");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success,this.pagination=this.convertValues(t.pagination,d)}static createFrom(t={}){return new E(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ListResult=E;class D{constructor(t={}){e(this,"id");e(this,"metadata");e(this,"phase");e(this,"enabled");e(this,"devMode");e(this,"devPath");e(this,"capabilities");e(this,"lastError");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.metadata=this.convertValues(t.metadata,exports.config.PluginMeta),this.phase=t.phase,this.enabled=t.enabled,this.devMode=t.devMode,this.devPath=t.devPath,this.capabilities=t.capabilities,this.lastError=t.lastError}static createFrom(t={}){return new D(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.PluginInfo=D;class P{constructor(t={}){e(this,"id");e(this,"phase");e(this,"metadata");e(this,"enabled");e(this,"devMode");e(this,"devPath");e(this,"lastError");e(this,"errorCount");e(this,"installedAt");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.phase=t.phase,this.metadata=this.convertValues(t.metadata,exports.config.PluginMeta),this.enabled=t.enabled,this.devMode=t.devMode,this.devPath=t.devPath,this.lastError=t.lastError,this.errorCount=t.errorCount,this.installedAt=this.convertValues(t.installedAt,exports.time.Time)}static createFrom(t={}){return new P(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.PluginStateRecord=P;class R{constructor(t={}){e(this,"id_accessor");e(this,"namespace_accessor");e(this,"memoizer_accessor");e(this,"columnDefs");e(this,"supportedOperations");typeof t=="string"&&(t=JSON.parse(t)),this.id_accessor=t.id_accessor,this.namespace_accessor=t.namespace_accessor,this.memoizer_accessor=t.memoizer_accessor,this.columnDefs=this.convertValues(t.columnDefs,r),this.supportedOperations=t.supportedOperations}static createFrom(t={}){return new R(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ResourceDefinition=R;class T{constructor(t={}){e(this,"id");e(this,"name");e(this,"description");e(this,"icon");e(this,"resources");typeof t=="string"&&(t=JSON.parse(t)),this.id=t.id,this.name=t.name,this.description=t.description,this.icon=t.icon,this.resources=this.convertValues(t.resources,Array,!0)}static createFrom(t={}){return new T(t)}convertValues(t,u,v=!1){if(!t)return t;if(t.slice&&t.map)return t.map(h=>this.convertValues(h,u));if(typeof t=="object"){if(v){for(const h of Object.keys(t))t[h]=new u(t[h]);return t}return new u(t)}return t}}a.ResourceGroup=T;class I{constructor(t={}){e(this,"group");e(this,"version");e(this,"kind");e(this,"label");e(this,"icon");e(this,"description");e(this,"category");typeof t=="string"&&(t=JSON.parse(t)),this.group=t.group,this.version=t.version,this.kind=t.kind,this.label=t.label,this.icon=t.icon,this.description=t.description,this.category=t.category}static createFrom(t={}){return new I(t)}}a.ResourceMeta=I;class A{constructor(t={}){e(this,"input");e(this,"params");e(this,"id");e(this,"namespace");typeof t=="string"&&(t=JSON.parse(t)),this.input=t.input,this.params=t.params,this.id=t.id,this.namespace=t.namespace}static createFrom(t={}){return new A(t)}}a.UpdateInput=A;class M{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new M(t)}}a.UpdateResult=M})(exports.types||(exports.types={}));exports.ui=void 0;(a=>{class p{constructor(r={}){e(this,"plugin");typeof r=="string"&&(r=JSON.parse(r)),this.plugin=r.plugin}static createFrom(r={}){return new p(r)}}a.GetPluginComponentsInput=p;class f{constructor(r={}){e(this,"plugin");e(this,"resource");e(this,"area");typeof r=="string"&&(r=JSON.parse(r)),this.plugin=r.plugin,this.resource=r.resource,this.area=r.area}static createFrom(r={}){return new f(r)}}a.GetResourceAreaComponentInput=f;class l{constructor(r={}){e(this,"plugin");e(this,"resource");typeof r=="string"&&(r=JSON.parse(r)),this.plugin=r.plugin,this.resource=r.resource}static createFrom(r={}){return new l(r)}}a.GetResourceComponentsInput=l;class o{constructor(r={}){e(this,"owner");e(this,"name");e(this,"plugin");e(this,"resource");e(this,"area");e(this,"extension");typeof r=="string"&&(r=JSON.parse(r)),this.owner=r.owner,this.name=r.name,this.plugin=r.plugin,this.resource=r.resource,this.area=r.area,this.extension=r.extension}static createFrom(r={}){return new o(r)}}a.ResourceComponent=o})(exports.ui||(exports.ui={}));exports.utils=void 0;(a=>{class p{constructor(l={}){e(this,"filename");e(this,"contents");typeof l=="string"&&(l=JSON.parse(l)),this.filename=l.filename,this.contents=l.contents}static createFrom(l={}){return new p(l)}}a.GetLanguageInput=p})(exports.utils||(exports.utils={}));
1
+ "use strict";var q=Object.defineProperty;var Q=(a,h,d)=>h in a?q(a,h,{enumerable:!0,configurable:!0,writable:!0,value:d}):a[h]=d;var e=(a,h,d)=>Q(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,m=!1){if(!s)return s;if(s.slice&&s.map)return s.map(S=>this.convertValues(S,g));if(typeof s=="object"){if(m){for(const S of Object.keys(s))s[S]=new g(s[S]);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 f{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 f(s)}}a.PluginThemeColors=f;class n{constructor(s={}){e(this,"colors");typeof s=="string"&&(s=JSON.parse(s)),this.colors=this.convertValues(s.colors,f)}static createFrom(s={}){return new n(s)}convertValues(s,g,m=!1){if(!s)return s;if(s.slice&&s.map)return s.map(S=>this.convertValues(S,g));if(typeof s=="object"){if(m){for(const S of Object.keys(s))s[S]=new g(s[S]);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,m=!1){if(!s)return s;if(s.slice&&s.map)return s.map(S=>this.convertValues(S,g));if(typeof s=="object"){if(m){for(const S of Object.keys(s))s[S]=new g(s[S]);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(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);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(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);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 f{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 f(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);return i}return new s(i)}return i}}a.Handler=f;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(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);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(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);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(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);return i}return new s(i)}return i}}a.Handler=o;class f{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 f(i)}}a.LogSource=f;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,f),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(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);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,f,n=!1){if(!o)return o;if(o.slice&&o.map)return o.map(l=>this.convertValues(l,f));if(typeof o=="object"){if(n){for(const l of Object.keys(o))o[l]=new f(o[l]);return o}return new f(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,b=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(b){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,b=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(b){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 f{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 f(r)}convertValues(r,v,b=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(b){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.MetricDescriptor=f;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,f)}static createFrom(r={}){return new n(r)}convertValues(r,v,b=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(b){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,b=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(b){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,b=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(b){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,b=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(b){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,b=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(b){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 m{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 m(r)}convertValues(r,v,b=!1){if(!r)return r;if(r.slice&&r.map)return r.map(u=>this.convertValues(u,v));if(typeof r=="object"){if(b){for(const u of Object.keys(r))r[u]=new v(r[u]);return r}return new v(r)}return r}}a.QueryResponse=m;class S{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 S(r)}}a.SubscribeRequest=S})(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,f=!1){if(!p)return p;if(p.slice&&p.map)return p.map(n=>this.convertValues(n,o));if(typeof p=="object"){if(f){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(f={}){e(this,"timestamp");e(this,"pluginID");e(this,"source");e(this,"level");e(this,"message");typeof f=="string"&&(f=JSON.parse(f)),this.timestamp=f.timestamp,this.pluginID=f.pluginID,this.source=f.source,this.level=f.level,this.message=f.message}static createFrom(f={}){return new h(f)}}a.LogEntry=h;class d{static createFrom(f={}){return new d(f)}constructor(f={}){typeof f=="string"&&(f=JSON.parse(f))}}a.Manager=d;class p{static createFrom(f={}){return new p(f)}constructor(f={}){typeof f=="string"&&(f=JSON.parse(f))}}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 f{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 f(l)}}a.VersionInfo=f})(exports.registry||(exports.registry={}));exports.resource=void 0;(a=>{(O=>{O[O.IDLE=0]="IDLE",O[O.SYNCING=1]="SYNCING",O[O.SYNCED=2]="SYNCED",O[O.ERROR=3]="ERROR",O[O.STOPPED=4]="STOPPED",O[O.FAILED=5]="FAILED",O[O.FORBIDDEN=6]="FORBIDDEN",O[O.SKIPPED=7]="SKIPPED"})(a.WatchState||(a.WatchState={})),(O=>{O[O.ON_CONNECT=0]="ON_CONNECT",O[O.ON_FIRST_QUERY=1]="ON_FIRST_QUERY",O[O.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 f{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 f(t)}}a.ActionResult=f;class n{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 n(t)}}a.ResourceLink=n;class l{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,n),this.valueMap=t.valueMap}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.ColumnDefinition=l;class i{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 i(t)}}a.CreateInput=i;class s{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 s(t)}}a.CreateResult=s;class g{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 g(t)}}a.DeleteInput=g;class m{constructor(t={}){e(this,"result");e(this,"success");typeof t=="string"&&(t=JSON.parse(t)),this.result=t.result,this.success=t.success}static createFrom(t={}){return new m(t)}}a.DeleteResult=m;class S{constructor(t={}){e(this,"resourceKey");e(this,"fileMatch");e(this,"uri");e(this,"url");e(this,"content");e(this,"language");typeof t=="string"&&(t=JSON.parse(t)),this.resourceKey=t.resourceKey,this.fileMatch=t.fileMatch,this.uri=t.uri,this.url=t.url,this.content=t.content,this.language=t.language}static createFrom(t={}){return new S(t)}}a.EditorSchema=S;class V{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 V(t)}}a.FilterPredicate=V;class r{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,V),this.groups=this.convertValues(t.groups,r)}static createFrom(t={}){return new r(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=r;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 b{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 b(t)}}a.PaginationParams=b;class u{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 u(t)}}a.OrderField=u;class j{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,r),this.textQuery=t.textQuery,this.namespaces=t.namespaces,this.order=this.convertValues(t.order,u),this.pagination=this.convertValues(t.pagination,b)}static createFrom(t={}){return new j(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=j;class D{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 D(t)}}a.FindResult=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 P{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 P(t)}}a.GetResult=P;class _{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 _(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=_;class I{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,u),this.pagination=this.convertValues(t.pagination,b)}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.ListInput=I;class T{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 T(t)}}a.ListResult=T;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 A{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 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.ResolvedRelationship=A;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 C{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 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.ResourceCapabilities=C;class x{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,l)}static createFrom(t={}){return new x(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=x;class L{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 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.ResourceEvent=L;class M{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 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.ResourceGroup=M;class U{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,_)}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.ResourceHealth=U;class G{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 G(t)}}a.ResourceMeta=G;class K{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 K(t)}}a.UpdateInput=K;class B{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 B(t)}}a.UpdateResult=B;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 H{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 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.WatchConnectionSummary=H})(exports.resource||(exports.resource={}));exports.settings=void 0;(a=>{(f=>{f.TEXT="text",f.SELECT="select",f.MULTISELECT="multiselect",f.INTEGER="integer",f.FLOAT="float",f.TOGGLE="toggle",f.COLOR="color",f.DATETIME="datetime",f.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,f,n=!1){if(!o)return o;if(o.slice&&o.map)return o.map(l=>this.convertValues(l,f));if(typeof o=="object"){if(n){for(const l of Object.keys(o))o[l]=new f(o[l]);return o}return new f(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(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);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(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);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(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);return i}return new s(i)}return i}}a.ConnectionStatus=o;class f{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 f(i)}convertValues(i,s,g=!1){if(!i)return i;if(i.slice&&i.map)return i.map(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);return i}return new s(i)}return i}}a.PluginInfo=f;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(m=>this.convertValues(m,s));if(typeof i=="object"){if(g){for(const m of Object.keys(i))i[m]=new s(i[m]);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={}));