@omniviewdev/runtime 0.13.0 → 0.15.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 (35) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +199 -175
  4. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/index.d.ts +1 -1
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/models.d.ts +18 -0
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +1 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/binding.d.ts +8 -0
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/index.d.ts +3 -0
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/settings/models.d.ts +33 -0
  10. package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/servicewrapper.d.ts +3 -0
  11. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/profiling/index.d.ts +1 -0
  12. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/profiling/models.d.ts +12 -0
  13. package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +8 -0
  14. package/dist/context/plugins/usePluginContext.d.ts +0 -1
  15. package/dist/context/settings/SettingsContext.d.ts +0 -1
  16. package/dist/hooks/settings/index.d.ts +1 -0
  17. package/dist/hooks/settings/useScopedSettings.d.ts +30 -0
  18. package/dist/index.cjs +4 -4
  19. package/dist/index.js +1829 -1756
  20. package/dist/{models-Cg1YRHQm.js → models-BJgLAHwq.js} +1 -1
  21. package/dist/{models-UwESEW2B.js → models-BTzXdmUY.js} +183 -175
  22. package/dist/{models-dzj-SsFZ.cjs → models-BhsFYb70.cjs} +1 -1
  23. package/dist/models-NYvUa5Yc.cjs +1 -0
  24. package/dist/models.cjs +1 -1
  25. package/dist/models.js +8 -8
  26. package/dist/servicewrapper-CZ9BUUjp.js +662 -0
  27. package/dist/servicewrapper-lF8bBrIo.cjs +1 -0
  28. package/package.json +1 -1
  29. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/settings/servicewrapper.d.ts +0 -19
  30. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/index.d.ts +0 -2
  31. package/dist/bindings/github.com/omniviewdev/omniview/internal/settings/servicewrapper.d.ts +0 -52
  32. package/dist/models-DSGyy8lg.cjs +0 -1
  33. package/dist/servicewrapper-BhxHs5DR.js +0 -688
  34. package/dist/servicewrapper-CNtZecKV.cjs +0 -1
  35. /package/dist/bindings/github.com/omniviewdev/omniview/{backend/pkg/plugin/settings → internal/profiling}/index.d.ts +0 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Omniview",
3
3
  "license": "AGPL-3.0-only",
4
4
  "name": "@omniviewdev/runtime",
5
- "version": "0.13.0",
5
+ "version": "0.15.0",
6
6
  "description": "Runtime shared library for Omniview",
7
7
  "sideEffects": false,
8
8
  "type": "module",
@@ -1,19 +0,0 @@
1
- import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
2
- import * as settings$0 from "../../../../../plugin-sdk/settings/models.js";
3
- export declare function GetSetting(plugin: string, id: string): $CancellablePromise<settings$0.Setting>;
4
- export declare function HasPlugin(pluginID: string): $CancellablePromise<boolean>;
5
- export declare function ListPlugins(): $CancellablePromise<string[]>;
6
- export declare function ListSettings(plugin: string): $CancellablePromise<{
7
- [_ in string]?: settings$0.Setting;
8
- }>;
9
- export declare function PluginValues(plugin: string): $CancellablePromise<{
10
- [_ in string]?: any;
11
- }>;
12
- export declare function SetSetting(plugin: string, id: string, value: any): $CancellablePromise<void>;
13
- export declare function SetSettings(plugin: string, settingsMap: {
14
- [_ in string]?: any;
15
- }): $CancellablePromise<void>;
16
- export declare function ValidateSetting(plugin: string, id: string, value: any): $CancellablePromise<settings$0.ValidationResult>;
17
- export declare function Values(): $CancellablePromise<{
18
- [_ in string]?: any;
19
- }>;
@@ -1,2 +0,0 @@
1
- import * as ServiceWrapper from "./servicewrapper.js";
2
- export { ServiceWrapper };
@@ -1,52 +0,0 @@
1
- import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
2
- import * as settings$0 from "../../../plugin-sdk/settings/models.js";
3
- export declare function GetBool(id: string): $CancellablePromise<boolean>;
4
- /**
5
- * GetCategories returns all category metadata for the UI settings navigation.
6
- */
7
- export declare function GetCategories(): $CancellablePromise<settings$0.Category[]>;
8
- /**
9
- * GetCategory returns a single settings category by ID, including full metadata
10
- * (Label, Icon, Description) from the registered category definitions and live
11
- * setting values from the in-memory provider.
12
- */
13
- export declare function GetCategory(id: string): $CancellablePromise<settings$0.Category>;
14
- /**
15
- * GetCategoryValues returns a flat map of setting values for a single category.
16
- */
17
- export declare function GetCategoryValues(id: string): $CancellablePromise<{
18
- [_ in string]?: any;
19
- }>;
20
- export declare function GetFloat(id: string): $CancellablePromise<number>;
21
- export declare function GetFloatSlice(id: string): $CancellablePromise<number[]>;
22
- export declare function GetInt(id: string): $CancellablePromise<number>;
23
- export declare function GetIntSlice(id: string): $CancellablePromise<number[]>;
24
- export declare function GetSetting(id: string): $CancellablePromise<settings$0.Setting>;
25
- export declare function GetSettingValue(id: string): $CancellablePromise<any>;
26
- export declare function GetString(id: string): $CancellablePromise<string>;
27
- export declare function GetStringSlice(id: string): $CancellablePromise<string[]>;
28
- export declare function ListSettings(): $CancellablePromise<settings$0.Store>;
29
- /**
30
- * LoadSettings is a no-op reload trigger for the frontend. With bbolt-backed
31
- * persistence, settings are always in memory — this exists so the frontend's
32
- * "reload" button still has a valid binding. It re-reads from the in-memory
33
- * store (which is already current).
34
- */
35
- export declare function LoadSettings(): $CancellablePromise<void>;
36
- export declare function SetSetting(id: string, value: any): $CancellablePromise<void>;
37
- export declare function SetSettings(settingsMap: {
38
- [_ in string]?: any;
39
- }): $CancellablePromise<void>;
40
- /**
41
- * ValidateSetting checks a draft without changing or persisting its value.
42
- */
43
- export declare function ValidateSetting(id: string, value: any): $CancellablePromise<settings$0.ValidationResult>;
44
- /**
45
- * Values returns a flat map of all setting values keyed by "category.settingID".
46
- * This is a host-side convenience for the frontend — it was removed from the SDK
47
- * Provider interface (plugins don't need it) but the UI settings context uses it
48
- * to populate the full settings state.
49
- */
50
- export declare function Values(): $CancellablePromise<{
51
- [_ in string]?: any;
52
- }>;
@@ -1 +0,0 @@
1
- "use strict";const s=require("./index-BVi9X4oU.cjs");class se{connection;constructor(e={}){"connection"in e||(this.connection=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new se(n)}}class re{address;incarnation;constructor(e={}){"address"in e||(this.address=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new re(n)}}let x=class ue{label;label_selector;paths;selectors;constructor(e={}){"label"in e||(this.label=""),"label_selector"in e||(this.label_selector=""),"paths"in e||(this.paths=[]),"selectors"in e||(this.selectors={}),Object.assign(this,e)}static createFrom(e={}){const n=B,i=_;let a=typeof e=="string"?JSON.parse(e):e;return"paths"in a&&(a.paths=n(a.paths)),"selectors"in a&&(a.selectors=i(a.selectors)),new ue(a)}},Oe=class ve{plugin;resource;target_builder;default_command;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new x),"default_command"in e||(this.default_command=[]),Object.assign(this,e)}static createFrom(e={}){const n=ze,i=B;let a=typeof e=="string"?JSON.parse(e):e;return"target_builder"in a&&(a.target_builder=n(a.target_builder)),"default_command"in a&&(a.default_command=i(a.default_command)),new ve(a)}};class I{created_at;labels;params;id;command;attached;constructor(e={}){"created_at"in e||(this.created_at="0001-01-01T00:00:00.000Z"),"labels"in e||(this.labels={}),"params"in e||(this.params={}),"id"in e||(this.id=""),"command"in e||(this.command=[]),"attached"in e||(this.attached=!1),Object.assign(this,e)}static createFrom(e={}){const n=_,i=_,a=B;let r=typeof e=="string"?JSON.parse(e):e;return"labels"in r&&(r.labels=n(r.labels)),"params"in r&&(r.params=i(r.params)),"command"in r&&(r.command=a(r.command)),new I(r)}}class k{params;labels;id;resource_plugin;resource_key;resource_data;reference;route;command;tty;constructor(e={}){"params"in e||(this.params={}),"labels"in e||(this.labels={}),"id"in e||(this.id=""),"resource_plugin"in e||(this.resource_plugin=""),"resource_key"in e||(this.resource_key=""),"command"in e||(this.command=[]),"tty"in e||(this.tty=!1),Object.assign(this,e)}static createFrom(e={}){const n=_,i=_,a=xe,r=ke,ae=B;let o=typeof e=="string"?JSON.parse(e):e;return"params"in o&&(o.params=n(o.params)),"labels"in o&&(o.labels=i(o.labels)),"reference"in o&&(o.reference=a(o.reference)),"route"in o&&(o.route=r(o.route)),"command"in o&&(o.command=ae(o.command)),new k(o)}}const B=s.Array(s.Any),_=s.Map(s.Any,s.Any),ze=x.createFrom,Re=re.createFrom,xe=s.Nullable(Re),Ie=se.createFrom,ke=s.Nullable(Ie),Be=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:x,Handler:Oe,Session:I,SessionOptions:k},Symbol.toStringTag,{value:"Module"}));class U{resource_id;connection_id;constructor(e={}){"resource_id"in e||(this.resource_id=""),"connection_id"in e||(this.connection_id=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new U(n)}}var le=(t=>(t.$zero="",t.PortForwardConnectionTypeResource="RESOURCE",t.PortForwardConnectionTypeStatic="STATIC",t))(le||{}),oe=(t=>(t.$zero="",t.PortForwardProtocolTCP="TCP",t.PortForwardProtocolUDP="UDP",t))(oe||{});class D{created_at;updated_at;connection;labels;id;protocol;state;connection_type;encryption;local_port;remote_port;constructor(e={}){"created_at"in e||(this.created_at="0001-01-01T00:00:00.000Z"),"updated_at"in e||(this.updated_at="0001-01-01T00:00:00.000Z"),"connection"in e||(this.connection=null),"labels"in e||(this.labels={}),"id"in e||(this.id=""),"protocol"in e||(this.protocol=""),"state"in e||(this.state=""),"connection_type"in e||(this.connection_type=""),"encryption"in e||(this.encryption=new c),"local_port"in e||(this.local_port=0),"remote_port"in e||(this.remote_port=0),Object.assign(this,e)}static createFrom(e={}){const n=Ue,i=De;let a=typeof e=="string"?JSON.parse(e):e;return"labels"in a&&(a.labels=n(a.labels)),"encryption"in a&&(a.encryption=i(a.encryption)),new D(a)}}class c{algorithm;key;enabled;constructor(e={}){"algorithm"in e||(this.algorithm=""),"key"in e||(this.key=""),"enabled"in e||(this.enabled=!1),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new c(n)}}var ce=(t=>(t.$zero="",t.SessionStateActive="ACTIVE",t.SessionStatePaused="PAUSED",t.SessionStateStopped="STOPPED",t.SessionStateFailed="FAILED",t))(ce||{});const Ue=s.Map(s.Any,s.Any),De=c.createFrom,He=Object.freeze(Object.defineProperty({__proto__:null,FindPortForwardSessionRequest:U,PortForwardConnectionType:le,PortForwardProtocol:oe,PortForwardSession:D,PortForwardSessionEncryption:c,SessionState:ce},Symbol.toStringTag,{value:"Module"}));class H{id;name;description;icon_url;category;tags;license;official;featured;download_count;average_rating;review_count;repository;url;publisher_name;installed;installed_version;latest_version;update_available;constructor(e={}){"id"in e||(this.id=""),"name"in e||(this.name=""),"description"in e||(this.description=""),"icon_url"in e||(this.icon_url=""),"category"in e||(this.category=""),"tags"in e||(this.tags=[]),"license"in e||(this.license=""),"official"in e||(this.official=!1),"featured"in e||(this.featured=!1),"download_count"in e||(this.download_count=0),"average_rating"in e||(this.average_rating=0),"review_count"in e||(this.review_count=0),"repository"in e||(this.repository=""),"url"in e||(this.url=""),"publisher_name"in e||(this.publisher_name=""),"installed"in e||(this.installed=!1),"installed_version"in e||(this.installed_version=""),"latest_version"in e||(this.latest_version=""),"update_available"in e||(this.update_available=!1),Object.assign(this,e)}static createFrom(e={}){const n=Te;let i=typeof e=="string"?JSON.parse(e):e;return"tags"in i&&(i.tags=n(i.tags)),new H(i)}}class G{date;count;constructor(e={}){"date"in e||(this.date=""),"count"in e||(this.count=0),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new G(n)}}class Z{total;last_month;last_week;daily_stats;constructor(e={}){"total"in e||(this.total=0),"last_month"in e||(this.last_month=0),"last_week"in e||(this.last_week=0),"daily_stats"in e||(this.daily_stats=[]),Object.assign(this,e)}static createFrom(e={}){const n=Ze;let i=typeof e=="string"?JSON.parse(e):e;return"daily_stats"in i&&(i.daily_stats=n(i.daily_stats)),new Z(i)}}class L{id;user_id;rating;title;body;created_at;constructor(e={}){"id"in e||(this.id=""),"user_id"in e||(this.user_id=0),"rating"in e||(this.rating=0),"title"in e||(this.title=""),"body"in e||(this.body=""),"created_at"in e||(this.created_at=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new L(n)}}class V{version;description;changelog;min_ide_version;max_ide_version;capabilities;created_at;constructor(e={}){"version"in e||(this.version=""),"description"in e||(this.description=""),"changelog"in e||(this.changelog=""),"min_ide_version"in e||(this.min_ide_version=""),"max_ide_version"in e||(this.max_ide_version=""),"capabilities"in e||(this.capabilities=[]),"created_at"in e||(this.created_at=""),Object.assign(this,e)}static createFrom(e={}){const n=Te;let i=typeof e=="string"?JSON.parse(e):e;return"capabilities"in i&&(i.capabilities=n(i.capabilities)),new V(i)}}const Te=s.Array(s.Any),Ge=G.createFrom,Ze=s.Array(Ge),Le=Object.freeze(Object.defineProperty({__proto__:null,AvailablePlugin:H,DailyStat:G,DownloadStats:Z,Review:L,VersionInfo:V},Symbol.toStringTag,{value:"Module"}));class g{name;email;url;constructor(e={}){"name"in e||(this.name=""),"email"in e||(this.email=""),"url"in e||(this.url=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new g(n)}}var de=(t=>(t.$zero="",t.PluginComponentAreaEditor="EDITOR",t.PluginComponentAreaSidebar="SIDEBAR",t))(de||{});class d{resource;constructor(e={}){"resource"in e||(this.resource=[]),Object.assign(this,e)}static createFrom(e={}){const n=Me;let i=typeof e=="string"?JSON.parse(e):e;return"resource"in i&&(i.resource=n(i.resource)),new d(i)}}class y{name;email;constructor(e={}){"name"in e||(this.name=""),"email"in e||(this.email=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new y(n)}}class p{id;version;name;icon;icon_url;description;repository;website;category;license;author;maintainers;tags;dependencies;capabilities;theme;components;schema_version;sdk_protocol_version;state_isolation;constructor(e={}){"id"in e||(this.id=""),"version"in e||(this.version=""),"name"in e||(this.name=""),"icon"in e||(this.icon=""),"icon_url"in e||(this.icon_url=""),"description"in e||(this.description=""),"repository"in e||(this.repository=""),"website"in e||(this.website=""),"category"in e||(this.category=""),"license"in e||(this.license=""),"maintainers"in e||(this.maintainers=[]),"tags"in e||(this.tags=[]),"dependencies"in e||(this.dependencies=[]),"capabilities"in e||(this.capabilities=[]),"theme"in e||(this.theme=new f),"components"in e||(this.components=new d),"schema_version"in e||(this.schema_version=0),"sdk_protocol_version"in e||(this.sdk_protocol_version=0),Object.assign(this,e)}static createFrom(e={}){const n=Ke,i=We,a=R,r=R,ae=R,o=Ye,Ce=Xe,Ee=et;let l=typeof e=="string"?JSON.parse(e):e;return"author"in l&&(l.author=n(l.author)),"maintainers"in l&&(l.maintainers=i(l.maintainers)),"tags"in l&&(l.tags=a(l.tags)),"dependencies"in l&&(l.dependencies=r(l.dependencies)),"capabilities"in l&&(l.capabilities=ae(l.capabilities)),"theme"in l&&(l.theme=o(l.theme)),"components"in l&&(l.components=Ce(l.components)),"state_isolation"in l&&(l.state_isolation=Ee(l.state_isolation)),new p(l)}}class b{name;plugin;area;resources;extension;constructor(e={}){"name"in e||(this.name=""),"plugin"in e||(this.plugin=""),"area"in e||(this.area=""),"resources"in e||(this.resources=[]),"extension"in e||(this.extension=""),Object.assign(this,e)}static createFrom(e={}){const n=R;let i=typeof e=="string"?JSON.parse(e):e;return"resources"in i&&(i.resources=n(i.resources)),new b(i)}}class f{colors;constructor(e={}){"colors"in e||(this.colors=new h),Object.assign(this,e)}static createFrom(e={}){const n=tt;let i=typeof e=="string"?JSON.parse(e):e;return"colors"in i&&(i.colors=n(i.colors)),new f(i)}}class h{primary;secondary;tertiary;constructor(e={}){"primary"in e||(this.primary=""),"secondary"in e||(this.secondary=""),"tertiary"in e||(this.tertiary=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new h(n)}}class S{schema_version;capability;sdk_module;sdk_revision;sdk_source_sha256;binary_sha256;constructor(e={}){"schema_version"in e||(this.schema_version=0),"capability"in e||(this.capability=""),"sdk_module"in e||(this.sdk_module=""),"sdk_revision"in e||(this.sdk_revision=""),"binary_sha256"in e||(this.binary_sha256=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new S(n)}}const Ve=b.createFrom,Me=s.Array(Ve),qe=g.createFrom,Ke=s.Nullable(qe),Qe=y.createFrom,We=s.Array(Qe),R=s.Array(s.Any),Ye=f.createFrom,Xe=d.createFrom,$e=S.createFrom,et=s.Nullable($e),tt=h.createFrom,it=Object.freeze(Object.defineProperty({__proto__:null,PluginAuthor:g,PluginComponentArea:de,PluginComponents:d,PluginMaintainer:y,PluginMeta:p,PluginResourceComponent:b,PluginTheme:f,PluginThemeColors:h,StateIsolationProvenance:S},Symbol.toStringTag,{value:"Module"}));var F=(t=>(t[t.$zero=0]="$zero",t[t.minDuration=-9223372036854776e3]="minDuration",t[t.maxDuration=9223372036854776e3]="maxDuration",t[t.Nanosecond=1]="Nanosecond",t[t.Microsecond=1e3]="Microsecond",t[t.Millisecond=1e6]="Millisecond",t[t.Second=1e9]="Second",t[t.Minute=6e10]="Minute",t[t.Hour=36e11]="Hour",t))(F||{});const nt=Object.freeze(Object.defineProperty({__proto__:null,Duration:F},Symbol.toStringTag,{value:"Module"}));var we=(t=>(t.$zero="",t.CapabilityResource="resource",t.CapabilityExec="exec",t.CapabilityNetworker="networker",t.CapabilityLog="log",t.CapabilityMetric="metric",t.CapabilitySettings="settings",t.CapabilityTools="tools",t.CapabilityUI="ui",t))(we||{});class M{last_refresh;data;labels;lifecycle;id;uid;name;description;avatar;expiry_time;Client;constructor(e={}){"last_refresh"in e||(this.last_refresh="0001-01-01T00:00:00.000Z"),"data"in e||(this.data={}),"labels"in e||(this.labels={}),"lifecycle"in e||(this.lifecycle=new u),"id"in e||(this.id=""),"uid"in e||(this.uid=""),"name"in e||(this.name=""),"description"in e||(this.description=""),"avatar"in e||(this.avatar=""),"expiry_time"in e||(this.expiry_time=F.$zero),"Client"in e||(this.Client=null),Object.assign(this,e)}static createFrom(e={}){const n=Fe,i=Fe,a=at;let r=typeof e=="string"?JSON.parse(e):e;return"data"in r&&(r.data=n(r.data)),"labels"in r&&(r.labels=i(r.labels)),"lifecycle"in r&&(r.lifecycle=a(r.lifecycle)),new M(r)}}class q{enabled;triggers;retry;constructor(e={}){"enabled"in e||(this.enabled=!1),"triggers"in e||(this.triggers=[]),"retry"in e||(this.retry=""),Object.assign(this,e)}static createFrom(e={}){const n=st;let i=typeof e=="string"?JSON.parse(e):e;return"triggers"in i&&(i.triggers=n(i.triggers)),new q(i)}}var Ne=(t=>(t.$zero="",t.ConnectionAutoConnectRetryNone="NONE",t.ConnectionAutoConnectRetryOnChange="ON_CHANGE",t))(Ne||{}),Ae=(t=>(t.$zero="",t.ConnectionAutoConnectTriggerPluginStart="PLUGIN_START",t.ConnectionAutoConnectTriggerConnectionDiscovered="CONNECTION_DISCOVERED",t))(Ae||{});class u{auto_connect;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=lt;let i=typeof e=="string"?JSON.parse(e):e;return"auto_connect"in i&&(i.auto_connect=n(i.auto_connect)),new u(i)}}class pe{connection;status;error;details;constructor(e={}){"connection"in e||(this.connection=null),"status"in e||(this.status=""),"error"in e||(this.error=""),"details"in e||(this.details=""),Object.assign(this,e)}static createFrom(e={}){const n=ct;let i=typeof e=="string"?JSON.parse(e):e;return"connection"in i&&(i.connection=n(i.connection)),new pe(i)}}var je=(t=>(t.$zero="",t.ConnectionStatusUnknown="UNKNOWN",t.ConnectionStatusConnected="CONNECTED",t.ConnectionStatusDisconnected="DISCONNECTED",t.ConnectionStatusPending="PENDING",t.ConnectionStatusFailed="FAILED",t.ConnectionStatusError="ERROR",t.ConnectionStatusUnauthorized="UNAUTHORIZED",t.ConnectionStatusForbidden="FORBIDDEN",t.ConnectionStatusBadRequest="BAD_REQUEST",t.ConnectionStatusNotFound="NOT_FOUND",t.ConnectionStatusTimeout="TIMEOUT",t.ConnectionStatusUnavailable="UNAVAILABLE",t.ConnectionStatusRequestEntityTooLarge="REQUEST_ENTITY_TOO_LARGE",t))(je||{});class fe{id;metadata;phase;enabled;devMode;devPath;capabilities;lastError;constructor(e={}){"id"in e||(this.id=""),"metadata"in e||(this.metadata=new p),"phase"in e||(this.phase=""),"enabled"in e||(this.enabled=!1),"devMode"in e||(this.devMode=!1),"capabilities"in e||(this.capabilities=[]),Object.assign(this,e)}static createFrom(e={}){const n=dt,i=pt;let a=typeof e=="string"?JSON.parse(e):e;return"metadata"in a&&(a.metadata=n(a.metadata)),"capabilities"in a&&(a.capabilities=i(a.capabilities)),new fe(a)}}const Fe=s.Map(s.Any,s.Any),at=u.createFrom,st=s.Array(s.Any),rt=q.createFrom,lt=s.Nullable(rt),ot=M.createFrom,ct=s.Nullable(ot),dt=p.createFrom,pt=s.Array(s.Any);class K{settings;id;label;description;icon;constructor(e={}){"settings"in e||(this.settings={}),"id"in e||(this.id=""),"label"in e||(this.label=""),"description"in e||(this.description=""),"icon"in e||(this.icon=""),Object.assign(this,e)}static createFrom(e={}){const n=ht;let i=typeof e=="string"?JSON.parse(e):e;return"settings"in i&&(i.settings=n(i.settings)),new K(i)}}class O{id;label;description;type;value;default;options;fileSelection;sensitive;devOnly;constructor(e={}){"id"in e||(this.id=""),"label"in e||(this.label=""),"description"in e||(this.description=""),"type"in e||(this.type=""),"value"in e||(this.value=null),"default"in e||(this.default=null),"options"in e||(this.options=[]),"fileSelection"in e||(this.fileSelection=null),"sensitive"in e||(this.sensitive=!1),"devOnly"in e||(this.devOnly=!1),Object.assign(this,e)}static createFrom(e={}){const n=_t,i=yt;let a=typeof e=="string"?JSON.parse(e):e;return"options"in a&&(a.options=n(a.options)),"fileSelection"in a&&(a.fileSelection=i(a.fileSelection)),new O(a)}}class v{enabled;allowFolders;extensions;multiple;relative;defaultPath;constructor(e={}){"enabled"in e||(this.enabled=!1),"allowFolders"in e||(this.allowFolders=!1),"extensions"in e||(this.extensions=[]),"multiple"in e||(this.multiple=!1),"relative"in e||(this.relative=!1),"defaultPath"in e||(this.defaultPath=""),Object.assign(this,e)}static createFrom(e={}){const n=bt;let i=typeof e=="string"?JSON.parse(e):e;return"extensions"in i&&(i.extensions=n(i.extensions)),new v(i)}}class T{label;description;value;constructor(e={}){"label"in e||(this.label=""),"description"in e||(this.description=""),"value"in e||(this.value=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new T(n)}}var he=(t=>(t.$zero="",t.Text="text",t.Select="select",t.MultiSelect="multiselect",t.Integer="integer",t.Float="float",t.Toggle="toggle",t.Color="color",t.DateTime="datetime",t.Password="password",t))(he||{});class Q{valid;code;message;constructor(e={}){"valid"in e||(this.valid=!1),"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Q(n)}}const ft=O.createFrom,ht=s.Map(s.Any,ft),mt=T.createFrom,_t=s.Array(mt),gt=v.createFrom,yt=s.Nullable(gt),bt=s.Array(s.Any),St=Object.freeze(Object.defineProperty({__proto__:null,Category:K,Setting:O,SettingFileSelection:v,SettingOption:T,SettingType:he,ValidationResult:Q},Symbol.toStringTag,{value:"Module"}));class W{plugin;constructor(e={}){"plugin"in e||(this.plugin=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new W(n)}}class Y{plugin;resource;area;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"area"in e||(this.area=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new Y(n)}}class X{plugin;resource;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new X(n)}}class ${owner;name;plugin;resource;area;extension;constructor(e={}){"owner"in e||(this.owner=""),"name"in e||(this.name=""),"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"area"in e||(this.area=""),"extension"in e||(this.extension=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new $(n)}}var me=(t=>(t.$zero="",t.ResourceComponentAreaSidebar="SIDEBAR",t.ResourceComponentAreaTable="TABLE",t))(me||{});const Ft=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponentsInput:W,GetResourceAreaComponentInput:Y,GetResourceComponentsInput:X,ResourceComponent:$,ResourceComponentArea:me},Symbol.toStringTag,{value:"Module"}));class w{label;label_selector;paths;selectors;constructor(e={}){"label"in e||(this.label=""),"label_selector"in e||(this.label_selector=""),"paths"in e||(this.paths=[]),"selectors"in e||(this.selectors={}),Object.assign(this,e)}static createFrom(e={}){const n=ut,i=ye;let a=typeof e=="string"?JSON.parse(e):e;return"paths"in a&&(a.paths=n(a.paths)),"selectors"in a&&(a.selectors=i(a.selectors)),new w(a)}}let Pe=class Je{plugin;resource;target_builder;constructor(e={}){"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new w),Object.assign(this,e)}static createFrom(e={}){const n=Ot;let i=typeof e=="string"?JSON.parse(e):e;return"target_builder"in i&&(i.target_builder=n(i.target_builder)),new Je(i)}};class ee{id;plugin_id;connection_id;resource_key;resource_id;options;status;active_sources;created_at;constructor(e={}){"id"in e||(this.id=""),"plugin_id"in e||(this.plugin_id=""),"connection_id"in e||(this.connection_id=""),"resource_key"in e||(this.resource_key=""),"resource_id"in e||(this.resource_id=""),"options"in e||(this.options=new m),"status"in e||(this.status=0),"active_sources"in e||(this.active_sources=[]),"created_at"in e||(this.created_at="0001-01-01T00:00:00.000Z"),Object.assign(this,e)}static createFrom(e={}){const n=vt,i=wt;let a=typeof e=="string"?JSON.parse(e):e;return"options"in a&&(a.options=n(a.options)),"active_sources"in a&&(a.active_sources=i(a.active_sources)),new ee(a)}}class m{target;follow;include_previous;include_timestamps;tail_lines;since_seconds;since_time;limit_bytes;include_source_events;params;constructor(e={}){"target"in e||(this.target=""),"follow"in e||(this.follow=!1),"include_previous"in e||(this.include_previous=!1),"include_timestamps"in e||(this.include_timestamps=!1),"tail_lines"in e||(this.tail_lines=0),"since_seconds"in e||(this.since_seconds=0),"limit_bytes"in e||(this.limit_bytes=0),"include_source_events"in e||(this.include_source_events=!1),"params"in e||(this.params={}),Object.assign(this,e)}static createFrom(e={}){const n=ye;let i=typeof e=="string"?JSON.parse(e):e;return"params"in i&&(i.params=n(i.params)),new m(i)}}var _e=(t=>(t[t.$zero=0]="$zero",t[t.LogSessionStatusActive=0]="LogSessionStatusActive",t[t.LogSessionStatusPaused=1]="LogSessionStatusPaused",t[t.LogSessionStatusClosed=2]="LogSessionStatusClosed",t[t.LogSessionStatusError=3]="LogSessionStatusError",t[t.LogSessionStatusConnecting=4]="LogSessionStatusConnecting",t[t.LogSessionStatusInitializing=5]="LogSessionStatusInitializing",t))(_e||{});class N{id;labels;constructor(e={}){"id"in e||(this.id=""),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ye;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new N(i)}}var ge=(t=>(t[t.$zero=0]="$zero",t[t.StreamCommandPause=0]="StreamCommandPause",t[t.StreamCommandResume=1]="StreamCommandResume",t[t.StreamCommandClose=2]="StreamCommandClose",t))(ge||{});const ut=s.Array(s.Any),ye=s.Map(s.Any,s.Any),Ot=w.createFrom,vt=m.createFrom,Tt=N.createFrom,wt=s.Array(Tt),Nt=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:w,Handler:Pe,LogSession:ee,LogSessionOptions:m,LogSessionStatus:_e,LogSource:N,LogStreamCommand:ge},Symbol.toStringTag,{value:"Module"}));class A{metric_id;min;max;avg;sum;p50;p90;p99;count;window;labels;constructor(e={}){"metric_id"in e||(this.metric_id=""),"min"in e||(this.min=0),"max"in e||(this.max=0),"avg"in e||(this.avg=0),"sum"in e||(this.sum=0),"p50"in e||(this.p50=0),"p90"in e||(this.p90=0),"p99"in e||(this.p99=0),"count"in e||(this.count=0),"window"in e||(this.window=F.$zero),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ne;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new A(i)}}class j{min;max;color;constructor(e={}){"min"in e||(this.min=0),"max"in e||(this.max=0),"color"in e||(this.color=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new j(n)}}class P{metric_id;value;timestamp;labels;constructor(e={}){"metric_id"in e||(this.metric_id=""),"value"in e||(this.value=0),"timestamp"in e||(this.timestamp="0001-01-01T00:00:00.000Z"),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ne;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new P(i)}}class J{timestamp;value;labels;constructor(e={}){"timestamp"in e||(this.timestamp="0001-01-01T00:00:00.000Z"),"value"in e||(this.value=0),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=ne;let i=typeof e=="string"?JSON.parse(e):e;return"labels"in i&&(i.labels=n(i.labels)),new J(i)}}class te{resource;metrics;constructor(e={}){"resource"in e||(this.resource=""),"metrics"in e||(this.metrics=[]),Object.assign(this,e)}static createFrom(e={}){const n=jt;let i=typeof e=="string"?JSON.parse(e):e;return"metrics"in i&&(i.metrics=n(i.metrics)),new te(i)}}class C{id;name;unit;icon;color_ranges;format_string;supported_shapes;chart_group;constructor(e={}){"id"in e||(this.id=""),"name"in e||(this.name=""),"unit"in e||(this.unit=0),"icon"in e||(this.icon=""),"color_ranges"in e||(this.color_ranges=[]),"format_string"in e||(this.format_string=""),"supported_shapes"in e||(this.supported_shapes=[]),"chart_group"in e||(this.chart_group=""),Object.assign(this,e)}static createFrom(e={}){const n=Jt,i=Ct;let a=typeof e=="string"?JSON.parse(e):e;return"color_ranges"in a&&(a.color_ranges=n(a.color_ranges)),"supported_shapes"in a&&(a.supported_shapes=i(a.supported_shapes)),new C(a)}}class E{time_series;current_value;aggregate_value;constructor(e={}){Object.assign(this,e)}static createFrom(e={}){const n=zt,i=xt,a=kt;let r=typeof e=="string"?JSON.parse(e):e;return"time_series"in r&&(r.time_series=n(r.time_series)),"current_value"in r&&(r.current_value=i(r.current_value)),"aggregate_value"in r&&(r.aggregate_value=a(r.aggregate_value)),new E(r)}}var be=(t=>(t[t.$zero=0]="$zero",t[t.ShapeCurrent=0]="ShapeCurrent",t[t.ShapeTimeseries=1]="ShapeTimeseries",t[t.ShapeAggregate=2]="ShapeAggregate",t))(be||{}),Se=(t=>(t[t.$zero=0]="$zero",t[t.UnitNone=0]="UnitNone",t[t.UnitBytes=1]="UnitBytes",t[t.UnitKB=2]="UnitKB",t[t.UnitMB=3]="UnitMB",t[t.UnitGB=4]="UnitGB",t[t.UnitPercentage=5]="UnitPercentage",t[t.UnitMillis=6]="UnitMillis",t[t.UnitSeconds=7]="UnitSeconds",t[t.UnitCount=8]="UnitCount",t[t.UnitOpsPerSec=9]="UnitOpsPerSec",t[t.UnitBytesPerSec=10]="UnitBytesPerSec",t[t.UnitMillicores=11]="UnitMillicores",t[t.UnitCores=12]="UnitCores",t))(Se||{});class ie{success;results;error;constructor(e={}){"success"in e||(this.success=!1),"results"in e||(this.results=[]),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){const n=Ut;let i=typeof e=="string"?JSON.parse(e):e;return"results"in i&&(i.results=n(i.results)),new ie(i)}}class z{metric_id;data_points;labels;constructor(e={}){"metric_id"in e||(this.metric_id=""),"data_points"in e||(this.data_points=[]),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const n=Ht,i=ne;let a=typeof e=="string"?JSON.parse(e):e;return"data_points"in a&&(a.data_points=n(a.data_points)),"labels"in a&&(a.labels=i(a.labels)),new z(a)}}const ne=s.Map(s.Any,s.Any),At=C.createFrom,jt=s.Array(At),Pt=j.createFrom,Jt=s.Array(Pt),Ct=s.Array(s.Any),Et=z.createFrom,zt=s.Nullable(Et),Rt=P.createFrom,xt=s.Nullable(Rt),It=A.createFrom,kt=s.Nullable(It),Bt=E.createFrom,Ut=s.Array(Bt),Dt=J.createFrom,Ht=s.Array(Dt),Gt=Object.freeze(Object.defineProperty({__proto__:null,AggregateValue:A,ColorRange:j,CurrentValue:P,DataPoint:J,Handler:te,MetricDescriptor:C,MetricResult:E,MetricShape:be,MetricUnit:Se,QueryResponse:ie,TimeSeries:z},Symbol.toStringTag,{value:"Module"}));exports.ActionTargetBuilder=x;exports.AggregateValue=A;exports.AvailablePlugin=H;exports.Capability=we;exports.Category=K;exports.ColorRange=j;exports.Connection=M;exports.ConnectionAutoConnect=q;exports.ConnectionAutoConnectRetry=Ne;exports.ConnectionAutoConnectTrigger=Ae;exports.ConnectionLifecycle=u;exports.ConnectionStatus=pe;exports.ConnectionStatusCode=je;exports.CurrentValue=P;exports.DataPoint=J;exports.DownloadStats=Z;exports.Duration=F;exports.FindPortForwardSessionRequest=U;exports.GetPluginComponentsInput=W;exports.GetResourceAreaComponentInput=Y;exports.GetResourceComponentsInput=X;exports.Handler=Oe;exports.Handler$1=Pe;exports.Handler$2=te;exports.LogSession=ee;exports.LogSessionOptions=m;exports.LogSessionStatus=_e;exports.LogSource=N;exports.LogStreamCommand=ge;exports.MetricDescriptor=C;exports.MetricResult=E;exports.MetricShape=be;exports.MetricUnit=Se;exports.PluginAuthor=g;exports.PluginComponentArea=de;exports.PluginComponents=d;exports.PluginInfo=fe;exports.PluginMaintainer=y;exports.PluginMeta=p;exports.PluginResourceComponent=b;exports.PluginTheme=f;exports.PluginThemeColors=h;exports.PortForwardConnectionType=le;exports.PortForwardProtocol=oe;exports.PortForwardSession=D;exports.PortForwardSessionEncryption=c;exports.QueryResponse=ie;exports.ResourceComponent=$;exports.ResourceComponentArea=me;exports.Review=L;exports.Session=I;exports.SessionOptions=k;exports.SessionState=ce;exports.Setting=O;exports.SettingFileSelection=v;exports.SettingOption=T;exports.SettingType=he;exports.StateIsolationProvenance=S;exports.TimeSeries=z;exports.ValidationResult=Q;exports.VersionInfo=V;exports.models=it;exports.models$1=Be;exports.models$2=Nt;exports.models$3=Gt;exports.models$4=He;exports.models$5=Le;exports.models$6=St;exports.models$7=nt;exports.models$8=Ft;