@malloy-publisher/sdk 0.0.243 → 0.0.244

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 Te 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 Te(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)}},Ee={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={Live:"live",StaleOk:"stale_ok",Fail:"fail"},He={Delta:"delta",Full:"full",None:"none"},_e={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},We={Markdown:"markdown",Code:"code"},Ge={Markdown:"markdown",Code:"code"},Ye={Version:"version",Package:"package"},Ke={Declared:"declared",All:"all"},Je={Unbound:"unbound",Bound:"bound",LiveFallback:"live_fallback"},Xe={Error:"error",Warn:"warn"},Ze={Disable:"disable",NoVerify:"no-verify",VerifyCa:"verify-ca",VerifyFull:"verify-full"},ea={Interactive:"interactive",Materialize:"materialize",Index:"index",Ops:"ops"},aa={Query:"query",ServerDefault:"server_default"},ta={Storage:"storage",LiveFallback:"live_fallback"},na={Snapshot:"SNAPSHOT",Copy:"COPY"},ra={Publish:"publish",OnDemand:"on_demand",Scheduler:"scheduler"},oa={Initializing:"initializing",Serving:"serving",Draining:"draining",Throttled:"throttled"},sa={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={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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 d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...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 d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...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},d={};b(s,{});let y=c&&c.headers?c.headers:{};return i.headers={...d,...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 d={method:"GET",...i,...o},p={};b(c,{});let k=i&&i.headers?i.headers:{};return d.headers={...p,...k,...o.headers},{url:v(c),options:d}},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 d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...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 p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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},d={},p={};a&&(p.tableNames=a),b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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 d={method:"GET",...i,...o},p={},y={};t&&(y.tableNames=t),b(c,y);let k=i&&i.headers?i.headers:{};return d.headers={...p,...k,...o.headers},{url:v(c),options:d}},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={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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},d={},p={};d["Content-Type"]="application/json",b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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},d={},p={};d["Content-Type"]="application/json",b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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},d={},p={};d["Content-Type"]="application/json",b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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,d)=>V(o,h,u,l)(i,c||d)},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(d,p)=>V(s,h,u,l)(d,i||p)},async getTableInPackage(e,r,a,t,o,s){const c=await n.getTableInPackage(e,r,a,t,o,s),i=l?.serverIndex??0,d=g["ConnectionsApi.getTableInPackage"]?.[i]?.url;return(p,y)=>V(c,h,u,l)(p,d||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,d)=>V(o,h,u,l)(i,c||d)},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(d,p)=>V(s,h,u,l)(d,i||p)},async listTablesInPackage(e,r,a,t,o,s){const c=await n.listTablesInPackage(e,r,a,t,o,s),i=l?.serverIndex??0,d=g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;return(p,y)=>V(c,h,u,l)(p,d||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,d)=>V(o,h,u,l)(i,c||d)},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(d,p)=>V(s,h,u,l)(d,i||p)},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,d)=>V(o,h,u,l)(i,c||d)},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(d,p)=>V(s,h,u,l)(d,i||p)},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,d)=>V(o,h,u,l)(i,c||d)},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(d,p)=>V(s,h,u,l)(d,i||p)},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,d)=>V(o,h,u,l)(i,c||d)}}},la=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(d=>d(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(d=>d(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)}}},ca=function(l,n,e){const r=H(l);return{testConnectionConfiguration(a,t){return r.testConnectionConfiguration(a,t).then(o=>o(e,n))}}};class ia 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 d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...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)}}},da=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={},d={};r!==void 0&&(d.versionId=r),b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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,d)=>V(o,h,u,l)(i,c||d)}}},pa=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 d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...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 d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},s.data=C(e,s,l),{url:v(t),options:s}}}},T=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)}}},ma=function(l,n,e){const r=T(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 T(this.configuration).createEnvironment(n,e).then(r=>r(this.axios,this.basePath))}deleteEnvironment(n,e){return T(this.configuration).deleteEnvironment(n,e).then(r=>r(this.axios,this.basePath))}getEnvironment(n,e,r){return T(this.configuration).getEnvironment(n,e,r).then(a=>a(this.axios,this.basePath))}listEnvironments(n){return T(this.configuration).listEnvironments(n).then(e=>e(this.axios,this.basePath))}updateEnvironment(n,e,r){return T(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={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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},d={},p={};a!==void 0&&(p.dropTables=a),b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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 p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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={},d={};e!==void 0&&(d.limit=e),r!==void 0&&(d.offset=r),b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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},d={},p={};r!==void 0&&(p.limit=r),a!==void 0&&(p.offset=a),b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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},d={},p={};a!==void 0&&(p.action=a),b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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,d)=>V(o,h,u,l)(i,c||d)},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(d,p)=>V(s,h,u,l)(d,i||p)},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,d)=>V(o,h,u,l)(i,c||d)},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,d)=>V(o,h,u,l)(i,c||d)},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(d,p)=>V(s,h,u,l)(d,i||p)},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(d,p)=>V(s,h,u,l)(d,i||p)}}},ha=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 ua={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},d={},p={};d["Content-Type"]="application/json",b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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},d={},p={};d["Content-Type"]="application/json",b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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},d={},p={};a!==void 0&&(p.versionId=a),b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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={},d={};r!==void 0&&(d.versionId=r),b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...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(d,p)=>V(s,h,u,l)(d,i||p)},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(d,p)=>V(s,h,u,l)(d,i||p)},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(d,p)=>V(s,h,u,l)(d,i||p)},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,d)=>V(o,h,u,l)(i,c||d)}}},ga=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 de=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 d="/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))),p=new URL(d,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(p,I);let z=y&&y.headers?y.headers:{};return k.headers={...F,...z,...i.headers},{url:v(p),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},d={},p={};a!==void 0&&(p.versionId=a),b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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={},d={};r!==void 0&&(d.versionId=r),b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}}}},B=function(l){const n=de(l);return{async executeNotebookCell(e,r,a,t,o,s,c,i,d){const p=await n.executeNotebookCell(e,r,a,t,o,s,c,i,d),y=l?.serverIndex??0,k=g["NotebooksApi.executeNotebookCell"]?.[y]?.url;return(F,I)=>V(p,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(d,p)=>V(s,h,u,l)(d,i||p)},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,d)=>V(o,h,u,l)(i,c||d)}}},Pa=function(l,n,e){const r=B(l);return{executeNotebookCell(a,t,o,s,c,i,d,p,y){return r.executeNotebookCell(a,t,o,s,c,i,d,p,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 pe 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(d=>d(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 ba={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 d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...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 d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...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},d={},p={};r!==void 0&&(p.versionId=r),a!==void 0&&(p.reload=a),b(s,p);let y=c&&c.headers?c.headers:{};return i.headers={...d,...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={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}}}},E=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(d,p)=>V(s,h,u,l)(d,i||p)},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,d)=>V(o,h,u,l)(i,c||d)}}},va=function(l,n,e){const r=E(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 E(this.configuration).createPackage(n,e,r).then(a=>a(this.axios,this.basePath))}deletePackage(n,e,r){return E(this.configuration).deletePackage(n,e,r).then(a=>a(this.axios,this.basePath))}getPackage(n,e,r,a,t){return E(this.configuration).getPackage(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}listPackages(n,e){return E(this.configuration).listPackages(n,e).then(r=>r(this.axios,this.basePath))}updatePackage(n,e,r,a){return E(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)}}},Va=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 d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...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)}}},ya=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"},Oa='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',Sa=O.styled(O.Card)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),Ca=O.styled(O.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),ka=O.styled(O.CardMedia)({padding:"0"}),Aa=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 xa=O.styled("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Ia=O.styled("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Ra=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 Ta=O.styled("div")({height:"100%"});O.styled("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const Ea=O.styled("div")({height:"75vh",width:"100%",overflowY:"auto"});O.styled("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Na=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)"}})),Ua=O.styled(O.CardContent)({padding:"0","&:last-child":{paddingBottom:"0"}}),Ma=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 wa=[f.teal,f.orange,f.darkBlue,"#66cedc","#ec72b8","#f9c85b","#aacd85","#b87ced"],fa="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",L={defaultMode:"light",allowUserToggle:!0,palette:{series:wa,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:fa,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 p of l)if(p){Array.isArray(p.palette?.series)&&(a=[...p.palette.series]);for(const y of Ve){const k=p.palette?.[y];k&&(s[y]={...s[y],...k})}typeof p.font?.family=="string"&&(t=p.font.family),typeof p.font?.size=="number"&&(o=p.font.size)}const c=n==="dark",i=p=>s[p][n]??e[p]?.[n],d=i("background");return{mode:n,series:a,font:{family:t,size:o},background:d,tableHeader:i("tableHeader"),tableHeaderBackground:i("tableHeaderBackground"),tableBody:i("tableBody"),tile:i("tile"),tileTitle:i("tileTitle"),mapColor:i("mapColor"),tableBackground:d,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 Fa(){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}}}),Ba={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},D="publisher:themeMode";function Qa(){if(!(typeof window>"u"))try{const l=window.localStorage.getItem(D);if(l==="light"||l==="dark"||l==="auto")return l}catch{}}function za(l){if(!(typeof window>"u"))try{l===void 0?window.localStorage.removeItem(D):window.localStorage.setItem(D,l)}catch{}}function $a(){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),qa=(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 pe(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)}},La=l=>Q.jsx(j.QueryClientProvider,{client:Ce,children:Q.jsx(Da,{...l})}),Da=({children:l,getAccessToken:n,baseURL:e,mutable:r,theme:a})=>{const t=A.useMemo(()=>qa(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,d=s.isLoading;let p;s.isLoading||s.error?p=r:c?p=!1:p=r??!0;const y=A.useMemo(()=>[i,a],[i,a]),[k,F]=A.useState(Qa),[I,z]=A.useState($a);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),za(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:p,isLoadingStatus:d,instanceTheme:i};return Q.jsx(ke.Provider,{value:Ie,children:Q.jsx(Se,{layers:y,mode:xe,userChoice:$,setMode:Ae,allowUserToggle:Y,children:l})})},ja=()=>{const l=A.useContext(ke);if(l===void 0)throw new Error("useServer must be used within a ServerProvider");return l};exports.AttachedDatabaseTypeEnum=Ee;exports.AzureConnectionAuthTypeEnum=Ne;exports.CHART_RESULT_QUERY_OPTIONS=Ba;exports.CleanMetricCard=Ra;exports.CleanNotebookCell=Ia;exports.CleanNotebookContainer=Aa;exports.CleanNotebookSection=xa;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=la;exports.ConnectionsApiFp=S;exports.ConnectionsTestApi=ia;exports.ConnectionsTestApiAxiosParamCreator=Z;exports.ConnectionsTestApiFactory=ca;exports.ConnectionsTestApiFp=H;exports.DEFAULT_THEME=L;exports.DataAppFitEnum=Be;exports.DataAppsApi=ae;exports.DataAppsApiAxiosParamCreator=ee;exports.DataAppsApiFactory=da;exports.DataAppsApiFp=_;exports.DatabaseTypeEnum=Qe;exports.DatabasesApi=ne;exports.DatabasesApiAxiosParamCreator=te;exports.DatabasesApiFactory=pa;exports.DatabasesApiFp=W;exports.EnvironmentsApi=oe;exports.EnvironmentsApiAxiosParamCreator=re;exports.EnvironmentsApiFactory=ma;exports.EnvironmentsApiFp=T;exports.ExecuteNotebookCellBypassFiltersEnum=ba;exports.FilterTypeEnum=ze;exports.FreshnessFallbackEnum=$e;exports.GivenControlEnum=qe;exports.LedgerEntryStrategyEnum=Le;exports.LogMessageSeverityEnum=De;exports.MALLOY_BRAND=f;exports.MONO_FONT_FAMILY=Oa;exports.ManifestEntryFreshnessFallbackEnum=je;exports.ManifestEntryRefreshEnum=He;exports.MaterializationActionActionEnum=ua;exports.MaterializationStatus=_e;exports.MaterializationsApi=le;exports.MaterializationsApiAxiosParamCreator=se;exports.MaterializationsApiFactory=ha;exports.MaterializationsApiFp=R;exports.ModelsApi=ie;exports.ModelsApiAxiosParamCreator=ce;exports.ModelsApiFactory=ga;exports.ModelsApiFp=U;exports.NotebookCellResultTypeEnum=Ge;exports.NotebookCellTypeEnum=We;exports.NotebooksApi=pe;exports.NotebooksApiAxiosParamCreator=de;exports.NotebooksApiFactory=Pa;exports.NotebooksApiFp=B;exports.PER_MODE_COLOR_KEYS=Ve;exports.PackageCard=Na;exports.PackageCardContent=Ua;exports.PackageManifestBindingStatusEnum=Je;exports.PackageQueryableSourcesEnum=Ke;exports.PackageScopeEnum=Ye;exports.PackageSectionTitle=Ma;exports.PackageWarningsInnerSeverityEnum=Xe;exports.PackagesApi=he;exports.PackagesApiAxiosParamCreator=me;exports.PackagesApiFactory=va;exports.PackagesApiFp=E;exports.PostgresConnectionSslmodeEnum=Ze;exports.PublisherApi=ge;exports.PublisherApiAxiosParamCreator=ue;exports.PublisherApiFactory=Va;exports.PublisherApiFp=M;exports.QueryClass=ea;exports.QueryResultQueryRowLimitSourceEnum=aa;exports.QueryResultServedFromEnum=ta;exports.Realization=na;exports.RunContextTriggerEnum=ra;exports.ServerProvider=La;exports.ServerStatusOperationalStateEnum=oa;exports.StyledCard=Sa;exports.StyledCardContent=Ca;exports.StyledCardMedia=ka;exports.StyledExplorerContent=Ea;exports.StyledExplorerPage=Ta;exports.ThemeDefaultModeEnum=sa;exports.ThemeProvider=Se;exports.WatchModeApi=be;exports.WatchModeApiAxiosParamCreator=Pe;exports.WatchModeApiFactory=ya;exports.WatchModeApiFp=w;exports.globalQueryClient=Ce;exports.resolveMode=ye;exports.resolveTheme=G;exports.usePublisherTheme=Fa;exports.useServer=ja;
@@ -558,7 +558,7 @@ export interface Connection {
558
558
  */
559
559
  'fingerprint'?: string;
560
560
  /**
561
- * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
561
+ * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`) — except on a `storage=` build, whose read goes through DuckDB\'s query-passthrough and so sets the tag for the SESSION, which means the driver\'s own connection probes carry the build\'s bag too, BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
562
562
  * @type {{ [key: string]: string; }}
563
563
  * @memberof Connection
564
564
  */
@@ -566,7 +566,7 @@ export interface Connection {
566
566
  [key: string]: string;
567
567
  };
568
568
  /**
569
- * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
569
+ * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`) — except on a `storage=` build, whose read goes through DuckDB\'s query-passthrough and so sets the tag for the SESSION, which means the driver\'s own connection probes carry the build\'s bag too, BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
570
570
  * @type {{ [key: string]: string; }}
571
571
  * @memberof Connection
572
572
  */
@@ -1451,6 +1451,18 @@ export interface ManifestEntry {
1451
1451
  * @memberof ManifestEntry
1452
1452
  */
1453
1453
  'rowCount'?: number | null;
1454
+ /**
1455
+ * Wall-clock milliseconds spent building this one source\'s table — measured around the build itself, so it excludes planning, manifest distribution, and anything the orchestrator does around it. Null when no build ran, which is the normal case for an incremental source whose refresh SKIPPED because its boundary already covered the requested range. Null rather than 0 on purpose: a zero would average into build-duration series as an implausibly fast build. Per SOURCE, where a run-level duration is per instruction. A run that builds five sources reports five of these, and their sum is less than the run\'s duration by whatever the orchestration cost.
1456
+ * @type {number}
1457
+ * @memberof ManifestEntry
1458
+ */
1459
+ 'buildDurationMs'?: number | null;
1460
+ /**
1461
+ * Warehouse bytes SCANNED by the read that produced this table — the recurring cost of keeping the source materialized, and the debit against whatever materializing it saves on the read side. Bytes scanned, never bytes billed. The two differ by up to BigQuery\'s 10MB-per-query floor, and materialization refreshes are mostly small reads, so a field carrying one on some paths and the other elsewhere would be unsummable across a package\'s sources. **Null is not zero**, and which paths report a figure differs. A COLOCATED build reports one, taken from the Malloy connection\'s own statistics. A plain `storage=` build reports one when its warehouse read carried query metadata, and null otherwise. That read goes through DuckDB\'s query-passthrough rather than a Malloy connector, so the figure is read back from the warehouse\'s own accounting afterwards — which needs an identifier for the job, and obtaining one is part of how a TAGGED read is issued. An untagged read is issued the older way, which yields no such identifier, and reports null. A read whose connection cannot reach its own job records also reports null; that case is counted by `publisher_storage_build_attribution_skipped_total`. An incremental delta reports null because its statements do not run through a single call whose result reaches here. A chained `storage=` build reports null because it read its parent\'s already-materialized table and touched no warehouse at all. A POSTGRES source reports null on every path: the label that makes a read reportable is BigQuery\'s, and Postgres has no per-statement tag to carry one. And a bag whose every property is unusable as a BigQuery label key renders no label, so such a read is issued the untagged way and reports null too.
1462
+ * @type {number}
1463
+ * @memberof ManifestEntry
1464
+ */
1465
+ 'queryCostBytes'?: number | null;
1454
1466
  /**
1455
1467
  * Instant up to which the materialized artifact provably reflects its sources (full build: snapshot start). The freshness age anchor: age = now - dataAsOf. NOT build-completion time.
1456
1468
  * @type {string}
@@ -1952,7 +1964,7 @@ export interface PackageMaterializationConfig {
1952
1964
  */
1953
1965
  'freshness'?: Freshness | null;
1954
1966
  /**
1955
- * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
1967
+ * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`) — except on a `storage=` build, whose read goes through DuckDB\'s query-passthrough and so sets the tag for the SESSION, which means the driver\'s own connection probes carry the build\'s bag too, BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
1956
1968
  * @type {{ [key: string]: string; }}
1957
1969
  * @memberof PackageMaterializationConfig
1958
1970
  */
@@ -2076,7 +2088,7 @@ export interface PersistSourcePlan {
2076
2088
  */
2077
2089
  'freshness'?: Freshness | null;
2078
2090
  /**
2079
- * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
2091
+ * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`) — except on a `storage=` build, whose read goes through DuckDB\'s query-passthrough and so sets the tag for the SESSION, which means the driver\'s own connection probes carry the build\'s bag too, BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
2080
2092
  * @type {{ [key: string]: string; }}
2081
2093
  * @memberof PersistSourcePlan
2082
2094
  */
@@ -2123,7 +2135,7 @@ export interface PostQuerydataRequest {
2123
2135
  */
2124
2136
  'options'?: string;
2125
2137
  /**
2126
- * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
2138
+ * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`) — except on a `storage=` build, whose read goes through DuckDB\'s query-passthrough and so sets the tag for the SESSION, which means the driver\'s own connection probes carry the build\'s bag too, BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
2127
2139
  * @type {{ [key: string]: string; }}
2128
2140
  * @memberof PostQuerydataRequest
2129
2141
  */
@@ -2348,7 +2360,7 @@ export interface QueryRequest {
2348
2360
  [key: string]: any;
2349
2361
  };
2350
2362
  /**
2351
- * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
2363
+ * Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`) — except on a `storage=` build, whose read goes through DuckDB\'s query-passthrough and so sets the tag for the SESSION, which means the driver\'s own connection probes carry the build\'s bag too, BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
2352
2364
  * @type {{ [key: string]: string; }}
2353
2365
  * @memberof QueryRequest
2354
2366
  */
@@ -2404,12 +2416,35 @@ export interface QueryResult {
2404
2416
  * @memberof QueryResult
2405
2417
  */
2406
2418
  'queryRowLimitSource'?: QueryResultQueryRowLimitSourceEnum;
2419
+ /**
2420
+ * How this answer was produced, when the query reached the storage routing decision at all. `storage` — served from a materialized table in a `storage=` destination, via the virtual-source transform. The source\'s own warehouse was not queried. `live_fallback` — the query DID route to storage and the store then failed underneath it, and the source\'s freshness fallback allowed it to degrade to the live warehouse. **The rows are correct and the request succeeded**, which is why this needs its own value: it is indistinguishable from a storage hit at the call site, and treating it as one would report a healthy hit rate for a broken store. Null when the query never had a storage binding to consider — every query on a deployment with no `storage=` sources, which is the default. A storage-served result is byte-identical to a live one by design, so this field is the only way a caller can tell that materialization did anything, or show a user which of their sources it applies to.
2421
+ * @type {string}
2422
+ * @memberof QueryResult
2423
+ */
2424
+ 'servedFrom'?: QueryResultServedFromEnum | null;
2425
+ /**
2426
+ * Wall-clock milliseconds from the start of query handling through the end of execution. Covers compile, authorize, storage routing, prepare and the warehouse round trip. Narrower than the HTTP round trip — it excludes serialization and transport, so it reads lower than a caller\'s own stopwatch — and it is the same span the `malloy_model_query_duration` histogram records, so the two are directly comparable. Use it to attribute ONE query, which an aggregate histogram cannot do; use the histogram for rates and percentiles.
2427
+ * @type {number}
2428
+ * @memberof QueryResult
2429
+ */
2430
+ 'executionTimeMs'?: number;
2431
+ /**
2432
+ * Warehouse bytes this query SCANNED, as reported by the backend that ran it. Not what it is billed — see below. **Null is not zero.** It means the backend did not report a figure, and there are two very different reasons for that. Either the backend has no inline equivalent — BigQuery returns `totalBytesProcessed` in the job metadata the driver already fetches, while Snowflake exposes bytes only in `QUERY_HISTORY` keyed by query id (join it later on the `query_id` query-metadata property rather than paying a round trip per query) and Postgres has none at all. Or the query touched no warehouse, which is the case for every `servedFrom: storage` answer. Check `servedFrom` before reading a null as \"free\". Where it is reported it is the executed job\'s ACTUAL bytes processed, i.e. bytes SCANNED — not an estimate, and not what the query is billed. BigQuery bills a 10MB minimum per query, so a small read is billed well above this figure. Good for comparing queries against each other; not a spend number. Named `cost` rather than `scanned` because it carries Malloy\'s own `runStats.queryCostBytes` through verbatim — the name follows the figure back to its source. One asymmetry worth knowing on BigQuery: the connector reports a genuinely-zero scan as absent rather than as 0, so a fully cached query is indistinguishable here from a backend that cannot say. Free and unknown are the same value, and a savings calculation built on this will treat free queries as unmeasured rather than as free.
2433
+ * @type {number}
2434
+ * @memberof QueryResult
2435
+ */
2436
+ 'queryCostBytes'?: number | null;
2407
2437
  }
2408
2438
  export declare const QueryResultQueryRowLimitSourceEnum: {
2409
2439
  readonly Query: "query";
2410
2440
  readonly ServerDefault: "server_default";
2411
2441
  };
2412
2442
  export type QueryResultQueryRowLimitSourceEnum = typeof QueryResultQueryRowLimitSourceEnum[keyof typeof QueryResultQueryRowLimitSourceEnum];
2443
+ export declare const QueryResultServedFromEnum: {
2444
+ readonly Storage: "storage";
2445
+ readonly LiveFallback: "live_fallback";
2446
+ };
2447
+ export type QueryResultServedFromEnum = typeof QueryResultServedFromEnum[keyof typeof QueryResultServedFromEnum];
2413
2448
  /**
2414
2449
  * Raw Malloy notebook with unexecuted cell contents
2415
2450
  * @export
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-D40U1tBk.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.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-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,4 +1,4 @@
1
- import { A as e, a as t, C as o, b as i, ap as n, d as r, e as p, c as A, x as u, t as m, w as c, v as l, E, y as C, B as y, z as F, D as P, K as b, H as g, J as M, I as k, f as S, W as d, O as h, V as x, U as T, _ as v, X as D, Z as f, Y as z, ac as N, F as R, h as Q, G as W, L, i as B, M as j, j as w, a3 as G, k as I, a2 as O, $ as q, a1 as H, a0 as J, a7 as K, a4 as U, a6 as V, a5 as X, l as Y, N as Z, ab as _, a8 as $, aa, a9 as sa, n as ea, m as ta, P as oa, o as ia, ag as na, ad as ra, af as pa, ae as Aa, p as ua, ak as ma, ah as ca, aj as la, ai as Ea, Q as Ca, q as ya, R as Fa, r as Pa, S as ba, s as ga, T as Ma, ao as ka, al as Sa, an as da, am as ha, g as xa, u as Ta } from "../ServerProvider-FQ4I4dKu.es.js";
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";
2
2
  export {
3
3
  e as AttachedDatabaseTypeEnum,
4
4
  t as AzureConnectionAuthTypeEnum,
@@ -13,15 +13,15 @@ export {
13
13
  c as ConnectionsApiFactory,
14
14
  l as ConnectionsApiFp,
15
15
  E as ConnectionsTestApi,
16
- C as ConnectionsTestApiAxiosParamCreator,
17
- y as ConnectionsTestApiFactory,
16
+ y as ConnectionsTestApiAxiosParamCreator,
17
+ C as ConnectionsTestApiFactory,
18
18
  F as ConnectionsTestApiFp,
19
19
  P as DataAppFitEnum,
20
20
  b as DataAppsApi,
21
21
  g as DataAppsApiAxiosParamCreator,
22
22
  M as DataAppsApiFactory,
23
- k as DataAppsApiFp,
24
- S as DatabaseTypeEnum,
23
+ S as DataAppsApiFp,
24
+ k as DatabaseTypeEnum,
25
25
  d as DatabasesApi,
26
26
  h as DatabasesApiAxiosParamCreator,
27
27
  x as DatabasesApiFactory,
@@ -30,18 +30,18 @@ export {
30
30
  D as EnvironmentsApiAxiosParamCreator,
31
31
  f as EnvironmentsApiFactory,
32
32
  z as EnvironmentsApiFp,
33
- N as ExecuteNotebookCellBypassFiltersEnum,
34
- R as FilterTypeEnum,
33
+ R as ExecuteNotebookCellBypassFiltersEnum,
34
+ N as FilterTypeEnum,
35
35
  Q as FreshnessFallbackEnum,
36
36
  W as GivenControlEnum,
37
37
  L as LedgerEntryStrategyEnum,
38
38
  B as LogMessageSeverityEnum,
39
39
  j as ManifestEntryFreshnessFallbackEnum,
40
- w as ManifestEntryRefreshEnum,
41
- G as MaterializationActionActionEnum,
42
- I as MaterializationStatus,
43
- O as MaterializationsApi,
44
- q as MaterializationsApiAxiosParamCreator,
40
+ q as ManifestEntryRefreshEnum,
41
+ w as MaterializationActionActionEnum,
42
+ G as MaterializationStatus,
43
+ I as MaterializationsApi,
44
+ O as MaterializationsApiAxiosParamCreator,
45
45
  H as MaterializationsApiFactory,
46
46
  J as MaterializationsApiFp,
47
47
  K as ModelsApi,
@@ -67,17 +67,18 @@ export {
67
67
  ca as PublisherApiAxiosParamCreator,
68
68
  la as PublisherApiFactory,
69
69
  Ea as PublisherApiFp,
70
- Ca as QueryClass,
71
- ya as QueryResultQueryRowLimitSourceEnum,
72
- Fa as Realization,
73
- Pa as RunContextTriggerEnum,
74
- ba as ServerProvider,
75
- ga as ServerStatusOperationalStateEnum,
76
- Ma as ThemeDefaultModeEnum,
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,
77
78
  ka as WatchModeApi,
78
- Sa as WatchModeApiAxiosParamCreator,
79
- da as WatchModeApiFactory,
80
- ha as WatchModeApiFp,
81
- xa as globalQueryClient,
82
- Ta as useServer
79
+ da as WatchModeApiAxiosParamCreator,
80
+ ha as WatchModeApiFactory,
81
+ xa as WatchModeApiFp,
82
+ Ta as globalQueryClient,
83
+ va as useServer
83
84
  };
@@ -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-D2sq6csh.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";
3
3
  let V = class extends Error {
4
4
  constructor(e) {
5
5
  super(e), this.name = "ShikiError";