@omniviewdev/runtime 0.15.0 → 0.17.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-BJZVpONm.cjs"),n=require("./calls-B-HP1Icv.cjs");function f(e,t=[]){let l=0;for(const s of t){if(s.length>65536)throw new RangeError("Request routing byte limit");l+=new TextEncoder().encode(JSON.stringify(s)).length+1}if(l>57344)throw new RangeError("Request routing byte limit");let _=0,N=2,et=0,M=0;const L=[],p=s=>{for(let y=0;y<s.length;y++){const a=s.charCodeAt(y);let h=a<128?1:a<2048?2:3;if(a>=55296&&a<=56319){const S=s.charCodeAt(++y);if(!(S>=56320&&S<=57343))throw new TypeError("Invalid Unicode");h=4}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode");if(_+=h,N+=a===34||a===92?2:h,_>33554432||N>67043328)throw new RangeError("Request JSON byte limit")}L.push(s)},j=s=>{if(s.length>33554432)throw new RangeError("Request JSON byte limit");for(let y=0;y<s.length;y++){const a=s.charCodeAt(y);if(a>=55296&&a<=56319){const h=s.charCodeAt(++y);if(!(h>=56320&&h<=57343))throw new TypeError("Invalid Unicode")}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode")}p(JSON.stringify(s))},b=(s,y)=>{if(++et>262144||y>64)throw new RangeError("Request JSON structural limit");if(s===null){p("null");return}if(typeof s=="string"){j(s);return}if(typeof s=="boolean"){p(s?"true":"false");return}if(typeof s=="number"){if(!Number.isFinite(s))throw new TypeError("Request numbers must be finite");p(Object.is(s,-0)?"-0":JSON.stringify(s));return}if(Array.isArray(s)){p("[");for(let a=0;a<s.length;a++){if(++M>1048576)throw new RangeError("Request JSON field limit");a&&p(","),b(s[a],y+1)}p("]");return}if(typeof s=="object"){p("{");let a=!0;for(const[h,S]of Object.entries(s))if(S!==void 0){if(++M>1048576)throw new RangeError("Request JSON field limit");a||p(","),a=!1,j(h),p(":"),b(S,y+1)}p("}");return}throw new TypeError("Unsupported request JSON value")};return b(e,0),L.join("")}function tt(e){return n.ByID(93318075,e).then(t=>(t[0]=d(t[0]),t[1]=o.ByteSlice(t[1]),t))}function nt(e){return n.ByID(1353297556,e)}function rt(e){return n.ByID(4182196712,e).then(t=>d(t))}function ot(e){return n.ByID(3993344525,e).then(t=>d(t))}function it(e,t){return n.ByID(1779192716,e,t).then(r=>gt(r))}function ct(){return n.ByID(4033362541).then(e=>St(e))}function st(e){return n.ByID(2619212338,e).then(t=>k(t))}function ut(e){return n.ByID(1371268636,e).then(t=>d(t))}function at(e){return n.ByID(3881019319,e)}function lt(){return n.ByID(3006426324).then(e=>dt(e))}function yt(){return n.ByID(265791345).then(e=>$t(e))}function pt(e,t,r){return n.ByID(1492965384,e,t,r)}function ft(e,t){return n.ByID(486465741,e,t)}const ht=u.Session.createFrom,d=o.Nullable(ht),E=u.Handler.createFrom,gt=o.Nullable(E),k=o.Map(o.Any,E),St=o.Map(o.Any,k),dt=o.Array(o.Any),$t=o.Array(d);function W(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession",e,t,f(r,[e,t])).then(c=>c===null?null:u.Session.createFrom(c))}const mt=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:tt,CloseSession:nt,CreateSession:W,CreateTerminal:rt,DetachSession:ot,GetHandler:it,GetHandlers:ct,GetPluginHandlers:st,GetSession:ut,HasPlugin:at,ListPlugins:lt,ListSessions:yt,ResizeSession:pt,WriteSession:ft},Symbol.toStringTag,{value:"Module"}));function H(e){return n.ByID(182596922,e).then(t=>P(t))}function J(e,t,r){return n.ByID(981100722,e,t,r).then(c=>R(c))}function Bt(e){return n.ByID(2157304970,e).then(t=>P(t))}function Dt(e){return n.ByID(650882,e).then(t=>z(t))}function It(e){return n.ByID(3624690437,e)}function q(){return n.ByID(2195697754).then(e=>R(e))}function bt(){return n.ByID(167463150).then(e=>z(e))}function Pt(e,t){return n.ByID(2090415403,e,t).then(r=>R(r))}const Rt=u.PortForwardSession.createFrom,P=o.Nullable(Rt),R=o.Array(P),z=o.Array(o.Any);function U(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/networker.ServiceWrapper.StartResourcePortForwardingSession",e,t,f(r,[e,t]))}const Tt=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:H,FindPortForwardSessions:J,GetPortForwardSession:Bt,GetSupportedPortForwardTargets:Dt,HasPlugin:It,ListAllPortForwardSessions:q,ListPlugins:bt,ListPortForwardSessions:Pt,StartResourcePortForwardingSession:U},Symbol.toStringTag,{value:"Module"}));class T{pluginID;running;url;error;supported;pid;constructor(t={}){"pluginID"in t||(this.pluginID=""),"running"in t||(this.running=!1),"url"in t||(this.url=""),"error"in t||(this.error=""),"supported"in t||(this.supported=!1),"pid"in t||(this.pid=0),Object.assign(this,t)}static createFrom(t={}){let r=typeof t=="string"?JSON.parse(t):t;return new T(r)}}function Ct(e){return n.ByID(3150413499,e).then(t=>g(t))}function Gt(e){return n.ByID(1152913314,e).then(t=>Vt(t))}function x(e){return n.ByID(111194374,e).then(t=>C(t))}function At(){return n.ByID(1083754477).then(e=>Kt(e))}function vt(e){return n.ByID(3945933305,e)}function wt(e){return n.ByID(2859775056,e).then(t=>Q(t))}function Ft(e,t){return n.ByID(2209599792,e,t).then(r=>Zt(r))}function Ot(e){return n.ByID(3963363730,e).then(t=>Q(t))}function _t(e){return n.ByID(1357029266,e).then(t=>g(t))}function Nt(){return n.ByID(2477486666).then(e=>B(e))}function Mt(){return n.ByID(976517756).then(e=>B(e))}function Lt(e){return n.ByID(1020548995,e).then(t=>B(t))}function jt(e,t){return n.ByID(2004740384,e,t).then(r=>B(r))}function Et(){return n.ByID(873697101).then(e=>K(e))}function kt(){return n.ByID(637134283).then(e=>tn(e))}function Wt(){return n.ByID(550607756).then(e=>nn(e))}function Ht(e,t){return n.ByID(288660195,e,t).then(r=>g(r))}function Jt(e){return n.ByID(1771013494,e).then(t=>g(t))}function V(e){return n.ByID(2433379724,e).then(t=>g(t))}function qt(e,t,r){return n.ByID(2783597264,e,t,r).then(c=>K(c))}function zt(e){return n.ByID(1369550929,e).then(t=>g(t))}function Ut(e){return n.ByID(3828800061,e).then(t=>g(t))}const g=u.PluginInfo.createFrom,xt=u.DownloadStats.createFrom,Vt=o.Nullable(xt),C=u.PluginMeta.createFrom,Qt=T.createFrom,Kt=o.Array(Qt),Xt=u.VersionInfo.createFrom,Q=o.Array(Xt),Yt=u.Review.createFrom,Zt=o.Array(Yt),B=o.Nullable(C),en=u.AvailablePlugin.createFrom,K=o.Array(en),tn=o.Array(C),nn=o.Array(g),rn=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:Ct,GetPluginDownloadStats:Gt,GetPluginMeta:x,GetPluginProfilingStatuses:At,GetPluginReadme:vt,GetPluginReleaseHistory:wt,GetPluginReviews:Ft,GetPluginVersions:Ot,InstallDevPluginFromPath:_t,InstallFromPathPrompt:Nt,InstallInDevMode:Mt,InstallPluginFromPath:Lt,InstallPluginVersion:jt,ListAvailablePlugins:Et,ListPluginMetas:kt,ListPlugins:Wt,LoadPlugin:Ht,ReloadPlugin:Jt,RetryFailedPlugin:V,SearchPlugins:qt,UninstallPlugin:zt,UnlinkDevPlugin:Ut},Symbol.toStringTag,{value:"Module"}));function X(e,t){return n.ByID(1688967279,e,t).then(r=>re(r))}function Y(e,t){return n.ByID(950535743,e,t).then(r=>G(r))}function on(e){return n.ByID(854008408,e)}function Z(){return n.ByID(1598984489).then(e=>un(e))}function ee(e){return n.ByID(1775572154,e).then(t=>A(t))}function cn(){return n.ByID(3217612415).then(e=>an(e))}function sn(e){return n.ByID(2037329938,e).then(t=>A(t))}function te(e,t){return n.ByID(3276991559,e,t).then(r=>re(r))}function ne(e,t){return n.ByID(794258089,e,t).then(r=>G(r))}const re=u.ConnectionStatus.createFrom,G=u.Connection.createFrom,A=o.Array(G),un=o.Map(o.Any,A),an=o.Array(o.Any),ln="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";function i(e,...t){return n.ByName(`${ln}.${e}`,...t)}const yn=e=>i("Features",e),oe=(e,t)=>i("GetConnectionMetadata",e,t),ie=(e,t)=>i("RefreshConnectionMetadata",e,t),ce=(e,t)=>i("Catalog",e,t),se=(e,t)=>i("Get",e,t),ue=(e,t)=>i("Enumerate",e,t),ae=(e,t)=>i("NativeQuery",e,f(t,[e])),le=(e,t)=>i("Mutate",e,f(t,[e])),ye=(e,t)=>i("Action",e,f(t,[e])),pe=(e,t)=>i("ResolveTarget",e,t),pn=(e,t)=>i("ResolveReference",e,t),fe=(e,t,r)=>i("GetSchemaDocument",e,t,r),he=()=>i("GetAllConnectionStates"),ge=e=>i("ListConnectionProfiles",e),Se=(e,t)=>i("SaveConnectionProfile",e,t),de=(e,t)=>i("ImportConnectionProfile",e,t),$e=(e,t)=>i("ResetConnectionProfile",e,t),me=(e,t)=>i("RemoveConnection",e,t),Be=(e,t)=>i("GetResourceGroups",e,t),fn=(e,t,r)=>i("GetResourceDefinition",e,t,r),De=(e,t)=>i("GetEditorSchemas",e,t),hn=(e,t,r)=>i("GetRelationships",e,t,r),gn=(e,t)=>i("ResolveRelationships",e,t),Sn=(e,t,r)=>i("GetHealth",e,f({request:t,body:r},[e])),dn=(e,t,r)=>i("GetResourceEvents",e,t,r),Ie=(e,t,r)=>i("GetActions",e,t,r),be=(e,t)=>i("StreamAction",e,f(t,[e])),Pe=e=>i("AttachStreamAction",e),Re=e=>i("CancelStreamAction",e),Te=(e,t)=>i("StartConnectionWatch",e,t),Ce=(e,t)=>i("StopConnectionWatch",e,t),Ge=(e,t)=>i("GetWatchState",e,t),Ae=(e,t)=>i("EnsureResourceWatch",e,t),$n=(e,t,r)=>i("StopResourceWatch",e,t,r),mn=(e,t)=>i("RestartResourceWatch",e,t),Bn=(e,t,r)=>i("IsResourceWatchRunning",e,t,r),ve=(e,t)=>i("SubscribeResource",e,t),we=(e,t)=>i("UnsubscribeResource",e,t),Fe=(e,t,r)=>i("ScopeValues",e,t,r),Dn=Object.freeze(Object.defineProperty({__proto__:null,Action:ye,AttachStreamAction:Pe,CancelStreamAction:Re,Catalog:ce,CheckConnection:X,EnsureResourceWatch:Ae,Enumerate:ue,Features:yn,Get:se,GetActions:Ie,GetAllConnectionStates:he,GetConnection:Y,GetConnectionMetadata:oe,GetEditorSchemas:De,GetHealth:Sn,GetRelationships:hn,GetResourceDefinition:fn,GetResourceEvents:dn,GetResourceGroups:Be,GetSchemaDocument:fe,GetWatchState:Ge,HasPlugin:on,ImportConnectionProfile:de,IsResourceWatchRunning:Bn,ListAllConnections:Z,ListConnectionProfiles:ge,ListConnections:ee,ListPlugins:cn,LoadConnections:sn,Mutate:le,NativeQuery:ae,RefreshConnectionMetadata:ie,RemoveConnection:me,ResetConnectionProfile:$e,ResolveReference:pn,ResolveRelationships:gn,ResolveTarget:pe,RestartResourceWatch:mn,SaveConnectionProfile:Se,ScopeValues:Fe,StartConnection:te,StartConnectionWatch:Te,StopConnection:ne,StopConnectionWatch:Ce,StopResourceWatch:$n,StreamAction:be,SubscribeResource:ve,UnsubscribeResource:we},Symbol.toStringTag,{value:"Module"})),D="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";function Oe(e,t,r,c,l){return n.ByName(`${D}.GetRelated`,e,t,r,c,l)}function In(e,t,r,c,l){return n.ByName(`${D}.GetRelationshipChain`,e,t,r,c,l)}function _e(e,t,r,c){return n.ByName(`${D}.GetDependencyTree`,e,t,r,c)}function Ne(e,t,r,c,l){return n.ByName(`${D}.GetSubgraph`,e,t,r,c,l)}const bn=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:_e,GetRelated:Oe,GetRelationshipChain:In,GetSubgraph:Ne},Symbol.toStringTag,{value:"Module"}));class v{snapshot;applied;uncertain;message;constructor(t={}){"snapshot"in t||(this.snapshot=new $),"applied"in t||(this.applied=!1),"uncertain"in t||(this.uncertain=!1),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){const r=Pn;let c=typeof t=="string"?JSON.parse(t):t;return"snapshot"in c&&(c.snapshot=r(c.snapshot)),new v(c)}}class I{kind;pluginId;constructor(t={}){"kind"in t||(this.kind=""),Object.assign(this,t)}static createFrom(t={}){let r=typeof t=="string"?JSON.parse(t):t;return new I(r)}}class ${scope;categories;constructor(t={}){"scope"in t||(this.scope=new I),"categories"in t||(this.categories={}),Object.assign(this,t)}static createFrom(t={}){const r=Rn,c=m;let l=typeof t=="string"?JSON.parse(t):t;return"scope"in l&&(l.scope=r(l.scope)),"categories"in l&&(l.categories=c(l.categories)),new $(l)}}const Pn=$.createFrom,Rn=I.createFrom;var m=function e(...t){return m===e&&(m=Cn),m(...t)};const Tn=u.Category.createFrom,Cn=o.Map(o.Any,Tn);function Me(e,t){return n.ByID(1766083910,e,t).then(r=>Gn(r))}function Le(e){return n.ByID(3969198041,e).then(t=>An(t))}function je(e,t,r){return n.ByID(3964153809,e,t,r).then(c=>vn(c))}const Gn=v.createFrom,An=$.createFrom,vn=u.ValidationResult.createFrom,wn=Object.freeze(Object.defineProperty({__proto__:null,Commit:Me,GetSnapshot:Le,Validate:je},Symbol.toStringTag,{value:"Module"}));function Fn(e){return n.ByID(2106300110,e).then(t=>_n(t))}function Ee(e){return n.ByID(765209827,e).then(t=>Nn(t))}function On(e){return n.ByID(2355436169,e).then(t=>We(t))}const ke=u.ResourceComponent.createFrom,We=o.Array(ke),_n=o.Map(o.Any,We),Nn=o.Nullable(ke),Mn=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:Fn,GetResourceAreaComponent:Ee,GetResourceComponents:On},Symbol.toStringTag,{value:"Module"}));function He(e){return n.ByID(2776241946,e)}function Ln(e){return n.ByID(1474987050,e).then(t=>w(t))}function jn(e){return n.ByID(3156347865,e).then(t=>Un(t))}function En(e){return n.ByID(1444002509,e)}function kn(){return n.ByID(3104582886).then(e=>xn(e))}function Wn(){return n.ByID(2249742267).then(e=>Vn(e))}function Hn(e,t){return n.ByID(1212190993,e,t)}function Jn(e,t){return n.ByID(2177127885,e,t).then(r=>w(r))}const qn=u.LogSession.createFrom,w=o.Nullable(qn),zn=u.Handler$1.createFrom,Un=o.Array(zn),xn=o.Array(o.Any),Vn=o.Array(w);function Je(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession",e,t,f(r,[e,t]))}const Qn=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:He,CreateSession:Je,GetSession:Ln,GetSupportedResources:jn,HasPlugin:En,ListPlugins:kn,ListSessions:Wn,SendCommand:Hn,UpdateSessionOptions:Jn},Symbol.toStringTag,{value:"Module"}));class F{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=Xn;let c=typeof t=="string"?JSON.parse(t):t;return"handlers"in c&&(c.handlers=r(c.handlers)),new F(c)}}const Kn=u.Handler$2.createFrom,Xn=o.Array(Kn);function qe(){return n.ByID(3919346639).then(e=>xe(e))}function ze(e){return n.ByID(3953821778,e).then(t=>xe(t))}function Yn(e){return n.ByID(1815388456,e)}function Zn(){return n.ByID(2730149903).then(e=>tr(e))}function Ue(e){return n.ByID(3994236150,e)}const er=F.createFrom,xe=o.Array(er),tr=o.Array(o.Any);u.QueryResponse.createFrom;const O="github.com/omniviewdev/omniview/backend/pkg/plugin/metric.ServiceWrapper";function nr(e,t,r){return n.ByName(`${O}.Query`,e,t,f(r,[e,t]))}function Ve(e,t){return n.ByName(`${O}.QueryAll`,e,f(t,[e]))}function Qe(e,t,r){return n.ByName(`${O}.Subscribe`,e,t,f(r,[e,t]))}const rr=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:qe,GetProvidersForResource:ze,HasPlugin:Yn,ListPlugins:Zn,Query:nr,QueryAll:Ve,Subscribe:Qe,Unsubscribe:Ue},Symbol.toStringTag,{value:"Module"}));function or(e,t){return n.ByID(3653639550,e,t)}function Ke(e,t){return n.ByID(851823419,e,t)}function ir(e){return n.ByID(2991415449,e).then(t=>cr(t))}function Xe(e,t,r){return n.ByID(2695679023,e,t,r)}const cr=o.Array(o.Any),sr=Object.freeze(Object.defineProperty({__proto__:null,Delete:or,Get:Ke,Keys:ir,Set:Xe},Symbol.toStringTag,{value:"Module"}));function ur(e){return n.ByID(584261046,e)}function ar(e){return n.ByID(3098255555,e)}function lr(e){return n.ByID(903698361,e)}function yr(e,t,r){return n.ByID(1235170530,e,t,r).then(c=>Rr(c))}function pr(e){return n.ByID(3199298309,e)}function fr(){return n.ByID(2119827301).then(e=>Tr(e))}function hr(e){return n.ByID(2822783534,e).then(t=>Ze(t))}function gr(){return n.ByID(1563865534)}function Sr(){return n.ByID(914742443).then(e=>Gr(e))}function dr(){return n.ByID(3392737293).then(e=>Ar(e))}function $r(e,t,r){return n.ByID(1474486628,e,t,r)}function mr(e,t,r){return n.ByID(2366942716,e,t,r)}function Br(e){return n.ByID(4008581935,e)}function Ye(e){return n.ByID(520255202,e)}function Dr(e,t,r){return n.ByID(958877691,e,t,r)}function Ir(e,t,r){return n.ByID(1772958861,e,t,r)}function br(e,t,r){return n.ByID(728919203,e,t,r)}function Pr(e,t){return n.ByID(1547965995,e,t)}const Rr=u.DropResult.createFrom,Tr=u.SettingsState.createFrom,Ze=o.Map(o.Any,o.Any),Cr=u.Info.createFrom,Gr=o.Array(Cr),Ar=o.Map(o.Any,Ze),vr=Object.freeze(Object.defineProperty({__proto__:null,BeginDrag:ur,CancelDrag:ar,Close:lr,EndDrag:yr,Focus:pr,GetSettingsState:fr,GetState:hr,HideSettings:gr,List:Sr,ListStates:dr,MoveDrag:$r,MoveToPointer:mr,Open:Br,OpenSettings:Ye,ReportViewport:Dr,RespondDrop:Ir,SaveState:br,SetSettingsLocation:Pr},Symbol.toStringTag,{value:"Module"}));exports.Action=ye;exports.AttachStreamAction=Pe;exports.CancelStreamAction=Re;exports.Catalog=ce;exports.CheckConnection=X;exports.ClosePortForwardSession=H;exports.CloseSession=He;exports.Commit=Me;exports.CreateSession=W;exports.CreateSession$1=Je;exports.EnsureResourceWatch=Ae;exports.Enumerate=ue;exports.FindPortForwardSessions=J;exports.Get=Ke;exports.Get$1=se;exports.GetActions=Ie;exports.GetAllConnectionStates=he;exports.GetConnection=Y;exports.GetConnectionMetadata=oe;exports.GetDependencyTree=_e;exports.GetEditorSchemas=De;exports.GetPluginMeta=x;exports.GetProviders=qe;exports.GetProvidersForResource=ze;exports.GetRelated=Oe;exports.GetResourceAreaComponent=Ee;exports.GetResourceGroups=Be;exports.GetSchemaDocument=fe;exports.GetSnapshot=Le;exports.GetSubgraph=Ne;exports.GetWatchState=Ge;exports.ImportConnectionProfile=de;exports.ListAllConnections=Z;exports.ListAllPortForwardSessions=q;exports.ListConnectionProfiles=ge;exports.ListConnections=ee;exports.Mutate=le;exports.NativeQuery=ae;exports.OpenSettings=Ye;exports.QueryAll=Ve;exports.RefreshConnectionMetadata=ie;exports.RemoveConnection=me;exports.ResetConnectionProfile=$e;exports.ResolveTarget=pe;exports.RetryFailedPlugin=V;exports.SaveConnectionProfile=Se;exports.ScopeValues=Fe;exports.Set=Xe;exports.StartConnection=te;exports.StartConnectionWatch=Te;exports.StartResourcePortForwardingSession=U;exports.StopConnection=ne;exports.StopConnectionWatch=Ce;exports.StreamAction=be;exports.Subscribe=Qe;exports.SubscribeResource=ve;exports.Unsubscribe=Ue;exports.UnsubscribeResource=we;exports.Validate=je;exports.binding=wn;exports.client=Dn;exports.exec=mt;exports.graphClient=bn;exports.logs=Qn;exports.metric=rr;exports.networker=Tt;exports.service=vr;exports.servicewrapper=sr;exports.servicewrapper$1=rn;exports.servicewrapper$2=Mn;