@omniviewdev/runtime 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +2 -0
  3. package/dist/api.js +492 -276
  4. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/registry/models.d.ts +3 -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 +85 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +3 -1
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +2 -1
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/index.d.ts +1 -1
  10. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/models.d.ts +22 -0
  11. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/resourcecatalog/index.d.ts +1 -0
  12. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/resourcecatalog/models.d.ts +127 -0
  13. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +1 -1
  14. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +45 -18
  15. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/index.d.ts +1 -1
  16. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +0 -22
  17. package/dist/compat/types.d.ts +2 -1
  18. package/dist/hooks/resource/index.d.ts +1 -0
  19. package/dist/hooks/resource/useEditorSchemas.d.ts +9 -8
  20. package/dist/hooks/resource/useSchemaFields.d.ts +45 -0
  21. package/dist/index.cjs +4 -4
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.js +1693 -1590
  24. package/dist/{models-eKPHQdEl.js → models-BwT6PfKo.js} +45 -39
  25. package/dist/{models-B_Ef0-Dw.js → models-CcH0zldZ.js} +1 -1
  26. package/dist/{models-CX8HlqvF.cjs → models-CpFXL1IY.cjs} +1 -1
  27. package/dist/models-R2rKpSiU.cjs +1 -0
  28. package/dist/models.cjs +1 -1
  29. package/dist/models.d.ts +4 -1
  30. package/dist/models.js +100 -94
  31. package/dist/resource/v2/ancillary.d.ts +1 -8
  32. package/dist/resource/v2/client.d.ts +5 -2
  33. package/dist/resource/v2/domain.d.ts +0 -2
  34. package/dist/resource/v2/query-lease.d.ts +145 -0
  35. package/dist/resource/v2/query-observer.d.ts +37 -0
  36. package/dist/resource/v2/query.d.ts +120 -0
  37. package/dist/resource/v2/schema.d.ts +86 -0
  38. package/dist/{service-CbJRfldb.js → service-Brxo1pLe.js} +306 -299
  39. package/dist/service-COOtx0k6.cjs +1 -0
  40. package/package.json +1 -1
  41. package/dist/models-B3B5AdrM.cjs +0 -1
  42. package/dist/service-DyXmAdcM.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./index-BVi9X4oU.cjs"),u=require("./models-R2rKpSiU.cjs"),n=require("./calls-B-HP1Icv.cjs");function p(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,it=0,M=0;const L=[],f=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 d=s.charCodeAt(++y);if(!(d>=56320&&d<=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")}f(JSON.stringify(s))},P=(s,y)=>{if(++it>262144||y>64)throw new RangeError("Request JSON structural limit");if(s===null){f("null");return}if(typeof s=="string"){j(s);return}if(typeof s=="boolean"){f(s?"true":"false");return}if(typeof s=="number"){if(!Number.isFinite(s))throw new TypeError("Request numbers must be finite");f(Object.is(s,-0)?"-0":JSON.stringify(s));return}if(Array.isArray(s)){f("[");for(let a=0;a<s.length;a++){if(++M>1048576)throw new RangeError("Request JSON field limit");a&&f(","),P(s[a],y+1)}f("]");return}if(typeof s=="object"){f("{");let a=!0;for(const[h,d]of Object.entries(s))if(d!==void 0){if(++M>1048576)throw new RangeError("Request JSON field limit");a||f(","),a=!1,j(h),f(":"),P(d,y+1)}f("}");return}throw new TypeError("Unsupported request JSON value")};return P(e,0),L.join("")}function ct(e){return n.ByID(93318075,e).then(t=>(t[0]=g(t[0]),t[1]=o.ByteSlice(t[1]),t))}function st(e){return n.ByID(1353297556,e)}function ut(e){return n.ByID(4182196712,e).then(t=>g(t))}function at(e){return n.ByID(3993344525,e).then(t=>g(t))}function E(e,t){return n.ByID(1779192716,e,t).then(r=>mt(r))}function lt(){return n.ByID(4033362541).then(e=>Bt(e))}function k(){return n.ByID(3434119522)}function yt(e){return n.ByID(2619212338,e).then(t=>H(t))}function pt(e){return n.ByID(1371268636,e).then(t=>g(t))}function ft(e){return n.ByID(3881019319,e)}function St(){return n.ByID(3006426324).then(e=>Dt(e))}function ht(){return n.ByID(265791345).then(e=>It(e))}function dt(e,t,r){return n.ByID(1492965384,e,t,r)}function gt(e,t){return n.ByID(486465741,e,t)}const $t=u.Session.createFrom,g=o.Nullable($t),V=u.Handler.createFrom,mt=o.Nullable(V),H=o.Map(o.Any,V),Bt=o.Map(o.Any,H),Dt=o.Array(o.Any),It=o.Array(g);function J(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession",e,t,p(r,[e,t])).then(c=>c===null?null:u.Session.createFrom(c))}function q(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.OpenNativeSession",e,t,p(r,[e,t]))}const Pt=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:ct,CloseSession:st,CreateSession:J,CreateTerminal:ut,DetachSession:at,GetHandler:E,GetHandlers:lt,GetNativeTerminalSupport:k,GetPluginHandlers:yt,GetSession:pt,HasPlugin:ft,ListPlugins:St,ListSessions:ht,OpenNativeSession:q,ResizeSession:dt,WriteSession:gt},Symbol.toStringTag,{value:"Module"}));function z(e){return n.ByID(182596922,e).then(t=>T(t))}function x(e,t,r){return n.ByID(981100722,e,t,r).then(c=>b(c))}function Tt(e){return n.ByID(2157304970,e).then(t=>T(t))}function bt(e){return n.ByID(650882,e).then(t=>Q(t))}function Gt(e){return n.ByID(3624690437,e)}function U(){return n.ByID(2195697754).then(e=>b(e))}function wt(){return n.ByID(167463150).then(e=>Q(e))}function Ct(e,t){return n.ByID(2090415403,e,t).then(r=>b(r))}const vt=u.PortForwardSession.createFrom,T=o.Nullable(vt),b=o.Array(T),Q=o.Array(o.Any);function W(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/networker.ServiceWrapper.StartResourcePortForwardingSession",e,t,p(r,[e,t]))}const Rt=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:z,FindPortForwardSessions:x,GetPortForwardSession:Tt,GetSupportedPortForwardTargets:bt,HasPlugin:Gt,ListAllPortForwardSessions:U,ListPlugins:wt,ListPortForwardSessions:Ct,StartResourcePortForwardingSession:W},Symbol.toStringTag,{value:"Module"}));class G{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 G(r)}}function At(e){return n.ByID(3150413499,e).then(t=>S(t))}function Ft(e){return n.ByID(1152913314,e).then(t=>Zt(t))}function K(e){return n.ByID(111194374,e).then(t=>w(t))}function Ot(){return n.ByID(1083754477).then(e=>tn(e))}function _t(e){return n.ByID(3945933305,e)}function Nt(e){return n.ByID(2859775056,e).then(t=>Y(t))}function Mt(e,t){return n.ByID(2209599792,e,t).then(r=>on(r))}function Lt(e){return n.ByID(3963363730,e).then(t=>Y(t))}function jt(e){return n.ByID(1357029266,e).then(t=>S(t))}function Et(){return n.ByID(2477486666).then(e=>B(e))}function kt(){return n.ByID(976517756).then(e=>B(e))}function Vt(e){return n.ByID(1020548995,e).then(t=>B(t))}function Ht(e,t){return n.ByID(2004740384,e,t).then(r=>B(r))}function Jt(){return n.ByID(873697101).then(e=>Z(e))}function qt(){return n.ByID(637134283).then(e=>sn(e))}function zt(){return n.ByID(550607756).then(e=>un(e))}function xt(e,t){return n.ByID(288660195,e,t).then(r=>S(r))}function Ut(e){return n.ByID(1771013494,e).then(t=>S(t))}function X(e){return n.ByID(2433379724,e).then(t=>S(t))}function Qt(e,t,r){return n.ByID(2783597264,e,t,r).then(c=>Z(c))}function Wt(e,t){return n.ByID(2179374748,e,t).then(r=>S(r))}function Kt(e){return n.ByID(1369550929,e).then(t=>S(t))}function Xt(e){return n.ByID(3828800061,e).then(t=>S(t))}const S=u.PluginInfo.createFrom,Yt=u.DownloadStats.createFrom,Zt=o.Nullable(Yt),w=u.PluginMeta.createFrom,en=G.createFrom,tn=o.Array(en),nn=u.VersionInfo.createFrom,Y=o.Array(nn),rn=u.Review.createFrom,on=o.Array(rn),B=o.Nullable(w),cn=u.AvailablePlugin.createFrom,Z=o.Array(cn),sn=o.Array(w),un=o.Array(S),an=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:At,GetPluginDownloadStats:Ft,GetPluginMeta:K,GetPluginProfilingStatuses:Ot,GetPluginReadme:_t,GetPluginReleaseHistory:Nt,GetPluginReviews:Mt,GetPluginVersions:Lt,InstallDevPluginFromPath:jt,InstallFromPathPrompt:Et,InstallInDevMode:kt,InstallPluginFromPath:Vt,InstallPluginVersion:Ht,ListAvailablePlugins:Jt,ListPluginMetas:qt,ListPlugins:zt,LoadPlugin:xt,ReloadPlugin:Ut,RetryFailedPlugin:X,SearchPlugins:Qt,SetPluginEnabled:Wt,UninstallPlugin:Kt,UnlinkDevPlugin:Xt},Symbol.toStringTag,{value:"Module"}));function ee(e,t){return n.ByID(1688967279,e,t).then(r=>ce(r))}function te(e,t){return n.ByID(950535743,e,t).then(r=>C(r))}function ln(e){return n.ByID(854008408,e)}function ne(){return n.ByID(1598984489).then(e=>fn(e))}function re(e){return n.ByID(1775572154,e).then(t=>v(t))}function yn(){return n.ByID(3217612415).then(e=>Sn(e))}function pn(e){return n.ByID(2037329938,e).then(t=>v(t))}function oe(e,t){return n.ByID(3276991559,e,t).then(r=>ce(r))}function ie(e,t){return n.ByID(794258089,e,t).then(r=>C(r))}const ce=u.ConnectionStatus.createFrom,C=u.Connection.createFrom,v=o.Array(C),fn=o.Map(o.Any,v),Sn=o.Array(o.Any),hn="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";function i(e,...t){return n.ByName(`${hn}.${e}`,...t)}const dn=e=>i("Features",e),se=(e,t)=>i("GetConnectionMetadata",e,t),ue=(e,t)=>i("RefreshConnectionMetadata",e,t),ae=(e,t)=>i("Catalog",e,t),le=(e,t)=>i("Get",e,t),ye=(e,t)=>i("Enumerate",e,t),pe=(e,t)=>i("NativeQuery",e,p(t,[e])),fe=(e,t)=>i("Mutate",e,p(t,[e])),Se=(e,t)=>i("Action",e,p(t,[e])),he=(e,t)=>i("ResolveTarget",e,t),gn=(e,t)=>i("ResolveReference",e,t),$n=(e,t,r)=>i("GetSchemaDocument",e,t,r),de=()=>i("GetAllConnectionStates"),ge=e=>i("ListConnectionProfiles",e),$e=(e,t,r)=>i("SaveConnectionProfile",e,p(t,[e]),r??null),me=(e,t)=>i("ImportConnectionProfile",e,t),Be=(e,t)=>i("ResetConnectionProfile",e,t),De=(e,t)=>i("RemoveConnection",e,t),Ie=(e,t)=>i("GetResourceGroups",e,t),mn=(e,t,r)=>i("GetResourceDefinition",e,t,r),Pe=(e,t)=>i("GetSchemaFields",e,t),Te=(e,t)=>i("GetEditorSchemas",e,t),be=(e,t,r)=>i("GetEditorSchemaDocument",e,t,r),Bn=(e,t,r)=>i("GetRelationships",e,t,r),Dn=(e,t)=>i("ResolveRelationships",e,t),In=(e,t,r)=>i("GetHealth",e,p({request:t,body:r},[e])),Pn=(e,t,r)=>i("GetResourceEvents",e,t,r),Ge=(e,t,r)=>i("GetActions",e,t,r),we=(e,t)=>i("StreamAction",e,p(t,[e])),Ce=e=>i("AttachStreamAction",e),ve=e=>i("CancelStreamAction",e),Re=(e,t)=>i("OpenSourceView",e,t),Ae=(e,t)=>i("SyncSourceView",e,t),Fe=(e,t)=>i("RefreshSourceView",e,t),Oe=(e,t)=>i("CloseSourceView",e,t),_e=(e,t)=>i("GetSourceStates",e,t),Ne=(e,t)=>i("RetryConnectionSources",e,t),Me=(e,t,r)=>i("ScopeValues",e,t,r),Tn=Object.freeze(Object.defineProperty({__proto__:null,Action:Se,AttachStreamAction:Ce,CancelStreamAction:ve,Catalog:ae,CheckConnection:ee,CloseSourceView:Oe,Enumerate:ye,Features:dn,Get:le,GetActions:Ge,GetAllConnectionStates:de,GetConnection:te,GetConnectionMetadata:se,GetEditorSchemaDocument:be,GetEditorSchemas:Te,GetHealth:In,GetRelationships:Bn,GetResourceDefinition:mn,GetResourceEvents:Pn,GetResourceGroups:Ie,GetSchemaDocument:$n,GetSchemaFields:Pe,GetSourceStates:_e,HasPlugin:ln,ImportConnectionProfile:me,ListAllConnections:ne,ListConnectionProfiles:ge,ListConnections:re,ListPlugins:yn,LoadConnections:pn,Mutate:fe,NativeQuery:pe,OpenSourceView:Re,RefreshConnectionMetadata:ue,RefreshSourceView:Fe,RemoveConnection:De,ResetConnectionProfile:Be,ResolveReference:gn,ResolveRelationships:Dn,ResolveTarget:he,RetryConnectionSources:Ne,SaveConnectionProfile:$e,ScopeValues:Me,StartConnection:oe,StopConnection:ie,StreamAction:we,SyncSourceView:Ae},Symbol.toStringTag,{value:"Module"})),D="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";function Le(e,t,r,c,l){return n.ByName(`${D}.GetRelated`,e,t,r,c,l)}function bn(e,t,r,c,l){return n.ByName(`${D}.GetRelationshipChain`,e,t,r,c,l)}function je(e,t,r,c){return n.ByName(`${D}.GetDependencyTree`,e,t,r,c)}function Ee(e,t,r,c,l){return n.ByName(`${D}.GetSubgraph`,e,t,r,c,l)}const Gn=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:je,GetRelated:Le,GetRelationshipChain:bn,GetSubgraph:Ee},Symbol.toStringTag,{value:"Module"}));class R{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=wn;let c=typeof t=="string"?JSON.parse(t):t;return"snapshot"in c&&(c.snapshot=r(c.snapshot)),new R(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=Cn,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 wn=$.createFrom,Cn=I.createFrom;var m=function e(...t){return m===e&&(m=Rn),m(...t)};const vn=u.Category.createFrom,Rn=o.Map(o.Any,vn);function ke(e,t){return n.ByID(1766083910,e,t).then(r=>An(r))}function Ve(e){return n.ByID(3969198041,e).then(t=>Fn(t))}function He(e,t,r){return n.ByID(3964153809,e,t,r).then(c=>On(c))}const An=R.createFrom,Fn=$.createFrom,On=u.ValidationResult.createFrom,_n=Object.freeze(Object.defineProperty({__proto__:null,Commit:ke,GetSnapshot:Ve,Validate:He},Symbol.toStringTag,{value:"Module"}));function Nn(e){return n.ByID(2106300110,e).then(t=>Ln(t))}function Je(e){return n.ByID(765209827,e).then(t=>jn(t))}function Mn(e){return n.ByID(2355436169,e).then(t=>ze(t))}const qe=u.ResourceComponent.createFrom,ze=o.Array(qe),Ln=o.Map(o.Any,ze),jn=o.Nullable(qe),En=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:Nn,GetResourceAreaComponent:Je,GetResourceComponents:Mn},Symbol.toStringTag,{value:"Module"}));function xe(e){return n.ByID(2776241946,e)}function kn(e){return n.ByID(1474987050,e).then(t=>A(t))}function Vn(e){return n.ByID(3156347865,e).then(t=>Wn(t))}function Hn(e){return n.ByID(1444002509,e)}function Jn(){return n.ByID(3104582886).then(e=>Kn(e))}function qn(){return n.ByID(2249742267).then(e=>Xn(e))}function zn(e,t){return n.ByID(1212190993,e,t)}function xn(e,t){return n.ByID(2177127885,e,t).then(r=>A(r))}const Un=u.LogSession.createFrom,A=o.Nullable(Un),Qn=u.Handler$1.createFrom,Wn=o.Array(Qn),Kn=o.Array(o.Any),Xn=o.Array(A);function Ue(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession",e,t,p(r,[e,t]))}const Yn=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:xe,CreateSession:Ue,GetSession:kn,GetSupportedResources:Vn,HasPlugin:Hn,ListPlugins:Jn,ListSessions:qn,SendCommand:zn,UpdateSessionOptions:xn},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=er;let c=typeof t=="string"?JSON.parse(t):t;return"handlers"in c&&(c.handlers=r(c.handlers)),new F(c)}}const Zn=u.Handler$2.createFrom,er=o.Array(Zn);function Qe(){return n.ByID(3919346639).then(e=>Xe(e))}function We(e){return n.ByID(3953821778,e).then(t=>Xe(t))}function tr(e){return n.ByID(1815388456,e)}function nr(){return n.ByID(2730149903).then(e=>or(e))}function Ke(e){return n.ByID(3994236150,e)}const rr=F.createFrom,Xe=o.Array(rr),or=o.Array(o.Any);u.QueryResponse.createFrom;const O="github.com/omniviewdev/omniview/backend/pkg/plugin/metric.ServiceWrapper";function ir(e,t,r){return n.ByName(`${O}.Query`,e,t,p(r,[e,t]))}function Ye(e,t){return n.ByName(`${O}.QueryAll`,e,p(t,[e]))}function Ze(e,t,r){return n.ByName(`${O}.Subscribe`,e,t,p(r,[e,t]))}const cr=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:Qe,GetProvidersForResource:We,HasPlugin:tr,ListPlugins:nr,Query:ir,QueryAll:Ye,Subscribe:Ze,Unsubscribe:Ke},Symbol.toStringTag,{value:"Module"}));function sr(e,t){return n.ByID(3653639550,e,t)}function et(e,t){return n.ByID(851823419,e,t)}function ur(e){return n.ByID(2991415449,e).then(t=>ar(t))}function tt(e,t,r){return n.ByID(2695679023,e,t,r)}const ar=o.Array(o.Any),lr=Object.freeze(Object.defineProperty({__proto__:null,Delete:sr,Get:et,Keys:ur,Set:tt},Symbol.toStringTag,{value:"Module"}));function yr(e){return n.ByID(584261046,e)}function pr(e){return n.ByID(3098255555,e)}function fr(e){return n.ByID(903698361,e)}function Sr(e,t,r){return n.ByID(1235170530,e,t,r).then(c=>wr(c))}function nt(e){return n.ByID(3199298309,e)}function hr(){return n.ByID(2119827301).then(e=>Cr(e))}function dr(e){return n.ByID(2822783534,e).then(t=>ot(t))}function gr(){return n.ByID(1563865534)}function $r(){return n.ByID(914742443).then(e=>Rr(e))}function mr(){return n.ByID(3392737293).then(e=>Ar(e))}function Br(e,t,r){return n.ByID(1474486628,e,t,r)}function Dr(e,t,r){return n.ByID(2366942716,e,t,r)}function Ir(e){return n.ByID(4008581935,e)}function rt(e){return n.ByID(520255202,e)}function Pr(e,t,r){return n.ByID(958877691,e,t,r)}function Tr(e,t,r){return n.ByID(1772958861,e,t,r)}function br(e,t,r){return n.ByID(728919203,e,t,r)}function Gr(e,t){return n.ByID(1547965995,e,t)}const wr=u.DropResult.createFrom,Cr=u.SettingsState.createFrom,ot=o.Map(o.Any,o.Any),vr=u.Info.createFrom,Rr=o.Array(vr),Ar=o.Map(o.Any,ot),Fr=Object.freeze(Object.defineProperty({__proto__:null,BeginDrag:yr,CancelDrag:pr,Close:fr,EndDrag:Sr,Focus:nt,GetSettingsState:hr,GetState:dr,HideSettings:gr,List:$r,ListStates:mr,MoveDrag:Br,MoveToPointer:Dr,Open:Ir,OpenSettings:rt,ReportViewport:Pr,RespondDrop:Tr,SaveState:br,SetSettingsLocation:Gr},Symbol.toStringTag,{value:"Module"}));exports.Action=Se;exports.AttachStreamAction=Ce;exports.CancelStreamAction=ve;exports.Catalog=ae;exports.CheckConnection=ee;exports.ClosePortForwardSession=z;exports.CloseSession=xe;exports.CloseSourceView=Oe;exports.Commit=ke;exports.CreateSession=J;exports.CreateSession$1=Ue;exports.Enumerate=ye;exports.FindPortForwardSessions=x;exports.Focus=nt;exports.Get=et;exports.Get$1=le;exports.GetActions=Ge;exports.GetAllConnectionStates=de;exports.GetConnection=te;exports.GetConnectionMetadata=se;exports.GetDependencyTree=je;exports.GetEditorSchemaDocument=be;exports.GetEditorSchemas=Te;exports.GetHandler=E;exports.GetNativeTerminalSupport=k;exports.GetPluginMeta=K;exports.GetProviders=Qe;exports.GetProvidersForResource=We;exports.GetRelated=Le;exports.GetResourceAreaComponent=Je;exports.GetResourceGroups=Ie;exports.GetSchemaFields=Pe;exports.GetSnapshot=Ve;exports.GetSourceStates=_e;exports.GetSubgraph=Ee;exports.ImportConnectionProfile=me;exports.ListAllConnections=ne;exports.ListAllPortForwardSessions=U;exports.ListConnectionProfiles=ge;exports.ListConnections=re;exports.Mutate=fe;exports.NativeQuery=pe;exports.OpenNativeSession=q;exports.OpenSettings=rt;exports.OpenSourceView=Re;exports.QueryAll=Ye;exports.RefreshConnectionMetadata=ue;exports.RefreshSourceView=Fe;exports.RemoveConnection=De;exports.ResetConnectionProfile=Be;exports.ResolveTarget=he;exports.RetryConnectionSources=Ne;exports.RetryFailedPlugin=X;exports.SaveConnectionProfile=$e;exports.ScopeValues=Me;exports.Set=tt;exports.StartConnection=oe;exports.StartResourcePortForwardingSession=W;exports.StopConnection=ie;exports.StreamAction=we;exports.Subscribe=Ze;exports.SyncSourceView=Ae;exports.Unsubscribe=Ke;exports.Validate=He;exports.binding=_n;exports.client=Tn;exports.exec=Pt;exports.graphClient=Gn;exports.logs=Yn;exports.metric=cr;exports.networker=Rt;exports.service=Fr;exports.servicewrapper=lr;exports.servicewrapper$1=an;exports.servicewrapper$2=En;
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.24.0",
5
+ "version": "0.26.0",
6
6
  "description": "Runtime shared library for Omniview",
7
7
  "sideEffects": false,
8
8
  "type": "module",
@@ -1 +0,0 @@
1
- "use strict";const a=require("./index-BVi9X4oU.cjs");class fe{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 fe(n)}}class he{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 he(n)}}let U=class ke{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=H,i=_;let s=typeof e=="string"?JSON.parse(e):e;return"paths"in s&&(s.paths=n(s.paths)),"selectors"in s&&(s.selectors=i(s.selectors)),new ke(s)}},ze=class Be{plugin;resource;target_builder;default_command;supports_native_command;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new U),"default_command"in e||(this.default_command=[]),"supports_native_command"in e||(this.supports_native_command=!1),Object.assign(this,e)}static createFrom(e={}){const n=Qe,i=H;let s=typeof e=="string"?JSON.parse(e):e;return"target_builder"in s&&(s.target_builder=n(s.target_builder)),"default_command"in s&&(s.default_command=i(s.default_command)),new Be(s)}};class q{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=_,s=H;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=s(r.command)),new q(r)}}class D{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=_,s=et,r=it,pe=H;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=s(o.reference)),"route"in o&&(o.route=r(o.route)),"command"in o&&(o.command=pe(o.command)),new D(o)}}const H=a.Array(a.Any),_=a.Map(a.Any,a.Any),Qe=U.createFrom,$e=he.createFrom,et=a.Nullable($e),tt=fe.createFrom,it=a.Nullable(tt),nt=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:U,Handler:ze,Session:q,SessionOptions:D},Symbol.toStringTag,{value:"Module"}));class G{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 G(n)}}var me=(t=>(t.$zero="",t.PortForwardConnectionTypeResource="RESOURCE",t.PortForwardConnectionTypeStatic="STATIC",t))(me||{}),ge=(t=>(t.$zero="",t.PortForwardProtocolTCP="TCP",t.PortForwardProtocolUDP="UDP",t))(ge||{});class Z{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 d),"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=st,i=at;let s=typeof e=="string"?JSON.parse(e):e;return"labels"in s&&(s.labels=n(s.labels)),"encryption"in s&&(s.encryption=i(s.encryption)),new Z(s)}}class d{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 d(n)}}var _e=(t=>(t.$zero="",t.SessionStateActive="ACTIVE",t.SessionStatePaused="PAUSED",t.SessionStateStopped="STOPPED",t.SessionStateFailed="FAILED",t))(_e||{});const st=a.Map(a.Any,a.Any),at=d.createFrom,rt=Object.freeze(Object.defineProperty({__proto__:null,FindPortForwardSessionRequest:G,PortForwardConnectionType:me,PortForwardProtocol:ge,PortForwardSession:Z,PortForwardSessionEncryption:d,SessionState:_e},Symbol.toStringTag,{value:"Module"}));class L{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=We;let i=typeof e=="string"?JSON.parse(e):e;return"tags"in i&&(i.tags=n(i.tags)),new L(i)}}class M{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 M(n)}}class V{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=ot;let i=typeof e=="string"?JSON.parse(e):e;return"daily_stats"in i&&(i.daily_stats=n(i.daily_stats)),new V(i)}}class Y{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 Y(n)}}class X{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=We;let i=typeof e=="string"?JSON.parse(e):e;return"capabilities"in i&&(i.capabilities=n(i.capabilities)),new X(i)}}const We=a.Array(a.Any),lt=M.createFrom,ot=a.Array(lt),ct=Object.freeze(Object.defineProperty({__proto__:null,AvailablePlugin:L,DailyStat:M,DownloadStats:V,Review:Y,VersionInfo:X},Symbol.toStringTag,{value:"Module"}));class y{operations;resource_types;constructor(e={}){"operations"in e||(this.operations=[]),"resource_types"in e||(this.resource_types=[]),Object.assign(this,e)}static createFrom(e={}){const n=c,i=c;let s=typeof e=="string"?JSON.parse(e):e;return"operations"in s&&(s.operations=n(s.operations)),"resource_types"in s&&(s.resource_types=i(s.resource_types)),new y(s)}}class b{plugin;operations;resource_types;constructor(e={}){"plugin"in e||(this.plugin=""),"operations"in e||(this.operations=[]),"resource_types"in e||(this.resource_types=[]),Object.assign(this,e)}static createFrom(e={}){const n=c,i=c;let s=typeof e=="string"?JSON.parse(e):e;return"operations"in s&&(s.operations=n(s.operations)),"resource_types"in s&&(s.resource_types=i(s.resource_types)),new b(s)}}class S{connections;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=pt;let i=typeof e=="string"?JSON.parse(e):e;return"connections"in i&&(i.connections=n(i.connections)),new S(i)}}class F{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 F(n)}}var ye=(t=>(t.$zero="",t.PluginComponentAreaEditor="EDITOR",t.PluginComponentAreaSidebar="SIDEBAR",t))(ye||{});class p{resource;constructor(e={}){"resource"in e||(this.resource=[]),Object.assign(this,e)}static createFrom(e={}){const n=ht;let i=typeof e=="string"?JSON.parse(e):e;return"resource"in i&&(i.resource=n(i.resource)),new p(i)}}class O{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 O(n)}}class f{id;version;name;icon;icon_url;description;repository;website;category;license;author;maintainers;tags;dependencies;capabilities;theme;components;schema_version;sdk_protocol_version;exports;requires;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 h),"components"in e||(this.components=new p),"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=gt,i=yt,s=c,r=c,pe=c,o=bt,Ve=St,Ye=Ot,Xe=wt,Ke=Tt;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=s(l.tags)),"dependencies"in l&&(l.dependencies=r(l.dependencies)),"capabilities"in l&&(l.capabilities=pe(l.capabilities)),"theme"in l&&(l.theme=o(l.theme)),"components"in l&&(l.components=Ve(l.components)),"exports"in l&&(l.exports=Ye(l.exports)),"requires"in l&&(l.requires=Xe(l.requires)),"state_isolation"in l&&(l.state_isolation=Ke(l.state_isolation)),new f(l)}}class u{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=c;let i=typeof e=="string"?JSON.parse(e):e;return"resources"in i&&(i.resources=n(i.resources)),new u(i)}}class h{colors;constructor(e={}){"colors"in e||(this.colors=new m),Object.assign(this,e)}static createFrom(e={}){const n=Nt;let i=typeof e=="string"?JSON.parse(e):e;return"colors"in i&&(i.colors=n(i.colors)),new h(i)}}class m{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 m(n)}}class w{connections;constructor(e={}){"connections"in e||(this.connections=[]),Object.assign(this,e)}static createFrom(e={}){const n=At;let i=typeof e=="string"?JSON.parse(e):e;return"connections"in i&&(i.connections=n(i.connections)),new w(i)}}class v{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 v(n)}}const c=a.Array(a.Any),dt=y.createFrom,pt=a.Nullable(dt),ft=u.createFrom,ht=a.Array(ft),mt=F.createFrom,gt=a.Nullable(mt),_t=O.createFrom,yt=a.Array(_t),bt=h.createFrom,St=p.createFrom,Ft=S.createFrom,Ot=a.Nullable(Ft),ut=w.createFrom,wt=a.Nullable(ut),vt=v.createFrom,Tt=a.Nullable(vt),Nt=m.createFrom,jt=b.createFrom,At=a.Array(jt),Jt=Object.freeze(Object.defineProperty({__proto__:null,ConnectionExport:y,ConnectionRequirement:b,ExportsSpec:S,PluginAuthor:F,PluginComponentArea:ye,PluginComponents:p,PluginMaintainer:O,PluginMeta:f,PluginResourceComponent:u,PluginTheme:h,PluginThemeColors:m,RequiresSpec:w,StateIsolationProvenance:v},Symbol.toStringTag,{value:"Module"}));var T=(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))(T||{});const Pt=Object.freeze(Object.defineProperty({__proto__:null,Duration:T},Symbol.toStringTag,{value:"Module"}));var Ue=(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))(Ue||{});class K{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 N),"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=T.$zero),"Client"in e||(this.Client=null),Object.assign(this,e)}static createFrom(e={}){const n=xe,i=xe,s=It;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=s(r.lifecycle)),new K(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=Ct;let i=typeof e=="string"?JSON.parse(e):e;return"triggers"in i&&(i.triggers=n(i.triggers)),new Q(i)}}var qe=(t=>(t.$zero="",t.ConnectionAutoConnectRetryNone="NONE",t.ConnectionAutoConnectRetryOnChange="ON_CHANGE",t))(qe||{}),De=(t=>(t.$zero="",t.ConnectionAutoConnectTriggerPluginStart="PLUGIN_START",t.ConnectionAutoConnectTriggerConnectionDiscovered="CONNECTION_DISCOVERED",t))(De||{});class N{auto_connect;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=Rt;let i=typeof e=="string"?JSON.parse(e):e;return"auto_connect"in i&&(i.auto_connect=n(i.auto_connect)),new N(i)}}class be{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=kt;let i=typeof e=="string"?JSON.parse(e):e;return"connection"in i&&(i.connection=n(i.connection)),new be(i)}}var He=(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))(He||{});class Se{id;metadata;phase;enabled;devMode;devPath;capabilities;lastError;constructor(e={}){"id"in e||(this.id=""),"metadata"in e||(this.metadata=new f),"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=zt,i=Bt;let s=typeof e=="string"?JSON.parse(e):e;return"metadata"in s&&(s.metadata=n(s.metadata)),"capabilities"in s&&(s.capabilities=i(s.capabilities)),new Se(s)}}const xe=a.Map(a.Any,a.Any),It=N.createFrom,Ct=a.Array(a.Any),Et=Q.createFrom,Rt=a.Nullable(Et),xt=K.createFrom,kt=a.Nullable(xt),zt=f.createFrom,Bt=a.Array(a.Any);class ${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=Ut;let i=typeof e=="string"?JSON.parse(e):e;return"settings"in i&&(i.settings=n(i.settings)),new $(i)}}class j{id;label;description;type;value;default;options;fileSelection;sensitive;devOnly;requiresRestart;pendingRestart;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),"requiresRestart"in e||(this.requiresRestart=!1),"pendingRestart"in e||(this.pendingRestart=!1),Object.assign(this,e)}static createFrom(e={}){const n=Dt,i=Gt;let s=typeof e=="string"?JSON.parse(e):e;return"options"in s&&(s.options=n(s.options)),"fileSelection"in s&&(s.fileSelection=i(s.fileSelection)),new j(s)}}class A{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=Zt;let i=typeof e=="string"?JSON.parse(e):e;return"extensions"in i&&(i.extensions=n(i.extensions)),new A(i)}}class J{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 J(n)}}var Fe=(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))(Fe||{});class ee{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 ee(n)}}const Wt=j.createFrom,Ut=a.Map(a.Any,Wt),qt=J.createFrom,Dt=a.Array(qt),Ht=A.createFrom,Gt=a.Nullable(Ht),Zt=a.Array(a.Any),Lt=Object.freeze(Object.defineProperty({__proto__:null,Category:$,Setting:j,SettingFileSelection:A,SettingOption:J,SettingType:Fe,ValidationResult:ee},Symbol.toStringTag,{value:"Module"}));class te{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 te(n)}}class ie{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 ie(n)}}class ne{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 ne(n)}}class se{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 se(n)}}var Oe=(t=>(t.$zero="",t.ResourceComponentAreaSidebar="SIDEBAR",t.ResourceComponentAreaTable="TABLE",t))(Oe||{});const Mt=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponentsInput:te,GetResourceAreaComponentInput:ie,GetResourceComponentsInput:ne,ResourceComponent:se,ResourceComponentArea:Oe},Symbol.toStringTag,{value:"Module"}));class P{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=Vt,i=ve;let s=typeof e=="string"?JSON.parse(e):e;return"paths"in s&&(s.paths=n(s.paths)),"selectors"in s&&(s.selectors=i(s.selectors)),new P(s)}}let Ge=class Ze{plugin;resource;target_builder;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new P),Object.assign(this,e)}static createFrom(e={}){const n=Yt;let i=typeof e=="string"?JSON.parse(e):e;return"target_builder"in i&&(i.target_builder=n(i.target_builder)),new Ze(i)}};class ae{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 g),"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=Xt,i=Qt;let s=typeof e=="string"?JSON.parse(e):e;return"options"in s&&(s.options=n(s.options)),"active_sources"in s&&(s.active_sources=i(s.active_sources)),new ae(s)}}class g{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=ve;let i=typeof e=="string"?JSON.parse(e):e;return"params"in i&&(i.params=n(i.params)),new g(i)}}var ue=(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))(ue||{});class I{id;labels;constructor(e={}){"id"in e||(this.id=""),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ve;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new I(i)}}var we=(t=>(t[t.$zero=0]="$zero",t[t.StreamCommandPause=0]="StreamCommandPause",t[t.StreamCommandResume=1]="StreamCommandResume",t[t.StreamCommandClose=2]="StreamCommandClose",t))(we||{});const Vt=a.Array(a.Any),ve=a.Map(a.Any,a.Any),Yt=P.createFrom,Xt=g.createFrom,Kt=I.createFrom,Qt=a.Array(Kt),$t=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:P,Handler:Ge,LogSession:ae,LogSessionOptions:g,LogSessionStatus:ue,LogSource:I,LogStreamCommand:we},Symbol.toStringTag,{value:"Module"}));class C{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=T.$zero),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=oe;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new C(i)}}class E{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 E(n)}}class R{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=oe;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new R(i)}}class x{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=oe;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new x(i)}}class re{resource;metrics;constructor(e={}){"resource"in e||(this.resource=""),"metrics"in e||(this.metrics=[]),Object.assign(this,e)}static createFrom(e={}){const n=ti;let i=typeof e=="string"?JSON.parse(e):e;return"metrics"in i&&(i.metrics=n(i.metrics)),new re(i)}}class k{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=ni,i=si;let s=typeof e=="string"?JSON.parse(e):e;return"color_ranges"in s&&(s.color_ranges=n(s.color_ranges)),"supported_shapes"in s&&(s.supported_shapes=i(s.supported_shapes)),new k(s)}}class z{time_series;current_value;aggregate_value;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=ri,i=oi,s=di;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=s(r.aggregate_value)),new z(r)}}var Te=(t=>(t[t.$zero=0]="$zero",t[t.ShapeCurrent=0]="ShapeCurrent",t[t.ShapeTimeseries=1]="ShapeTimeseries",t[t.ShapeAggregate=2]="ShapeAggregate",t))(Te||{}),Ne=(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))(Ne||{});class le{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=fi;let i=typeof e=="string"?JSON.parse(e):e;return"results"in i&&(i.results=n(i.results)),new le(i)}}class B{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=mi,i=oe;let s=typeof e=="string"?JSON.parse(e):e;return"data_points"in s&&(s.data_points=n(s.data_points)),"labels"in s&&(s.labels=i(s.labels)),new B(s)}}const oe=a.Map(a.Any,a.Any),ei=k.createFrom,ti=a.Array(ei),ii=E.createFrom,ni=a.Array(ii),si=a.Array(a.Any),ai=B.createFrom,ri=a.Nullable(ai),li=R.createFrom,oi=a.Nullable(li),ci=C.createFrom,di=a.Nullable(ci),pi=z.createFrom,fi=a.Array(pi),hi=x.createFrom,mi=a.Array(hi),gi=Object.freeze(Object.defineProperty({__proto__:null,AggregateValue:C,ColorRange:E,CurrentValue:R,DataPoint:x,Handler:re,MetricDescriptor:k,MetricResult:z,MetricShape:Te,MetricUnit:Ne,QueryResponse:le,TimeSeries:B},Symbol.toStringTag,{value:"Module"}));class je{sessionId;sourceWindow;dragType;payload;constructor(e={}){"sessionId"in e||(this.sessionId=""),"sourceWindow"in e||(this.sourceWindow=""),"dragType"in e||(this.dragType=""),"payload"in e||(this.payload=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new je(n)}}class Ae{sessionId;sourceWindow;dragType;constructor(e={}){"sessionId"in e||(this.sessionId=""),"sourceWindow"in e||(this.sourceWindow=""),"dragType"in e||(this.dragType=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Ae(n)}}class Je{sessionId;constructor(e={}){"sessionId"in e||(this.sessionId=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Je(n)}}class Pe{sessionId;targetWindow;constructor(e={}){"sessionId"in e||(this.sessionId=""),"targetWindow"in e||(this.targetWindow=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Pe(n)}}class Ie{sessionId;targetWindow;payload;clientX;clientY;constructor(e={}){"sessionId"in e||(this.sessionId=""),"targetWindow"in e||(this.targetWindow=""),"payload"in e||(this.payload=""),"clientX"in e||(this.clientX=0),"clientY"in e||(this.clientY=0),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Ie(n)}}class ce{accepted;targetWindow;targetInstanceId;constructor(e={}){"accepted"in e||(this.accepted=!1),"targetWindow"in e||(this.targetWindow=""),"targetInstanceId"in e||(this.targetInstanceId=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new ce(n)}}class W{name;kind;focused;constructor(e={}){"name"in e||(this.name=""),"kind"in e||(this.kind=""),"focused"in e||(this.focused=!1),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new W(n)}}var Le=(t=>(t.$zero="",t.KindWorkspace="workspace",t.KindPanel="panel",t.KindSettings="settings",t))(Le||{});class Ce{kind;initialState;anchorWindow;clientX;clientY;hasPosition;width;height;constructor(e={}){"kind"in e||(this.kind=""),"initialState"in e||(this.initialState={}),"anchorWindow"in e||(this.anchorWindow=""),"clientX"in e||(this.clientX=0),"clientY"in e||(this.clientY=0),"hasPosition"in e||(this.hasPosition=!1),"width"in e||(this.width=0),"height"in e||(this.height=0),Object.assign(this,e)}static createFrom(e={}){const n=Me;let i=typeof e=="string"?JSON.parse(e):e;return"initialState"in i&&(i.initialState=n(i.initialState)),new Ce(i)}}class de{requestId;target;visible;constructor(e={}){"requestId"in e||(this.requestId=0),"target"in e||(this.target=""),"visible"in e||(this.visible=!1),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new de(n)}}class Ee{name;kind;states;constructor(e={}){"name"in e||(this.name=""),"kind"in e||(this.kind=""),"states"in e||(this.states={}),Object.assign(this,e)}static createFrom(e={}){const n=Me;let i=typeof e=="string"?JSON.parse(e):e;return"states"in i&&(i.states=n(i.states)),new Ee(i)}}class Re{windows;constructor(e={}){"windows"in e||(this.windows=[]),Object.assign(this,e)}static createFrom(e={}){const n=yi;let i=typeof e=="string"?JSON.parse(e):e;return"windows"in i&&(i.windows=n(i.windows)),new Re(i)}}const Me=a.Map(a.Any,a.Any),_i=W.createFrom,yi=a.Array(_i),bi=Object.freeze(Object.defineProperty({__proto__:null,DragBegin:je,DragBeginEvent:Ae,DragEndEvent:Je,DragLeaveEvent:Pe,DragPointerEvent:Ie,DropResult:ce,Info:W,Kind:Le,OpenRequest:Ce,SettingsState:de,WindowClosedEvent:Ee,WindowsChangedEvent:Re},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=U;exports.AggregateValue=C;exports.AvailablePlugin=L;exports.Capability=Ue;exports.Category=$;exports.ColorRange=E;exports.Connection=K;exports.ConnectionAutoConnect=Q;exports.ConnectionAutoConnectRetry=qe;exports.ConnectionAutoConnectTrigger=De;exports.ConnectionExport=y;exports.ConnectionLifecycle=N;exports.ConnectionRequirement=b;exports.ConnectionStatus=be;exports.ConnectionStatusCode=He;exports.CurrentValue=R;exports.DataPoint=x;exports.DownloadStats=V;exports.DropResult=ce;exports.Duration=T;exports.ExportsSpec=S;exports.FindPortForwardSessionRequest=G;exports.GetPluginComponentsInput=te;exports.GetResourceAreaComponentInput=ie;exports.GetResourceComponentsInput=ne;exports.Handler=ze;exports.Handler$1=Ge;exports.Handler$2=re;exports.Info=W;exports.LogSession=ae;exports.LogSessionOptions=g;exports.LogSessionStatus=ue;exports.LogSource=I;exports.LogStreamCommand=we;exports.MetricDescriptor=k;exports.MetricResult=z;exports.MetricShape=Te;exports.MetricUnit=Ne;exports.PluginAuthor=F;exports.PluginComponentArea=ye;exports.PluginComponents=p;exports.PluginInfo=Se;exports.PluginMaintainer=O;exports.PluginMeta=f;exports.PluginResourceComponent=u;exports.PluginTheme=h;exports.PluginThemeColors=m;exports.PortForwardConnectionType=me;exports.PortForwardProtocol=ge;exports.PortForwardSession=Z;exports.PortForwardSessionEncryption=d;exports.QueryResponse=le;exports.RequiresSpec=w;exports.ResourceComponent=se;exports.ResourceComponentArea=Oe;exports.Review=Y;exports.Session=q;exports.SessionOptions=D;exports.SessionState=_e;exports.Setting=j;exports.SettingFileSelection=A;exports.SettingOption=J;exports.SettingType=Fe;exports.SettingsState=de;exports.StateIsolationProvenance=v;exports.TimeSeries=B;exports.ValidationResult=ee;exports.VersionInfo=X;exports.models=Jt;exports.models$1=nt;exports.models$2=$t;exports.models$3=gi;exports.models$4=rt;exports.models$5=ct;exports.models$6=Lt;exports.models$7=Pt;exports.models$8=Mt;exports.models$9=bi;
@@ -1 +0,0 @@
1
- "use strict";const o=require("./index-BVi9X4oU.cjs"),u=require("./models-B3B5AdrM.cjs"),n=require("./calls-B-HP1Icv.cjs");function p(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,ot=0,M=0;const L=[],f=s=>{for(let y=0;y<s.length;y++){const a=s.charCodeAt(y);let S=a<128?1:a<2048?2:3;if(a>=55296&&a<=56319){const d=s.charCodeAt(++y);if(!(d>=56320&&d<=57343))throw new TypeError("Invalid Unicode");S=4}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode");if(_+=S,N+=a===34||a===92?2:S,_>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 S=s.charCodeAt(++y);if(!(S>=56320&&S<=57343))throw new TypeError("Invalid Unicode")}else if(a>=56320&&a<=57343)throw new TypeError("Invalid Unicode")}f(JSON.stringify(s))},P=(s,y)=>{if(++ot>262144||y>64)throw new RangeError("Request JSON structural limit");if(s===null){f("null");return}if(typeof s=="string"){j(s);return}if(typeof s=="boolean"){f(s?"true":"false");return}if(typeof s=="number"){if(!Number.isFinite(s))throw new TypeError("Request numbers must be finite");f(Object.is(s,-0)?"-0":JSON.stringify(s));return}if(Array.isArray(s)){f("[");for(let a=0;a<s.length;a++){if(++M>1048576)throw new RangeError("Request JSON field limit");a&&f(","),P(s[a],y+1)}f("]");return}if(typeof s=="object"){f("{");let a=!0;for(const[S,d]of Object.entries(s))if(d!==void 0){if(++M>1048576)throw new RangeError("Request JSON field limit");a||f(","),a=!1,j(S),f(":"),P(d,y+1)}f("}");return}throw new TypeError("Unsupported request JSON value")};return P(e,0),L.join("")}function it(e){return n.ByID(93318075,e).then(t=>(t[0]=g(t[0]),t[1]=o.ByteSlice(t[1]),t))}function ct(e){return n.ByID(1353297556,e)}function st(e){return n.ByID(4182196712,e).then(t=>g(t))}function ut(e){return n.ByID(3993344525,e).then(t=>g(t))}function k(e,t){return n.ByID(1779192716,e,t).then(r=>$t(r))}function at(){return n.ByID(4033362541).then(e=>mt(e))}function E(){return n.ByID(3434119522)}function lt(e){return n.ByID(2619212338,e).then(t=>H(t))}function yt(e){return n.ByID(1371268636,e).then(t=>g(t))}function pt(e){return n.ByID(3881019319,e)}function ft(){return n.ByID(3006426324).then(e=>Bt(e))}function St(){return n.ByID(265791345).then(e=>Dt(e))}function ht(e,t,r){return n.ByID(1492965384,e,t,r)}function dt(e,t){return n.ByID(486465741,e,t)}const gt=u.Session.createFrom,g=o.Nullable(gt),V=u.Handler.createFrom,$t=o.Nullable(V),H=o.Map(o.Any,V),mt=o.Map(o.Any,H),Bt=o.Array(o.Any),Dt=o.Array(g);function J(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession",e,t,p(r,[e,t])).then(c=>c===null?null:u.Session.createFrom(c))}function q(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.OpenNativeSession",e,t,p(r,[e,t]))}const It=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:it,CloseSession:ct,CreateSession:J,CreateTerminal:st,DetachSession:ut,GetHandler:k,GetHandlers:at,GetNativeTerminalSupport:E,GetPluginHandlers:lt,GetSession:yt,HasPlugin:pt,ListPlugins:ft,ListSessions:St,OpenNativeSession:q,ResizeSession:ht,WriteSession:dt},Symbol.toStringTag,{value:"Module"}));function z(e){return n.ByID(182596922,e).then(t=>T(t))}function x(e,t,r){return n.ByID(981100722,e,t,r).then(c=>b(c))}function Pt(e){return n.ByID(2157304970,e).then(t=>T(t))}function Tt(e){return n.ByID(650882,e).then(t=>Q(t))}function bt(e){return n.ByID(3624690437,e)}function U(){return n.ByID(2195697754).then(e=>b(e))}function wt(){return n.ByID(167463150).then(e=>Q(e))}function Ct(e,t){return n.ByID(2090415403,e,t).then(r=>b(r))}const Gt=u.PortForwardSession.createFrom,T=o.Nullable(Gt),b=o.Array(T),Q=o.Array(o.Any);function W(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/networker.ServiceWrapper.StartResourcePortForwardingSession",e,t,p(r,[e,t]))}const vt=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:z,FindPortForwardSessions:x,GetPortForwardSession:Pt,GetSupportedPortForwardTargets:Tt,HasPlugin:bt,ListAllPortForwardSessions:U,ListPlugins:wt,ListPortForwardSessions:Ct,StartResourcePortForwardingSession:W},Symbol.toStringTag,{value:"Module"}));class w{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 w(r)}}function Rt(e){return n.ByID(3150413499,e).then(t=>h(t))}function At(e){return n.ByID(1152913314,e).then(t=>Xt(t))}function K(e){return n.ByID(111194374,e).then(t=>C(t))}function Ft(){return n.ByID(1083754477).then(e=>Zt(e))}function Ot(e){return n.ByID(3945933305,e)}function _t(e){return n.ByID(2859775056,e).then(t=>Y(t))}function Nt(e,t){return n.ByID(2209599792,e,t).then(r=>nn(r))}function Mt(e){return n.ByID(3963363730,e).then(t=>Y(t))}function Lt(e){return n.ByID(1357029266,e).then(t=>h(t))}function jt(){return n.ByID(2477486666).then(e=>B(e))}function kt(){return n.ByID(976517756).then(e=>B(e))}function Et(e){return n.ByID(1020548995,e).then(t=>B(t))}function Vt(e,t){return n.ByID(2004740384,e,t).then(r=>B(r))}function Ht(){return n.ByID(873697101).then(e=>Z(e))}function Jt(){return n.ByID(637134283).then(e=>on(e))}function qt(){return n.ByID(550607756).then(e=>cn(e))}function zt(e,t){return n.ByID(288660195,e,t).then(r=>h(r))}function xt(e){return n.ByID(1771013494,e).then(t=>h(t))}function X(e){return n.ByID(2433379724,e).then(t=>h(t))}function Ut(e,t,r){return n.ByID(2783597264,e,t,r).then(c=>Z(c))}function Qt(e){return n.ByID(1369550929,e).then(t=>h(t))}function Wt(e){return n.ByID(3828800061,e).then(t=>h(t))}const h=u.PluginInfo.createFrom,Kt=u.DownloadStats.createFrom,Xt=o.Nullable(Kt),C=u.PluginMeta.createFrom,Yt=w.createFrom,Zt=o.Array(Yt),en=u.VersionInfo.createFrom,Y=o.Array(en),tn=u.Review.createFrom,nn=o.Array(tn),B=o.Nullable(C),rn=u.AvailablePlugin.createFrom,Z=o.Array(rn),on=o.Array(C),cn=o.Array(h),sn=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:Rt,GetPluginDownloadStats:At,GetPluginMeta:K,GetPluginProfilingStatuses:Ft,GetPluginReadme:Ot,GetPluginReleaseHistory:_t,GetPluginReviews:Nt,GetPluginVersions:Mt,InstallDevPluginFromPath:Lt,InstallFromPathPrompt:jt,InstallInDevMode:kt,InstallPluginFromPath:Et,InstallPluginVersion:Vt,ListAvailablePlugins:Ht,ListPluginMetas:Jt,ListPlugins:qt,LoadPlugin:zt,ReloadPlugin:xt,RetryFailedPlugin:X,SearchPlugins:Ut,UninstallPlugin:Qt,UnlinkDevPlugin:Wt},Symbol.toStringTag,{value:"Module"}));function ee(e,t){return n.ByID(1688967279,e,t).then(r=>ce(r))}function te(e,t){return n.ByID(950535743,e,t).then(r=>G(r))}function un(e){return n.ByID(854008408,e)}function ne(){return n.ByID(1598984489).then(e=>yn(e))}function re(e){return n.ByID(1775572154,e).then(t=>v(t))}function an(){return n.ByID(3217612415).then(e=>pn(e))}function ln(e){return n.ByID(2037329938,e).then(t=>v(t))}function oe(e,t){return n.ByID(3276991559,e,t).then(r=>ce(r))}function ie(e,t){return n.ByID(794258089,e,t).then(r=>G(r))}const ce=u.ConnectionStatus.createFrom,G=u.Connection.createFrom,v=o.Array(G),yn=o.Map(o.Any,v),pn=o.Array(o.Any),fn="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";function i(e,...t){return n.ByName(`${fn}.${e}`,...t)}const Sn=e=>i("Features",e),se=(e,t)=>i("GetConnectionMetadata",e,t),ue=(e,t)=>i("RefreshConnectionMetadata",e,t),ae=(e,t)=>i("Catalog",e,t),le=(e,t)=>i("Get",e,t),ye=(e,t)=>i("Enumerate",e,t),pe=(e,t)=>i("NativeQuery",e,p(t,[e])),fe=(e,t)=>i("Mutate",e,p(t,[e])),Se=(e,t)=>i("Action",e,p(t,[e])),he=(e,t)=>i("ResolveTarget",e,t),hn=(e,t)=>i("ResolveReference",e,t),de=(e,t,r)=>i("GetSchemaDocument",e,t,r),ge=()=>i("GetAllConnectionStates"),$e=e=>i("ListConnectionProfiles",e),me=(e,t,r)=>i("SaveConnectionProfile",e,p(t,[e]),r??null),Be=(e,t)=>i("ImportConnectionProfile",e,t),De=(e,t)=>i("ResetConnectionProfile",e,t),Ie=(e,t)=>i("RemoveConnection",e,t),Pe=(e,t)=>i("GetResourceGroups",e,t),dn=(e,t,r)=>i("GetResourceDefinition",e,t,r),Te=(e,t)=>i("GetEditorSchemas",e,t),gn=(e,t,r)=>i("GetRelationships",e,t,r),$n=(e,t)=>i("ResolveRelationships",e,t),mn=(e,t,r)=>i("GetHealth",e,p({request:t,body:r},[e])),Bn=(e,t,r)=>i("GetResourceEvents",e,t,r),be=(e,t,r)=>i("GetActions",e,t,r),we=(e,t)=>i("StreamAction",e,p(t,[e])),Ce=e=>i("AttachStreamAction",e),Ge=e=>i("CancelStreamAction",e),ve=(e,t)=>i("OpenSourceView",e,t),Re=(e,t)=>i("SyncSourceView",e,t),Ae=(e,t)=>i("RefreshSourceView",e,t),Fe=(e,t)=>i("CloseSourceView",e,t),Oe=(e,t)=>i("GetSourceStates",e,t),_e=(e,t)=>i("RetryConnectionSources",e,t),Ne=(e,t,r)=>i("ScopeValues",e,t,r),Dn=Object.freeze(Object.defineProperty({__proto__:null,Action:Se,AttachStreamAction:Ce,CancelStreamAction:Ge,Catalog:ae,CheckConnection:ee,CloseSourceView:Fe,Enumerate:ye,Features:Sn,Get:le,GetActions:be,GetAllConnectionStates:ge,GetConnection:te,GetConnectionMetadata:se,GetEditorSchemas:Te,GetHealth:mn,GetRelationships:gn,GetResourceDefinition:dn,GetResourceEvents:Bn,GetResourceGroups:Pe,GetSchemaDocument:de,GetSourceStates:Oe,HasPlugin:un,ImportConnectionProfile:Be,ListAllConnections:ne,ListConnectionProfiles:$e,ListConnections:re,ListPlugins:an,LoadConnections:ln,Mutate:fe,NativeQuery:pe,OpenSourceView:ve,RefreshConnectionMetadata:ue,RefreshSourceView:Ae,RemoveConnection:Ie,ResetConnectionProfile:De,ResolveReference:hn,ResolveRelationships:$n,ResolveTarget:he,RetryConnectionSources:_e,SaveConnectionProfile:me,ScopeValues:Ne,StartConnection:oe,StopConnection:ie,StreamAction:we,SyncSourceView:Re},Symbol.toStringTag,{value:"Module"})),D="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";function Me(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 Le(e,t,r,c){return n.ByName(`${D}.GetDependencyTree`,e,t,r,c)}function je(e,t,r,c,l){return n.ByName(`${D}.GetSubgraph`,e,t,r,c,l)}const Pn=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:Le,GetRelated:Me,GetRelationshipChain:In,GetSubgraph:je},Symbol.toStringTag,{value:"Module"}));class R{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=Tn;let c=typeof t=="string"?JSON.parse(t):t;return"snapshot"in c&&(c.snapshot=r(c.snapshot)),new R(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=bn,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 Tn=$.createFrom,bn=I.createFrom;var m=function e(...t){return m===e&&(m=Cn),m(...t)};const wn=u.Category.createFrom,Cn=o.Map(o.Any,wn);function ke(e,t){return n.ByID(1766083910,e,t).then(r=>Gn(r))}function Ee(e){return n.ByID(3969198041,e).then(t=>vn(t))}function Ve(e,t,r){return n.ByID(3964153809,e,t,r).then(c=>Rn(c))}const Gn=R.createFrom,vn=$.createFrom,Rn=u.ValidationResult.createFrom,An=Object.freeze(Object.defineProperty({__proto__:null,Commit:ke,GetSnapshot:Ee,Validate:Ve},Symbol.toStringTag,{value:"Module"}));function Fn(e){return n.ByID(2106300110,e).then(t=>_n(t))}function He(e){return n.ByID(765209827,e).then(t=>Nn(t))}function On(e){return n.ByID(2355436169,e).then(t=>qe(t))}const Je=u.ResourceComponent.createFrom,qe=o.Array(Je),_n=o.Map(o.Any,qe),Nn=o.Nullable(Je),Mn=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:Fn,GetResourceAreaComponent:He,GetResourceComponents:On},Symbol.toStringTag,{value:"Module"}));function ze(e){return n.ByID(2776241946,e)}function Ln(e){return n.ByID(1474987050,e).then(t=>A(t))}function jn(e){return n.ByID(3156347865,e).then(t=>xn(t))}function kn(e){return n.ByID(1444002509,e)}function En(){return n.ByID(3104582886).then(e=>Un(e))}function Vn(){return n.ByID(2249742267).then(e=>Qn(e))}function Hn(e,t){return n.ByID(1212190993,e,t)}function Jn(e,t){return n.ByID(2177127885,e,t).then(r=>A(r))}const qn=u.LogSession.createFrom,A=o.Nullable(qn),zn=u.Handler$1.createFrom,xn=o.Array(zn),Un=o.Array(o.Any),Qn=o.Array(A);function xe(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession",e,t,p(r,[e,t]))}const Wn=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:ze,CreateSession:xe,GetSession:Ln,GetSupportedResources:jn,HasPlugin:kn,ListPlugins:En,ListSessions:Vn,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 Ue(){return n.ByID(3919346639).then(e=>Ke(e))}function Qe(e){return n.ByID(3953821778,e).then(t=>Ke(t))}function Yn(e){return n.ByID(1815388456,e)}function Zn(){return n.ByID(2730149903).then(e=>tr(e))}function We(e){return n.ByID(3994236150,e)}const er=F.createFrom,Ke=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,p(r,[e,t]))}function Xe(e,t){return n.ByName(`${O}.QueryAll`,e,p(t,[e]))}function Ye(e,t,r){return n.ByName(`${O}.Subscribe`,e,t,p(r,[e,t]))}const rr=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:Ue,GetProvidersForResource:Qe,HasPlugin:Yn,ListPlugins:Zn,Query:nr,QueryAll:Xe,Subscribe:Ye,Unsubscribe:We},Symbol.toStringTag,{value:"Module"}));function or(e,t){return n.ByID(3653639550,e,t)}function Ze(e,t){return n.ByID(851823419,e,t)}function ir(e){return n.ByID(2991415449,e).then(t=>cr(t))}function et(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:Ze,Keys:ir,Set:et},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=>Tr(c))}function tt(e){return n.ByID(3199298309,e)}function pr(){return n.ByID(2119827301).then(e=>br(e))}function fr(e){return n.ByID(2822783534,e).then(t=>rt(t))}function Sr(){return n.ByID(1563865534)}function hr(){return n.ByID(914742443).then(e=>Cr(e))}function dr(){return n.ByID(3392737293).then(e=>Gr(e))}function gr(e,t,r){return n.ByID(1474486628,e,t,r)}function $r(e,t,r){return n.ByID(2366942716,e,t,r)}function mr(e){return n.ByID(4008581935,e)}function nt(e){return n.ByID(520255202,e)}function Br(e,t,r){return n.ByID(958877691,e,t,r)}function Dr(e,t,r){return n.ByID(1772958861,e,t,r)}function Ir(e,t,r){return n.ByID(728919203,e,t,r)}function Pr(e,t){return n.ByID(1547965995,e,t)}const Tr=u.DropResult.createFrom,br=u.SettingsState.createFrom,rt=o.Map(o.Any,o.Any),wr=u.Info.createFrom,Cr=o.Array(wr),Gr=o.Map(o.Any,rt),vr=Object.freeze(Object.defineProperty({__proto__:null,BeginDrag:ur,CancelDrag:ar,Close:lr,EndDrag:yr,Focus:tt,GetSettingsState:pr,GetState:fr,HideSettings:Sr,List:hr,ListStates:dr,MoveDrag:gr,MoveToPointer:$r,Open:mr,OpenSettings:nt,ReportViewport:Br,RespondDrop:Dr,SaveState:Ir,SetSettingsLocation:Pr},Symbol.toStringTag,{value:"Module"}));exports.Action=Se;exports.AttachStreamAction=Ce;exports.CancelStreamAction=Ge;exports.Catalog=ae;exports.CheckConnection=ee;exports.ClosePortForwardSession=z;exports.CloseSession=ze;exports.CloseSourceView=Fe;exports.Commit=ke;exports.CreateSession=J;exports.CreateSession$1=xe;exports.Enumerate=ye;exports.FindPortForwardSessions=x;exports.Focus=tt;exports.Get=Ze;exports.Get$1=le;exports.GetActions=be;exports.GetAllConnectionStates=ge;exports.GetConnection=te;exports.GetConnectionMetadata=se;exports.GetDependencyTree=Le;exports.GetEditorSchemas=Te;exports.GetHandler=k;exports.GetNativeTerminalSupport=E;exports.GetPluginMeta=K;exports.GetProviders=Ue;exports.GetProvidersForResource=Qe;exports.GetRelated=Me;exports.GetResourceAreaComponent=He;exports.GetResourceGroups=Pe;exports.GetSchemaDocument=de;exports.GetSnapshot=Ee;exports.GetSourceStates=Oe;exports.GetSubgraph=je;exports.ImportConnectionProfile=Be;exports.ListAllConnections=ne;exports.ListAllPortForwardSessions=U;exports.ListConnectionProfiles=$e;exports.ListConnections=re;exports.Mutate=fe;exports.NativeQuery=pe;exports.OpenNativeSession=q;exports.OpenSettings=nt;exports.OpenSourceView=ve;exports.QueryAll=Xe;exports.RefreshConnectionMetadata=ue;exports.RefreshSourceView=Ae;exports.RemoveConnection=Ie;exports.ResetConnectionProfile=De;exports.ResolveTarget=he;exports.RetryConnectionSources=_e;exports.RetryFailedPlugin=X;exports.SaveConnectionProfile=me;exports.ScopeValues=Ne;exports.Set=et;exports.StartConnection=oe;exports.StartResourcePortForwardingSession=W;exports.StopConnection=ie;exports.StreamAction=we;exports.Subscribe=Ye;exports.SyncSourceView=Re;exports.Unsubscribe=We;exports.Validate=Ve;exports.binding=An;exports.client=Dn;exports.exec=It;exports.graphClient=Pn;exports.logs=Wn;exports.metric=rr;exports.networker=vt;exports.service=vr;exports.servicewrapper=sr;exports.servicewrapper$1=sn;exports.servicewrapper$2=Mn;