@omniviewdev/runtime 0.12.0 → 0.14.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 (41) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +199 -175
  4. package/dist/bindings/events/index.d.ts +4 -0
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +20 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +2 -0
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/binding.d.ts +8 -0
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/index.d.ts +3 -0
  10. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/models.d.ts +33 -0
  11. package/dist/bindings/github.com/omniviewdev/omniview/{backend/pkg/plugin/settings → internal/profiling}/index.d.ts +1 -0
  12. package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/models.d.ts +12 -0
  13. package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/servicewrapper.d.ts +3 -0
  14. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +2 -2
  15. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +47 -1
  16. package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +8 -0
  17. package/dist/connection/metadata.d.ts +42 -0
  18. package/dist/context/plugins/usePluginContext.d.ts +0 -1
  19. package/dist/context/settings/SettingsContext.d.ts +0 -1
  20. package/dist/hooks/connection/index.d.ts +2 -0
  21. package/dist/hooks/connection/useConnectionMetadata.d.ts +16 -0
  22. package/dist/hooks/settings/index.d.ts +1 -0
  23. package/dist/hooks/settings/useScopedSettings.d.ts +30 -0
  24. package/dist/index.cjs +4 -4
  25. package/dist/index.js +2766 -2480
  26. package/dist/{models-Cg1YRHQm.js → models-BJgLAHwq.js} +1 -1
  27. package/dist/{models-UwESEW2B.js → models-BTzXdmUY.js} +183 -175
  28. package/dist/{models-dzj-SsFZ.cjs → models-BhsFYb70.cjs} +1 -1
  29. package/dist/models-NYvUa5Yc.cjs +1 -0
  30. package/dist/models.cjs +1 -1
  31. package/dist/models.js +8 -8
  32. package/dist/resource/v2/client.d.ts +3 -0
  33. package/dist/servicewrapper-B-DdHGSp.cjs +1 -0
  34. package/dist/servicewrapper-Bl98xvmZ.js +639 -0
  35. package/package.json +3 -3
  36. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/servicewrapper.d.ts +0 -19
  37. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/index.d.ts +0 -2
  38. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/servicewrapper.d.ts +0 -52
  39. package/dist/models-DSGyy8lg.cjs +0 -1
  40. package/dist/servicewrapper-BOM6A8IG.cjs +0 -1
  41. package/dist/servicewrapper-Bda7yi8z.js +0 -684
@@ -1,52 +0,0 @@
1
- import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
2
- import * as settings$0 from "../../../plugin-sdk/settings/models.js";
3
- export declare function GetBool(id: string): $CancellablePromise<boolean>;
4
- /**
5
- * GetCategories returns all category metadata for the UI settings navigation.
6
- */
7
- export declare function GetCategories(): $CancellablePromise<settings$0.Category[]>;
8
- /**
9
- * GetCategory returns a single settings category by ID, including full metadata
10
- * (Label, Icon, Description) from the registered category definitions and live
11
- * setting values from the in-memory provider.
12
- */
13
- export declare function GetCategory(id: string): $CancellablePromise<settings$0.Category>;
14
- /**
15
- * GetCategoryValues returns a flat map of setting values for a single category.
16
- */
17
- export declare function GetCategoryValues(id: string): $CancellablePromise<{
18
- [_ in string]?: any;
19
- }>;
20
- export declare function GetFloat(id: string): $CancellablePromise<number>;
21
- export declare function GetFloatSlice(id: string): $CancellablePromise<number[]>;
22
- export declare function GetInt(id: string): $CancellablePromise<number>;
23
- export declare function GetIntSlice(id: string): $CancellablePromise<number[]>;
24
- export declare function GetSetting(id: string): $CancellablePromise<settings$0.Setting>;
25
- export declare function GetSettingValue(id: string): $CancellablePromise<any>;
26
- export declare function GetString(id: string): $CancellablePromise<string>;
27
- export declare function GetStringSlice(id: string): $CancellablePromise<string[]>;
28
- export declare function ListSettings(): $CancellablePromise<settings$0.Store>;
29
- /**
30
- * LoadSettings is a no-op reload trigger for the frontend. With bbolt-backed
31
- * persistence, settings are always in memory — this exists so the frontend's
32
- * "reload" button still has a valid binding. It re-reads from the in-memory
33
- * store (which is already current).
34
- */
35
- export declare function LoadSettings(): $CancellablePromise<void>;
36
- export declare function SetSetting(id: string, value: any): $CancellablePromise<void>;
37
- export declare function SetSettings(settingsMap: {
38
- [_ in string]?: any;
39
- }): $CancellablePromise<void>;
40
- /**
41
- * ValidateSetting checks a draft without changing or persisting its value.
42
- */
43
- export declare function ValidateSetting(id: string, value: any): $CancellablePromise<settings$0.ValidationResult>;
44
- /**
45
- * Values returns a flat map of all setting values keyed by "category.settingID".
46
- * This is a host-side convenience for the frontend — it was removed from the SDK
47
- * Provider interface (plugins don't need it) but the UI settings context uses it
48
- * to populate the full settings state.
49
- */
50
- export declare function Values(): $CancellablePromise<{
51
- [_ in string]?: any;
52
- }>;
@@ -1 +0,0 @@
1
- "use strict";const s=require("./index-BVi9X4oU.cjs");class se{connection;constructor(e={}){"connection"in e||(this.connection=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new se(n)}}class re{address;incarnation;constructor(e={}){"address"in e||(this.address=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new re(n)}}let x=class ue{label;label_selector;paths;selectors;constructor(e={}){"label"in e||(this.label=""),"label_selector"in e||(this.label_selector=""),"paths"in e||(this.paths=[]),"selectors"in e||(this.selectors={}),Object.assign(this,e)}static createFrom(e={}){const n=B,i=_;let a=typeof e=="string"?JSON.parse(e):e;return"paths"in a&&(a.paths=n(a.paths)),"selectors"in a&&(a.selectors=i(a.selectors)),new ue(a)}},Oe=class ve{plugin;resource;target_builder;default_command;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new x),"default_command"in e||(this.default_command=[]),Object.assign(this,e)}static createFrom(e={}){const n=ze,i=B;let a=typeof e=="string"?JSON.parse(e):e;return"target_builder"in a&&(a.target_builder=n(a.target_builder)),"default_command"in a&&(a.default_command=i(a.default_command)),new ve(a)}};class I{created_at;labels;params;id;command;attached;constructor(e={}){"created_at"in e||(this.created_at="0001-01-01T00:00:00.000Z"),"labels"in e||(this.labels={}),"params"in e||(this.params={}),"id"in e||(this.id=""),"command"in e||(this.command=[]),"attached"in e||(this.attached=!1),Object.assign(this,e)}static createFrom(e={}){const n=_,i=_,a=B;let r=typeof e=="string"?JSON.parse(e):e;return"labels"in r&&(r.labels=n(r.labels)),"params"in r&&(r.params=i(r.params)),"command"in r&&(r.command=a(r.command)),new I(r)}}class k{params;labels;id;resource_plugin;resource_key;resource_data;reference;route;command;tty;constructor(e={}){"params"in e||(this.params={}),"labels"in e||(this.labels={}),"id"in e||(this.id=""),"resource_plugin"in e||(this.resource_plugin=""),"resource_key"in e||(this.resource_key=""),"command"in e||(this.command=[]),"tty"in e||(this.tty=!1),Object.assign(this,e)}static createFrom(e={}){const n=_,i=_,a=xe,r=ke,ae=B;let o=typeof e=="string"?JSON.parse(e):e;return"params"in o&&(o.params=n(o.params)),"labels"in o&&(o.labels=i(o.labels)),"reference"in o&&(o.reference=a(o.reference)),"route"in o&&(o.route=r(o.route)),"command"in o&&(o.command=ae(o.command)),new k(o)}}const B=s.Array(s.Any),_=s.Map(s.Any,s.Any),ze=x.createFrom,Re=re.createFrom,xe=s.Nullable(Re),Ie=se.createFrom,ke=s.Nullable(Ie),Be=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:x,Handler:Oe,Session:I,SessionOptions:k},Symbol.toStringTag,{value:"Module"}));class U{resource_id;connection_id;constructor(e={}){"resource_id"in e||(this.resource_id=""),"connection_id"in e||(this.connection_id=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new U(n)}}var le=(t=>(t.$zero="",t.PortForwardConnectionTypeResource="RESOURCE",t.PortForwardConnectionTypeStatic="STATIC",t))(le||{}),oe=(t=>(t.$zero="",t.PortForwardProtocolTCP="TCP",t.PortForwardProtocolUDP="UDP",t))(oe||{});class D{created_at;updated_at;connection;labels;id;protocol;state;connection_type;encryption;local_port;remote_port;constructor(e={}){"created_at"in e||(this.created_at="0001-01-01T00:00:00.000Z"),"updated_at"in e||(this.updated_at="0001-01-01T00:00:00.000Z"),"connection"in e||(this.connection=null),"labels"in e||(this.labels={}),"id"in e||(this.id=""),"protocol"in e||(this.protocol=""),"state"in e||(this.state=""),"connection_type"in e||(this.connection_type=""),"encryption"in e||(this.encryption=new c),"local_port"in e||(this.local_port=0),"remote_port"in e||(this.remote_port=0),Object.assign(this,e)}static createFrom(e={}){const n=Ue,i=De;let a=typeof e=="string"?JSON.parse(e):e;return"labels"in a&&(a.labels=n(a.labels)),"encryption"in a&&(a.encryption=i(a.encryption)),new D(a)}}class c{algorithm;key;enabled;constructor(e={}){"algorithm"in e||(this.algorithm=""),"key"in e||(this.key=""),"enabled"in e||(this.enabled=!1),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new c(n)}}var ce=(t=>(t.$zero="",t.SessionStateActive="ACTIVE",t.SessionStatePaused="PAUSED",t.SessionStateStopped="STOPPED",t.SessionStateFailed="FAILED",t))(ce||{});const Ue=s.Map(s.Any,s.Any),De=c.createFrom,He=Object.freeze(Object.defineProperty({__proto__:null,FindPortForwardSessionRequest:U,PortForwardConnectionType:le,PortForwardProtocol:oe,PortForwardSession:D,PortForwardSessionEncryption:c,SessionState:ce},Symbol.toStringTag,{value:"Module"}));class H{id;name;description;icon_url;category;tags;license;official;featured;download_count;average_rating;review_count;repository;url;publisher_name;installed;installed_version;latest_version;update_available;constructor(e={}){"id"in e||(this.id=""),"name"in e||(this.name=""),"description"in e||(this.description=""),"icon_url"in e||(this.icon_url=""),"category"in e||(this.category=""),"tags"in e||(this.tags=[]),"license"in e||(this.license=""),"official"in e||(this.official=!1),"featured"in e||(this.featured=!1),"download_count"in e||(this.download_count=0),"average_rating"in e||(this.average_rating=0),"review_count"in e||(this.review_count=0),"repository"in e||(this.repository=""),"url"in e||(this.url=""),"publisher_name"in e||(this.publisher_name=""),"installed"in e||(this.installed=!1),"installed_version"in e||(this.installed_version=""),"latest_version"in e||(this.latest_version=""),"update_available"in e||(this.update_available=!1),Object.assign(this,e)}static createFrom(e={}){const n=Te;let i=typeof e=="string"?JSON.parse(e):e;return"tags"in i&&(i.tags=n(i.tags)),new H(i)}}class G{date;count;constructor(e={}){"date"in e||(this.date=""),"count"in e||(this.count=0),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new G(n)}}class Z{total;last_month;last_week;daily_stats;constructor(e={}){"total"in e||(this.total=0),"last_month"in e||(this.last_month=0),"last_week"in e||(this.last_week=0),"daily_stats"in e||(this.daily_stats=[]),Object.assign(this,e)}static createFrom(e={}){const n=Ze;let i=typeof e=="string"?JSON.parse(e):e;return"daily_stats"in i&&(i.daily_stats=n(i.daily_stats)),new Z(i)}}class L{id;user_id;rating;title;body;created_at;constructor(e={}){"id"in e||(this.id=""),"user_id"in e||(this.user_id=0),"rating"in e||(this.rating=0),"title"in e||(this.title=""),"body"in e||(this.body=""),"created_at"in e||(this.created_at=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new L(n)}}class V{version;description;changelog;min_ide_version;max_ide_version;capabilities;created_at;constructor(e={}){"version"in e||(this.version=""),"description"in e||(this.description=""),"changelog"in e||(this.changelog=""),"min_ide_version"in e||(this.min_ide_version=""),"max_ide_version"in e||(this.max_ide_version=""),"capabilities"in e||(this.capabilities=[]),"created_at"in e||(this.created_at=""),Object.assign(this,e)}static createFrom(e={}){const n=Te;let i=typeof e=="string"?JSON.parse(e):e;return"capabilities"in i&&(i.capabilities=n(i.capabilities)),new V(i)}}const Te=s.Array(s.Any),Ge=G.createFrom,Ze=s.Array(Ge),Le=Object.freeze(Object.defineProperty({__proto__:null,AvailablePlugin:H,DailyStat:G,DownloadStats:Z,Review:L,VersionInfo:V},Symbol.toStringTag,{value:"Module"}));class g{name;email;url;constructor(e={}){"name"in e||(this.name=""),"email"in e||(this.email=""),"url"in e||(this.url=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new g(n)}}var de=(t=>(t.$zero="",t.PluginComponentAreaEditor="EDITOR",t.PluginComponentAreaSidebar="SIDEBAR",t))(de||{});class d{resource;constructor(e={}){"resource"in e||(this.resource=[]),Object.assign(this,e)}static createFrom(e={}){const n=Me;let i=typeof e=="string"?JSON.parse(e):e;return"resource"in i&&(i.resource=n(i.resource)),new d(i)}}class y{name;email;constructor(e={}){"name"in e||(this.name=""),"email"in e||(this.email=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new y(n)}}class p{id;version;name;icon;icon_url;description;repository;website;category;license;author;maintainers;tags;dependencies;capabilities;theme;components;schema_version;sdk_protocol_version;state_isolation;constructor(e={}){"id"in e||(this.id=""),"version"in e||(this.version=""),"name"in e||(this.name=""),"icon"in e||(this.icon=""),"icon_url"in e||(this.icon_url=""),"description"in e||(this.description=""),"repository"in e||(this.repository=""),"website"in e||(this.website=""),"category"in e||(this.category=""),"license"in e||(this.license=""),"maintainers"in e||(this.maintainers=[]),"tags"in e||(this.tags=[]),"dependencies"in e||(this.dependencies=[]),"capabilities"in e||(this.capabilities=[]),"theme"in e||(this.theme=new f),"components"in e||(this.components=new d),"schema_version"in e||(this.schema_version=0),"sdk_protocol_version"in e||(this.sdk_protocol_version=0),Object.assign(this,e)}static createFrom(e={}){const n=Ke,i=We,a=R,r=R,ae=R,o=Ye,Ce=Xe,Ee=et;let l=typeof e=="string"?JSON.parse(e):e;return"author"in l&&(l.author=n(l.author)),"maintainers"in l&&(l.maintainers=i(l.maintainers)),"tags"in l&&(l.tags=a(l.tags)),"dependencies"in l&&(l.dependencies=r(l.dependencies)),"capabilities"in l&&(l.capabilities=ae(l.capabilities)),"theme"in l&&(l.theme=o(l.theme)),"components"in l&&(l.components=Ce(l.components)),"state_isolation"in l&&(l.state_isolation=Ee(l.state_isolation)),new p(l)}}class b{name;plugin;area;resources;extension;constructor(e={}){"name"in e||(this.name=""),"plugin"in e||(this.plugin=""),"area"in e||(this.area=""),"resources"in e||(this.resources=[]),"extension"in e||(this.extension=""),Object.assign(this,e)}static createFrom(e={}){const n=R;let i=typeof e=="string"?JSON.parse(e):e;return"resources"in i&&(i.resources=n(i.resources)),new b(i)}}class f{colors;constructor(e={}){"colors"in e||(this.colors=new h),Object.assign(this,e)}static createFrom(e={}){const n=tt;let i=typeof e=="string"?JSON.parse(e):e;return"colors"in i&&(i.colors=n(i.colors)),new f(i)}}class h{primary;secondary;tertiary;constructor(e={}){"primary"in e||(this.primary=""),"secondary"in e||(this.secondary=""),"tertiary"in e||(this.tertiary=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new h(n)}}class S{schema_version;capability;sdk_module;sdk_revision;sdk_source_sha256;binary_sha256;constructor(e={}){"schema_version"in e||(this.schema_version=0),"capability"in e||(this.capability=""),"sdk_module"in e||(this.sdk_module=""),"sdk_revision"in e||(this.sdk_revision=""),"binary_sha256"in e||(this.binary_sha256=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new S(n)}}const Ve=b.createFrom,Me=s.Array(Ve),qe=g.createFrom,Ke=s.Nullable(qe),Qe=y.createFrom,We=s.Array(Qe),R=s.Array(s.Any),Ye=f.createFrom,Xe=d.createFrom,$e=S.createFrom,et=s.Nullable($e),tt=h.createFrom,it=Object.freeze(Object.defineProperty({__proto__:null,PluginAuthor:g,PluginComponentArea:de,PluginComponents:d,PluginMaintainer:y,PluginMeta:p,PluginResourceComponent:b,PluginTheme:f,PluginThemeColors:h,StateIsolationProvenance:S},Symbol.toStringTag,{value:"Module"}));var F=(t=>(t[t.$zero=0]="$zero",t[t.minDuration=-9223372036854776e3]="minDuration",t[t.maxDuration=9223372036854776e3]="maxDuration",t[t.Nanosecond=1]="Nanosecond",t[t.Microsecond=1e3]="Microsecond",t[t.Millisecond=1e6]="Millisecond",t[t.Second=1e9]="Second",t[t.Minute=6e10]="Minute",t[t.Hour=36e11]="Hour",t))(F||{});const nt=Object.freeze(Object.defineProperty({__proto__:null,Duration:F},Symbol.toStringTag,{value:"Module"}));var we=(t=>(t.$zero="",t.CapabilityResource="resource",t.CapabilityExec="exec",t.CapabilityNetworker="networker",t.CapabilityLog="log",t.CapabilityMetric="metric",t.CapabilitySettings="settings",t.CapabilityTools="tools",t.CapabilityUI="ui",t))(we||{});class M{last_refresh;data;labels;lifecycle;id;uid;name;description;avatar;expiry_time;Client;constructor(e={}){"last_refresh"in e||(this.last_refresh="0001-01-01T00:00:00.000Z"),"data"in e||(this.data={}),"labels"in e||(this.labels={}),"lifecycle"in e||(this.lifecycle=new u),"id"in e||(this.id=""),"uid"in e||(this.uid=""),"name"in e||(this.name=""),"description"in e||(this.description=""),"avatar"in e||(this.avatar=""),"expiry_time"in e||(this.expiry_time=F.$zero),"Client"in e||(this.Client=null),Object.assign(this,e)}static createFrom(e={}){const n=Fe,i=Fe,a=at;let r=typeof e=="string"?JSON.parse(e):e;return"data"in r&&(r.data=n(r.data)),"labels"in r&&(r.labels=i(r.labels)),"lifecycle"in r&&(r.lifecycle=a(r.lifecycle)),new M(r)}}class q{enabled;triggers;retry;constructor(e={}){"enabled"in e||(this.enabled=!1),"triggers"in e||(this.triggers=[]),"retry"in e||(this.retry=""),Object.assign(this,e)}static createFrom(e={}){const n=st;let i=typeof e=="string"?JSON.parse(e):e;return"triggers"in i&&(i.triggers=n(i.triggers)),new q(i)}}var Ne=(t=>(t.$zero="",t.ConnectionAutoConnectRetryNone="NONE",t.ConnectionAutoConnectRetryOnChange="ON_CHANGE",t))(Ne||{}),Ae=(t=>(t.$zero="",t.ConnectionAutoConnectTriggerPluginStart="PLUGIN_START",t.ConnectionAutoConnectTriggerConnectionDiscovered="CONNECTION_DISCOVERED",t))(Ae||{});class u{auto_connect;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=lt;let i=typeof e=="string"?JSON.parse(e):e;return"auto_connect"in i&&(i.auto_connect=n(i.auto_connect)),new u(i)}}class pe{connection;status;error;details;constructor(e={}){"connection"in e||(this.connection=null),"status"in e||(this.status=""),"error"in e||(this.error=""),"details"in e||(this.details=""),Object.assign(this,e)}static createFrom(e={}){const n=ct;let i=typeof e=="string"?JSON.parse(e):e;return"connection"in i&&(i.connection=n(i.connection)),new pe(i)}}var je=(t=>(t.$zero="",t.ConnectionStatusUnknown="UNKNOWN",t.ConnectionStatusConnected="CONNECTED",t.ConnectionStatusDisconnected="DISCONNECTED",t.ConnectionStatusPending="PENDING",t.ConnectionStatusFailed="FAILED",t.ConnectionStatusError="ERROR",t.ConnectionStatusUnauthorized="UNAUTHORIZED",t.ConnectionStatusForbidden="FORBIDDEN",t.ConnectionStatusBadRequest="BAD_REQUEST",t.ConnectionStatusNotFound="NOT_FOUND",t.ConnectionStatusTimeout="TIMEOUT",t.ConnectionStatusUnavailable="UNAVAILABLE",t.ConnectionStatusRequestEntityTooLarge="REQUEST_ENTITY_TOO_LARGE",t))(je||{});class fe{id;metadata;phase;enabled;devMode;devPath;capabilities;lastError;constructor(e={}){"id"in e||(this.id=""),"metadata"in e||(this.metadata=new p),"phase"in e||(this.phase=""),"enabled"in e||(this.enabled=!1),"devMode"in e||(this.devMode=!1),"capabilities"in e||(this.capabilities=[]),Object.assign(this,e)}static createFrom(e={}){const n=dt,i=pt;let a=typeof e=="string"?JSON.parse(e):e;return"metadata"in a&&(a.metadata=n(a.metadata)),"capabilities"in a&&(a.capabilities=i(a.capabilities)),new fe(a)}}const Fe=s.Map(s.Any,s.Any),at=u.createFrom,st=s.Array(s.Any),rt=q.createFrom,lt=s.Nullable(rt),ot=M.createFrom,ct=s.Nullable(ot),dt=p.createFrom,pt=s.Array(s.Any);class K{settings;id;label;description;icon;constructor(e={}){"settings"in e||(this.settings={}),"id"in e||(this.id=""),"label"in e||(this.label=""),"description"in e||(this.description=""),"icon"in e||(this.icon=""),Object.assign(this,e)}static createFrom(e={}){const n=ht;let i=typeof e=="string"?JSON.parse(e):e;return"settings"in i&&(i.settings=n(i.settings)),new K(i)}}class O{id;label;description;type;value;default;options;fileSelection;sensitive;devOnly;constructor(e={}){"id"in e||(this.id=""),"label"in e||(this.label=""),"description"in e||(this.description=""),"type"in e||(this.type=""),"value"in e||(this.value=null),"default"in e||(this.default=null),"options"in e||(this.options=[]),"fileSelection"in e||(this.fileSelection=null),"sensitive"in e||(this.sensitive=!1),"devOnly"in e||(this.devOnly=!1),Object.assign(this,e)}static createFrom(e={}){const n=_t,i=yt;let a=typeof e=="string"?JSON.parse(e):e;return"options"in a&&(a.options=n(a.options)),"fileSelection"in a&&(a.fileSelection=i(a.fileSelection)),new O(a)}}class v{enabled;allowFolders;extensions;multiple;relative;defaultPath;constructor(e={}){"enabled"in e||(this.enabled=!1),"allowFolders"in e||(this.allowFolders=!1),"extensions"in e||(this.extensions=[]),"multiple"in e||(this.multiple=!1),"relative"in e||(this.relative=!1),"defaultPath"in e||(this.defaultPath=""),Object.assign(this,e)}static createFrom(e={}){const n=bt;let i=typeof e=="string"?JSON.parse(e):e;return"extensions"in i&&(i.extensions=n(i.extensions)),new v(i)}}class T{label;description;value;constructor(e={}){"label"in e||(this.label=""),"description"in e||(this.description=""),"value"in e||(this.value=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new T(n)}}var he=(t=>(t.$zero="",t.Text="text",t.Select="select",t.MultiSelect="multiselect",t.Integer="integer",t.Float="float",t.Toggle="toggle",t.Color="color",t.DateTime="datetime",t.Password="password",t))(he||{});class Q{valid;code;message;constructor(e={}){"valid"in e||(this.valid=!1),"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Q(n)}}const ft=O.createFrom,ht=s.Map(s.Any,ft),mt=T.createFrom,_t=s.Array(mt),gt=v.createFrom,yt=s.Nullable(gt),bt=s.Array(s.Any),St=Object.freeze(Object.defineProperty({__proto__:null,Category:K,Setting:O,SettingFileSelection:v,SettingOption:T,SettingType:he,ValidationResult:Q},Symbol.toStringTag,{value:"Module"}));class W{plugin;constructor(e={}){"plugin"in e||(this.plugin=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new W(n)}}class Y{plugin;resource;area;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"area"in e||(this.area=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Y(n)}}class X{plugin;resource;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new X(n)}}class ${owner;name;plugin;resource;area;extension;constructor(e={}){"owner"in e||(this.owner=""),"name"in e||(this.name=""),"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"area"in e||(this.area=""),"extension"in e||(this.extension=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new $(n)}}var me=(t=>(t.$zero="",t.ResourceComponentAreaSidebar="SIDEBAR",t.ResourceComponentAreaTable="TABLE",t))(me||{});const Ft=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponentsInput:W,GetResourceAreaComponentInput:Y,GetResourceComponentsInput:X,ResourceComponent:$,ResourceComponentArea:me},Symbol.toStringTag,{value:"Module"}));class w{label;label_selector;paths;selectors;constructor(e={}){"label"in e||(this.label=""),"label_selector"in e||(this.label_selector=""),"paths"in e||(this.paths=[]),"selectors"in e||(this.selectors={}),Object.assign(this,e)}static createFrom(e={}){const n=ut,i=ye;let a=typeof e=="string"?JSON.parse(e):e;return"paths"in a&&(a.paths=n(a.paths)),"selectors"in a&&(a.selectors=i(a.selectors)),new w(a)}}let Pe=class Je{plugin;resource;target_builder;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new w),Object.assign(this,e)}static createFrom(e={}){const n=Ot;let i=typeof e=="string"?JSON.parse(e):e;return"target_builder"in i&&(i.target_builder=n(i.target_builder)),new Je(i)}};class ee{id;plugin_id;connection_id;resource_key;resource_id;options;status;active_sources;created_at;constructor(e={}){"id"in e||(this.id=""),"plugin_id"in e||(this.plugin_id=""),"connection_id"in e||(this.connection_id=""),"resource_key"in e||(this.resource_key=""),"resource_id"in e||(this.resource_id=""),"options"in e||(this.options=new m),"status"in e||(this.status=0),"active_sources"in e||(this.active_sources=[]),"created_at"in e||(this.created_at="0001-01-01T00:00:00.000Z"),Object.assign(this,e)}static createFrom(e={}){const n=vt,i=wt;let a=typeof e=="string"?JSON.parse(e):e;return"options"in a&&(a.options=n(a.options)),"active_sources"in a&&(a.active_sources=i(a.active_sources)),new ee(a)}}class m{target;follow;include_previous;include_timestamps;tail_lines;since_seconds;since_time;limit_bytes;include_source_events;params;constructor(e={}){"target"in e||(this.target=""),"follow"in e||(this.follow=!1),"include_previous"in e||(this.include_previous=!1),"include_timestamps"in e||(this.include_timestamps=!1),"tail_lines"in e||(this.tail_lines=0),"since_seconds"in e||(this.since_seconds=0),"limit_bytes"in e||(this.limit_bytes=0),"include_source_events"in e||(this.include_source_events=!1),"params"in e||(this.params={}),Object.assign(this,e)}static createFrom(e={}){const n=ye;let i=typeof e=="string"?JSON.parse(e):e;return"params"in i&&(i.params=n(i.params)),new m(i)}}var _e=(t=>(t[t.$zero=0]="$zero",t[t.LogSessionStatusActive=0]="LogSessionStatusActive",t[t.LogSessionStatusPaused=1]="LogSessionStatusPaused",t[t.LogSessionStatusClosed=2]="LogSessionStatusClosed",t[t.LogSessionStatusError=3]="LogSessionStatusError",t[t.LogSessionStatusConnecting=4]="LogSessionStatusConnecting",t[t.LogSessionStatusInitializing=5]="LogSessionStatusInitializing",t))(_e||{});class N{id;labels;constructor(e={}){"id"in e||(this.id=""),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ye;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new N(i)}}var ge=(t=>(t[t.$zero=0]="$zero",t[t.StreamCommandPause=0]="StreamCommandPause",t[t.StreamCommandResume=1]="StreamCommandResume",t[t.StreamCommandClose=2]="StreamCommandClose",t))(ge||{});const ut=s.Array(s.Any),ye=s.Map(s.Any,s.Any),Ot=w.createFrom,vt=m.createFrom,Tt=N.createFrom,wt=s.Array(Tt),Nt=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:w,Handler:Pe,LogSession:ee,LogSessionOptions:m,LogSessionStatus:_e,LogSource:N,LogStreamCommand:ge},Symbol.toStringTag,{value:"Module"}));class A{metric_id;min;max;avg;sum;p50;p90;p99;count;window;labels;constructor(e={}){"metric_id"in e||(this.metric_id=""),"min"in e||(this.min=0),"max"in e||(this.max=0),"avg"in e||(this.avg=0),"sum"in e||(this.sum=0),"p50"in e||(this.p50=0),"p90"in e||(this.p90=0),"p99"in e||(this.p99=0),"count"in e||(this.count=0),"window"in e||(this.window=F.$zero),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ne;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new A(i)}}class j{min;max;color;constructor(e={}){"min"in e||(this.min=0),"max"in e||(this.max=0),"color"in e||(this.color=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new j(n)}}class P{metric_id;value;timestamp;labels;constructor(e={}){"metric_id"in e||(this.metric_id=""),"value"in e||(this.value=0),"timestamp"in e||(this.timestamp="0001-01-01T00:00:00.000Z"),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ne;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new P(i)}}class J{timestamp;value;labels;constructor(e={}){"timestamp"in e||(this.timestamp="0001-01-01T00:00:00.000Z"),"value"in e||(this.value=0),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ne;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new J(i)}}class te{resource;metrics;constructor(e={}){"resource"in e||(this.resource=""),"metrics"in e||(this.metrics=[]),Object.assign(this,e)}static createFrom(e={}){const n=jt;let i=typeof e=="string"?JSON.parse(e):e;return"metrics"in i&&(i.metrics=n(i.metrics)),new te(i)}}class C{id;name;unit;icon;color_ranges;format_string;supported_shapes;chart_group;constructor(e={}){"id"in e||(this.id=""),"name"in e||(this.name=""),"unit"in e||(this.unit=0),"icon"in e||(this.icon=""),"color_ranges"in e||(this.color_ranges=[]),"format_string"in e||(this.format_string=""),"supported_shapes"in e||(this.supported_shapes=[]),"chart_group"in e||(this.chart_group=""),Object.assign(this,e)}static createFrom(e={}){const n=Jt,i=Ct;let a=typeof e=="string"?JSON.parse(e):e;return"color_ranges"in a&&(a.color_ranges=n(a.color_ranges)),"supported_shapes"in a&&(a.supported_shapes=i(a.supported_shapes)),new C(a)}}class E{time_series;current_value;aggregate_value;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=zt,i=xt,a=kt;let r=typeof e=="string"?JSON.parse(e):e;return"time_series"in r&&(r.time_series=n(r.time_series)),"current_value"in r&&(r.current_value=i(r.current_value)),"aggregate_value"in r&&(r.aggregate_value=a(r.aggregate_value)),new E(r)}}var be=(t=>(t[t.$zero=0]="$zero",t[t.ShapeCurrent=0]="ShapeCurrent",t[t.ShapeTimeseries=1]="ShapeTimeseries",t[t.ShapeAggregate=2]="ShapeAggregate",t))(be||{}),Se=(t=>(t[t.$zero=0]="$zero",t[t.UnitNone=0]="UnitNone",t[t.UnitBytes=1]="UnitBytes",t[t.UnitKB=2]="UnitKB",t[t.UnitMB=3]="UnitMB",t[t.UnitGB=4]="UnitGB",t[t.UnitPercentage=5]="UnitPercentage",t[t.UnitMillis=6]="UnitMillis",t[t.UnitSeconds=7]="UnitSeconds",t[t.UnitCount=8]="UnitCount",t[t.UnitOpsPerSec=9]="UnitOpsPerSec",t[t.UnitBytesPerSec=10]="UnitBytesPerSec",t[t.UnitMillicores=11]="UnitMillicores",t[t.UnitCores=12]="UnitCores",t))(Se||{});class ie{success;results;error;constructor(e={}){"success"in e||(this.success=!1),"results"in e||(this.results=[]),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){const n=Ut;let i=typeof e=="string"?JSON.parse(e):e;return"results"in i&&(i.results=n(i.results)),new ie(i)}}class z{metric_id;data_points;labels;constructor(e={}){"metric_id"in e||(this.metric_id=""),"data_points"in e||(this.data_points=[]),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=Ht,i=ne;let a=typeof e=="string"?JSON.parse(e):e;return"data_points"in a&&(a.data_points=n(a.data_points)),"labels"in a&&(a.labels=i(a.labels)),new z(a)}}const ne=s.Map(s.Any,s.Any),At=C.createFrom,jt=s.Array(At),Pt=j.createFrom,Jt=s.Array(Pt),Ct=s.Array(s.Any),Et=z.createFrom,zt=s.Nullable(Et),Rt=P.createFrom,xt=s.Nullable(Rt),It=A.createFrom,kt=s.Nullable(It),Bt=E.createFrom,Ut=s.Array(Bt),Dt=J.createFrom,Ht=s.Array(Dt),Gt=Object.freeze(Object.defineProperty({__proto__:null,AggregateValue:A,ColorRange:j,CurrentValue:P,DataPoint:J,Handler:te,MetricDescriptor:C,MetricResult:E,MetricShape:be,MetricUnit:Se,QueryResponse:ie,TimeSeries:z},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=x;exports.AggregateValue=A;exports.AvailablePlugin=H;exports.Capability=we;exports.Category=K;exports.ColorRange=j;exports.Connection=M;exports.ConnectionAutoConnect=q;exports.ConnectionAutoConnectRetry=Ne;exports.ConnectionAutoConnectTrigger=Ae;exports.ConnectionLifecycle=u;exports.ConnectionStatus=pe;exports.ConnectionStatusCode=je;exports.CurrentValue=P;exports.DataPoint=J;exports.DownloadStats=Z;exports.Duration=F;exports.FindPortForwardSessionRequest=U;exports.GetPluginComponentsInput=W;exports.GetResourceAreaComponentInput=Y;exports.GetResourceComponentsInput=X;exports.Handler=Oe;exports.Handler$1=Pe;exports.Handler$2=te;exports.LogSession=ee;exports.LogSessionOptions=m;exports.LogSessionStatus=_e;exports.LogSource=N;exports.LogStreamCommand=ge;exports.MetricDescriptor=C;exports.MetricResult=E;exports.MetricShape=be;exports.MetricUnit=Se;exports.PluginAuthor=g;exports.PluginComponentArea=de;exports.PluginComponents=d;exports.PluginInfo=fe;exports.PluginMaintainer=y;exports.PluginMeta=p;exports.PluginResourceComponent=b;exports.PluginTheme=f;exports.PluginThemeColors=h;exports.PortForwardConnectionType=le;exports.PortForwardProtocol=oe;exports.PortForwardSession=D;exports.PortForwardSessionEncryption=c;exports.QueryResponse=ie;exports.ResourceComponent=$;exports.ResourceComponentArea=me;exports.Review=L;exports.Session=I;exports.SessionOptions=k;exports.SessionState=ce;exports.Setting=O;exports.SettingFileSelection=v;exports.SettingOption=T;exports.SettingType=he;exports.StateIsolationProvenance=S;exports.TimeSeries=z;exports.ValidationResult=Q;exports.VersionInfo=V;exports.models=it;exports.models$1=Be;exports.models$2=Nt;exports.models$3=Gt;exports.models$4=He;exports.models$5=Le;exports.models$6=St;exports.models$7=nt;exports.models$8=Ft;
@@ -1 +0,0 @@
1
- "use strict";const o=require("./index-BVi9X4oU.cjs"),s=require("./models-DSGyy8lg.cjs"),n=require("./calls-B-HP1Icv.cjs");function f(e,t=[]){let $=0;for(const c of t){if(c.length>65536)throw new RangeError("Request routing byte limit");$+=new TextEncoder().encode(JSON.stringify(c)).length+1}if($>57344)throw new RangeError("Request routing byte limit");let w=0,F=2,Qe=0,_=0;const O=[],y=c=>{for(let l=0;l<c.length;l++){const a=c.charCodeAt(l);let p=a<128?1:a<2048?2:3;if(a>=55296&&a<=56319){const h=c.charCodeAt(++l);if(!(h>=56320&&h<=57343))throw new TypeError("Invalid Unicode");p=4}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode");if(w+=p,F+=a===34||a===92?2:p,w>33554432||F>67043328)throw new RangeError("Request JSON byte limit")}O.push(c)},L=c=>{if(c.length>33554432)throw new RangeError("Request JSON byte limit");for(let l=0;l<c.length;l++){const a=c.charCodeAt(l);if(a>=55296&&a<=56319){const p=c.charCodeAt(++l);if(!(p>=56320&&p<=57343))throw new TypeError("Invalid Unicode")}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode")}y(JSON.stringify(c))},I=(c,l)=>{if(++Qe>262144||l>64)throw new RangeError("Request JSON structural limit");if(c===null){y("null");return}if(typeof c=="string"){L(c);return}if(typeof c=="boolean"){y(c?"true":"false");return}if(typeof c=="number"){if(!Number.isFinite(c))throw new TypeError("Request numbers must be finite");y(Object.is(c,-0)?"-0":JSON.stringify(c));return}if(Array.isArray(c)){y("[");for(let a=0;a<c.length;a++){if(++_>1048576)throw new RangeError("Request JSON field limit");a&&y(","),I(c[a],l+1)}y("]");return}if(typeof c=="object"){y("{");let a=!0;for(const[p,h]of Object.entries(c))if(h!==void 0){if(++_>1048576)throw new RangeError("Request JSON field limit");a||y(","),a=!1,L(p),y(":"),I(h,l+1)}y("}");return}throw new TypeError("Unsupported request JSON value")};return I(e,0),O.join("")}function Ke(e){return n.ByID(93318075,e).then(t=>(t[0]=g(t[0]),t[1]=o.ByteSlice(t[1]),t))}function Xe(e){return n.ByID(1353297556,e)}function Ye(e){return n.ByID(4182196712,e).then(t=>g(t))}function Ze(e){return n.ByID(3993344525,e).then(t=>g(t))}function et(e,t){return n.ByID(1779192716,e,t).then(r=>lt(r))}function tt(){return n.ByID(4033362541).then(e=>yt(e))}function nt(e){return n.ByID(2619212338,e).then(t=>j(t))}function rt(e){return n.ByID(1371268636,e).then(t=>g(t))}function ot(e){return n.ByID(3881019319,e)}function it(){return n.ByID(3006426324).then(e=>ft(e))}function ct(){return n.ByID(265791345).then(e=>$t(e))}function ut(e,t,r){return n.ByID(1492965384,e,t,r)}function st(e,t){return n.ByID(486465741,e,t)}const at=s.Session.createFrom,g=o.Nullable(at),N=s.Handler.createFrom,lt=o.Nullable(N),j=o.Map(o.Any,N),yt=o.Map(o.Any,j),ft=o.Array(o.Any),$t=o.Array(g);function M(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession",e,t,f(r,[e,t])).then(u=>u===null?null:s.Session.createFrom(u))}const pt=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:Ke,CloseSession:Xe,CreateSession:M,CreateTerminal:Ye,DetachSession:Ze,GetHandler:et,GetHandlers:tt,GetPluginHandlers:nt,GetSession:rt,HasPlugin:ot,ListPlugins:it,ListSessions:ct,ResizeSession:ut,WriteSession:st},Symbol.toStringTag,{value:"Module"}));function E(e){return n.ByID(182596922,e).then(t=>D(t))}function W(e,t,r){return n.ByID(981100722,e,t,r).then(u=>P(u))}function St(e){return n.ByID(2157304970,e).then(t=>D(t))}function ht(e){return n.ByID(650882,e).then(t=>H(t))}function gt(e){return n.ByID(3624690437,e)}function k(){return n.ByID(2195697754).then(e=>P(e))}function dt(){return n.ByID(167463150).then(e=>H(e))}function mt(e,t){return n.ByID(2090415403,e,t).then(r=>P(r))}const Bt=s.PortForwardSession.createFrom,D=o.Nullable(Bt),P=o.Array(D),H=o.Array(o.Any);function V(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/networker.ServiceWrapper.StartResourcePortForwardingSession",e,t,f(r,[e,t]))}const It=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:E,FindPortForwardSessions:W,GetPortForwardSession:St,GetSupportedPortForwardTargets:ht,HasPlugin:gt,ListAllPortForwardSessions:k,ListPlugins:dt,ListPortForwardSessions:mt,StartResourcePortForwardingSession:V},Symbol.toStringTag,{value:"Module"}));function Dt(e){return n.ByID(3150413499,e).then(t=>S(t))}function Pt(e){return n.ByID(1152913314,e).then(t=>Ht(t))}function q(e){return n.ByID(111194374,e).then(t=>b(t))}function bt(e){return n.ByID(3945933305,e)}function Gt(e){return n.ByID(2859775056,e).then(t=>U(t))}function Tt(e,t){return n.ByID(2209599792,e,t).then(r=>zt(r))}function Rt(e){return n.ByID(3963363730,e).then(t=>U(t))}function At(e){return n.ByID(1357029266,e).then(t=>S(t))}function Ct(){return n.ByID(2477486666).then(e=>m(e))}function vt(){return n.ByID(976517756).then(e=>m(e))}function wt(e){return n.ByID(1020548995,e).then(t=>m(t))}function Ft(e,t){return n.ByID(2004740384,e,t).then(r=>m(r))}function _t(){return n.ByID(873697101).then(e=>x(e))}function Ot(){return n.ByID(637134283).then(e=>xt(e))}function Lt(){return n.ByID(550607756).then(e=>Jt(e))}function Nt(e,t){return n.ByID(288660195,e,t).then(r=>S(r))}function jt(e){return n.ByID(1771013494,e).then(t=>S(t))}function z(e){return n.ByID(2433379724,e).then(t=>S(t))}function Mt(e,t,r){return n.ByID(2783597264,e,t,r).then(u=>x(u))}function Et(e){return n.ByID(1369550929,e).then(t=>S(t))}function Wt(e){return n.ByID(3828800061,e).then(t=>S(t))}const S=s.PluginInfo.createFrom,kt=s.DownloadStats.createFrom,Ht=o.Nullable(kt),b=s.PluginMeta.createFrom,Vt=s.VersionInfo.createFrom,U=o.Array(Vt),qt=s.Review.createFrom,zt=o.Array(qt),m=o.Nullable(b),Ut=s.AvailablePlugin.createFrom,x=o.Array(Ut),xt=o.Array(b),Jt=o.Array(S),Qt=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:Dt,GetPluginDownloadStats:Pt,GetPluginMeta:q,GetPluginReadme:bt,GetPluginReleaseHistory:Gt,GetPluginReviews:Tt,GetPluginVersions:Rt,InstallDevPluginFromPath:At,InstallFromPathPrompt:Ct,InstallInDevMode:vt,InstallPluginFromPath:wt,InstallPluginVersion:Ft,ListAvailablePlugins:_t,ListPluginMetas:Ot,ListPlugins:Lt,LoadPlugin:Nt,ReloadPlugin:jt,RetryFailedPlugin:z,SearchPlugins:Mt,UninstallPlugin:Et,UnlinkDevPlugin:Wt},Symbol.toStringTag,{value:"Module"}));function J(e,t){return n.ByID(1688967279,e,t).then(r=>ee(r))}function Q(e,t){return n.ByID(950535743,e,t).then(r=>G(r))}function Kt(e){return n.ByID(854008408,e)}function K(){return n.ByID(1598984489).then(e=>Zt(e))}function X(e){return n.ByID(1775572154,e).then(t=>T(t))}function Xt(){return n.ByID(3217612415).then(e=>en(e))}function Yt(e){return n.ByID(2037329938,e).then(t=>T(t))}function Y(e,t){return n.ByID(3276991559,e,t).then(r=>ee(r))}function Z(e,t){return n.ByID(794258089,e,t).then(r=>G(r))}const ee=s.ConnectionStatus.createFrom,G=s.Connection.createFrom,T=o.Array(G),Zt=o.Map(o.Any,T),en=o.Array(o.Any),tn="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";function i(e,...t){return n.ByName(`${tn}.${e}`,...t)}const nn=e=>i("Features",e),te=(e,t)=>i("Catalog",e,t),ne=(e,t)=>i("Get",e,t),re=(e,t)=>i("Enumerate",e,t),oe=(e,t)=>i("NativeQuery",e,f(t,[e])),ie=(e,t)=>i("Mutate",e,f(t,[e])),ce=(e,t)=>i("Action",e,f(t,[e])),ue=(e,t)=>i("ResolveTarget",e,t),rn=(e,t)=>i("ResolveReference",e,t),se=(e,t,r)=>i("GetSchemaDocument",e,t,r),ae=()=>i("GetAllConnectionStates"),le=e=>i("ListConnectionProfiles",e),ye=(e,t)=>i("SaveConnectionProfile",e,t),fe=(e,t)=>i("ImportConnectionProfile",e,t),$e=(e,t)=>i("ResetConnectionProfile",e,t),pe=(e,t)=>i("RemoveConnection",e,t),Se=(e,t)=>i("GetResourceGroups",e,t),on=(e,t,r)=>i("GetResourceDefinition",e,t,r),he=(e,t)=>i("GetEditorSchemas",e,t),cn=(e,t,r)=>i("GetRelationships",e,t,r),un=(e,t)=>i("ResolveRelationships",e,t),sn=(e,t,r)=>i("GetHealth",e,f({request:t,body:r},[e])),an=(e,t,r)=>i("GetResourceEvents",e,t,r),ge=(e,t,r)=>i("GetActions",e,t,r),de=(e,t)=>i("StreamAction",e,f(t,[e])),me=e=>i("AttachStreamAction",e),Be=e=>i("CancelStreamAction",e),Ie=(e,t)=>i("StartConnectionWatch",e,t),De=(e,t)=>i("StopConnectionWatch",e,t),Pe=(e,t)=>i("GetWatchState",e,t),be=(e,t)=>i("EnsureResourceWatch",e,t),ln=(e,t,r)=>i("StopResourceWatch",e,t,r),yn=(e,t)=>i("RestartResourceWatch",e,t),fn=(e,t,r)=>i("IsResourceWatchRunning",e,t,r),Ge=(e,t)=>i("SubscribeResource",e,t),Te=(e,t)=>i("UnsubscribeResource",e,t),Re=(e,t,r)=>i("ScopeValues",e,t,r),$n=Object.freeze(Object.defineProperty({__proto__:null,Action:ce,AttachStreamAction:me,CancelStreamAction:Be,Catalog:te,CheckConnection:J,EnsureResourceWatch:be,Enumerate:re,Features:nn,Get:ne,GetActions:ge,GetAllConnectionStates:ae,GetConnection:Q,GetEditorSchemas:he,GetHealth:sn,GetRelationships:cn,GetResourceDefinition:on,GetResourceEvents:an,GetResourceGroups:Se,GetSchemaDocument:se,GetWatchState:Pe,HasPlugin:Kt,ImportConnectionProfile:fe,IsResourceWatchRunning:fn,ListAllConnections:K,ListConnectionProfiles:le,ListConnections:X,ListPlugins:Xt,LoadConnections:Yt,Mutate:ie,NativeQuery:oe,RemoveConnection:pe,ResetConnectionProfile:$e,ResolveReference:rn,ResolveRelationships:un,ResolveTarget:ue,RestartResourceWatch:yn,SaveConnectionProfile:ye,ScopeValues:Re,StartConnection:Y,StartConnectionWatch:Ie,StopConnection:Z,StopConnectionWatch:De,StopResourceWatch:ln,StreamAction:de,SubscribeResource:Ge,UnsubscribeResource:Te},Symbol.toStringTag,{value:"Module"})),B="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";function Ae(e,t,r,u,$){return n.ByName(`${B}.GetRelated`,e,t,r,u,$)}function pn(e,t,r,u,$){return n.ByName(`${B}.GetRelationshipChain`,e,t,r,u,$)}function Ce(e,t,r,u){return n.ByName(`${B}.GetDependencyTree`,e,t,r,u)}function ve(e,t,r,u,$){return n.ByName(`${B}.GetSubgraph`,e,t,r,u,$)}const Sn=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:Ce,GetRelated:Ae,GetRelationshipChain:pn,GetSubgraph:ve},Symbol.toStringTag,{value:"Module"}));function hn(e,t){return n.ByID(3867104420,e,t).then(r=>Fe(r))}function gn(e){return n.ByID(3795411887,e)}function dn(){return n.ByID(1053995964).then(e=>bn(e))}function mn(e){return n.ByID(3231741321,e).then(t=>Gn(t))}function we(e){return n.ByID(2597562645,e).then(t=>_e(t))}function Bn(e,t,r){return n.ByID(1481837168,e,t,r)}function In(e,t){return n.ByID(230212281,e,t)}function Dn(e,t,r){return n.ByID(1534017462,e,t,r).then(u=>Tn(u))}function Pn(){return n.ByID(2408440370).then(e=>_e(e))}const Fe=s.Setting.createFrom,bn=o.Array(o.Any),Gn=o.Map(o.Any,Fe),_e=o.Map(o.Any,o.Any),Tn=s.ValidationResult.createFrom,Rn=Object.freeze(Object.defineProperty({__proto__:null,GetSetting:hn,HasPlugin:gn,ListPlugins:dn,ListSettings:mn,PluginValues:we,SetSetting:Bn,SetSettings:In,ValidateSetting:Dn,Values:Pn},Symbol.toStringTag,{value:"Module"}));function An(e){return n.ByID(122243240,e)}function Cn(){return n.ByID(269082212).then(e=>zn(e))}function vn(e){return n.ByID(1421156656,e).then(t=>R(t))}function wn(e){return n.ByID(3143996982,e).then(t=>Le(t))}function Fn(e){return n.ByID(1695819138,e)}function _n(e){return n.ByID(1827194808,e).then(t=>Un(t))}function On(e){return n.ByID(72059321,e)}function Ln(e){return n.ByID(62418781,e).then(t=>xn(t))}function Nn(e){return n.ByID(2222012564,e).then(t=>Jn(t))}function jn(e){return n.ByID(2753368941,e)}function Mn(e){return n.ByID(3825211425,e)}function En(e){return n.ByID(2121298005,e).then(t=>Qn(t))}function Wn(){return n.ByID(3038957305).then(e=>d(e))}function kn(){return n.ByID(3369612893)}function Hn(e,t){return n.ByID(252556992,e,t)}function Vn(e){return n.ByID(1704369097,e)}function qn(e,t){return n.ByID(1399113254,e,t).then(r=>Xn(r))}function Oe(){return n.ByID(2936263106).then(e=>Le(e))}const R=s.Category.createFrom,zn=o.Array(R),Le=o.Map(o.Any,o.Any),Un=o.Array(o.Any),xn=o.Array(o.Any),Jn=s.Setting.createFrom,Qn=o.Array(o.Any);var d=function e(...t){return d===e&&(d=Kn),d(...t)};const Kn=o.Map(o.Any,R),Xn=s.ValidationResult.createFrom,Yn=Object.freeze(Object.defineProperty({__proto__:null,GetBool:An,GetCategories:Cn,GetCategory:vn,GetCategoryValues:wn,GetFloat:Fn,GetFloatSlice:_n,GetInt:On,GetIntSlice:Ln,GetSetting:Nn,GetSettingValue:jn,GetString:Mn,GetStringSlice:En,ListSettings:Wn,LoadSettings:kn,SetSetting:Hn,SetSettings:Vn,ValidateSetting:qn,Values:Oe},Symbol.toStringTag,{value:"Module"}));function Zn(e){return n.ByID(2106300110,e).then(t=>tr(t))}function Ne(e){return n.ByID(765209827,e).then(t=>nr(t))}function er(e){return n.ByID(2355436169,e).then(t=>Me(t))}const je=s.ResourceComponent.createFrom,Me=o.Array(je),tr=o.Map(o.Any,Me),nr=o.Nullable(je),rr=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:Zn,GetResourceAreaComponent:Ne,GetResourceComponents:er},Symbol.toStringTag,{value:"Module"}));function Ee(e){return n.ByID(2776241946,e)}function or(e){return n.ByID(1474987050,e).then(t=>A(t))}function ir(e){return n.ByID(3156347865,e).then(t=>$r(t))}function cr(e){return n.ByID(1444002509,e)}function ur(){return n.ByID(3104582886).then(e=>pr(e))}function sr(){return n.ByID(2249742267).then(e=>Sr(e))}function ar(e,t){return n.ByID(1212190993,e,t)}function lr(e,t){return n.ByID(2177127885,e,t).then(r=>A(r))}const yr=s.LogSession.createFrom,A=o.Nullable(yr),fr=s.Handler$1.createFrom,$r=o.Array(fr),pr=o.Array(o.Any),Sr=o.Array(A);function We(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession",e,t,f(r,[e,t]))}const hr=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:Ee,CreateSession:We,GetSession:or,GetSupportedResources:ir,HasPlugin:cr,ListPlugins:ur,ListSessions:sr,SendCommand:ar,UpdateSessionOptions:lr},Symbol.toStringTag,{value:"Module"}));class C{plugin_id;provider_id;name;icon;description;handlers;constructor(t={}){"plugin_id"in t||(this.plugin_id=""),"provider_id"in t||(this.provider_id=""),"name"in t||(this.name=""),"icon"in t||(this.icon=""),"description"in t||(this.description=""),"handlers"in t||(this.handlers=[]),Object.assign(this,t)}static createFrom(t={}){const r=dr;let u=typeof t=="string"?JSON.parse(t):t;return"handlers"in u&&(u.handlers=r(u.handlers)),new C(u)}}const gr=s.Handler$2.createFrom,dr=o.Array(gr);function ke(){return n.ByID(3919346639).then(e=>qe(e))}function He(e){return n.ByID(3953821778,e).then(t=>qe(t))}function mr(e){return n.ByID(1815388456,e)}function Br(){return n.ByID(2730149903).then(e=>Dr(e))}function Ve(e){return n.ByID(3994236150,e)}const Ir=C.createFrom,qe=o.Array(Ir),Dr=o.Array(o.Any);s.QueryResponse.createFrom;const v="github.com/omniviewdev/omniview/backend/pkg/plugin/metric.ServiceWrapper";function Pr(e,t,r){return n.ByName(`${v}.Query`,e,t,f(r,[e,t]))}function ze(e,t){return n.ByName(`${v}.QueryAll`,e,f(t,[e]))}function Ue(e,t,r){return n.ByName(`${v}.Subscribe`,e,t,f(r,[e,t]))}const br=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:ke,GetProvidersForResource:He,HasPlugin:mr,ListPlugins:Br,Query:Pr,QueryAll:ze,Subscribe:Ue,Unsubscribe:Ve},Symbol.toStringTag,{value:"Module"}));function Gr(e,t){return n.ByID(3653639550,e,t)}function xe(e,t){return n.ByID(851823419,e,t)}function Tr(e){return n.ByID(2991415449,e).then(t=>Rr(t))}function Je(e,t,r){return n.ByID(2695679023,e,t,r)}const Rr=o.Array(o.Any),Ar=Object.freeze(Object.defineProperty({__proto__:null,Delete:Gr,Get:xe,Keys:Tr,Set:Je},Symbol.toStringTag,{value:"Module"}));exports.Action=ce;exports.AttachStreamAction=me;exports.CancelStreamAction=Be;exports.Catalog=te;exports.CheckConnection=J;exports.ClosePortForwardSession=E;exports.CloseSession=Ee;exports.CreateSession=M;exports.CreateSession$1=We;exports.EnsureResourceWatch=be;exports.Enumerate=re;exports.FindPortForwardSessions=W;exports.Get=xe;exports.Get$1=ne;exports.GetActions=ge;exports.GetAllConnectionStates=ae;exports.GetConnection=Q;exports.GetDependencyTree=Ce;exports.GetEditorSchemas=he;exports.GetPluginMeta=q;exports.GetProviders=ke;exports.GetProvidersForResource=He;exports.GetRelated=Ae;exports.GetResourceAreaComponent=Ne;exports.GetResourceGroups=Se;exports.GetSchemaDocument=se;exports.GetSubgraph=ve;exports.GetWatchState=Pe;exports.ImportConnectionProfile=fe;exports.ListAllConnections=K;exports.ListAllPortForwardSessions=k;exports.ListConnectionProfiles=le;exports.ListConnections=X;exports.Mutate=ie;exports.NativeQuery=oe;exports.PluginValues=we;exports.QueryAll=ze;exports.RemoveConnection=pe;exports.ResetConnectionProfile=$e;exports.ResolveTarget=ue;exports.RetryFailedPlugin=z;exports.SaveConnectionProfile=ye;exports.ScopeValues=Re;exports.Set=Je;exports.StartConnection=Y;exports.StartConnectionWatch=Ie;exports.StartResourcePortForwardingSession=V;exports.StopConnection=Z;exports.StopConnectionWatch=De;exports.StreamAction=de;exports.Subscribe=Ue;exports.SubscribeResource=Ge;exports.Unsubscribe=Ve;exports.UnsubscribeResource=Te;exports.Values=Oe;exports.client=$n;exports.exec=pt;exports.graphClient=Sn;exports.logs=hr;exports.metric=br;exports.networker=It;exports.servicewrapper=Ar;exports.servicewrapper$1=Qt;exports.servicewrapper$2=Rn;exports.servicewrapper$3=Yn;exports.servicewrapper$4=rr;