@omniviewdev/runtime 0.8.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.js +183 -186
  3. package/dist/calls-Bg_uMVc9.cjs +1 -0
  4. package/dist/{calls-C1yoW06C.js → calls-BvZkVSse.js} +11 -5
  5. package/dist/context/drawer/types.d.ts +3 -2
  6. package/dist/context/settings/SettingsContext.d.ts +1 -1
  7. package/dist/{events-CtgYnKmS.cjs → events-DnLqUWri.cjs} +1 -1
  8. package/dist/{events-Bcx6NsMp.js → events-uBheGmqm.js} +1 -1
  9. package/dist/hooks/exec/useExecSession.d.ts +11 -1
  10. package/dist/hooks/resource/useResource.d.ts +1 -1
  11. package/dist/index-BVi9X4oU.cjs +6 -0
  12. package/dist/{index-D2mKAO8s.js → index-zyAgCXOO.js} +52 -52
  13. package/dist/index.cjs +4 -4
  14. package/dist/index.js +2934 -2089
  15. package/dist/{legacyEnum-DORXlU_y.js → legacyEnum-CKqyRmbX.js} +3 -1
  16. package/dist/models-CT4kHj47.js +2444 -0
  17. package/dist/models-DQl7tqts.cjs +1 -0
  18. package/dist/models-DU8pTcoZ.js +142 -0
  19. package/dist/models-KV9f8Ceh.cjs +1 -0
  20. package/dist/models.cjs +1 -1
  21. package/dist/models.js +229 -232
  22. package/dist/resourceIcons.d.ts +2 -2
  23. package/dist/router/Link.d.ts +1 -1
  24. package/dist/router/index.d.ts +1 -1
  25. package/dist/router/usePluginRouter.d.ts +1 -1
  26. package/dist/runtime.cjs +1 -1
  27. package/dist/runtime.js +6 -6
  28. package/dist/servicewrapper-CCW7kIVs.cjs +1 -0
  29. package/dist/servicewrapper-Q1ww3DUo.js +849 -0
  30. package/dist/types/app.d.ts +1 -1
  31. package/package.json +22 -16
  32. package/dist/calls-DUhq86Ki.cjs +0 -1
  33. package/dist/graphservice-1J8q3eeL.cjs +0 -1
  34. package/dist/graphservice-CUg1PUsC.js +0 -852
  35. package/dist/index-D_aIcqH0.cjs +0 -6
  36. package/dist/models-4EtitZnM.js +0 -2447
  37. package/dist/models-BQsuB2Lj.cjs +0 -1
  38. package/dist/models-BpVWHqlF.cjs +0 -1
  39. package/dist/models-C5sf8GNY.js +0 -145
@@ -1,6 +1,6 @@
1
1
  import { default as React, ComponentType } from 'react';
2
2
  import { ExtensionPointSettings } from './extensions';
3
- import { RouteObject } from 'react-router-dom';
3
+ import { RouteObject } from 'react-router';
4
4
  /** TODO: Add whatever props we need here */
5
5
  export declare class PluginWindowRootProps {
6
6
  }
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.8.1",
5
+ "version": "0.9.0",
6
6
  "description": "Runtime shared library for Omniview",
7
7
  "sideEffects": false,
8
8
  "type": "module",
@@ -52,25 +52,31 @@
52
52
  "omniview"
53
53
  ],
54
54
  "devDependencies": {
55
- "@omniviewdev/base-ui": "~0.7.2",
56
- "@tanstack/react-query": "^5.76.1",
57
- "@types/node": "^25.5.0",
58
- "@types/react": "^19.0.0",
59
- "@vitejs/plugin-react": "^4.2.1",
60
- "react": "^19.0.0",
61
- "react-dom": "^19.0.0",
62
- "ts-node": "^10.9.2",
63
- "tsup": "^8.0.2",
64
- "typescript": "^5.8.3",
65
- "vite": "^5.2.10",
66
- "vite-plugin-dts": "^4.5.3"
55
+ "@omniviewdev/base-ui": "~0.8.0",
56
+ "@tanstack/react-query": "5.105.0",
57
+ "@types/node": "26.6.5",
58
+ "@types/react": "19.3.0",
59
+ "@vitejs/plugin-react": "5.2.0",
60
+ "react": "19.3.1",
61
+ "react-dom": "19.3.1",
62
+ "react-router": "8.5.0",
63
+ "ts-node": "10.9.2",
64
+ "tsup": "9.0.0",
65
+ "typescript": "npm:@typescript/typescript6@6.0.2",
66
+ "vite": "7.3.7",
67
+ "vite-plugin-dts": "5.1.2",
68
+ "@typescript/native": "npm:typescript@7.0.2"
67
69
  },
68
70
  "peerDependencies": {
69
- "@omniviewdev/base-ui": "~0.7.2"
71
+ "@omniviewdev/base-ui": "~0.8.0",
72
+ "@tanstack/react-query": "^5.105.0",
73
+ "react": "^19.3.1",
74
+ "react-dom": "^19.3.1",
75
+ "react-router": "^8.5.0"
70
76
  },
71
77
  "dependencies": {
72
78
  "@wailsio/runtime": "3.0.0-beta.34",
73
- "lodash.get": "^4.4.2",
74
- "ts-invariant": "^0.10.3"
79
+ "lodash.get": "4.4.2",
80
+ "ts-invariant": "0.10.3"
75
81
  }
76
82
  }
@@ -1 +0,0 @@
1
- "use strict";const h=require("./index-D_aIcqH0.cjs");var M=Function.prototype.toString,y=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,m;if(typeof y=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw m}}),m={},y(function(){throw 42},null,S)}catch(r){r!==m&&(y=null)}else y=null;var k=/^\s*class\b/,E=function(e){try{var t=M.call(e);return k.test(t)}catch{return!1}},R=function(e){try{return E(e)?!1:(M.call(e),!0)}catch{return!1}},w=Object.prototype.toString,B="[object Object]",N="[object Function]",H="[object GeneratorFunction]",q="[object HTMLAllCollection]",z="[object HTML document.all class]",G="[object HTMLCollection]",J=typeof Symbol=="function"&&!!Symbol.toStringTag,W=!(0 in[,]),O=function(){return!1};if(typeof document=="object"){var K=document.all;w.call(K)===w.call(document.all)&&(O=function(e){if((W||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=w.call(e);return(t===q||t===z||t===G||t===B)&&e("")==null}catch{}return!1})}function Q(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{y(r,null,S)}catch(e){if(e!==m)return!1}return!E(r)&&R(r)}function V(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(J)return R(r);if(E(r))return!1;var e=w.call(r);return e!==N&&e!==H&&!/^\[object HTML/.test(e)?!1:R(r)}const d=y?Q:V;var g;class A extends Error{constructor(e,t){super(e,t),this.name="CancelError"}}class b extends Error{constructor(e,t,n){super((n??"Unhandled rejection in cancelled promise.")+" Reason: "+X(t),{cause:t}),this.promise=e,this.name="CancelledRejectionError"}}const u=Symbol("barrier"),P=Symbol("cancelImpl"),C=(g=Symbol.species)!==null&&g!==void 0?g:Symbol("speciesPolyfill");class l extends Promise{constructor(e,t){let n,o;if(super((a,v)=>{n=a,o=v}),this.constructor[C]!==Promise)throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property.");let c={promise:this,resolve:n,reject:o,get oncancelled(){return t??null},set oncancelled(a){t=a??void 0}};const i={get root(){return i},resolving:!1,settled:!1};Object.defineProperties(this,{[u]:{configurable:!1,enumerable:!1,writable:!0,value:null},[P]:{configurable:!1,enumerable:!1,writable:!1,value:x(c,i)}});const s=I(c,i);try{e(L(c,i),s)}catch(a){i.resolving?console.log("Unhandled exception in CancellablePromise executor.",a):s(a)}}cancel(e){return new l(t=>{Promise.all([this[P](new A("Promise cancelled.",{cause:e})),Y(this)]).then(()=>t(),()=>t())})}cancelOn(e){return e.aborted?this.cancel(e.reason):e.addEventListener("abort",()=>void this.cancel(e.reason),{capture:!0}),this}then(e,t,n){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.then called on an invalid object.");if(d(e)||(e=D),d(t)||(t=F),e===D&&t==F)return new l(c=>c(this));const o={};return this[u]=o,new l((c,i)=>{super.then(s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(e(s))}catch(v){i(v)}},s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(t(s))}catch(v){i(v)}})},async c=>{try{return n==null?void 0:n(c)}finally{await this.cancel(c)}})}catch(e,t){return this.then(void 0,e,t)}finally(e,t){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.finally called on an invalid object.");return d(e)?this.then(n=>l.resolve(e()).then(()=>n),n=>l.resolve(e()).then(()=>{throw n}),t):this.then(e,e,t)}static get[C](){return Promise}static all(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.all(t).then(o,c)},o=>j(n,t,o));return n}static allSettled(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.allSettled(t).then(o,c)},o=>j(n,t,o));return n}static any(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.any(t).then(o,c)},o=>j(n,t,o));return n}static race(e){let t=Array.from(e);const n=new l((o,c)=>{Promise.race(t).then(o,c)},o=>j(n,t,o));return n}static cancel(e){const t=new l(()=>{});return t.cancel(e),t}static timeout(e,t){const n=new l(()=>{});return AbortSignal&&typeof AbortSignal=="function"&&AbortSignal.timeout&&typeof AbortSignal.timeout=="function"?AbortSignal.timeout(e).addEventListener("abort",()=>void n.cancel(t)):setTimeout(()=>void n.cancel(t),e),n}static sleep(e,t){return new l(n=>{setTimeout(()=>n(t),e)})}static reject(e){return new l((t,n)=>n(e))}static resolve(e){return e instanceof l?e:new l(t=>t(e))}static withResolvers(){let e={oncancelled:null};return e.promise=new l((t,n)=>{e.resolve=t,e.reject=n},t=>{var n;(n=e.oncancelled)===null||n===void 0||n.call(e,t)}),e}}function x(r,e){let t;return n=>{if(e.settled||(e.settled=!0,e.reason=n,r.reject(n),Promise.prototype.then.call(r.promise,void 0,o=>{if(o!==n)throw o})),!(!e.reason||!r.oncancelled))return t=new Promise(o=>{try{o(r.oncancelled(e.reason.cause))}catch(c){Promise.reject(new b(r.promise,c,"Unhandled exception in oncancelled callback."))}}).catch(o=>{Promise.reject(new b(r.promise,o,"Unhandled rejection in oncancelled callback."))}),r.oncancelled=null,t}}function L(r,e){return t=>{if(!e.resolving){if(e.resolving=!0,t===r.promise){if(e.settled)return;e.settled=!0,r.reject(new TypeError("A promise cannot be resolved with itself."));return}if(t!=null&&(typeof t=="object"||typeof t=="function")){let n;try{n=t.then}catch(o){e.settled=!0,r.reject(o);return}if(d(n)){try{let i=t.cancel;if(d(i)){const s=a=>{Reflect.apply(i,t,[a])};e.reason?x(Object.assign(Object.assign({},r),{oncancelled:s}),e)(e.reason):r.oncancelled=s}}catch{}const o={root:e.root,resolving:!1,get settled(){return this.root.settled},set settled(i){this.root.settled=i},get reason(){return this.root.reason}},c=I(r,o);try{Reflect.apply(n,t,[L(r,o),c])}catch(i){c(i)}return}}e.settled||(e.settled=!0,r.resolve(t))}}}function I(r,e){return t=>{if(!e.resolving)if(e.resolving=!0,e.settled){try{if(t instanceof A&&e.reason instanceof A&&Object.is(t.cause,e.reason.cause))return}catch{}Promise.reject(new b(r.promise,t))}else e.settled=!0,r.reject(t)}}function j(r,e,t){const n=[];for(const o of e){let c;try{if(!d(o.then)||(c=o.cancel,!d(c)))continue}catch{continue}let i;try{i=Reflect.apply(c,o,[t])}catch(s){Promise.reject(new b(r,s,"Unhandled exception in cancel method."));continue}i&&n.push((i instanceof Promise?i:Promise.resolve(i)).catch(s=>{Promise.reject(new b(r,s,"Unhandled rejection in cancel method."))}))}return Promise.all(n)}function D(r){return r}function F(r){throw r}function X(r){try{if(r instanceof Error||typeof r!="object"||r.toString!==Object.prototype.toString)return""+r}catch{}try{return JSON.stringify(r)}catch{}try{return Object.prototype.toString.call(r)}catch{}return"<could not convert error to string>"}function Y(r){var e;let t=(e=r[u])!==null&&e!==void 0?e:{};return"promise"in t||Object.assign(t,p()),r[u]==null&&(t.resolve(),r[u]=t),t.promise}let p=Promise.withResolvers;p&&typeof p=="function"?p=p.bind(Promise):p=function(){let r,e;return{promise:new Promise((n,o)=>{r=n,e=o}),resolve:r,reject:e}};h.hasDOM&&(window._wails=window._wails||{});const Z=h.newRuntimeCaller(h.objectNames.Call),$=h.newRuntimeCaller(h.objectNames.CancelCall),f=new Map,_=0,ee=0;function te(){let r;do r=h.nanoid();while(f.has(r));return r}function T(r){const e=te(),t=l.withResolvers(),n={resolve:t.resolve,reject:t.reject};f.set(e,n);const o=Z(_,Object.assign({"call-id":e},r));let c=!0;o.then(s=>{c=!1,f.get(e)===n&&(f.delete(e),n.resolve(s))},s=>{c=!1,f.get(e)===n&&(f.delete(e),n.reject(s))});const i=()=>(f.delete(e),$(ee,{"call-id":e}).catch(s=>{console.error("Error while requesting binding call cancellation:",s)}));return t.oncancelled=()=>c?i():o.then(i),t.promise}function re(r,...e){return T({methodName:r,args:e})}function U(r,...e){return T({methodID:r,args:e})}const ne=Object.freeze(Object.defineProperty({__proto__:null,ByID:U,ByName:re,Call:T,RuntimeError:h.RuntimeError},Symbol.toStringTag,{value:"Module"}));exports.ByID=U;exports.calls=ne;
@@ -1 +0,0 @@
1
- "use strict";var Je=Object.defineProperty;var Qe=(e,t,r)=>t in e?Je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var s=(e,t,r)=>Qe(e,typeof t!="symbol"?t+"":t,r);const o=require("./index-D_aIcqH0.cjs"),i=require("./models-BQsuB2Lj.cjs"),n=require("./calls-DUhq86Ki.cjs");function xe(e,t){return n.ByID(3867104420,e,t).then(r=>v(r))}function ke(e){return n.ByID(3795411887,e)}function Ke(){return n.ByID(1053995964).then(e=>nt(e))}function Xe(e){return n.ByID(3231741321,e).then(t=>rt(t))}function R(e){return n.ByID(2597562645,e).then(t=>_(t))}function Ye(e,t,r){return n.ByID(1481837168,e,t,r)}function Ze(e,t){return n.ByID(230212281,e,t)}function et(e,t,r){return n.ByID(1534017462,e,t,r).then(c=>ot(c))}function tt(){return n.ByID(2408440370).then(e=>_(e))}const v=i.Setting.createFrom,nt=o.Array(o.Any),rt=o.Map(o.Any,v),_=o.Map(o.Any,o.Any),ot=i.ValidationResult.createFrom,ct=Object.freeze(Object.defineProperty({__proto__:null,GetSetting:xe,HasPlugin:ke,ListPlugins:Ke,ListSettings:Xe,PluginValues:R,SetSetting:Ye,SetSettings:Ze,ValidateSetting:et,Values:tt},Symbol.toStringTag,{value:"Module"}));function it(e){return n.ByID(3150413499,e).then(t=>l(t))}function ut(e){return n.ByID(1152913314,e).then(t=>bt(t))}function w(e){return n.ByID(111194374,e).then(t=>d(t))}function st(e){return n.ByID(3945933305,e)}function at(e){return n.ByID(2859775056,e).then(t=>L(t))}function yt(e,t){return n.ByID(2209599792,e,t).then(r=>Ct(r))}function lt(e){return n.ByID(3963363730,e).then(t=>L(t))}function $t(e){return n.ByID(1357029266,e).then(t=>l(t))}function pt(){return n.ByID(2477486666).then(e=>h(e))}function ft(){return n.ByID(976517756).then(e=>h(e))}function ht(e){return n.ByID(1020548995,e).then(t=>h(t))}function Dt(e,t){return n.ByID(2004740384,e,t).then(r=>h(r))}function It(){return n.ByID(873697101).then(e=>M(e))}function Bt(){return n.ByID(637134283).then(e=>vt(e))}function Tt(){return n.ByID(550607756).then(e=>_t(e))}function dt(e,t){return n.ByID(288660195,e,t).then(r=>l(r))}function St(e){return n.ByID(1771013494,e).then(t=>l(t))}function O(e){return n.ByID(2433379724,e).then(t=>l(t))}function gt(e,t,r){return n.ByID(2783597264,e,t,r).then(c=>M(c))}function mt(e){return n.ByID(1369550929,e).then(t=>l(t))}function Ft(e){return n.ByID(3828800061,e).then(t=>l(t))}const l=i.PluginInfo.createFrom,At=i.DownloadStats.createFrom,bt=o.Nullable(At),d=i.PluginMeta.createFrom,Gt=i.VersionInfo.createFrom,L=o.Array(Gt),Pt=i.Review.createFrom,Ct=o.Array(Pt),h=o.Nullable(d),Rt=i.AvailablePlugin.createFrom,M=o.Array(Rt),vt=o.Array(d),_t=o.Array(l),wt=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:it,GetPluginDownloadStats:ut,GetPluginMeta:w,GetPluginReadme:st,GetPluginReleaseHistory:at,GetPluginReviews:yt,GetPluginVersions:lt,InstallDevPluginFromPath:$t,InstallFromPathPrompt:pt,InstallInDevMode:ft,InstallPluginFromPath:ht,InstallPluginVersion:Dt,ListAvailablePlugins:It,ListPluginMetas:Bt,ListPlugins:Tt,LoadPlugin:dt,ReloadPlugin:St,RetryFailedPlugin:O,SearchPlugins:gt,UninstallPlugin:mt,UnlinkDevPlugin:Ft},Symbol.toStringTag,{value:"Module"}));function Ot(e){return n.ByID(122243240,e)}function Lt(){return n.ByID(269082212).then(e=>Xt(e))}function Mt(e){return n.ByID(1421156656,e).then(t=>S(t))}function Nt(e){return n.ByID(3143996982,e).then(t=>j(t))}function jt(e){return n.ByID(1695819138,e)}function Ht(e){return n.ByID(1827194808,e).then(t=>Yt(t))}function Vt(e){return n.ByID(72059321,e)}function zt(e){return n.ByID(62418781,e).then(t=>Zt(t))}function Ut(e){return n.ByID(2222012564,e).then(t=>en(t))}function Wt(e){return n.ByID(2753368941,e)}function Et(e){return n.ByID(3825211425,e)}function qt(e){return n.ByID(2121298005,e).then(t=>tn(t))}function Jt(){return n.ByID(3038957305).then(e=>f(e))}function Qt(){return n.ByID(3369612893)}function xt(e,t){return n.ByID(252556992,e,t)}function kt(e){return n.ByID(1704369097,e)}function Kt(e,t){return n.ByID(1399113254,e,t).then(r=>rn(r))}function N(){return n.ByID(2936263106).then(e=>j(e))}const S=i.Category.createFrom,Xt=o.Array(S),j=o.Map(o.Any,o.Any),Yt=o.Array(o.Any),Zt=o.Array(o.Any),en=i.Setting.createFrom,tn=o.Array(o.Any);var f=function e(...t){return f===e&&(f=nn),f(...t)};const nn=o.Map(o.Any,S),rn=i.ValidationResult.createFrom,on=Object.freeze(Object.defineProperty({__proto__:null,GetBool:Ot,GetCategories:Lt,GetCategory:Mt,GetCategoryValues:Nt,GetFloat:jt,GetFloatSlice:Ht,GetInt:Vt,GetIntSlice:zt,GetSetting:Ut,GetSettingValue:Wt,GetString:Et,GetStringSlice:qt,ListSettings:Jt,LoadSettings:Qt,SetSetting:xt,SetSettings:kt,ValidateSetting:Kt,Values:N},Symbol.toStringTag,{value:"Module"}));class g{constructor(t={}){s(this,"type");s(this,"label");s(this,"target");"type"in t||(this.type=""),"label"in t||(this.label=""),Object.assign(this,t)}static createFrom(t={}){let r=typeof t=="string"?JSON.parse(t):t;return new g(r)}}class m{constructor(t={}){s(this,"type");s(this,"title");s(this,"status");s(this,"detail");s(this,"instance");s(this,"suggestions");s(this,"actions");s(this,"code");s(this,"requestId");s(this,"recovery");s(this,"location");"type"in t||(this.type=""),"title"in t||(this.title=""),"status"in t||(this.status=0),"detail"in t||(this.detail=""),Object.assign(this,t)}static createFrom(t={}){const r=cn,c=sn,u=yn;let a=typeof t=="string"?JSON.parse(t):t;return"suggestions"in a&&(a.suggestions=r(a.suggestions)),"actions"in a&&(a.actions=c(a.actions)),"location"in a&&(a.location=u(a.location)),new m(a)}}class F{constructor(t={}){s(this,"start");s(this,"end");s(this,"unit");"start"in t||(this.start=0),"end"in t||(this.end=0),"unit"in t||(this.unit=""),Object.assign(this,t)}static createFrom(t={}){let r=typeof t=="string"?JSON.parse(t):t;return new F(r)}}const cn=o.Array(o.Any),un=g.createFrom,sn=o.Array(un),an=F.createFrom,yn=o.Nullable(an);class D{constructor(t={}){s(this,"type");s(this,"data");s(this,"error");"type"in t||(this.type=""),Object.assign(this,t)}static createFrom(t={}){const r=ln,c=pn;let u=typeof t=="string"?JSON.parse(t):t;return"data"in u&&(u.data=r(u.data)),"error"in u&&(u.error=c(u.error)),new D(u)}}class A{constructor(t={}){s(this,"sequence");s(this,"event");s(this,"terminal");"sequence"in t||(this.sequence=0),"event"in t||(this.event=new D),"terminal"in t||(this.terminal=!1),Object.assign(this,t)}static createFrom(t={}){const r=fn;let c=typeof t=="string"?JSON.parse(t):t;return"event"in c&&(c.event=r(c.event)),new A(c)}}class b{constructor(t={}){s(this,"connection");s(this,"started");s(this,"resources");s(this,"resourceCounts");s(this,"totalResources");s(this,"syncedCount");s(this,"errorCount");s(this,"lastSyncTime");"connection"in t||(this.connection=new i.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=hn,c=Dn,u=In;let a=typeof t=="string"?JSON.parse(t):t;return"connection"in a&&(a.connection=r(a.connection)),"resources"in a&&(a.resources=c(a.resources)),"resourceCounts"in a&&(a.resourceCounts=u(a.resourceCounts)),new b(a)}}const ln=o.Map(o.Any,o.Any),$n=m.createFrom,pn=o.Nullable($n),fn=D.createFrom,hn=i.Connection.createFrom,Dn=o.Map(o.Any,o.Any),In=o.Map(o.Any,o.Any);function Bn(e,t){return n.ByID(4065522324,e,t)}function H(e){return n.ByID(2393377246,e).then(t=>jn(t))}function V(e){return n.ByID(1090099505,e)}function Tn(e,t){return n.ByID(1688967279,e,t).then(r=>pe(r))}function z(e,t,r,c){return n.ByID(1613386605,e,t,r,c).then(u=>Vn(u))}function U(e,t,r,c){return n.ByID(1477526970,e,t,r,c).then(u=>Un(u))}function dn(e,t,r){return n.ByID(1338477906,e,t,r)}function W(e,t,r,c,u){return n.ByID(1844283666,e,t,r,c,u).then(a=>En(a))}function Sn(e,t,r,c){return n.ByID(4148812394,e,t,r,c).then(u=>Jn(u))}function E(e,t,r,c){return n.ByID(194970279,e,t,r,c).then(u=>xn(u))}function q(e,t,r){return n.ByID(419011114,e,t,r).then(c=>Kn(c))}function J(){return n.ByID(4153677080).then(e=>Zn(e))}function Q(e,t){return n.ByID(950535743,e,t).then(r=>I(r))}function x(e,t){return n.ByID(537508515,e,t).then(r=>fe(r))}function k(e,t){return n.ByID(1394342402,e,t).then(r=>tr(r))}function gn(e,t,r){return n.ByID(1947262600,e,t,r).then(c=>rr(c))}function mn(e,t,r,c){return n.ByID(1644192689,e,t,r,c).then(u=>cr(u))}function Fn(e,t){return n.ByID(2699561690,e,t).then(r=>ur(r))}function An(e,t){return n.ByID(1474609809,e,t).then(r=>ar(r))}function bn(e,t){return n.ByID(4077050094,e,t).then(r=>yr(r))}function Gn(e,t,r,c,u,a){return n.ByID(3171791798,e,t,r,c,u,a).then(y=>$r(y))}function Pn(e,t){return n.ByID(114848330,e,t).then(r=>he(r))}function K(e,t){return n.ByID(4290498491,e,t).then(r=>pr(r))}function Cn(e,t,r){return n.ByID(137675652,e,t,r)}function X(e,t){return n.ByID(2078766795,e,t).then(r=>fr(r))}function Y(e,t){return n.ByID(3311395752,e,t).then(r=>hr(r))}function Z(e,t){return n.ByID(42345827,e,t).then(r=>Ir(r))}function Rn(e){return n.ByID(854008408,e)}function vn(e,t){return n.ByID(3547410887,e,t)}function _n(e,t,r){return n.ByID(3516169863,e,t,r)}function ee(e,t,r,c){return n.ByID(3093409425,e,t,r,c).then(u=>Tr(u))}function te(){return n.ByID(1598984489).then(e=>dr(e))}function ne(e){return n.ByID(1775572154,e).then(t=>G(t))}function wn(){return n.ByID(3217612415).then(e=>fe(e))}function On(e){return n.ByID(2037329938,e).then(t=>G(t))}function re(e,t){return n.ByID(421198049,e,t)}function Ln(e,t,r,c,u){return n.ByID(3987850310,e,t,r,c,u).then(a=>gr(a))}function Mn(e,t,r){return n.ByID(555702059,e,t,r)}function oe(e,t){return n.ByID(3276991559,e,t).then(r=>pe(r))}function ce(e,t){return n.ByID(3389223006,e,t)}function ie(e,t){return n.ByID(794258089,e,t).then(r=>I(r))}function ue(e,t){return n.ByID(1661153284,e,t)}function Nn(e,t,r){return n.ByID(3981374696,e,t,r)}function se(e,t,r,c,u){return n.ByID(2990116431,e,t,r,c,u)}function ae(e,t,r){return n.ByID(2856546527,e,t,r)}function ye(e,t,r){return n.ByID(3710015102,e,t,r)}function le(e,t,r,c){return n.ByID(2408192164,e,t,r,c).then(u=>Fr(u))}function $e(e,t){return n.ByID(2131988692,e,t).then(r=>I(r))}const jn=A.createFrom,pe=i.ConnectionStatus.createFrom,Hn=i.CreateResult.createFrom,Vn=o.Nullable(Hn),zn=i.DeleteResult.createFrom,Un=o.Nullable(zn),Wn=i.ActionResult.createFrom,En=o.Nullable(Wn),qn=i.FindResult.createFrom,Jn=o.Nullable(qn),Qn=i.GetResult.createFrom,xn=o.Nullable(Qn),kn=i.ActionDescriptor.createFrom,Kn=o.Array(kn),Xn=b.createFrom,Yn=o.Array(Xn),Zn=o.Map(o.Any,Yn),I=i.Connection.createFrom,fe=o.Array(o.Any),er=i.EditorSchema.createFrom,tr=o.Array(er),nr=i.FilterField.createFrom,rr=o.Array(nr),or=i.ResourceHealth.createFrom,cr=o.Nullable(or),ir=i.RelationshipDescriptor.createFrom,ur=o.Array(ir),sr=i.ResourceCapabilities.createFrom,ar=o.Nullable(sr),yr=i.ResourceDefinition.createFrom,lr=i.ResourceEvent.createFrom,$r=o.Array(lr),he=i.ResourceGroup.createFrom,pr=o.Map(o.Any,he),De=i.ResourceMeta.createFrom,fr=o.Nullable(De),hr=o.Map(o.Any,De),Dr=i.WatchConnectionSummary.createFrom,Ir=o.Nullable(Dr),Br=i.ListResult.createFrom,Tr=o.Nullable(Br),G=o.Array(I),dr=o.Map(o.Any,G),Sr=i.ResolvedRelationship.createFrom,gr=o.Array(Sr),mr=i.UpdateResult.createFrom,Fr=o.Nullable(mr),Ar=Object.freeze(Object.defineProperty({__proto__:null,AddConnection:Bn,AttachStreamAction:H,CancelStreamAction:V,CheckConnection:Tn,Create:z,Delete:U,EnsureResourceWatch:dn,ExecuteAction:W,Find:Sn,Get:E,GetActions:q,GetAllConnectionStates:J,GetConnection:Q,GetConnectionNamespaces:x,GetEditorSchemas:k,GetFilterFields:gn,GetHealth:mn,GetRelationships:Fn,GetResourceCapabilities:An,GetResourceDefinition:bn,GetResourceEvents:Gn,GetResourceGroup:Pn,GetResourceGroups:K,GetResourceSchema:Cn,GetResourceType:X,GetResourceTypes:Y,GetWatchState:Z,HasPlugin:Rn,HasResourceType:vn,IsResourceWatchRunning:_n,List:ee,ListAllConnections:te,ListConnections:ne,ListPlugins:wn,LoadConnections:On,RemoveConnection:re,ResolveRelationships:Ln,RestartResourceWatch:Mn,StartConnection:oe,StartConnectionWatch:ce,StopConnection:ie,StopConnectionWatch:ue,StopResourceWatch:Nn,StreamAction:se,SubscribeResource:ae,UnsubscribeResource:ye,Update:le,UpdateConnection:$e},Symbol.toStringTag,{value:"Module"}));function br(e,t){return n.ByID(3653639550,e,t)}function Ie(e,t){return n.ByID(851823419,e,t)}function Gr(e){return n.ByID(2991415449,e).then(t=>Pr(t))}function Be(e,t,r){return n.ByID(2695679023,e,t,r)}const Pr=o.Array(o.Any),Cr=Object.freeze(Object.defineProperty({__proto__:null,Delete:br,Get:Ie,Keys:Gr,Set:Be},Symbol.toStringTag,{value:"Module"}));function Rr(e){return n.ByID(93318075,e).then(t=>(t[0]=p(t[0]),t[1]=o.ByteSlice(t[1]),t))}function vr(e){return n.ByID(1353297556,e)}function Te(e,t,r){return n.ByID(608251756,e,t,r).then(c=>p(c))}function _r(e){return n.ByID(4182196712,e).then(t=>p(t))}function wr(e){return n.ByID(3993344525,e).then(t=>p(t))}function Or(e,t){return n.ByID(1779192716,e,t).then(r=>Er(r))}function Lr(){return n.ByID(4033362541).then(e=>qr(e))}function Mr(e){return n.ByID(2619212338,e).then(t=>Se(t))}function Nr(e){return n.ByID(1371268636,e).then(t=>p(t))}function jr(e){return n.ByID(3881019319,e)}function Hr(){return n.ByID(3006426324).then(e=>Jr(e))}function Vr(){return n.ByID(265791345).then(e=>Qr(e))}function zr(e,t,r){return n.ByID(1492965384,e,t,r)}function Ur(e,t){return n.ByID(486465741,e,t)}const Wr=i.Session.createFrom,p=o.Nullable(Wr),de=i.Handler.createFrom,Er=o.Nullable(de),Se=o.Map(o.Any,de),qr=o.Map(o.Any,Se),Jr=o.Array(o.Any),Qr=o.Array(p),xr=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:Rr,CloseSession:vr,CreateSession:Te,CreateTerminal:_r,DetachSession:wr,GetHandler:Or,GetHandlers:Lr,GetPluginHandlers:Mr,GetSession:Nr,HasPlugin:jr,ListPlugins:Hr,ListSessions:Vr,ResizeSession:zr,WriteSession:Ur},Symbol.toStringTag,{value:"Module"}));function ge(e){return n.ByID(2776241946,e)}function me(e,t,r){return n.ByID(1762441314,e,t,r).then(c=>B(c))}function kr(e){return n.ByID(1474987050,e).then(t=>B(t))}function Kr(e){return n.ByID(3156347865,e).then(t=>oo(t))}function Xr(e){return n.ByID(1444002509,e)}function Yr(){return n.ByID(3104582886).then(e=>co(e))}function Zr(){return n.ByID(2249742267).then(e=>io(e))}function eo(e,t){return n.ByID(1212190993,e,t)}function to(e,t){return n.ByID(2177127885,e,t).then(r=>B(r))}const no=i.LogSession.createFrom,B=o.Nullable(no),ro=i.Handler$1.createFrom,oo=o.Array(ro),co=o.Array(o.Any),io=o.Array(B),uo=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:ge,CreateSession:me,GetSession:kr,GetSupportedResources:Kr,HasPlugin:Xr,ListPlugins:Yr,ListSessions:Zr,SendCommand:eo,UpdateSessionOptions:to},Symbol.toStringTag,{value:"Module"}));class P{constructor(t={}){s(this,"plugin_id");s(this,"provider_id");s(this,"name");s(this,"icon");s(this,"description");s(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=ao;let c=typeof t=="string"?JSON.parse(t):t;return"handlers"in c&&(c.handlers=r(c.handlers)),new P(c)}}const so=i.Handler$2.createFrom,ao=o.Array(so);function Fe(){return n.ByID(3919346639).then(e=>Ce(e))}function Ae(e){return n.ByID(3953821778,e).then(t=>Ce(t))}function yo(e){return n.ByID(1815388456,e)}function lo(){return n.ByID(2730149903).then(e=>fo(e))}function $o(e,t,r){return n.ByID(3947209283,e,t,r).then(c=>Re(c))}function be(e,t,r,c,u,a,y,$,We,Ee){return n.ByID(2480040278,e,t,r,c,u,a,y,$,We,Ee).then(qe=>Do(qe))}function Ge(e,t,r){return n.ByID(3738888803,e,t,r)}function Pe(e){return n.ByID(3994236150,e)}const po=P.createFrom,Ce=o.Array(po),fo=o.Array(o.Any),ho=i.QueryResponse.createFrom,Re=o.Nullable(ho),Do=o.Map(o.Any,Re),Io=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:Fe,GetProvidersForResource:Ae,HasPlugin:yo,ListPlugins:lo,Query:$o,QueryAll:be,Subscribe:Ge,Unsubscribe:Pe},Symbol.toStringTag,{value:"Module"}));function ve(e){return n.ByID(182596922,e).then(t=>T(t))}function _e(e,t,r){return n.ByID(981100722,e,t,r).then(c=>C(c))}function Bo(e){return n.ByID(2157304970,e).then(t=>T(t))}function To(e){return n.ByID(650882,e).then(t=>Le(t))}function So(e){return n.ByID(3624690437,e)}function we(){return n.ByID(2195697754).then(e=>C(e))}function go(){return n.ByID(167463150).then(e=>Le(e))}function mo(e,t){return n.ByID(2090415403,e,t).then(r=>C(r))}function Oe(e,t,r){return n.ByID(780445954,e,t,r).then(c=>T(c))}const Fo=i.PortForwardSession.createFrom,T=o.Nullable(Fo),C=o.Array(T),Le=o.Array(o.Any),Ao=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:ve,FindPortForwardSessions:_e,GetPortForwardSession:Bo,GetSupportedPortForwardTargets:To,HasPlugin:So,ListAllPortForwardSessions:we,ListPlugins:go,ListPortForwardSessions:mo,StartResourcePortForwardingSession:Oe},Symbol.toStringTag,{value:"Module"}));function bo(e){return n.ByID(2106300110,e).then(t=>Po(t))}function Me(e){return n.ByID(765209827,e).then(t=>Co(t))}function Go(e){return n.ByID(2355436169,e).then(t=>je(t))}const Ne=i.ResourceComponent.createFrom,je=o.Array(Ne),Po=o.Map(o.Any,je),Co=o.Nullable(Ne),Ro=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:bo,GetResourceAreaComponent:Me,GetResourceComponents:Go},Symbol.toStringTag,{value:"Module"}));function He(e,t,r,c,u,a){return n.ByID(3749557463,e,t,r,c,u,a).then(y=>wo(y))}function Ve(e,t,r,c,u,a,y){return n.ByID(3912521777,e,t,r,c,u,a,y).then($=>Ue($))}function vo(e,t,r,c,u,a,y){return n.ByID(1916045973,e,t,r,c,u,a,y).then($=>Lo($))}function ze(e,t,r,c,u,a,y){return n.ByID(210990208,e,t,r,c,u,a,y).then($=>No($))}const _o=i.DependencyTree.createFrom,wo=o.Nullable(_o),Oo=i.GraphEdge.createFrom,Ue=o.Array(Oo),Lo=o.Array(Ue),Mo=i.Subgraph.createFrom,No=o.Nullable(Mo),jo=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:He,GetRelated:Ve,GetRelationshipChain:vo,GetSubgraph:ze},Symbol.toStringTag,{value:"Module"}));exports.AttachStreamAction=H;exports.CancelStreamAction=V;exports.ClosePortForwardSession=ve;exports.CloseSession=ge;exports.Create=z;exports.CreateSession=Te;exports.CreateSession$1=me;exports.Delete=U;exports.ExecuteAction=W;exports.FindPortForwardSessions=_e;exports.Get=Ie;exports.Get$1=E;exports.GetActions=q;exports.GetAllConnectionStates=J;exports.GetConnection=Q;exports.GetConnectionNamespaces=x;exports.GetDependencyTree=He;exports.GetEditorSchemas=k;exports.GetPluginMeta=w;exports.GetProviders=Fe;exports.GetProvidersForResource=Ae;exports.GetRelated=Ve;exports.GetResourceAreaComponent=Me;exports.GetResourceGroups=K;exports.GetResourceType=X;exports.GetResourceTypes=Y;exports.GetSubgraph=ze;exports.GetWatchState=Z;exports.List=ee;exports.ListAllConnections=te;exports.ListAllPortForwardSessions=we;exports.ListConnections=ne;exports.PluginValues=R;exports.QueryAll=be;exports.RemoveConnection=re;exports.RetryFailedPlugin=O;exports.Set=Be;exports.StartConnection=oe;exports.StartConnectionWatch=ce;exports.StartResourcePortForwardingSession=Oe;exports.StopConnection=ie;exports.StopConnectionWatch=ue;exports.StreamAction=se;exports.Subscribe=Ge;exports.SubscribeResource=ae;exports.Unsubscribe=Pe;exports.UnsubscribeResource=ye;exports.Update=le;exports.UpdateConnection=$e;exports.Values=N;exports.graphservice=jo;exports.servicewrapper=xr;exports.servicewrapper$1=Ao;exports.servicewrapper$2=wt;exports.servicewrapper$3=Ar;exports.servicewrapper$4=ct;exports.servicewrapper$5=on;exports.servicewrapper$6=Ro;exports.servicewrapper$7=uo;exports.servicewrapper$8=Io;exports.servicewrapper$9=Cr;