@omniviewdev/runtime 0.22.0 → 0.24.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.
- package/dist/api.cjs +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.js +188 -156
- package/dist/bindings/events/index.d.ts +2 -2
- package/dist/bindings/github.com/omniviewdev/omniview/backend/extensiondiagnostics/host/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/extensiondiagnostics/host/service.d.ts +12 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/extensiondiagnostics/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/extensiondiagnostics/models.d.ts +11 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +54 -26
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +6 -9
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +53 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +15 -72
- package/dist/compat/legacyEnum.d.ts +2 -2
- package/dist/context/settings/index.d.ts +1 -1
- package/dist/context/settings/settingsWindow.d.ts +3 -1
- package/dist/extensions/index.d.ts +1 -0
- package/dist/extensions/resource-editor.d.ts +22 -0
- package/dist/graph-D4xtzkXX.cjs +1 -0
- package/dist/graph-iJFYWdRz.js +7 -0
- package/dist/hooks/connection/useConnectionStatus.d.ts +3 -3
- package/dist/hooks/connection/useConnections.d.ts +0 -3
- package/dist/hooks/resource/index.d.ts +1 -2
- package/dist/hooks/resource/useActiveSyncs.d.ts +2 -2
- package/dist/hooks/resource/useResources.d.ts +10 -16
- package/dist/hooks/resource/useSourceStates.d.ts +17 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2925 -2828
- package/dist/models-B3B5AdrM.cjs +1 -0
- package/dist/{models-BlRe-e25.js → models-B_Ef0-Dw.js} +1 -1
- package/dist/{models-C-3HYV9E.cjs → models-CX8HlqvF.cjs} +1 -1
- package/dist/{models-DNQykdGx.js → models-eKPHQdEl.js} +394 -321
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +1 -1
- package/dist/models.js +86 -84
- package/dist/resource/v2/ancillary.d.ts +1 -1
- package/dist/resource/v2/client.d.ts +8 -12
- package/dist/resource/v2/domain.d.ts +2 -1
- package/dist/resource/v2/host.d.ts +55 -31
- package/dist/resource/v2/sourceView.d.ts +20 -0
- package/dist/search.d.ts +1 -1
- package/dist/service-CbJRfldb.js +748 -0
- package/dist/service-DyXmAdcM.cjs +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/resource-editor.d.ts +195 -0
- package/dist/types/source.d.ts +8 -0
- package/dist/utils/activeSyncAggregator.d.ts +6 -17
- package/package.json +3 -3
- package/dist/graph-JDqyJC_i.js +0 -10
- package/dist/graph-wHun0Bkz.cjs +0 -1
- package/dist/hooks/resource/useEventBatcher.d.ts +0 -25
- package/dist/hooks/resource/useWatchState.d.ts +0 -21
- package/dist/models-D5pkScnE.cjs +0 -1
- package/dist/service-D25QhNF2.js +0 -750
- package/dist/service-MaHvflXn.cjs +0 -1
- package/dist/types/watch.d.ts +0 -55
|
@@ -0,0 +1 @@
|
|
|
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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const RESOURCE_EDITOR_EXTENSION_POINT: "kubernetes/resource/editor/v1";
|
|
3
|
+
export type ResourceEditorPath = readonly (string | number)[];
|
|
4
|
+
export type ResourceEditorIntent = 'create' | 'edit' | 'inspect' | 'action';
|
|
5
|
+
export type ResourceEditorAvailability = 'available' | 'denied' | 'unavailable' | 'absent' | 'unknown';
|
|
6
|
+
export interface ResourceEditorTarget {
|
|
7
|
+
group: string;
|
|
8
|
+
version: string;
|
|
9
|
+
kind: string;
|
|
10
|
+
resource: string;
|
|
11
|
+
scope: 'Namespaced' | 'Cluster';
|
|
12
|
+
}
|
|
13
|
+
export interface ResourceEditorCapabilities {
|
|
14
|
+
create: ResourceEditorAvailability;
|
|
15
|
+
update: ResourceEditorAvailability;
|
|
16
|
+
delete: ResourceEditorAvailability;
|
|
17
|
+
list: ResourceEditorAvailability;
|
|
18
|
+
get: ResourceEditorAvailability;
|
|
19
|
+
actions: Readonly<Record<string, ResourceEditorAvailability>>;
|
|
20
|
+
}
|
|
21
|
+
export interface ResourceEditorContext extends ResourceEditorTarget {
|
|
22
|
+
connectionID: string;
|
|
23
|
+
namespace?: string;
|
|
24
|
+
/** Trusted host policy only. Omission means unknown, never application-owned. */
|
|
25
|
+
ownership?: {
|
|
26
|
+
status: 'application' | 'controller' | 'system' | 'unknown';
|
|
27
|
+
};
|
|
28
|
+
name?: string;
|
|
29
|
+
uid?: string;
|
|
30
|
+
resourceVersion?: string;
|
|
31
|
+
intent: ResourceEditorIntent;
|
|
32
|
+
capabilities: ResourceEditorCapabilities;
|
|
33
|
+
discovery: {
|
|
34
|
+
status: ResourceEditorAvailability;
|
|
35
|
+
features: Readonly<Record<string, ResourceEditorAvailability>>;
|
|
36
|
+
};
|
|
37
|
+
schema: {
|
|
38
|
+
status: ResourceEditorAvailability;
|
|
39
|
+
identity?: string;
|
|
40
|
+
paths?: readonly ResourceEditorPath[];
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/** Host-owned immutable, redacted projection. Never persist drafts or opaque values. */
|
|
44
|
+
export interface ResourceEditorDraft {
|
|
45
|
+
readonly sessionID: string;
|
|
46
|
+
readonly revision: number;
|
|
47
|
+
get(this: void, path: ResourceEditorPath): unknown;
|
|
48
|
+
has(this: void, path: ResourceEditorPath): boolean;
|
|
49
|
+
}
|
|
50
|
+
export type ResourceEditorPatch = {
|
|
51
|
+
op: 'set';
|
|
52
|
+
path: ResourceEditorPath;
|
|
53
|
+
value: unknown;
|
|
54
|
+
} | {
|
|
55
|
+
op: 'remove';
|
|
56
|
+
path: ResourceEditorPath;
|
|
57
|
+
} | {
|
|
58
|
+
op: 'insert';
|
|
59
|
+
path: ResourceEditorPath;
|
|
60
|
+
index: number;
|
|
61
|
+
value: unknown;
|
|
62
|
+
};
|
|
63
|
+
export interface ResourceEditorPatchRequest {
|
|
64
|
+
sessionID: string;
|
|
65
|
+
expectedRevision: number;
|
|
66
|
+
operations: readonly ResourceEditorPatch[];
|
|
67
|
+
}
|
|
68
|
+
export type ResourceEditorPatchResult = {
|
|
69
|
+
status: 'accepted';
|
|
70
|
+
revision: number;
|
|
71
|
+
} | {
|
|
72
|
+
status: 'stale' | 'forbidden' | 'immutable' | 'unsafe' | 'invalid';
|
|
73
|
+
message: string;
|
|
74
|
+
};
|
|
75
|
+
export interface ResourceEditorFieldIssue {
|
|
76
|
+
path: ResourceEditorPath;
|
|
77
|
+
message: string;
|
|
78
|
+
}
|
|
79
|
+
export type ResourceEditorReferenceProjection = 'metadata' | 'servicePorts' | 'storageClass' | 'ingressClass' | 'secretType';
|
|
80
|
+
export interface ResourceEditorServiceRequest {
|
|
81
|
+
sessionID: string;
|
|
82
|
+
generation: number;
|
|
83
|
+
signal: AbortSignal;
|
|
84
|
+
}
|
|
85
|
+
export interface ResourceEditorReferenceRequest extends ResourceEditorServiceRequest {
|
|
86
|
+
group: string;
|
|
87
|
+
version: string;
|
|
88
|
+
resource: string;
|
|
89
|
+
namespace?: string;
|
|
90
|
+
projection?: ResourceEditorReferenceProjection;
|
|
91
|
+
}
|
|
92
|
+
/** Sanitized reference only; secret data and arbitrary resource bodies are never returned. */
|
|
93
|
+
export interface ResourceEditorReference {
|
|
94
|
+
name: string;
|
|
95
|
+
namespace?: string;
|
|
96
|
+
uid?: string;
|
|
97
|
+
labels?: Readonly<Record<string, string>>;
|
|
98
|
+
servicePorts?: readonly {
|
|
99
|
+
name?: string;
|
|
100
|
+
port: number;
|
|
101
|
+
protocol?: string;
|
|
102
|
+
targetPort?: string | number;
|
|
103
|
+
}[];
|
|
104
|
+
/** Sanitized selector presence; omission must be treated as unknown. */
|
|
105
|
+
serviceSelector?: 'none' | 'present' | 'unknown';
|
|
106
|
+
storageClass?: {
|
|
107
|
+
provisioner: string;
|
|
108
|
+
volumeBindingMode?: string;
|
|
109
|
+
allowVolumeExpansion?: boolean;
|
|
110
|
+
};
|
|
111
|
+
ingressClass?: {
|
|
112
|
+
controller: string;
|
|
113
|
+
isDefault?: boolean;
|
|
114
|
+
};
|
|
115
|
+
secretType?: string;
|
|
116
|
+
}
|
|
117
|
+
export type ResourceEditorReferenceResult = {
|
|
118
|
+
status: 'ready';
|
|
119
|
+
items: readonly ResourceEditorReference[];
|
|
120
|
+
} | {
|
|
121
|
+
status: 'denied' | 'unavailable' | 'absent';
|
|
122
|
+
message: string;
|
|
123
|
+
};
|
|
124
|
+
export interface ResourceEditorReferenceService {
|
|
125
|
+
list(this: void, request: ResourceEditorReferenceRequest): Promise<ResourceEditorReferenceResult>;
|
|
126
|
+
}
|
|
127
|
+
export interface ResourceEditorActionRequest extends ResourceEditorServiceRequest {
|
|
128
|
+
protocol: string;
|
|
129
|
+
input: unknown;
|
|
130
|
+
}
|
|
131
|
+
export type ResourceEditorActionResult = {
|
|
132
|
+
status: 'ready';
|
|
133
|
+
output: unknown;
|
|
134
|
+
sensitive?: boolean;
|
|
135
|
+
} | {
|
|
136
|
+
status: 'denied' | 'unavailable' | 'absent' | 'invalid' | 'cancelled';
|
|
137
|
+
message: string;
|
|
138
|
+
};
|
|
139
|
+
export interface ResourceEditorActionService {
|
|
140
|
+
execute(this: void, request: ResourceEditorActionRequest): Promise<ResourceEditorActionResult>;
|
|
141
|
+
}
|
|
142
|
+
export interface ResourceEditorFormProps {
|
|
143
|
+
context: ResourceEditorContext;
|
|
144
|
+
draft: ResourceEditorDraft;
|
|
145
|
+
baseline?: ResourceEditorDraft;
|
|
146
|
+
section: string;
|
|
147
|
+
disabled: boolean;
|
|
148
|
+
patch(this: void, request: ResourceEditorPatchRequest): ResourceEditorPatchResult;
|
|
149
|
+
onValidityChange(this: void, error: string | null): void;
|
|
150
|
+
references: ResourceEditorReferenceService;
|
|
151
|
+
actions: ResourceEditorActionService;
|
|
152
|
+
requestResult?: ResourceEditorActionResult;
|
|
153
|
+
}
|
|
154
|
+
export interface ResourceEditorRequirements {
|
|
155
|
+
capabilities?: readonly (keyof Omit<ResourceEditorCapabilities, 'actions'>)[];
|
|
156
|
+
actions?: readonly string[];
|
|
157
|
+
features?: readonly string[];
|
|
158
|
+
schema?: {
|
|
159
|
+
identity?: string;
|
|
160
|
+
paths?: readonly ResourceEditorPath[];
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
export interface ResourceEditorContribution {
|
|
164
|
+
contractVersion: 1;
|
|
165
|
+
targets: readonly ResourceEditorTarget[];
|
|
166
|
+
intents: readonly ResourceEditorIntent[];
|
|
167
|
+
label: string;
|
|
168
|
+
sections: readonly {
|
|
169
|
+
id: string;
|
|
170
|
+
label: string;
|
|
171
|
+
}[];
|
|
172
|
+
ownedPaths: readonly ResourceEditorPath[];
|
|
173
|
+
sensitivePaths?: readonly ResourceEditorPath[];
|
|
174
|
+
requirements?: ResourceEditorRequirements;
|
|
175
|
+
/** Domain authoring policy, never RBAC authority; omission means unknown. */
|
|
176
|
+
ownershipPolicy?: 'declarative' | 'conditional' | 'controller' | 'system';
|
|
177
|
+
component: ComponentType<ResourceEditorFormProps>;
|
|
178
|
+
validate?: (draft: ResourceEditorDraft, context: ResourceEditorContext) => readonly ResourceEditorFieldIssue[];
|
|
179
|
+
/** Read-only admission at submit, never enumeration; draft remains redacted. */
|
|
180
|
+
validateSubmission?: (draft: ResourceEditorDraft, context: ResourceEditorContext, services: {
|
|
181
|
+
references: ResourceEditorReferenceService;
|
|
182
|
+
actions: ResourceEditorActionService;
|
|
183
|
+
}, signal: AbortSignal) => Promise<readonly ResourceEditorFieldIssue[]>;
|
|
184
|
+
formUnavailable?: (draft: ResourceEditorDraft, context: ResourceEditorContext) => string | null;
|
|
185
|
+
readOnly?: (draft: ResourceEditorDraft, context: ResourceEditorContext) => boolean;
|
|
186
|
+
request?: {
|
|
187
|
+
protocol: string;
|
|
188
|
+
source: 'canonical';
|
|
189
|
+
} | {
|
|
190
|
+
protocol: string;
|
|
191
|
+
source?: 'projection';
|
|
192
|
+
/** Always receives the redacted projection, never canonical sensitive source. */
|
|
193
|
+
buildInput: (draft: ResourceEditorDraft, context: ResourceEditorContext) => unknown;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type SourceSessionState = 'opening' | 'snapshotting' | 'following' | 'finished' | 'resetRequired' | 'failed' | 'closed';
|
|
2
|
+
export type SourceMode = 'snapshot' | 'snapshotAndUpdates';
|
|
3
|
+
export type SourceContinuity = 'notApplicable' | 'gapFree' | 'bestEffort';
|
|
4
|
+
export interface SourceCoverage {
|
|
5
|
+
enumeration: 'exhausted' | 'partial' | 'unknown';
|
|
6
|
+
consistency: 'pointInTime' | 'bestEffort' | 'unknown';
|
|
7
|
+
limitations: string[];
|
|
8
|
+
}
|
|
@@ -1,34 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HostSourceStateEvent } from '../resource/v2/host';
|
|
2
|
+
import { SourceSessionState } from '../types/source';
|
|
2
3
|
export interface ActiveSync {
|
|
3
4
|
pluginID: string;
|
|
4
5
|
connectionID: string;
|
|
5
|
-
/** Total resources including skipped */
|
|
6
6
|
totalResources: number;
|
|
7
|
-
|
|
8
|
-
watchedTotal: number;
|
|
7
|
+
trackedTotal: number;
|
|
9
8
|
syncedCount: number;
|
|
10
9
|
errorCount: number;
|
|
11
|
-
forbiddenCount: number;
|
|
12
|
-
skippedCount: number;
|
|
13
|
-
/** Count of watched resources in any terminal state (Synced + Error + Stopped + Failed + Forbidden) */
|
|
14
10
|
doneCount: number;
|
|
15
|
-
/** 0-1 progress fraction based on watched resources only */
|
|
16
11
|
progress: number;
|
|
17
12
|
}
|
|
18
13
|
export interface ResourceTracker {
|
|
19
|
-
states: Record<string,
|
|
14
|
+
states: Record<string, SourceSessionState>;
|
|
20
15
|
pluginID: string;
|
|
21
16
|
connectionID: string;
|
|
22
17
|
}
|
|
23
|
-
/** Compute an ActiveSync from a ResourceTracker */
|
|
24
18
|
export declare function computeActiveSync(tracker: ResourceTracker): ActiveSync;
|
|
25
|
-
/** Whether a sync is considered "done" (all watched resources reached terminal state) */
|
|
26
19
|
export declare function isSyncDone(sync: ActiveSync): boolean;
|
|
27
|
-
/** Whether any syncs are still actively in progress */
|
|
28
20
|
export declare function hasActiveSyncing(syncs: ActiveSync[]): boolean;
|
|
29
|
-
/** Compute aggregate progress across multiple syncs (watched resources only) */
|
|
30
21
|
export declare function aggregateProgress(syncs: ActiveSync[]): number;
|
|
31
|
-
|
|
32
|
-
export declare function
|
|
33
|
-
/** Update a trackers map with a new event, returning the updated tracker */
|
|
34
|
-
export declare function updateTracker(trackers: Map<string, ResourceTracker>, pluginID: string, event: WatchStateEvent): ResourceTracker;
|
|
22
|
+
export declare function trackerKey(pluginID: string, event: HostSourceStateEvent): string;
|
|
23
|
+
export declare function updateTracker(trackers: Map<string, ResourceTracker>, pluginID: string, event: HostSourceStateEvent): ResourceTracker;
|
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.
|
|
5
|
+
"version": "0.24.0",
|
|
6
6
|
"description": "Runtime shared library for Omniview",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"omniview"
|
|
53
53
|
],
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@omniviewdev/base-ui": "~0.
|
|
55
|
+
"@omniviewdev/base-ui": "~0.11.1",
|
|
56
56
|
"@tanstack/react-query": "5.105.0",
|
|
57
57
|
"@types/node": "26.6.5",
|
|
58
58
|
"@types/react": "19.3.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@typescript/native": "npm:typescript@7.0.2"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@omniviewdev/base-ui": "~0.
|
|
71
|
+
"@omniviewdev/base-ui": "~0.11.1",
|
|
72
72
|
"@tanstack/react-query": "^5.105.0",
|
|
73
73
|
"react": "^19.3.1",
|
|
74
74
|
"react-dom": "^19.3.1",
|
package/dist/graph-JDqyJC_i.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var o = /* @__PURE__ */ ((e) => (e[e.WatchStateIdle = 0] = "WatchStateIdle", e[e.WatchStateSyncing = 1] = "WatchStateSyncing", e[e.WatchStateSynced = 2] = "WatchStateSynced", e[e.WatchStateError = 3] = "WatchStateError", e[e.WatchStateStopped = 4] = "WatchStateStopped", e[e.WatchStateFailed = 5] = "WatchStateFailed", e[e.WatchStateForbidden = 6] = "WatchStateForbidden", e[e.WatchStateSkipped = 7] = "WatchStateSkipped", e))(o || {}), p = /* @__PURE__ */ ((e) => (e[e.SyncOnConnect = 0] = "SyncOnConnect", e[e.SyncOnFirstQuery = 1] = "SyncOnFirstQuery", e[e.SyncNever = 2] = "SyncNever", e))(p || {});
|
|
2
|
-
function s(e, d) {
|
|
3
|
-
const r = e.reference.address, n = d.reference.address;
|
|
4
|
-
return e.pluginId === d.pluginId && e.reference.incarnation === d.reference.incarnation && r.provider === n.provider && r.authority === n.authority && r.type === n.type && r.id === n.id && r.scope.length === n.scope.length && r.scope.every((t) => n.scope.some((i) => t.dimension === i.dimension && t.value === i.value));
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
p as S,
|
|
8
|
-
o as W,
|
|
9
|
-
s
|
|
10
|
-
};
|
package/dist/graph-wHun0Bkz.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=(e=>(e[e.WatchStateIdle=0]="WatchStateIdle",e[e.WatchStateSyncing=1]="WatchStateSyncing",e[e.WatchStateSynced=2]="WatchStateSynced",e[e.WatchStateError=3]="WatchStateError",e[e.WatchStateStopped=4]="WatchStateStopped",e[e.WatchStateFailed=5]="WatchStateFailed",e[e.WatchStateForbidden=6]="WatchStateForbidden",e[e.WatchStateSkipped=7]="WatchStateSkipped",e))(o||{}),a=(e=>(e[e.SyncOnConnect=0]="SyncOnConnect",e[e.SyncOnFirstQuery=1]="SyncOnFirstQuery",e[e.SyncNever=2]="SyncNever",e))(a||{});function c(e,t){const r=e.reference.address,n=t.reference.address;return e.pluginId===t.pluginId&&e.reference.incarnation===t.reference.incarnation&&r.provider===n.provider&&r.authority===n.authority&&r.type===n.type&&r.id===n.id&&r.scope.length===n.scope.length&&r.scope.every(d=>n.scope.some(i=>d.dimension===i.dimension&&d.value===i.value))}exports.SyncPolicy=a;exports.WatchState=o;exports.sameGraphNode=c;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { QueryClient, QueryKey } from '@tanstack/react-query';
|
|
2
|
-
import { HostWatchAddPayload, HostWatchDeletePayload, HostWatchUpdatePayload, ResourceView } from '../../resource/v2/host';
|
|
3
|
-
import { WatchState } from '../../types/watch';
|
|
4
|
-
export type AddPayload = HostWatchAddPayload;
|
|
5
|
-
export type UpdatePayload = HostWatchUpdatePayload;
|
|
6
|
-
export type DeletePayload = HostWatchDeletePayload;
|
|
7
|
-
export type ResourceUpdateEvent = {
|
|
8
|
-
type: 'ADD';
|
|
9
|
-
payload: AddPayload;
|
|
10
|
-
} | {
|
|
11
|
-
type: 'UPDATE';
|
|
12
|
-
payload: UpdatePayload;
|
|
13
|
-
} | {
|
|
14
|
-
type: 'DELETE';
|
|
15
|
-
payload: DeletePayload;
|
|
16
|
-
};
|
|
17
|
-
/** Explicit pages retain bounded membership; collections accept every admitted target event. */
|
|
18
|
-
export declare function applyBatch(oldData: ResourceView | undefined, events: readonly ResourceUpdateEvent[], membershipChanged?: boolean, collection?: boolean): ResourceView | undefined;
|
|
19
|
-
/** Keep only the latest event for each key within the active acquisition. */
|
|
20
|
-
export declare function useEventBatcher(queryClient: QueryClient, queryKey: QueryKey, watchState: WatchState, options?: {
|
|
21
|
-
syncWindowMs?: number;
|
|
22
|
-
enabled?: boolean;
|
|
23
|
-
isCurrent?: () => boolean;
|
|
24
|
-
collection?: boolean;
|
|
25
|
-
}): (event: ResourceUpdateEvent) => void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AccessRoute } from '../../resource/v2/domain';
|
|
2
|
-
import { WatchState, WatchConnectionSummary } from '../../types/watch';
|
|
3
|
-
export interface WatchSummary extends WatchConnectionSummary {
|
|
4
|
-
totalResources: number;
|
|
5
|
-
syncedCount: number;
|
|
6
|
-
errorCount: number;
|
|
7
|
-
}
|
|
8
|
-
/** Advisory native cache readiness, never proof of snapshot/update continuity. */
|
|
9
|
-
export declare const useWatchState: ({ pluginID: explicitPluginID, route, enabled, }: {
|
|
10
|
-
pluginID?: string;
|
|
11
|
-
route: AccessRoute;
|
|
12
|
-
enabled?: boolean;
|
|
13
|
-
}) => {
|
|
14
|
-
summary: import('@tanstack/react-query').UseQueryResult<WatchSummary, Error>;
|
|
15
|
-
getResourceState: (type: string) => WatchState | undefined;
|
|
16
|
-
/** Retained UI readiness name; this does not claim source continuity. */
|
|
17
|
-
isFullySynced: boolean;
|
|
18
|
-
syncProgress: number;
|
|
19
|
-
errorCount: number;
|
|
20
|
-
guarantee: "bestEffort";
|
|
21
|
-
};
|
package/dist/models-D5pkScnE.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("./index-BVi9X4oU.cjs");class ot{connection;constructor(t={}){"connection"in t||(this.connection=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new ot(n)}}class ct{address;incarnation;constructor(t={}){"address"in t||(this.address=null),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new ct(n)}}let z=class Ct{label;label_selector;paths;selectors;constructor(t={}){"label"in t||(this.label=""),"label_selector"in t||(this.label_selector=""),"paths"in t||(this.paths=[]),"selectors"in t||(this.selectors={}),Object.assign(this,t)}static createFrom(t={}){const n=W,i=g;let s=typeof t=="string"?JSON.parse(t):t;return"paths"in s&&(s.paths=n(s.paths)),"selectors"in s&&(s.selectors=i(s.selectors)),new Ct(s)}},Et=class Rt{plugin;resource;target_builder;default_command;supports_native_command;constructor(t={}){"plugin"in t||(this.plugin=""),"resource"in t||(this.resource=""),"target_builder"in t||(this.target_builder=new z),"default_command"in t||(this.default_command=[]),"supports_native_command"in t||(this.supports_native_command=!1),Object.assign(this,t)}static createFrom(t={}){const n=Lt,i=W;let s=typeof t=="string"?JSON.parse(t):t;return"target_builder"in s&&(s.target_builder=n(s.target_builder)),"default_command"in s&&(s.default_command=i(s.default_command)),new Rt(s)}};class x{created_at;labels;params;id;command;attached;constructor(t={}){"created_at"in t||(this.created_at="0001-01-01T00:00:00.000Z"),"labels"in t||(this.labels={}),"params"in t||(this.params={}),"id"in t||(this.id=""),"command"in t||(this.command=[]),"attached"in t||(this.attached=!1),Object.assign(this,t)}static createFrom(t={}){const n=g,i=g,s=W;let r=typeof t=="string"?JSON.parse(t):t;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 x(r)}}class B{params;labels;id;resource_plugin;resource_key;resource_data;reference;route;command;tty;constructor(t={}){"params"in t||(this.params={}),"labels"in t||(this.labels={}),"id"in t||(this.id=""),"resource_plugin"in t||(this.resource_plugin=""),"resource_key"in t||(this.resource_key=""),"command"in t||(this.command=[]),"tty"in t||(this.tty=!1),Object.assign(this,t)}static createFrom(t={}){const n=g,i=g,s=Vt,r=Xt,lt=W;let o=typeof t=="string"?JSON.parse(t):t;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=lt(o.command)),new B(o)}}const W=a.Array(a.Any),g=a.Map(a.Any,a.Any),Lt=z.createFrom,Mt=ct.createFrom,Vt=a.Nullable(Mt),Yt=ot.createFrom,Xt=a.Nullable(Yt),Kt=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:z,Handler:Et,Session:x,SessionOptions:B},Symbol.toStringTag,{value:"Module"}));class U{resource_id;connection_id;constructor(t={}){"resource_id"in t||(this.resource_id=""),"connection_id"in t||(this.connection_id=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new U(n)}}var dt=(e=>(e.$zero="",e.PortForwardConnectionTypeResource="RESOURCE",e.PortForwardConnectionTypeStatic="STATIC",e))(dt||{}),pt=(e=>(e.$zero="",e.PortForwardProtocolTCP="TCP",e.PortForwardProtocolUDP="UDP",e))(pt||{});class D{created_at;updated_at;connection;labels;id;protocol;state;connection_type;encryption;local_port;remote_port;constructor(t={}){"created_at"in t||(this.created_at="0001-01-01T00:00:00.000Z"),"updated_at"in t||(this.updated_at="0001-01-01T00:00:00.000Z"),"connection"in t||(this.connection=null),"labels"in t||(this.labels={}),"id"in t||(this.id=""),"protocol"in t||(this.protocol=""),"state"in t||(this.state=""),"connection_type"in t||(this.connection_type=""),"encryption"in t||(this.encryption=new c),"local_port"in t||(this.local_port=0),"remote_port"in t||(this.remote_port=0),Object.assign(this,t)}static createFrom(t={}){const n=Qt,i=$t;let s=typeof t=="string"?JSON.parse(t):t;return"labels"in s&&(s.labels=n(s.labels)),"encryption"in s&&(s.encryption=i(s.encryption)),new D(s)}}class c{algorithm;key;enabled;constructor(t={}){"algorithm"in t||(this.algorithm=""),"key"in t||(this.key=""),"enabled"in t||(this.enabled=!1),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new c(n)}}var ft=(e=>(e.$zero="",e.SessionStateActive="ACTIVE",e.SessionStatePaused="PAUSED",e.SessionStateStopped="STOPPED",e.SessionStateFailed="FAILED",e))(ft||{});const Qt=a.Map(a.Any,a.Any),$t=c.createFrom,te=Object.freeze(Object.defineProperty({__proto__:null,FindPortForwardSessionRequest:U,PortForwardConnectionType:dt,PortForwardProtocol:pt,PortForwardSession:D,PortForwardSessionEncryption:c,SessionState:ft},Symbol.toStringTag,{value:"Module"}));class H{id;name;description;icon_url;category;tags;license;official;featured;download_count;average_rating;review_count;repository;url;publisher_name;installed;installed_version;latest_version;update_available;constructor(t={}){"id"in t||(this.id=""),"name"in t||(this.name=""),"description"in t||(this.description=""),"icon_url"in t||(this.icon_url=""),"category"in t||(this.category=""),"tags"in t||(this.tags=[]),"license"in t||(this.license=""),"official"in t||(this.official=!1),"featured"in t||(this.featured=!1),"download_count"in t||(this.download_count=0),"average_rating"in t||(this.average_rating=0),"review_count"in t||(this.review_count=0),"repository"in t||(this.repository=""),"url"in t||(this.url=""),"publisher_name"in t||(this.publisher_name=""),"installed"in t||(this.installed=!1),"installed_version"in t||(this.installed_version=""),"latest_version"in t||(this.latest_version=""),"update_available"in t||(this.update_available=!1),Object.assign(this,t)}static createFrom(t={}){const n=kt;let i=typeof t=="string"?JSON.parse(t):t;return"tags"in i&&(i.tags=n(i.tags)),new H(i)}}class q{date;count;constructor(t={}){"date"in t||(this.date=""),"count"in t||(this.count=0),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new q(n)}}class G{total;last_month;last_week;daily_stats;constructor(t={}){"total"in t||(this.total=0),"last_month"in t||(this.last_month=0),"last_week"in t||(this.last_week=0),"daily_stats"in t||(this.daily_stats=[]),Object.assign(this,t)}static createFrom(t={}){const n=ie;let i=typeof t=="string"?JSON.parse(t):t;return"daily_stats"in i&&(i.daily_stats=n(i.daily_stats)),new G(i)}}class Z{id;user_id;rating;title;body;created_at;constructor(t={}){"id"in t||(this.id=""),"user_id"in t||(this.user_id=0),"rating"in t||(this.rating=0),"title"in t||(this.title=""),"body"in t||(this.body=""),"created_at"in t||(this.created_at=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new Z(n)}}class L{version;description;changelog;min_ide_version;max_ide_version;capabilities;created_at;constructor(t={}){"version"in t||(this.version=""),"description"in t||(this.description=""),"changelog"in t||(this.changelog=""),"min_ide_version"in t||(this.min_ide_version=""),"max_ide_version"in t||(this.max_ide_version=""),"capabilities"in t||(this.capabilities=[]),"created_at"in t||(this.created_at=""),Object.assign(this,t)}static createFrom(t={}){const n=kt;let i=typeof t=="string"?JSON.parse(t):t;return"capabilities"in i&&(i.capabilities=n(i.capabilities)),new L(i)}}const kt=a.Array(a.Any),ee=q.createFrom,ie=a.Array(ee),ne=Object.freeze(Object.defineProperty({__proto__:null,AvailablePlugin:H,DailyStat:q,DownloadStats:G,Review:Z,VersionInfo:L},Symbol.toStringTag,{value:"Module"}));class _{name;email;url;constructor(t={}){"name"in t||(this.name=""),"email"in t||(this.email=""),"url"in t||(this.url=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new _(n)}}var ht=(e=>(e.$zero="",e.PluginComponentAreaEditor="EDITOR",e.PluginComponentAreaSidebar="SIDEBAR",e))(ht||{});class d{resource;constructor(t={}){"resource"in t||(this.resource=[]),Object.assign(this,t)}static createFrom(t={}){const n=ae;let i=typeof t=="string"?JSON.parse(t):t;return"resource"in i&&(i.resource=n(i.resource)),new d(i)}}class y{name;email;constructor(t={}){"name"in t||(this.name=""),"email"in t||(this.email=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new y(n)}}class p{id;version;name;icon;icon_url;description;repository;website;category;license;author;maintainers;tags;dependencies;capabilities;theme;components;schema_version;sdk_protocol_version;state_isolation;constructor(t={}){"id"in t||(this.id=""),"version"in t||(this.version=""),"name"in t||(this.name=""),"icon"in t||(this.icon=""),"icon_url"in t||(this.icon_url=""),"description"in t||(this.description=""),"repository"in t||(this.repository=""),"website"in t||(this.website=""),"category"in t||(this.category=""),"license"in t||(this.license=""),"maintainers"in t||(this.maintainers=[]),"tags"in t||(this.tags=[]),"dependencies"in t||(this.dependencies=[]),"capabilities"in t||(this.capabilities=[]),"theme"in t||(this.theme=new f),"components"in t||(this.components=new d),"schema_version"in t||(this.schema_version=0),"sdk_protocol_version"in t||(this.sdk_protocol_version=0),Object.assign(this,t)}static createFrom(t={}){const n=le,i=ce,s=k,r=k,lt=k,o=de,Gt=pe,Zt=he;let l=typeof t=="string"?JSON.parse(t):t;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=lt(l.capabilities)),"theme"in l&&(l.theme=o(l.theme)),"components"in l&&(l.components=Gt(l.components)),"state_isolation"in l&&(l.state_isolation=Zt(l.state_isolation)),new p(l)}}class b{name;plugin;area;resources;extension;constructor(t={}){"name"in t||(this.name=""),"plugin"in t||(this.plugin=""),"area"in t||(this.area=""),"resources"in t||(this.resources=[]),"extension"in t||(this.extension=""),Object.assign(this,t)}static createFrom(t={}){const n=k;let i=typeof t=="string"?JSON.parse(t):t;return"resources"in i&&(i.resources=n(i.resources)),new b(i)}}class f{colors;constructor(t={}){"colors"in t||(this.colors=new h),Object.assign(this,t)}static createFrom(t={}){const n=me;let i=typeof t=="string"?JSON.parse(t):t;return"colors"in i&&(i.colors=n(i.colors)),new f(i)}}class h{primary;secondary;tertiary;constructor(t={}){"primary"in t||(this.primary=""),"secondary"in t||(this.secondary=""),"tertiary"in t||(this.tertiary=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new h(n)}}class S{schema_version;capability;sdk_module;sdk_revision;sdk_source_sha256;binary_sha256;constructor(t={}){"schema_version"in t||(this.schema_version=0),"capability"in t||(this.capability=""),"sdk_module"in t||(this.sdk_module=""),"sdk_revision"in t||(this.sdk_revision=""),"binary_sha256"in t||(this.binary_sha256=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new S(n)}}const se=b.createFrom,ae=a.Array(se),re=_.createFrom,le=a.Nullable(re),oe=y.createFrom,ce=a.Array(oe),k=a.Array(a.Any),de=f.createFrom,pe=d.createFrom,fe=S.createFrom,he=a.Nullable(fe),me=h.createFrom,ge=Object.freeze(Object.defineProperty({__proto__:null,PluginAuthor:_,PluginComponentArea:ht,PluginComponents:d,PluginMaintainer:y,PluginMeta:p,PluginResourceComponent:b,PluginTheme:f,PluginThemeColors:h,StateIsolationProvenance:S},Symbol.toStringTag,{value:"Module"}));var F=(e=>(e[e.$zero=0]="$zero",e[e.minDuration=-9223372036854776e3]="minDuration",e[e.maxDuration=9223372036854776e3]="maxDuration",e[e.Nanosecond=1]="Nanosecond",e[e.Microsecond=1e3]="Microsecond",e[e.Millisecond=1e6]="Millisecond",e[e.Second=1e9]="Second",e[e.Minute=6e10]="Minute",e[e.Hour=36e11]="Hour",e))(F||{});const _e=Object.freeze(Object.defineProperty({__proto__:null,Duration:F},Symbol.toStringTag,{value:"Module"}));var zt=(e=>(e.$zero="",e.CapabilityResource="resource",e.CapabilityExec="exec",e.CapabilityNetworker="networker",e.CapabilityLog="log",e.CapabilityMetric="metric",e.CapabilitySettings="settings",e.CapabilityTools="tools",e.CapabilityUI="ui",e))(zt||{});class M{last_refresh;data;labels;lifecycle;id;uid;name;description;avatar;expiry_time;Client;constructor(t={}){"last_refresh"in t||(this.last_refresh="0001-01-01T00:00:00.000Z"),"data"in t||(this.data={}),"labels"in t||(this.labels={}),"lifecycle"in t||(this.lifecycle=new O),"id"in t||(this.id=""),"uid"in t||(this.uid=""),"name"in t||(this.name=""),"description"in t||(this.description=""),"avatar"in t||(this.avatar=""),"expiry_time"in t||(this.expiry_time=F.$zero),"Client"in t||(this.Client=null),Object.assign(this,t)}static createFrom(t={}){const n=It,i=It,s=ye;let r=typeof t=="string"?JSON.parse(t):t;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 M(r)}}class V{enabled;triggers;retry;constructor(t={}){"enabled"in t||(this.enabled=!1),"triggers"in t||(this.triggers=[]),"retry"in t||(this.retry=""),Object.assign(this,t)}static createFrom(t={}){const n=be;let i=typeof t=="string"?JSON.parse(t):t;return"triggers"in i&&(i.triggers=n(i.triggers)),new V(i)}}var xt=(e=>(e.$zero="",e.ConnectionAutoConnectRetryNone="NONE",e.ConnectionAutoConnectRetryOnChange="ON_CHANGE",e))(xt||{}),Bt=(e=>(e.$zero="",e.ConnectionAutoConnectTriggerPluginStart="PLUGIN_START",e.ConnectionAutoConnectTriggerConnectionDiscovered="CONNECTION_DISCOVERED",e))(Bt||{});class O{auto_connect;constructor(t={}){Object.assign(this,t)}static createFrom(t={}){const n=Fe;let i=typeof t=="string"?JSON.parse(t):t;return"auto_connect"in i&&(i.auto_connect=n(i.auto_connect)),new O(i)}}class mt{connection;status;error;details;constructor(t={}){"connection"in t||(this.connection=null),"status"in t||(this.status=""),"error"in t||(this.error=""),"details"in t||(this.details=""),Object.assign(this,t)}static createFrom(t={}){const n=ue;let i=typeof t=="string"?JSON.parse(t):t;return"connection"in i&&(i.connection=n(i.connection)),new mt(i)}}var Wt=(e=>(e.$zero="",e.ConnectionStatusUnknown="UNKNOWN",e.ConnectionStatusConnected="CONNECTED",e.ConnectionStatusDisconnected="DISCONNECTED",e.ConnectionStatusPending="PENDING",e.ConnectionStatusFailed="FAILED",e.ConnectionStatusError="ERROR",e.ConnectionStatusUnauthorized="UNAUTHORIZED",e.ConnectionStatusForbidden="FORBIDDEN",e.ConnectionStatusBadRequest="BAD_REQUEST",e.ConnectionStatusNotFound="NOT_FOUND",e.ConnectionStatusTimeout="TIMEOUT",e.ConnectionStatusUnavailable="UNAVAILABLE",e.ConnectionStatusRequestEntityTooLarge="REQUEST_ENTITY_TOO_LARGE",e))(Wt||{});class gt{id;metadata;phase;enabled;devMode;devPath;capabilities;lastError;constructor(t={}){"id"in t||(this.id=""),"metadata"in t||(this.metadata=new p),"phase"in t||(this.phase=""),"enabled"in t||(this.enabled=!1),"devMode"in t||(this.devMode=!1),"capabilities"in t||(this.capabilities=[]),Object.assign(this,t)}static createFrom(t={}){const n=we,i=ve;let s=typeof t=="string"?JSON.parse(t):t;return"metadata"in s&&(s.metadata=n(s.metadata)),"capabilities"in s&&(s.capabilities=i(s.capabilities)),new gt(s)}}const It=a.Map(a.Any,a.Any),ye=O.createFrom,be=a.Array(a.Any),Se=V.createFrom,Fe=a.Nullable(Se),Oe=M.createFrom,ue=a.Nullable(Oe),we=p.createFrom,ve=a.Array(a.Any);class Y{settings;id;label;description;icon;constructor(t={}){"settings"in t||(this.settings={}),"id"in t||(this.id=""),"label"in t||(this.label=""),"description"in t||(this.description=""),"icon"in t||(this.icon=""),Object.assign(this,t)}static createFrom(t={}){const n=Ne;let i=typeof t=="string"?JSON.parse(t):t;return"settings"in i&&(i.settings=n(i.settings)),new Y(i)}}class u{id;label;description;type;value;default;options;fileSelection;sensitive;devOnly;requiresRestart;pendingRestart;constructor(t={}){"id"in t||(this.id=""),"label"in t||(this.label=""),"description"in t||(this.description=""),"type"in t||(this.type=""),"value"in t||(this.value=null),"default"in t||(this.default=null),"options"in t||(this.options=[]),"fileSelection"in t||(this.fileSelection=null),"sensitive"in t||(this.sensitive=!1),"devOnly"in t||(this.devOnly=!1),"requiresRestart"in t||(this.requiresRestart=!1),"pendingRestart"in t||(this.pendingRestart=!1),Object.assign(this,t)}static createFrom(t={}){const n=Ae,i=Pe;let s=typeof t=="string"?JSON.parse(t):t;return"options"in s&&(s.options=n(s.options)),"fileSelection"in s&&(s.fileSelection=i(s.fileSelection)),new u(s)}}class w{enabled;allowFolders;extensions;multiple;relative;defaultPath;constructor(t={}){"enabled"in t||(this.enabled=!1),"allowFolders"in t||(this.allowFolders=!1),"extensions"in t||(this.extensions=[]),"multiple"in t||(this.multiple=!1),"relative"in t||(this.relative=!1),"defaultPath"in t||(this.defaultPath=""),Object.assign(this,t)}static createFrom(t={}){const n=Ie;let i=typeof t=="string"?JSON.parse(t):t;return"extensions"in i&&(i.extensions=n(i.extensions)),new w(i)}}class v{label;description;value;constructor(t={}){"label"in t||(this.label=""),"description"in t||(this.description=""),"value"in t||(this.value=null),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new v(n)}}var _t=(e=>(e.$zero="",e.Text="text",e.Select="select",e.MultiSelect="multiselect",e.Integer="integer",e.Float="float",e.Toggle="toggle",e.Color="color",e.DateTime="datetime",e.Password="password",e))(_t||{});class X{valid;code;message;constructor(t={}){"valid"in t||(this.valid=!1),"code"in t||(this.code=""),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new X(n)}}const Te=u.createFrom,Ne=a.Map(a.Any,Te),je=v.createFrom,Ae=a.Array(je),Je=w.createFrom,Pe=a.Nullable(Je),Ie=a.Array(a.Any),Ce=Object.freeze(Object.defineProperty({__proto__:null,Category:Y,Setting:u,SettingFileSelection:w,SettingOption:v,SettingType:_t,ValidationResult:X},Symbol.toStringTag,{value:"Module"}));class K{plugin;constructor(t={}){"plugin"in t||(this.plugin=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new K(n)}}class Q{plugin;resource;area;constructor(t={}){"plugin"in t||(this.plugin=""),"resource"in t||(this.resource=""),"area"in t||(this.area=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new Q(n)}}class ${plugin;resource;constructor(t={}){"plugin"in t||(this.plugin=""),"resource"in t||(this.resource=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new $(n)}}class tt{owner;name;plugin;resource;area;extension;constructor(t={}){"owner"in t||(this.owner=""),"name"in t||(this.name=""),"plugin"in t||(this.plugin=""),"resource"in t||(this.resource=""),"area"in t||(this.area=""),"extension"in t||(this.extension=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new tt(n)}}var yt=(e=>(e.$zero="",e.ResourceComponentAreaSidebar="SIDEBAR",e.ResourceComponentAreaTable="TABLE",e))(yt||{});const Ee=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponentsInput:K,GetResourceAreaComponentInput:Q,GetResourceComponentsInput:$,ResourceComponent:tt,ResourceComponentArea:yt},Symbol.toStringTag,{value:"Module"}));class T{label;label_selector;paths;selectors;constructor(t={}){"label"in t||(this.label=""),"label_selector"in t||(this.label_selector=""),"paths"in t||(this.paths=[]),"selectors"in t||(this.selectors={}),Object.assign(this,t)}static createFrom(t={}){const n=Re,i=Ft;let s=typeof t=="string"?JSON.parse(t):t;return"paths"in s&&(s.paths=n(s.paths)),"selectors"in s&&(s.selectors=i(s.selectors)),new T(s)}}let Ut=class Dt{plugin;resource;target_builder;constructor(t={}){"plugin"in t||(this.plugin=""),"resource"in t||(this.resource=""),"target_builder"in t||(this.target_builder=new T),Object.assign(this,t)}static createFrom(t={}){const n=ke;let i=typeof t=="string"?JSON.parse(t):t;return"target_builder"in i&&(i.target_builder=n(i.target_builder)),new Dt(i)}};class et{id;plugin_id;connection_id;resource_key;resource_id;options;status;active_sources;created_at;constructor(t={}){"id"in t||(this.id=""),"plugin_id"in t||(this.plugin_id=""),"connection_id"in t||(this.connection_id=""),"resource_key"in t||(this.resource_key=""),"resource_id"in t||(this.resource_id=""),"options"in t||(this.options=new m),"status"in t||(this.status=0),"active_sources"in t||(this.active_sources=[]),"created_at"in t||(this.created_at="0001-01-01T00:00:00.000Z"),Object.assign(this,t)}static createFrom(t={}){const n=ze,i=Be;let s=typeof t=="string"?JSON.parse(t):t;return"options"in s&&(s.options=n(s.options)),"active_sources"in s&&(s.active_sources=i(s.active_sources)),new et(s)}}class m{target;follow;include_previous;include_timestamps;tail_lines;since_seconds;since_time;limit_bytes;include_source_events;params;constructor(t={}){"target"in t||(this.target=""),"follow"in t||(this.follow=!1),"include_previous"in t||(this.include_previous=!1),"include_timestamps"in t||(this.include_timestamps=!1),"tail_lines"in t||(this.tail_lines=0),"since_seconds"in t||(this.since_seconds=0),"limit_bytes"in t||(this.limit_bytes=0),"include_source_events"in t||(this.include_source_events=!1),"params"in t||(this.params={}),Object.assign(this,t)}static createFrom(t={}){const n=Ft;let i=typeof t=="string"?JSON.parse(t):t;return"params"in i&&(i.params=n(i.params)),new m(i)}}var bt=(e=>(e[e.$zero=0]="$zero",e[e.LogSessionStatusActive=0]="LogSessionStatusActive",e[e.LogSessionStatusPaused=1]="LogSessionStatusPaused",e[e.LogSessionStatusClosed=2]="LogSessionStatusClosed",e[e.LogSessionStatusError=3]="LogSessionStatusError",e[e.LogSessionStatusConnecting=4]="LogSessionStatusConnecting",e[e.LogSessionStatusInitializing=5]="LogSessionStatusInitializing",e))(bt||{});class N{id;labels;constructor(t={}){"id"in t||(this.id=""),"labels"in t||(this.labels={}),Object.assign(this,t)}static createFrom(t={}){const n=Ft;let i=typeof t=="string"?JSON.parse(t):t;return"labels"in i&&(i.labels=n(i.labels)),new N(i)}}var St=(e=>(e[e.$zero=0]="$zero",e[e.StreamCommandPause=0]="StreamCommandPause",e[e.StreamCommandResume=1]="StreamCommandResume",e[e.StreamCommandClose=2]="StreamCommandClose",e))(St||{});const Re=a.Array(a.Any),Ft=a.Map(a.Any,a.Any),ke=T.createFrom,ze=m.createFrom,xe=N.createFrom,Be=a.Array(xe),We=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:T,Handler:Ut,LogSession:et,LogSessionOptions:m,LogSessionStatus:bt,LogSource:N,LogStreamCommand:St},Symbol.toStringTag,{value:"Module"}));class j{metric_id;min;max;avg;sum;p50;p90;p99;count;window;labels;constructor(t={}){"metric_id"in t||(this.metric_id=""),"min"in t||(this.min=0),"max"in t||(this.max=0),"avg"in t||(this.avg=0),"sum"in t||(this.sum=0),"p50"in t||(this.p50=0),"p90"in t||(this.p90=0),"p99"in t||(this.p99=0),"count"in t||(this.count=0),"window"in t||(this.window=F.$zero),"labels"in t||(this.labels={}),Object.assign(this,t)}static createFrom(t={}){const n=st;let i=typeof t=="string"?JSON.parse(t):t;return"labels"in i&&(i.labels=n(i.labels)),new j(i)}}class A{min;max;color;constructor(t={}){"min"in t||(this.min=0),"max"in t||(this.max=0),"color"in t||(this.color=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new A(n)}}class J{metric_id;value;timestamp;labels;constructor(t={}){"metric_id"in t||(this.metric_id=""),"value"in t||(this.value=0),"timestamp"in t||(this.timestamp="0001-01-01T00:00:00.000Z"),"labels"in t||(this.labels={}),Object.assign(this,t)}static createFrom(t={}){const n=st;let i=typeof t=="string"?JSON.parse(t):t;return"labels"in i&&(i.labels=n(i.labels)),new J(i)}}class P{timestamp;value;labels;constructor(t={}){"timestamp"in t||(this.timestamp="0001-01-01T00:00:00.000Z"),"value"in t||(this.value=0),"labels"in t||(this.labels={}),Object.assign(this,t)}static createFrom(t={}){const n=st;let i=typeof t=="string"?JSON.parse(t):t;return"labels"in i&&(i.labels=n(i.labels)),new P(i)}}class it{resource;metrics;constructor(t={}){"resource"in t||(this.resource=""),"metrics"in t||(this.metrics=[]),Object.assign(this,t)}static createFrom(t={}){const n=De;let i=typeof t=="string"?JSON.parse(t):t;return"metrics"in i&&(i.metrics=n(i.metrics)),new it(i)}}class I{id;name;unit;icon;color_ranges;format_string;supported_shapes;chart_group;constructor(t={}){"id"in t||(this.id=""),"name"in t||(this.name=""),"unit"in t||(this.unit=0),"icon"in t||(this.icon=""),"color_ranges"in t||(this.color_ranges=[]),"format_string"in t||(this.format_string=""),"supported_shapes"in t||(this.supported_shapes=[]),"chart_group"in t||(this.chart_group=""),Object.assign(this,t)}static createFrom(t={}){const n=qe,i=Ge;let s=typeof t=="string"?JSON.parse(t):t;return"color_ranges"in s&&(s.color_ranges=n(s.color_ranges)),"supported_shapes"in s&&(s.supported_shapes=i(s.supported_shapes)),new I(s)}}class C{time_series;current_value;aggregate_value;constructor(t={}){Object.assign(this,t)}static createFrom(t={}){const n=Le,i=Ve,s=Xe;let r=typeof t=="string"?JSON.parse(t):t;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 C(r)}}var Ot=(e=>(e[e.$zero=0]="$zero",e[e.ShapeCurrent=0]="ShapeCurrent",e[e.ShapeTimeseries=1]="ShapeTimeseries",e[e.ShapeAggregate=2]="ShapeAggregate",e))(Ot||{}),ut=(e=>(e[e.$zero=0]="$zero",e[e.UnitNone=0]="UnitNone",e[e.UnitBytes=1]="UnitBytes",e[e.UnitKB=2]="UnitKB",e[e.UnitMB=3]="UnitMB",e[e.UnitGB=4]="UnitGB",e[e.UnitPercentage=5]="UnitPercentage",e[e.UnitMillis=6]="UnitMillis",e[e.UnitSeconds=7]="UnitSeconds",e[e.UnitCount=8]="UnitCount",e[e.UnitOpsPerSec=9]="UnitOpsPerSec",e[e.UnitBytesPerSec=10]="UnitBytesPerSec",e[e.UnitMillicores=11]="UnitMillicores",e[e.UnitCores=12]="UnitCores",e))(ut||{});class nt{success;results;error;constructor(t={}){"success"in t||(this.success=!1),"results"in t||(this.results=[]),"error"in t||(this.error=""),Object.assign(this,t)}static createFrom(t={}){const n=Qe;let i=typeof t=="string"?JSON.parse(t):t;return"results"in i&&(i.results=n(i.results)),new nt(i)}}class E{metric_id;data_points;labels;constructor(t={}){"metric_id"in t||(this.metric_id=""),"data_points"in t||(this.data_points=[]),"labels"in t||(this.labels={}),Object.assign(this,t)}static createFrom(t={}){const n=ti,i=st;let s=typeof t=="string"?JSON.parse(t):t;return"data_points"in s&&(s.data_points=n(s.data_points)),"labels"in s&&(s.labels=i(s.labels)),new E(s)}}const st=a.Map(a.Any,a.Any),Ue=I.createFrom,De=a.Array(Ue),He=A.createFrom,qe=a.Array(He),Ge=a.Array(a.Any),Ze=E.createFrom,Le=a.Nullable(Ze),Me=J.createFrom,Ve=a.Nullable(Me),Ye=j.createFrom,Xe=a.Nullable(Ye),Ke=C.createFrom,Qe=a.Array(Ke),$e=P.createFrom,ti=a.Array($e),ei=Object.freeze(Object.defineProperty({__proto__:null,AggregateValue:j,ColorRange:A,CurrentValue:J,DataPoint:P,Handler:it,MetricDescriptor:I,MetricResult:C,MetricShape:Ot,MetricUnit:ut,QueryResponse:nt,TimeSeries:E},Symbol.toStringTag,{value:"Module"}));class wt{sessionId;sourceWindow;dragType;payload;constructor(t={}){"sessionId"in t||(this.sessionId=""),"sourceWindow"in t||(this.sourceWindow=""),"dragType"in t||(this.dragType=""),"payload"in t||(this.payload=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new wt(n)}}class vt{sessionId;sourceWindow;dragType;constructor(t={}){"sessionId"in t||(this.sessionId=""),"sourceWindow"in t||(this.sourceWindow=""),"dragType"in t||(this.dragType=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new vt(n)}}class Tt{sessionId;constructor(t={}){"sessionId"in t||(this.sessionId=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new Tt(n)}}class Nt{sessionId;targetWindow;constructor(t={}){"sessionId"in t||(this.sessionId=""),"targetWindow"in t||(this.targetWindow=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new Nt(n)}}class jt{sessionId;targetWindow;payload;clientX;clientY;constructor(t={}){"sessionId"in t||(this.sessionId=""),"targetWindow"in t||(this.targetWindow=""),"payload"in t||(this.payload=""),"clientX"in t||(this.clientX=0),"clientY"in t||(this.clientY=0),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new jt(n)}}class at{accepted;targetWindow;targetInstanceId;constructor(t={}){"accepted"in t||(this.accepted=!1),"targetWindow"in t||(this.targetWindow=""),"targetInstanceId"in t||(this.targetInstanceId=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new at(n)}}class R{name;kind;focused;constructor(t={}){"name"in t||(this.name=""),"kind"in t||(this.kind=""),"focused"in t||(this.focused=!1),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new R(n)}}var Ht=(e=>(e.$zero="",e.KindWorkspace="workspace",e.KindPanel="panel",e.KindSettings="settings",e))(Ht||{});class At{kind;initialState;anchorWindow;clientX;clientY;hasPosition;width;height;constructor(t={}){"kind"in t||(this.kind=""),"initialState"in t||(this.initialState={}),"anchorWindow"in t||(this.anchorWindow=""),"clientX"in t||(this.clientX=0),"clientY"in t||(this.clientY=0),"hasPosition"in t||(this.hasPosition=!1),"width"in t||(this.width=0),"height"in t||(this.height=0),Object.assign(this,t)}static createFrom(t={}){const n=qt;let i=typeof t=="string"?JSON.parse(t):t;return"initialState"in i&&(i.initialState=n(i.initialState)),new At(i)}}class rt{requestId;target;visible;constructor(t={}){"requestId"in t||(this.requestId=0),"target"in t||(this.target=""),"visible"in t||(this.visible=!1),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new rt(n)}}class Jt{name;kind;states;constructor(t={}){"name"in t||(this.name=""),"kind"in t||(this.kind=""),"states"in t||(this.states={}),Object.assign(this,t)}static createFrom(t={}){const n=qt;let i=typeof t=="string"?JSON.parse(t):t;return"states"in i&&(i.states=n(i.states)),new Jt(i)}}class Pt{windows;constructor(t={}){"windows"in t||(this.windows=[]),Object.assign(this,t)}static createFrom(t={}){const n=ni;let i=typeof t=="string"?JSON.parse(t):t;return"windows"in i&&(i.windows=n(i.windows)),new Pt(i)}}const qt=a.Map(a.Any,a.Any),ii=R.createFrom,ni=a.Array(ii),si=Object.freeze(Object.defineProperty({__proto__:null,DragBegin:wt,DragBeginEvent:vt,DragEndEvent:Tt,DragLeaveEvent:Nt,DragPointerEvent:jt,DropResult:at,Info:R,Kind:Ht,OpenRequest:At,SettingsState:rt,WindowClosedEvent:Jt,WindowsChangedEvent:Pt},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=z;exports.AggregateValue=j;exports.AvailablePlugin=H;exports.Capability=zt;exports.Category=Y;exports.ColorRange=A;exports.Connection=M;exports.ConnectionAutoConnect=V;exports.ConnectionAutoConnectRetry=xt;exports.ConnectionAutoConnectTrigger=Bt;exports.ConnectionLifecycle=O;exports.ConnectionStatus=mt;exports.ConnectionStatusCode=Wt;exports.CurrentValue=J;exports.DataPoint=P;exports.DownloadStats=G;exports.DropResult=at;exports.Duration=F;exports.FindPortForwardSessionRequest=U;exports.GetPluginComponentsInput=K;exports.GetResourceAreaComponentInput=Q;exports.GetResourceComponentsInput=$;exports.Handler=Et;exports.Handler$1=Ut;exports.Handler$2=it;exports.Info=R;exports.LogSession=et;exports.LogSessionOptions=m;exports.LogSessionStatus=bt;exports.LogSource=N;exports.LogStreamCommand=St;exports.MetricDescriptor=I;exports.MetricResult=C;exports.MetricShape=Ot;exports.MetricUnit=ut;exports.PluginAuthor=_;exports.PluginComponentArea=ht;exports.PluginComponents=d;exports.PluginInfo=gt;exports.PluginMaintainer=y;exports.PluginMeta=p;exports.PluginResourceComponent=b;exports.PluginTheme=f;exports.PluginThemeColors=h;exports.PortForwardConnectionType=dt;exports.PortForwardProtocol=pt;exports.PortForwardSession=D;exports.PortForwardSessionEncryption=c;exports.QueryResponse=nt;exports.ResourceComponent=tt;exports.ResourceComponentArea=yt;exports.Review=Z;exports.Session=x;exports.SessionOptions=B;exports.SessionState=ft;exports.Setting=u;exports.SettingFileSelection=w;exports.SettingOption=v;exports.SettingType=_t;exports.SettingsState=rt;exports.StateIsolationProvenance=S;exports.TimeSeries=E;exports.ValidationResult=X;exports.VersionInfo=L;exports.models=ge;exports.models$1=Kt;exports.models$2=We;exports.models$3=ei;exports.models$4=te;exports.models$5=ne;exports.models$6=Ce;exports.models$7=_e;exports.models$8=Ee;exports.models$9=si;
|