@omniviewdev/runtime 0.11.0 → 0.13.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.
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./index-BVi9X4oU.cjs"),u=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,Xe=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 S=c.charCodeAt(++l);if(!(S>=56320&&S<=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(++Xe>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,S]of Object.entries(c))if(S!==void 0){if(++_>1048576)throw new RangeError("Request JSON field limit");a||y(","),a=!1,L(p),y(":"),I(S,l+1)}y("}");return}throw new TypeError("Unsupported request JSON value")};return I(e,0),O.join("")}function Ye(e){return n.ByID(93318075,e).then(t=>(t[0]=g(t[0]),t[1]=o.ByteSlice(t[1]),t))}function Ze(e){return n.ByID(1353297556,e)}function et(e){return n.ByID(4182196712,e).then(t=>g(t))}function tt(e){return n.ByID(3993344525,e).then(t=>g(t))}function nt(e,t){return n.ByID(1779192716,e,t).then(r=>ft(r))}function rt(){return n.ByID(4033362541).then(e=>$t(e))}function ot(e){return n.ByID(2619212338,e).then(t=>N(t))}function it(e){return n.ByID(1371268636,e).then(t=>g(t))}function ct(e){return n.ByID(3881019319,e)}function st(){return n.ByID(3006426324).then(e=>pt(e))}function ut(){return n.ByID(265791345).then(e=>ht(e))}function at(e,t,r){return n.ByID(1492965384,e,t,r)}function lt(e,t){return n.ByID(486465741,e,t)}const yt=u.Session.createFrom,g=o.Nullable(yt),M=u.Handler.createFrom,ft=o.Nullable(M),N=o.Map(o.Any,M),$t=o.Map(o.Any,N),pt=o.Array(o.Any),ht=o.Array(g);function j(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession",e,t,f(r,[e,t])).then(s=>s===null?null:u.Session.createFrom(s))}const St=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:Ye,CloseSession:Ze,CreateSession:j,CreateTerminal:et,DetachSession:tt,GetHandler:nt,GetHandlers:rt,GetPluginHandlers:ot,GetSession:it,HasPlugin:ct,ListPlugins:st,ListSessions:ut,ResizeSession:at,WriteSession:lt},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(s=>P(s))}function gt(e){return n.ByID(2157304970,e).then(t=>D(t))}function dt(e){return n.ByID(650882,e).then(t=>H(t))}function mt(e){return n.ByID(3624690437,e)}function k(){return n.ByID(2195697754).then(e=>P(e))}function Bt(){return n.ByID(167463150).then(e=>H(e))}function It(e,t){return n.ByID(2090415403,e,t).then(r=>P(r))}const Dt=u.PortForwardSession.createFrom,D=o.Nullable(Dt),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 Pt=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:E,FindPortForwardSessions:W,GetPortForwardSession:gt,GetSupportedPortForwardTargets:dt,HasPlugin:mt,ListAllPortForwardSessions:k,ListPlugins:Bt,ListPortForwardSessions:It,StartResourcePortForwardingSession:V},Symbol.toStringTag,{value:"Module"}));function bt(e){return n.ByID(3150413499,e).then(t=>h(t))}function Gt(e){return n.ByID(1152913314,e).then(t=>qt(t))}function q(e){return n.ByID(111194374,e).then(t=>b(t))}function Rt(e){return n.ByID(3945933305,e)}function Tt(e){return n.ByID(2859775056,e).then(t=>U(t))}function Ct(e,t){return n.ByID(2209599792,e,t).then(r=>xt(r))}function At(e){return n.ByID(3963363730,e).then(t=>U(t))}function vt(e){return n.ByID(1357029266,e).then(t=>h(t))}function wt(){return n.ByID(2477486666).then(e=>m(e))}function Ft(){return n.ByID(976517756).then(e=>m(e))}function _t(e){return n.ByID(1020548995,e).then(t=>m(t))}function Ot(e,t){return n.ByID(2004740384,e,t).then(r=>m(r))}function Lt(){return n.ByID(873697101).then(e=>x(e))}function Mt(){return n.ByID(637134283).then(e=>Qt(e))}function Nt(){return n.ByID(550607756).then(e=>Kt(e))}function jt(e,t){return n.ByID(288660195,e,t).then(r=>h(r))}function Et(e){return n.ByID(1771013494,e).then(t=>h(t))}function z(e){return n.ByID(2433379724,e).then(t=>h(t))}function Wt(e,t,r){return n.ByID(2783597264,e,t,r).then(s=>x(s))}function kt(e){return n.ByID(1369550929,e).then(t=>h(t))}function Ht(e){return n.ByID(3828800061,e).then(t=>h(t))}const h=u.PluginInfo.createFrom,Vt=u.DownloadStats.createFrom,qt=o.Nullable(Vt),b=u.PluginMeta.createFrom,zt=u.VersionInfo.createFrom,U=o.Array(zt),Ut=u.Review.createFrom,xt=o.Array(Ut),m=o.Nullable(b),Jt=u.AvailablePlugin.createFrom,x=o.Array(Jt),Qt=o.Array(b),Kt=o.Array(h),Xt=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:bt,GetPluginDownloadStats:Gt,GetPluginMeta:q,GetPluginReadme:Rt,GetPluginReleaseHistory:Tt,GetPluginReviews:Ct,GetPluginVersions:At,InstallDevPluginFromPath:vt,InstallFromPathPrompt:wt,InstallInDevMode:Ft,InstallPluginFromPath:_t,InstallPluginVersion:Ot,ListAvailablePlugins:Lt,ListPluginMetas:Mt,ListPlugins:Nt,LoadPlugin:jt,ReloadPlugin:Et,RetryFailedPlugin:z,SearchPlugins:Wt,UninstallPlugin:kt,UnlinkDevPlugin:Ht},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 Yt(e){return n.ByID(854008408,e)}function K(){return n.ByID(1598984489).then(e=>tn(e))}function X(e){return n.ByID(1775572154,e).then(t=>R(t))}function Zt(){return n.ByID(3217612415).then(e=>nn(e))}function en(e){return n.ByID(2037329938,e).then(t=>R(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=u.ConnectionStatus.createFrom,G=u.Connection.createFrom,R=o.Array(G),tn=o.Map(o.Any,R),nn=o.Array(o.Any),rn="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";function i(e,...t){return n.ByName(`${rn}.${e}`,...t)}const on=e=>i("Features",e),te=(e,t)=>i("GetConnectionMetadata",e,t),ne=(e,t)=>i("RefreshConnectionMetadata",e,t),re=(e,t)=>i("Catalog",e,t),oe=(e,t)=>i("Get",e,t),ie=(e,t)=>i("Enumerate",e,t),ce=(e,t)=>i("NativeQuery",e,f(t,[e])),se=(e,t)=>i("Mutate",e,f(t,[e])),ue=(e,t)=>i("Action",e,f(t,[e])),ae=(e,t)=>i("ResolveTarget",e,t),cn=(e,t)=>i("ResolveReference",e,t),le=(e,t,r)=>i("GetSchemaDocument",e,t,r),ye=()=>i("GetAllConnectionStates"),fe=e=>i("ListConnectionProfiles",e),$e=(e,t)=>i("SaveConnectionProfile",e,t),pe=(e,t)=>i("ImportConnectionProfile",e,t),he=(e,t)=>i("ResetConnectionProfile",e,t),Se=(e,t)=>i("RemoveConnection",e,t),ge=(e,t)=>i("GetResourceGroups",e,t),sn=(e,t,r)=>i("GetResourceDefinition",e,t,r),de=(e,t)=>i("GetEditorSchemas",e,t),un=(e,t,r)=>i("GetRelationships",e,t,r),an=(e,t)=>i("ResolveRelationships",e,t),ln=(e,t,r)=>i("GetHealth",e,f({request:t,body:r},[e])),yn=(e,t,r)=>i("GetResourceEvents",e,t,r),me=(e,t,r)=>i("GetActions",e,t,r),Be=(e,t)=>i("StreamAction",e,f(t,[e])),Ie=e=>i("AttachStreamAction",e),De=e=>i("CancelStreamAction",e),Pe=(e,t)=>i("StartConnectionWatch",e,t),be=(e,t)=>i("StopConnectionWatch",e,t),Ge=(e,t)=>i("GetWatchState",e,t),Re=(e,t)=>i("EnsureResourceWatch",e,t),fn=(e,t,r)=>i("StopResourceWatch",e,t,r),$n=(e,t)=>i("RestartResourceWatch",e,t),pn=(e,t,r)=>i("IsResourceWatchRunning",e,t,r),Te=(e,t)=>i("SubscribeResource",e,t),Ce=(e,t)=>i("UnsubscribeResource",e,t),Ae=(e,t,r)=>i("ScopeValues",e,t,r),hn=Object.freeze(Object.defineProperty({__proto__:null,Action:ue,AttachStreamAction:Ie,CancelStreamAction:De,Catalog:re,CheckConnection:J,EnsureResourceWatch:Re,Enumerate:ie,Features:on,Get:oe,GetActions:me,GetAllConnectionStates:ye,GetConnection:Q,GetConnectionMetadata:te,GetEditorSchemas:de,GetHealth:ln,GetRelationships:un,GetResourceDefinition:sn,GetResourceEvents:yn,GetResourceGroups:ge,GetSchemaDocument:le,GetWatchState:Ge,HasPlugin:Yt,ImportConnectionProfile:pe,IsResourceWatchRunning:pn,ListAllConnections:K,ListConnectionProfiles:fe,ListConnections:X,ListPlugins:Zt,LoadConnections:en,Mutate:se,NativeQuery:ce,RefreshConnectionMetadata:ne,RemoveConnection:Se,ResetConnectionProfile:he,ResolveReference:cn,ResolveRelationships:an,ResolveTarget:ae,RestartResourceWatch:$n,SaveConnectionProfile:$e,ScopeValues:Ae,StartConnection:Y,StartConnectionWatch:Pe,StopConnection:Z,StopConnectionWatch:be,StopResourceWatch:fn,StreamAction:Be,SubscribeResource:Te,UnsubscribeResource:Ce},Symbol.toStringTag,{value:"Module"})),B="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";function ve(e,t,r,s,$){return n.ByName(`${B}.GetRelated`,e,t,r,s,$)}function Sn(e,t,r,s,$){return n.ByName(`${B}.GetRelationshipChain`,e,t,r,s,$)}function we(e,t,r,s){return n.ByName(`${B}.GetDependencyTree`,e,t,r,s)}function Fe(e,t,r,s,$){return n.ByName(`${B}.GetSubgraph`,e,t,r,s,$)}const gn=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:we,GetRelated:ve,GetRelationshipChain:Sn,GetSubgraph:Fe},Symbol.toStringTag,{value:"Module"}));function dn(e,t){return n.ByID(3867104420,e,t).then(r=>Oe(r))}function mn(e){return n.ByID(3795411887,e)}function Bn(){return n.ByID(1053995964).then(e=>Rn(e))}function In(e){return n.ByID(3231741321,e).then(t=>Tn(t))}function _e(e){return n.ByID(2597562645,e).then(t=>Le(t))}function Dn(e,t,r){return n.ByID(1481837168,e,t,r)}function Pn(e,t){return n.ByID(230212281,e,t)}function bn(e,t,r){return n.ByID(1534017462,e,t,r).then(s=>Cn(s))}function Gn(){return n.ByID(2408440370).then(e=>Le(e))}const Oe=u.Setting.createFrom,Rn=o.Array(o.Any),Tn=o.Map(o.Any,Oe),Le=o.Map(o.Any,o.Any),Cn=u.ValidationResult.createFrom,An=Object.freeze(Object.defineProperty({__proto__:null,GetSetting:dn,HasPlugin:mn,ListPlugins:Bn,ListSettings:In,PluginValues:_e,SetSetting:Dn,SetSettings:Pn,ValidateSetting:bn,Values:Gn},Symbol.toStringTag,{value:"Module"}));function vn(e){return n.ByID(122243240,e)}function wn(){return n.ByID(269082212).then(e=>xn(e))}function Fn(e){return n.ByID(1421156656,e).then(t=>T(t))}function _n(e){return n.ByID(3143996982,e).then(t=>Ne(t))}function On(e){return n.ByID(1695819138,e)}function Ln(e){return n.ByID(1827194808,e).then(t=>Jn(t))}function Mn(e){return n.ByID(72059321,e)}function Nn(e){return n.ByID(62418781,e).then(t=>Qn(t))}function jn(e){return n.ByID(2222012564,e).then(t=>Kn(t))}function En(e){return n.ByID(2753368941,e)}function Wn(e){return n.ByID(3825211425,e)}function kn(e){return n.ByID(2121298005,e).then(t=>Xn(t))}function Hn(){return n.ByID(3038957305).then(e=>d(e))}function Vn(){return n.ByID(3369612893)}function qn(e,t){return n.ByID(252556992,e,t)}function zn(e){return n.ByID(1704369097,e)}function Un(e,t){return n.ByID(1399113254,e,t).then(r=>Zn(r))}function Me(){return n.ByID(2936263106).then(e=>Ne(e))}const T=u.Category.createFrom,xn=o.Array(T),Ne=o.Map(o.Any,o.Any),Jn=o.Array(o.Any),Qn=o.Array(o.Any),Kn=u.Setting.createFrom,Xn=o.Array(o.Any);var d=function e(...t){return d===e&&(d=Yn),d(...t)};const Yn=o.Map(o.Any,T),Zn=u.ValidationResult.createFrom,er=Object.freeze(Object.defineProperty({__proto__:null,GetBool:vn,GetCategories:wn,GetCategory:Fn,GetCategoryValues:_n,GetFloat:On,GetFloatSlice:Ln,GetInt:Mn,GetIntSlice:Nn,GetSetting:jn,GetSettingValue:En,GetString:Wn,GetStringSlice:kn,ListSettings:Hn,LoadSettings:Vn,SetSetting:qn,SetSettings:zn,ValidateSetting:Un,Values:Me},Symbol.toStringTag,{value:"Module"}));function tr(e){return n.ByID(2106300110,e).then(t=>rr(t))}function je(e){return n.ByID(765209827,e).then(t=>or(t))}function nr(e){return n.ByID(2355436169,e).then(t=>We(t))}const Ee=u.ResourceComponent.createFrom,We=o.Array(Ee),rr=o.Map(o.Any,We),or=o.Nullable(Ee),ir=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:tr,GetResourceAreaComponent:je,GetResourceComponents:nr},Symbol.toStringTag,{value:"Module"}));function ke(e){return n.ByID(2776241946,e)}function cr(e){return n.ByID(1474987050,e).then(t=>C(t))}function sr(e){return n.ByID(3156347865,e).then(t=>hr(t))}function ur(e){return n.ByID(1444002509,e)}function ar(){return n.ByID(3104582886).then(e=>Sr(e))}function lr(){return n.ByID(2249742267).then(e=>gr(e))}function yr(e,t){return n.ByID(1212190993,e,t)}function fr(e,t){return n.ByID(2177127885,e,t).then(r=>C(r))}const $r=u.LogSession.createFrom,C=o.Nullable($r),pr=u.Handler$1.createFrom,hr=o.Array(pr),Sr=o.Array(o.Any),gr=o.Array(C);function He(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession",e,t,f(r,[e,t]))}const dr=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:ke,CreateSession:He,GetSession:cr,GetSupportedResources:sr,HasPlugin:ur,ListPlugins:ar,ListSessions:lr,SendCommand:yr,UpdateSessionOptions:fr},Symbol.toStringTag,{value:"Module"}));class A{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=Br;let s=typeof t=="string"?JSON.parse(t):t;return"handlers"in s&&(s.handlers=r(s.handlers)),new A(s)}}const mr=u.Handler$2.createFrom,Br=o.Array(mr);function Ve(){return n.ByID(3919346639).then(e=>Ue(e))}function qe(e){return n.ByID(3953821778,e).then(t=>Ue(t))}function Ir(e){return n.ByID(1815388456,e)}function Dr(){return n.ByID(2730149903).then(e=>br(e))}function ze(e){return n.ByID(3994236150,e)}const Pr=A.createFrom,Ue=o.Array(Pr),br=o.Array(o.Any);u.QueryResponse.createFrom;const v="github.com/omniviewdev/omniview/backend/pkg/plugin/metric.ServiceWrapper";function Gr(e,t,r){return n.ByName(`${v}.Query`,e,t,f(r,[e,t]))}function xe(e,t){return n.ByName(`${v}.QueryAll`,e,f(t,[e]))}function Je(e,t,r){return n.ByName(`${v}.Subscribe`,e,t,f(r,[e,t]))}const Rr=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:Ve,GetProvidersForResource:qe,HasPlugin:Ir,ListPlugins:Dr,Query:Gr,QueryAll:xe,Subscribe:Je,Unsubscribe:ze},Symbol.toStringTag,{value:"Module"}));function Tr(e,t){return n.ByID(3653639550,e,t)}function Qe(e,t){return n.ByID(851823419,e,t)}function Cr(e){return n.ByID(2991415449,e).then(t=>Ar(t))}function Ke(e,t,r){return n.ByID(2695679023,e,t,r)}const Ar=o.Array(o.Any),vr=Object.freeze(Object.defineProperty({__proto__:null,Delete:Tr,Get:Qe,Keys:Cr,Set:Ke},Symbol.toStringTag,{value:"Module"}));exports.Action=ue;exports.AttachStreamAction=Ie;exports.CancelStreamAction=De;exports.Catalog=re;exports.CheckConnection=J;exports.ClosePortForwardSession=E;exports.CloseSession=ke;exports.CreateSession=j;exports.CreateSession$1=He;exports.EnsureResourceWatch=Re;exports.Enumerate=ie;exports.FindPortForwardSessions=W;exports.Get=Qe;exports.Get$1=oe;exports.GetActions=me;exports.GetAllConnectionStates=ye;exports.GetConnection=Q;exports.GetConnectionMetadata=te;exports.GetDependencyTree=we;exports.GetEditorSchemas=de;exports.GetPluginMeta=q;exports.GetProviders=Ve;exports.GetProvidersForResource=qe;exports.GetRelated=ve;exports.GetResourceAreaComponent=je;exports.GetResourceGroups=ge;exports.GetSchemaDocument=le;exports.GetSubgraph=Fe;exports.GetWatchState=Ge;exports.ImportConnectionProfile=pe;exports.ListAllConnections=K;exports.ListAllPortForwardSessions=k;exports.ListConnectionProfiles=fe;exports.ListConnections=X;exports.Mutate=se;exports.NativeQuery=ce;exports.PluginValues=_e;exports.QueryAll=xe;exports.RefreshConnectionMetadata=ne;exports.RemoveConnection=Se;exports.ResetConnectionProfile=he;exports.ResolveTarget=ae;exports.RetryFailedPlugin=z;exports.SaveConnectionProfile=$e;exports.ScopeValues=Ae;exports.Set=Ke;exports.StartConnection=Y;exports.StartConnectionWatch=Pe;exports.StartResourcePortForwardingSession=V;exports.StopConnection=Z;exports.StopConnectionWatch=be;exports.StreamAction=Be;exports.Subscribe=Je;exports.SubscribeResource=Te;exports.Unsubscribe=ze;exports.UnsubscribeResource=Ce;exports.Values=Me;exports.client=hn;exports.exec=St;exports.graphClient=gn;exports.logs=dr;exports.metric=Rr;exports.networker=Pt;exports.servicewrapper=vr;exports.servicewrapper$1=Xt;exports.servicewrapper$2=An;exports.servicewrapper$3=er;exports.servicewrapper$4=ir;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Omniview",
3
3
  "license": "AGPL-3.0-only",
4
4
  "name": "@omniviewdev/runtime",
5
- "version": "0.11.0",
5
+ "version": "0.13.0",
6
6
  "description": "Runtime shared library for Omniview",
7
7
  "sideEffects": false,
8
8
  "type": "module",
@@ -52,7 +52,7 @@
52
52
  "omniview"
53
53
  ],
54
54
  "devDependencies": {
55
- "@omniviewdev/base-ui": "~0.9.0",
55
+ "@omniviewdev/base-ui": "~0.9.1",
56
56
  "@tanstack/react-query": "5.105.0",
57
57
  "@types/node": "26.6.5",
58
58
  "@types/react": "19.3.0",
@@ -68,7 +68,7 @@
68
68
  "@typescript/native": "npm:typescript@7.0.2"
69
69
  },
70
70
  "peerDependencies": {
71
- "@omniviewdev/base-ui": "~0.9.0",
71
+ "@omniviewdev/base-ui": "~0.9.1",
72
72
  "@tanstack/react-query": "^5.105.0",
73
73
  "react": "^19.3.1",
74
74
  "react-dom": "^19.3.1",
@@ -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;