@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.
- package/dist/api.cjs +1 -1
- package/dist/api.d.ts +15 -14
- package/dist/api.js +110 -125
- package/dist/bindings/encoding/json/index.d.ts +1 -0
- package/dist/bindings/encoding/json/models.d.ts +6 -0
- package/dist/bindings/github.com/omniviewdev/omniview/appservice.d.ts +18 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/diagnostics/diagnosticsclient.d.ts +51 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/diagnostics/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/data/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/data/servicewrapper.d.ts +5 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/models.d.ts +132 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/servicewrapper.d.ts +12 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +22 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/lifecycle/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/lifecycle/models.d.ts +29 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper.d.ts +11 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/models.d.ts +39 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper.d.ts +16 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/models.d.ts +72 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/servicewrapper.d.ts +11 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/models.d.ts +24 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/pluginlog/servicewrapper.d.ts +7 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/registry/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/registry/models.d.ts +94 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +53 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +14 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +4 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +61 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +92 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +24 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/servicewrapper.d.ts +18 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/types/models.d.ts +22 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/models.d.ts +55 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/ui/servicewrapper.d.ts +7 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/client.d.ts +6 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/utils/models.d.ts +10 -0
- package/dist/bindings/github.com/omniviewdev/omniview/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/servicewrapper.d.ts +48 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/telemetry/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/telemetry/telemetrybinding.d.ts +7 -0
- package/dist/bindings/github.com/omniviewdev/omniview/models.d.ts +38 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +101 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +199 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +79 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models.d.ts +133 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models.d.ts +207 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/models.d.ts +96 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models.d.ts +1199 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +169 -0
- package/dist/bindings/github.com/wailsapp/wails/v3/internal/eventcreate.d.ts +1 -0
- package/dist/bindings/time/index.d.ts +1 -0
- package/dist/bindings/time/models.d.ts +33 -0
- package/dist/calls-BmUnjINC.js +677 -0
- package/dist/calls-DZctVyoQ.cjs +1 -0
- package/dist/compat/legacyEnum.d.ts +10 -0
- package/dist/compat/resource.d.ts +4 -0
- package/dist/compat/types.d.ts +4 -0
- package/dist/context/plugins/PluginContext.d.ts +2 -2
- package/dist/events-BTiuwc-0.cjs +1 -0
- package/dist/events-DDTGFACO.js +371 -0
- package/dist/hooks/connection/useConnection.d.ts +5 -5
- package/dist/hooks/connection/useConnectionStatus.d.ts +7 -0
- package/dist/hooks/connection/useConnections.d.ts +4 -4
- package/dist/hooks/exec/useExecSession.d.ts +2 -2
- package/dist/hooks/logs/useLogSession.d.ts +1 -2
- package/dist/hooks/metric/useMetricProviders.d.ts +3 -3
- package/dist/hooks/metric/useMetricStream.d.ts +2 -2
- package/dist/hooks/metric/useResourceMetrics.d.ts +4 -3
- package/dist/hooks/networker/types.d.ts +3 -3
- package/dist/hooks/networker/usePortForwardSessions.d.ts +4 -4
- package/dist/hooks/networker/useResourcePortForwarder.d.ts +3 -4
- package/dist/hooks/resource/useEditorSchemas.d.ts +2 -2
- package/dist/hooks/resource/useEventBatcher.d.ts +3 -0
- package/dist/hooks/resource/useResource.d.ts +3 -4
- package/dist/hooks/resource/useResourceActions.d.ts +2 -3
- package/dist/hooks/resource/useResourceAreaComponent.d.ts +3 -3
- package/dist/hooks/resource/useResourceGroups.d.ts +6 -6
- package/dist/hooks/resource/useResourceMutations.d.ts +3 -4
- package/dist/hooks/resource/useResourceType.d.ts +1 -1
- package/dist/hooks/resource/useResourceTypes.d.ts +6 -6
- package/dist/hooks/resource/useResources.d.ts +3 -4
- package/dist/index-D2mKAO8s.js +1069 -0
- package/dist/index-D_aIcqH0.cjs +6 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1192 -1600
- package/dist/legacyEnum-DORXlU_y.js +13 -0
- package/dist/legacyEnum-DkV5yRdA.cjs +1 -0
- package/dist/models-B8OVRhdT.js +159 -0
- package/dist/models-BVKsY9u1.js +2285 -0
- package/dist/models-CExSuVU2.cjs +1 -0
- package/dist/models-DdAWPDgz.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +27 -1
- package/dist/models.js +259 -2244
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +198 -205
- package/dist/servicewrapper-BH5omp-N.js +708 -0
- package/dist/servicewrapper-dDhyC68C.cjs +1 -0
- package/dist/types/watch.d.ts +4 -5
- package/package.json +17 -13
- package/LICENSE +0 -661
- package/dist/Client-07zrOerN.js +0 -636
- package/dist/Client-CLvQWnuz.cjs +0 -1
- package/dist/wailsjs/go/data/Client.d.ts +0 -10
- package/dist/wailsjs/go/devserver/DevServerManager.d.ts +0 -24
- package/dist/wailsjs/go/diagnostics/DiagnosticsClient.d.ts +0 -18
- package/dist/wailsjs/go/exec/Client.d.ts +0 -26
- package/dist/wailsjs/go/logs/Client.d.ts +0 -16
- package/dist/wailsjs/go/main/App.d.ts +0 -8
- package/dist/wailsjs/go/metric/Client.d.ts +0 -12
- package/dist/wailsjs/go/models.d.ts +0 -1060
- package/dist/wailsjs/go/networker/Client.d.ts +0 -14
- package/dist/wailsjs/go/plugin/pluginManager.d.ts +0 -52
- package/dist/wailsjs/go/pluginlog/Manager.d.ts +0 -18
- package/dist/wailsjs/go/resource/Client.d.ts +0 -90
- package/dist/wailsjs/go/settings/Client.d.ts +0 -14
- package/dist/wailsjs/go/settings/provider.d.ts +0 -48
- package/dist/wailsjs/go/ui/Client.d.ts +0 -6
- package/dist/wailsjs/go/utils/Client.d.ts +0 -2
- package/dist/wailsjs/runtime/runtime.d.ts +0 -249
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Category is a group of settings. This is used to group settings together in the UI.
|
|
3
|
+
*/
|
|
4
|
+
export declare class Category {
|
|
5
|
+
"settings": {
|
|
6
|
+
[_ in string]?: Setting;
|
|
7
|
+
};
|
|
8
|
+
"id": string;
|
|
9
|
+
"label": string;
|
|
10
|
+
"description": string;
|
|
11
|
+
"icon": string;
|
|
12
|
+
/** Creates a new Category instance. */
|
|
13
|
+
constructor($$source?: Partial<Category>);
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new Category instance from a string or object.
|
|
16
|
+
*/
|
|
17
|
+
static createFrom($$source?: any): Category;
|
|
18
|
+
}
|
|
19
|
+
export declare class Setting {
|
|
20
|
+
/**
|
|
21
|
+
* ID is the unique identifier of the setting
|
|
22
|
+
*/
|
|
23
|
+
"id": string;
|
|
24
|
+
/**
|
|
25
|
+
* Label is the human readable label of the setting
|
|
26
|
+
*/
|
|
27
|
+
"label": string;
|
|
28
|
+
/**
|
|
29
|
+
* Description is the human readable description of the setting
|
|
30
|
+
*/
|
|
31
|
+
"description": string;
|
|
32
|
+
/**
|
|
33
|
+
* Type is the type of the setting
|
|
34
|
+
*/
|
|
35
|
+
"type": SettingType;
|
|
36
|
+
/**
|
|
37
|
+
* Value is the value of the setting
|
|
38
|
+
*/
|
|
39
|
+
"value": any;
|
|
40
|
+
/**
|
|
41
|
+
* Default is the default value of the setting
|
|
42
|
+
*/
|
|
43
|
+
"default": any;
|
|
44
|
+
/**
|
|
45
|
+
* Options is an optional list of options for a select setting
|
|
46
|
+
*/
|
|
47
|
+
"options": SettingOption[];
|
|
48
|
+
/**
|
|
49
|
+
* FileSelection is an optional setting for file selection
|
|
50
|
+
*/
|
|
51
|
+
"fileSelection": SettingFileSelection | null;
|
|
52
|
+
/**
|
|
53
|
+
* Sensitive is a flag to indicate if the setting is sensitive and should not be
|
|
54
|
+
* shown in the UI, nor allowed to be used by any other plugin.
|
|
55
|
+
*/
|
|
56
|
+
"sensitive": boolean;
|
|
57
|
+
/**
|
|
58
|
+
* DevOnly indicates the setting should only be visible when dev mode is active.
|
|
59
|
+
*/
|
|
60
|
+
"devOnly": boolean;
|
|
61
|
+
/** Creates a new Setting instance. */
|
|
62
|
+
constructor($$source?: Partial<Setting>);
|
|
63
|
+
/**
|
|
64
|
+
* Creates a new Setting instance from a string or object.
|
|
65
|
+
*/
|
|
66
|
+
static createFrom($$source?: any): Setting;
|
|
67
|
+
}
|
|
68
|
+
export declare class SettingFileSelection {
|
|
69
|
+
/**
|
|
70
|
+
* Whether file selection should be allowed.
|
|
71
|
+
*/
|
|
72
|
+
"enabled": boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Allow the selection of folders.
|
|
75
|
+
*/
|
|
76
|
+
"allowFolders": boolean;
|
|
77
|
+
/**
|
|
78
|
+
* The allowed extensions that should be selectable.
|
|
79
|
+
*/
|
|
80
|
+
"extensions": string[];
|
|
81
|
+
/**
|
|
82
|
+
* Multiple files can be selected.
|
|
83
|
+
*/
|
|
84
|
+
"multiple": boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the file selection should be saved as a relative path.
|
|
87
|
+
*/
|
|
88
|
+
"relative": boolean;
|
|
89
|
+
/**
|
|
90
|
+
* DefaultPath is the default path for the file selection.
|
|
91
|
+
*/
|
|
92
|
+
"defaultPath": string;
|
|
93
|
+
/** Creates a new SettingFileSelection instance. */
|
|
94
|
+
constructor($$source?: Partial<SettingFileSelection>);
|
|
95
|
+
/**
|
|
96
|
+
* Creates a new SettingFileSelection instance from a string or object.
|
|
97
|
+
*/
|
|
98
|
+
static createFrom($$source?: any): SettingFileSelection;
|
|
99
|
+
}
|
|
100
|
+
export declare class SettingOption {
|
|
101
|
+
/**
|
|
102
|
+
* Label is the human readable label of the option
|
|
103
|
+
*/
|
|
104
|
+
"label": string;
|
|
105
|
+
/**
|
|
106
|
+
* Description is an optional human readable description of the option
|
|
107
|
+
*/
|
|
108
|
+
"description": string;
|
|
109
|
+
/**
|
|
110
|
+
* Value is the value of the option
|
|
111
|
+
*/
|
|
112
|
+
"value": any;
|
|
113
|
+
/** Creates a new SettingOption instance. */
|
|
114
|
+
constructor($$source?: Partial<SettingOption>);
|
|
115
|
+
/**
|
|
116
|
+
* Creates a new SettingOption instance from a string or object.
|
|
117
|
+
*/
|
|
118
|
+
static createFrom($$source?: any): SettingOption;
|
|
119
|
+
}
|
|
120
|
+
export declare enum SettingType {
|
|
121
|
+
/**
|
|
122
|
+
* The Go zero value for the underlying type of the enum.
|
|
123
|
+
*/
|
|
124
|
+
$zero = "",
|
|
125
|
+
/**
|
|
126
|
+
* Text is the type for a text field entry.
|
|
127
|
+
*/
|
|
128
|
+
Text = "text",
|
|
129
|
+
/**
|
|
130
|
+
* Select is the type for a single-select field entry.
|
|
131
|
+
*/
|
|
132
|
+
Select = "select",
|
|
133
|
+
/**
|
|
134
|
+
* MultiSelect is the type for a multi-select field entry.
|
|
135
|
+
*/
|
|
136
|
+
MultiSelect = "multiselect",
|
|
137
|
+
/**
|
|
138
|
+
* Integer is the type for an integer field entry.
|
|
139
|
+
*/
|
|
140
|
+
Integer = "integer",
|
|
141
|
+
/**
|
|
142
|
+
* Float is the type for a float field entry.
|
|
143
|
+
*/
|
|
144
|
+
Float = "float",
|
|
145
|
+
/**
|
|
146
|
+
* Toggle is the type for a toggle field entry.
|
|
147
|
+
*/
|
|
148
|
+
Toggle = "toggle",
|
|
149
|
+
/**
|
|
150
|
+
* Color is the type for a color field entry.
|
|
151
|
+
*/
|
|
152
|
+
Color = "color",
|
|
153
|
+
/**
|
|
154
|
+
* DateTime is the type for a date time field entry.
|
|
155
|
+
*/
|
|
156
|
+
DateTime = "datetime",
|
|
157
|
+
/**
|
|
158
|
+
* SettingTypePassword is the type for a password field entry.
|
|
159
|
+
*/
|
|
160
|
+
Password = "password"
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* The settings store is a map of maps. The first map is the category of the settings, and the second
|
|
164
|
+
* map is the settings themselves. The key of the first map is the category name, and the key of the
|
|
165
|
+
* second map is the setting ID.
|
|
166
|
+
*/
|
|
167
|
+
export type Store = {
|
|
168
|
+
[_ in string]?: Category;
|
|
169
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Duration } from './models.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Duration represents the elapsed time between two instants
|
|
3
|
+
* as an int64 nanosecond count. The representation limits the
|
|
4
|
+
* largest representable duration to approximately 290 years.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum Duration {
|
|
7
|
+
/**
|
|
8
|
+
* The Go zero value for the underlying type of the enum.
|
|
9
|
+
*/
|
|
10
|
+
$zero = 0,
|
|
11
|
+
minDuration = -9223372036854776000,
|
|
12
|
+
maxDuration = 9223372036854776000,
|
|
13
|
+
/**
|
|
14
|
+
* Common durations. There is no definition for units of Day or larger
|
|
15
|
+
* to avoid confusion across daylight savings time zone transitions.
|
|
16
|
+
*
|
|
17
|
+
* To count the number of units in a [Duration], divide:
|
|
18
|
+
*
|
|
19
|
+
* second := time.Second
|
|
20
|
+
* fmt.Print(int64(second/time.Millisecond)) // prints 1000
|
|
21
|
+
*
|
|
22
|
+
* To convert an integer number of units to a Duration, multiply:
|
|
23
|
+
*
|
|
24
|
+
* seconds := 10
|
|
25
|
+
* fmt.Print(time.Duration(seconds)*time.Second) // prints 10s
|
|
26
|
+
*/
|
|
27
|
+
Nanosecond = 1,
|
|
28
|
+
Microsecond = 1000,
|
|
29
|
+
Millisecond = 1000000,
|
|
30
|
+
Second = 1000000000,
|
|
31
|
+
Minute = 60000000000,
|
|
32
|
+
Hour = 3600000000000
|
|
33
|
+
}
|