@omniviewdev/runtime 0.4.2 → 0.5.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 (29) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.js +246 -113
  3. package/dist/bindings/events/index.d.ts +140 -0
  4. package/dist/bindings/github.com/omniviewdev/omniview/appservice.d.ts +5 -0
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/index.d.ts +1 -1
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/models.d.ts +24 -26
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/servicewrapper.d.ts +0 -1
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +2 -0
  9. package/dist/bindings/github.com/omniviewdev/omniview/internal/devcontract/index.d.ts +1 -0
  10. package/dist/bindings/github.com/omniviewdev/omniview/internal/devcontract/models.d.ts +101 -0
  11. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/index.d.ts +1 -1
  12. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +31 -0
  13. package/dist/errors/types.d.ts +2 -0
  14. package/dist/graphservice-Cb7rr7SB.cjs +1 -0
  15. package/dist/graphservice-DloOtC_7.js +739 -0
  16. package/dist/index.cjs +2 -2
  17. package/dist/index.js +566 -539
  18. package/dist/models-8-4Ny_ft.cjs +1 -0
  19. package/dist/{models-3V1aa9YT.js → models-BlTzZkmp.js} +46 -60
  20. package/dist/models-CGYstu7u.cjs +1 -0
  21. package/dist/{models-B97zjrHu.js → models-D-vu7j83.js} +442 -411
  22. package/dist/models.cjs +1 -1
  23. package/dist/models.d.ts +1 -1
  24. package/dist/models.js +39 -38
  25. package/package.json +5 -5
  26. package/dist/graphservice-2kgAuCnt.cjs +0 -1
  27. package/dist/graphservice-5kuEPkCT.js +0 -731
  28. package/dist/models-BPmIMpct.cjs +0 -1
  29. package/dist/models-sJV1iQbd.cjs +0 -1
@@ -14,25 +14,6 @@ export declare class BuildError {
14
14
  */
15
15
  static createFrom($$source?: any): BuildError;
16
16
  }
17
- /**
18
- * DevInfoFile is the JSON structure of the .devinfo file written by externally-run plugins.
19
- */
20
- export declare class DevInfoFile {
21
- "pid": number;
22
- "protocol": string;
23
- "protocolVersion": number;
24
- "addr": string;
25
- "vitePort"?: number;
26
- "pluginId"?: string;
27
- "version"?: string;
28
- "startedAt"?: string;
29
- /** Creates a new DevInfoFile instance. */
30
- constructor($$source?: Partial<DevInfoFile>);
31
- /**
32
- * Creates a new DevInfoFile instance from a string or object.
33
- */
34
- static createFrom($$source?: any): DevInfoFile;
35
- }
36
17
  /**
37
18
  * DevProcessStatus describes the current status of either the Vite process or the Go watcher.
38
19
  */
@@ -47,7 +28,8 @@ export declare enum DevProcessStatus {
47
28
  DevProcessStatusRunning = "running",
48
29
  DevProcessStatusReady = "ready",
49
30
  DevProcessStatusError = "error",
50
- DevProcessStatusStopped = "stopped"
31
+ DevProcessStatusStopped = "stopped",
32
+ DevProcessStatusNotApplicable = "n/a"
51
33
  }
52
34
  /**
53
35
  * DevServerErrorPayload wraps a plugin ID and its build errors into a single
@@ -78,12 +60,7 @@ export declare enum DevServerMode {
78
60
  /**
79
61
  * DevServerModeManaged means the IDE spawned and manages the Vite + Go watcher processes.
80
62
  */
81
- DevServerModeManaged = "managed",
82
- /**
83
- * DevServerModeExternal means the developer runs processes externally;
84
- * the IDE connects via .devinfo file.
85
- */
86
- DevServerModeExternal = "external"
63
+ DevServerModeManaged = "managed"
87
64
  }
88
65
  /**
89
66
  * DevServerState is the JSON-serializable state of a single plugin's dev server.
@@ -101,6 +78,12 @@ export declare class DevServerState {
101
78
  "lastBuildTime": string;
102
79
  "lastError": string;
103
80
  "grpcConnected": boolean;
81
+ "generation": string;
82
+ "hmrURL": string;
83
+ "buildStatus": LifecycleStage;
84
+ "rpcStatus": LifecycleStage;
85
+ "controllerStatus": LifecycleStage;
86
+ "ready": boolean;
104
87
  /** Creates a new DevServerState instance. */
105
88
  constructor($$source?: Partial<DevServerState>);
106
89
  /**
@@ -108,6 +91,21 @@ export declare class DevServerState {
108
91
  */
109
92
  static createFrom($$source?: any): DevServerState;
110
93
  }
94
+ /**
95
+ * LifecycleStage distinguishes successful compilation from a live plugin.
96
+ */
97
+ export declare enum LifecycleStage {
98
+ /**
99
+ * The Go zero value for the underlying type of the enum.
100
+ */
101
+ $zero = "",
102
+ StagePending = "pending",
103
+ StageBuilding = "building",
104
+ StageReady = "ready",
105
+ StageError = "error",
106
+ StageStopped = "stopped",
107
+ StageNotApplicable = "n/a"
108
+ }
111
109
  /**
112
110
  * LogEntry is a single log line from either the Vite process or the Go build.
113
111
  */
@@ -2,7 +2,6 @@ import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
2
2
  import * as $models from "./models.js";
3
3
  export declare function GetDevServerLogs(pluginID: string, count: number): $CancellablePromise<$models.LogEntry[]>;
4
4
  export declare function GetDevServerState(pluginID: string): $CancellablePromise<$models.DevServerState>;
5
- export declare function GetExternalPluginInfo(pluginID: string): $CancellablePromise<$models.DevInfoFile | null>;
6
5
  export declare function IsManaged(pluginID: string): $CancellablePromise<boolean>;
7
6
  export declare function ListDevServerStates(): $CancellablePromise<$models.DevServerState[]>;
8
7
  export declare function RebuildPlugin(pluginID: string): $CancellablePromise<void>;
@@ -10,6 +10,7 @@ export declare function GetPluginReadme(pluginID: string): $CancellablePromise<s
10
10
  export declare function GetPluginReleaseHistory(pluginID: string): $CancellablePromise<registry$0.VersionInfo[]>;
11
11
  export declare function GetPluginReviews(pluginID: string, page: number): $CancellablePromise<registry$0.Review[]>;
12
12
  export declare function GetPluginVersions(pluginID: string): $CancellablePromise<registry$0.VersionInfo[]>;
13
+ export declare function InstallDevPluginFromPath(path: string): $CancellablePromise<types$0.PluginInfo>;
13
14
  export declare function InstallFromPathPrompt(): $CancellablePromise<config$0.PluginMeta | null>;
14
15
  export declare function InstallInDevMode(): $CancellablePromise<config$0.PluginMeta | null>;
15
16
  export declare function InstallPluginFromPath(path: string): $CancellablePromise<config$0.PluginMeta | null>;
@@ -22,3 +23,4 @@ export declare function ReloadPlugin(id: string): $CancellablePromise<types$0.Pl
22
23
  export declare function RetryFailedPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
23
24
  export declare function SearchPlugins(query: string, category: string, sort: string): $CancellablePromise<registry$0.AvailablePlugin[]>;
24
25
  export declare function UninstallPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
26
+ export declare function UnlinkDevPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
@@ -0,0 +1 @@
1
+ export { Endpoints, Error, InstanceDescriptor, PluginState, ProcessIdentity, RepositoryResolution } from './models.js';
@@ -0,0 +1,101 @@
1
+ export declare class Endpoints {
2
+ "browser": string | null;
3
+ "vite": string | null;
4
+ "hmr": string | null;
5
+ "mcp": string | null;
6
+ "control": string | null;
7
+ "health": string | null;
8
+ /** Creates a new Endpoints instance. */
9
+ constructor($$source?: Partial<Endpoints>);
10
+ /**
11
+ * Creates a new Endpoints instance from a string or object.
12
+ */
13
+ static createFrom($$source?: any): Endpoints;
14
+ }
15
+ export declare class Error {
16
+ "code": string;
17
+ "message": string;
18
+ "details"?: {
19
+ [_ in string]?: any;
20
+ };
21
+ /** Creates a new Error instance. */
22
+ constructor($$source?: Partial<Error>);
23
+ /**
24
+ * Creates a new Error instance from a string or object.
25
+ */
26
+ static createFrom($$source?: any): Error;
27
+ }
28
+ /**
29
+ * InstanceDescriptor contains no credentials; the token value is never part of discovery.
30
+ */
31
+ export declare class InstanceDescriptor {
32
+ "schemaVersion": number;
33
+ "workspaceID": string;
34
+ "instanceID": string;
35
+ "generation": string;
36
+ "kind": string;
37
+ "channel": string;
38
+ "displayName": string;
39
+ "stateRoot": string;
40
+ "process": ProcessIdentity;
41
+ "version": string;
42
+ "commit": string;
43
+ "repositories": RepositoryResolution[];
44
+ "endpoints": Endpoints;
45
+ "plugins": PluginState[];
46
+ "readiness": string;
47
+ "lastError"?: Error | null;
48
+ "startedAt": string;
49
+ /** Creates a new InstanceDescriptor instance. */
50
+ constructor($$source?: Partial<InstanceDescriptor>);
51
+ /**
52
+ * Creates a new InstanceDescriptor instance from a string or object.
53
+ */
54
+ static createFrom($$source?: any): InstanceDescriptor;
55
+ }
56
+ export declare class PluginState {
57
+ "id": string;
58
+ "version": string;
59
+ "source": string;
60
+ "generation": string;
61
+ "mode": string;
62
+ "buildStatus": string;
63
+ "viteStatus": string;
64
+ "rpcStatus": string;
65
+ "controllerStatus": string;
66
+ "operationID"?: string;
67
+ "lastError"?: Error | null;
68
+ /** Creates a new PluginState instance. */
69
+ constructor($$source?: Partial<PluginState>);
70
+ /**
71
+ * Creates a new PluginState instance from a string or object.
72
+ */
73
+ static createFrom($$source?: any): PluginState;
74
+ }
75
+ export declare class ProcessIdentity {
76
+ "pid": number;
77
+ "startIdentity": string;
78
+ "executable": string;
79
+ "workspaceID": string;
80
+ "generation": string;
81
+ "role": string;
82
+ "source"?: string;
83
+ /** Creates a new ProcessIdentity instance. */
84
+ constructor($$source?: Partial<ProcessIdentity>);
85
+ /**
86
+ * Creates a new ProcessIdentity instance from a string or object.
87
+ */
88
+ static createFrom($$source?: any): ProcessIdentity;
89
+ }
90
+ export declare class RepositoryResolution {
91
+ "id": string;
92
+ "path": string;
93
+ "ref": string;
94
+ "commit": string;
95
+ /** Creates a new RepositoryResolution instance. */
96
+ constructor($$source?: Partial<RepositoryResolution>);
97
+ /**
98
+ * Creates a new RepositoryResolution instance from a string or object.
99
+ */
100
+ static createFrom($$source?: any): RepositoryResolution;
101
+ }
@@ -1 +1 @@
1
- export { PluginAuthor, PluginComponentArea, PluginComponents, PluginMaintainer, PluginMeta, PluginResourceComponent, PluginTheme, PluginThemeColors } from './models.js';
1
+ export { PluginAuthor, PluginComponentArea, PluginComponents, PluginMaintainer, PluginMeta, PluginResourceComponent, PluginTheme, PluginThemeColors, StateIsolationProvenance } from './models.js';
@@ -59,6 +59,11 @@ export declare class PluginMeta {
59
59
  "components": PluginComponents;
60
60
  "schema_version": number;
61
61
  "sdk_protocol_version": number;
62
+ /**
63
+ * StateIsolation is inspectable before launch; only a trusted builder's
64
+ * attestation may authorize isolated startup, never self-asserted YAML.
65
+ */
66
+ "state_isolation"?: StateIsolationProvenance | null;
62
67
  /** Creates a new PluginMeta instance. */
63
68
  constructor($$source?: Partial<PluginMeta>);
64
69
  /**
@@ -99,3 +104,29 @@ export declare class PluginThemeColors {
99
104
  */
100
105
  static createFrom($$source?: any): PluginThemeColors;
101
106
  }
107
+ /**
108
+ * StateIsolationProvenance is a trusted builder's attestation, not a declaration
109
+ * an arbitrary plugin may use to grant itself permission to start. It is checked
110
+ * without executing the artifact. Absence means unsupported, not legacy-safe.
111
+ * The host must establish the attestation's trusted origin separately.
112
+ * No lifecycle RPC/protocol change is required to inspect this metadata.
113
+ */
114
+ export declare class StateIsolationProvenance {
115
+ "schema_version": number;
116
+ "capability": string;
117
+ "sdk_module": string;
118
+ "sdk_revision": string;
119
+ /**
120
+ * SDKSourceSHA256 identifies the trusted builder's exact selected working-tree
121
+ * snapshot, permitting live feature edits above the reviewed capability base.
122
+ * Empty is reserved for immutable, clean, commit-only trusted builds.
123
+ */
124
+ "sdk_source_sha256"?: string;
125
+ "binary_sha256": string;
126
+ /** Creates a new StateIsolationProvenance instance. */
127
+ constructor($$source?: Partial<StateIsolationProvenance>);
128
+ /**
129
+ * Creates a new StateIsolationProvenance instance from a string or object.
130
+ */
131
+ static createFrom($$source?: any): StateIsolationProvenance;
132
+ }
@@ -22,6 +22,8 @@ export declare const ErrorTypes: {
22
22
  readonly PLUGIN_INSTALL_FAILED: "omniview:plugin/install-failed";
23
23
  readonly PLUGIN_LOAD_FAILED: "omniview:plugin/load-failed";
24
24
  readonly PLUGIN_BUILD_FAILED: "omniview:plugin/build-failed";
25
+ readonly PLUGIN_COMMITTED_CLEANUP_PENDING: "omniview:plugin/committed-cleanup-pending";
26
+ readonly PLUGIN_COMMIT_UNCERTAIN: "omniview:plugin/commit-uncertain";
25
27
  readonly SETTINGS_MISSING_CONFIG: "omniview:settings/missing-config";
26
28
  readonly SETTINGS_INVALID_CONFIG: "omniview:settings/invalid-config";
27
29
  readonly RESOURCE_NOT_FOUND: "omniview:resource/not-found";
@@ -0,0 +1 @@
1
+ "use strict";var He=Object.defineProperty;var ze=(e,t,r)=>t in e?He(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var a=(e,t,r)=>ze(e,typeof t!="symbol"?t+"":t,r);const o=require("./index-D_aIcqH0.cjs"),u=require("./models-CGYstu7u.cjs"),n=require("./calls-DZctVyoQ.cjs");function Ue(e,t){return n.ByID(3867104420,e,t).then(r=>P(r))}function We(e){return n.ByID(3795411887,e)}function Ve(){return n.ByID(1053995964).then(e=>ke(e))}function Ee(e){return n.ByID(3231741321,e).then(t=>Je(t))}function G(e){return n.ByID(2597562645,e).then(t=>b(t))}function Qe(e,t,r){return n.ByID(1481837168,e,t,r)}function qe(e,t){return n.ByID(230212281,e,t)}function xe(){return n.ByID(2408440370).then(e=>b(e))}const P=u.Setting.createFrom,ke=o.Array(o.Any),Je=o.Map(o.Any,P),b=o.Map(o.Any,o.Any),Ke=Object.freeze(Object.defineProperty({__proto__:null,GetSetting:Ue,HasPlugin:We,ListPlugins:Ve,ListSettings:Ee,PluginValues:G,SetSetting:Qe,SetSettings:qe,Values:xe},Symbol.toStringTag,{value:"Module"}));function Xe(e){return n.ByID(3150413499,e).then(t=>$(t))}function Ye(e){return n.ByID(1152913314,e).then(t=>It(t))}function F(e){return n.ByID(111194374,e).then(t=>T(t))}function Ze(e){return n.ByID(3945933305,e)}function et(e){return n.ByID(2859775056,e).then(t=>R(t))}function tt(e,t){return n.ByID(2209599792,e,t).then(r=>St(r))}function nt(e){return n.ByID(3963363730,e).then(t=>R(t))}function rt(e){return n.ByID(1357029266,e).then(t=>$(t))}function ot(){return n.ByID(2477486666).then(e=>D(e))}function ct(){return n.ByID(976517756).then(e=>D(e))}function ut(e){return n.ByID(1020548995,e).then(t=>D(t))}function it(e,t){return n.ByID(2004740384,e,t).then(r=>D(r))}function st(){return n.ByID(873697101).then(e=>v(e))}function at(){return n.ByID(637134283).then(e=>gt(e))}function yt(){return n.ByID(550607756).then(e=>mt(e))}function $t(e,t){return n.ByID(288660195,e,t).then(r=>$(r))}function lt(e){return n.ByID(1771013494,e).then(t=>$(t))}function C(e){return n.ByID(2433379724,e).then(t=>$(t))}function pt(e,t,r){return n.ByID(2783597264,e,t,r).then(c=>v(c))}function ft(e){return n.ByID(1369550929,e).then(t=>$(t))}function Dt(e){return n.ByID(3828800061,e).then(t=>$(t))}const $=u.PluginInfo.createFrom,ht=u.DownloadStats.createFrom,It=o.Nullable(ht),T=u.PluginMeta.createFrom,Bt=u.VersionInfo.createFrom,R=o.Array(Bt),Tt=u.Review.createFrom,St=o.Array(Tt),D=o.Nullable(T),dt=u.AvailablePlugin.createFrom,v=o.Array(dt),gt=o.Array(T),mt=o.Array($),At=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:Xe,GetPluginDownloadStats:Ye,GetPluginMeta:F,GetPluginReadme:Ze,GetPluginReleaseHistory:et,GetPluginReviews:tt,GetPluginVersions:nt,InstallDevPluginFromPath:rt,InstallFromPathPrompt:ot,InstallInDevMode:ct,InstallPluginFromPath:ut,InstallPluginVersion:it,ListAvailablePlugins:st,ListPluginMetas:at,ListPlugins:yt,LoadPlugin:$t,ReloadPlugin:lt,RetryFailedPlugin:C,SearchPlugins:pt,UninstallPlugin:ft,UnlinkDevPlugin:Dt},Symbol.toStringTag,{value:"Module"}));function Gt(e){return n.ByID(122243240,e)}function Pt(){return n.ByID(269082212).then(e=>Ut(e))}function bt(e){return n.ByID(1421156656,e).then(t=>S(t))}function Ft(e){return n.ByID(3143996982,e).then(t=>w(t))}function Ct(e){return n.ByID(1695819138,e)}function Rt(e){return n.ByID(1827194808,e).then(t=>Wt(t))}function vt(e){return n.ByID(72059321,e)}function _t(e){return n.ByID(62418781,e).then(t=>Vt(t))}function wt(e){return n.ByID(2222012564,e).then(t=>Et(t))}function Lt(e){return n.ByID(2753368941,e)}function Mt(e){return n.ByID(3825211425,e)}function Ot(e){return n.ByID(2121298005,e).then(t=>Qt(t))}function Nt(){return n.ByID(3038957305).then(e=>f(e))}function jt(){return n.ByID(3369612893)}function Ht(e,t){return n.ByID(252556992,e,t)}function zt(e){return n.ByID(1704369097,e)}function _(){return n.ByID(2936263106).then(e=>w(e))}const S=u.Category.createFrom,Ut=o.Array(S),w=o.Map(o.Any,o.Any),Wt=o.Array(o.Any),Vt=o.Array(o.Any),Et=u.Setting.createFrom,Qt=o.Array(o.Any);var f=function e(...t){return f===e&&(f=qt),f(...t)};const qt=o.Map(o.Any,S),xt=Object.freeze(Object.defineProperty({__proto__:null,GetBool:Gt,GetCategories:Pt,GetCategory:bt,GetCategoryValues:Ft,GetFloat:Ct,GetFloatSlice:Rt,GetInt:vt,GetIntSlice:_t,GetSetting:wt,GetSettingValue:Lt,GetString:Mt,GetStringSlice:Ot,ListSettings:Nt,LoadSettings:jt,SetSetting:Ht,SetSettings:zt,Values:_},Symbol.toStringTag,{value:"Module"}));class d{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=kt,c=Jt,i=Kt;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 d(s)}}const kt=u.Connection.createFrom,Jt=o.Map(o.Any,o.Any),Kt=o.Map(o.Any,o.Any);function Xt(e,t){return n.ByID(4065522324,e,t)}function Yt(e,t){return n.ByID(1688967279,e,t).then(r=>ue(r))}function L(e,t,r,c){return n.ByID(1613386605,e,t,r,c).then(i=>Tn(i))}function M(e,t,r,c){return n.ByID(1477526970,e,t,r,c).then(i=>dn(i))}function Zt(e,t,r){return n.ByID(1338477906,e,t,r)}function O(e,t,r,c,i){return n.ByID(1844283666,e,t,r,c,i).then(s=>mn(s))}function en(e,t,r,c){return n.ByID(4148812394,e,t,r,c).then(i=>Gn(i))}function N(e,t,r,c){return n.ByID(194970279,e,t,r,c).then(i=>bn(i))}function j(e,t,r){return n.ByID(419011114,e,t,r).then(c=>Cn(c))}function H(){return n.ByID(4153677080).then(e=>_n(e))}function z(e,t){return n.ByID(950535743,e,t).then(r=>h(r))}function U(e,t){return n.ByID(537508515,e,t).then(r=>ie(r))}function W(e,t){return n.ByID(1394342402,e,t).then(r=>Ln(r))}function tn(e,t,r){return n.ByID(1947262600,e,t,r).then(c=>On(c))}function nn(e,t,r,c){return n.ByID(1644192689,e,t,r,c).then(i=>jn(i))}function rn(e,t){return n.ByID(2699561690,e,t).then(r=>zn(r))}function on(e,t){return n.ByID(1474609809,e,t).then(r=>Wn(r))}function cn(e,t){return n.ByID(4077050094,e,t).then(r=>Vn(r))}function un(e,t,r,c,i,s){return n.ByID(3171791798,e,t,r,c,i,s).then(y=>Qn(y))}function sn(e,t){return n.ByID(114848330,e,t).then(r=>se(r))}function V(e,t){return n.ByID(4290498491,e,t).then(r=>qn(r))}function an(e,t,r){return n.ByID(137675652,e,t,r)}function E(e,t){return n.ByID(2078766795,e,t).then(r=>xn(r))}function Q(e,t){return n.ByID(3311395752,e,t).then(r=>kn(r))}function q(e,t){return n.ByID(42345827,e,t).then(r=>Kn(r))}function yn(e){return n.ByID(854008408,e)}function $n(e,t){return n.ByID(3547410887,e,t)}function ln(e,t,r){return n.ByID(3516169863,e,t,r)}function x(e,t,r,c){return n.ByID(3093409425,e,t,r,c).then(i=>Yn(i))}function k(){return n.ByID(1598984489).then(e=>Zn(e))}function J(e){return n.ByID(1775572154,e).then(t=>g(t))}function pn(){return n.ByID(3217612415).then(e=>ie(e))}function fn(e){return n.ByID(2037329938,e).then(t=>g(t))}function K(e,t){return n.ByID(421198049,e,t)}function Dn(e,t,r,c,i){return n.ByID(3987850310,e,t,r,c,i).then(s=>tr(s))}function hn(e,t,r){return n.ByID(555702059,e,t,r)}function X(e,t){return n.ByID(3276991559,e,t).then(r=>ue(r))}function Y(e,t){return n.ByID(3389223006,e,t)}function Z(e,t){return n.ByID(794258089,e,t).then(r=>h(r))}function ee(e,t){return n.ByID(1661153284,e,t)}function In(e,t,r){return n.ByID(3981374696,e,t,r)}function te(e,t,r,c,i){return n.ByID(2990116431,e,t,r,c,i)}function ne(e,t,r){return n.ByID(2856546527,e,t,r)}function re(e,t,r){return n.ByID(3710015102,e,t,r)}function oe(e,t,r,c){return n.ByID(2408192164,e,t,r,c).then(i=>rr(i))}function ce(e,t){return n.ByID(2131988692,e,t).then(r=>h(r))}const ue=u.ConnectionStatus.createFrom,Bn=u.CreateResult.createFrom,Tn=o.Nullable(Bn),Sn=u.DeleteResult.createFrom,dn=o.Nullable(Sn),gn=u.ActionResult.createFrom,mn=o.Nullable(gn),An=u.FindResult.createFrom,Gn=o.Nullable(An),Pn=u.GetResult.createFrom,bn=o.Nullable(Pn),Fn=u.ActionDescriptor.createFrom,Cn=o.Array(Fn),Rn=d.createFrom,vn=o.Array(Rn),_n=o.Map(o.Any,vn),h=u.Connection.createFrom,ie=o.Array(o.Any),wn=u.EditorSchema.createFrom,Ln=o.Array(wn),Mn=u.FilterField.createFrom,On=o.Array(Mn),Nn=u.ResourceHealth.createFrom,jn=o.Nullable(Nn),Hn=u.RelationshipDescriptor.createFrom,zn=o.Array(Hn),Un=u.ResourceCapabilities.createFrom,Wn=o.Nullable(Un),Vn=u.ResourceDefinition.createFrom,En=u.ResourceEvent.createFrom,Qn=o.Array(En),se=u.ResourceGroup.createFrom,qn=o.Map(o.Any,se),ae=u.ResourceMeta.createFrom,xn=o.Nullable(ae),kn=o.Map(o.Any,ae),Jn=u.WatchConnectionSummary.createFrom,Kn=o.Nullable(Jn),Xn=u.ListResult.createFrom,Yn=o.Nullable(Xn),g=o.Array(h),Zn=o.Map(o.Any,g),er=u.ResolvedRelationship.createFrom,tr=o.Array(er),nr=u.UpdateResult.createFrom,rr=o.Nullable(nr),or=Object.freeze(Object.defineProperty({__proto__:null,AddConnection:Xt,CheckConnection:Yt,Create:L,Delete:M,EnsureResourceWatch:Zt,ExecuteAction:O,Find:en,Get:N,GetActions:j,GetAllConnectionStates:H,GetConnection:z,GetConnectionNamespaces:U,GetEditorSchemas:W,GetFilterFields:tn,GetHealth:nn,GetRelationships:rn,GetResourceCapabilities:on,GetResourceDefinition:cn,GetResourceEvents:un,GetResourceGroup:sn,GetResourceGroups:V,GetResourceSchema:an,GetResourceType:E,GetResourceTypes:Q,GetWatchState:q,HasPlugin:yn,HasResourceType:$n,IsResourceWatchRunning:ln,List:x,ListAllConnections:k,ListConnections:J,ListPlugins:pn,LoadConnections:fn,RemoveConnection:K,ResolveRelationships:Dn,RestartResourceWatch:hn,StartConnection:X,StartConnectionWatch:Y,StopConnection:Z,StopConnectionWatch:ee,StopResourceWatch:In,StreamAction:te,SubscribeResource:ne,UnsubscribeResource:re,Update:oe,UpdateConnection:ce},Symbol.toStringTag,{value:"Module"}));function cr(e,t){return n.ByID(3653639550,e,t)}function ye(e,t){return n.ByID(851823419,e,t)}function ur(e){return n.ByID(2991415449,e).then(t=>ir(t))}function $e(e,t,r){return n.ByID(2695679023,e,t,r)}const ir=o.Array(o.Any),sr=Object.freeze(Object.defineProperty({__proto__:null,Delete:cr,Get:ye,Keys:ur,Set:$e},Symbol.toStringTag,{value:"Module"}));function ar(e){return n.ByID(93318075,e).then(t=>(t[0]=p(t[0]),t[1]=o.ByteSlice(t[1]),t))}function yr(e){return n.ByID(1353297556,e)}function le(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 lr(e){return n.ByID(3993344525,e).then(t=>p(t))}function pr(e,t){return n.ByID(1779192716,e,t).then(r=>mr(r))}function fr(){return n.ByID(4033362541).then(e=>Ar(e))}function Dr(e){return n.ByID(2619212338,e).then(t=>fe(t))}function hr(e){return n.ByID(1371268636,e).then(t=>p(t))}function Ir(e){return n.ByID(3881019319,e)}function Br(){return n.ByID(3006426324).then(e=>Gr(e))}function Tr(){return n.ByID(265791345).then(e=>Pr(e))}function Sr(e,t,r){return n.ByID(1492965384,e,t,r)}function dr(e,t){return n.ByID(486465741,e,t)}const gr=u.Session.createFrom,p=o.Nullable(gr),pe=u.Handler.createFrom,mr=o.Nullable(pe),fe=o.Map(o.Any,pe),Ar=o.Map(o.Any,fe),Gr=o.Array(o.Any),Pr=o.Array(p),br=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:ar,CloseSession:yr,CreateSession:le,CreateTerminal:$r,DetachSession:lr,GetHandler:pr,GetHandlers:fr,GetPluginHandlers:Dr,GetSession:hr,HasPlugin:Ir,ListPlugins:Br,ListSessions:Tr,ResizeSession:Sr,WriteSession:dr},Symbol.toStringTag,{value:"Module"}));function De(e){return n.ByID(2776241946,e)}function he(e,t,r){return n.ByID(1762441314,e,t,r).then(c=>I(c))}function Fr(e){return n.ByID(1474987050,e).then(t=>I(t))}function Cr(e){return n.ByID(3156347865,e).then(t=>Nr(t))}function Rr(e){return n.ByID(1444002509,e)}function vr(){return n.ByID(3104582886).then(e=>jr(e))}function _r(){return n.ByID(2249742267).then(e=>Hr(e))}function wr(e,t){return n.ByID(1212190993,e,t)}function Lr(e,t){return n.ByID(2177127885,e,t).then(r=>I(r))}const Mr=u.LogSession.createFrom,I=o.Nullable(Mr),Or=u.Handler$1.createFrom,Nr=o.Array(Or),jr=o.Array(o.Any),Hr=o.Array(I),zr=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:De,CreateSession:he,GetSession:Fr,GetSupportedResources:Cr,HasPlugin:Rr,ListPlugins:vr,ListSessions:_r,SendCommand:wr,UpdateSessionOptions:Lr},Symbol.toStringTag,{value:"Module"}));class m{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=Wr;let c=typeof t=="string"?JSON.parse(t):t;return"handlers"in c&&(c.handlers=r(c.handlers)),new m(c)}}const Ur=u.Handler$2.createFrom,Wr=o.Array(Ur);function Ie(){return n.ByID(3919346639).then(e=>ge(e))}function Be(e){return n.ByID(3953821778,e).then(t=>ge(t))}function Vr(e){return n.ByID(1815388456,e)}function Er(){return n.ByID(2730149903).then(e=>xr(e))}function Qr(e,t,r){return n.ByID(3947209283,e,t,r).then(c=>me(c))}function Te(e,t,r,c,i,s,y,l,Oe,Ne){return n.ByID(2480040278,e,t,r,c,i,s,y,l,Oe,Ne).then(je=>Jr(je))}function Se(e,t,r){return n.ByID(3738888803,e,t,r)}function de(e){return n.ByID(3994236150,e)}const qr=m.createFrom,ge=o.Array(qr),xr=o.Array(o.Any),kr=u.QueryResponse.createFrom,me=o.Nullable(kr),Jr=o.Map(o.Any,me),Kr=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:Ie,GetProvidersForResource:Be,HasPlugin:Vr,ListPlugins:Er,Query:Qr,QueryAll:Te,Subscribe:Se,Unsubscribe:de},Symbol.toStringTag,{value:"Module"}));function Ae(e){return n.ByID(182596922,e).then(t=>B(t))}function Ge(e,t,r){return n.ByID(981100722,e,t,r).then(c=>A(c))}function Xr(e){return n.ByID(2157304970,e).then(t=>B(t))}function Yr(e){return n.ByID(650882,e).then(t=>Fe(t))}function Zr(e){return n.ByID(3624690437,e)}function Pe(){return n.ByID(2195697754).then(e=>A(e))}function eo(){return n.ByID(167463150).then(e=>Fe(e))}function to(e,t){return n.ByID(2090415403,e,t).then(r=>A(r))}function be(e,t,r){return n.ByID(780445954,e,t,r).then(c=>B(c))}const no=u.PortForwardSession.createFrom,B=o.Nullable(no),A=o.Array(B),Fe=o.Array(o.Any),ro=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:Ae,FindPortForwardSessions:Ge,GetPortForwardSession:Xr,GetSupportedPortForwardTargets:Yr,HasPlugin:Zr,ListAllPortForwardSessions:Pe,ListPlugins:eo,ListPortForwardSessions:to,StartResourcePortForwardingSession:be},Symbol.toStringTag,{value:"Module"}));function oo(e){return n.ByID(2106300110,e).then(t=>uo(t))}function Ce(e){return n.ByID(765209827,e).then(t=>io(t))}function co(e){return n.ByID(2355436169,e).then(t=>ve(t))}const Re=u.ResourceComponent.createFrom,ve=o.Array(Re),uo=o.Map(o.Any,ve),io=o.Nullable(Re),so=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:oo,GetResourceAreaComponent:Ce,GetResourceComponents:co},Symbol.toStringTag,{value:"Module"}));function _e(e,t,r,c,i,s){return n.ByID(3749557463,e,t,r,c,i,s).then(y=>$o(y))}function we(e,t,r,c,i,s,y){return n.ByID(3912521777,e,t,r,c,i,s,y).then(l=>Me(l))}function ao(e,t,r,c,i,s,y){return n.ByID(1916045973,e,t,r,c,i,s,y).then(l=>po(l))}function Le(e,t,r,c,i,s,y){return n.ByID(210990208,e,t,r,c,i,s,y).then(l=>Do(l))}const yo=u.DependencyTree.createFrom,$o=o.Nullable(yo),lo=u.GraphEdge.createFrom,Me=o.Array(lo),po=o.Array(Me),fo=u.Subgraph.createFrom,Do=o.Nullable(fo),ho=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:_e,GetRelated:we,GetRelationshipChain:ao,GetSubgraph:Le},Symbol.toStringTag,{value:"Module"}));exports.ClosePortForwardSession=Ae;exports.CloseSession=De;exports.Create=L;exports.CreateSession=le;exports.CreateSession$1=he;exports.Delete=M;exports.ExecuteAction=O;exports.FindPortForwardSessions=Ge;exports.Get=ye;exports.Get$1=N;exports.GetActions=j;exports.GetAllConnectionStates=H;exports.GetConnection=z;exports.GetConnectionNamespaces=U;exports.GetDependencyTree=_e;exports.GetEditorSchemas=W;exports.GetPluginMeta=F;exports.GetProviders=Ie;exports.GetProvidersForResource=Be;exports.GetRelated=we;exports.GetResourceAreaComponent=Ce;exports.GetResourceGroups=V;exports.GetResourceType=E;exports.GetResourceTypes=Q;exports.GetSubgraph=Le;exports.GetWatchState=q;exports.List=x;exports.ListAllConnections=k;exports.ListAllPortForwardSessions=Pe;exports.ListConnections=J;exports.PluginValues=G;exports.QueryAll=Te;exports.RemoveConnection=K;exports.RetryFailedPlugin=C;exports.Set=$e;exports.StartConnection=X;exports.StartConnectionWatch=Y;exports.StartResourcePortForwardingSession=be;exports.StopConnection=Z;exports.StopConnectionWatch=ee;exports.StreamAction=te;exports.Subscribe=Se;exports.SubscribeResource=ne;exports.Unsubscribe=de;exports.UnsubscribeResource=re;exports.Update=oe;exports.UpdateConnection=ce;exports.Values=_;exports.graphservice=ho;exports.servicewrapper=br;exports.servicewrapper$1=ro;exports.servicewrapper$2=At;exports.servicewrapper$3=or;exports.servicewrapper$4=Ke;exports.servicewrapper$5=xt;exports.servicewrapper$6=so;exports.servicewrapper$7=zr;exports.servicewrapper$8=Kr;exports.servicewrapper$9=sr;