@omniviewdev/runtime 0.10.0 → 0.12.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 (113) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +7 -6
  3. package/dist/api.js +205 -133
  4. package/dist/bindings/events/index.d.ts +20 -0
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/index.d.ts +1 -0
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/models.d.ts +19 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +1 -1
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper.d.ts +1 -1
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/index.d.ts +1 -1
  10. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/models.d.ts +0 -20
  11. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper.d.ts +3 -6
  12. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/servicewrapper.d.ts +1 -1
  13. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +2 -2
  14. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +3 -15
  15. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +5 -18
  16. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
  17. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +190 -9
  18. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +34 -74
  19. package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/index.d.ts +3 -0
  20. package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/models.d.ts +178 -0
  21. package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/servicewrapper.d.ts +30 -0
  22. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +27 -0
  23. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +2 -0
  24. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +809 -0
  25. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +94 -0
  26. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +16 -6
  27. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/index.d.ts +1 -1
  28. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models.d.ts +27 -17
  29. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/index.d.ts +1 -1
  30. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models.d.ts +47 -24
  31. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/index.d.ts +1 -1
  32. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/models.d.ts +41 -20
  33. package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +16 -4
  34. package/dist/{calls-Bg_uMVc9.cjs → calls-B-HP1Icv.cjs} +1 -1
  35. package/dist/{calls-BvZkVSse.js → calls-DYGtxNJ6.js} +1 -0
  36. package/dist/compat/types.d.ts +1 -1
  37. package/dist/context/drawer/RightDrawerContext.d.ts +8 -4
  38. package/dist/context/drawer/types.d.ts +11 -21
  39. package/dist/context/operations/OperationsContext.d.ts +5 -5
  40. package/dist/exec.d.ts +5 -0
  41. package/dist/graph-JDqyJC_i.js +10 -0
  42. package/dist/graph-wHun0Bkz.cjs +1 -0
  43. package/dist/hooks/connection/index.d.ts +2 -1
  44. package/dist/hooks/connection/useConnection.d.ts +9 -30
  45. package/dist/hooks/connection/useConnectionProfiles.d.ts +7 -0
  46. package/dist/hooks/connection/useConnectionStatus.d.ts +8 -1
  47. package/dist/hooks/connection/useConnections.d.ts +3 -2
  48. package/dist/hooks/connection/useScopeValues.d.ts +9 -0
  49. package/dist/hooks/logs/useLogSession.d.ts +4 -1
  50. package/dist/hooks/metric/useMetricStream.d.ts +6 -2
  51. package/dist/hooks/metric/useResourceMetrics.d.ts +6 -2
  52. package/dist/hooks/networker/types.d.ts +5 -2
  53. package/dist/hooks/networker/useResourcePortForwarder.d.ts +1 -1
  54. package/dist/hooks/resource/useConnectionQueryGuard.d.ts +1 -1
  55. package/dist/hooks/resource/useDependencyTree.d.ts +4 -12
  56. package/dist/hooks/resource/useEditorSchemas.d.ts +12 -7
  57. package/dist/hooks/resource/useEventBatcher.d.ts +12 -47
  58. package/dist/hooks/resource/useRelatedResources.d.ts +6 -14
  59. package/dist/hooks/resource/useResolvedResourceTarget.d.ts +162 -0
  60. package/dist/hooks/resource/useResource.d.ts +7 -58
  61. package/dist/hooks/resource/useResourceActions.d.ts +9 -58
  62. package/dist/hooks/resource/useResourceGraph.d.ts +4 -12
  63. package/dist/hooks/resource/useResourceGroups.d.ts +5 -19
  64. package/dist/hooks/resource/useResourceMutations.d.ts +5 -61
  65. package/dist/hooks/resource/useResourceSearch.d.ts +5 -34
  66. package/dist/hooks/resource/useResourceType.d.ts +6 -19
  67. package/dist/hooks/resource/useResourceTypes.d.ts +5 -20
  68. package/dist/hooks/resource/useResources.d.ts +34 -60
  69. package/dist/hooks/resource/useStreamAction.d.ts +4 -8
  70. package/dist/hooks/resource/useWatchState.d.ts +15 -22
  71. package/dist/index.cjs +4 -4
  72. package/dist/index.d.ts +6 -1
  73. package/dist/index.js +2970 -2878
  74. package/dist/logs.d.ts +14 -0
  75. package/dist/metric.d.ts +35 -0
  76. package/dist/models-Cg1YRHQm.js +583 -0
  77. package/dist/models-DSGyy8lg.cjs +1 -0
  78. package/dist/models-UwESEW2B.js +1232 -0
  79. package/dist/models-dzj-SsFZ.cjs +1 -0
  80. package/dist/models.cjs +1 -1
  81. package/dist/models.d.ts +13 -8
  82. package/dist/models.js +118 -209
  83. package/dist/networker.d.ts +31 -0
  84. package/dist/resource/v2/ancillary.d.ts +161 -0
  85. package/dist/resource/v2/client.d.ts +57 -0
  86. package/dist/resource/v2/domain.d.ts +204 -0
  87. package/dist/resource/v2/graph-client.d.ts +7 -0
  88. package/dist/resource/v2/graph.d.ts +35 -0
  89. package/dist/resource/v2/host.d.ts +129 -0
  90. package/dist/resource/v2/requestJSON.d.ts +2 -0
  91. package/dist/resource/v2/value.d.ts +9 -0
  92. package/dist/resourceQueryKeys.d.ts +8 -4
  93. package/dist/runtime.cjs +1 -1
  94. package/dist/runtime.js +1 -1
  95. package/dist/search.d.ts +9 -11
  96. package/dist/servicewrapper-BOM6A8IG.cjs +1 -0
  97. package/dist/servicewrapper-Bda7yi8z.js +684 -0
  98. package/dist/types/watch.d.ts +48 -21
  99. package/dist/utils/activeSyncAggregator.d.ts +2 -2
  100. package/package.json +1 -1
  101. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/index.d.ts +0 -2
  102. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models.d.ts +0 -1199
  103. package/dist/compat/resource.d.ts +0 -4
  104. package/dist/hooks/connection/useConnectionNamespaces.d.ts +0 -21
  105. package/dist/legacyEnum-CKqyRmbX.js +0 -15
  106. package/dist/legacyEnum-DkV5yRdA.cjs +0 -1
  107. package/dist/models-BxypsesT.cjs +0 -1
  108. package/dist/models-C6jzDokQ.js +0 -347
  109. package/dist/models-CT4kHj47.js +0 -2444
  110. package/dist/models-DQl7tqts.cjs +0 -1
  111. package/dist/servicewrapper-C6SURWw1.js +0 -850
  112. package/dist/servicewrapper-COMjQHnY.cjs +0 -1
  113. package/dist/utils/resourceKey.d.ts +0 -12
@@ -0,0 +1,178 @@
1
+ import * as invocation$0 from "../../backend/pkg/invocation/models.js";
2
+ /**
3
+ * ConfigView is the server part of the settings page.
4
+ */
5
+ export declare class ConfigView {
6
+ "enabled": boolean;
7
+ "port": number;
8
+ "endpoint": string;
9
+ "token": string;
10
+ "blockConnectionsByDefault": boolean;
11
+ "globalPreset": string;
12
+ "userPresets": string[];
13
+ /** Creates a new ConfigView instance. */
14
+ constructor($$source?: Partial<ConfigView>);
15
+ /**
16
+ * Creates a new ConfigView instance from a string or object.
17
+ */
18
+ static createFrom($$source?: any): ConfigView;
19
+ }
20
+ /**
21
+ * ConfirmationResolved reports how a pending confirmation ended.
22
+ */
23
+ export declare class ConfirmationResolved {
24
+ "id": string;
25
+ "approved": boolean;
26
+ /**
27
+ * approved | denied | timeout | cancelled
28
+ */
29
+ "reason": string;
30
+ /** Creates a new ConfirmationResolved instance. */
31
+ constructor($$source?: Partial<ConfirmationResolved>);
32
+ /**
33
+ * Creates a new ConfirmationResolved instance from a string or object.
34
+ */
35
+ static createFrom($$source?: any): ConfirmationResolved;
36
+ }
37
+ /**
38
+ * ConnectionPolicyView is one connection row with its policy.
39
+ */
40
+ export declare class ConnectionPolicyView {
41
+ "pluginID": string;
42
+ "pluginName": string;
43
+ "connectionID": string;
44
+ "connectionName": string;
45
+ "access": string;
46
+ "effectiveAccess": boolean;
47
+ "preset": string;
48
+ "effectivePreset": string;
49
+ /** Creates a new ConnectionPolicyView instance. */
50
+ constructor($$source?: Partial<ConnectionPolicyView>);
51
+ /**
52
+ * Creates a new ConnectionPolicyView instance from a string or object.
53
+ */
54
+ static createFrom($$source?: any): ConnectionPolicyView;
55
+ }
56
+ /**
57
+ * PendingConfirmation is one tool call that waits for the user.
58
+ */
59
+ export declare class PendingConfirmation {
60
+ "id": string;
61
+ "mcpName": string;
62
+ "pluginID": string;
63
+ "pluginName": string;
64
+ "connectionID": string;
65
+ "connectionName": string;
66
+ /**
67
+ * ArgumentsJSON is text, not embedded JSON: JavaScript must not round
68
+ * integer literals or erase negative zero before showing consent.
69
+ */
70
+ "argumentsJSON": string;
71
+ "requestedAt": string;
72
+ "origin": string;
73
+ "credentialID": string;
74
+ "sessionID": string;
75
+ "invocationID": string;
76
+ "target": invocation$0.Target;
77
+ "policyRevision": number;
78
+ "catalogRevision": number;
79
+ /** Creates a new PendingConfirmation instance. */
80
+ constructor($$source?: Partial<PendingConfirmation>);
81
+ /**
82
+ * Creates a new PendingConfirmation instance from a string or object.
83
+ */
84
+ static createFrom($$source?: any): PendingConfirmation;
85
+ }
86
+ /**
87
+ * PresetView is one selectable preset.
88
+ */
89
+ export declare class PresetView {
90
+ "name": string;
91
+ "builtIn": boolean;
92
+ "toolCount": number;
93
+ /** Creates a new PresetView instance. */
94
+ constructor($$source?: Partial<PresetView>);
95
+ /**
96
+ * Creates a new PresetView instance from a string or object.
97
+ */
98
+ static createFrom($$source?: any): PresetView;
99
+ }
100
+ /**
101
+ * Scope selects the global policy (zero value) or one connection policy.
102
+ */
103
+ export declare class Scope {
104
+ "pluginID": string;
105
+ "connectionID": string;
106
+ /** Creates a new Scope instance. */
107
+ constructor($$source?: Partial<Scope>);
108
+ /**
109
+ * Creates a new Scope instance from a string or object.
110
+ */
111
+ static createFrom($$source?: any): Scope;
112
+ }
113
+ /**
114
+ * Status is the listener state shown in the UI.
115
+ */
116
+ export declare class Status {
117
+ "enabled": boolean;
118
+ "running": boolean;
119
+ "endpoint": string;
120
+ "error": string;
121
+ /** Creates a new Status instance. */
122
+ constructor($$source?: Partial<Status>);
123
+ /**
124
+ * Creates a new Status instance from a string or object.
125
+ */
126
+ static createFrom($$source?: any): Status;
127
+ }
128
+ /**
129
+ * ToolOverride pins the enabled and/or confirm state of one tool in a scope.
130
+ * A nil field means "no override".
131
+ */
132
+ export declare class ToolOverride {
133
+ "enabled"?: boolean | null;
134
+ "confirm"?: boolean | null;
135
+ /** Creates a new ToolOverride instance. */
136
+ constructor($$source?: Partial<ToolOverride>);
137
+ /**
138
+ * Creates a new ToolOverride instance from a string or object.
139
+ */
140
+ static createFrom($$source?: any): ToolOverride;
141
+ }
142
+ /**
143
+ * ToolView is one catalog row with its effective state in a scope.
144
+ */
145
+ export declare class ToolView {
146
+ "mcpName": string;
147
+ "pluginID": string;
148
+ "connectionID": string;
149
+ "pluginName": string;
150
+ "name": string;
151
+ "title": string;
152
+ "description": string;
153
+ "scope": string;
154
+ "status": string;
155
+ "builtIn": boolean;
156
+ "readOnly": boolean;
157
+ "listed": boolean;
158
+ "ready": boolean;
159
+ "destructive": boolean;
160
+ "enabled": boolean;
161
+ /**
162
+ * override | preset | inherited | plugin-disabled | connection-blocked
163
+ */
164
+ "enabledSource": string;
165
+ "confirm": boolean;
166
+ /**
167
+ * override | global-override | default
168
+ */
169
+ "confirmSource": string;
170
+ "overrideEnabled": boolean | null;
171
+ "overrideConfirm": boolean | null;
172
+ /** Creates a new ToolView instance. */
173
+ constructor($$source?: Partial<ToolView>);
174
+ /**
175
+ * Creates a new ToolView instance from a string or object.
176
+ */
177
+ static createFrom($$source?: any): ToolView;
178
+ }
@@ -0,0 +1,30 @@
1
+ import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
2
+ import * as $models from "./models.js";
3
+ export declare function ApplyPreset(scope: $models.Scope, name: string): $CancellablePromise<void>;
4
+ export declare function DeleteUserPreset(name: string): $CancellablePromise<void>;
5
+ export declare function GetConfig(): $CancellablePromise<$models.ConfigView>;
6
+ export declare function GetStatus(): $CancellablePromise<$models.Status>;
7
+ /**
8
+ * ListConnectionPolicies joins every known connection with its policy.
9
+ */
10
+ export declare function ListConnectionPolicies(): $CancellablePromise<$models.ConnectionPolicyView[]>;
11
+ export declare function ListPendingConfirmations(): $CancellablePromise<$models.PendingConfirmation[]>;
12
+ export declare function ListPresets(): $CancellablePromise<$models.PresetView[]>;
13
+ /**
14
+ * ListTools returns the catalog with the effective state in scope. A
15
+ * connection scope lists only that plugin's connection-scoped tools.
16
+ */
17
+ export declare function ListTools(scope: $models.Scope): $CancellablePromise<$models.ToolView[]>;
18
+ export declare function ResolveConfirmation(id: string, approved: boolean): $CancellablePromise<void>;
19
+ export declare function RotateToken(): $CancellablePromise<void>;
20
+ /**
21
+ * SaveUserPreset stores the tools that are enabled in the global scope right
22
+ * now under name and applies it.
23
+ */
24
+ export declare function SaveUserPreset(name: string): $CancellablePromise<void>;
25
+ export declare function SetBlockConnectionsByDefault(block: boolean): $CancellablePromise<void>;
26
+ export declare function SetConnectionAccess(pluginID: string, connectionID: string, access: string): $CancellablePromise<void>;
27
+ export declare function SetEnabled(enabled: boolean): $CancellablePromise<void>;
28
+ export declare function SetPluginEnabled(pluginID: string, enabled: boolean): $CancellablePromise<void>;
29
+ export declare function SetPort(port: number): $CancellablePromise<void>;
30
+ export declare function SetToolOverride(scope: $models.Scope, mcpName: string, override: $models.ToolOverride): $CancellablePromise<void>;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * PluginAuthor identifies the original author and optional contact links.
3
+ */
1
4
  export declare class PluginAuthor {
2
5
  "name": string;
3
6
  "email": string;
@@ -9,14 +12,26 @@ export declare class PluginAuthor {
9
12
  */
10
13
  static createFrom($$source?: any): PluginAuthor;
11
14
  }
15
+ /**
16
+ * PluginComponentArea selects the host surface where a resource component appears.
17
+ */
12
18
  export declare enum PluginComponentArea {
13
19
  /**
14
20
  * The Go zero value for the underlying type of the enum.
15
21
  */
16
22
  $zero = "",
23
+ /**
24
+ * PluginComponentAreaEditor places a component in the resource editor.
25
+ */
17
26
  PluginComponentAreaEditor = "EDITOR",
27
+ /**
28
+ * PluginComponentAreaSidebar places a component in the resource sidebar.
29
+ */
18
30
  PluginComponentAreaSidebar = "SIDEBAR"
19
31
  }
32
+ /**
33
+ * PluginComponents declares frontend components associated with resource views.
34
+ */
20
35
  export declare class PluginComponents {
21
36
  "resource": PluginResourceComponent[];
22
37
  /** Creates a new PluginComponents instance. */
@@ -26,6 +41,9 @@ export declare class PluginComponents {
26
41
  */
27
42
  static createFrom($$source?: any): PluginComponents;
28
43
  }
44
+ /**
45
+ * PluginMaintainer identifies a contact responsible for maintaining the plugin.
46
+ */
29
47
  export declare class PluginMaintainer {
30
48
  "name": string;
31
49
  "email": string;
@@ -71,6 +89,9 @@ export declare class PluginMeta {
71
89
  */
72
90
  static createFrom($$source?: any): PluginMeta;
73
91
  }
92
+ /**
93
+ * PluginResourceComponent binds a named frontend extension to resource types and a host surface.
94
+ */
74
95
  export declare class PluginResourceComponent {
75
96
  "name": string;
76
97
  "plugin": string;
@@ -84,6 +105,9 @@ export declare class PluginResourceComponent {
84
105
  */
85
106
  static createFrom($$source?: any): PluginResourceComponent;
86
107
  }
108
+ /**
109
+ * PluginTheme supplies presentation defaults for the plugin's frontend.
110
+ */
87
111
  export declare class PluginTheme {
88
112
  "colors": PluginThemeColors;
89
113
  /** Creates a new PluginTheme instance. */
@@ -93,6 +117,9 @@ export declare class PluginTheme {
93
117
  */
94
118
  static createFrom($$source?: any): PluginTheme;
95
119
  }
120
+ /**
121
+ * PluginThemeColors defines the plugin's primary, secondary, and tertiary accent colors.
122
+ */
96
123
  export declare class PluginThemeColors {
97
124
  "primary": string;
98
125
  "secondary": string;
@@ -0,0 +1,2 @@
1
+ export { AccessRoute, ActionDescriptor, ActionScope, CatalogRequest, ColumnDefinition, 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, WatchConnectionSummary, WatchState } from './models.js';
2
+ export type { Catalog, Coverage, QueryScope, ResourceAddress, Schema, SchemaBinding, Value } from './models.js';