@omniviewdev/runtime 0.3.0 → 0.4.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 (142) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +15 -14
  3. package/dist/api.js +110 -125
  4. package/dist/bindings/encoding/json/index.d.ts +1 -0
  5. package/dist/bindings/encoding/json/models.d.ts +6 -0
  6. package/dist/bindings/github.com/omniviewdev/omniview/appservice.d.ts +18 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/diagnostics/diagnosticsclient.d.ts +51 -0
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/diagnostics/index.d.ts +2 -0
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/data/index.d.ts +2 -0
  10. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/data/servicewrapper.d.ts +5 -0
  11. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/index.d.ts +3 -0
  12. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/models.d.ts +132 -0
  13. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/servicewrapper.d.ts +12 -0
  14. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/index.d.ts +2 -0
  15. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +22 -0
  16. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/index.d.ts +3 -0
  17. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/lifecycle/index.d.ts +1 -0
  18. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/lifecycle/models.d.ts +29 -0
  19. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/index.d.ts +2 -0
  20. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper.d.ts +11 -0
  21. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/index.d.ts +3 -0
  22. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/models.d.ts +39 -0
  23. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper.d.ts +16 -0
  24. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/models.d.ts +72 -0
  25. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/index.d.ts +2 -0
  26. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/servicewrapper.d.ts +11 -0
  27. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/index.d.ts +3 -0
  28. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/models.d.ts +24 -0
  29. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/servicewrapper.d.ts +7 -0
  30. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/registry/index.d.ts +1 -0
  31. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/registry/models.d.ts +94 -0
  32. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +2 -0
  33. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +53 -0
  34. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +14 -0
  35. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +4 -0
  36. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +61 -0
  37. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +92 -0
  38. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +24 -0
  39. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/index.d.ts +2 -0
  40. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/servicewrapper.d.ts +18 -0
  41. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/index.d.ts +1 -0
  42. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/models.d.ts +22 -0
  43. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/index.d.ts +3 -0
  44. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/models.d.ts +55 -0
  45. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/servicewrapper.d.ts +7 -0
  46. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/client.d.ts +6 -0
  47. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/index.d.ts +3 -0
  48. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/models.d.ts +10 -0
  49. package/dist/bindings/github.com/omniviewdev/omniview/index.d.ts +3 -0
  50. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/index.d.ts +2 -0
  51. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/servicewrapper.d.ts +48 -0
  52. package/dist/bindings/github.com/omniviewdev/omniview/internal/telemetry/index.d.ts +2 -0
  53. package/dist/bindings/github.com/omniviewdev/omniview/internal/telemetry/telemetrybinding.d.ts +7 -0
  54. package/dist/bindings/github.com/omniviewdev/omniview/models.d.ts +38 -0
  55. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/index.d.ts +1 -0
  56. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +101 -0
  57. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/index.d.ts +1 -0
  58. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +199 -0
  59. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/index.d.ts +1 -0
  60. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +79 -0
  61. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/index.d.ts +1 -0
  62. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models.d.ts +133 -0
  63. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/index.d.ts +1 -0
  64. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models.d.ts +207 -0
  65. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/index.d.ts +2 -0
  66. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/models.d.ts +96 -0
  67. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/index.d.ts +2 -0
  68. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models.d.ts +1199 -0
  69. package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/index.d.ts +2 -0
  70. package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +169 -0
  71. package/dist/bindings/github.com/wailsapp/wails/v3/internal/eventcreate.d.ts +1 -0
  72. package/dist/bindings/time/index.d.ts +1 -0
  73. package/dist/bindings/time/models.d.ts +33 -0
  74. package/dist/calls-BmUnjINC.js +677 -0
  75. package/dist/calls-DZctVyoQ.cjs +1 -0
  76. package/dist/compat/legacyEnum.d.ts +10 -0
  77. package/dist/compat/resource.d.ts +4 -0
  78. package/dist/compat/types.d.ts +4 -0
  79. package/dist/context/plugins/PluginContext.d.ts +2 -2
  80. package/dist/events-BTiuwc-0.cjs +1 -0
  81. package/dist/events-DDTGFACO.js +371 -0
  82. package/dist/hooks/connection/useConnection.d.ts +5 -5
  83. package/dist/hooks/connection/useConnectionStatus.d.ts +7 -0
  84. package/dist/hooks/connection/useConnections.d.ts +4 -4
  85. package/dist/hooks/exec/useExecSession.d.ts +2 -2
  86. package/dist/hooks/logs/useLogSession.d.ts +1 -2
  87. package/dist/hooks/metric/useMetricProviders.d.ts +3 -3
  88. package/dist/hooks/metric/useMetricStream.d.ts +2 -2
  89. package/dist/hooks/metric/useResourceMetrics.d.ts +4 -3
  90. package/dist/hooks/networker/types.d.ts +3 -3
  91. package/dist/hooks/networker/usePortForwardSessions.d.ts +4 -4
  92. package/dist/hooks/networker/useResourcePortForwarder.d.ts +3 -4
  93. package/dist/hooks/resource/useEditorSchemas.d.ts +2 -2
  94. package/dist/hooks/resource/useEventBatcher.d.ts +3 -0
  95. package/dist/hooks/resource/useResource.d.ts +3 -4
  96. package/dist/hooks/resource/useResourceActions.d.ts +2 -3
  97. package/dist/hooks/resource/useResourceAreaComponent.d.ts +3 -3
  98. package/dist/hooks/resource/useResourceGroups.d.ts +6 -6
  99. package/dist/hooks/resource/useResourceMutations.d.ts +3 -4
  100. package/dist/hooks/resource/useResourceType.d.ts +1 -1
  101. package/dist/hooks/resource/useResourceTypes.d.ts +6 -6
  102. package/dist/hooks/resource/useResources.d.ts +3 -4
  103. package/dist/index-D2mKAO8s.js +1069 -0
  104. package/dist/index-D_aIcqH0.cjs +6 -0
  105. package/dist/index.cjs +2 -2
  106. package/dist/index.js +1192 -1600
  107. package/dist/legacyEnum-DORXlU_y.js +13 -0
  108. package/dist/legacyEnum-DkV5yRdA.cjs +1 -0
  109. package/dist/models-B8OVRhdT.js +159 -0
  110. package/dist/models-BVKsY9u1.js +2285 -0
  111. package/dist/models-CExSuVU2.cjs +1 -0
  112. package/dist/models-DdAWPDgz.cjs +1 -0
  113. package/dist/models.cjs +1 -1
  114. package/dist/models.d.ts +27 -1
  115. package/dist/models.js +259 -2244
  116. package/dist/runtime.cjs +1 -1
  117. package/dist/runtime.d.ts +1 -1
  118. package/dist/runtime.js +198 -205
  119. package/dist/servicewrapper-BH5omp-N.js +708 -0
  120. package/dist/servicewrapper-dDhyC68C.cjs +1 -0
  121. package/dist/types/watch.d.ts +4 -5
  122. package/package.json +17 -13
  123. package/LICENSE +0 -661
  124. package/dist/Client-07zrOerN.js +0 -636
  125. package/dist/Client-CLvQWnuz.cjs +0 -1
  126. package/dist/wailsjs/go/data/Client.d.ts +0 -10
  127. package/dist/wailsjs/go/devserver/DevServerManager.d.ts +0 -24
  128. package/dist/wailsjs/go/diagnostics/DiagnosticsClient.d.ts +0 -18
  129. package/dist/wailsjs/go/exec/Client.d.ts +0 -26
  130. package/dist/wailsjs/go/logs/Client.d.ts +0 -16
  131. package/dist/wailsjs/go/main/App.d.ts +0 -8
  132. package/dist/wailsjs/go/metric/Client.d.ts +0 -12
  133. package/dist/wailsjs/go/models.d.ts +0 -1060
  134. package/dist/wailsjs/go/networker/Client.d.ts +0 -14
  135. package/dist/wailsjs/go/plugin/pluginManager.d.ts +0 -52
  136. package/dist/wailsjs/go/pluginlog/Manager.d.ts +0 -18
  137. package/dist/wailsjs/go/resource/Client.d.ts +0 -90
  138. package/dist/wailsjs/go/settings/Client.d.ts +0 -14
  139. package/dist/wailsjs/go/settings/provider.d.ts +0 -48
  140. package/dist/wailsjs/go/ui/Client.d.ts +0 -6
  141. package/dist/wailsjs/go/utils/Client.d.ts +0 -2
  142. package/dist/wailsjs/runtime/runtime.d.ts +0 -249
@@ -1,1060 +0,0 @@
1
- export declare namespace config {
2
- class PluginAuthor {
3
- name: string;
4
- email: string;
5
- url: string;
6
- static createFrom(source?: any): PluginAuthor;
7
- constructor(source?: any);
8
- }
9
- class PluginResourceComponent {
10
- name: string;
11
- plugin: string;
12
- area: string;
13
- resources: string[];
14
- extension: string;
15
- static createFrom(source?: any): PluginResourceComponent;
16
- constructor(source?: any);
17
- }
18
- class PluginComponents {
19
- resource: PluginResourceComponent[];
20
- static createFrom(source?: any): PluginComponents;
21
- constructor(source?: any);
22
- convertValues(a: any, classs: any, asMap?: boolean): any;
23
- }
24
- class PluginMaintainer {
25
- name: string;
26
- email: string;
27
- static createFrom(source?: any): PluginMaintainer;
28
- constructor(source?: any);
29
- }
30
- class PluginThemeColors {
31
- primary: string;
32
- secondary: string;
33
- tertiary: string;
34
- static createFrom(source?: any): PluginThemeColors;
35
- constructor(source?: any);
36
- }
37
- class PluginTheme {
38
- colors: PluginThemeColors;
39
- static createFrom(source?: any): PluginTheme;
40
- constructor(source?: any);
41
- convertValues(a: any, classs: any, asMap?: boolean): any;
42
- }
43
- class PluginMeta {
44
- id: string;
45
- version: string;
46
- name: string;
47
- icon: string;
48
- icon_url: string;
49
- description: string;
50
- repository: string;
51
- website: string;
52
- category: string;
53
- license: string;
54
- author?: PluginAuthor;
55
- maintainers: PluginMaintainer[];
56
- tags: string[];
57
- dependencies: string[];
58
- capabilities: string[];
59
- theme: PluginTheme;
60
- components: PluginComponents;
61
- schema_version: number;
62
- sdk_protocol_version: number;
63
- static createFrom(source?: any): PluginMeta;
64
- constructor(source?: any);
65
- convertValues(a: any, classs: any, asMap?: boolean): any;
66
- }
67
- }
68
- export declare namespace devserver {
69
- class DevInfoFile {
70
- pid: number;
71
- protocol: string;
72
- protocolVersion: number;
73
- addr: string;
74
- vitePort?: number;
75
- pluginId?: string;
76
- version?: string;
77
- startedAt?: string;
78
- static createFrom(source?: any): DevInfoFile;
79
- constructor(source?: any);
80
- }
81
- class DevServerManager {
82
- static createFrom(source?: any): DevServerManager;
83
- constructor(source?: any);
84
- }
85
- class DevServerState {
86
- pluginID: string;
87
- mode: string;
88
- devPath: string;
89
- vitePort: number;
90
- viteURL: string;
91
- viteStatus: string;
92
- goStatus: string;
93
- lastBuildDuration: number;
94
- lastBuildTime: string;
95
- lastError: string;
96
- grpcConnected: boolean;
97
- static createFrom(source?: any): DevServerState;
98
- constructor(source?: any);
99
- }
100
- class LogEntry {
101
- timestamp: string;
102
- source: string;
103
- level: string;
104
- message: string;
105
- pluginID: string;
106
- static createFrom(source?: any): LogEntry;
107
- constructor(source?: any);
108
- }
109
- }
110
- export declare namespace exec {
111
- class ActionTargetBuilder {
112
- label: string;
113
- label_selector: string;
114
- paths: string[];
115
- selectors: Record<string, string>;
116
- static createFrom(source?: any): ActionTargetBuilder;
117
- constructor(source?: any);
118
- }
119
- class Session {
120
- created_at: time.Time;
121
- labels: Record<string, string>;
122
- params: Record<string, string>;
123
- id: string;
124
- command: string[];
125
- attached: boolean;
126
- static createFrom(source?: any): Session;
127
- constructor(source?: any);
128
- convertValues(a: any, classs: any, asMap?: boolean): any;
129
- }
130
- class AttachSessionResult {
131
- session?: Session;
132
- buffer: string;
133
- static createFrom(source?: any): AttachSessionResult;
134
- constructor(source?: any);
135
- convertValues(a: any, classs: any, asMap?: boolean): any;
136
- }
137
- class CreateTerminalOptions {
138
- labels: Record<string, string>;
139
- command: string[];
140
- static createFrom(source?: any): CreateTerminalOptions;
141
- constructor(source?: any);
142
- }
143
- class Handler {
144
- plugin: string;
145
- resource: string;
146
- target_builder: ActionTargetBuilder;
147
- default_command: string[];
148
- static createFrom(source?: any): Handler;
149
- constructor(source?: any);
150
- convertValues(a: any, classs: any, asMap?: boolean): any;
151
- }
152
- class SessionOptions {
153
- params: Record<string, string>;
154
- labels: Record<string, string>;
155
- id: string;
156
- resource_plugin: string;
157
- resource_key: string;
158
- resource_data: Record<string, any>;
159
- command: string[];
160
- tty: boolean;
161
- static createFrom(source?: any): SessionOptions;
162
- constructor(source?: any);
163
- }
164
- }
165
- export declare namespace logs {
166
- class ActionTargetBuilder {
167
- label: string;
168
- label_selector: string;
169
- paths: string[];
170
- selectors: Record<string, string>;
171
- static createFrom(source?: any): ActionTargetBuilder;
172
- constructor(source?: any);
173
- }
174
- class LogSessionOptions {
175
- target: string;
176
- follow: boolean;
177
- include_previous: boolean;
178
- include_timestamps: boolean;
179
- tail_lines: number;
180
- since_seconds: number;
181
- since_time?: time.Time;
182
- limit_bytes: number;
183
- include_source_events: boolean;
184
- params: Record<string, string>;
185
- static createFrom(source?: any): LogSessionOptions;
186
- constructor(source?: any);
187
- convertValues(a: any, classs: any, asMap?: boolean): any;
188
- }
189
- class CreateSessionOptions {
190
- resource_key: string;
191
- resource_id: string;
192
- resource_data: Record<string, any>;
193
- options: LogSessionOptions;
194
- static createFrom(source?: any): CreateSessionOptions;
195
- constructor(source?: any);
196
- convertValues(a: any, classs: any, asMap?: boolean): any;
197
- }
198
- class Handler {
199
- plugin: string;
200
- resource: string;
201
- target_builder: ActionTargetBuilder;
202
- static createFrom(source?: any): Handler;
203
- constructor(source?: any);
204
- convertValues(a: any, classs: any, asMap?: boolean): any;
205
- }
206
- class LogSource {
207
- id: string;
208
- labels: Record<string, string>;
209
- static createFrom(source?: any): LogSource;
210
- constructor(source?: any);
211
- }
212
- class LogSession {
213
- id: string;
214
- plugin_id: string;
215
- connection_id: string;
216
- resource_key: string;
217
- resource_id: string;
218
- options: LogSessionOptions;
219
- status: number;
220
- active_sources: LogSource[];
221
- created_at: time.Time;
222
- static createFrom(source?: any): LogSession;
223
- constructor(source?: any);
224
- convertValues(a: any, classs: any, asMap?: boolean): any;
225
- }
226
- }
227
- export declare namespace main {
228
- class FileFilter {
229
- displayName: string;
230
- pattern: string;
231
- static createFrom(source?: any): FileFilter;
232
- constructor(source?: any);
233
- }
234
- class FileDialogOptions {
235
- defaultDirectory: string;
236
- defaultFilename: string;
237
- title: string;
238
- filters: FileFilter[];
239
- showHiddenFiles: boolean;
240
- canCreateDirectories: boolean;
241
- resolvesAliases: boolean;
242
- treatPackagesAsDirectories: boolean;
243
- static createFrom(source?: any): FileDialogOptions;
244
- constructor(source?: any);
245
- convertValues(a: any, classs: any, asMap?: boolean): any;
246
- }
247
- }
248
- export declare namespace metric {
249
- class AggregateValue {
250
- metric_id: string;
251
- min: number;
252
- max: number;
253
- avg: number;
254
- sum: number;
255
- p50: number;
256
- p90: number;
257
- p99: number;
258
- count: number;
259
- window: number;
260
- labels: Record<string, string>;
261
- static createFrom(source?: any): AggregateValue;
262
- constructor(source?: any);
263
- }
264
- class ColorRange {
265
- min: number;
266
- max: number;
267
- color: string;
268
- static createFrom(source?: any): ColorRange;
269
- constructor(source?: any);
270
- }
271
- class CurrentValue {
272
- metric_id: string;
273
- value: number;
274
- timestamp: time.Time;
275
- labels: Record<string, string>;
276
- static createFrom(source?: any): CurrentValue;
277
- constructor(source?: any);
278
- convertValues(a: any, classs: any, asMap?: boolean): any;
279
- }
280
- class DataPoint {
281
- timestamp: time.Time;
282
- value: number;
283
- labels: Record<string, string>;
284
- static createFrom(source?: any): DataPoint;
285
- constructor(source?: any);
286
- convertValues(a: any, classs: any, asMap?: boolean): any;
287
- }
288
- class MetricDescriptor {
289
- id: string;
290
- name: string;
291
- unit: number;
292
- icon: string;
293
- color_ranges: ColorRange[];
294
- format_string: string;
295
- supported_shapes: number[];
296
- chart_group: string;
297
- static createFrom(source?: any): MetricDescriptor;
298
- constructor(source?: any);
299
- convertValues(a: any, classs: any, asMap?: boolean): any;
300
- }
301
- class Handler {
302
- resource: string;
303
- metrics: MetricDescriptor[];
304
- static createFrom(source?: any): Handler;
305
- constructor(source?: any);
306
- convertValues(a: any, classs: any, asMap?: boolean): any;
307
- }
308
- class MetricProviderSummary {
309
- plugin_id: string;
310
- provider_id: string;
311
- name: string;
312
- icon: string;
313
- description: string;
314
- handlers: Handler[];
315
- static createFrom(source?: any): MetricProviderSummary;
316
- constructor(source?: any);
317
- convertValues(a: any, classs: any, asMap?: boolean): any;
318
- }
319
- class TimeSeries {
320
- metric_id: string;
321
- data_points: DataPoint[];
322
- labels: Record<string, string>;
323
- static createFrom(source?: any): TimeSeries;
324
- constructor(source?: any);
325
- convertValues(a: any, classs: any, asMap?: boolean): any;
326
- }
327
- class MetricResult {
328
- time_series?: TimeSeries;
329
- current_value?: CurrentValue;
330
- aggregate_value?: AggregateValue;
331
- static createFrom(source?: any): MetricResult;
332
- constructor(source?: any);
333
- convertValues(a: any, classs: any, asMap?: boolean): any;
334
- }
335
- class QueryRequest {
336
- resource_key: string;
337
- resource_id: string;
338
- resource_namespace: string;
339
- resource_data: Record<string, any>;
340
- metric_ids: string[];
341
- shape: number;
342
- start_time: time.Time;
343
- end_time: time.Time;
344
- step: number;
345
- params: Record<string, string>;
346
- static createFrom(source?: any): QueryRequest;
347
- constructor(source?: any);
348
- convertValues(a: any, classs: any, asMap?: boolean): any;
349
- }
350
- class QueryResponse {
351
- success: boolean;
352
- results: MetricResult[];
353
- error: string;
354
- static createFrom(source?: any): QueryResponse;
355
- constructor(source?: any);
356
- convertValues(a: any, classs: any, asMap?: boolean): any;
357
- }
358
- class SubscribeRequest {
359
- resource_key: string;
360
- resource_id: string;
361
- resource_namespace: string;
362
- resource_data: Record<string, any>;
363
- metric_ids: string[];
364
- interval: number;
365
- static createFrom(source?: any): SubscribeRequest;
366
- constructor(source?: any);
367
- }
368
- }
369
- export declare namespace networker {
370
- class FindPortForwardSessionRequest {
371
- resource_id: string;
372
- connection_id: string;
373
- static createFrom(source?: any): FindPortForwardSessionRequest;
374
- constructor(source?: any);
375
- }
376
- class PortForwardSessionEncryption {
377
- algorithm: string;
378
- key: string;
379
- enabled: boolean;
380
- static createFrom(source?: any): PortForwardSessionEncryption;
381
- constructor(source?: any);
382
- }
383
- class PortForwardSession {
384
- created_at: time.Time;
385
- updated_at: time.Time;
386
- connection: any;
387
- labels: Record<string, string>;
388
- id: string;
389
- protocol: string;
390
- state: string;
391
- connection_type: string;
392
- encryption: PortForwardSessionEncryption;
393
- local_port: number;
394
- remote_port: number;
395
- static createFrom(source?: any): PortForwardSession;
396
- constructor(source?: any);
397
- convertValues(a: any, classs: any, asMap?: boolean): any;
398
- }
399
- class PortForwardSessionOptions {
400
- connection: any;
401
- labels: Record<string, string>;
402
- params: Record<string, string>;
403
- protocol: string;
404
- connection_type: string;
405
- encryption: PortForwardSessionEncryption;
406
- local_port: number;
407
- remote_port: number;
408
- static createFrom(source?: any): PortForwardSessionOptions;
409
- constructor(source?: any);
410
- convertValues(a: any, classs: any, asMap?: boolean): any;
411
- }
412
- }
413
- export declare namespace plugin {
414
- class LoadPluginOptions {
415
- DevMode: boolean;
416
- DevModePath: string;
417
- ExistingState?: types.PluginStateRecord;
418
- static createFrom(source?: any): LoadPluginOptions;
419
- constructor(source?: any);
420
- convertValues(a: any, classs: any, asMap?: boolean): any;
421
- }
422
- }
423
- export declare namespace pluginlog {
424
- class LogEntry {
425
- timestamp: string;
426
- pluginID: string;
427
- source: string;
428
- level: string;
429
- message: string;
430
- static createFrom(source?: any): LogEntry;
431
- constructor(source?: any);
432
- }
433
- class Manager {
434
- static createFrom(source?: any): Manager;
435
- constructor(source?: any);
436
- }
437
- class PluginLogStream {
438
- static createFrom(source?: any): PluginLogStream;
439
- constructor(source?: any);
440
- }
441
- }
442
- export declare namespace registry {
443
- class AvailablePlugin {
444
- id: string;
445
- name: string;
446
- description: string;
447
- icon_url: string;
448
- category: string;
449
- tags: string[];
450
- license: string;
451
- official: boolean;
452
- featured: boolean;
453
- download_count: number;
454
- average_rating: number;
455
- review_count: number;
456
- repository: string;
457
- url: string;
458
- publisher_name: string;
459
- installed: boolean;
460
- installed_version: string;
461
- latest_version: string;
462
- update_available: boolean;
463
- static createFrom(source?: any): AvailablePlugin;
464
- constructor(source?: any);
465
- }
466
- class DailyStat {
467
- date: string;
468
- count: number;
469
- static createFrom(source?: any): DailyStat;
470
- constructor(source?: any);
471
- }
472
- class DownloadStats {
473
- total: number;
474
- last_month: number;
475
- last_week: number;
476
- daily_stats: DailyStat[];
477
- static createFrom(source?: any): DownloadStats;
478
- constructor(source?: any);
479
- convertValues(a: any, classs: any, asMap?: boolean): any;
480
- }
481
- class Review {
482
- id: string;
483
- user_id: number;
484
- rating: number;
485
- title: string;
486
- body: string;
487
- created_at: string;
488
- static createFrom(source?: any): Review;
489
- constructor(source?: any);
490
- }
491
- class VersionInfo {
492
- version: string;
493
- description: string;
494
- changelog: string;
495
- min_ide_version: string;
496
- max_ide_version: string;
497
- capabilities: string[];
498
- created_at: string;
499
- static createFrom(source?: any): VersionInfo;
500
- constructor(source?: any);
501
- }
502
- }
503
- export declare namespace resource {
504
- enum WatchState {
505
- IDLE = 0,
506
- SYNCING = 1,
507
- SYNCED = 2,
508
- ERROR = 3,
509
- STOPPED = 4,
510
- FAILED = 5,
511
- FORBIDDEN = 6,
512
- SKIPPED = 7
513
- }
514
- enum SyncPolicy {
515
- ON_CONNECT = 0,
516
- ON_FIRST_QUERY = 1,
517
- NEVER = 2
518
- }
519
- class SchemaProperty {
520
- type: string;
521
- description?: string;
522
- enum?: string[];
523
- default?: any;
524
- minimum?: number;
525
- maximum?: number;
526
- properties?: Record<string, SchemaProperty>;
527
- required?: string[];
528
- static createFrom(source?: any): SchemaProperty;
529
- constructor(source?: any);
530
- convertValues(a: any, classs: any, asMap?: boolean): any;
531
- }
532
- class Schema {
533
- properties?: Record<string, SchemaProperty>;
534
- required?: string[];
535
- static createFrom(source?: any): Schema;
536
- constructor(source?: any);
537
- convertValues(a: any, classs: any, asMap?: boolean): any;
538
- }
539
- class ActionDescriptor {
540
- id: string;
541
- label: string;
542
- description: string;
543
- icon: string;
544
- scope: string;
545
- streaming: boolean;
546
- paramsSchema?: Schema;
547
- outputSchema?: Schema;
548
- dangerous?: boolean;
549
- static createFrom(source?: any): ActionDescriptor;
550
- constructor(source?: any);
551
- convertValues(a: any, classs: any, asMap?: boolean): any;
552
- }
553
- class ActionInput {
554
- id: string;
555
- namespace: string;
556
- params: Record<string, any>;
557
- static createFrom(source?: any): ActionInput;
558
- constructor(source?: any);
559
- }
560
- class ActionResult {
561
- success: boolean;
562
- data: Record<string, any>;
563
- message: string;
564
- static createFrom(source?: any): ActionResult;
565
- constructor(source?: any);
566
- }
567
- class ClientCreateInput {
568
- input: any;
569
- namespace: string;
570
- static createFrom(source?: any): ClientCreateInput;
571
- constructor(source?: any);
572
- }
573
- class ClientListResult {
574
- result: any[];
575
- success: boolean;
576
- totalCount: number;
577
- nextCursor?: string;
578
- static createFrom(source?: any): ClientListResult;
579
- constructor(source?: any);
580
- }
581
- class ClientResult {
582
- result: any;
583
- success: boolean;
584
- static createFrom(source?: any): ClientResult;
585
- constructor(source?: any);
586
- }
587
- class ClientUpdateInput {
588
- input: any;
589
- id: string;
590
- namespace: string;
591
- static createFrom(source?: any): ClientUpdateInput;
592
- constructor(source?: any);
593
- }
594
- class ResourceLink {
595
- idAccessor: string;
596
- namespaceAccessor: string;
597
- namespaced: boolean;
598
- resourceKey: string;
599
- keyAccessor: string;
600
- keyMap: Record<string, string>;
601
- detailExtractors: Record<string, string>;
602
- displayId: boolean;
603
- static createFrom(source?: any): ResourceLink;
604
- constructor(source?: any);
605
- }
606
- class ColumnDefinition {
607
- id: string;
608
- header: string;
609
- accessor: string;
610
- accessorPriority?: string;
611
- colorMap?: Record<string, string>;
612
- color?: string;
613
- align?: string;
614
- hidden?: boolean;
615
- width?: number;
616
- formatter?: string;
617
- component?: string;
618
- componentParams?: any;
619
- resourceLink?: ResourceLink;
620
- valueMap?: Record<string, string>;
621
- static createFrom(source?: any): ColumnDefinition;
622
- constructor(source?: any);
623
- convertValues(a: any, classs: any, asMap?: boolean): any;
624
- }
625
- class DeleteInput {
626
- id: string;
627
- namespace: string;
628
- gracePeriodSeconds?: number;
629
- static createFrom(source?: any): DeleteInput;
630
- constructor(source?: any);
631
- }
632
- class EditorSchema {
633
- resourceKey: string;
634
- fileMatch: string;
635
- uri: string;
636
- url?: string;
637
- content?: number[];
638
- language: string;
639
- static createFrom(source?: any): EditorSchema;
640
- constructor(source?: any);
641
- }
642
- class FilterPredicate {
643
- field: string;
644
- operator: string;
645
- value?: any;
646
- static createFrom(source?: any): FilterPredicate;
647
- constructor(source?: any);
648
- }
649
- class FilterExpression {
650
- logic?: string;
651
- predicates?: FilterPredicate[];
652
- groups?: FilterExpression[];
653
- static createFrom(source?: any): FilterExpression;
654
- constructor(source?: any);
655
- convertValues(a: any, classs: any, asMap?: boolean): any;
656
- }
657
- class FilterField {
658
- path: string;
659
- displayName: string;
660
- description: string;
661
- type: string;
662
- operators: string[];
663
- allowedValues?: string[];
664
- required?: boolean;
665
- static createFrom(source?: any): FilterField;
666
- constructor(source?: any);
667
- }
668
- class PaginationParams {
669
- page: number;
670
- pageSize: number;
671
- cursor?: string;
672
- static createFrom(source?: any): PaginationParams;
673
- constructor(source?: any);
674
- }
675
- class OrderField {
676
- field: string;
677
- descending: boolean;
678
- static createFrom(source?: any): OrderField;
679
- constructor(source?: any);
680
- }
681
- class FindInput {
682
- filters?: FilterExpression;
683
- textQuery?: string;
684
- namespaces: string[];
685
- order: OrderField[];
686
- pagination: PaginationParams;
687
- static createFrom(source?: any): FindInput;
688
- constructor(source?: any);
689
- convertValues(a: any, classs: any, asMap?: boolean): any;
690
- }
691
- class GetInput {
692
- id: string;
693
- namespace: string;
694
- static createFrom(source?: any): GetInput;
695
- constructor(source?: any);
696
- }
697
- class HealthCondition {
698
- type: string;
699
- status: string;
700
- reason?: string;
701
- message?: string;
702
- lastProbeTime?: time.Time;
703
- lastTransitionTime?: time.Time;
704
- static createFrom(source?: any): HealthCondition;
705
- constructor(source?: any);
706
- convertValues(a: any, classs: any, asMap?: boolean): any;
707
- }
708
- class ListInput {
709
- namespaces: string[];
710
- order: OrderField[];
711
- pagination: PaginationParams;
712
- static createFrom(source?: any): ListInput;
713
- constructor(source?: any);
714
- convertValues(a: any, classs: any, asMap?: boolean): any;
715
- }
716
- class RelationshipExtractor {
717
- method: string;
718
- fieldPath?: string;
719
- ownerRefKind?: string;
720
- labelSelector?: Record<string, string>;
721
- static createFrom(source?: any): RelationshipExtractor;
722
- constructor(source?: any);
723
- }
724
- class RelationshipDescriptor {
725
- type: string;
726
- targetResourceKey: string;
727
- label: string;
728
- inverseLabel?: string;
729
- cardinality?: string;
730
- extractor?: RelationshipExtractor;
731
- static createFrom(source?: any): RelationshipDescriptor;
732
- constructor(source?: any);
733
- convertValues(a: any, classs: any, asMap?: boolean): any;
734
- }
735
- class ResourceRef {
736
- pluginId?: string;
737
- connectionId: string;
738
- resourceKey: string;
739
- id: string;
740
- namespace?: string;
741
- displayName?: string;
742
- static createFrom(source?: any): ResourceRef;
743
- constructor(source?: any);
744
- }
745
- class ResolvedRelationship {
746
- descriptor: RelationshipDescriptor;
747
- targets: ResourceRef[];
748
- static createFrom(source?: any): ResolvedRelationship;
749
- constructor(source?: any);
750
- convertValues(a: any, classs: any, asMap?: boolean): any;
751
- }
752
- class ScaleHint {
753
- level: string;
754
- expectedCount?: number;
755
- defaultPageSize?: number;
756
- static createFrom(source?: any): ScaleHint;
757
- constructor(source?: any);
758
- }
759
- class ResourceCapabilities {
760
- canGet: boolean;
761
- canList: boolean;
762
- canFind: boolean;
763
- canCreate: boolean;
764
- canUpdate: boolean;
765
- canDelete: boolean;
766
- watchable: boolean;
767
- filterable: boolean;
768
- searchable: boolean;
769
- hasActions: boolean;
770
- hasSchema: boolean;
771
- namespaceScoped: boolean;
772
- hasRelationships: boolean;
773
- hasHealth: boolean;
774
- hasEvents: boolean;
775
- scaleHint?: ScaleHint;
776
- static createFrom(source?: any): ResourceCapabilities;
777
- constructor(source?: any);
778
- convertValues(a: any, classs: any, asMap?: boolean): any;
779
- }
780
- class ResourceDefinition {
781
- id_accessor: string;
782
- namespace_accessor: string;
783
- memoizer_accessor: string;
784
- columnDefs: ColumnDefinition[];
785
- static createFrom(source?: any): ResourceDefinition;
786
- constructor(source?: any);
787
- convertValues(a: any, classs: any, asMap?: boolean): any;
788
- }
789
- class ResourceEvent {
790
- type: string;
791
- reason: string;
792
- message: string;
793
- source?: string;
794
- count?: number;
795
- firstSeen: time.Time;
796
- lastSeen: time.Time;
797
- static createFrom(source?: any): ResourceEvent;
798
- constructor(source?: any);
799
- convertValues(a: any, classs: any, asMap?: boolean): any;
800
- }
801
- class ResourceGroup {
802
- id: string;
803
- name: string;
804
- description: string;
805
- icon: string;
806
- resources: Record<string, Array<ResourceMeta>>;
807
- static createFrom(source?: any): ResourceGroup;
808
- constructor(source?: any);
809
- convertValues(a: any, classs: any, asMap?: boolean): any;
810
- }
811
- class ResourceHealth {
812
- status: string;
813
- reason?: string;
814
- message?: string;
815
- since?: time.Time;
816
- conditions?: HealthCondition[];
817
- static createFrom(source?: any): ResourceHealth;
818
- constructor(source?: any);
819
- convertValues(a: any, classs: any, asMap?: boolean): any;
820
- }
821
- class ResourceMeta {
822
- group: string;
823
- version: string;
824
- kind: string;
825
- label: string;
826
- icon: string;
827
- description: string;
828
- category: string;
829
- static createFrom(source?: any): ResourceMeta;
830
- constructor(source?: any);
831
- }
832
- class WatchScope {
833
- partitions?: string[];
834
- static createFrom(source?: any): WatchScope;
835
- constructor(source?: any);
836
- }
837
- class WatchConnectionSummary {
838
- connectionId: string;
839
- resources: Record<string, number>;
840
- resourceCounts: Record<string, number>;
841
- scope?: WatchScope;
842
- static createFrom(source?: any): WatchConnectionSummary;
843
- constructor(source?: any);
844
- convertValues(a: any, classs: any, asMap?: boolean): any;
845
- }
846
- }
847
- export declare namespace settings {
848
- enum SettingType {
849
- TEXT = "text",
850
- SELECT = "select",
851
- MULTISELECT = "multiselect",
852
- INTEGER = "integer",
853
- FLOAT = "float",
854
- TOGGLE = "toggle",
855
- COLOR = "color",
856
- DATETIME = "datetime",
857
- PASSWORD = "password"
858
- }
859
- class SettingFileSelection {
860
- enabled: boolean;
861
- allowFolders: boolean;
862
- extensions: string[];
863
- multiple: boolean;
864
- relative: boolean;
865
- defaultPath: string;
866
- static createFrom(source?: any): SettingFileSelection;
867
- constructor(source?: any);
868
- }
869
- class SettingOption {
870
- label: string;
871
- description: string;
872
- value: any;
873
- static createFrom(source?: any): SettingOption;
874
- constructor(source?: any);
875
- }
876
- class Setting {
877
- id: string;
878
- label: string;
879
- description: string;
880
- type: SettingType;
881
- value: any;
882
- default: any;
883
- options: SettingOption[];
884
- fileSelection?: SettingFileSelection;
885
- sensitive: boolean;
886
- static createFrom(source?: any): Setting;
887
- constructor(source?: any);
888
- convertValues(a: any, classs: any, asMap?: boolean): any;
889
- }
890
- class Category {
891
- settings: Record<string, Setting>;
892
- id: string;
893
- label: string;
894
- description: string;
895
- icon: string;
896
- static createFrom(source?: any): Category;
897
- constructor(source?: any);
898
- convertValues(a: any, classs: any, asMap?: boolean): any;
899
- }
900
- }
901
- export declare namespace time {
902
- class Time {
903
- static createFrom(source?: any): Time;
904
- constructor(source?: any);
905
- }
906
- }
907
- export declare namespace trivy {
908
- enum Command {
909
- CONFIG = "config",
910
- FILESYSTEM = "fs",
911
- IMAGE = "image",
912
- KUBERNETES = "kubernetes",
913
- REPOSITORY = "repository",
914
- ROOTFS = "rootfs",
915
- SBOM = "sbom"
916
- }
917
- enum Scanner {
918
- VULN = "vuln",
919
- MISCONFIG = "misconfig",
920
- SECRET = "secret",
921
- LICENSE = "license"
922
- }
923
- class ScanOptions {
924
- filePatterns: string[];
925
- skipDirs: string[];
926
- skipFiles: string[];
927
- scanners: string[];
928
- static createFrom(source?: any): ScanOptions;
929
- constructor(source?: any);
930
- }
931
- class ScanResult {
932
- timestamp: time.Time;
933
- result: Record<string, any>;
934
- id: string;
935
- command: Command;
936
- static createFrom(source?: any): ScanResult;
937
- constructor(source?: any);
938
- convertValues(a: any, classs: any, asMap?: boolean): any;
939
- }
940
- }
941
- export declare namespace types {
942
- enum ConnectionStatusCode {
943
- UNKNOWN = "UNKNOWN",
944
- CONNECTED = "CONNECTED",
945
- DISCONNECTED = "DISCONNECTED",
946
- PENDING = "PENDING",
947
- FAILED = "FAILED",
948
- ERROR = "ERROR",
949
- UNAUTHORIZED = "UNAUTHORIZED",
950
- FORBIDDEN = "FORBIDDEN",
951
- BAD_REQUEST = "BAD_REQUEST",
952
- NOT_FOUND = "NOT_FOUND",
953
- TIMEOUT = "TIMEOUT",
954
- UNAVAILABLE = "UNAVAILABLE",
955
- REQUEST_ENTITY_TOO_LARGE = "REQUEST_ENTITY_TOO_LARGE"
956
- }
957
- class ConnectionAutoConnect {
958
- enabled: boolean;
959
- triggers: string[];
960
- retry: string;
961
- static createFrom(source?: any): ConnectionAutoConnect;
962
- constructor(source?: any);
963
- }
964
- class ConnectionLifecycle {
965
- auto_connect?: ConnectionAutoConnect;
966
- static createFrom(source?: any): ConnectionLifecycle;
967
- constructor(source?: any);
968
- convertValues(a: any, classs: any, asMap?: boolean): any;
969
- }
970
- class Connection {
971
- last_refresh: time.Time;
972
- data: Record<string, any>;
973
- labels: Record<string, any>;
974
- lifecycle: ConnectionLifecycle;
975
- id: string;
976
- uid: string;
977
- name: string;
978
- description: string;
979
- avatar: string;
980
- expiry_time: number;
981
- Client: any;
982
- static createFrom(source?: any): Connection;
983
- constructor(source?: any);
984
- convertValues(a: any, classs: any, asMap?: boolean): any;
985
- }
986
- class ConnectionStatus {
987
- connection?: Connection;
988
- status: ConnectionStatusCode;
989
- error: string;
990
- details: string;
991
- static createFrom(source?: any): ConnectionStatus;
992
- constructor(source?: any);
993
- convertValues(a: any, classs: any, asMap?: boolean): any;
994
- }
995
- class PluginInfo {
996
- id: string;
997
- metadata: config.PluginMeta;
998
- phase: string;
999
- enabled: boolean;
1000
- devMode: boolean;
1001
- devPath?: string;
1002
- capabilities: string[];
1003
- lastError?: string;
1004
- static createFrom(source?: any): PluginInfo;
1005
- constructor(source?: any);
1006
- convertValues(a: any, classs: any, asMap?: boolean): any;
1007
- }
1008
- class PluginStateRecord {
1009
- id: string;
1010
- phase: string;
1011
- metadata: config.PluginMeta;
1012
- enabled: boolean;
1013
- devMode: boolean;
1014
- devPath?: string;
1015
- lastError?: string;
1016
- errorCount: number;
1017
- installedAt: time.Time;
1018
- static createFrom(source?: any): PluginStateRecord;
1019
- constructor(source?: any);
1020
- convertValues(a: any, classs: any, asMap?: boolean): any;
1021
- }
1022
- }
1023
- export declare namespace ui {
1024
- class GetPluginComponentsInput {
1025
- plugin: string;
1026
- static createFrom(source?: any): GetPluginComponentsInput;
1027
- constructor(source?: any);
1028
- }
1029
- class GetResourceAreaComponentInput {
1030
- plugin: string;
1031
- resource: string;
1032
- area: string;
1033
- static createFrom(source?: any): GetResourceAreaComponentInput;
1034
- constructor(source?: any);
1035
- }
1036
- class GetResourceComponentsInput {
1037
- plugin: string;
1038
- resource: string;
1039
- static createFrom(source?: any): GetResourceComponentsInput;
1040
- constructor(source?: any);
1041
- }
1042
- class ResourceComponent {
1043
- owner: string;
1044
- name: string;
1045
- plugin: string;
1046
- resource: string;
1047
- area: string;
1048
- extension: string;
1049
- static createFrom(source?: any): ResourceComponent;
1050
- constructor(source?: any);
1051
- }
1052
- }
1053
- export declare namespace utils {
1054
- class GetLanguageInput {
1055
- filename: string;
1056
- contents: string;
1057
- static createFrom(source?: any): GetLanguageInput;
1058
- constructor(source?: any);
1059
- }
1060
- }