@omniviewdev/runtime 0.25.0 → 0.27.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 (43) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +2 -0
  3. package/dist/api.js +492 -276
  4. package/dist/bindings/events/index.d.ts +12 -0
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +85 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +3 -1
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +2 -1
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/index.d.ts +1 -1
  10. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/models.d.ts +22 -0
  11. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/resourcecatalog/index.d.ts +1 -0
  12. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/resourcecatalog/models.d.ts +127 -0
  13. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +1 -1
  14. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +45 -18
  15. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/index.d.ts +1 -1
  16. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +0 -22
  17. package/dist/compat/types.d.ts +2 -1
  18. package/dist/context/drawer/types.d.ts +8 -0
  19. package/dist/hooks/resource/index.d.ts +1 -0
  20. package/dist/hooks/resource/useEditorSchemas.d.ts +9 -8
  21. package/dist/hooks/resource/useSchemaFields.d.ts +45 -0
  22. package/dist/index.cjs +4 -4
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.js +1685 -1582
  25. package/dist/{models-CewFz24b.js → models-BwT6PfKo.js} +41 -38
  26. package/dist/{models-CLq49NOj.js → models-CcH0zldZ.js} +1 -1
  27. package/dist/{models-BHsd9kBp.cjs → models-CpFXL1IY.cjs} +1 -1
  28. package/dist/models-R2rKpSiU.cjs +1 -0
  29. package/dist/models.cjs +1 -1
  30. package/dist/models.d.ts +4 -1
  31. package/dist/models.js +100 -94
  32. package/dist/resource/v2/ancillary.d.ts +1 -8
  33. package/dist/resource/v2/client.d.ts +5 -2
  34. package/dist/resource/v2/domain.d.ts +0 -2
  35. package/dist/resource/v2/query-lease.d.ts +145 -0
  36. package/dist/resource/v2/query-observer.d.ts +37 -0
  37. package/dist/resource/v2/query.d.ts +120 -0
  38. package/dist/resource/v2/schema.d.ts +86 -0
  39. package/dist/{service-Bu30yNPj.js → service-Brxo1pLe.js} +306 -299
  40. package/dist/service-COOtx0k6.cjs +1 -0
  41. package/package.json +3 -3
  42. package/dist/models-DH1E1koG.cjs +0 -1
  43. package/dist/service-wGUMmq3M.cjs +0 -1
@@ -54,6 +54,18 @@ export declare const MenuViewSidebarMinimize = "menu/view/sidebar/minimize";
54
54
  * Name of the custom event "menu/view/terminal/create".
55
55
  */
56
56
  export declare const MenuViewTerminalCreate = "menu/view/terminal/create";
57
+ /**
58
+ * Name of the custom event "menu/view/zoom/in".
59
+ */
60
+ export declare const MenuViewZoomIn = "menu/view/zoom/in";
61
+ /**
62
+ * Name of the custom event "menu/view/zoom/out".
63
+ */
64
+ export declare const MenuViewZoomOut = "menu/view/zoom/out";
65
+ /**
66
+ * Name of the custom event "menu/view/zoom/reset".
67
+ */
68
+ export declare const MenuViewZoomReset = "menu/view/zoom/reset";
57
69
  /**
58
70
  * Name of the custom event "plugin/crash".
59
71
  */
@@ -1,4 +1,4 @@
1
1
  import * as GraphService from "./graphservice.js";
2
2
  import * as ServiceWrapper from "./servicewrapper.js";
3
3
  export { GraphService, ServiceWrapper };
4
- export { ActionEventDTO, ActionSnapshot, AuthorityEvidence, ConnectionProfile, ConnectionProfileCredentials, ConnectionProfileResult, ConnectionState, ConnectionStatusPayload, HostConnectionMetadata, HostEnumerateRequest, HostGetRequest, HostRecord, HostSourcePage, HostSourceStateEvent, HostSourceStates, HostSourceStatus, HostSourceViewOpened, HostSourceViewRequest, ResolveReferenceRequest, ResolveTargetRequest, ResolvedReference, ResolvedTarget, SourcePageMetadata } from './models.js';
4
+ export { ActionEventDTO, ActionSnapshot, AuthorityEvidence, ConnectionProfile, ConnectionProfileCredentials, ConnectionProfileResult, ConnectionState, ConnectionStatusPayload, EditorSchemaAssociation, EditorSchemaDocument, HostConnectionMetadata, HostEnumerateRequest, HostGetRequest, HostRecord, HostSourcePage, HostSourceStateEvent, HostSourceStates, HostSourceStatus, HostSourceViewOpened, HostSourceViewRequest, ResolveReferenceRequest, ResolveTargetRequest, ResolvedReference, ResolvedTarget, SchemaFieldsRequest, SchemaFieldsResult, SourcePageMetadata } from './models.js';
@@ -1,4 +1,6 @@
1
+ import * as json$0 from "../../../../../../../encoding/json/models.js";
1
2
  import * as apperror$0 from "../../apperror/models.js";
3
+ import * as resourcecatalog$0 from "../../resourcecatalog/models.js";
2
4
  import * as resourcev2$0 from "../../../../../plugin-sdk/pkg/resource/v2/models.js";
3
5
  import * as types$0 from "../../../../../plugin-sdk/pkg/types/models.js";
4
6
  export declare class ActionEventDTO {
@@ -135,6 +137,50 @@ export declare class ConnectionStatusPayload {
135
137
  */
136
138
  static createFrom($$source?: any): ConnectionStatusPayload;
137
139
  }
140
+ /**
141
+ * EditorSchemaAssociation binds a host-derived Monaco model directory to a
142
+ * rendered catalog document.
143
+ */
144
+ export declare class EditorSchemaAssociation {
145
+ "type": string;
146
+ "representation"?: string;
147
+ "key"?: string;
148
+ "language": string;
149
+ /**
150
+ * "file:///omniview-schema/<hex16>"
151
+ */
152
+ "modelDirectory": string;
153
+ /**
154
+ * "** /omniview-schema/<hex16>/*"
155
+ */
156
+ "fileMatch": string;
157
+ "documentId"?: string;
158
+ "root"?: string;
159
+ /**
160
+ * "available"|"absent"|"unavailable"|"unsupported"|"invalid"|"limit"
161
+ */
162
+ "status": string;
163
+ "code"?: string;
164
+ /** Creates a new EditorSchemaAssociation instance. */
165
+ constructor($$source?: Partial<EditorSchemaAssociation>);
166
+ /**
167
+ * Creates a new EditorSchemaAssociation instance from a string or object.
168
+ */
169
+ static createFrom($$source?: any): EditorSchemaAssociation;
170
+ }
171
+ /**
172
+ * EditorSchemaDocument is a host-rendered draft-07 editor document.
173
+ */
174
+ export declare class EditorSchemaDocument {
175
+ "documentId": string;
176
+ "schema": json$0.RawMessage;
177
+ /** Creates a new EditorSchemaDocument instance. */
178
+ constructor($$source?: Partial<EditorSchemaDocument>);
179
+ /**
180
+ * Creates a new EditorSchemaDocument instance from a string or object.
181
+ */
182
+ static createFrom($$source?: any): EditorSchemaDocument;
183
+ }
138
184
  /**
139
185
  * HostConnectionMetadata adds transport identity without changing SDK-owned facts.
140
186
  * A provider-wide event omits ConnectionID and Snapshot.
@@ -315,6 +361,45 @@ export declare class ResolvedTarget {
315
361
  */
316
362
  static createFrom($$source?: any): ResolvedTarget;
317
363
  }
364
+ /**
365
+ * SchemaFieldsRequest selects one navigation position in a representation schema.
366
+ */
367
+ export declare class SchemaFieldsRequest {
368
+ "route": resourcev2$0.AccessRoute;
369
+ "type": string;
370
+ "representation"?: string;
371
+ "path": resourcecatalog$0.PathSegment[];
372
+ /** Creates a new SchemaFieldsRequest instance. */
373
+ constructor($$source?: Partial<SchemaFieldsRequest>);
374
+ /**
375
+ * Creates a new SchemaFieldsRequest instance from a string or object.
376
+ */
377
+ static createFrom($$source?: any): SchemaFieldsRequest;
378
+ }
379
+ /**
380
+ * SchemaFieldsResult is catalog-derived field discovery for one representation.
381
+ */
382
+ export declare class SchemaFieldsResult {
383
+ "catalogRevision": string;
384
+ "type": string;
385
+ "representation": string;
386
+ /**
387
+ * provider state: absent|available|unavailable
388
+ */
389
+ "schemaState": string;
390
+ "schemaRevision"?: string;
391
+ "dialect"?: string;
392
+ "overlay": resourcecatalog$0.TypeOverlay;
393
+ "fields": resourcecatalog$0.FieldInfo[];
394
+ "truncated": boolean;
395
+ "truncationReason"?: string;
396
+ /** Creates a new SchemaFieldsResult instance. */
397
+ constructor($$source?: Partial<SchemaFieldsResult>);
398
+ /**
399
+ * Creates a new SchemaFieldsResult instance from a string or object.
400
+ */
401
+ static createFrom($$source?: any): SchemaFieldsResult;
402
+ }
318
403
  export declare class SourcePageMetadata {
319
404
  "nextCursor"?: string | null;
320
405
  "count": resourcev2$0.Count;
@@ -17,13 +17,15 @@ export declare function GetAllConnectionStates(): $CancellablePromise<{
17
17
  }>;
18
18
  export declare function GetConnection(pluginID: string, connectionID: string): $CancellablePromise<types$0.Connection>;
19
19
  export declare function GetConnectionMetadata(pluginID: string, connectionID: string): $CancellablePromise<$models.HostConnectionMetadata>;
20
- export declare function GetEditorSchemas(pluginID: string, route: resourcev2$0.AccessRoute): $CancellablePromise<resourcev2$0.EditorSchema[]>;
20
+ export declare function GetEditorSchemaDocument(pluginID: string, route: resourcev2$0.AccessRoute, documentID: string): $CancellablePromise<$models.EditorSchemaDocument>;
21
+ export declare function GetEditorSchemas(pluginID: string, route: resourcev2$0.AccessRoute): $CancellablePromise<$models.EditorSchemaAssociation[]>;
21
22
  export declare function GetHealth(pluginID: string, encoded: string): $CancellablePromise<resourcev2$0.ResourceHealth | null>;
22
23
  export declare function GetRelationships(pluginID: string, route: resourcev2$0.AccessRoute, resourceType: string): $CancellablePromise<resourcev2$0.RelationshipDescriptor[]>;
23
24
  export declare function GetResourceDefinition(pluginID: string, route: resourcev2$0.AccessRoute, resourceType: string): $CancellablePromise<resourcev2$0.ResourceDefinition>;
24
25
  export declare function GetResourceEvents(pluginID: string, request: resourcev2$0.GetRequest, limit: number): $CancellablePromise<resourcev2$0.ResourceEvent[]>;
25
26
  export declare function GetResourceGroups(pluginID: string, route: resourcev2$0.AccessRoute): $CancellablePromise<resourcev2$0.ResourceGroup[]>;
26
27
  export declare function GetSchemaDocument(pluginID: string, route: resourcev2$0.AccessRoute, reference: resourcev2$0.SchemaDocumentReference): $CancellablePromise<resourcev2$0.SchemaDocument>;
28
+ export declare function GetSchemaFields(pluginID: string, request: $models.SchemaFieldsRequest): $CancellablePromise<$models.SchemaFieldsResult>;
27
29
  export declare function GetSourceStates(pluginID: string, route: resourcev2$0.AccessRoute): $CancellablePromise<$models.HostSourceStates>;
28
30
  export declare function HasPlugin(pluginID: string): $CancellablePromise<boolean>;
29
31
  export declare function ImportConnectionProfile(pluginID: string, connectionID: string): $CancellablePromise<$models.ConnectionProfileResult>;
@@ -1,7 +1,7 @@
1
1
  import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
2
2
  import * as registry$0 from "./registry/models.js";
3
+ import * as types$0 from "./types/models.js";
3
4
  import * as config$0 from "../../../../plugin-sdk/pkg/config/models.js";
4
- import * as types$0 from "../../../../plugin-sdk/pkg/types/models.js";
5
5
  import * as $models from "./models.js";
6
6
  export declare function GetPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
7
7
  export declare function GetPluginDownloadStats(pluginID: string): $CancellablePromise<registry$0.DownloadStats | null>;
@@ -23,5 +23,6 @@ export declare function LoadPlugin(id: string, opts: $models.LoadPluginOptions |
23
23
  export declare function ReloadPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
24
24
  export declare function RetryFailedPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
25
25
  export declare function SearchPlugins(query: string, category: string, sort: string): $CancellablePromise<registry$0.AvailablePlugin[]>;
26
+ export declare function SetPluginEnabled(id: string, enabled: boolean): $CancellablePromise<types$0.PluginInfo>;
26
27
  export declare function UninstallPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
27
28
  export declare function UnlinkDevPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
@@ -1 +1 @@
1
- export { PluginStateRecord } from './models.js';
1
+ export { PluginInfo, PluginStateRecord } from './models.js';
@@ -1,5 +1,27 @@
1
1
  import * as lifecycle$0 from "../lifecycle/models.js";
2
2
  import * as config$0 from "../../../../../plugin-sdk/pkg/config/models.js";
3
+ import * as types$0 from "../../../../../plugin-sdk/pkg/types/models.js";
4
+ /**
5
+ * PluginInfo is the host-owned, frontend-safe plugin inventory descriptor.
6
+ */
7
+ export declare class PluginInfo {
8
+ "id": string;
9
+ "metadata": config$0.PluginMeta;
10
+ "phase": string;
11
+ "enabled": boolean;
12
+ "devMode": boolean;
13
+ "devPath"?: string;
14
+ "capabilities": types$0.Capability[];
15
+ "lastError"?: string;
16
+ "origin": string;
17
+ "frontendModule": string;
18
+ /** Creates a new PluginInfo instance. */
19
+ constructor($$source?: Partial<PluginInfo>);
20
+ /**
21
+ * Creates a new PluginInfo instance from a string or object.
22
+ */
23
+ static createFrom($$source?: any): PluginInfo;
24
+ }
3
25
  /**
4
26
  * PluginStateRecord is the subset of PluginRecord that gets persisted to disk.
5
27
  */
@@ -0,0 +1 @@
1
+ export { BranchCondition, Constraint, FieldInfo, PathSegment, TypeOverlay } from './models.js';
@@ -0,0 +1,127 @@
1
+ import * as resourcev2$0 from "../../../../plugin-sdk/pkg/resource/v2/models.js";
2
+ /**
3
+ * BranchCondition names the union branch that makes a field applicable.
4
+ */
5
+ export declare class BranchCondition {
6
+ "Pointer": string;
7
+ "Branch": number;
8
+ /**
9
+ * "anyOf"|"oneOf"
10
+ */
11
+ "Combinator": string;
12
+ /** Creates a new BranchCondition instance. */
13
+ constructor($$source?: Partial<BranchCondition>);
14
+ /**
15
+ * Creates a new BranchCondition instance from a string or object.
16
+ */
17
+ static createFrom($$source?: any): BranchCondition;
18
+ }
19
+ /**
20
+ * Constraint names one source keyword that admission does not enforce.
21
+ * Pointer is an RFC6901 pointer into the source document.
22
+ */
23
+ export declare class Constraint {
24
+ "Pointer": string;
25
+ "Keyword": string;
26
+ /** Creates a new Constraint instance. */
27
+ constructor($$source?: Partial<Constraint>);
28
+ /**
29
+ * Creates a new Constraint instance from a string or object.
30
+ */
31
+ static createFrom($$source?: any): Constraint;
32
+ }
33
+ /**
34
+ * FieldInfo describes one child of the navigated position.
35
+ */
36
+ export declare class FieldInfo {
37
+ "Segment": PathSegment;
38
+ /**
39
+ * sorted; empty = any
40
+ */
41
+ "Types": string[];
42
+ "Format": string;
43
+ "Title": string;
44
+ "Description": string;
45
+ /**
46
+ * first MaxEnumValues
47
+ */
48
+ "Enum": resourcev2$0.Value[];
49
+ /**
50
+ * "required"|"optional"|"unknown"
51
+ */
52
+ "Presence": string;
53
+ /**
54
+ * "yes"|"no"|"unknown"
55
+ */
56
+ "Nullable": string;
57
+ /**
58
+ * "unconditional"|"conditional"
59
+ */
60
+ "Applicability": string;
61
+ "Conditions": BranchCondition[];
62
+ /**
63
+ * "static"|"partial"|"dynamic"
64
+ */
65
+ "CELChecking": string;
66
+ "HasChildren": boolean;
67
+ /**
68
+ * always "unsupported" in P07
69
+ */
70
+ "NativeFilter": string;
71
+ /** Creates a new FieldInfo instance. */
72
+ constructor($$source?: Partial<FieldInfo>);
73
+ /**
74
+ * Creates a new FieldInfo instance from a string or object.
75
+ */
76
+ static createFrom($$source?: any): FieldInfo;
77
+ }
78
+ /**
79
+ * PathSegment is one navigation step from the schema root.
80
+ */
81
+ export declare class PathSegment {
82
+ /**
83
+ * "field"|"mapValue"|"item"
84
+ */
85
+ "Kind": string;
86
+ "Name"?: string;
87
+ /** Creates a new PathSegment instance. */
88
+ constructor($$source?: Partial<PathSegment>);
89
+ /**
90
+ * Creates a new PathSegment instance from a string or object.
91
+ */
92
+ static createFrom($$source?: any): PathSegment;
93
+ }
94
+ /**
95
+ * TypeOverlay states what the host can check for one representation and
96
+ * what the provider declares natively. A schema never grants native
97
+ * capabilities or native filtering.
98
+ */
99
+ export declare class TypeOverlay {
100
+ /**
101
+ * Descriptor.Capabilities operations, sorted, unique
102
+ */
103
+ "Operations": resourcev2$0.Operation[];
104
+ /**
105
+ * only when OperationNativeQuery is declared; else empty
106
+ */
107
+ "NativeQueryLanguages": string[];
108
+ /**
109
+ * "schemaChecked"|"dynamic"|"unavailable"|"unsupported"
110
+ */
111
+ "HostEvaluation": string;
112
+ /**
113
+ * error code when unavailable or unsupported
114
+ */
115
+ "HostEvaluationCode": string;
116
+ /**
117
+ * "full"|"reduced"|"none"
118
+ */
119
+ "Validation": string;
120
+ "Unvalidated": Constraint[];
121
+ /** Creates a new TypeOverlay instance. */
122
+ constructor($$source?: Partial<TypeOverlay>);
123
+ /**
124
+ * Creates a new TypeOverlay instance from a string or object.
125
+ */
126
+ static createFrom($$source?: any): TypeOverlay;
127
+ }
@@ -1,2 +1,2 @@
1
- export { AccessRoute, ActionDescriptor, ActionScope, CatalogRequest, ColumnDefinition, ConnectionMetadataError, ConnectionMetadataSnapshot, Count, EdgeDirection, EditorSchema, EnumerateRequest, EventSeverity, Feature, FeatureSet, GetRequest, HealthCondition, HealthStatus, ReadTarget, Record, RelationshipDescriptor, RelationshipExtractor, RelationshipTarget, RelationshipType, Representation, ResolvedRelationship, ResourceDefinition, ResourceEvent, ResourceGroup, ResourceHealth, ResourceLink, ResourceOperationError, ResourceReference, SchemaDocument, SchemaDocumentReference, ScopeEntry, ScopeExtractor, SourceCoverage } from './models.js';
1
+ export { AccessRoute, ActionDescriptor, ActionScope, CatalogRequest, ColumnDefinition, ConnectionMetadataError, ConnectionMetadataSnapshot, Count, EdgeDirection, EnumerateRequest, EventSeverity, Feature, FeatureSet, GetRequest, HealthCondition, HealthStatus, Operation, ReadTarget, Record, RelationshipDescriptor, RelationshipExtractor, RelationshipTarget, RelationshipType, Representation, ResolvedRelationship, ResourceDefinition, ResourceEvent, ResourceGroup, ResourceHealth, ResourceLink, ResourceOperationError, ResourceReference, SchemaDocument, SchemaDocumentReference, ScopeEntry, ScopeExtractor, SourceCoverage } from './models.js';
2
2
  export type { Catalog, ConnectionMetadataEntry, Coverage, QueryScope, ResourceAddress, Schema, SchemaBinding, Value } from './models.js';
@@ -169,6 +169,9 @@ export declare class Count {
169
169
  * Coverage states known acquisition limitations, not operation success alone.
170
170
  * Complete forbids Paths and Reason. Partial and unknown require a public-safe
171
171
  * Reason; preserve any reported path limitations rather than claiming completeness.
172
+ * Each Paths entry is an RFC6901 JSON pointer into the record body that starts
173
+ * with "/" and names a LIMITED subtree; empty Paths on partial or unknown
174
+ * coverage means the limitation is not localized.
172
175
  */
173
176
  export type Coverage = any;
174
177
  /**
@@ -189,24 +192,6 @@ export declare enum EdgeDirection {
189
192
  */
190
193
  EdgeIncoming = "incoming"
191
194
  }
192
- /**
193
- * EditorSchema associates editor selection metadata with an explicit schema
194
- * binding. URI is editor metadata, not permission to fetch an external document;
195
- * Binding distinguishes unavailable acquisition from known schema absence.
196
- */
197
- export declare class EditorSchema {
198
- "type": string;
199
- "fileMatch": string;
200
- "uri": string;
201
- "language": string;
202
- "binding": SchemaBinding;
203
- /** Creates a new EditorSchema instance. */
204
- constructor($$source?: Partial<EditorSchema>);
205
- /**
206
- * Creates a new EditorSchema instance from a string or object.
207
- */
208
- static createFrom($$source?: any): EditorSchema;
209
- }
210
195
  /**
211
196
  * EnumerateRequest asks for one finite source page, not a subscription or a
212
197
  * host-planned query result. A valid empty oneOf must return an empty page.
@@ -392,6 +377,48 @@ export declare enum HealthStatus {
392
377
  */
393
378
  HealthUnknown = "unknown"
394
379
  }
380
+ /**
381
+ * Operation names independently admitted capabilities, not required methods.
382
+ * Advertising one operation never implies support for another.
383
+ */
384
+ export declare enum Operation {
385
+ /**
386
+ * The Go zero value for the underlying type of the enum.
387
+ */
388
+ $zero = "",
389
+ /**
390
+ * OperationEnumerate advertises scoped native enumeration, not final host query membership.
391
+ */
392
+ OperationEnumerate = "enumerate",
393
+ /**
394
+ * OperationGet advertises acquisition of one exact canonical reference.
395
+ */
396
+ OperationGet = "get",
397
+ /**
398
+ * OperationNativeQuery advertises provider-native query execution.
399
+ */
400
+ OperationNativeQuery = "nativeQuery",
401
+ /**
402
+ * OperationCreate admits only the create mutation verb.
403
+ */
404
+ OperationCreate = "create",
405
+ /**
406
+ * OperationMutationUpdate admits only the update mutation verb.
407
+ */
408
+ OperationMutationUpdate = "mutationUpdate",
409
+ /**
410
+ * OperationDelete admits only the delete mutation verb.
411
+ */
412
+ OperationDelete = "delete",
413
+ /**
414
+ * OperationAction advertises action dispatch; action descriptors define available actions.
415
+ */
416
+ OperationAction = "action",
417
+ /**
418
+ * OperationSourceUpdates advertises a source session that follows changes after its snapshot.
419
+ */
420
+ OperationSourceUpdates = "sourceUpdates"
421
+ }
395
422
  /**
396
423
  * QueryScope intersects constraints across dimensions. Each declared query
397
424
  * dimension must appear exactly once, including unrestricted dimensions.
@@ -1 +1 @@
1
- export { Capability, Connection, ConnectionAutoConnect, ConnectionAutoConnectRetry, ConnectionAutoConnectTrigger, ConnectionLifecycle, ConnectionStatus, ConnectionStatusCode, PluginInfo } from './models.js';
1
+ export { Capability, Connection, ConnectionAutoConnect, ConnectionAutoConnectRetry, ConnectionAutoConnectTrigger, ConnectionLifecycle, ConnectionStatus, ConnectionStatusCode } from './models.js';
@@ -1,4 +1,3 @@
1
- import * as config$0 from "../config/models.js";
2
1
  import * as time$0 from "../../../../../time/models.js";
3
2
  /**
4
3
  * Capability represents a plugin capability as a string type.
@@ -270,24 +269,3 @@ export declare enum ConnectionStatusCode {
270
269
  */
271
270
  ConnectionStatusRequestEntityTooLarge = "REQUEST_ENTITY_TOO_LARGE"
272
271
  }
273
- /**
274
- * PluginInfo represents the display/API-facing view of a plugin.
275
- * This type is safe to serialize to JSON for the frontend.
276
- * Runtime fields (RPCClient, PluginClient) live in the host-only PluginRecord.
277
- */
278
- export declare class PluginInfo {
279
- "id": string;
280
- "metadata": config$0.PluginMeta;
281
- "phase": string;
282
- "enabled": boolean;
283
- "devMode": boolean;
284
- "devPath"?: string;
285
- "capabilities": Capability[];
286
- "lastError"?: string;
287
- /** Creates a new PluginInfo instance. */
288
- constructor($$source?: Partial<PluginInfo>);
289
- /**
290
- * Creates a new PluginInfo instance from a string or object.
291
- */
292
- static createFrom($$source?: any): PluginInfo;
293
- }
@@ -1,4 +1,5 @@
1
1
  import { ConnectionStatusCode as Generated } from '../bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
2
- export { Capability as PluginCapability, Connection, ConnectionAutoConnect, ConnectionAutoConnectRetry, ConnectionAutoConnectTrigger, ConnectionLifecycle, ConnectionStatus, PluginInfo, } from '../bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
2
+ export { Capability as PluginCapability, Connection, ConnectionAutoConnect, ConnectionAutoConnectRetry, ConnectionAutoConnectTrigger, ConnectionLifecycle, ConnectionStatus, } from '../bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models';
3
+ export { PluginInfo } from '../bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/models';
3
4
  export declare const ConnectionStatusCode: typeof Generated;
4
5
  export type ConnectionStatusCode = Generated;
@@ -88,6 +88,14 @@ export type DrawerComponentAction<T = any> = {
88
88
  * list calculations so render memoization observes external state changes.
89
89
  */
90
90
  list?: ((ctx: DrawerContext<T>, snapshot?: unknown) => Array<DrawerComponentActionListItem>) | Array<DrawerComponentActionListItem>;
91
+ /**
92
+ * Optional joined dropdown beside the primary action/list. Unlike the primary
93
+ * list, this menu always opens for selection, including when it has one item.
94
+ */
95
+ splitMenu?: {
96
+ title: string;
97
+ list: NonNullable<DrawerComponentAction<T>['list']>;
98
+ };
91
99
  /**
92
100
  * Optional hook-backed state used while rendering action availability and lists.
93
101
  * Snapshots must retain identity until the subscribed state changes.
@@ -8,6 +8,7 @@ export * from './useResources';
8
8
  export * from './useResourceMutations';
9
9
  export * from './useResourceActions';
10
10
  export * from './useEditorSchemas';
11
+ export * from './useSchemaFields';
11
12
  export * from './useSourceStates';
12
13
  export * from './useActiveSyncs';
13
14
  export * from './useStreamAction';
@@ -1,3 +1,4 @@
1
+ import { EditorSchemaDocument } from '../../resource/v2/schema';
1
2
  import { AccessRoute } from '../../resource/v2/domain';
2
3
  type UseEditorSchemasOptions = {
3
4
  /** The plugin ID to fetch schemas for */
@@ -8,20 +9,20 @@ type UseEditorSchemasOptions = {
8
9
  enabled?: boolean;
9
10
  };
10
11
  /**
11
- * useEditorSchemas fetches editor schemas for a plugin + connection pair
12
- * from the backend via Wails bindings.
12
+ * useEditorSchemas fetches host-derived editor schema associations for a
13
+ * plugin + connection pair, then each unique available rendered document once.
13
14
  *
14
- * Shared documents are fetched once per exact reference and published together
15
- * with the schema bindings. Callers must pass both to the host SchemaRegistry.
15
+ * Associations and documents are published together; callers pass both to the
16
+ * host SchemaRegistry.
16
17
  */
17
18
  export declare const useEditorSchemas: ({ pluginID: explicitPluginID, route, enabled, }: UseEditorSchemasOptions) => {
18
- schemas: import('../..').EditorSchema[];
19
- documents: import('../..').SchemaDocument[];
19
+ associations: import('../..').EditorSchemaAssociation[];
20
+ documents: EditorSchemaDocument[];
20
21
  isLoading: boolean;
21
22
  error: Error | null;
22
23
  refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
23
- schemas: import('../..').EditorSchema[];
24
- documents: import('../..').SchemaDocument[];
24
+ associations: import('../..').EditorSchemaAssociation[];
25
+ documents: EditorSchemaDocument[];
25
26
  }, Error>>;
26
27
  };
27
28
  export default useEditorSchemas;
@@ -0,0 +1,45 @@
1
+ import { AccessRoute } from '../../resource/v2/domain';
2
+ import { EditorSchemaAssociation, PathSegment } from '../../resource/v2/schema';
3
+ type UseSchemaFieldsOptions = {
4
+ pluginID?: string;
5
+ /** Route used to acquire the catalog; never resource identity. */
6
+ route: AccessRoute;
7
+ type: string;
8
+ /** Omitted selects the type's default representation. */
9
+ representation?: string;
10
+ /** Navigation path from the representation schema root. */
11
+ path: readonly PathSegment[];
12
+ enabled?: boolean;
13
+ };
14
+ /**
15
+ * useSchemaFields lists catalog-derived fields one tier below `path`, with the
16
+ * type's evaluation overlay.
17
+ */
18
+ export declare const useSchemaFields: ({ pluginID: explicitPluginID, route, type, representation, path, enabled, }: UseSchemaFieldsOptions) => {
19
+ result: import('../..').SchemaFieldsResult | undefined;
20
+ fields: readonly import('../..').FieldInfo[];
21
+ overlay: import('../..').TypeOverlay | undefined;
22
+ isLoading: boolean;
23
+ error: Error | null;
24
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<import('../..').SchemaFieldsResult, Error>>;
25
+ };
26
+ /** Monaco model path inside an association's host-derived model directory. */
27
+ export declare const editorModelPath: (association: Pick<EditorSchemaAssociation, "modelDirectory" | "language">, name: string) => string;
28
+ type UseResourceEditorModelPathOptions = {
29
+ pluginID?: string;
30
+ route: AccessRoute;
31
+ type: string;
32
+ /** Omitted matches the catalog association (default representation) for the type. */
33
+ representation?: string;
34
+ /** Auxiliary schema key; when set, matches the auxiliary association instead. */
35
+ key?: string;
36
+ name: string;
37
+ enabled?: boolean;
38
+ };
39
+ /**
40
+ * useResourceEditorModelPath returns the Monaco model path whose host-derived
41
+ * directory binds the type's editor schema, or undefined while loading or when
42
+ * no association matches.
43
+ */
44
+ export declare const useResourceEditorModelPath: ({ pluginID, route, type, representation, key, name, enabled }: UseResourceEditorModelPathOptions) => string | undefined;
45
+ export {};