@omniviewdev/runtime 0.8.2 → 0.9.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.js +183 -186
- package/dist/calls-Bg_uMVc9.cjs +1 -0
- package/dist/{calls-C1yoW06C.js → calls-BvZkVSse.js} +11 -5
- package/dist/context/settings/SettingsContext.d.ts +1 -1
- package/dist/{events-CtgYnKmS.cjs → events-DnLqUWri.cjs} +1 -1
- package/dist/{events-Bcx6NsMp.js → events-uBheGmqm.js} +1 -1
- package/dist/hooks/resource/useResource.d.ts +1 -1
- package/dist/index-BVi9X4oU.cjs +6 -0
- package/dist/{index-D2mKAO8s.js → index-zyAgCXOO.js} +52 -52
- package/dist/index.cjs +4 -4
- package/dist/index.js +2940 -2104
- package/dist/{legacyEnum-DORXlU_y.js → legacyEnum-CKqyRmbX.js} +3 -1
- package/dist/models-CT4kHj47.js +2444 -0
- package/dist/models-DQl7tqts.cjs +1 -0
- package/dist/models-DU8pTcoZ.js +142 -0
- package/dist/models-KV9f8Ceh.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.js +229 -232
- package/dist/resourceIcons.d.ts +2 -2
- package/dist/router/Link.d.ts +1 -1
- package/dist/router/index.d.ts +1 -1
- package/dist/router/usePluginRouter.d.ts +1 -1
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +6 -6
- package/dist/servicewrapper-CCW7kIVs.cjs +1 -0
- package/dist/servicewrapper-Q1ww3DUo.js +849 -0
- package/dist/types/app.d.ts +1 -1
- package/package.json +22 -16
- package/dist/calls-DUhq86Ki.cjs +0 -1
- package/dist/graphservice-1J8q3eeL.cjs +0 -1
- package/dist/graphservice-CUg1PUsC.js +0 -852
- package/dist/index-D_aIcqH0.cjs +0 -6
- package/dist/models-4EtitZnM.js +0 -2447
- package/dist/models-BQsuB2Lj.cjs +0 -1
- package/dist/models-BpVWHqlF.cjs +0 -1
- package/dist/models-C5sf8GNY.js +0 -145
package/dist/models-BQsuB2Lj.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Vt=Object.defineProperty;var Qt=(i,e,s)=>e in i?Vt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var t=(i,e,s)=>Qt(i,typeof e!="symbol"?e+"":e,s);const c=require("./index-D_aIcqH0.cjs");class K{constructor(e={}){t(this,"settings");t(this,"id");t(this,"label");t(this,"description");t(this,"icon");"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 s=Yt;let n=typeof e=="string"?JSON.parse(e):e;return"settings"in n&&(n.settings=s(n.settings)),new K(n)}}class O{constructor(e={}){t(this,"id");t(this,"label");t(this,"description");t(this,"type");t(this,"value");t(this,"default");t(this,"options");t(this,"fileSelection");t(this,"sensitive");t(this,"devOnly");"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 s=$t,n=ti;let a=typeof e=="string"?JSON.parse(e):e;return"options"in a&&(a.options=s(a.options)),"fileSelection"in a&&(a.fileSelection=n(a.fileSelection)),new O(a)}}class w{constructor(e={}){t(this,"enabled");t(this,"allowFolders");t(this,"extensions");t(this,"multiple");t(this,"relative");t(this,"defaultPath");"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 s=ii;let n=typeof e=="string"?JSON.parse(e):e;return"extensions"in n&&(n.extensions=s(n.extensions)),new w(n)}}class v{constructor(e={}){t(this,"label");t(this,"description");t(this,"value");"label"in e||(this.label=""),"description"in e||(this.description=""),"value"in e||(this.value=null),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new v(s)}}var Je=(i=>(i.$zero="",i.Text="text",i.Select="select",i.MultiSelect="multiselect",i.Integer="integer",i.Float="float",i.Toggle="toggle",i.Color="color",i.DateTime="datetime",i.Password="password",i))(Je||{});class G{constructor(e={}){t(this,"valid");t(this,"code");t(this,"message");"valid"in e||(this.valid=!1),"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new G(s)}}const Wt=O.createFrom,Yt=c.Map(c.Any,Wt),Xt=v.createFrom,$t=c.Array(Xt),ei=w.createFrom,ti=c.Nullable(ei),ii=c.Array(c.Any),ni=Object.freeze(Object.defineProperty({__proto__:null,Category:K,Setting:O,SettingFileSelection:w,SettingOption:v,SettingType:Je,ValidationResult:G},Symbol.toStringTag,{value:"Module"}));class N{constructor(e={}){t(this,"name");t(this,"email");t(this,"url");"name"in e||(this.name=""),"email"in e||(this.email=""),"url"in e||(this.url=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new N(s)}}var Ce=(i=>(i.$zero="",i.PluginComponentAreaEditor="EDITOR",i.PluginComponentAreaSidebar="SIDEBAR",i))(Ce||{});class h{constructor(e={}){t(this,"resource");"resource"in e||(this.resource=[]),Object.assign(this,e)}static createFrom(e={}){const s=ai;let n=typeof e=="string"?JSON.parse(e):e;return"resource"in n&&(n.resource=s(n.resource)),new h(n)}}class T{constructor(e={}){t(this,"name");t(this,"email");"name"in e||(this.name=""),"email"in e||(this.email=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new T(s)}}class m{constructor(e={}){t(this,"id");t(this,"version");t(this,"name");t(this,"icon");t(this,"icon_url");t(this,"description");t(this,"repository");t(this,"website");t(this,"category");t(this,"license");t(this,"author");t(this,"maintainers");t(this,"tags");t(this,"dependencies");t(this,"capabilities");t(this,"theme");t(this,"components");t(this,"schema_version");t(this,"sdk_protocol_version");t(this,"state_isolation");"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 g),"components"in e||(this.components=new h),"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 s=ci,n=li,a=B,r=B,o=B,Lt=pi,qt=di,Zt=hi;let l=typeof e=="string"?JSON.parse(e):e;return"author"in l&&(l.author=s(l.author)),"maintainers"in l&&(l.maintainers=n(l.maintainers)),"tags"in l&&(l.tags=a(l.tags)),"dependencies"in l&&(l.dependencies=r(l.dependencies)),"capabilities"in l&&(l.capabilities=o(l.capabilities)),"theme"in l&&(l.theme=Lt(l.theme)),"components"in l&&(l.components=qt(l.components)),"state_isolation"in l&&(l.state_isolation=Zt(l.state_isolation)),new m(l)}}class A{constructor(e={}){t(this,"name");t(this,"plugin");t(this,"area");t(this,"resources");t(this,"extension");"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 s=B;let n=typeof e=="string"?JSON.parse(e):e;return"resources"in n&&(n.resources=s(n.resources)),new A(n)}}class g{constructor(e={}){t(this,"colors");"colors"in e||(this.colors=new y),Object.assign(this,e)}static createFrom(e={}){const s=mi;let n=typeof e=="string"?JSON.parse(e):e;return"colors"in n&&(n.colors=s(n.colors)),new g(n)}}class y{constructor(e={}){t(this,"primary");t(this,"secondary");t(this,"tertiary");"primary"in e||(this.primary=""),"secondary"in e||(this.secondary=""),"tertiary"in e||(this.tertiary=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new y(s)}}class j{constructor(e={}){t(this,"schema_version");t(this,"capability");t(this,"sdk_module");t(this,"sdk_revision");t(this,"sdk_source_sha256");t(this,"binary_sha256");"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 s=typeof e=="string"?JSON.parse(e):e;return new j(s)}}const si=A.createFrom,ai=c.Array(si),ri=N.createFrom,ci=c.Nullable(ri),oi=T.createFrom,li=c.Array(oi),B=c.Array(c.Any),pi=g.createFrom,di=h.createFrom,fi=j.createFrom,hi=c.Nullable(fi),mi=y.createFrom,gi=Object.freeze(Object.defineProperty({__proto__:null,PluginAuthor:N,PluginComponentArea:Ce,PluginComponents:h,PluginMaintainer:T,PluginMeta:m,PluginResourceComponent:A,PluginTheme:g,PluginThemeColors:y,StateIsolationProvenance:j},Symbol.toStringTag,{value:"Module"}));class L{constructor(e={}){t(this,"id");t(this,"name");t(this,"description");t(this,"icon_url");t(this,"category");t(this,"tags");t(this,"license");t(this,"official");t(this,"featured");t(this,"download_count");t(this,"average_rating");t(this,"review_count");t(this,"repository");t(this,"url");t(this,"publisher_name");t(this,"installed");t(this,"installed_version");t(this,"latest_version");t(this,"update_available");"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 s=_t;let n=typeof e=="string"?JSON.parse(e):e;return"tags"in n&&(n.tags=s(n.tags)),new L(n)}}class q{constructor(e={}){t(this,"date");t(this,"count");"date"in e||(this.date=""),"count"in e||(this.count=0),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new q(s)}}class Z{constructor(e={}){t(this,"total");t(this,"last_month");t(this,"last_week");t(this,"daily_stats");"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 s=_i;let n=typeof e=="string"?JSON.parse(e):e;return"daily_stats"in n&&(n.daily_stats=s(n.daily_stats)),new Z(n)}}class V{constructor(e={}){t(this,"id");t(this,"user_id");t(this,"rating");t(this,"title");t(this,"body");t(this,"created_at");"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 s=typeof e=="string"?JSON.parse(e):e;return new V(s)}}class Q{constructor(e={}){t(this,"version");t(this,"description");t(this,"changelog");t(this,"min_ide_version");t(this,"max_ide_version");t(this,"capabilities");t(this,"created_at");"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 s=_t;let n=typeof e=="string"?JSON.parse(e):e;return"capabilities"in n&&(n.capabilities=s(n.capabilities)),new Q(n)}}const _t=c.Array(c.Any),yi=q.createFrom,_i=c.Array(yi),bi=Object.freeze(Object.defineProperty({__proto__:null,AvailablePlugin:L,DailyStat:q,DownloadStats:Z,Review:V,VersionInfo:Q},Symbol.toStringTag,{value:"Module"}));var _=(i=>(i[i.$zero=0]="$zero",i[i.minDuration=-9223372036854776e3]="minDuration",i[i.maxDuration=9223372036854776e3]="maxDuration",i[i.Nanosecond=1]="Nanosecond",i[i.Microsecond=1e3]="Microsecond",i[i.Millisecond=1e6]="Millisecond",i[i.Second=1e9]="Second",i[i.Minute=6e10]="Minute",i[i.Hour=36e11]="Hour",i))(_||{});const Si=Object.freeze(Object.defineProperty({__proto__:null,Duration:_},Symbol.toStringTag,{value:"Module"}));var bt=(i=>(i.$zero="",i.CapabilityResource="resource",i.CapabilityExec="exec",i.CapabilityNetworker="networker",i.CapabilityLog="log",i.CapabilityMetric="metric",i.CapabilitySettings="settings",i.CapabilityUI="ui",i))(bt||{});class W{constructor(e={}){t(this,"last_refresh");t(this,"data");t(this,"labels");t(this,"lifecycle");t(this,"id");t(this,"uid");t(this,"name");t(this,"description");t(this,"avatar");t(this,"expiry_time");t(this,"Client");"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 J),"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=_.$zero),"Client"in e||(this.Client=null),Object.assign(this,e)}static createFrom(e={}){const s=yt,n=yt,a=ui;let r=typeof e=="string"?JSON.parse(e):e;return"data"in r&&(r.data=s(r.data)),"labels"in r&&(r.labels=n(r.labels)),"lifecycle"in r&&(r.lifecycle=a(r.lifecycle)),new W(r)}}class Y{constructor(e={}){t(this,"enabled");t(this,"triggers");t(this,"retry");"enabled"in e||(this.enabled=!1),"triggers"in e||(this.triggers=[]),"retry"in e||(this.retry=""),Object.assign(this,e)}static createFrom(e={}){const s=Fi;let n=typeof e=="string"?JSON.parse(e):e;return"triggers"in n&&(n.triggers=s(n.triggers)),new Y(n)}}var St=(i=>(i.$zero="",i.ConnectionAutoConnectRetryNone="NONE",i.ConnectionAutoConnectRetryOnChange="ON_CHANGE",i))(St||{}),ut=(i=>(i.$zero="",i.ConnectionAutoConnectTriggerPluginStart="PLUGIN_START",i.ConnectionAutoConnectTriggerConnectionDiscovered="CONNECTION_DISCOVERED",i))(ut||{});class J{constructor(e={}){t(this,"auto_connect");Object.assign(this,e)}static createFrom(e={}){const s=wi;let n=typeof e=="string"?JSON.parse(e):e;return"auto_connect"in n&&(n.auto_connect=s(n.auto_connect)),new J(n)}}class Pe{constructor(e={}){t(this,"connection");t(this,"status");t(this,"error");t(this,"details");"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 s=Ni;let n=typeof e=="string"?JSON.parse(e):e;return"connection"in n&&(n.connection=s(n.connection)),new Pe(n)}}var Ft=(i=>(i.$zero="",i.ConnectionStatusUnknown="UNKNOWN",i.ConnectionStatusConnected="CONNECTED",i.ConnectionStatusDisconnected="DISCONNECTED",i.ConnectionStatusPending="PENDING",i.ConnectionStatusFailed="FAILED",i.ConnectionStatusError="ERROR",i.ConnectionStatusUnauthorized="UNAUTHORIZED",i.ConnectionStatusForbidden="FORBIDDEN",i.ConnectionStatusBadRequest="BAD_REQUEST",i.ConnectionStatusNotFound="NOT_FOUND",i.ConnectionStatusTimeout="TIMEOUT",i.ConnectionStatusUnavailable="UNAVAILABLE",i.ConnectionStatusRequestEntityTooLarge="REQUEST_ENTITY_TOO_LARGE",i))(Ft||{});class Ee{constructor(e={}){t(this,"id");t(this,"metadata");t(this,"phase");t(this,"enabled");t(this,"devMode");t(this,"devPath");t(this,"capabilities");t(this,"lastError");"id"in e||(this.id=""),"metadata"in e||(this.metadata=new m),"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 s=Ti,n=Ai;let a=typeof e=="string"?JSON.parse(e):e;return"metadata"in a&&(a.metadata=s(a.metadata)),"capabilities"in a&&(a.capabilities=n(a.capabilities)),new Ee(a)}}const yt=c.Map(c.Any,c.Any),ui=J.createFrom,Fi=c.Array(c.Any),Oi=Y.createFrom,wi=c.Nullable(Oi),vi=W.createFrom,Ni=c.Nullable(vi),Ti=m.createFrom,Ai=c.Array(c.Any);class Re{constructor(e={}){t(this,"id");t(this,"label");t(this,"description");t(this,"icon");t(this,"scope");t(this,"streaming");t(this,"paramsSchema");t(this,"outputSchema");t(this,"dangerous");"id"in e||(this.id=""),"label"in e||(this.label=""),"description"in e||(this.description=""),"icon"in e||(this.icon=""),"scope"in e||(this.scope=""),"streaming"in e||(this.streaming=!1),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new Re(s)}}class Ie{constructor(e={}){t(this,"id");t(this,"namespace");t(this,"params");"id"in e||(this.id=""),"namespace"in e||(this.namespace=""),"params"in e||(this.params={}),Object.assign(this,e)}static createFrom(e={}){const s=Pt;let n=typeof e=="string"?JSON.parse(e):e;return"params"in n&&(n.params=s(n.params)),new Ie(n)}}class xe{constructor(e={}){t(this,"success");t(this,"data");t(this,"message");"success"in e||(this.success=!1),"data"in e||(this.data={}),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){const s=Pt;let n=typeof e=="string"?JSON.parse(e):e;return"data"in n&&(n.data=s(n.data)),new xe(n)}}var Ot=(i=>(i.$zero="",i.ActionScopeInstance="instance",i.ActionScopeType="type",i))(Ot||{});class X{constructor(e={}){t(this,"id");t(this,"header");t(this,"accessor");t(this,"accessorPriority");t(this,"colorMap");t(this,"color");t(this,"align");t(this,"hidden");t(this,"width");t(this,"formatter");t(this,"component");t(this,"componentParams");t(this,"resourceLink");t(this,"valueMap");"id"in e||(this.id=""),"header"in e||(this.header=""),"accessor"in e||(this.accessor=""),Object.assign(this,e)}static createFrom(e={}){const s=S,n=Ji,a=S;let r=typeof e=="string"?JSON.parse(e):e;return"colorMap"in r&&(r.colorMap=s(r.colorMap)),"resourceLink"in r&&(r.resourceLink=n(r.resourceLink)),"valueMap"in r&&(r.valueMap=a(r.valueMap)),new X(r)}}class ze{constructor(e={}){t(this,"input");t(this,"namespace");"input"in e||(this.input=null),"namespace"in e||(this.namespace=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new ze(s)}}class ke{constructor(e={}){t(this,"result");t(this,"success");"result"in e||(this.result=null),"success"in e||(this.success=!1),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new ke(s)}}class Me{constructor(e={}){t(this,"id");t(this,"namespace");t(this,"gracePeriodSeconds");"id"in e||(this.id=""),"namespace"in e||(this.namespace=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new Me(s)}}class De{constructor(e={}){t(this,"result");t(this,"success");"result"in e||(this.result=null),"success"in e||(this.success=!1),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new De(s)}}var wt=(i=>(i.$zero="",i.EdgeOutgoing="",i.EdgeIncoming="incoming",i))(wt||{});class He{constructor(e={}){t(this,"resourceKey");t(this,"fileMatch");t(this,"uri");t(this,"url");t(this,"content");t(this,"language");"resourceKey"in e||(this.resourceKey=""),"fileMatch"in e||(this.fileMatch=""),"uri"in e||(this.uri=""),"language"in e||(this.language=""),Object.assign(this,e)}static createFrom(e={}){const s=c.ByteSlice;let n=typeof e=="string"?JSON.parse(e):e;return"content"in n&&(n.content=s(n.content)),new He(n)}}var vt=(i=>(i.$zero="",i.SeverityNormal="normal",i.SeverityWarning="warning",i.SeverityError="error",i))(vt||{});class ${constructor(e={}){t(this,"logic");t(this,"predicates");t(this,"groups");Object.assign(this,e)}static createFrom(e={}){const s=Pi,n=Ei;let a=typeof e=="string"?JSON.parse(e):e;return"predicates"in a&&(a.predicates=s(a.predicates)),"groups"in a&&(a.groups=n(a.groups)),new $(a)}}class Ue{constructor(e={}){t(this,"path");t(this,"displayName");t(this,"description");t(this,"type");t(this,"operators");t(this,"allowedValues");t(this,"required");"path"in e||(this.path=""),"displayName"in e||(this.displayName=""),"description"in e||(this.description=""),"type"in e||(this.type=""),"operators"in e||(this.operators=[]),Object.assign(this,e)}static createFrom(e={}){const s=Ri,n=le;let a=typeof e=="string"?JSON.parse(e):e;return"operators"in a&&(a.operators=s(a.operators)),"allowedValues"in a&&(a.allowedValues=n(a.allowedValues)),new Ue(a)}}var Nt=(i=>(i.$zero="",i.FilterFieldString="string",i.FilterFieldInt="integer",i.FilterFieldFloat="number",i.FilterFieldBool="boolean",i.FilterFieldTime="datetime",i.FilterFieldEnum="enum",i.FilterFieldMap="map",i))(Nt||{}),Tt=(i=>(i.$zero="",i.FilterAnd="and",i.FilterOr="or",i))(Tt||{}),At=(i=>(i.$zero="",i.OpEqual="eq",i.OpNotEqual="neq",i.OpGreaterThan="gt",i.OpGreaterOrEqual="gte",i.OpLessThan="lt",i.OpLessOrEqual="lte",i.OpContains="contains",i.OpPrefix="prefix",i.OpSuffix="suffix",i.OpRegex="regex",i.OpIn="in",i.OpNotIn="notin",i.OpExists="exists",i.OpNotExists="notexists",i.OpHasKey="haskey",i))(At||{});class ee{constructor(e={}){t(this,"field");t(this,"operator");t(this,"value");"field"in e||(this.field=""),"operator"in e||(this.operator=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new ee(s)}}class Be{constructor(e={}){t(this,"filters");t(this,"textQuery");t(this,"namespaces");t(this,"order");t(this,"pagination");"namespaces"in e||(this.namespaces=[]),"order"in e||(this.order=[]),"pagination"in e||(this.pagination=new b),Object.assign(this,e)}static createFrom(e={}){const s=Ii,n=le,a=Rt,r=It;let o=typeof e=="string"?JSON.parse(e):e;return"filters"in o&&(o.filters=s(o.filters)),"namespaces"in o&&(o.namespaces=n(o.namespaces)),"order"in o&&(o.order=a(o.order)),"pagination"in o&&(o.pagination=r(o.pagination)),new Be(o)}}class Ke{constructor(e={}){t(this,"result");t(this,"success");t(this,"totalCount");t(this,"nextCursor");"result"in e||(this.result=[]),"success"in e||(this.success=!1),"totalCount"in e||(this.totalCount=0),Object.assign(this,e)}static createFrom(e={}){const s=xt;let n=typeof e=="string"?JSON.parse(e):e;return"result"in n&&(n.result=s(n.result)),new Ke(n)}}class Ge{constructor(e={}){t(this,"id");t(this,"namespace");"id"in e||(this.id=""),"namespace"in e||(this.namespace=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new Ge(s)}}class Le{constructor(e={}){t(this,"result");t(this,"success");"result"in e||(this.result=null),"success"in e||(this.success=!1),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new Le(s)}}class te{constructor(e={}){t(this,"type");t(this,"status");t(this,"reason");t(this,"message");t(this,"lastProbeTime");t(this,"lastTransitionTime");"type"in e||(this.type=""),"status"in e||(this.status=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new te(s)}}var jt=(i=>(i.$zero="",i.HealthHealthy="healthy",i.HealthDegraded="degraded",i.HealthUnhealthy="unhealthy",i.HealthPending="pending",i.HealthUnknown="unknown",i))(jt||{});class qe{constructor(e={}){t(this,"namespaces");t(this,"order");t(this,"pagination");"namespaces"in e||(this.namespaces=[]),"order"in e||(this.order=[]),"pagination"in e||(this.pagination=new b),Object.assign(this,e)}static createFrom(e={}){const s=le,n=Rt,a=It;let r=typeof e=="string"?JSON.parse(e):e;return"namespaces"in r&&(r.namespaces=s(r.namespaces)),"order"in r&&(r.order=n(r.order)),"pagination"in r&&(r.pagination=a(r.pagination)),new qe(r)}}class Ze{constructor(e={}){t(this,"result");t(this,"success");t(this,"totalCount");t(this,"nextCursor");"result"in e||(this.result=[]),"success"in e||(this.success=!1),"totalCount"in e||(this.totalCount=0),Object.assign(this,e)}static createFrom(e={}){const s=xt;let n=typeof e=="string"?JSON.parse(e):e;return"result"in n&&(n.result=s(n.result)),new Ze(n)}}class ie{constructor(e={}){t(this,"field");t(this,"descending");"field"in e||(this.field=""),"descending"in e||(this.descending=!1),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new ie(s)}}class b{constructor(e={}){t(this,"page");t(this,"pageSize");t(this,"cursor");"page"in e||(this.page=0),"pageSize"in e||(this.pageSize=0),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new b(s)}}class C{constructor(e={}){t(this,"type");t(this,"targetResourceKey");t(this,"label");t(this,"inverseLabel");t(this,"cardinality");t(this,"direction");t(this,"extractor");t(this,"targetNamespaced");"type"in e||(this.type=""),"targetResourceKey"in e||(this.targetResourceKey=""),"label"in e||(this.label=""),Object.assign(this,e)}static createFrom(e={}){const s=ki;let n=typeof e=="string"?JSON.parse(e):e;return"extractor"in n&&(n.extractor=s(n.extractor)),new C(n)}}class ne{constructor(e={}){t(this,"method");t(this,"fieldPath");t(this,"labelSelector");"method"in e||(this.method=""),Object.assign(this,e)}static createFrom(e={}){const s=S;let n=typeof e=="string"?JSON.parse(e):e;return"labelSelector"in n&&(n.labelSelector=s(n.labelSelector)),new ne(n)}}var Ve=(i=>(i.$zero="",i.RelOwns="owns",i.RelRunsOn="runs_on",i.RelUses="uses",i.RelExposes="exposes",i.RelManages="manages",i.RelMemberOf="member_of",i.RelSelects="selects",i))(Ve||{});class Qe{constructor(e={}){t(this,"descriptor");t(this,"targets");"descriptor"in e||(this.descriptor=new C),"targets"in e||(this.targets=[]),Object.assign(this,e)}static createFrom(e={}){const s=Mi,n=Hi;let a=typeof e=="string"?JSON.parse(e):e;return"descriptor"in a&&(a.descriptor=s(a.descriptor)),"targets"in a&&(a.targets=n(a.targets)),new Qe(a)}}class We{constructor(e={}){t(this,"canGet");t(this,"canList");t(this,"canFind");t(this,"canCreate");t(this,"canUpdate");t(this,"canDelete");t(this,"watchable");t(this,"filterable");t(this,"searchable");t(this,"hasActions");t(this,"hasSchema");t(this,"namespaceScoped");t(this,"hasRelationships");t(this,"hasHealth");t(this,"hasEvents");t(this,"scaleHint");"canGet"in e||(this.canGet=!1),"canList"in e||(this.canList=!1),"canFind"in e||(this.canFind=!1),"canCreate"in e||(this.canCreate=!1),"canUpdate"in e||(this.canUpdate=!1),"canDelete"in e||(this.canDelete=!1),"watchable"in e||(this.watchable=!1),"filterable"in e||(this.filterable=!1),"searchable"in e||(this.searchable=!1),"hasActions"in e||(this.hasActions=!1),"hasSchema"in e||(this.hasSchema=!1),"namespaceScoped"in e||(this.namespaceScoped=!1),"hasRelationships"in e||(this.hasRelationships=!1),"hasHealth"in e||(this.hasHealth=!1),"hasEvents"in e||(this.hasEvents=!1),Object.assign(this,e)}static createFrom(e={}){const s=Bi;let n=typeof e=="string"?JSON.parse(e):e;return"scaleHint"in n&&(n.scaleHint=s(n.scaleHint)),new We(n)}}class Ye{constructor(e={}){t(this,"id_accessor");t(this,"namespace_accessor");t(this,"memoizer_accessor");t(this,"columnDefs");"id_accessor"in e||(this.id_accessor=""),"namespace_accessor"in e||(this.namespace_accessor=""),"memoizer_accessor"in e||(this.memoizer_accessor=""),"columnDefs"in e||(this.columnDefs=[]),Object.assign(this,e)}static createFrom(e={}){const s=Gi;let n=typeof e=="string"?JSON.parse(e):e;return"columnDefs"in n&&(n.columnDefs=s(n.columnDefs)),new Ye(n)}}class Xe{constructor(e={}){t(this,"type");t(this,"reason");t(this,"message");t(this,"source");t(this,"count");t(this,"firstSeen");t(this,"lastSeen");"type"in e||(this.type=""),"reason"in e||(this.reason=""),"message"in e||(this.message=""),"firstSeen"in e||(this.firstSeen="0001-01-01T00:00:00.000Z"),"lastSeen"in e||(this.lastSeen="0001-01-01T00:00:00.000Z"),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new Xe(s)}}class $e{constructor(e={}){t(this,"id");t(this,"name");t(this,"description");t(this,"icon");t(this,"resources");"id"in e||(this.id=""),"name"in e||(this.name=""),"description"in e||(this.description=""),"icon"in e||(this.icon=""),"resources"in e||(this.resources={}),Object.assign(this,e)}static createFrom(e={}){const s=Zi;let n=typeof e=="string"?JSON.parse(e):e;return"resources"in n&&(n.resources=s(n.resources)),new $e(n)}}class et{constructor(e={}){t(this,"status");t(this,"reason");t(this,"message");t(this,"since");t(this,"conditions");"status"in e||(this.status=""),Object.assign(this,e)}static createFrom(e={}){const s=Qi;let n=typeof e=="string"?JSON.parse(e):e;return"conditions"in n&&(n.conditions=s(n.conditions)),new et(n)}}class se{constructor(e={}){t(this,"idAccessor");t(this,"namespaceAccessor");t(this,"namespaced");t(this,"resourceKey");t(this,"keyAccessor");t(this,"keyMap");t(this,"detailExtractors");t(this,"displayId");"idAccessor"in e||(this.idAccessor=""),"namespaceAccessor"in e||(this.namespaceAccessor=""),"namespaced"in e||(this.namespaced=!1),"resourceKey"in e||(this.resourceKey=""),"keyAccessor"in e||(this.keyAccessor=""),"keyMap"in e||(this.keyMap={}),"detailExtractors"in e||(this.detailExtractors={}),"displayId"in e||(this.displayId=!1),Object.assign(this,e)}static createFrom(e={}){const s=S,n=S;let a=typeof e=="string"?JSON.parse(e):e;return"keyMap"in a&&(a.keyMap=s(a.keyMap)),"detailExtractors"in a&&(a.detailExtractors=n(a.detailExtractors)),new se(a)}}class ae{constructor(e={}){t(this,"group");t(this,"version");t(this,"kind");t(this,"label");t(this,"icon");t(this,"description");t(this,"category");"group"in e||(this.group=""),"version"in e||(this.version=""),"kind"in e||(this.kind=""),"label"in e||(this.label=""),"icon"in e||(this.icon=""),"description"in e||(this.description=""),"category"in e||(this.category=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new ae(s)}}class re{constructor(e={}){t(this,"pluginId");t(this,"connectionId");t(this,"resourceKey");t(this,"id");t(this,"namespace");t(this,"displayName");"connectionId"in e||(this.connectionId=""),"resourceKey"in e||(this.resourceKey=""),"id"in e||(this.id=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new re(s)}}class ce{constructor(e={}){t(this,"level");t(this,"expectedCount");t(this,"defaultPageSize");"level"in e||(this.level=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new ce(s)}}var Jt=(i=>(i.$zero="",i.ScaleFew="few",i.ScaleModerate="moderate",i.ScaleMany="many",i))(Jt||{});class tt{constructor(e={}){t(this,"input");t(this,"id");t(this,"namespace");"input"in e||(this.input=null),"id"in e||(this.id=""),"namespace"in e||(this.namespace=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new tt(s)}}class it{constructor(e={}){t(this,"result");t(this,"success");"result"in e||(this.result=null),"success"in e||(this.success=!1),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new it(s)}}class nt{constructor(e={}){t(this,"connectionId");t(this,"resources");t(this,"resourceCounts");t(this,"scope");"connectionId"in e||(this.connectionId=""),"resources"in e||(this.resources={}),"resourceCounts"in e||(this.resourceCounts={}),Object.assign(this,e)}static createFrom(e={}){const s=Wi,n=Yi,a=$i;let r=typeof e=="string"?JSON.parse(e):e;return"resources"in r&&(r.resources=s(r.resources)),"resourceCounts"in r&&(r.resourceCounts=n(r.resourceCounts)),"scope"in r&&(r.scope=a(r.scope)),new nt(r)}}class oe{constructor(e={}){t(this,"partitions");Object.assign(this,e)}static createFrom(e={}){const s=le;let n=typeof e=="string"?JSON.parse(e):e;return"partitions"in n&&(n.partitions=s(n.partitions)),new oe(n)}}var Ct=(i=>(i[i.$zero=0]="$zero",i[i.WatchStateIdle=0]="WatchStateIdle",i[i.WatchStateSyncing=1]="WatchStateSyncing",i[i.WatchStateSynced=2]="WatchStateSynced",i[i.WatchStateError=3]="WatchStateError",i[i.WatchStateStopped=4]="WatchStateStopped",i[i.WatchStateFailed=5]="WatchStateFailed",i[i.WatchStateForbidden=6]="WatchStateForbidden",i[i.WatchStateSkipped=7]="WatchStateSkipped",i))(Ct||{});class st{constructor(e={}){t(this,"pluginId");t(this,"connection");t(this,"resourceKey");t(this,"state");t(this,"message");t(this,"resourceCount");t(this,"errorCode");"pluginId"in e||(this.pluginId=""),"connection"in e||(this.connection=""),"resourceKey"in e||(this.resourceKey=""),"state"in e||(this.state=0),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new st(s)}}const Pt=c.Map(c.Any,c.Any),S=c.Map(c.Any,c.Any),ji=se.createFrom,Ji=c.Nullable(ji),Ci=ee.createFrom,Pi=c.Array(Ci),Et=$.createFrom,Ei=c.Array(Et),Ri=c.Array(c.Any),le=c.Array(c.Any),Ii=c.Nullable(Et),xi=ie.createFrom,Rt=c.Array(xi),It=b.createFrom,xt=c.Array(c.Any),zi=ne.createFrom,ki=c.Nullable(zi),Mi=C.createFrom,Di=re.createFrom,Hi=c.Array(Di),Ui=ce.createFrom,Bi=c.Nullable(Ui),Ki=X.createFrom,Gi=c.Array(Ki),Li=ae.createFrom,qi=c.Array(Li),Zi=c.Map(c.Any,qi),Vi=te.createFrom,Qi=c.Array(Vi),Wi=c.Map(c.Any,c.Any),Yi=c.Map(c.Any,c.Any),Xi=oe.createFrom,$i=c.Nullable(Xi);let pe=class zt{constructor(e={}){t(this,"label");t(this,"label_selector");t(this,"paths");t(this,"selectors");"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 s=he,n=u;let a=typeof e=="string"?JSON.parse(e):e;return"paths"in a&&(a.paths=s(a.paths)),"selectors"in a&&(a.selectors=n(a.selectors)),new zt(a)}},kt=class Mt{constructor(e={}){t(this,"plugin");t(this,"resource");t(this,"target_builder");t(this,"default_command");"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new pe),"default_command"in e||(this.default_command=[]),Object.assign(this,e)}static createFrom(e={}){const s=en,n=he;let a=typeof e=="string"?JSON.parse(e):e;return"target_builder"in a&&(a.target_builder=s(a.target_builder)),"default_command"in a&&(a.default_command=n(a.default_command)),new Mt(a)}};class de{constructor(e={}){t(this,"created_at");t(this,"labels");t(this,"params");t(this,"id");t(this,"command");t(this,"attached");"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 s=u,n=u,a=he;let r=typeof e=="string"?JSON.parse(e):e;return"labels"in r&&(r.labels=s(r.labels)),"params"in r&&(r.params=n(r.params)),"command"in r&&(r.command=a(r.command)),new de(r)}}class fe{constructor(e={}){t(this,"params");t(this,"labels");t(this,"id");t(this,"resource_plugin");t(this,"resource_key");t(this,"resource_data");t(this,"command");t(this,"tty");"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=""),"resource_data"in e||(this.resource_data={}),"command"in e||(this.command=[]),"tty"in e||(this.tty=!1),Object.assign(this,e)}static createFrom(e={}){const s=u,n=u,a=tn,r=he;let o=typeof e=="string"?JSON.parse(e):e;return"params"in o&&(o.params=s(o.params)),"labels"in o&&(o.labels=n(o.labels)),"resource_data"in o&&(o.resource_data=a(o.resource_data)),"command"in o&&(o.command=r(o.command)),new fe(o)}}const he=c.Array(c.Any),u=c.Map(c.Any,c.Any),en=pe.createFrom,tn=c.Map(c.Any,c.Any),nn=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:pe,Handler:kt,Session:de,SessionOptions:fe},Symbol.toStringTag,{value:"Module"}));class P{constructor(e={}){t(this,"label");t(this,"label_selector");t(this,"paths");t(this,"selectors");"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 s=sn,n=ct;let a=typeof e=="string"?JSON.parse(e):e;return"paths"in a&&(a.paths=s(a.paths)),"selectors"in a&&(a.selectors=n(a.selectors)),new P(a)}}class me{constructor(e={}){t(this,"resource_key");t(this,"resource_id");t(this,"resource_data");t(this,"options");"resource_key"in e||(this.resource_key=""),"resource_id"in e||(this.resource_id=""),"resource_data"in e||(this.resource_data={}),"options"in e||(this.options=new d),Object.assign(this,e)}static createFrom(e={}){const s=an,n=Ut;let a=typeof e=="string"?JSON.parse(e):e;return"resource_data"in a&&(a.resource_data=s(a.resource_data)),"options"in a&&(a.options=n(a.options)),new me(a)}}let Dt=class Ht{constructor(e={}){t(this,"plugin");t(this,"resource");t(this,"target_builder");"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"target_builder"in e||(this.target_builder=new P),Object.assign(this,e)}static createFrom(e={}){const s=rn;let n=typeof e=="string"?JSON.parse(e):e;return"target_builder"in n&&(n.target_builder=s(n.target_builder)),new Ht(n)}};class ge{constructor(e={}){t(this,"id");t(this,"plugin_id");t(this,"connection_id");t(this,"resource_key");t(this,"resource_id");t(this,"options");t(this,"status");t(this,"active_sources");t(this,"created_at");"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 d),"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 s=Ut,n=on;let a=typeof e=="string"?JSON.parse(e):e;return"options"in a&&(a.options=s(a.options)),"active_sources"in a&&(a.active_sources=n(a.active_sources)),new ge(a)}}class d{constructor(e={}){t(this,"target");t(this,"follow");t(this,"include_previous");t(this,"include_timestamps");t(this,"tail_lines");t(this,"since_seconds");t(this,"since_time");t(this,"limit_bytes");t(this,"include_source_events");t(this,"params");"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 s=ct;let n=typeof e=="string"?JSON.parse(e):e;return"params"in n&&(n.params=s(n.params)),new d(n)}}var at=(i=>(i[i.$zero=0]="$zero",i[i.LogSessionStatusActive=0]="LogSessionStatusActive",i[i.LogSessionStatusPaused=1]="LogSessionStatusPaused",i[i.LogSessionStatusClosed=2]="LogSessionStatusClosed",i[i.LogSessionStatusError=3]="LogSessionStatusError",i[i.LogSessionStatusConnecting=4]="LogSessionStatusConnecting",i[i.LogSessionStatusInitializing=5]="LogSessionStatusInitializing",i))(at||{});class E{constructor(e={}){t(this,"id");t(this,"labels");"id"in e||(this.id=""),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const s=ct;let n=typeof e=="string"?JSON.parse(e):e;return"labels"in n&&(n.labels=s(n.labels)),new E(n)}}var rt=(i=>(i[i.$zero=0]="$zero",i[i.StreamCommandPause=0]="StreamCommandPause",i[i.StreamCommandResume=1]="StreamCommandResume",i[i.StreamCommandClose=2]="StreamCommandClose",i))(rt||{});const sn=c.Array(c.Any),ct=c.Map(c.Any,c.Any),an=c.Map(c.Any,c.Any),Ut=d.createFrom,rn=P.createFrom,cn=E.createFrom,on=c.Array(cn),ln=Object.freeze(Object.defineProperty({__proto__:null,ActionTargetBuilder:P,CreateSessionOptions:me,Handler:Dt,LogSession:ge,LogSessionOptions:d,LogSessionStatus:at,LogSource:E,LogStreamCommand:rt},Symbol.toStringTag,{value:"Module"}));class R{constructor(e={}){t(this,"metric_id");t(this,"min");t(this,"max");t(this,"avg");t(this,"sum");t(this,"p50");t(this,"p90");t(this,"p99");t(this,"count");t(this,"window");t(this,"labels");"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=_.$zero),"labels"in e||(this.labels={}),Object.assign(this,e)}static createFrom(e={}){const s=H;let n=typeof e=="string"?JSON.parse(e):e;return"labels"in n&&(n.labels=s(n.labels)),new R(n)}}class I{constructor(e={}){t(this,"min");t(this,"max");t(this,"color");"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 s=typeof e=="string"?JSON.parse(e):e;return new I(s)}}class x{constructor(e={}){t(this,"metric_id");t(this,"value");t(this,"timestamp");t(this,"labels");"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 s=H;let n=typeof e=="string"?JSON.parse(e):e;return"labels"in n&&(n.labels=s(n.labels)),new x(n)}}class z{constructor(e={}){t(this,"timestamp");t(this,"value");t(this,"labels");"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 s=H;let n=typeof e=="string"?JSON.parse(e):e;return"labels"in n&&(n.labels=s(n.labels)),new z(n)}}class ye{constructor(e={}){t(this,"resource");t(this,"metrics");"resource"in e||(this.resource=""),"metrics"in e||(this.metrics=[]),Object.assign(this,e)}static createFrom(e={}){const s=dn;let n=typeof e=="string"?JSON.parse(e):e;return"metrics"in n&&(n.metrics=s(n.metrics)),new ye(n)}}class k{constructor(e={}){t(this,"id");t(this,"name");t(this,"unit");t(this,"icon");t(this,"color_ranges");t(this,"format_string");t(this,"supported_shapes");t(this,"chart_group");"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 s=hn,n=mn;let a=typeof e=="string"?JSON.parse(e):e;return"color_ranges"in a&&(a.color_ranges=s(a.color_ranges)),"supported_shapes"in a&&(a.supported_shapes=n(a.supported_shapes)),new k(a)}}class M{constructor(e={}){t(this,"time_series");t(this,"current_value");t(this,"aggregate_value");Object.assign(this,e)}static createFrom(e={}){const s=yn,n=bn,a=un;let r=typeof e=="string"?JSON.parse(e):e;return"time_series"in r&&(r.time_series=s(r.time_series)),"current_value"in r&&(r.current_value=n(r.current_value)),"aggregate_value"in r&&(r.aggregate_value=a(r.aggregate_value)),new M(r)}}var ot=(i=>(i[i.$zero=0]="$zero",i[i.ShapeCurrent=0]="ShapeCurrent",i[i.ShapeTimeseries=1]="ShapeTimeseries",i[i.ShapeAggregate=2]="ShapeAggregate",i))(ot||{}),lt=(i=>(i[i.$zero=0]="$zero",i[i.UnitNone=0]="UnitNone",i[i.UnitBytes=1]="UnitBytes",i[i.UnitKB=2]="UnitKB",i[i.UnitMB=3]="UnitMB",i[i.UnitGB=4]="UnitGB",i[i.UnitPercentage=5]="UnitPercentage",i[i.UnitMillis=6]="UnitMillis",i[i.UnitSeconds=7]="UnitSeconds",i[i.UnitCount=8]="UnitCount",i[i.UnitOpsPerSec=9]="UnitOpsPerSec",i[i.UnitBytesPerSec=10]="UnitBytesPerSec",i[i.UnitMillicores=11]="UnitMillicores",i[i.UnitCores=12]="UnitCores",i))(lt||{});class _e{constructor(e={}){t(this,"resource_key");t(this,"resource_id");t(this,"resource_namespace");t(this,"resource_data");t(this,"metric_ids");t(this,"shape");t(this,"start_time");t(this,"end_time");t(this,"step");t(this,"params");"resource_key"in e||(this.resource_key=""),"resource_id"in e||(this.resource_id=""),"resource_namespace"in e||(this.resource_namespace=""),"resource_data"in e||(this.resource_data={}),"metric_ids"in e||(this.metric_ids=[]),"shape"in e||(this.shape=0),"start_time"in e||(this.start_time="0001-01-01T00:00:00.000Z"),"end_time"in e||(this.end_time="0001-01-01T00:00:00.000Z"),"step"in e||(this.step=_.$zero),"params"in e||(this.params={}),Object.assign(this,e)}static createFrom(e={}){const s=Fn,n=On,a=H;let r=typeof e=="string"?JSON.parse(e):e;return"resource_data"in r&&(r.resource_data=s(r.resource_data)),"metric_ids"in r&&(r.metric_ids=n(r.metric_ids)),"params"in r&&(r.params=a(r.params)),new _e(r)}}class be{constructor(e={}){t(this,"success");t(this,"results");t(this,"error");"success"in e||(this.success=!1),"results"in e||(this.results=[]),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){const s=vn;let n=typeof e=="string"?JSON.parse(e):e;return"results"in n&&(n.results=s(n.results)),new be(n)}}class D{constructor(e={}){t(this,"metric_id");t(this,"data_points");t(this,"labels");"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 s=Tn,n=H;let a=typeof e=="string"?JSON.parse(e):e;return"data_points"in a&&(a.data_points=s(a.data_points)),"labels"in a&&(a.labels=n(a.labels)),new D(a)}}const H=c.Map(c.Any,c.Any),pn=k.createFrom,dn=c.Array(pn),fn=I.createFrom,hn=c.Array(fn),mn=c.Array(c.Any),gn=D.createFrom,yn=c.Nullable(gn),_n=x.createFrom,bn=c.Nullable(_n),Sn=R.createFrom,un=c.Nullable(Sn),Fn=c.Map(c.Any,c.Any),On=c.Array(c.Any),wn=M.createFrom,vn=c.Array(wn),Nn=z.createFrom,Tn=c.Array(Nn),An=Object.freeze(Object.defineProperty({__proto__:null,AggregateValue:R,ColorRange:I,CurrentValue:x,DataPoint:z,Handler:ye,MetricDescriptor:k,MetricResult:M,MetricShape:ot,MetricUnit:lt,QueryRequest:_e,QueryResponse:be,TimeSeries:D},Symbol.toStringTag,{value:"Module"}));class Se{constructor(e={}){t(this,"resource_id");t(this,"connection_id");"resource_id"in e||(this.resource_id=""),"connection_id"in e||(this.connection_id=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new Se(s)}}var pt=(i=>(i.$zero="",i.PortForwardConnectionTypeResource="RESOURCE",i.PortForwardConnectionTypeStatic="STATIC",i))(pt||{}),dt=(i=>(i.$zero="",i.PortForwardProtocolTCP="TCP",i.PortForwardProtocolUDP="UDP",i))(dt||{});class ue{constructor(e={}){t(this,"created_at");t(this,"updated_at");t(this,"connection");t(this,"labels");t(this,"id");t(this,"protocol");t(this,"state");t(this,"connection_type");t(this,"encryption");t(this,"local_port");t(this,"remote_port");"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 f),"local_port"in e||(this.local_port=0),"remote_port"in e||(this.remote_port=0),Object.assign(this,e)}static createFrom(e={}){const s=je,n=Bt;let a=typeof e=="string"?JSON.parse(e):e;return"labels"in a&&(a.labels=s(a.labels)),"encryption"in a&&(a.encryption=n(a.encryption)),new ue(a)}}class f{constructor(e={}){t(this,"algorithm");t(this,"key");t(this,"enabled");"algorithm"in e||(this.algorithm=""),"key"in e||(this.key=""),"enabled"in e||(this.enabled=!1),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new f(s)}}class Fe{constructor(e={}){t(this,"connection");t(this,"labels");t(this,"params");t(this,"protocol");t(this,"connection_type");t(this,"encryption");t(this,"local_port");t(this,"remote_port");"connection"in e||(this.connection=null),"labels"in e||(this.labels={}),"params"in e||(this.params={}),"protocol"in e||(this.protocol=""),"connection_type"in e||(this.connection_type=""),"encryption"in e||(this.encryption=new f),"local_port"in e||(this.local_port=0),"remote_port"in e||(this.remote_port=0),Object.assign(this,e)}static createFrom(e={}){const s=je,n=je,a=Bt;let r=typeof e=="string"?JSON.parse(e):e;return"labels"in r&&(r.labels=s(r.labels)),"params"in r&&(r.params=n(r.params)),"encryption"in r&&(r.encryption=a(r.encryption)),new Fe(r)}}var ft=(i=>(i.$zero="",i.SessionStateActive="ACTIVE",i.SessionStatePaused="PAUSED",i.SessionStateStopped="STOPPED",i.SessionStateFailed="FAILED",i))(ft||{});const je=c.Map(c.Any,c.Any),Bt=f.createFrom,jn=Object.freeze(Object.defineProperty({__proto__:null,FindPortForwardSessionRequest:Se,PortForwardConnectionType:pt,PortForwardProtocol:dt,PortForwardSession:ue,PortForwardSessionEncryption:f,PortForwardSessionOptions:Fe,SessionState:ft},Symbol.toStringTag,{value:"Module"}));class Oe{constructor(e={}){t(this,"plugin");"plugin"in e||(this.plugin=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new Oe(s)}}class we{constructor(e={}){t(this,"plugin");t(this,"resource");t(this,"area");"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),"area"in e||(this.area=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new we(s)}}class ve{constructor(e={}){t(this,"plugin");t(this,"resource");"plugin"in e||(this.plugin=""),"resource"in e||(this.resource=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new ve(s)}}class Ne{constructor(e={}){t(this,"owner");t(this,"name");t(this,"plugin");t(this,"resource");t(this,"area");t(this,"extension");"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 s=typeof e=="string"?JSON.parse(e):e;return new Ne(s)}}var ht=(i=>(i.$zero="",i.ResourceComponentAreaSidebar="SIDEBAR",i.ResourceComponentAreaTable="TABLE",i))(ht||{});const Jn=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponentsInput:Oe,GetResourceAreaComponentInput:we,GetResourceComponentsInput:ve,ResourceComponent:Ne,ResourceComponentArea:ht},Symbol.toStringTag,{value:"Module"}));class Te{constructor(e={}){t(this,"edge");t(this,"children");"edge"in e||(this.edge=new U),"children"in e||(this.children=[]),Object.assign(this,e)}static createFrom(e={}){const s=Kt,n=Gt;let a=typeof e=="string"?JSON.parse(e):e;return"edge"in a&&(a.edge=s(a.edge)),"children"in a&&(a.children=n(a.children)),new Te(a)}}class mt{constructor(e={}){t(this,"root");t(this,"children");"root"in e||(this.root=new p),"children"in e||(this.children=[]),Object.assign(this,e)}static createFrom(e={}){const s=F,n=Gt;let a=typeof e=="string"?JSON.parse(e):e;return"root"in a&&(a.root=s(a.root)),"children"in a&&(a.children=n(a.children)),new mt(a)}}class U{constructor(e={}){t(this,"source");t(this,"target");t(this,"type");t(this,"label");"source"in e||(this.source=new p),"target"in e||(this.target=new p),"type"in e||(this.type=Ve.$zero),"label"in e||(this.label=""),Object.assign(this,e)}static createFrom(e={}){const s=F,n=F;let a=typeof e=="string"?JSON.parse(e):e;return"source"in a&&(a.source=s(a.source)),"target"in a&&(a.target=n(a.target)),new U(a)}}class p{constructor(e={}){t(this,"pluginId");t(this,"connectionId");t(this,"resourceKey");t(this,"id");t(this,"namespace");"pluginId"in e||(this.pluginId=""),"connectionId"in e||(this.connectionId=""),"resourceKey"in e||(this.resourceKey=""),"id"in e||(this.id=""),Object.assign(this,e)}static createFrom(e={}){let s=typeof e=="string"?JSON.parse(e):e;return new p(s)}}class gt{constructor(e={}){t(this,"root");t(this,"nodes");t(this,"edges");t(this,"truncated");"root"in e||(this.root=new p),"nodes"in e||(this.nodes=[]),"edges"in e||(this.edges=[]),"truncated"in e||(this.truncated=!1),Object.assign(this,e)}static createFrom(e={}){const s=F,n=En,a=Rn;let r=typeof e=="string"?JSON.parse(e):e;return"root"in r&&(r.root=s(r.root)),"nodes"in r&&(r.nodes=n(r.nodes)),"edges"in r&&(r.edges=a(r.edges)),new gt(r)}}class Ae{constructor(e={}){t(this,"node");t(this,"depth");"node"in e||(this.node=new p),"depth"in e||(this.depth=0),Object.assign(this,e)}static createFrom(e={}){const s=F;let n=typeof e=="string"?JSON.parse(e):e;return"node"in n&&(n.node=s(n.node)),new Ae(n)}}const Kt=U.createFrom,Cn=Te.createFrom,Gt=c.Array(Cn),F=p.createFrom,Pn=Ae.createFrom,En=c.Array(Pn),Rn=c.Array(Kt);exports.ActionDescriptor=Re;exports.ActionInput=Ie;exports.ActionResult=xe;exports.ActionScope=Ot;exports.ActionTargetBuilder=pe;exports.AggregateValue=R;exports.AvailablePlugin=L;exports.Capability=bt;exports.Category=K;exports.ColorRange=I;exports.ColumnDefinition=X;exports.Connection=W;exports.ConnectionAutoConnect=Y;exports.ConnectionAutoConnectRetry=St;exports.ConnectionAutoConnectTrigger=ut;exports.ConnectionLifecycle=J;exports.ConnectionStatus=Pe;exports.ConnectionStatusCode=Ft;exports.CreateInput=ze;exports.CreateResult=ke;exports.CreateSessionOptions=me;exports.CurrentValue=x;exports.DataPoint=z;exports.DeleteInput=Me;exports.DeleteResult=De;exports.DependencyNode=Te;exports.DependencyTree=mt;exports.DownloadStats=Z;exports.Duration=_;exports.EdgeDirection=wt;exports.EditorSchema=He;exports.EventSeverity=vt;exports.FilterExpression=$;exports.FilterField=Ue;exports.FilterFieldType=Nt;exports.FilterLogic=Tt;exports.FilterOperator=At;exports.FilterPredicate=ee;exports.FindInput=Be;exports.FindPortForwardSessionRequest=Se;exports.FindResult=Ke;exports.GetInput=Ge;exports.GetPluginComponentsInput=Oe;exports.GetResourceAreaComponentInput=we;exports.GetResourceComponentsInput=ve;exports.GetResult=Le;exports.GraphEdge=U;exports.GraphNode=p;exports.Handler=kt;exports.Handler$1=Dt;exports.Handler$2=ye;exports.HealthCondition=te;exports.HealthStatus=jt;exports.ListInput=qe;exports.ListResult=Ze;exports.LogSession=ge;exports.LogSessionOptions=d;exports.LogSessionStatus=at;exports.LogSource=E;exports.LogStreamCommand=rt;exports.MetricDescriptor=k;exports.MetricResult=M;exports.MetricShape=ot;exports.MetricUnit=lt;exports.OrderField=ie;exports.PaginationParams=b;exports.PluginAuthor=N;exports.PluginComponentArea=Ce;exports.PluginComponents=h;exports.PluginInfo=Ee;exports.PluginMaintainer=T;exports.PluginMeta=m;exports.PluginResourceComponent=A;exports.PluginTheme=g;exports.PluginThemeColors=y;exports.PortForwardConnectionType=pt;exports.PortForwardProtocol=dt;exports.PortForwardSession=ue;exports.PortForwardSessionEncryption=f;exports.PortForwardSessionOptions=Fe;exports.QueryRequest=_e;exports.QueryResponse=be;exports.RelationshipDescriptor=C;exports.RelationshipExtractor=ne;exports.RelationshipType=Ve;exports.ResolvedRelationship=Qe;exports.ResourceCapabilities=We;exports.ResourceComponent=Ne;exports.ResourceComponentArea=ht;exports.ResourceDefinition=Ye;exports.ResourceEvent=Xe;exports.ResourceGroup=$e;exports.ResourceHealth=et;exports.ResourceLink=se;exports.ResourceMeta=ae;exports.ResourceRef=re;exports.Review=V;exports.ScaleHint=ce;exports.ScaleLevel=Jt;exports.Session=de;exports.SessionOptions=fe;exports.SessionState=ft;exports.Setting=O;exports.SettingFileSelection=w;exports.SettingOption=v;exports.SettingType=Je;exports.StateIsolationProvenance=j;exports.Subgraph=gt;exports.SubgraphNode=Ae;exports.TimeSeries=D;exports.UpdateInput=tt;exports.UpdateResult=it;exports.ValidationResult=G;exports.VersionInfo=Q;exports.WatchConnectionSummary=nt;exports.WatchScope=oe;exports.WatchState=Ct;exports.WatchStateEvent=st;exports.models=gi;exports.models$1=nn;exports.models$2=ln;exports.models$3=An;exports.models$4=jn;exports.models$5=ni;exports.models$6=bi;exports.models$7=Jn;exports.models$8=Si;
|
package/dist/models-BpVWHqlF.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var f=Object.defineProperty;var u=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var i=(e,t,n)=>u(e,typeof t!="symbol"?t+"":t,n);const S=require("./index-D_aIcqH0.cjs"),v=require("./models-BQsuB2Lj.cjs");class r{constructor(t={}){i(this,"file");i(this,"line");i(this,"column");i(this,"message");"file"in t||(this.file=""),"line"in t||(this.line=0),"column"in t||(this.column=0),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new r(n)}}var g=(e=>(e.$zero="",e.DevProcessStatusIdle="idle",e.DevProcessStatusStarting="starting",e.DevProcessStatusBuilding="building",e.DevProcessStatusRunning="running",e.DevProcessStatusReady="ready",e.DevProcessStatusError="error",e.DevProcessStatusStopped="stopped",e.DevProcessStatusNotApplicable="n/a",e))(g||{});class a{constructor(t={}){i(this,"pluginID");i(this,"errors");"pluginID"in t||(this.pluginID=""),"errors"in t||(this.errors=[]),Object.assign(this,t)}static createFrom(t={}){const n=y;let s=typeof t=="string"?JSON.parse(t):t;return"errors"in s&&(s.errors=n(s.errors)),new a(s)}}var d=(e=>(e.$zero="",e.DevServerModeIdle="idle",e.DevServerModeManaged="managed",e))(d||{});class l{constructor(t={}){i(this,"pluginID");i(this,"mode");i(this,"devPath");i(this,"vitePort");i(this,"viteURL");i(this,"viteStatus");i(this,"goStatus");i(this,"lastBuildDuration");i(this,"lastBuildTime");i(this,"lastError");i(this,"grpcConnected");i(this,"generation");i(this,"hmrURL");i(this,"buildStatus");i(this,"rpcStatus");i(this,"controllerStatus");i(this,"ready");"pluginID"in t||(this.pluginID=""),"mode"in t||(this.mode=""),"devPath"in t||(this.devPath=""),"vitePort"in t||(this.vitePort=0),"viteURL"in t||(this.viteURL=""),"viteStatus"in t||(this.viteStatus=""),"goStatus"in t||(this.goStatus=""),"lastBuildDuration"in t||(this.lastBuildDuration=v.Duration.$zero),"lastBuildTime"in t||(this.lastBuildTime=""),"lastError"in t||(this.lastError=""),"grpcConnected"in t||(this.grpcConnected=!1),"generation"in t||(this.generation=""),"hmrURL"in t||(this.hmrURL=""),"buildStatus"in t||(this.buildStatus=""),"rpcStatus"in t||(this.rpcStatus=""),"controllerStatus"in t||(this.controllerStatus=""),"ready"in t||(this.ready=!1),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new l(n)}}var p=(e=>(e.$zero="",e.StagePending="pending",e.StageBuilding="building",e.StageReady="ready",e.StageError="error",e.StageStopped="stopped",e.StageNotApplicable="n/a",e))(p||{});let m=class h{constructor(t={}){i(this,"timestamp");i(this,"source");i(this,"level");i(this,"message");i(this,"pluginID");"timestamp"in t||(this.timestamp=""),"source"in t||(this.source=""),"level"in t||(this.level=""),"message"in t||(this.message=""),"pluginID"in t||(this.pluginID=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new h(n)}};const c=r.createFrom,y=S.Array(c),D=Object.freeze(Object.defineProperty({__proto__:null,BuildError:r,DevProcessStatus:g,DevServerErrorPayload:a,DevServerMode:d,DevServerState:l,LifecycleStage:p,LogEntry:m},Symbol.toStringTag,{value:"Module"}));class o{constructor(t={}){i(this,"timestamp");i(this,"pluginID");i(this,"source");i(this,"level");i(this,"message");"timestamp"in t||(this.timestamp=""),"pluginID"in t||(this.pluginID=""),"source"in t||(this.source=""),"level"in t||(this.level=""),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){let n=typeof t=="string"?JSON.parse(t):t;return new o(n)}}const b=Object.freeze(Object.defineProperty({__proto__:null,LogEntry:o},Symbol.toStringTag,{value:"Module"}));exports.BuildError=r;exports.DevProcessStatus=g;exports.DevServerErrorPayload=a;exports.DevServerMode=d;exports.DevServerState=l;exports.LifecycleStage=p;exports.LogEntry=m;exports.LogEntry$1=o;exports.models=D;exports.models$1=b;
|
package/dist/models-C5sf8GNY.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
var f = Object.defineProperty;
|
|
2
|
-
var h = (e, t, n) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var i = (e, t, n) => h(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { A as u } from "./index-D2mKAO8s.js";
|
|
5
|
-
import { b8 as S } from "./models-4EtitZnM.js";
|
|
6
|
-
class a {
|
|
7
|
-
/** Creates a new BuildError instance. */
|
|
8
|
-
constructor(t = {}) {
|
|
9
|
-
i(this, "file");
|
|
10
|
-
i(this, "line");
|
|
11
|
-
i(this, "column");
|
|
12
|
-
i(this, "message");
|
|
13
|
-
"file" in t || (this.file = ""), "line" in t || (this.line = 0), "column" in t || (this.column = 0), "message" in t || (this.message = ""), Object.assign(this, t);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new BuildError instance from a string or object.
|
|
17
|
-
*/
|
|
18
|
-
static createFrom(t = {}) {
|
|
19
|
-
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
20
|
-
return new a(n);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
var p = /* @__PURE__ */ ((e) => (e.$zero = "", e.DevProcessStatusIdle = "idle", e.DevProcessStatusStarting = "starting", e.DevProcessStatusBuilding = "building", e.DevProcessStatusRunning = "running", e.DevProcessStatusReady = "ready", e.DevProcessStatusError = "error", e.DevProcessStatusStopped = "stopped", e.DevProcessStatusNotApplicable = "n/a", e))(p || {});
|
|
24
|
-
class r {
|
|
25
|
-
/** Creates a new DevServerErrorPayload instance. */
|
|
26
|
-
constructor(t = {}) {
|
|
27
|
-
i(this, "pluginID");
|
|
28
|
-
i(this, "errors");
|
|
29
|
-
"pluginID" in t || (this.pluginID = ""), "errors" in t || (this.errors = []), Object.assign(this, t);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Creates a new DevServerErrorPayload instance from a string or object.
|
|
33
|
-
*/
|
|
34
|
-
static createFrom(t = {}) {
|
|
35
|
-
const n = c;
|
|
36
|
-
let s = typeof t == "string" ? JSON.parse(t) : t;
|
|
37
|
-
return "errors" in s && (s.errors = n(s.errors)), new r(s);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
var g = /* @__PURE__ */ ((e) => (e.$zero = "", e.DevServerModeIdle = "idle", e.DevServerModeManaged = "managed", e))(g || {});
|
|
41
|
-
class l {
|
|
42
|
-
/** Creates a new DevServerState instance. */
|
|
43
|
-
constructor(t = {}) {
|
|
44
|
-
i(this, "pluginID");
|
|
45
|
-
i(this, "mode");
|
|
46
|
-
i(this, "devPath");
|
|
47
|
-
i(this, "vitePort");
|
|
48
|
-
i(this, "viteURL");
|
|
49
|
-
i(this, "viteStatus");
|
|
50
|
-
i(this, "goStatus");
|
|
51
|
-
i(this, "lastBuildDuration");
|
|
52
|
-
i(this, "lastBuildTime");
|
|
53
|
-
i(this, "lastError");
|
|
54
|
-
i(this, "grpcConnected");
|
|
55
|
-
i(this, "generation");
|
|
56
|
-
i(this, "hmrURL");
|
|
57
|
-
i(this, "buildStatus");
|
|
58
|
-
i(this, "rpcStatus");
|
|
59
|
-
i(this, "controllerStatus");
|
|
60
|
-
i(this, "ready");
|
|
61
|
-
"pluginID" in t || (this.pluginID = ""), "mode" in t || (this.mode = ""), "devPath" in t || (this.devPath = ""), "vitePort" in t || (this.vitePort = 0), "viteURL" in t || (this.viteURL = ""), "viteStatus" in t || (this.viteStatus = ""), "goStatus" in t || (this.goStatus = ""), "lastBuildDuration" in t || (this.lastBuildDuration = S.$zero), "lastBuildTime" in t || (this.lastBuildTime = ""), "lastError" in t || (this.lastError = ""), "grpcConnected" in t || (this.grpcConnected = !1), "generation" in t || (this.generation = ""), "hmrURL" in t || (this.hmrURL = ""), "buildStatus" in t || (this.buildStatus = ""), "rpcStatus" in t || (this.rpcStatus = ""), "controllerStatus" in t || (this.controllerStatus = ""), "ready" in t || (this.ready = !1), Object.assign(this, t);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Creates a new DevServerState instance from a string or object.
|
|
65
|
-
*/
|
|
66
|
-
static createFrom(t = {}) {
|
|
67
|
-
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
68
|
-
return new l(n);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
var d = /* @__PURE__ */ ((e) => (e.$zero = "", e.StagePending = "pending", e.StageBuilding = "building", e.StageReady = "ready", e.StageError = "error", e.StageStopped = "stopped", e.StageNotApplicable = "n/a", e))(d || {});
|
|
72
|
-
let v = class m {
|
|
73
|
-
/** Creates a new LogEntry instance. */
|
|
74
|
-
constructor(t = {}) {
|
|
75
|
-
i(this, "timestamp");
|
|
76
|
-
/**
|
|
77
|
-
* "vite" | "go-build" | "go-watch" | "manager"
|
|
78
|
-
*/
|
|
79
|
-
i(this, "source");
|
|
80
|
-
/**
|
|
81
|
-
* "info" | "warn" | "error" | "debug"
|
|
82
|
-
*/
|
|
83
|
-
i(this, "level");
|
|
84
|
-
i(this, "message");
|
|
85
|
-
i(this, "pluginID");
|
|
86
|
-
"timestamp" in t || (this.timestamp = ""), "source" in t || (this.source = ""), "level" in t || (this.level = ""), "message" in t || (this.message = ""), "pluginID" in t || (this.pluginID = ""), Object.assign(this, t);
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Creates a new LogEntry instance from a string or object.
|
|
90
|
-
*/
|
|
91
|
-
static createFrom(t = {}) {
|
|
92
|
-
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
93
|
-
return new m(n);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
const b = a.createFrom, c = u(b), O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
97
|
-
__proto__: null,
|
|
98
|
-
BuildError: a,
|
|
99
|
-
DevProcessStatus: p,
|
|
100
|
-
DevServerErrorPayload: r,
|
|
101
|
-
DevServerMode: g,
|
|
102
|
-
DevServerState: l,
|
|
103
|
-
LifecycleStage: d,
|
|
104
|
-
LogEntry: v
|
|
105
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
106
|
-
class o {
|
|
107
|
-
/** Creates a new LogEntry instance. */
|
|
108
|
-
constructor(t = {}) {
|
|
109
|
-
i(this, "timestamp");
|
|
110
|
-
i(this, "pluginID");
|
|
111
|
-
/**
|
|
112
|
-
* "plugin" (from hclog) — extensible
|
|
113
|
-
*/
|
|
114
|
-
i(this, "source");
|
|
115
|
-
/**
|
|
116
|
-
* "trace" | "debug" | "info" | "warn" | "error"
|
|
117
|
-
*/
|
|
118
|
-
i(this, "level");
|
|
119
|
-
i(this, "message");
|
|
120
|
-
"timestamp" in t || (this.timestamp = ""), "pluginID" in t || (this.pluginID = ""), "source" in t || (this.source = ""), "level" in t || (this.level = ""), "message" in t || (this.message = ""), Object.assign(this, t);
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Creates a new LogEntry instance from a string or object.
|
|
124
|
-
*/
|
|
125
|
-
static createFrom(t = {}) {
|
|
126
|
-
let n = typeof t == "string" ? JSON.parse(t) : t;
|
|
127
|
-
return new o(n);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
const j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
131
|
-
__proto__: null,
|
|
132
|
-
LogEntry: o
|
|
133
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
134
|
-
export {
|
|
135
|
-
a as B,
|
|
136
|
-
l as D,
|
|
137
|
-
v as L,
|
|
138
|
-
o as a,
|
|
139
|
-
p as b,
|
|
140
|
-
d as c,
|
|
141
|
-
r as d,
|
|
142
|
-
g as e,
|
|
143
|
-
j as f,
|
|
144
|
-
O as m
|
|
145
|
-
};
|