@omniviewdev/runtime 0.3.0 → 0.4.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 +15 -14
- package/dist/api.js +110 -125
- package/dist/bindings/encoding/json/index.d.ts +1 -0
- package/dist/bindings/encoding/json/models.d.ts +6 -0
- package/dist/bindings/github.com/omniviewdev/omniview/appservice.d.ts +18 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/diagnostics/diagnosticsclient.d.ts +51 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/diagnostics/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/data/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/data/servicewrapper.d.ts +5 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/models.d.ts +132 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/servicewrapper.d.ts +12 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +22 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/lifecycle/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/lifecycle/models.d.ts +29 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper.d.ts +11 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/models.d.ts +39 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper.d.ts +16 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/models.d.ts +72 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/servicewrapper.d.ts +11 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/models.d.ts +24 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/servicewrapper.d.ts +7 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/registry/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/registry/models.d.ts +94 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +53 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +14 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +4 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +61 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +92 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +24 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/servicewrapper.d.ts +18 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/models.d.ts +22 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/models.d.ts +55 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/servicewrapper.d.ts +7 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/client.d.ts +6 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/models.d.ts +10 -0
- package/dist/bindings/github.com/omniviewdev/omniview/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/servicewrapper.d.ts +48 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/telemetry/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/telemetry/telemetrybinding.d.ts +7 -0
- package/dist/bindings/github.com/omniviewdev/omniview/models.d.ts +38 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +101 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +199 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +79 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models.d.ts +133 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models.d.ts +207 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/models.d.ts +96 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models.d.ts +1199 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +169 -0
- package/dist/bindings/github.com/wailsapp/wails/v3/internal/eventcreate.d.ts +1 -0
- package/dist/bindings/time/index.d.ts +1 -0
- package/dist/bindings/time/models.d.ts +33 -0
- package/dist/calls-BmUnjINC.js +677 -0
- package/dist/calls-DZctVyoQ.cjs +1 -0
- package/dist/compat/legacyEnum.d.ts +10 -0
- package/dist/compat/resource.d.ts +4 -0
- package/dist/compat/types.d.ts +4 -0
- package/dist/context/plugins/PluginContext.d.ts +2 -2
- package/dist/events-BTiuwc-0.cjs +1 -0
- package/dist/events-DDTGFACO.js +371 -0
- package/dist/hooks/connection/useConnection.d.ts +5 -5
- package/dist/hooks/connection/useConnectionStatus.d.ts +7 -0
- package/dist/hooks/connection/useConnections.d.ts +4 -4
- package/dist/hooks/exec/useExecSession.d.ts +2 -2
- package/dist/hooks/logs/useLogSession.d.ts +1 -2
- package/dist/hooks/metric/useMetricProviders.d.ts +3 -3
- package/dist/hooks/metric/useMetricStream.d.ts +2 -2
- package/dist/hooks/metric/useResourceMetrics.d.ts +4 -3
- package/dist/hooks/networker/types.d.ts +3 -3
- package/dist/hooks/networker/usePortForwardSessions.d.ts +4 -4
- package/dist/hooks/networker/useResourcePortForwarder.d.ts +3 -4
- package/dist/hooks/resource/useEditorSchemas.d.ts +2 -2
- package/dist/hooks/resource/useEventBatcher.d.ts +3 -0
- package/dist/hooks/resource/useResource.d.ts +3 -4
- package/dist/hooks/resource/useResourceActions.d.ts +2 -3
- package/dist/hooks/resource/useResourceAreaComponent.d.ts +3 -3
- package/dist/hooks/resource/useResourceGroups.d.ts +6 -6
- package/dist/hooks/resource/useResourceMutations.d.ts +3 -4
- package/dist/hooks/resource/useResourceType.d.ts +1 -1
- package/dist/hooks/resource/useResourceTypes.d.ts +6 -6
- package/dist/hooks/resource/useResources.d.ts +3 -4
- package/dist/index-D2mKAO8s.js +1069 -0
- package/dist/index-D_aIcqH0.cjs +6 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1192 -1600
- package/dist/legacyEnum-DORXlU_y.js +13 -0
- package/dist/legacyEnum-DkV5yRdA.cjs +1 -0
- package/dist/models-B8OVRhdT.js +159 -0
- package/dist/models-BVKsY9u1.js +2285 -0
- package/dist/models-CExSuVU2.cjs +1 -0
- package/dist/models-DdAWPDgz.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +27 -1
- package/dist/models.js +259 -2244
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +198 -205
- package/dist/servicewrapper-BH5omp-N.js +708 -0
- package/dist/servicewrapper-dDhyC68C.cjs +1 -0
- package/dist/types/watch.d.ts +4 -5
- package/package.json +17 -13
- package/LICENSE +0 -661
- package/dist/Client-07zrOerN.js +0 -636
- package/dist/Client-CLvQWnuz.cjs +0 -1
- package/dist/wailsjs/go/data/Client.d.ts +0 -10
- package/dist/wailsjs/go/devserver/DevServerManager.d.ts +0 -24
- package/dist/wailsjs/go/diagnostics/DiagnosticsClient.d.ts +0 -18
- package/dist/wailsjs/go/exec/Client.d.ts +0 -26
- package/dist/wailsjs/go/logs/Client.d.ts +0 -16
- package/dist/wailsjs/go/main/App.d.ts +0 -8
- package/dist/wailsjs/go/metric/Client.d.ts +0 -12
- package/dist/wailsjs/go/models.d.ts +0 -1060
- package/dist/wailsjs/go/networker/Client.d.ts +0 -14
- package/dist/wailsjs/go/plugin/pluginManager.d.ts +0 -52
- package/dist/wailsjs/go/pluginlog/Manager.d.ts +0 -18
- package/dist/wailsjs/go/resource/Client.d.ts +0 -90
- package/dist/wailsjs/go/settings/Client.d.ts +0 -14
- package/dist/wailsjs/go/settings/provider.d.ts +0 -48
- package/dist/wailsjs/go/ui/Client.d.ts +0 -6
- package/dist/wailsjs/go/utils/Client.d.ts +0 -2
- package/dist/wailsjs/runtime/runtime.d.ts +0 -249
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Me=Object.defineProperty;var Oe=(e,t,r)=>t in e?Me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var a=(e,t,r)=>Oe(e,typeof t!="symbol"?t+"":t,r);const o=require("./index-D_aIcqH0.cjs"),u=require("./models-DdAWPDgz.cjs"),n=require("./calls-DZctVyoQ.cjs");function Ne(e,t){return n.ByID(3867104420,e,t).then(r=>P(r))}function je(e){return n.ByID(3795411887,e)}function He(){return n.ByID(1053995964).then(e=>Ee(e))}function We(e){return n.ByID(3231741321,e).then(t=>Qe(t))}function A(e){return n.ByID(2597562645,e).then(t=>F(t))}function ze(e,t,r){return n.ByID(1481837168,e,t,r)}function Ue(e,t){return n.ByID(230212281,e,t)}function Ve(){return n.ByID(2408440370).then(e=>F(e))}const P=u.Setting.createFrom,Ee=o.Array(o.Any),Qe=o.Map(o.Any,P),F=o.Map(o.Any,o.Any),qe=Object.freeze(Object.defineProperty({__proto__:null,GetSetting:Ne,HasPlugin:je,ListPlugins:He,ListSettings:We,PluginValues:A,SetSetting:ze,SetSettings:Ue,Values:Ve},Symbol.toStringTag,{value:"Module"}));function xe(e){return n.ByID(3150413499,e).then(t=>y(t))}function Je(e){return n.ByID(1152913314,e).then(t=>$t(t))}function G(e){return n.ByID(111194374,e).then(t=>B(t))}function ke(e){return n.ByID(3945933305,e)}function Ke(e){return n.ByID(2859775056,e).then(t=>C(t))}function Xe(e,t){return n.ByID(2209599792,e,t).then(r=>ft(r))}function Ye(e){return n.ByID(3963363730,e).then(t=>C(t))}function Ze(){return n.ByID(2477486666).then(e=>p(e))}function et(){return n.ByID(976517756).then(e=>p(e))}function tt(e){return n.ByID(1020548995,e).then(t=>p(t))}function nt(e,t){return n.ByID(2004740384,e,t).then(r=>p(r))}function rt(){return n.ByID(873697101).then(e=>R(e))}function ot(){return n.ByID(637134283).then(e=>It(e))}function ct(){return n.ByID(550607756).then(e=>ht(e))}function ut(e,t){return n.ByID(288660195,e,t).then(r=>y(r))}function it(e){return n.ByID(1771013494,e).then(t=>y(t))}function b(e){return n.ByID(2433379724,e).then(t=>y(t))}function st(e,t,r){return n.ByID(2783597264,e,t,r).then(c=>R(c))}function at(e){return n.ByID(1369550929,e).then(t=>y(t))}const y=u.PluginInfo.createFrom,yt=u.DownloadStats.createFrom,$t=o.Nullable(yt),B=u.PluginMeta.createFrom,lt=u.VersionInfo.createFrom,C=o.Array(lt),pt=u.Review.createFrom,ft=o.Array(pt),p=o.Nullable(B),Dt=u.AvailablePlugin.createFrom,R=o.Array(Dt),It=o.Array(B),ht=o.Array(y),Bt=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:xe,GetPluginDownloadStats:Je,GetPluginMeta:G,GetPluginReadme:ke,GetPluginReleaseHistory:Ke,GetPluginReviews:Xe,GetPluginVersions:Ye,InstallFromPathPrompt:Ze,InstallInDevMode:et,InstallPluginFromPath:tt,InstallPluginVersion:nt,ListAvailablePlugins:rt,ListPluginMetas:ot,ListPlugins:ct,LoadPlugin:ut,ReloadPlugin:it,RetryFailedPlugin:b,SearchPlugins:st,UninstallPlugin:at},Symbol.toStringTag,{value:"Module"}));function Tt(e){return n.ByID(122243240,e)}function St(){return n.ByID(269082212).then(e=>Mt(e))}function dt(e){return n.ByID(1421156656,e).then(t=>T(t))}function gt(e){return n.ByID(3143996982,e).then(t=>_(t))}function mt(e){return n.ByID(1695819138,e)}function At(e){return n.ByID(1827194808,e).then(t=>Ot(t))}function Pt(e){return n.ByID(72059321,e)}function Ft(e){return n.ByID(62418781,e).then(t=>Nt(t))}function Gt(e){return n.ByID(2222012564,e).then(t=>jt(t))}function bt(e){return n.ByID(2753368941,e)}function Ct(e){return n.ByID(3825211425,e)}function Rt(e){return n.ByID(2121298005,e).then(t=>Ht(t))}function vt(){return n.ByID(3038957305).then(e=>l(e))}function _t(){return n.ByID(3369612893)}function wt(e,t){return n.ByID(252556992,e,t)}function Lt(e){return n.ByID(1704369097,e)}function v(){return n.ByID(2936263106).then(e=>_(e))}const T=u.Category.createFrom,Mt=o.Array(T),_=o.Map(o.Any,o.Any),Ot=o.Array(o.Any),Nt=o.Array(o.Any),jt=u.Setting.createFrom,Ht=o.Array(o.Any);var l=function e(...t){return l===e&&(l=Wt),l(...t)};const Wt=o.Map(o.Any,T),zt=Object.freeze(Object.defineProperty({__proto__:null,GetBool:Tt,GetCategories:St,GetCategory:dt,GetCategoryValues:gt,GetFloat:mt,GetFloatSlice:At,GetInt:Pt,GetIntSlice:Ft,GetSetting:Gt,GetSettingValue:bt,GetString:Ct,GetStringSlice:Rt,ListSettings:vt,LoadSettings:_t,SetSetting:wt,SetSettings:Lt,Values:v},Symbol.toStringTag,{value:"Module"}));class S{constructor(t={}){a(this,"connection");a(this,"started");a(this,"resources");a(this,"resourceCounts");a(this,"totalResources");a(this,"syncedCount");a(this,"errorCount");a(this,"lastSyncTime");"connection"in t||(this.connection=new u.Connection),"started"in t||(this.started=!1),"resources"in t||(this.resources={}),"resourceCounts"in t||(this.resourceCounts={}),"totalResources"in t||(this.totalResources=0),"syncedCount"in t||(this.syncedCount=0),"errorCount"in t||(this.errorCount=0),Object.assign(this,t)}static createFrom(t={}){const r=Ut,c=Vt,i=Et;let s=typeof t=="string"?JSON.parse(t):t;return"connection"in s&&(s.connection=r(s.connection)),"resources"in s&&(s.resources=c(s.resources)),"resourceCounts"in s&&(s.resourceCounts=i(s.resourceCounts)),new S(s)}}const Ut=u.Connection.createFrom,Vt=o.Map(o.Any,o.Any),Et=o.Map(o.Any,o.Any);function Qt(e,t){return n.ByID(4065522324,e,t)}function qt(e,t){return n.ByID(1688967279,e,t).then(r=>ce(r))}function w(e,t,r,c){return n.ByID(1613386605,e,t,r,c).then(i=>pn(i))}function L(e,t,r,c){return n.ByID(1477526970,e,t,r,c).then(i=>Dn(i))}function xt(e,t,r){return n.ByID(1338477906,e,t,r)}function M(e,t,r,c,i){return n.ByID(1844283666,e,t,r,c,i).then(s=>hn(s))}function Jt(e,t,r,c){return n.ByID(4148812394,e,t,r,c).then(i=>Tn(i))}function O(e,t,r,c){return n.ByID(194970279,e,t,r,c).then(i=>dn(i))}function N(e,t,r){return n.ByID(419011114,e,t,r).then(c=>mn(c))}function j(){return n.ByID(4153677080).then(e=>Fn(e))}function H(e,t){return n.ByID(950535743,e,t).then(r=>f(r))}function W(e,t){return n.ByID(537508515,e,t).then(r=>ue(r))}function z(e,t){return n.ByID(1394342402,e,t).then(r=>bn(r))}function kt(e,t,r){return n.ByID(1947262600,e,t,r).then(c=>Rn(c))}function Kt(e,t,r,c){return n.ByID(1644192689,e,t,r,c).then(i=>_n(i))}function Xt(e,t){return n.ByID(2699561690,e,t).then(r=>Ln(r))}function Yt(e,t){return n.ByID(1474609809,e,t).then(r=>On(r))}function Zt(e,t){return n.ByID(4077050094,e,t).then(r=>Nn(r))}function en(e,t,r,c,i,s){return n.ByID(3171791798,e,t,r,c,i,s).then(h=>Hn(h))}function tn(e,t){return n.ByID(114848330,e,t).then(r=>ie(r))}function U(e,t){return n.ByID(4290498491,e,t).then(r=>Wn(r))}function nn(e,t,r){return n.ByID(137675652,e,t,r)}function V(e,t){return n.ByID(2078766795,e,t).then(r=>zn(r))}function E(e,t){return n.ByID(3311395752,e,t).then(r=>Un(r))}function Q(e,t){return n.ByID(42345827,e,t).then(r=>En(r))}function rn(e){return n.ByID(854008408,e)}function on(e,t){return n.ByID(3547410887,e,t)}function cn(e,t,r){return n.ByID(3516169863,e,t,r)}function q(e,t,r,c){return n.ByID(3093409425,e,t,r,c).then(i=>qn(i))}function x(){return n.ByID(1598984489).then(e=>xn(e))}function J(e){return n.ByID(1775572154,e).then(t=>d(t))}function un(){return n.ByID(3217612415).then(e=>ue(e))}function sn(e){return n.ByID(2037329938,e).then(t=>d(t))}function k(e,t){return n.ByID(421198049,e,t)}function an(e,t,r,c,i){return n.ByID(3987850310,e,t,r,c,i).then(s=>kn(s))}function yn(e,t,r){return n.ByID(555702059,e,t,r)}function K(e,t){return n.ByID(3276991559,e,t).then(r=>ce(r))}function X(e,t){return n.ByID(3389223006,e,t)}function Y(e,t){return n.ByID(794258089,e,t).then(r=>f(r))}function Z(e,t){return n.ByID(1661153284,e,t)}function $n(e,t,r){return n.ByID(3981374696,e,t,r)}function ee(e,t,r,c,i){return n.ByID(2990116431,e,t,r,c,i)}function te(e,t,r){return n.ByID(2856546527,e,t,r)}function ne(e,t,r){return n.ByID(3710015102,e,t,r)}function re(e,t,r,c){return n.ByID(2408192164,e,t,r,c).then(i=>Xn(i))}function oe(e,t){return n.ByID(2131988692,e,t).then(r=>f(r))}const ce=u.ConnectionStatus.createFrom,ln=u.CreateResult.createFrom,pn=o.Nullable(ln),fn=u.DeleteResult.createFrom,Dn=o.Nullable(fn),In=u.ActionResult.createFrom,hn=o.Nullable(In),Bn=u.FindResult.createFrom,Tn=o.Nullable(Bn),Sn=u.GetResult.createFrom,dn=o.Nullable(Sn),gn=u.ActionDescriptor.createFrom,mn=o.Array(gn),An=S.createFrom,Pn=o.Array(An),Fn=o.Map(o.Any,Pn),f=u.Connection.createFrom,ue=o.Array(o.Any),Gn=u.EditorSchema.createFrom,bn=o.Array(Gn),Cn=u.FilterField.createFrom,Rn=o.Array(Cn),vn=u.ResourceHealth.createFrom,_n=o.Nullable(vn),wn=u.RelationshipDescriptor.createFrom,Ln=o.Array(wn),Mn=u.ResourceCapabilities.createFrom,On=o.Nullable(Mn),Nn=u.ResourceDefinition.createFrom,jn=u.ResourceEvent.createFrom,Hn=o.Array(jn),ie=u.ResourceGroup.createFrom,Wn=o.Map(o.Any,ie),se=u.ResourceMeta.createFrom,zn=o.Nullable(se),Un=o.Map(o.Any,se),Vn=u.WatchConnectionSummary.createFrom,En=o.Nullable(Vn),Qn=u.ListResult.createFrom,qn=o.Nullable(Qn),d=o.Array(f),xn=o.Map(o.Any,d),Jn=u.ResolvedRelationship.createFrom,kn=o.Array(Jn),Kn=u.UpdateResult.createFrom,Xn=o.Nullable(Kn),Yn=Object.freeze(Object.defineProperty({__proto__:null,AddConnection:Qt,CheckConnection:qt,Create:w,Delete:L,EnsureResourceWatch:xt,ExecuteAction:M,Find:Jt,Get:O,GetActions:N,GetAllConnectionStates:j,GetConnection:H,GetConnectionNamespaces:W,GetEditorSchemas:z,GetFilterFields:kt,GetHealth:Kt,GetRelationships:Xt,GetResourceCapabilities:Yt,GetResourceDefinition:Zt,GetResourceEvents:en,GetResourceGroup:tn,GetResourceGroups:U,GetResourceSchema:nn,GetResourceType:V,GetResourceTypes:E,GetWatchState:Q,HasPlugin:rn,HasResourceType:on,IsResourceWatchRunning:cn,List:q,ListAllConnections:x,ListConnections:J,ListPlugins:un,LoadConnections:sn,RemoveConnection:k,ResolveRelationships:an,RestartResourceWatch:yn,StartConnection:K,StartConnectionWatch:X,StopConnection:Y,StopConnectionWatch:Z,StopResourceWatch:$n,StreamAction:ee,SubscribeResource:te,UnsubscribeResource:ne,Update:re,UpdateConnection:oe},Symbol.toStringTag,{value:"Module"}));function Zn(e,t){return n.ByID(3653639550,e,t)}function ae(e,t){return n.ByID(851823419,e,t)}function er(e){return n.ByID(2991415449,e).then(t=>tr(t))}function ye(e,t,r){return n.ByID(2695679023,e,t,r)}const tr=o.Array(o.Any),nr=Object.freeze(Object.defineProperty({__proto__:null,Delete:Zn,Get:ae,Keys:er,Set:ye},Symbol.toStringTag,{value:"Module"}));function rr(e){return n.ByID(93318075,e).then(t=>(t[0]=$(t[0]),t[1]=o.ByteSlice(t[1]),t))}function or(e){return n.ByID(1353297556,e)}function $e(e,t,r){return n.ByID(608251756,e,t,r).then(c=>$(c))}function cr(e){return n.ByID(4182196712,e).then(t=>$(t))}function ur(e){return n.ByID(3993344525,e).then(t=>$(t))}function ir(e,t){return n.ByID(1779192716,e,t).then(r=>hr(r))}function sr(){return n.ByID(4033362541).then(e=>Br(e))}function ar(e){return n.ByID(2619212338,e).then(t=>pe(t))}function yr(e){return n.ByID(1371268636,e).then(t=>$(t))}function $r(e){return n.ByID(3881019319,e)}function lr(){return n.ByID(3006426324).then(e=>Tr(e))}function pr(){return n.ByID(265791345).then(e=>Sr(e))}function fr(e,t,r){return n.ByID(1492965384,e,t,r)}function Dr(e,t){return n.ByID(486465741,e,t)}const Ir=u.Session.createFrom,$=o.Nullable(Ir),le=u.Handler.createFrom,hr=o.Nullable(le),pe=o.Map(o.Any,le),Br=o.Map(o.Any,pe),Tr=o.Array(o.Any),Sr=o.Array($),dr=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:rr,CloseSession:or,CreateSession:$e,CreateTerminal:cr,DetachSession:ur,GetHandler:ir,GetHandlers:sr,GetPluginHandlers:ar,GetSession:yr,HasPlugin:$r,ListPlugins:lr,ListSessions:pr,ResizeSession:fr,WriteSession:Dr},Symbol.toStringTag,{value:"Module"}));function fe(e){return n.ByID(2776241946,e)}function De(e,t,r){return n.ByID(1762441314,e,t,r).then(c=>D(c))}function gr(e){return n.ByID(1474987050,e).then(t=>D(t))}function mr(e){return n.ByID(3156347865,e).then(t=>vr(t))}function Ar(e){return n.ByID(1444002509,e)}function Pr(){return n.ByID(3104582886).then(e=>_r(e))}function Fr(){return n.ByID(2249742267).then(e=>wr(e))}function Gr(e,t){return n.ByID(1212190993,e,t)}function br(e,t){return n.ByID(2177127885,e,t).then(r=>D(r))}const Cr=u.LogSession.createFrom,D=o.Nullable(Cr),Rr=u.Handler$1.createFrom,vr=o.Array(Rr),_r=o.Array(o.Any),wr=o.Array(D),Lr=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:fe,CreateSession:De,GetSession:gr,GetSupportedResources:mr,HasPlugin:Ar,ListPlugins:Pr,ListSessions:Fr,SendCommand:Gr,UpdateSessionOptions:br},Symbol.toStringTag,{value:"Module"}));class g{constructor(t={}){a(this,"plugin_id");a(this,"provider_id");a(this,"name");a(this,"icon");a(this,"description");a(this,"handlers");"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=Or;let c=typeof t=="string"?JSON.parse(t):t;return"handlers"in c&&(c.handlers=r(c.handlers)),new g(c)}}const Mr=u.Handler$2.createFrom,Or=o.Array(Mr);function Ie(){return n.ByID(3919346639).then(e=>de(e))}function he(e){return n.ByID(3953821778,e).then(t=>de(t))}function Nr(e){return n.ByID(1815388456,e)}function jr(){return n.ByID(2730149903).then(e=>zr(e))}function Hr(e,t,r){return n.ByID(3947209283,e,t,r).then(c=>ge(c))}function Be(e,t,r,c,i,s,h,ve,_e,we){return n.ByID(2480040278,e,t,r,c,i,s,h,ve,_e,we).then(Le=>Vr(Le))}function Te(e,t,r){return n.ByID(3738888803,e,t,r)}function Se(e){return n.ByID(3994236150,e)}const Wr=g.createFrom,de=o.Array(Wr),zr=o.Array(o.Any),Ur=u.QueryResponse.createFrom,ge=o.Nullable(Ur),Vr=o.Map(o.Any,ge),Er=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:Ie,GetProvidersForResource:he,HasPlugin:Nr,ListPlugins:jr,Query:Hr,QueryAll:Be,Subscribe:Te,Unsubscribe:Se},Symbol.toStringTag,{value:"Module"}));function me(e){return n.ByID(182596922,e).then(t=>I(t))}function Ae(e,t,r){return n.ByID(981100722,e,t,r).then(c=>m(c))}function Qr(e){return n.ByID(2157304970,e).then(t=>I(t))}function qr(e){return n.ByID(650882,e).then(t=>Ge(t))}function xr(e){return n.ByID(3624690437,e)}function Pe(){return n.ByID(2195697754).then(e=>m(e))}function Jr(){return n.ByID(167463150).then(e=>Ge(e))}function kr(e,t){return n.ByID(2090415403,e,t).then(r=>m(r))}function Fe(e,t,r){return n.ByID(780445954,e,t,r).then(c=>I(c))}const Kr=u.PortForwardSession.createFrom,I=o.Nullable(Kr),m=o.Array(I),Ge=o.Array(o.Any),Xr=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:me,FindPortForwardSessions:Ae,GetPortForwardSession:Qr,GetSupportedPortForwardTargets:qr,HasPlugin:xr,ListAllPortForwardSessions:Pe,ListPlugins:Jr,ListPortForwardSessions:kr,StartResourcePortForwardingSession:Fe},Symbol.toStringTag,{value:"Module"}));function Yr(e){return n.ByID(2106300110,e).then(t=>eo(t))}function be(e){return n.ByID(765209827,e).then(t=>to(t))}function Zr(e){return n.ByID(2355436169,e).then(t=>Re(t))}const Ce=u.ResourceComponent.createFrom,Re=o.Array(Ce),eo=o.Map(o.Any,Re),to=o.Nullable(Ce),no=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:Yr,GetResourceAreaComponent:be,GetResourceComponents:Zr},Symbol.toStringTag,{value:"Module"}));exports.ClosePortForwardSession=me;exports.CloseSession=fe;exports.Create=w;exports.CreateSession=$e;exports.CreateSession$1=De;exports.Delete=L;exports.ExecuteAction=M;exports.FindPortForwardSessions=Ae;exports.Get=ae;exports.Get$1=O;exports.GetActions=N;exports.GetAllConnectionStates=j;exports.GetConnection=H;exports.GetConnectionNamespaces=W;exports.GetEditorSchemas=z;exports.GetPluginMeta=G;exports.GetProviders=Ie;exports.GetProvidersForResource=he;exports.GetResourceAreaComponent=be;exports.GetResourceGroups=U;exports.GetResourceType=V;exports.GetResourceTypes=E;exports.GetWatchState=Q;exports.List=q;exports.ListAllConnections=x;exports.ListAllPortForwardSessions=Pe;exports.ListConnections=J;exports.PluginValues=A;exports.QueryAll=Be;exports.RemoveConnection=k;exports.RetryFailedPlugin=b;exports.Set=ye;exports.StartConnection=K;exports.StartConnectionWatch=X;exports.StartResourcePortForwardingSession=Fe;exports.StopConnection=Y;exports.StopConnectionWatch=Z;exports.StreamAction=ee;exports.Subscribe=Te;exports.SubscribeResource=te;exports.Unsubscribe=Se;exports.UnsubscribeResource=ne;exports.Update=re;exports.UpdateConnection=oe;exports.Values=v;exports.servicewrapper=dr;exports.servicewrapper$1=Xr;exports.servicewrapper$2=Bt;exports.servicewrapper$3=Yn;exports.servicewrapper$4=qe;exports.servicewrapper$5=zt;exports.servicewrapper$6=no;exports.servicewrapper$7=Lr;exports.servicewrapper$8=Er;exports.servicewrapper$9=nr;
|
package/dist/types/watch.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const WatchState: typeof
|
|
4
|
-
export type
|
|
5
|
-
export declare const SyncPolicy: typeof resource.SyncPolicy;
|
|
1
|
+
import { WatchState as GeneratedWatchState } from '../bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models';
|
|
2
|
+
/** Carries both the v3 member names and the ones plugins were built against. */
|
|
3
|
+
export declare const WatchState: typeof GeneratedWatchState;
|
|
4
|
+
export type WatchState = GeneratedWatchState;
|
|
6
5
|
/**
|
|
7
6
|
* WatchStateEvent is emitted when a resource's watch state changes.
|
|
8
7
|
* Matches Go type: plugin-sdk/pkg/v1/resource.WatchStateEvent
|
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.4.0",
|
|
6
6
|
"description": "Runtime shared library for Omniview",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
@@ -39,15 +39,24 @@
|
|
|
39
39
|
"registry": "https://registry.npmjs.org/",
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsc && vite build",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"test:watch": "vitest",
|
|
46
|
+
"test:verbose": "vitest run --reporter=verbose",
|
|
47
|
+
"typecheck": "tsc -p tsconfig.app.json --noEmit",
|
|
48
|
+
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
|
|
49
|
+
"lint:fix": "pnpm lint -- --fix"
|
|
50
|
+
},
|
|
42
51
|
"keywords": [
|
|
43
52
|
"omniview"
|
|
44
53
|
],
|
|
45
54
|
"devDependencies": {
|
|
55
|
+
"@omniviewdev/base-ui": "^0.2.2",
|
|
46
56
|
"@tanstack/react-query": "^5.76.1",
|
|
47
|
-
"@types/node": "^
|
|
57
|
+
"@types/node": "^25.5.0",
|
|
48
58
|
"@types/react": "^19.0.0",
|
|
49
59
|
"@vitejs/plugin-react": "^4.2.1",
|
|
50
|
-
"notistack": "^3.0.1",
|
|
51
60
|
"react": "^19.0.0",
|
|
52
61
|
"react-dom": "^19.0.0",
|
|
53
62
|
"ts-node": "^10.9.2",
|
|
@@ -56,17 +65,12 @@
|
|
|
56
65
|
"vite": "^5.2.10",
|
|
57
66
|
"vite-plugin-dts": "^4.5.3"
|
|
58
67
|
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@omniviewdev/base-ui": "^0.2.1"
|
|
70
|
+
},
|
|
59
71
|
"dependencies": {
|
|
72
|
+
"@wailsio/runtime": "3.0.0-beta.29",
|
|
60
73
|
"lodash.get": "^4.4.2",
|
|
61
74
|
"ts-invariant": "^0.10.3"
|
|
62
|
-
},
|
|
63
|
-
"scripts": {
|
|
64
|
-
"build": "tsc && vite build",
|
|
65
|
-
"test": "vitest run",
|
|
66
|
-
"test:watch": "vitest",
|
|
67
|
-
"test:verbose": "vitest run --reporter=verbose",
|
|
68
|
-
"typecheck": "tsc -p tsconfig.app.json --noEmit",
|
|
69
|
-
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
|
|
70
|
-
"lint:fix": "pnpm lint -- --fix"
|
|
71
75
|
}
|
|
72
|
-
}
|
|
76
|
+
}
|