@omniviewdev/runtime 0.21.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.js +188 -156
- package/dist/bindings/events/index.d.ts +2 -2
- package/dist/bindings/github.com/omniviewdev/omniview/backend/extensiondiagnostics/host/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/extensiondiagnostics/host/service.d.ts +12 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/extensiondiagnostics/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/extensiondiagnostics/models.d.ts +11 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +5 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +54 -26
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +6 -9
- package/dist/bindings/github.com/omniviewdev/omniview/internal/nativeapps/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/nativeapps/models.d.ts +16 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +53 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +15 -72
- package/dist/compat/legacyEnum.d.ts +2 -2
- package/dist/context/settings/index.d.ts +1 -1
- package/dist/context/settings/settingsWindow.d.ts +3 -1
- package/dist/graph-D4xtzkXX.cjs +1 -0
- package/dist/graph-iJFYWdRz.js +7 -0
- package/dist/hooks/connection/useConnectionStatus.d.ts +3 -3
- package/dist/hooks/connection/useConnections.d.ts +0 -3
- package/dist/hooks/resource/index.d.ts +1 -2
- package/dist/hooks/resource/useActiveSyncs.d.ts +2 -2
- package/dist/hooks/resource/useResources.d.ts +10 -16
- package/dist/hooks/resource/useSourceStates.d.ts +17 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2949 -2925
- package/dist/models-B3B5AdrM.cjs +1 -0
- package/dist/{models-BlRe-e25.js → models-B_Ef0-Dw.js} +1 -1
- package/dist/{models-C-3HYV9E.cjs → models-CX8HlqvF.cjs} +1 -1
- package/dist/{models-DNQykdGx.js → models-eKPHQdEl.js} +394 -321
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +1 -1
- package/dist/models.js +86 -84
- package/dist/resource/v2/ancillary.d.ts +1 -1
- package/dist/resource/v2/client.d.ts +8 -12
- package/dist/resource/v2/domain.d.ts +2 -1
- package/dist/resource/v2/host.d.ts +55 -31
- package/dist/resource/v2/sourceView.d.ts +20 -0
- package/dist/search.d.ts +1 -1
- package/dist/service-CbJRfldb.js +748 -0
- package/dist/service-DyXmAdcM.cjs +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/source.d.ts +8 -0
- package/dist/utils/activeSyncAggregator.d.ts +6 -17
- package/package.json +3 -3
- package/dist/graph-JDqyJC_i.js +0 -10
- package/dist/graph-wHun0Bkz.cjs +0 -1
- package/dist/hooks/resource/useEventBatcher.d.ts +0 -25
- package/dist/hooks/resource/useWatchState.d.ts +0 -21
- package/dist/models-D5pkScnE.cjs +0 -1
- package/dist/service-D25QhNF2.js +0 -750
- package/dist/service-MaHvflXn.cjs +0 -1
- package/dist/types/watch.d.ts +0 -55
package/dist/models.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-BVi9X4oU.cjs"),e=require("./models-B3B5AdrM.cjs"),C=require("./graph-D4xtzkXX.cjs"),n=require("./models-CX8HlqvF.cjs");class s{defaultDirectory;defaultFilename;title;filters;showHiddenFiles;canCreateDirectories;resolvesAliases;treatPackagesAsDirectories;constructor(t={}){"defaultDirectory"in t||(this.defaultDirectory=""),"defaultFilename"in t||(this.defaultFilename=""),"title"in t||(this.title=""),"filters"in t||(this.filters=[]),"showHiddenFiles"in t||(this.showHiddenFiles=!1),"canCreateDirectories"in t||(this.canCreateDirectories=!1),"resolvesAliases"in t||(this.resolvesAliases=!1),"treatPackagesAsDirectories"in t||(this.treatPackagesAsDirectories=!1),Object.assign(this,t)}static createFrom(t={}){const o=S;let i=typeof t=="string"?JSON.parse(t):t;return"filters"in i&&(i.filters=o(i.filters)),new s(i)}}class r{displayName;pattern;constructor(t={}){"displayName"in t||(this.displayName=""),"pattern"in t||(this.pattern=""),Object.assign(this,t)}static createFrom(t={}){let o=typeof t=="string"?JSON.parse(t):t;return new r(o)}}const p=r.createFrom,S=g.Array(p);function d(l,t){const o={...l};for(const[i,u]of Object.entries(l)){if(i==="$zero"||!i.startsWith(t))continue;const c=i.slice(t.length).replace(/([a-z0-9])([A-Z])/g,"$1_$2").toUpperCase();c&&(o[c]=u)}return o}const m=d(e.ConnectionStatusCode,"ConnectionStatus"),f=Object.freeze(Object.defineProperty({__proto__:null,Connection:e.Connection,ConnectionAutoConnect:e.ConnectionAutoConnect,ConnectionAutoConnectRetry:e.ConnectionAutoConnectRetry,ConnectionAutoConnectTrigger:e.ConnectionAutoConnectTrigger,ConnectionLifecycle:e.ConnectionLifecycle,ConnectionStatus:e.ConnectionStatus,ConnectionStatusCode:m,PluginCapability:e.Capability,PluginInfo:e.PluginInfo},Symbol.toStringTag,{value:"Module"}));class a{filename;contents;constructor(t={}){"filename"in t||(this.filename=""),"contents"in t||(this.contents=""),Object.assign(this,t)}static createFrom(t={}){let o=typeof t=="string"?JSON.parse(t):t;return new a(o)}}const y=Object.freeze(Object.defineProperty({__proto__:null,GetLanguageInput:a},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=e.ActionTargetBuilder;exports.AggregateValue=e.AggregateValue;exports.Category=e.Category;exports.ColorRange=e.ColorRange;exports.Connection=e.Connection;exports.ConnectionAutoConnect=e.ConnectionAutoConnect;exports.ConnectionAutoConnectRetry=e.ConnectionAutoConnectRetry;exports.ConnectionAutoConnectTrigger=e.ConnectionAutoConnectTrigger;exports.ConnectionExport=e.ConnectionExport;exports.ConnectionLifecycle=e.ConnectionLifecycle;exports.ConnectionRequirement=e.ConnectionRequirement;exports.ConnectionStatus=e.ConnectionStatus;exports.ConnectionStatusCode=e.ConnectionStatusCode;exports.CurrentValue=e.CurrentValue;exports.DataPoint=e.DataPoint;exports.ExportsSpec=e.ExportsSpec;exports.FindPortForwardSessionRequest=e.FindPortForwardSessionRequest;exports.GetPluginComponentsInput=e.GetPluginComponentsInput;exports.GetResourceAreaComponentInput=e.GetResourceAreaComponentInput;exports.GetResourceComponentsInput=e.GetResourceComponentsInput;exports.Handler=e.Handler;exports.LogSession=e.LogSession;exports.LogSessionOptions=e.LogSessionOptions;exports.LogSessionStatus=e.LogSessionStatus;exports.LogSource=e.LogSource;exports.LogStreamCommand=e.LogStreamCommand;exports.MetricDescriptor=e.MetricDescriptor;exports.MetricResult=e.MetricResult;exports.MetricShape=e.MetricShape;exports.MetricUnit=e.MetricUnit;exports.PluginAuthor=e.PluginAuthor;exports.PluginCapability=e.Capability;exports.PluginComponentArea=e.PluginComponentArea;exports.PluginComponents=e.PluginComponents;exports.PluginInfo=e.PluginInfo;exports.PluginMaintainer=e.PluginMaintainer;exports.PluginMeta=e.PluginMeta;exports.PluginResourceComponent=e.PluginResourceComponent;exports.PluginTheme=e.PluginTheme;exports.PluginThemeColors=e.PluginThemeColors;exports.PortForwardConnectionType=e.PortForwardConnectionType;exports.PortForwardProtocol=e.PortForwardProtocol;exports.PortForwardSession=e.PortForwardSession;exports.PortForwardSessionEncryption=e.PortForwardSessionEncryption;exports.QueryResponse=e.QueryResponse;exports.RequiresSpec=e.RequiresSpec;exports.ResourceComponent=e.ResourceComponent;exports.ResourceComponentArea=e.ResourceComponentArea;exports.Session=e.Session;exports.SessionOptions=e.SessionOptions;exports.SessionState=e.SessionState;exports.Setting=e.Setting;exports.SettingFileSelection=e.SettingFileSelection;exports.SettingOption=e.SettingOption;exports.SettingType=e.SettingType;exports.StateIsolationProvenance=e.StateIsolationProvenance;exports.TimeSeries=e.TimeSeries;exports.ValidationResult=e.ValidationResult;exports.config=e.models;exports.exec=e.models$1;exports.logs=e.models$2;exports.metric=e.models$3;exports.networker=e.models$4;exports.registry=e.models$5;exports.settings=e.models$6;exports.time=e.models$7;exports.ui=e.models$8;exports.window=e.models$9;exports.sameGraphNode=C.sameGraphNode;exports.BuildError=n.BuildError;exports.DevProcessStatus=n.DevProcessStatus;exports.DevServerErrorPayload=n.DevServerErrorPayload;exports.DevServerLogEntry=n.LogEntry;exports.DevServerMode=n.DevServerMode;exports.DevServerState=n.DevServerState;exports.LifecycleStage=n.LifecycleStage;exports.PluginLogEntry=n.LogEntry$1;exports.devserver=n.models;exports.mcprelay=n.models$1;exports.pluginlog=n.models$2;exports.FileDialogOptions=s;exports.FileFilter=r;exports.types=f;exports.utils=y;
|
package/dist/models.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from './resource/v2/domain';
|
|
|
5
5
|
export * from './resource/v2/ancillary';
|
|
6
6
|
export * from './resource/v2/host';
|
|
7
7
|
export * from './resource/v2/graph';
|
|
8
|
-
export {
|
|
8
|
+
export type { SourceSessionState, SourceMode, SourceContinuity, SourceCoverage } from './types/source';
|
|
9
9
|
export type { LogSessionRequest } from './logs';
|
|
10
10
|
export type { MetricQueryRequest, SubscribeRequest } from './metric';
|
|
11
11
|
export type { PortForwardSessionRequest, ResourcePortForwardTarget } from './networker';
|
package/dist/models.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as c } from "./index-zyAgCXOO.js";
|
|
2
|
-
import { l as
|
|
3
|
-
import { r as
|
|
4
|
-
import {
|
|
5
|
-
import { B as
|
|
2
|
+
import { l as p, d as g, m as f, n as u, o as m, p as d, C as S, q as C, c as y } from "./models-eKPHQdEl.js";
|
|
3
|
+
import { r as L, s as T, e as M, t as j, u as N, v as E, w as _, x, E as k, F as z, G, y as H, z as I, H as q, L as B, B as J, J as U, K as V, M as Q, N as W, O as Z, T as K, U as X, W as Y, X as $, Y as ee, Z as te, P as ae, _ as se, $ as ie, a0 as ne, a1 as oe, a2 as re, b as le, a3 as ce, Q as pe, a4 as ge, g as fe, a5 as ue, a as me, S as de, a6 as Se, a7 as Ce, a8 as ye, a9 as Pe, aa as he, ab as ve, ac as Fe, f as Ae, ad as De, ae as we, af as be, ag as Oe, ah as Re, ai as Le, aj as Te, ak as Me, al as je, am as Ne } from "./models-eKPHQdEl.js";
|
|
4
|
+
import { s as _e } from "./graph-iJFYWdRz.js";
|
|
5
|
+
import { B as ke, d as ze, e as Ge, L as He, f as Ie, D as qe, g as Be, c as Je, m as Ue, h as Ve, i as Qe } from "./models-B_Ef0-Dw.js";
|
|
6
6
|
class r {
|
|
7
7
|
defaultDirectory;
|
|
8
8
|
defaultFilename;
|
|
@@ -59,17 +59,17 @@ function v(n, e) {
|
|
|
59
59
|
}
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
|
-
const F = v(
|
|
62
|
+
const F = v(p, "ConnectionStatus"), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
63
63
|
__proto__: null,
|
|
64
|
-
Connection:
|
|
64
|
+
Connection: g,
|
|
65
65
|
ConnectionAutoConnect: f,
|
|
66
66
|
ConnectionAutoConnectRetry: u,
|
|
67
|
-
ConnectionAutoConnectTrigger:
|
|
67
|
+
ConnectionAutoConnectTrigger: m,
|
|
68
68
|
ConnectionLifecycle: d,
|
|
69
|
-
ConnectionStatus:
|
|
69
|
+
ConnectionStatus: S,
|
|
70
70
|
ConnectionStatusCode: F,
|
|
71
|
-
PluginCapability:
|
|
72
|
-
PluginInfo:
|
|
71
|
+
PluginCapability: C,
|
|
72
|
+
PluginInfo: y
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
74
|
class i {
|
|
75
75
|
filename;
|
|
@@ -91,86 +91,88 @@ const b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
91
91
|
GetLanguageInput: i
|
|
92
92
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
93
93
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
L as ActionTargetBuilder,
|
|
95
|
+
T as AggregateValue,
|
|
96
|
+
ke as BuildError,
|
|
97
97
|
M as Category,
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
j as ColorRange,
|
|
99
|
+
g as Connection,
|
|
100
100
|
f as ConnectionAutoConnect,
|
|
101
101
|
u as ConnectionAutoConnectRetry,
|
|
102
|
-
|
|
102
|
+
m as ConnectionAutoConnectTrigger,
|
|
103
|
+
N as ConnectionExport,
|
|
103
104
|
d as ConnectionLifecycle,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
_ as
|
|
108
|
-
|
|
109
|
-
ze as
|
|
110
|
-
Ge as
|
|
111
|
-
He as
|
|
112
|
-
Ie as
|
|
105
|
+
E as ConnectionRequirement,
|
|
106
|
+
S as ConnectionStatus,
|
|
107
|
+
p as ConnectionStatusCode,
|
|
108
|
+
_ as CurrentValue,
|
|
109
|
+
x as DataPoint,
|
|
110
|
+
ze as DevProcessStatus,
|
|
111
|
+
Ge as DevServerErrorPayload,
|
|
112
|
+
He as DevServerLogEntry,
|
|
113
|
+
Ie as DevServerMode,
|
|
114
|
+
qe as DevServerState,
|
|
115
|
+
k as ExportsSpec,
|
|
113
116
|
r as FileDialogOptions,
|
|
114
117
|
s as FileFilter,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
Oe as time,
|
|
118
|
+
z as FindPortForwardSessionRequest,
|
|
119
|
+
G as GetPluginComponentsInput,
|
|
120
|
+
H as GetResourceAreaComponentInput,
|
|
121
|
+
I as GetResourceComponentsInput,
|
|
122
|
+
q as Handler,
|
|
123
|
+
Be as LifecycleStage,
|
|
124
|
+
B as LogSession,
|
|
125
|
+
J as LogSessionOptions,
|
|
126
|
+
U as LogSessionStatus,
|
|
127
|
+
V as LogSource,
|
|
128
|
+
Q as LogStreamCommand,
|
|
129
|
+
W as MetricDescriptor,
|
|
130
|
+
Z as MetricResult,
|
|
131
|
+
K as MetricShape,
|
|
132
|
+
X as MetricUnit,
|
|
133
|
+
Y as PluginAuthor,
|
|
134
|
+
C as PluginCapability,
|
|
135
|
+
$ as PluginComponentArea,
|
|
136
|
+
ee as PluginComponents,
|
|
137
|
+
y as PluginInfo,
|
|
138
|
+
Je as PluginLogEntry,
|
|
139
|
+
te as PluginMaintainer,
|
|
140
|
+
ae as PluginMeta,
|
|
141
|
+
se as PluginResourceComponent,
|
|
142
|
+
ie as PluginTheme,
|
|
143
|
+
ne as PluginThemeColors,
|
|
144
|
+
oe as PortForwardConnectionType,
|
|
145
|
+
re as PortForwardProtocol,
|
|
146
|
+
le as PortForwardSession,
|
|
147
|
+
ce as PortForwardSessionEncryption,
|
|
148
|
+
pe as QueryResponse,
|
|
149
|
+
ge as RequiresSpec,
|
|
150
|
+
fe as ResourceComponent,
|
|
151
|
+
ue as ResourceComponentArea,
|
|
152
|
+
me as Session,
|
|
153
|
+
de as SessionOptions,
|
|
154
|
+
Se as SessionState,
|
|
155
|
+
Ce as Setting,
|
|
156
|
+
ye as SettingFileSelection,
|
|
157
|
+
Pe as SettingOption,
|
|
158
|
+
he as SettingType,
|
|
159
|
+
ve as StateIsolationProvenance,
|
|
160
|
+
Fe as TimeSeries,
|
|
161
|
+
Ae as ValidationResult,
|
|
162
|
+
De as config,
|
|
163
|
+
Ue as devserver,
|
|
164
|
+
we as exec,
|
|
165
|
+
be as logs,
|
|
166
|
+
Ve as mcprelay,
|
|
167
|
+
Oe as metric,
|
|
168
|
+
Re as networker,
|
|
169
|
+
Qe as pluginlog,
|
|
170
|
+
Le as registry,
|
|
171
|
+
_e as sameGraphNode,
|
|
172
|
+
Te as settings,
|
|
173
|
+
Me as time,
|
|
172
174
|
w as types,
|
|
173
|
-
|
|
175
|
+
je as ui,
|
|
174
176
|
b as utils,
|
|
175
|
-
|
|
177
|
+
Ne as window
|
|
176
178
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccessRoute, ResourceReference, SchemaBinding, ScopeEntry, Value } from './domain';
|
|
2
2
|
import { Connection } from '../../bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
|
|
3
3
|
/** Ancillary transport traits; finite support comes only from the qualified catalog. */
|
|
4
|
-
export type Feature = 'connections' | 'connectionBrowser' | 'connectionOverlay' | 'scopeValues' | 'presentation' | 'editorSchemas' | 'schemaDocuments' | 'relationships' | 'health' | 'actionCatalog' | 'streamingActions' | '
|
|
4
|
+
export type Feature = 'connections' | 'connectionBrowser' | 'connectionOverlay' | 'scopeValues' | 'presentation' | 'editorSchemas' | 'schemaDocuments' | 'relationships' | 'health' | 'actionCatalog' | 'streamingActions' | 'sourceSessions';
|
|
5
5
|
export interface FeatureSet {
|
|
6
6
|
traits: readonly Feature[];
|
|
7
7
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { CancellablePromise } from '@wailsio/runtime';
|
|
2
|
-
import { AccessRoute, ActionRequest, Catalog as CatalogResult, CatalogRequest, GetRequest, MutationRequest,
|
|
2
|
+
import { AccessRoute, ActionRequest, Catalog as CatalogResult, CatalogRequest, GetRequest, MutationRequest, Record, SchemaDocument, SchemaDocumentReference, Value } from './domain';
|
|
3
3
|
import { ActionDescriptor, EditorSchema, FeatureSet, RelationshipDescriptor, ResolvedRelationship, ResourceDefinition, ResourceEvent, ResourceGroup, ResourceHealth } from './ancillary';
|
|
4
4
|
import { AppError } from '../../errors/types';
|
|
5
|
-
import {
|
|
6
|
-
import { ConnectionProfile, ConnectionProfileCredentials, ConnectionProfileResult, HostConnectionState, HostEnumerateRequest, HostGetRequest, HostNativeQueryRequest, HostRecord, HostSourcePage, HostSubscriptionRequest, ResolvedResourceReference, ResolvedResourceTarget, ResolveReferenceRequest, ResolveTargetRequest } from './host';
|
|
5
|
+
import { ConnectionProfile, ConnectionProfileCredentials, ConnectionProfileResult, HostConnectionState, HostEnumerateRequest, HostGetRequest, HostNativeQueryRequest, HostRecord, HostSourcePage, HostSourceStates, HostSourceViewOpened, HostSourceViewRequest, ResolvedResourceReference, ResolvedResourceTarget, ResolveReferenceRequest, ResolveTargetRequest } from './host';
|
|
7
6
|
import { Connection } from '../../bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
|
|
8
7
|
import { ConnectionMetadataEnvelope } from '../../connection/metadata';
|
|
9
8
|
export declare const Features: (pluginID: string) => CancellablePromise<FeatureSet>;
|
|
@@ -47,14 +46,11 @@ export interface ActionSnapshot {
|
|
|
47
46
|
}
|
|
48
47
|
export declare const AttachStreamAction: (handleID: string) => CancellablePromise<ActionSnapshot>;
|
|
49
48
|
export declare const CancelStreamAction: (handleID: string) => CancellablePromise<void>;
|
|
50
|
-
export declare const
|
|
51
|
-
export declare const
|
|
52
|
-
export declare const
|
|
53
|
-
export declare const
|
|
54
|
-
export declare const
|
|
55
|
-
export declare const
|
|
56
|
-
export declare const IsResourceWatchRunning: (pluginID: string, route: AccessRoute, type: string) => CancellablePromise<boolean>;
|
|
57
|
-
export declare const SubscribeResource: (pluginID: string, request: HostSubscriptionRequest) => CancellablePromise<void>;
|
|
58
|
-
export declare const UnsubscribeResource: (pluginID: string, request: HostSubscriptionRequest) => CancellablePromise<void>;
|
|
49
|
+
export declare const OpenSourceView: (pluginID: string, request: HostSourceViewRequest) => CancellablePromise<HostSourceViewOpened>;
|
|
50
|
+
export declare const SyncSourceView: (pluginID: string, viewID: string) => CancellablePromise<void>;
|
|
51
|
+
export declare const RefreshSourceView: (pluginID: string, viewID: string) => CancellablePromise<void>;
|
|
52
|
+
export declare const CloseSourceView: (pluginID: string, viewID: string) => CancellablePromise<void>;
|
|
53
|
+
export declare const GetSourceStates: (pluginID: string, route: AccessRoute) => CancellablePromise<HostSourceStates>;
|
|
54
|
+
export declare const RetryConnectionSources: (pluginID: string, route: AccessRoute) => CancellablePromise<void>;
|
|
59
55
|
export declare const ScopeValues: (pluginID: string, route: AccessRoute, dimension: string) => CancellablePromise<string[]>;
|
|
60
56
|
export { CheckConnection, GetConnection, ListAllConnections, ListConnections, ListPlugins, LoadConnections, StartConnection, StopConnection, HasPlugin, } from '../../bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper';
|
|
@@ -86,7 +86,7 @@ export interface Dimension {
|
|
|
86
86
|
name: string;
|
|
87
87
|
allowEmpty: boolean;
|
|
88
88
|
}
|
|
89
|
-
export type Operation = 'enumerate' | 'get' | 'nativeQuery' | '
|
|
89
|
+
export type Operation = 'enumerate' | 'get' | 'nativeQuery' | 'sourceUpdates' | 'create' | 'mutationUpdate' | 'delete' | 'action';
|
|
90
90
|
export interface ResourceCapability {
|
|
91
91
|
operation: Operation;
|
|
92
92
|
scope: QueryScope;
|
|
@@ -108,6 +108,7 @@ export interface ResourceType {
|
|
|
108
108
|
modelRepresentation?: string;
|
|
109
109
|
nativeQueries?: readonly NativeQueryDescriptor[];
|
|
110
110
|
capabilities: readonly ResourceCapability[];
|
|
111
|
+
acquireOnConnect?: boolean;
|
|
111
112
|
nativeAuthorityHint?: NativeAuthorityHint;
|
|
112
113
|
}
|
|
113
114
|
export interface CatalogRequest {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccessRoute, Count, EnumerateRequest, GetRequest, NativeQueryRequest, QueryScope, ReadTarget, Record as ResourceRecord, ResourceReference, ScopeEntry, SourcePage } from './domain';
|
|
2
|
-
import {
|
|
2
|
+
import { SourceContinuity, SourceCoverage, SourceMode, SourceSessionState } from '../../types/source';
|
|
3
3
|
import { Connection } from '../../bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
|
|
4
4
|
import { AppError } from '../../errors/types';
|
|
5
5
|
/** Keys come from the host. Neither routes nor display fields mint identity. */
|
|
@@ -17,14 +17,63 @@ export interface HostSourcePage {
|
|
|
17
17
|
/** Client cache overlay; sourcePage remains immutable native acquisition metadata. */
|
|
18
18
|
export interface ResourceView extends HostSourcePage {
|
|
19
19
|
view?: {
|
|
20
|
-
|
|
20
|
+
continuity: SourceContinuity;
|
|
21
|
+
coverage?: SourceCoverage;
|
|
21
22
|
count: Count;
|
|
22
|
-
|
|
23
|
-
membershipStale: boolean;
|
|
23
|
+
viewGeneration: string;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface HostSourceViewRequest {
|
|
27
|
+
targetId: string;
|
|
28
|
+
target: ReadTarget;
|
|
29
|
+
updates: 'none' | 'ifSupported';
|
|
30
|
+
}
|
|
31
|
+
export interface HostSourceViewOpened {
|
|
32
|
+
viewId: string;
|
|
33
|
+
topic: string;
|
|
34
|
+
mode: SourceMode;
|
|
35
|
+
}
|
|
36
|
+
export interface HostSourceStatus {
|
|
37
|
+
state: SourceSessionState;
|
|
38
|
+
mode: SourceMode;
|
|
39
|
+
continuity?: SourceContinuity;
|
|
40
|
+
coverage?: SourceCoverage;
|
|
41
|
+
count: Count;
|
|
42
|
+
error?: {
|
|
43
|
+
code: string;
|
|
44
|
+
title: string;
|
|
45
|
+
message: string;
|
|
46
|
+
suggestions?: string[];
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export interface HostRecordRemoval {
|
|
50
|
+
key: string;
|
|
51
|
+
addressKey: string;
|
|
52
|
+
}
|
|
53
|
+
export interface HostSourceViewReset {
|
|
54
|
+
reason: 'overflow' | 'sourceReset' | 'resync' | 'closed';
|
|
55
|
+
message: string;
|
|
56
|
+
}
|
|
57
|
+
export interface HostSourceViewEvent {
|
|
58
|
+
viewId: string;
|
|
59
|
+
viewGeneration: string;
|
|
60
|
+
sequence: string;
|
|
61
|
+
kind: 'snapshot' | 'snapshotEnd' | 'changes' | 'status' | 'reset';
|
|
62
|
+
records?: HostRecord[];
|
|
63
|
+
upserts?: HostRecord[];
|
|
64
|
+
removes?: HostRecordRemoval[];
|
|
65
|
+
status?: HostSourceStatus;
|
|
66
|
+
reset?: HostSourceViewReset;
|
|
67
|
+
}
|
|
68
|
+
export interface HostSourceStates {
|
|
69
|
+
route: AccessRoute;
|
|
70
|
+
types: Record<string, HostSourceStatus>;
|
|
71
|
+
}
|
|
72
|
+
export interface HostSourceStateEvent {
|
|
27
73
|
pluginID: string;
|
|
74
|
+
route: AccessRoute;
|
|
75
|
+
type: string;
|
|
76
|
+
status: HostSourceStatus;
|
|
28
77
|
}
|
|
29
78
|
/** Native client readiness, not network health. UNKNOWN is not disconnected. */
|
|
30
79
|
export type NativeConnectionReadiness = 'UNKNOWN' | 'DISCONNECTED' | 'PENDING' | 'CONNECTED' | 'FAILED';
|
|
@@ -33,7 +82,7 @@ export interface HostConnectionState {
|
|
|
33
82
|
readiness: NativeConnectionReadiness;
|
|
34
83
|
readinessError?: AppError;
|
|
35
84
|
resources: {
|
|
36
|
-
[type: string]:
|
|
85
|
+
[type: string]: SourceSessionState;
|
|
37
86
|
};
|
|
38
87
|
resourceCounts: {
|
|
39
88
|
[type: string]: Count;
|
|
@@ -72,31 +121,6 @@ export interface HostNativeQueryRequest {
|
|
|
72
121
|
targetId: string;
|
|
73
122
|
request: NativeQueryRequest;
|
|
74
123
|
}
|
|
75
|
-
export interface HostSubscriptionRequest {
|
|
76
|
-
targetId: string;
|
|
77
|
-
target: ReadTarget;
|
|
78
|
-
}
|
|
79
|
-
export interface HostWatchAddPayload {
|
|
80
|
-
route: AccessRoute;
|
|
81
|
-
record: HostRecord;
|
|
82
|
-
metadata: ResourceMetadata;
|
|
83
|
-
guarantee: 'bestEffort';
|
|
84
|
-
}
|
|
85
|
-
export interface HostWatchUpdatePayload {
|
|
86
|
-
route: AccessRoute;
|
|
87
|
-
record: HostRecord;
|
|
88
|
-
metadata: ResourceMetadata;
|
|
89
|
-
guarantee: 'bestEffort';
|
|
90
|
-
}
|
|
91
|
-
export interface HostWatchDeletePayload {
|
|
92
|
-
route: AccessRoute;
|
|
93
|
-
reference: ResourceReference;
|
|
94
|
-
key: string;
|
|
95
|
-
addressKey: string;
|
|
96
|
-
targetId: string;
|
|
97
|
-
lastKnown?: HostRecord;
|
|
98
|
-
guarantee: 'bestEffort';
|
|
99
|
-
}
|
|
100
124
|
export interface AuthorityDisclosure {
|
|
101
125
|
continuity: string;
|
|
102
126
|
limitations: readonly string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HostRecord, HostSourceStatus, HostSourceViewOpened, HostSourceViewRequest } from './host';
|
|
2
|
+
export interface SourceViewSnapshot {
|
|
3
|
+
viewGeneration?: string;
|
|
4
|
+
records: ReadonlyMap<string, HostRecord>;
|
|
5
|
+
status?: HostSourceStatus;
|
|
6
|
+
complete: boolean;
|
|
7
|
+
/** Changes relevant to consumers that invalidate derived caches. */
|
|
8
|
+
event?: {
|
|
9
|
+
kind: 'snapshotEnd' | 'changes' | 'reset';
|
|
10
|
+
revision: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface SourceViewClient {
|
|
14
|
+
readonly mode: HostSourceViewOpened['mode'];
|
|
15
|
+
subscribe(listener: () => void): () => void;
|
|
16
|
+
getSnapshot(): SourceViewSnapshot;
|
|
17
|
+
refresh(): Promise<void>;
|
|
18
|
+
close(): void;
|
|
19
|
+
}
|
|
20
|
+
export declare function openSourceView(pluginID: string, request: HostSourceViewRequest): Promise<SourceViewClient>;
|
package/dist/search.d.ts
CHANGED