@malloy-publisher/sdk 0.0.244 → 0.0.246

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.
@@ -0,0 +1 @@
1
+ "use strict";const Q=require("react/jsx-runtime"),j=require("@tanstack/react-query"),h=require("axios"),A=require("react"),O=require("@mui/material"),u="http://localhost/api/v0".replace(/\/+$/,"");class x{constructor(n,e=u,r=h){this.basePath=e,this.axios=r,n&&(this.configuration=n,this.basePath=n.basePath??e)}configuration}class Ee extends Error{constructor(n,e){super(e),this.field=n,this.name="RequiredError"}}const g={},P="https://example.com",m=function(l,n,e){if(e==null)throw new Ee(n,`Required parameter ${n} was null or undefined when calling ${l}.`)};function q(l,n,e=""){n!=null&&(typeof n=="object"?Array.isArray(n)?n.forEach(r=>q(l,r,e)):Object.keys(n).forEach(r=>q(l,n[r],`${e}${e!==""?".":""}${r}`)):l.has(e)?l.append(e,n):l.set(e,n))}const b=function(l,...n){const e=new URLSearchParams(l.search);q(e,n),l.search=e.toString()},C=function(l,n,e){const r=typeof l!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(n.headers["Content-Type"]):r)?JSON.stringify(l!==void 0?l:{}):l||""},v=function(l){return l.pathname+l.search+l.hash},V=function(l,n,e,r){return(a=n,t=e)=>{const o={...l.options,url:(a.defaults.baseURL?"":r?.basePath??t)+l.url};return a.request(o)}},Te={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},Ne={ServicePrincipal:"service_principal",SasToken:"sas_token"},Ue={Error:"error",Warn:"warn",Debug:"debug"},Me={Success:"success",Error:"error"},we={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},fe={Ssh:"ssh"},Fe={Ok:"ok",Failed:"failed"},Be={Viewport:"viewport"},Qe={Embedded:"embedded",Materialized:"materialized"},ze={Equal:"equal",In:"in",Like:"like",GreaterThan:"greater_than",LessThan:"less_than"},$e={Live:"live",StaleOk:"stale_ok",Fail:"fail"},qe={Select:"select",Multiselect:"multiselect"},Le={Merge:"merge",RangeReplace:"range_replace"},De={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},je={Persist:"persist",Preaggregate:"preaggregate"},He={Live:"live",StaleOk:"stale_ok",Fail:"fail"},_e={Delta:"delta",Full:"full",None:"none"},We={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},Ge={Markdown:"markdown",Code:"code"},Ye={Markdown:"markdown",Code:"code"},Ke={Version:"version",Package:"package"},Je={Declared:"declared",All:"all"},Xe={Unbound:"unbound",Bound:"bound",LiveFallback:"live_fallback"},Ze={Error:"error",Warn:"warn"},ea={Persist:"persist",Preaggregate:"preaggregate"},aa={Disable:"disable",NoVerify:"no-verify",VerifyCa:"verify-ca",VerifyFull:"verify-full"},ta={Interactive:"interactive",Materialize:"materialize",Index:"index",Ops:"ops"},na={Query:"query",ServerDefault:"server_default"},ra={Storage:"storage",LiveFallback:"live_fallback"},oa={Snapshot:"SNAPSHOT",Copy:"COPY"},sa={Publish:"publish",OnDemand:"on_demand",Scheduler:"scheduler"},la={Initializing:"initializing",Serving:"serving",Draining:"draining",Throttled:"throttled"},ca={Light:"light",Dark:"dark",Auto:"auto"},J=function(l){return{createConnection:async(n,e,r,a={})=>{m("createConnection","environmentName",n),m("createConnection","connectionName",e),m("createConnection","connection",r);const t="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}},deleteConnection:async(n,e,r={})=>{m("deleteConnection","environmentName",n),m("deleteConnection","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"DELETE",...o,...r},c={};b(t,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:v(t),options:s}},getConnection:async(n,e,r={})=>{m("getConnection","environmentName",n),m("getConnection","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={};b(t,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:v(t),options:s}},getTable:async(n,e,r,a,t={})=>{m("getTable","environmentName",n),m("getTable","connectionName",e),m("getTable","schemaName",r),m("getTable","tablePath",a);const o="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(r))).replace("{tablePath}",encodeURIComponent(String(a))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},p={};b(s,{});let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},{url:v(s),options:i}},getTableInPackage:async(n,e,r,a,t,o={})=>{m("getTableInPackage","environmentName",n),m("getTableInPackage","packageName",e),m("getTableInPackage","connectionName",r),m("getTableInPackage","schemaName",a),m("getTableInPackage","tablePath",t);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(a))).replace("{tablePath}",encodeURIComponent(String(t))),c=new URL(s,P);let i;l&&(i=l.baseOptions);const p={method:"GET",...i,...o},d={};b(c,{});let k=i&&i.headers?i.headers:{};return p.headers={...d,...k,...o.headers},{url:v(c),options:p}},listConnections:async(n,e={})=>{m("listConnections","environmentName",n);const r="/environments/{environmentName}/connections".replace("{environmentName}",encodeURIComponent(String(n))),a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"GET",...t,...e},s={};b(a,{});let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},listSchemas:async(n,e,r={})=>{m("listSchemas","environmentName",n),m("listSchemas","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={};b(t,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:v(t),options:s}},listSchemasInPackage:async(n,e,r,a={})=>{m("listSchemasInPackage","environmentName",n),m("listSchemasInPackage","packageName",e),m("listSchemasInPackage","connectionName",r);const t="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={};b(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:v(o),options:c}},listTables:async(n,e,r,a,t={})=>{m("listTables","environmentName",n),m("listTables","connectionName",e),m("listTables","schemaName",r);const o="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},p={},d={};a&&(d.tableNames=a),b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},{url:v(s),options:i}},listTablesInPackage:async(n,e,r,a,t,o={})=>{m("listTablesInPackage","environmentName",n),m("listTablesInPackage","packageName",e),m("listTablesInPackage","connectionName",r),m("listTablesInPackage","schemaName",a);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(a))),c=new URL(s,P);let i;l&&(i=l.baseOptions);const p={method:"GET",...i,...o},d={},y={};t&&(y.tableNames=t),b(c,y);let k=i&&i.headers?i.headers:{};return p.headers={...d,...k,...o.headers},{url:v(c),options:p}},postQuerydata:async(n,e,r,a={})=>{m("postQuerydata","environmentName",n),m("postQuerydata","connectionName",e),m("postQuerydata","postQuerydataRequest",r);const t="/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}},postQuerydataInPackage:async(n,e,r,a,t={})=>{m("postQuerydataInPackage","environmentName",n),m("postQuerydataInPackage","packageName",e),m("postQuerydataInPackage","connectionName",r),m("postQuerydataInPackage","postQuerydataRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},p={},d={};p["Content-Type"]="application/json",b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},i.data=C(a,i,l),{url:v(s),options:i}},postSqlsource:async(n,e,r,a={})=>{m("postSqlsource","environmentName",n),m("postSqlsource","connectionName",e),m("postSqlsource","postSqlsourceRequest",r);const t="/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}},postSqlsourceInPackage:async(n,e,r,a,t={})=>{m("postSqlsourceInPackage","environmentName",n),m("postSqlsourceInPackage","packageName",e),m("postSqlsourceInPackage","connectionName",r),m("postSqlsourceInPackage","postSqlsourceRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},p={},d={};p["Content-Type"]="application/json",b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},i.data=C(a,i,l),{url:v(s),options:i}},postTemporarytable:async(n,e,r,a={})=>{m("postTemporarytable","environmentName",n),m("postTemporarytable","connectionName",e),m("postTemporarytable","postSqlsourceRequest",r);const t="/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}},postTemporarytableInPackage:async(n,e,r,a,t={})=>{m("postTemporarytableInPackage","environmentName",n),m("postTemporarytableInPackage","packageName",e),m("postTemporarytableInPackage","connectionName",r),m("postTemporarytableInPackage","postSqlsourceRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},p={},d={};p["Content-Type"]="application/json",b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},i.data=C(a,i,l),{url:v(s),options:i}},updateConnection:async(n,e,r,a={})=>{m("updateConnection","environmentName",n),m("updateConnection","connectionName",e),m("updateConnection","updateConnectionRequest",r);const t="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"PATCH",...s,...a},i={},p={};i["Content-Type"]="application/json",b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}}}},S=function(l){const n=J(l);return{async createConnection(e,r,a,t){const o=await n.createConnection(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.createConnection"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)},async deleteConnection(e,r,a){const t=await n.deleteConnection(e,r,a),o=l?.serverIndex??0,s=g["ConnectionsApi.deleteConnection"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async getConnection(e,r,a){const t=await n.getConnection(e,r,a),o=l?.serverIndex??0,s=g["ConnectionsApi.getConnection"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async getTable(e,r,a,t,o){const s=await n.getTable(e,r,a,t,o),c=l?.serverIndex??0,i=g["ConnectionsApi.getTable"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async getTableInPackage(e,r,a,t,o,s){const c=await n.getTableInPackage(e,r,a,t,o,s),i=l?.serverIndex??0,p=g["ConnectionsApi.getTableInPackage"]?.[i]?.url;return(d,y)=>V(c,h,u,l)(d,p||y)},async listConnections(e,r){const a=await n.listConnections(e,r),t=l?.serverIndex??0,o=g["ConnectionsApi.listConnections"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async listSchemas(e,r,a){const t=await n.listSchemas(e,r,a),o=l?.serverIndex??0,s=g["ConnectionsApi.listSchemas"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async listSchemasInPackage(e,r,a,t){const o=await n.listSchemasInPackage(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)},async listTables(e,r,a,t,o){const s=await n.listTables(e,r,a,t,o),c=l?.serverIndex??0,i=g["ConnectionsApi.listTables"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async listTablesInPackage(e,r,a,t,o,s){const c=await n.listTablesInPackage(e,r,a,t,o,s),i=l?.serverIndex??0,p=g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;return(d,y)=>V(c,h,u,l)(d,p||y)},async postQuerydata(e,r,a,t){const o=await n.postQuerydata(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.postQuerydata"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)},async postQuerydataInPackage(e,r,a,t,o){const s=await n.postQuerydataInPackage(e,r,a,t,o),c=l?.serverIndex??0,i=g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async postSqlsource(e,r,a,t){const o=await n.postSqlsource(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.postSqlsource"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)},async postSqlsourceInPackage(e,r,a,t,o){const s=await n.postSqlsourceInPackage(e,r,a,t,o),c=l?.serverIndex??0,i=g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async postTemporarytable(e,r,a,t){const o=await n.postTemporarytable(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.postTemporarytable"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)},async postTemporarytableInPackage(e,r,a,t,o){const s=await n.postTemporarytableInPackage(e,r,a,t,o),c=l?.serverIndex??0,i=g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async updateConnection(e,r,a,t){const o=await n.updateConnection(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.updateConnection"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)}}},ia=function(l,n,e){const r=S(l);return{createConnection(a,t,o,s){return r.createConnection(a,t,o,s).then(c=>c(e,n))},deleteConnection(a,t,o){return r.deleteConnection(a,t,o).then(s=>s(e,n))},getConnection(a,t,o){return r.getConnection(a,t,o).then(s=>s(e,n))},getTable(a,t,o,s,c){return r.getTable(a,t,o,s,c).then(i=>i(e,n))},getTableInPackage(a,t,o,s,c,i){return r.getTableInPackage(a,t,o,s,c,i).then(p=>p(e,n))},listConnections(a,t){return r.listConnections(a,t).then(o=>o(e,n))},listSchemas(a,t,o){return r.listSchemas(a,t,o).then(s=>s(e,n))},listSchemasInPackage(a,t,o,s){return r.listSchemasInPackage(a,t,o,s).then(c=>c(e,n))},listTables(a,t,o,s,c){return r.listTables(a,t,o,s,c).then(i=>i(e,n))},listTablesInPackage(a,t,o,s,c,i){return r.listTablesInPackage(a,t,o,s,c,i).then(p=>p(e,n))},postQuerydata(a,t,o,s){return r.postQuerydata(a,t,o,s).then(c=>c(e,n))},postQuerydataInPackage(a,t,o,s,c){return r.postQuerydataInPackage(a,t,o,s,c).then(i=>i(e,n))},postSqlsource(a,t,o,s){return r.postSqlsource(a,t,o,s).then(c=>c(e,n))},postSqlsourceInPackage(a,t,o,s,c){return r.postSqlsourceInPackage(a,t,o,s,c).then(i=>i(e,n))},postTemporarytable(a,t,o,s){return r.postTemporarytable(a,t,o,s).then(c=>c(e,n))},postTemporarytableInPackage(a,t,o,s,c){return r.postTemporarytableInPackage(a,t,o,s,c).then(i=>i(e,n))},updateConnection(a,t,o,s){return r.updateConnection(a,t,o,s).then(c=>c(e,n))}}};class X extends x{createConnection(n,e,r,a){return S(this.configuration).createConnection(n,e,r,a).then(t=>t(this.axios,this.basePath))}deleteConnection(n,e,r){return S(this.configuration).deleteConnection(n,e,r).then(a=>a(this.axios,this.basePath))}getConnection(n,e,r){return S(this.configuration).getConnection(n,e,r).then(a=>a(this.axios,this.basePath))}getTable(n,e,r,a,t){return S(this.configuration).getTable(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}getTableInPackage(n,e,r,a,t,o){return S(this.configuration).getTableInPackage(n,e,r,a,t,o).then(s=>s(this.axios,this.basePath))}listConnections(n,e){return S(this.configuration).listConnections(n,e).then(r=>r(this.axios,this.basePath))}listSchemas(n,e,r){return S(this.configuration).listSchemas(n,e,r).then(a=>a(this.axios,this.basePath))}listSchemasInPackage(n,e,r,a){return S(this.configuration).listSchemasInPackage(n,e,r,a).then(t=>t(this.axios,this.basePath))}listTables(n,e,r,a,t){return S(this.configuration).listTables(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}listTablesInPackage(n,e,r,a,t,o){return S(this.configuration).listTablesInPackage(n,e,r,a,t,o).then(s=>s(this.axios,this.basePath))}postQuerydata(n,e,r,a){return S(this.configuration).postQuerydata(n,e,r,a).then(t=>t(this.axios,this.basePath))}postQuerydataInPackage(n,e,r,a,t){return S(this.configuration).postQuerydataInPackage(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}postSqlsource(n,e,r,a){return S(this.configuration).postSqlsource(n,e,r,a).then(t=>t(this.axios,this.basePath))}postSqlsourceInPackage(n,e,r,a,t){return S(this.configuration).postSqlsourceInPackage(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}postTemporarytable(n,e,r,a){return S(this.configuration).postTemporarytable(n,e,r,a).then(t=>t(this.axios,this.basePath))}postTemporarytableInPackage(n,e,r,a,t){return S(this.configuration).postTemporarytableInPackage(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}updateConnection(n,e,r,a){return S(this.configuration).updateConnection(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const Z=function(l){return{testConnectionConfiguration:async(n,e={})=>{m("testConnectionConfiguration","connection",n);const r="/connections/test",a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"POST",...t,...e},s={},c={};s["Content-Type"]="application/json",b(a,c);let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},o.data=C(n,o,l),{url:v(a),options:o}}}},H=function(l){const n=Z(l);return{async testConnectionConfiguration(e,r){const a=await n.testConnectionConfiguration(e,r),t=l?.serverIndex??0,o=g["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)}}},pa=function(l,n,e){const r=H(l);return{testConnectionConfiguration(a,t){return r.testConnectionConfiguration(a,t).then(o=>o(e,n))}}};class da extends x{testConnectionConfiguration(n,e){return H(this.configuration).testConnectionConfiguration(n,e).then(r=>r(this.axios,this.basePath))}}const ee=function(l){return{listDataApps:async(n,e,r={})=>{m("listDataApps","environmentName",n),m("listDataApps","packageName",e);const a="/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={};b(t,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:v(t),options:s}}}},_=function(l){const n=ee(l);return{async listDataApps(e,r,a){const t=await n.listDataApps(e,r,a),o=l?.serverIndex??0,s=g["DataAppsApi.listDataApps"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)}}},ma=function(l,n,e){const r=_(l);return{listDataApps(a,t,o){return r.listDataApps(a,t,o).then(s=>s(e,n))}}};class ae extends x{listDataApps(n,e,r){return _(this.configuration).listDataApps(n,e,r).then(a=>a(this.axios,this.basePath))}}const te=function(l){return{listDatabases:async(n,e,r,a={})=>{m("listDatabases","environmentName",n),m("listDatabases","packageName",e);const t="/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};r!==void 0&&(p.versionId=r),b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:v(o),options:c}}}},W=function(l){const n=te(l);return{async listDatabases(e,r,a,t){const o=await n.listDatabases(e,r,a,t),s=l?.serverIndex??0,c=g["DatabasesApi.listDatabases"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)}}},ha=function(l,n,e){const r=W(l);return{listDatabases(a,t,o,s){return r.listDatabases(a,t,o,s).then(c=>c(e,n))}}};class ne extends x{listDatabases(n,e,r,a){return W(this.configuration).listDatabases(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const re=function(l){return{createEnvironment:async(n,e={})=>{m("createEnvironment","environment",n);const r="/environments",a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"POST",...t,...e},s={},c={};s["Content-Type"]="application/json",b(a,c);let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},o.data=C(n,o,l),{url:v(a),options:o}},deleteEnvironment:async(n,e={})=>{m("deleteEnvironment","environmentName",n);const r="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(n))),a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"DELETE",...t,...e},s={};b(a,{});let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},getEnvironment:async(n,e,r={})=>{m("getEnvironment","environmentName",n);const a="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(n))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={},i={};e!==void 0&&(i.reload=e),b(t,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:v(t),options:s}},listEnvironments:async(n={})=>{const e="/environments",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"GET",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},updateEnvironment:async(n,e,r={})=>{m("updateEnvironment","environmentName",n),m("updateEnvironment","environment",e);const a="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(n))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"PATCH",...o,...r},c={},i={};c["Content-Type"]="application/json",b(t,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},s.data=C(e,s,l),{url:v(t),options:s}}}},E=function(l){const n=re(l);return{async createEnvironment(e,r){const a=await n.createEnvironment(e,r),t=l?.serverIndex??0,o=g["EnvironmentsApi.createEnvironment"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async deleteEnvironment(e,r){const a=await n.deleteEnvironment(e,r),t=l?.serverIndex??0,o=g["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async getEnvironment(e,r,a){const t=await n.getEnvironment(e,r,a),o=l?.serverIndex??0,s=g["EnvironmentsApi.getEnvironment"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async listEnvironments(e){const r=await n.listEnvironments(e),a=l?.serverIndex??0,t=g["EnvironmentsApi.listEnvironments"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async updateEnvironment(e,r,a){const t=await n.updateEnvironment(e,r,a),o=l?.serverIndex??0,s=g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)}}},ua=function(l,n,e){const r=E(l);return{createEnvironment(a,t){return r.createEnvironment(a,t).then(o=>o(e,n))},deleteEnvironment(a,t){return r.deleteEnvironment(a,t).then(o=>o(e,n))},getEnvironment(a,t,o){return r.getEnvironment(a,t,o).then(s=>s(e,n))},listEnvironments(a){return r.listEnvironments(a).then(t=>t(e,n))},updateEnvironment(a,t,o){return r.updateEnvironment(a,t,o).then(s=>s(e,n))}}};class oe extends x{createEnvironment(n,e){return E(this.configuration).createEnvironment(n,e).then(r=>r(this.axios,this.basePath))}deleteEnvironment(n,e){return E(this.configuration).deleteEnvironment(n,e).then(r=>r(this.axios,this.basePath))}getEnvironment(n,e,r){return E(this.configuration).getEnvironment(n,e,r).then(a=>a(this.axios,this.basePath))}listEnvironments(n){return E(this.configuration).listEnvironments(n).then(e=>e(this.axios,this.basePath))}updateEnvironment(n,e,r){return E(this.configuration).updateEnvironment(n,e,r).then(a=>a(this.axios,this.basePath))}}const se=function(l){return{createMaterialization:async(n,e,r,a={})=>{m("createMaterialization","environmentName",n),m("createMaterialization","packageName",e);const t="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}},deleteMaterialization:async(n,e,r,a,t={})=>{m("deleteMaterialization","environmentName",n),m("deleteMaterialization","packageName",e),m("deleteMaterialization","materializationId",r);const o="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"DELETE",...c,...t},p={},d={};a!==void 0&&(d.dropTables=a),b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},{url:v(s),options:i}},getMaterialization:async(n,e,r,a={})=>{m("getMaterialization","environmentName",n),m("getMaterialization","packageName",e),m("getMaterialization","materializationId",r);const t="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(r))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={};b(o,{});let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:v(o),options:c}},listEnvironmentMaterializations:async(n,e,r,a={})=>{m("listEnvironmentMaterializations","environmentName",n);const t="/environments/{environmentName}/packages/materializations".replace("{environmentName}",encodeURIComponent(String(n))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};e!==void 0&&(p.limit=e),r!==void 0&&(p.offset=r),b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:v(o),options:c}},listMaterializations:async(n,e,r,a,t={})=>{m("listMaterializations","environmentName",n),m("listMaterializations","packageName",e);const o="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},p={},d={};r!==void 0&&(d.limit=r),a!==void 0&&(d.offset=a),b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},{url:v(s),options:i}},materializationAction:async(n,e,r,a,t={})=>{m("materializationAction","environmentName",n),m("materializationAction","packageName",e),m("materializationAction","materializationId",r),m("materializationAction","action",a);const o="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},p={},d={};a!==void 0&&(d.action=a),b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},{url:v(s),options:i}}}},R=function(l){const n=se(l);return{async createMaterialization(e,r,a,t){const o=await n.createMaterialization(e,r,a,t),s=l?.serverIndex??0,c=g["MaterializationsApi.createMaterialization"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)},async deleteMaterialization(e,r,a,t,o){const s=await n.deleteMaterialization(e,r,a,t,o),c=l?.serverIndex??0,i=g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async getMaterialization(e,r,a,t){const o=await n.getMaterialization(e,r,a,t),s=l?.serverIndex??0,c=g["MaterializationsApi.getMaterialization"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)},async listEnvironmentMaterializations(e,r,a,t){const o=await n.listEnvironmentMaterializations(e,r,a,t),s=l?.serverIndex??0,c=g["MaterializationsApi.listEnvironmentMaterializations"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)},async listMaterializations(e,r,a,t,o){const s=await n.listMaterializations(e,r,a,t,o),c=l?.serverIndex??0,i=g["MaterializationsApi.listMaterializations"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async materializationAction(e,r,a,t,o){const s=await n.materializationAction(e,r,a,t,o),c=l?.serverIndex??0,i=g["MaterializationsApi.materializationAction"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)}}},ga=function(l,n,e){const r=R(l);return{createMaterialization(a,t,o,s){return r.createMaterialization(a,t,o,s).then(c=>c(e,n))},deleteMaterialization(a,t,o,s,c){return r.deleteMaterialization(a,t,o,s,c).then(i=>i(e,n))},getMaterialization(a,t,o,s){return r.getMaterialization(a,t,o,s).then(c=>c(e,n))},listEnvironmentMaterializations(a,t,o,s){return r.listEnvironmentMaterializations(a,t,o,s).then(c=>c(e,n))},listMaterializations(a,t,o,s,c){return r.listMaterializations(a,t,o,s,c).then(i=>i(e,n))},materializationAction(a,t,o,s,c){return r.materializationAction(a,t,o,s,c).then(i=>i(e,n))}}};class le extends x{createMaterialization(n,e,r,a){return R(this.configuration).createMaterialization(n,e,r,a).then(t=>t(this.axios,this.basePath))}deleteMaterialization(n,e,r,a,t){return R(this.configuration).deleteMaterialization(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}getMaterialization(n,e,r,a){return R(this.configuration).getMaterialization(n,e,r,a).then(t=>t(this.axios,this.basePath))}listEnvironmentMaterializations(n,e,r,a){return R(this.configuration).listEnvironmentMaterializations(n,e,r,a).then(t=>t(this.axios,this.basePath))}listMaterializations(n,e,r,a,t){return R(this.configuration).listMaterializations(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}materializationAction(n,e,r,a,t){return R(this.configuration).materializationAction(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}}const Pa={Stop:"stop"},ce=function(l){return{compileModelSource:async(n,e,r,a,t={})=>{m("compileModelSource","environmentName",n),m("compileModelSource","packageName",e),m("compileModelSource","path",r),m("compileModelSource","compileRequest",a);const o="/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},p={},d={};p["Content-Type"]="application/json",b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},i.data=C(a,i,l),{url:v(s),options:i}},executeQueryModel:async(n,e,r,a,t={})=>{m("executeQueryModel","environmentName",n),m("executeQueryModel","packageName",e),m("executeQueryModel","path",r),m("executeQueryModel","queryRequest",a);const o="/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},p={},d={};p["Content-Type"]="application/json",b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},i.data=C(a,i,l),{url:v(s),options:i}},getModel:async(n,e,r,a,t={})=>{m("getModel","environmentName",n),m("getModel","packageName",e),m("getModel","path",r);const o="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},p={},d={};a!==void 0&&(d.versionId=a),b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},{url:v(s),options:i}},listModels:async(n,e,r,a={})=>{m("listModels","environmentName",n),m("listModels","packageName",e);const t="/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};r!==void 0&&(p.versionId=r),b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:v(o),options:c}}}},U=function(l){const n=ce(l);return{async compileModelSource(e,r,a,t,o){const s=await n.compileModelSource(e,r,a,t,o),c=l?.serverIndex??0,i=g["ModelsApi.compileModelSource"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async executeQueryModel(e,r,a,t,o){const s=await n.executeQueryModel(e,r,a,t,o),c=l?.serverIndex??0,i=g["ModelsApi.executeQueryModel"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async getModel(e,r,a,t,o){const s=await n.getModel(e,r,a,t,o),c=l?.serverIndex??0,i=g["ModelsApi.getModel"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async listModels(e,r,a,t){const o=await n.listModels(e,r,a,t),s=l?.serverIndex??0,c=g["ModelsApi.listModels"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)}}},ba=function(l,n,e){const r=U(l);return{compileModelSource(a,t,o,s,c){return r.compileModelSource(a,t,o,s,c).then(i=>i(e,n))},executeQueryModel(a,t,o,s,c){return r.executeQueryModel(a,t,o,s,c).then(i=>i(e,n))},getModel(a,t,o,s,c){return r.getModel(a,t,o,s,c).then(i=>i(e,n))},listModels(a,t,o,s){return r.listModels(a,t,o,s).then(c=>c(e,n))}}};class ie extends x{compileModelSource(n,e,r,a,t){return U(this.configuration).compileModelSource(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}executeQueryModel(n,e,r,a,t){return U(this.configuration).executeQueryModel(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}getModel(n,e,r,a,t){return U(this.configuration).getModel(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}listModels(n,e,r,a){return U(this.configuration).listModels(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const pe=function(l){return{executeNotebookCell:async(n,e,r,a,t,o,s,c,i={})=>{m("executeNotebookCell","environmentName",n),m("executeNotebookCell","packageName",e),m("executeNotebookCell","path",r),m("executeNotebookCell","cellIndex",a);const p="/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))).replace("{cellIndex}",encodeURIComponent(String(a))),d=new URL(p,P);let y;l&&(y=l.baseOptions);const k={method:"GET",...y,...i},F={},I={};t!==void 0&&(I.versionId=t),o!==void 0&&(I.filter_params=o),s!==void 0&&(I.bypass_filters=s),c!==void 0&&(I.givens=c),b(d,I);let z=y&&y.headers?y.headers:{};return k.headers={...F,...z,...i.headers},{url:v(d),options:k}},getNotebook:async(n,e,r,a,t={})=>{m("getNotebook","environmentName",n),m("getNotebook","packageName",e),m("getNotebook","path",r);const o="/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},p={},d={};a!==void 0&&(d.versionId=a),b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},{url:v(s),options:i}},listNotebooks:async(n,e,r,a={})=>{m("listNotebooks","environmentName",n),m("listNotebooks","packageName",e);const t="/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};r!==void 0&&(p.versionId=r),b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},{url:v(o),options:c}}}},B=function(l){const n=pe(l);return{async executeNotebookCell(e,r,a,t,o,s,c,i,p){const d=await n.executeNotebookCell(e,r,a,t,o,s,c,i,p),y=l?.serverIndex??0,k=g["NotebooksApi.executeNotebookCell"]?.[y]?.url;return(F,I)=>V(d,h,u,l)(F,k||I)},async getNotebook(e,r,a,t,o){const s=await n.getNotebook(e,r,a,t,o),c=l?.serverIndex??0,i=g["NotebooksApi.getNotebook"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async listNotebooks(e,r,a,t){const o=await n.listNotebooks(e,r,a,t),s=l?.serverIndex??0,c=g["NotebooksApi.listNotebooks"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)}}},va=function(l,n,e){const r=B(l);return{executeNotebookCell(a,t,o,s,c,i,p,d,y){return r.executeNotebookCell(a,t,o,s,c,i,p,d,y).then(k=>k(e,n))},getNotebook(a,t,o,s,c){return r.getNotebook(a,t,o,s,c).then(i=>i(e,n))},listNotebooks(a,t,o,s){return r.listNotebooks(a,t,o,s).then(c=>c(e,n))}}};class de extends x{executeNotebookCell(n,e,r,a,t,o,s,c,i){return B(this.configuration).executeNotebookCell(n,e,r,a,t,o,s,c,i).then(p=>p(this.axios,this.basePath))}getNotebook(n,e,r,a,t){return B(this.configuration).getNotebook(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}listNotebooks(n,e,r,a){return B(this.configuration).listNotebooks(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const Va={True:"true",False:"false"},me=function(l){return{createPackage:async(n,e,r={})=>{m("createPackage","environmentName",n),m("createPackage","_package",e);const a="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(n))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"POST",...o,...r},c={},i={};c["Content-Type"]="application/json",b(t,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},s.data=C(e,s,l),{url:v(t),options:s}},deletePackage:async(n,e,r={})=>{m("deletePackage","environmentName",n),m("deletePackage","packageName",e);const a="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"DELETE",...o,...r},c={};b(t,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:v(t),options:s}},getPackage:async(n,e,r,a,t={})=>{m("getPackage","environmentName",n),m("getPackage","packageName",e);const o="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},p={},d={};r!==void 0&&(d.versionId=r),a!==void 0&&(d.reload=a),b(s,d);let y=c&&c.headers?c.headers:{};return i.headers={...p,...y,...t.headers},{url:v(s),options:i}},listPackages:async(n,e={})=>{m("listPackages","environmentName",n);const r="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(n))),a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"GET",...t,...e},s={};b(a,{});let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},updatePackage:async(n,e,r,a={})=>{m("updatePackage","environmentName",n),m("updatePackage","packageName",e),m("updatePackage","_package",r);const t="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"PATCH",...s,...a},i={},p={};i["Content-Type"]="application/json",b(o,p);let d=s&&s.headers?s.headers:{};return c.headers={...i,...d,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}}}},T=function(l){const n=me(l);return{async createPackage(e,r,a){const t=await n.createPackage(e,r,a),o=l?.serverIndex??0,s=g["PackagesApi.createPackage"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async deletePackage(e,r,a){const t=await n.deletePackage(e,r,a),o=l?.serverIndex??0,s=g["PackagesApi.deletePackage"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async getPackage(e,r,a,t,o){const s=await n.getPackage(e,r,a,t,o),c=l?.serverIndex??0,i=g["PackagesApi.getPackage"]?.[c]?.url;return(p,d)=>V(s,h,u,l)(p,i||d)},async listPackages(e,r){const a=await n.listPackages(e,r),t=l?.serverIndex??0,o=g["PackagesApi.listPackages"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async updatePackage(e,r,a,t){const o=await n.updatePackage(e,r,a,t),s=l?.serverIndex??0,c=g["PackagesApi.updatePackage"]?.[s]?.url;return(i,p)=>V(o,h,u,l)(i,c||p)}}},ya=function(l,n,e){const r=T(l);return{createPackage(a,t,o){return r.createPackage(a,t,o).then(s=>s(e,n))},deletePackage(a,t,o){return r.deletePackage(a,t,o).then(s=>s(e,n))},getPackage(a,t,o,s,c){return r.getPackage(a,t,o,s,c).then(i=>i(e,n))},listPackages(a,t){return r.listPackages(a,t).then(o=>o(e,n))},updatePackage(a,t,o,s){return r.updatePackage(a,t,o,s).then(c=>c(e,n))}}};class he extends x{createPackage(n,e,r){return T(this.configuration).createPackage(n,e,r).then(a=>a(this.axios,this.basePath))}deletePackage(n,e,r){return T(this.configuration).deletePackage(n,e,r).then(a=>a(this.axios,this.basePath))}getPackage(n,e,r,a,t){return T(this.configuration).getPackage(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}listPackages(n,e){return T(this.configuration).listPackages(n,e).then(r=>r(this.axios,this.basePath))}updatePackage(n,e,r,a){return T(this.configuration).updatePackage(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const ue=function(l){return{deleteTheme:async(n={})=>{const e="/theme",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"DELETE",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},getStatus:async(n={})=>{const e="/status",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"GET",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},getTheme:async(n={})=>{const e="/theme",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"GET",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},updateTheme:async(n,e={})=>{m("updateTheme","theme",n);const r="/theme",a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"PUT",...t,...e},s={},c={};s["Content-Type"]="application/json",b(a,c);let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},o.data=C(n,o,l),{url:v(a),options:o}}}},M=function(l){const n=ue(l);return{async deleteTheme(e){const r=await n.deleteTheme(e),a=l?.serverIndex??0,t=g["PublisherApi.deleteTheme"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async getStatus(e){const r=await n.getStatus(e),a=l?.serverIndex??0,t=g["PublisherApi.getStatus"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async getTheme(e){const r=await n.getTheme(e),a=l?.serverIndex??0,t=g["PublisherApi.getTheme"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async updateTheme(e,r){const a=await n.updateTheme(e,r),t=l?.serverIndex??0,o=g["PublisherApi.updateTheme"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)}}},Oa=function(l,n,e){const r=M(l);return{deleteTheme(a){return r.deleteTheme(a).then(t=>t(e,n))},getStatus(a){return r.getStatus(a).then(t=>t(e,n))},getTheme(a){return r.getTheme(a).then(t=>t(e,n))},updateTheme(a,t){return r.updateTheme(a,t).then(o=>o(e,n))}}};class ge extends x{deleteTheme(n){return M(this.configuration).deleteTheme(n).then(e=>e(this.axios,this.basePath))}getStatus(n){return M(this.configuration).getStatus(n).then(e=>e(this.axios,this.basePath))}getTheme(n){return M(this.configuration).getTheme(n).then(e=>e(this.axios,this.basePath))}updateTheme(n,e){return M(this.configuration).updateTheme(n,e).then(r=>r(this.axios,this.basePath))}}const Pe=function(l){return{getWatchStatus:async(n={})=>{const e="/watch-mode/status",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"GET",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},startWatching:async(n,e={})=>{m("startWatching","startWatchRequest",n);const r="/watch-mode/start",a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"POST",...t,...e},s={},c={};s["Content-Type"]="application/json",b(a,c);let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},o.data=C(n,o,l),{url:v(a),options:o}},stopWatching:async(n={})=>{const e="/watch-mode/stop",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"POST",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},streamPackageEvents:async(n,e,r={})=>{m("streamPackageEvents","environmentName",n),m("streamPackageEvents","packageName",e);const a="/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={};b(t,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...r.headers},{url:v(t),options:s}}}},w=function(l){const n=Pe(l);return{async getWatchStatus(e){const r=await n.getWatchStatus(e),a=l?.serverIndex??0,t=g["WatchModeApi.getWatchStatus"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async startWatching(e,r){const a=await n.startWatching(e,r),t=l?.serverIndex??0,o=g["WatchModeApi.startWatching"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async stopWatching(e){const r=await n.stopWatching(e),a=l?.serverIndex??0,t=g["WatchModeApi.stopWatching"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async streamPackageEvents(e,r,a){const t=await n.streamPackageEvents(e,r,a),o=l?.serverIndex??0,s=g["WatchModeApi.streamPackageEvents"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)}}},Sa=function(l,n,e){const r=w(l);return{getWatchStatus(a){return r.getWatchStatus(a).then(t=>t(e,n))},startWatching(a,t){return r.startWatching(a,t).then(o=>o(e,n))},stopWatching(a){return r.stopWatching(a).then(t=>t(e,n))},streamPackageEvents(a,t,o){return r.streamPackageEvents(a,t,o).then(s=>s(e,n))}}};class be extends x{getWatchStatus(n){return w(this.configuration).getWatchStatus(n).then(e=>e(this.axios,this.basePath))}startWatching(n,e){return w(this.configuration).startWatching(n,e).then(r=>r(this.axios,this.basePath))}stopWatching(n){return w(this.configuration).stopWatching(n).then(e=>e(this.axios,this.basePath))}streamPackageEvents(n,e,r){return w(this.configuration).streamPackageEvents(n,e,r).then(a=>a(this.axios,this.basePath))}}class ve{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(n={}){this.apiKey=n.apiKey,this.username=n.username,this.password=n.password,this.accessToken=n.accessToken,this.basePath=n.basePath,this.serverIndex=n.serverIndex,this.baseOptions={...n.baseOptions,headers:{...n.baseOptions?.headers}},this.formDataCtor=n.formDataCtor}isJsonMime(n){const e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return n!==null&&(e.test(n)||n.toLowerCase()==="application/json-patch+json")}}const f={teal:"#14b3cb",orange:"#e47404",darkBlue:"#1474a4"},Ca='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',ka=O.styled(O.Card)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),Aa=O.styled(O.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),xa=O.styled(O.CardMedia)({padding:"0"}),Ia=O.styled("div")(({theme:l})=>({backgroundColor:l.palette.background.default,padding:"0 8px 0px 8px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"}));O.styled("div")(({theme:l})=>({marginBottom:"40px",paddingBottom:"24px",borderBottom:`1px solid ${l.palette.divider}`}));const Ra=O.styled("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Ea=O.styled("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Ta=O.styled("div")({backgroundColor:"transparent",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"none",boxShadow:"none",marginBottom:"0"});O.styled("div")(({theme:l})=>({backgroundColor:l.palette.mode==="dark"?"#1e293b":"#f8f9fa",padding:"16px",borderRadius:"8px",border:`1px solid ${l.palette.divider}`,fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto",color:l.palette.text.primary}));O.styled("div")(({theme:l})=>({backgroundColor:l.palette.mode==="dark"?"#1e293b":"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:`1px solid ${l.palette.divider}`,marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"}));const Na=O.styled("div")({height:"100%"});O.styled("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const Ua=O.styled("div")({height:"75vh",width:"100%",overflowY:"auto"});O.styled("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Ma=O.styled(O.Card)(({theme:l})=>({backgroundColor:l.palette.background.paper,padding:"24px",borderRadius:"8px",border:`1px solid ${l.palette.divider}`,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}})),wa=O.styled(O.CardContent)({padding:"0","&:last-child":{paddingBottom:"0"}}),fa=O.styled("div")(({theme:l})=>({fontSize:"0.875rem",fontWeight:500,color:l.palette.text.secondary,marginBottom:"16px",paddingBottom:"8px",borderBottom:`1px solid ${l.palette.divider}`}));O.styled("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"});const Fa=[f.teal,f.orange,f.darkBlue,"#66cedc","#ec72b8","#f9c85b","#aacd85","#b87ced"],Ba="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",L={defaultMode:"light",allowUserToggle:!0,palette:{series:Fa,background:{light:"#ffffff",dark:"#1e293b"},tableHeader:{light:"#5d626b",dark:"#cbd5e1"},tableHeaderBackground:{light:"#f5fafc",dark:"#1e293b"},tableBody:{light:"#727883",dark:"#e2e8f0"},tile:{light:"#f5fafc",dark:"#0f172a"},tileTitle:{light:"#5d626b",dark:"#94a3b8"},mapColor:{light:f.teal,dark:f.teal}},font:{family:Ba,size:12}},Ve=["background","tableHeader","tableHeaderBackground","tableBody","tile","tileTitle","mapColor"];function G(l,n){const e=L.palette??{},r=L.font??{family:"sans-serif",size:12};let a=[...e.series??[]],t=r.family??"sans-serif",o=r.size??12;const s={background:{...e.background??{}},tableHeader:{...e.tableHeader??{}},tableHeaderBackground:{...e.tableHeaderBackground??{}},tableBody:{...e.tableBody??{}},tile:{...e.tile??{}},tileTitle:{...e.tileTitle??{}},mapColor:{...e.mapColor??{}}};for(const d of l)if(d){Array.isArray(d.palette?.series)&&(a=[...d.palette.series]);for(const y of Ve){const k=d.palette?.[y];k&&(s[y]={...s[y],...k})}typeof d.font?.family=="string"&&(t=d.font.family),typeof d.font?.size=="number"&&(o=d.font.size)}const c=n==="dark",i=d=>s[d][n]??e[d]?.[n],p=i("background");return{mode:n,series:a,font:{family:t,size:o},background:p,tableHeader:i("tableHeader"),tableHeaderBackground:i("tableHeaderBackground"),tableBody:i("tableBody"),tile:i("tile"),tileTitle:i("tileTitle"),mapColor:i("mapColor"),tableBackground:p,border:c?"1px solid #334155":"1px solid #e5e7eb",pinnedBorder:c?"1px solid #475569":"1px solid #daedf3",valueColor:c?"#f1f5f9":"#1f2937",foreground:c?"#e2e8f0":"#1f2937",axisFaint:c?"#475569":"#d1d5db",dashboardRoot:c?"#1e293b":"#ffffff"}}function ye(l,n,e){const r=n??l??"light";return r==="auto"?e?"dark":"light":r}const Oe=A.createContext(void 0);function Se({layers:l,mode:n,userChoice:e,setMode:r,allowUserToggle:a=!0,children:t}){const o=A.useMemo(()=>G(l,n),[l,n]),s=A.useMemo(()=>({theme:o,layers:l,mode:n,userChoice:e,setMode:r,allowUserToggle:a}),[o,l,n,e,r,a]);return Q.jsx(Oe.Provider,{value:s,children:t})}function Qa(){const l=A.useContext(Oe);return l||{theme:G([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const Ce=new j.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),za={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},D="publisher:themeMode";function $a(){if(!(typeof window>"u"))try{const l=window.localStorage.getItem(D);if(l==="light"||l==="dark"||l==="auto")return l}catch{}}function qa(l){if(!(typeof window>"u"))try{l===void 0?window.localStorage.removeItem(D):window.localStorage.setItem(D,l)}catch{}}function La(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}h.defaults.baseURL||(h.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const ke=A.createContext(void 0),Da=(l,n)=>{const e=`${window.location.protocol}//${window.location.host}/api/v0`,r=h.create({baseURL:l||e,withCredentials:!0,timeout:6e5});r.interceptors.request.use(async t=>{const o=await n?.();return t.headers.Authorization=o||"",t});const a=new ve({basePath:e});return{models:new ie(a,e,r),publisher:new ge(a,e,r),environments:new oe(a,e,r),packages:new he(a,e,r),dataApps:new ae(a,e,r),notebooks:new de(a,e,r),connections:new X(a,e,r),databases:new ne(a,e,r),materializations:new le(a,e,r),watchMode:new be(a,e,r)}},ja=l=>Q.jsx(j.QueryClientProvider,{client:Ce,children:Q.jsx(Ha,{...l})}),Ha=({children:l,getAccessToken:n,baseURL:e,mutable:r,theme:a})=>{const t=A.useMemo(()=>Da(e,n),[e,n]),o=e||`${window.location.protocol}//${window.location.host}/api/v0`,s=j.useQuery({queryKey:["status"],queryFn:async()=>(await t.publisher.getStatus()).data});s.error&&console.error("Failed to fetch publisher status:",s.error);const c=s.data?.frozenConfig,i=s.data?.theme,p=s.isLoading;let d;s.isLoading||s.error?d=r:c?d=!1:d=r??!0;const y=A.useMemo(()=>[i,a],[i,a]),[k,F]=A.useState($a),[I,z]=A.useState(La);A.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const N=window.matchMedia("(prefers-color-scheme: dark)"),K=Re=>z(Re.matches);return N.addEventListener("change",K),()=>N.removeEventListener("change",K)},[]);const Ae=A.useCallback(N=>{F(N),qa(N)},[]),Y=i?.allowUserToggle??!0,$=Y?k:void 0,xe=A.useMemo(()=>ye(i?.defaultMode,$,I),[i?.defaultMode,$,I]),Ie={server:o,getAccessToken:n,apiClients:t,mutable:d,isLoadingStatus:p,instanceTheme:i};return Q.jsx(ke.Provider,{value:Ie,children:Q.jsx(Se,{layers:y,mode:xe,userChoice:$,setMode:Ae,allowUserToggle:Y,children:l})})},_a=()=>{const l=A.useContext(ke);if(l===void 0)throw new Error("useServer must be used within a ServerProvider");return l};exports.AttachedDatabaseTypeEnum=Te;exports.AzureConnectionAuthTypeEnum=Ne;exports.CHART_RESULT_QUERY_OPTIONS=za;exports.CleanMetricCard=Ta;exports.CleanNotebookCell=Ea;exports.CleanNotebookContainer=Ia;exports.CleanNotebookSection=Ra;exports.CompileProblemSeverityEnum=Ue;exports.CompileResultStatusEnum=Me;exports.Configuration=ve;exports.ConnectionProxyTypeEnum=fe;exports.ConnectionStatusStatusEnum=Fe;exports.ConnectionTypeEnum=we;exports.ConnectionsApi=X;exports.ConnectionsApiAxiosParamCreator=J;exports.ConnectionsApiFactory=ia;exports.ConnectionsApiFp=S;exports.ConnectionsTestApi=da;exports.ConnectionsTestApiAxiosParamCreator=Z;exports.ConnectionsTestApiFactory=pa;exports.ConnectionsTestApiFp=H;exports.DEFAULT_THEME=L;exports.DataAppFitEnum=Be;exports.DataAppsApi=ae;exports.DataAppsApiAxiosParamCreator=ee;exports.DataAppsApiFactory=ma;exports.DataAppsApiFp=_;exports.DatabaseTypeEnum=Qe;exports.DatabasesApi=ne;exports.DatabasesApiAxiosParamCreator=te;exports.DatabasesApiFactory=ha;exports.DatabasesApiFp=W;exports.EnvironmentsApi=oe;exports.EnvironmentsApiAxiosParamCreator=re;exports.EnvironmentsApiFactory=ua;exports.EnvironmentsApiFp=E;exports.ExecuteNotebookCellBypassFiltersEnum=Va;exports.FilterTypeEnum=ze;exports.FreshnessFallbackEnum=$e;exports.GivenControlEnum=qe;exports.LedgerEntryStrategyEnum=Le;exports.LogMessageSeverityEnum=De;exports.MALLOY_BRAND=f;exports.MONO_FONT_FAMILY=Ca;exports.ManifestEntryFreshnessFallbackEnum=He;exports.ManifestEntryOriginEnum=je;exports.ManifestEntryRefreshEnum=_e;exports.MaterializationActionActionEnum=Pa;exports.MaterializationStatus=We;exports.MaterializationsApi=le;exports.MaterializationsApiAxiosParamCreator=se;exports.MaterializationsApiFactory=ga;exports.MaterializationsApiFp=R;exports.ModelsApi=ie;exports.ModelsApiAxiosParamCreator=ce;exports.ModelsApiFactory=ba;exports.ModelsApiFp=U;exports.NotebookCellResultTypeEnum=Ye;exports.NotebookCellTypeEnum=Ge;exports.NotebooksApi=de;exports.NotebooksApiAxiosParamCreator=pe;exports.NotebooksApiFactory=va;exports.NotebooksApiFp=B;exports.PER_MODE_COLOR_KEYS=Ve;exports.PackageCard=Ma;exports.PackageCardContent=wa;exports.PackageManifestBindingStatusEnum=Xe;exports.PackageQueryableSourcesEnum=Je;exports.PackageScopeEnum=Ke;exports.PackageSectionTitle=fa;exports.PackageWarningsInnerSeverityEnum=Ze;exports.PackagesApi=he;exports.PackagesApiAxiosParamCreator=me;exports.PackagesApiFactory=ya;exports.PackagesApiFp=T;exports.PersistSourcePlanOriginEnum=ea;exports.PostgresConnectionSslmodeEnum=aa;exports.PublisherApi=ge;exports.PublisherApiAxiosParamCreator=ue;exports.PublisherApiFactory=Oa;exports.PublisherApiFp=M;exports.QueryClass=ta;exports.QueryResultQueryRowLimitSourceEnum=na;exports.QueryResultServedFromEnum=ra;exports.Realization=oa;exports.RunContextTriggerEnum=sa;exports.ServerProvider=ja;exports.ServerStatusOperationalStateEnum=la;exports.StyledCard=ka;exports.StyledCardContent=Aa;exports.StyledCardMedia=xa;exports.StyledExplorerContent=Ua;exports.StyledExplorerPage=Na;exports.ThemeDefaultModeEnum=ca;exports.ThemeProvider=Se;exports.WatchModeApi=be;exports.WatchModeApiAxiosParamCreator=Pe;exports.WatchModeApiFactory=Sa;exports.WatchModeApiFp=w;exports.globalQueryClient=Ce;exports.resolveMode=ye;exports.resolveTheme=G;exports.usePublisherTheme=Qa;exports.useServer=_a;
@@ -540,7 +540,7 @@ export interface Connection {
540
540
  */
541
541
  'resource'?: string;
542
542
  /**
543
- * Name of the connection
543
+ * Name of the connection. The name `duckdb` is RESERVED for the per-package DuckDB sandbox every loaded package gets automatically; declaring an environment-level connection with that name fails the whole environment at init. A flat-file (CSV/Parquet/XLSX) package needs no connection entry at all — its models reach the sandbox as `duckdb.table(\'data/…\')`. Name an environment-level DuckDB connection something else (e.g. `shared_duckdb`).
544
544
  * @type {string}
545
545
  * @memberof Connection
546
546
  */
@@ -1404,11 +1404,23 @@ export interface ManifestEntry {
1404
1404
  */
1405
1405
  'sourceEntityId': string;
1406
1406
  /**
1407
- *
1407
+ * Why this source failed to materialize, in the words the warehouse or compiler reported. Present only on a source that failed; absent on one that built, whose table the remaining fields describe. A build that loses some of its sources still returns the ones that succeeded, so an entry carrying this is how a consumer tells a failed source from a healthy one.
1408
+ * @type {string}
1409
+ * @memberof ManifestEntry
1410
+ */
1411
+ 'error'?: string | null;
1412
+ /**
1413
+ * The persist source this table was built for. Convenience only: `sourceEntityId` is the identity, and this is the human-readable label beside it. **It may name no source in any model file.** A pre-aggregation rollup is a persist source the publisher synthesized, so its name is generated (see `PersistSourcePlan.origin`). Match on `sourceEntityId`; do not resolve this against a package\'s models and treat a miss as a corrupt manifest.
1408
1414
  * @type {string}
1409
1415
  * @memberof ManifestEntry
1410
1416
  */
1411
1417
  'sourceName'?: string;
1418
+ /**
1419
+ * Mirrors `PersistSourcePlan.origin` for the source this entry was built from: `persist` for a source the modeler wrote `#@ persist` on, which is the meaning of an absent value, and `preaggregate` for a rollup synthesized from `#@ preaggregate` measures. Repeated here because a manifest travels without its build plan, and a consumer holding only the manifest otherwise cannot tell why it holds a table for a source that does not appear in the package.
1420
+ * @type {string}
1421
+ * @memberof ManifestEntry
1422
+ */
1423
+ 'origin'?: ManifestEntryOriginEnum;
1412
1424
  /**
1413
1425
  * Echoes the caller-assigned id from the BuildInstruction.
1414
1426
  * @type {string}
@@ -1494,6 +1506,11 @@ export interface ManifestEntry {
1494
1506
  */
1495
1507
  'refresh'?: ManifestEntryRefreshEnum;
1496
1508
  }
1509
+ export declare const ManifestEntryOriginEnum: {
1510
+ readonly Persist: "persist";
1511
+ readonly Preaggregate: "preaggregate";
1512
+ };
1513
+ export type ManifestEntryOriginEnum = typeof ManifestEntryOriginEnum[keyof typeof ManifestEntryOriginEnum];
1497
1514
  export declare const ManifestEntryFreshnessFallbackEnum: {
1498
1515
  readonly Live: "live";
1499
1516
  readonly StaleOk: "stale_ok";
@@ -1851,7 +1868,7 @@ export interface Package {
1851
1868
  */
1852
1869
  'description'?: string;
1853
1870
  /**
1854
- * Package location, can be an absolute path or URI (e.g. github, s3, gcs, etc.)
1871
+ * Package location. A LOCAL path must start with `./`, `../`, `~/`, or `/`; a `./` or `../` path resolves against the config file\'s directory, and `~/` against the home directory. Anything else is read as a remote URI (github, s3, gcs, https), so a bare name like `sales` is not local and the package is skipped with \"Invalid package path\" in the server\'s loadErrors. At boot a local package is COPIED into publisher_data/ and the copy is served, so edits to the source directory are not read; starting the server with `--watch-env <env>` mounts local packages in place (symlink) and live-reloads them instead. The mount is chosen when the environment is first loaded from config, so adding `--watch-env` to a later boot needs `--init` to re-mount a package already copied.
1855
1872
  * @type {string}
1856
1873
  * @memberof Package
1857
1874
  */
@@ -1875,13 +1892,13 @@ export interface Package {
1875
1892
  */
1876
1893
  'exploresWarnings'?: Array<string>;
1877
1894
  /**
1878
- * Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value` or `# currency`) misconfigured for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a persist-target collision, and materialization-config problems that degrade attribution. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings.
1895
+ * Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value` or `# currency`) misconfigured for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a persist-target collision, and materialization-config problems that degrade attribution. Discovery findings: a model listed in `explores` whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Pre-aggregation contributes nothing to this array. A `#@ preaggregate` that cannot be honored is an ERROR, never a warning** — a 400 at publish or PATCH, and a load failure thereafter. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, `#(authorize)` gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD, not only at publish, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing.
1879
1896
  * @type {Array<PackageWarningsInner>}
1880
1897
  * @memberof Package
1881
1898
  */
1882
1899
  'warnings'?: Array<PackageWarningsInner>;
1883
1900
  /**
1884
- * Controls whether the discovery surface is also a query boundary. `\"declared\"` (the default) makes queryable == discoverable: when `explores` is declared, only `explores` model files — and within them only the `export {}` closure — are valid top-level query targets; every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). `\"all\"` decouples them: `explores`/`export {}` gate discovery only and every compiled source stays directly queryable. When `explores` is absent there is no curated surface, so both modes are equivalent (everything queryable). Invalid values fall back to `\"declared\"`. Identity-based access is a separate concern — see `#(authorize)`.
1901
+ * Controls whether the discovery surface is also a query boundary. `\"declared\"` (the default) makes queryable == discoverable: when `explores` is declared, only `explores` model files are valid query entry points, and the queryable sources are the union of those files\' `export {}` closures — so a source exported by any listed file stays queryable whichever listed model path the request addresses it through. Admission is by declaration, not by name: a request clears only when the model it names resolves the name to the very source a listed file exported, so a same-named source declared in a hidden file is not admitted by the coincidence. Every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). The `/compile` endpoint is exempt (compile is the authoring loop; the boundary is discovery curation, not access control — for confidentiality use `#(authorize)`, which gates compile too). A source that is both hidden and `#(authorize)`-gated still answers `/compile` with the generic 404, so the exemption cannot be used to enumerate gated names. `\"all\"` decouples the axes: `explores`/`export {}` gate discovery only and every compiled source stays directly queryable. When `explores` is absent there is no curated surface, so both modes are equivalent (everything queryable). Invalid values fall back to `\"declared\"`. Identity-based access is a separate concern — see `#(authorize)`.
1885
1902
  * @type {string}
1886
1903
  * @memberof Package
1887
1904
  */
@@ -2063,6 +2080,18 @@ export interface PersistSourcePlan {
2063
2080
  * @memberof PersistSourcePlan
2064
2081
  */
2065
2082
  'dialect'?: string;
2083
+ /**
2084
+ * Which authoring annotation produced this plan entry. `persist` — the modeler wrote `#@ persist` on the source; every entry on a deployment that uses no pre-aggregation, and the meaning of an absent value. `preaggregate` — the modeler wrote `#@ preaggregate` on measures of `preaggregate.baseSourceName`, and the publisher SYNTHESIZED this rollup source to serve them. Note that BOTH kinds carry a `#@ persist` annotation by the time they reach this plan, because synthesis emits one (see `annotationFields`). So this reports which surface the AUTHOR used, not which annotation sits on the source — which is the question worth answering, since a `preaggregate` entry\'s `name` appears in no model file and without this field an operator or orchestrator sees a source nobody wrote with no way to tell it from one they did. Everything downstream is deliberately indifferent to it: a synthesized entry is built, identified, manifested, shared and garbage-collected exactly like a hand-written one.
2085
+ * @type {string}
2086
+ * @memberof PersistSourcePlan
2087
+ */
2088
+ 'origin'?: PersistSourcePlanOriginEnum;
2089
+ /**
2090
+ *
2091
+ * @type {PreaggregatePlan}
2092
+ * @memberof PersistSourcePlan
2093
+ */
2094
+ 'preaggregate'?: PreaggregatePlan | null;
2066
2095
  /**
2067
2096
  * Stable, content-addressed identity of this persisted source. A deterministic UUID5 derived from the source\'s scope, its connection `fingerprint`, and its canonical compiled SQL — deliberately independent of package version, so it changes only when the source\'s data identity changes. Consumers treat it as an opaque token and use the supplied value verbatim.
2068
2097
  * @type {string}
@@ -2102,7 +2131,7 @@ export interface PersistSourcePlan {
2102
2131
  */
2103
2132
  'columns': Array<Column>;
2104
2133
  /**
2105
- * All key=value fields of the source\'s `#@ persist` annotation (e.g. `name`, `realization`). The control plane uses `name` as the materialized table name (it may carry a dialect container path like `dataset.table`). Returned as the full set so new persist directives need no publisher change; an unrecognized key rides through here and is reported as a package warning, never a rejection. Recognized keys beyond `name`/`realization`/`storage`, both read from the EFFECTIVE merged tag (a source extending a persisted parent inherits the parent\'s keys, and its own keys merge over them per key): * `watermark` — one output dimension name, monotone non-decreasing. Required by `refresh=\"incremental\"`; the platform derives each refresh\'s half-open range from it. Must be a single quoted string naming a column of `columns`. * `merge_key` — comma-separated output dimension names, none of them the watermark. Declares row identity for a source whose rows are restated with a LATER watermark value, which selects a MERGE apply; omitted, the delta replaces the range instead. Compound keys go in one quoted string (`merge_key=\"order_id, region\"`). Both are validated at publish against the compiled output schema, so a dangling or stale name is rejected rather than deferred to a build. Neither participates in `sourceEntityId`: adding a watermark to an existing source must not re-address its table.
2134
+ * All key=value fields of the source\'s `#@ persist` annotation (e.g. `name`, `realization`). The control plane uses `name` as the materialized table name (it may carry a dialect container path like `dataset.table`). Returned as the full set so new persist directives need no publisher change; an unrecognized key rides through here and is reported as a package warning, never a rejection. Recognized keys beyond `name`/`realization`/`storage`, both read from the EFFECTIVE merged tag (a source extending a persisted parent inherits the parent\'s keys, and its own keys merge over them per key): * `watermark` — one output dimension name, monotone non-decreasing. Required by `refresh=\"incremental\"`; the platform derives each refresh\'s half-open range from it. Must be a single quoted string naming a column of `columns`. * `merge_key` — comma-separated output dimension names, none of them the watermark. Declares row identity for a source whose rows are restated with a LATER watermark value, which selects a MERGE apply; omitted, the delta replaces the range instead. Compound keys go in one quoted string (`merge_key=\"order_id, region\"`). Both are validated at publish against the compiled output schema, so a dangling or stale name is rejected rather than deferred to a build. Neither participates in `sourceEntityId`: adding a watermark to an existing source must not re-address its table. For a synthesized rollup (`origin: preaggregate`) the annotation was generated by the publisher rather than authored, so this reports what synthesis emitted. It is still the annotation that governs the build, which is why it is reported the same way: a rollup is an ordinary persist source whose `#@ persist` nobody typed.
2106
2135
  * @type {{ [key: string]: string; }}
2107
2136
  * @memberof PersistSourcePlan
2108
2137
  */
@@ -2110,12 +2139,17 @@ export interface PersistSourcePlan {
2110
2139
  [key: string]: string;
2111
2140
  };
2112
2141
  /**
2113
- * Package-relative path of the `.malloy` model that declares this source (e.g. `order_rollup.malloy`). The source\'s sourceID embeds an absolute `file://` modelURL with no package boundary, so this is the only place the relative path is exposed; callers use it to deep-link the source back to its model.
2142
+ * Package-relative path of the `.malloy` model that declares this source (e.g. `order_rollup.malloy`). The source\'s sourceID embeds an absolute `file://` modelURL with no package boundary, so this is the only place the relative path is exposed; callers use it to deep-link the source back to its model. A synthesized rollup (`origin: preaggregate`) is declared by no model, so this is the model of its base — the file holding the `#@ preaggregate` annotations it was synthesized from, which is where an author would go to change it.
2114
2143
  * @type {string}
2115
2144
  * @memberof PersistSourcePlan
2116
2145
  */
2117
2146
  'modelPath'?: string;
2118
2147
  }
2148
+ export declare const PersistSourcePlanOriginEnum: {
2149
+ readonly Persist: "persist";
2150
+ readonly Preaggregate: "preaggregate";
2151
+ };
2152
+ export type PersistSourcePlanOriginEnum = typeof PersistSourcePlanOriginEnum[keyof typeof PersistSourcePlanOriginEnum];
2119
2153
  /**
2120
2154
  *
2121
2155
  * @export
@@ -2218,6 +2252,31 @@ export declare const PostgresConnectionSslmodeEnum: {
2218
2252
  readonly VerifyFull: "verify-full";
2219
2253
  };
2220
2254
  export type PostgresConnectionSslmodeEnum = typeof PostgresConnectionSslmodeEnum[keyof typeof PostgresConnectionSslmodeEnum];
2255
+ /**
2256
+ * Provenance for a rollup source synthesized from `#@ preaggregate` annotations. A query never names a rollup, never changes shape because one exists, and gets the same answer whether one is used or not, so this is the only place the set of rollups and the coverage of each is visible at all. **This object describes ONE rollup table, at ONE grain.** A rollup is a single `GROUP BY`, so a grain is a property of the table, not of the individual measures in it: `grainDimensions` lists the dimensions of that one grain, and `measures` are the measures served at it. That inverts how the grain was authored, which is worth knowing before reading a plan. The modeler declares per measure — `#@ preaggregate grain=\"order_day, category\"` — and may declare a measure at SEVERAL grains by writing several annotation lines on it, each of which is its own rollup. The publisher then packs every measure declaring the same (grain, connection, base source) into a single synthesized source, because ten measures at one grain should be one table and one CTAS rather than ten. So the plan has one entry per DISTINCT grain declared anywhere on the source, which is neither the number of annotated measures nor the number of annotations: a measure declared at two grains appears in two entries, and two measures sharing a grain appear in one. To recover the per-measure view that was written, iterate `buildPlan.sources`, keep the `origin: preaggregate` entries, and invert each entry\'s grain-to-measures pairing. Choosing between two rollups and one at the combined grain is a size judgement, not a correctness one — see `grainDimensions`.
2257
+ * @export
2258
+ * @interface PreaggregatePlan
2259
+ */
2260
+ export interface PreaggregatePlan {
2261
+ /**
2262
+ * The source whose measures carry the `#@ preaggregate` annotations this rollup was synthesized from. Queries name THIS source; the rollup is selected behind it, or bypassed, per grain coverage.
2263
+ * @type {string}
2264
+ * @memberof PreaggregatePlan
2265
+ */
2266
+ 'baseSourceName': string;
2267
+ /**
2268
+ * The dimensions of the ONE grain this rollup is built at — the parsed form of a single `grain=` annotation value, so `grain=\"order_day, category\"` reports as two entries here and not as two grains. **Every entry is a dimension the base source itself declares**, never a truncation written inline. `grain=\"order_time.day\"` is refused at publish: a stored column of truncated values either shadows the base\'s own `order_time` and answers untruncated queries from truncated rows, or is named something no query references and serves nothing. So time grains are reached by declaring `dimension: order_day is order_time.day` on the source and naming `order_day` here. **Sorted, and canonically so.** Synthesis derives the rollup\'s name and identity from the sorted grain, so two authors who write the same dimensions in different orders get one table rather than two. Compare grains as sets using this list; never by the annotation\'s original string, which is not canonical. A query can be answered here only if this grain covers it: every dimension the query groups by is in this list, or is a coarser truncation of one (a `month` of a stored `order_day` is derivable and does route; a `day` of a stored `order_month` is not). Which makes the set of grains ACROSS a package the whole performance story, and the reason adding a rollup per query shape is the documented way to spend more on builds than you save. Note that covering does not require an exact match: a query grouping by a SUBSET of these dimensions — or by none of them — is served here too, by re-aggregating across the ones it omits. So one rollup at the finest grain an author needs does subsume every coarser one, and a combined grain is often the economical choice. That subsumption is about coverage, though, not cost, and it is why a measure may still be declared at several grains. A combined grain has roughly the PRODUCT of its dimensions\' cardinalities, so `customer_id, order_day` can approach the base table\'s row count and save almost nothing, while `order_day` alone is tiny. Two rollups then beat one, each query reading the smallest that covers it, at the price of two tables to build and refresh. Correctness is identical either way; the choice is size against build cost.
2269
+ * @type {Array<string>}
2270
+ * @memberof PreaggregatePlan
2271
+ */
2272
+ 'grainDimensions': Array<string>;
2273
+ /**
2274
+ * The measures served at this rollup\'s grain, under their original names — the names a query uses, not the names of the partial-aggregate columns stored to serve them. A query using only these, at a grain this rollup covers, is eligible to be served from its table. These are the measures whose `#@ preaggregate` named THIS grain. A measure declared at a different grain is not missing: it is in the plan entry for that grain. Do not read this list as the base source\'s full set of pre-aggregated measures — that is the union of these lists across every entry sharing a `baseSourceName`. **Every measure that declared this grain is here.** There is no partial rollup and no per-measure omission to check: a measure that cannot be correctly re-aggregated is refused at publish, so a rollup that exists carries everything that asked to be in it.
2275
+ * @type {Array<string>}
2276
+ * @memberof PreaggregatePlan
2277
+ */
2278
+ 'measures': Array<string>;
2279
+ }
2221
2280
  /**
2222
2281
  * Malloy Publisher proxy connection. Proxies SQL to a remote Publisher dataplane instead of connecting to a warehouse directly. The remote dataplane owns authentication, access control, and read-only enforcement.
2223
2282
  * @export
@@ -2648,7 +2707,7 @@ export interface ServerStatus {
2648
2707
  */
2649
2708
  'operationalState'?: ServerStatusOperationalStateEnum;
2650
2709
  /**
2651
- * Configured packages and environments that did not load, and why. A load failure is not fatal to the server, so operationalState stays serving and the affected packages are simply absent from environments; this is the only place that difference is reported, so check it before treating a serving server as complete. Present only when something failed to load, so a healthy server omits the field.
2710
+ * Configured packages and environments that did not load, and why. A load failure is not fatal to the server, so operationalState stays serving and the affected packages are absent from environments, unless the entry carries stale = true, in which case the package is still listed and still serving its last successful compile. This is the only place either difference is reported, so check it before treating a serving server as complete or current. Present only when something failed, so a healthy server omits the field.
2652
2711
  * @type {Array<ServerStatusLoadErrorsInner>}
2653
2712
  * @memberof ServerStatus
2654
2713
  */
@@ -2697,6 +2756,18 @@ export interface ServerStatusLoadErrorsInner {
2697
2756
  * @memberof ServerStatusLoadErrorsInner
2698
2757
  */
2699
2758
  'message'?: string;
2759
+ /**
2760
+ * When true, the package did load earlier and is still serving that last successful compile; the message is why its most recent reload (a watch-mode save, malloy_reloadPackage, or reload=true) failed. The served model is older than the files on disk. Absent on ordinary load failures. This array is the only place staleness is reported, because the package\'s entry under environments, and its own package resource, both read SERVING; join on the package name here to tell a current package from a stale one.
2761
+ * @type {boolean}
2762
+ * @memberof ServerStatusLoadErrorsInner
2763
+ */
2764
+ 'stale'?: boolean;
2765
+ /**
2766
+ * When the failed reload happened. Only present alongside stale = true.
2767
+ * @type {string}
2768
+ * @memberof ServerStatusLoadErrorsInner
2769
+ */
2770
+ 'failedAt'?: string;
2700
2771
  }
2701
2772
  /**
2702
2773
  * Snowflake database connection configuration
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-hUU-suI8.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.Realization=e.Realization;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-cgFkfnXi.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.Realization=e.Realization;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
@@ -1,9 +1,9 @@
1
- import { A as e, a as t, C as o, b as i, aq as n, d as r, e as p, c as A, y as u, v as m, x as c, w as l, H as E, z as y, E as C, B as F, D as P, O as b, I as g, K as M, J as S, f as k, X as d, U as h, W as x, V as T, $ as v, Y as D, _ as f, Z as z, ad as R, F as N, h as Q, G as W, L, i as B, M as j, j as q, a4 as w, k as G, a3 as I, a0 as O, a2 as H, a1 as J, a8 as K, a5 as U, a7 as V, a6 as X, l as Y, N as Z, ac as _, a9 as $, ab as aa, aa as sa, n as ea, m as ta, P as oa, o as ia, ah as na, ae as ra, ag as pa, af as Aa, p as ua, al as ma, ai as ca, ak as la, aj as Ea, Q as ya, q as Ca, r as Fa, R as Pa, s as ba, S as ga, t as Ma, T as Sa, ap as ka, am as da, ao as ha, an as xa, g as Ta, u as va } from "../ServerProvider-BE1HCB-L.es.js";
1
+ import { A as e, a as t, C as i, b as o, as as n, d as r, e as p, c as A, B as u, x as m, z as c, y as l, J as E, E as y, I as C, H as F, D as P, V as b, K as g, U as M, O as S, f as k, Z as d, W as h, Y as x, X as T, a1 as v, _ as D, a0 as f, $ as z, af as R, F as N, h as Q, G as W, L, i as O, j as B, M as j, k as q, a6 as w, l as G, a5 as I, a2 as H, a4 as J, a3 as K, aa as U, a7 as V, a9 as X, a8 as Y, m as Z, N as _, ae as $, ab as aa, ad as sa, ac as ea, o as ta, n as ia, P as oa, p as na, aj as ra, ag as pa, ai as Aa, ah as ua, q as ma, r as ca, an as la, ak as Ea, am as ya, al as Ca, Q as Fa, s as Pa, t as ba, R as ga, v as Ma, S as Sa, w as ka, T as da, ar as ha, ao as xa, aq as Ta, ap as va, g as Da, u as fa } from "../ServerProvider-BAyKR6My.es.js";
2
2
  export {
3
3
  e as AttachedDatabaseTypeEnum,
4
4
  t as AzureConnectionAuthTypeEnum,
5
- o as CompileProblemSeverityEnum,
6
- i as CompileResultStatusEnum,
5
+ i as CompileProblemSeverityEnum,
6
+ o as CompileResultStatusEnum,
7
7
  n as Configuration,
8
8
  r as ConnectionProxyTypeEnum,
9
9
  p as ConnectionStatusStatusEnum,
@@ -35,50 +35,52 @@ export {
35
35
  Q as FreshnessFallbackEnum,
36
36
  W as GivenControlEnum,
37
37
  L as LedgerEntryStrategyEnum,
38
- B as LogMessageSeverityEnum,
39
- j as ManifestEntryFreshnessFallbackEnum,
38
+ O as LogMessageSeverityEnum,
39
+ B as ManifestEntryFreshnessFallbackEnum,
40
+ j as ManifestEntryOriginEnum,
40
41
  q as ManifestEntryRefreshEnum,
41
42
  w as MaterializationActionActionEnum,
42
43
  G as MaterializationStatus,
43
44
  I as MaterializationsApi,
44
- O as MaterializationsApiAxiosParamCreator,
45
- H as MaterializationsApiFactory,
46
- J as MaterializationsApiFp,
47
- K as ModelsApi,
48
- U as ModelsApiAxiosParamCreator,
49
- V as ModelsApiFactory,
50
- X as ModelsApiFp,
51
- Y as NotebookCellResultTypeEnum,
52
- Z as NotebookCellTypeEnum,
53
- _ as NotebooksApi,
54
- $ as NotebooksApiAxiosParamCreator,
55
- aa as NotebooksApiFactory,
56
- sa as NotebooksApiFp,
57
- ea as PackageManifestBindingStatusEnum,
58
- ta as PackageQueryableSourcesEnum,
45
+ H as MaterializationsApiAxiosParamCreator,
46
+ J as MaterializationsApiFactory,
47
+ K as MaterializationsApiFp,
48
+ U as ModelsApi,
49
+ V as ModelsApiAxiosParamCreator,
50
+ X as ModelsApiFactory,
51
+ Y as ModelsApiFp,
52
+ Z as NotebookCellResultTypeEnum,
53
+ _ as NotebookCellTypeEnum,
54
+ $ as NotebooksApi,
55
+ aa as NotebooksApiAxiosParamCreator,
56
+ sa as NotebooksApiFactory,
57
+ ea as NotebooksApiFp,
58
+ ta as PackageManifestBindingStatusEnum,
59
+ ia as PackageQueryableSourcesEnum,
59
60
  oa as PackageScopeEnum,
60
- ia as PackageWarningsInnerSeverityEnum,
61
- na as PackagesApi,
62
- ra as PackagesApiAxiosParamCreator,
63
- pa as PackagesApiFactory,
64
- Aa as PackagesApiFp,
65
- ua as PostgresConnectionSslmodeEnum,
66
- ma as PublisherApi,
67
- ca as PublisherApiAxiosParamCreator,
68
- la as PublisherApiFactory,
69
- Ea as PublisherApiFp,
70
- ya as QueryClass,
71
- Ca as QueryResultQueryRowLimitSourceEnum,
72
- Fa as QueryResultServedFromEnum,
73
- Pa as Realization,
74
- ba as RunContextTriggerEnum,
75
- ga as ServerProvider,
76
- Ma as ServerStatusOperationalStateEnum,
77
- Sa as ThemeDefaultModeEnum,
78
- ka as WatchModeApi,
79
- da as WatchModeApiAxiosParamCreator,
80
- ha as WatchModeApiFactory,
81
- xa as WatchModeApiFp,
82
- Ta as globalQueryClient,
83
- va as useServer
61
+ na as PackageWarningsInnerSeverityEnum,
62
+ ra as PackagesApi,
63
+ pa as PackagesApiAxiosParamCreator,
64
+ Aa as PackagesApiFactory,
65
+ ua as PackagesApiFp,
66
+ ma as PersistSourcePlanOriginEnum,
67
+ ca as PostgresConnectionSslmodeEnum,
68
+ la as PublisherApi,
69
+ Ea as PublisherApiAxiosParamCreator,
70
+ ya as PublisherApiFactory,
71
+ Ca as PublisherApiFp,
72
+ Fa as QueryClass,
73
+ Pa as QueryResultQueryRowLimitSourceEnum,
74
+ ba as QueryResultServedFromEnum,
75
+ ga as Realization,
76
+ Ma as RunContextTriggerEnum,
77
+ Sa as ServerProvider,
78
+ ka as ServerStatusOperationalStateEnum,
79
+ da as ThemeDefaultModeEnum,
80
+ ha as WatchModeApi,
81
+ xa as WatchModeApiAxiosParamCreator,
82
+ Ta as WatchModeApiFactory,
83
+ va as WatchModeApiFp,
84
+ Da as globalQueryClient,
85
+ fa as useServer
84
86
  };
@@ -1,5 +1,5 @@
1
1
  import { createOnigurumaEngine as vt, getDefaultWasmLoader as Pr, loadWasm as Or } from "./engine-oniguruma-C4vnmooL.es.js";
2
- import { w as At, s as wn, f as Mr, a as Fr, b as Br, c as Dt, z as jr, h as Dr, d as Ur } from "./index-BnPm20XF.es.js";
2
+ import { w as At, s as wn, f as Mr, a as Fr, b as Br, c as Dt, z as jr, h as Dr, d as Ur } from "./index-Dx9MNCoh.es.js";
3
3
  let V = class extends Error {
4
4
  constructor(e) {
5
5
  super(e), this.name = "ShikiError";