@malloy-publisher/sdk 0.0.237 → 0.0.239

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"),H=require("@tanstack/react-query"),h=require("axios"),A=require("react"),y=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)}},Ne={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},Ee={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={Embedded:"embedded",Materialized:"materialized"},Qe={Equal:"equal",In:"in",Like:"like",GreaterThan:"greater_than",LessThan:"less_than"},ze={Live:"live",StaleOk:"stale_ok",Fail:"fail"},$e={Select:"select",Multiselect:"multiselect"},qe={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},Le={Live:"live",StaleOk:"stale_ok",Fail:"fail"},je={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},He={Markdown:"markdown",Code:"code"},De={Markdown:"markdown",Code:"code"},We={Version:"version",Package:"package"},_e={Declared:"declared",All:"all"},Ge={Unbound:"unbound",Bound:"bound",LiveFallback:"live_fallback"},Ye={Error:"error",Warn:"warn"},Ke={Viewport:"viewport"},Je={Disable:"disable",NoVerify:"no-verify",VerifyCa:"verify-ca",VerifyFull:"verify-full"},Xe={Interactive:"interactive",Materialize:"materialize",Index:"index",Ops:"ops"},Ze={Query:"query",ServerDefault:"server_default"},ea={Snapshot:"SNAPSHOT",Copy:"COPY"},aa={Publish:"publish",OnDemand:"on_demand",Scheduler:"scheduler"},ta={Initializing:"initializing",Serving:"serving",Draining:"draining",Throttled:"throttled"},na={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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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={},O={};t&&(O.tableNames=t),b(c,O);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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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,O)=>V(c,h,u,l)(p,d||O)},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,O)=>V(c,h,u,l)(p,d||O)},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)}}},ra=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}}}},D=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)}}},oa=function(l,n,e){const r=D(l);return{testConnectionConfiguration(a,t){return r.testConnectionConfiguration(a,t).then(o=>o(e,n))}}};class sa extends x{testConnectionConfiguration(n,e){return D(this.configuration).testConnectionConfiguration(n,e).then(r=>r(this.axios,this.basePath))}}const ee=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=ee(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)}}},la=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 ae extends x{listDatabases(n,e,r,a){return W(this.configuration).listDatabases(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const te=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=te(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)}}},ca=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 ne 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 re=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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},{url:v(s),options:i}}}},R=function(l){const n=re(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)}}},ia=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 oe 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 da={Stop:"stop"},se=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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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=se(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)}}},pa=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 le 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 ce=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 O;l&&(O=l.baseOptions);const k={method:"GET",...O,...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=O&&O.headers?O.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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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=ce(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),O=l?.serverIndex??0,k=g["NotebooksApi.executeNotebookCell"]?.[O]?.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)}}},ma=function(l,n,e){const r=B(l);return{executeNotebookCell(a,t,o,s,c,i,d,p,O){return r.executeNotebookCell(a,t,o,s,c,i,d,p,O).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 ie 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 ha={True:"true",False:"false"},de=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 O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...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}}}},N=function(l){const n=de(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)}}},ua=function(l,n,e){const r=N(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 pe extends x{createPackage(n,e,r){return N(this.configuration).createPackage(n,e,r).then(a=>a(this.axios,this.basePath))}deletePackage(n,e,r){return N(this.configuration).deletePackage(n,e,r).then(a=>a(this.axios,this.basePath))}getPackage(n,e,r,a,t){return N(this.configuration).getPackage(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}listPackages(n,e){return N(this.configuration).listPackages(n,e).then(r=>r(this.axios,this.basePath))}updatePackage(n,e,r,a){return N(this.configuration).updatePackage(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const me=function(l){return{listPages:async(n,e,r={})=>{m("listPages","environmentName",n),m("listPages","packageName",e);const a="/environments/{environmentName}/packages/{packageName}/pages".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=me(l);return{async listPages(e,r,a){const t=await n.listPages(e,r,a),o=l?.serverIndex??0,s=g["PagesApi.listPages"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)}}},ga=function(l,n,e){const r=_(l);return{listPages(a,t,o){return r.listPages(a,t,o).then(s=>s(e,n))}}};class he extends x{listPages(n,e,r){return _(this.configuration).listPages(n,e,r).then(a=>a(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)}}},Pa=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)}}},ba=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"},va='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',Va=y.styled(y.Card)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),Oa=y.styled(y.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),ya=y.styled(y.CardMedia)({padding:"0"}),Sa=y.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"}));y.styled("div")(({theme:l})=>({marginBottom:"40px",paddingBottom:"24px",borderBottom:`1px solid ${l.palette.divider}`}));const Ca=y.styled("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),ka=y.styled("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Aa=y.styled("div")({backgroundColor:"transparent",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"none",boxShadow:"none",marginBottom:"0"});y.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}));y.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 xa=y.styled("div")({height:"100%"});y.styled("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const Ia=y.styled("div")({height:"75vh",width:"100%",overflowY:"auto"});y.styled("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Ra=y.styled(y.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)"}})),Ta=y.styled(y.CardContent)({padding:"0","&:last-child":{paddingBottom:"0"}}),Na=y.styled("div")(({theme:l})=>({fontSize:"0.875rem",fontWeight:500,color:l.palette.text.secondary,marginBottom:"16px",paddingBottom:"8px",borderBottom:`1px solid ${l.palette.divider}`}));y.styled("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"});const Ea=[F.teal,F.orange,F.darkBlue,"#66cedc","#ec72b8","#f9c85b","#aacd85","#b87ced"],Ua="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",L={defaultMode:"light",allowUserToggle:!0,palette:{series:Ea,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:Ua,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 O of Ve){const k=p.palette?.[O];k&&(s[O]={...s[O],...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 Oe(l,n,e){const r=n??l??"light";return r==="auto"?e?"dark":"light":r}const ye=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(ye.Provider,{value:s,children:t})}function Ma(){const l=A.useContext(ye);return l||{theme:G([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const Ce=new H.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),wa={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},j="publisher:themeMode";function Fa(){if(!(typeof window>"u"))try{const l=window.localStorage.getItem(j);if(l==="light"||l==="dark"||l==="auto")return l}catch{}}function fa(l){if(!(typeof window>"u"))try{l===void 0?window.localStorage.removeItem(j):window.localStorage.setItem(j,l)}catch{}}function Ba(){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 le(a,e,r),publisher:new ge(a,e,r),environments:new ne(a,e,r),packages:new pe(a,e,r),pages:new he(a,e,r),notebooks:new ie(a,e,r),connections:new X(a,e,r),databases:new ae(a,e,r),materializations:new oe(a,e,r),watchMode:new be(a,e,r)}},za=l=>Q.jsx(H.QueryClientProvider,{client:Ce,children:Q.jsx($a,{...l})}),$a=({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=H.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 O=A.useMemo(()=>[i,a],[i,a]),[k,f]=A.useState(Fa),[I,z]=A.useState(Ba);A.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const E=window.matchMedia("(prefers-color-scheme: dark)"),K=Re=>z(Re.matches);return E.addEventListener("change",K),()=>E.removeEventListener("change",K)},[]);const Ae=A.useCallback(E=>{f(E),fa(E)},[]),Y=i?.allowUserToggle??!0,$=Y?k:void 0,xe=A.useMemo(()=>Oe(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:O,mode:xe,userChoice:$,setMode:Ae,allowUserToggle:Y,children:l})})},qa=()=>{const l=A.useContext(ke);if(l===void 0)throw new Error("useServer must be used within a ServerProvider");return l};exports.AttachedDatabaseTypeEnum=Ne;exports.AzureConnectionAuthTypeEnum=Ee;exports.CHART_RESULT_QUERY_OPTIONS=wa;exports.CleanMetricCard=Aa;exports.CleanNotebookCell=ka;exports.CleanNotebookContainer=Sa;exports.CleanNotebookSection=Ca;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=ra;exports.ConnectionsApiFp=S;exports.ConnectionsTestApi=sa;exports.ConnectionsTestApiAxiosParamCreator=Z;exports.ConnectionsTestApiFactory=oa;exports.ConnectionsTestApiFp=D;exports.DEFAULT_THEME=L;exports.DatabaseTypeEnum=Be;exports.DatabasesApi=ae;exports.DatabasesApiAxiosParamCreator=ee;exports.DatabasesApiFactory=la;exports.DatabasesApiFp=W;exports.EnvironmentsApi=ne;exports.EnvironmentsApiAxiosParamCreator=te;exports.EnvironmentsApiFactory=ca;exports.EnvironmentsApiFp=T;exports.ExecuteNotebookCellBypassFiltersEnum=ha;exports.FilterTypeEnum=Qe;exports.FreshnessFallbackEnum=ze;exports.GivenControlEnum=$e;exports.LogMessageSeverityEnum=qe;exports.MALLOY_BRAND=F;exports.MONO_FONT_FAMILY=va;exports.ManifestEntryFreshnessFallbackEnum=Le;exports.MaterializationActionActionEnum=da;exports.MaterializationStatus=je;exports.MaterializationsApi=oe;exports.MaterializationsApiAxiosParamCreator=re;exports.MaterializationsApiFactory=ia;exports.MaterializationsApiFp=R;exports.ModelsApi=le;exports.ModelsApiAxiosParamCreator=se;exports.ModelsApiFactory=pa;exports.ModelsApiFp=U;exports.NotebookCellResultTypeEnum=De;exports.NotebookCellTypeEnum=He;exports.NotebooksApi=ie;exports.NotebooksApiAxiosParamCreator=ce;exports.NotebooksApiFactory=ma;exports.NotebooksApiFp=B;exports.PER_MODE_COLOR_KEYS=Ve;exports.PackageCard=Ra;exports.PackageCardContent=Ta;exports.PackageManifestBindingStatusEnum=Ge;exports.PackageQueryableSourcesEnum=_e;exports.PackageScopeEnum=We;exports.PackageSectionTitle=Na;exports.PackageWarningsInnerSeverityEnum=Ye;exports.PackagesApi=pe;exports.PackagesApiAxiosParamCreator=de;exports.PackagesApiFactory=ua;exports.PackagesApiFp=N;exports.PageFitEnum=Ke;exports.PagesApi=he;exports.PagesApiAxiosParamCreator=me;exports.PagesApiFactory=ga;exports.PagesApiFp=_;exports.PostgresConnectionSslmodeEnum=Je;exports.PublisherApi=ge;exports.PublisherApiAxiosParamCreator=ue;exports.PublisherApiFactory=Pa;exports.PublisherApiFp=M;exports.QueryClass=Xe;exports.QueryResultQueryRowLimitSourceEnum=Ze;exports.Realization=ea;exports.RunContextTriggerEnum=aa;exports.ServerProvider=za;exports.ServerStatusOperationalStateEnum=ta;exports.StyledCard=Va;exports.StyledCardContent=Oa;exports.StyledCardMedia=ya;exports.StyledExplorerContent=Ia;exports.StyledExplorerPage=xa;exports.ThemeDefaultModeEnum=na;exports.ThemeProvider=Se;exports.WatchModeApi=be;exports.WatchModeApiAxiosParamCreator=Pe;exports.WatchModeApiFactory=ba;exports.WatchModeApiFp=w;exports.globalQueryClient=Ce;exports.resolveMode=Oe;exports.resolveTheme=G;exports.usePublisherTheme=Ma;exports.useServer=qa;
@@ -229,6 +229,12 @@ export interface BuildInstruction {
229
229
  * @memberof BuildInstruction
230
230
  */
231
231
  'destination'?: string;
232
+ /**
233
+ * Rebuild this source from scratch even if it declares `refresh=\"incremental\"` and has a recorded `covered_through` boundary: the build runs the ordinary full CTAS and the boundary is re-derived from the table it writes. The escape hatch for a boundary or a table that is no longer trusted. Per-source rather than only per-request because re-seeding is a per-source decision: a host may want one source rebuilt while the rest advance by delta in the same run. OR-ed with the request-level `reseed`, so either asks for this source to rebuild. Ignored for a source that is not incremental (such a source is always built in full). Note `forceRefresh` is NOT how you ask for this, in any mode: it only defeats skip-if-unchanged, which does not even run for an orchestrated build.
234
+ * @type {boolean}
235
+ * @memberof BuildInstruction
236
+ */
237
+ 'reseed'?: boolean;
232
238
  }
233
239
  /**
234
240
  * Build input. Per-source instructions assigned by the caller.
@@ -416,7 +422,7 @@ export interface CompileRequest {
416
422
  */
417
423
  'includeSql'?: boolean;
418
424
  /**
419
- * Per-query given values that override model defaults. Keys are given names declared in the model\'s `given:` block. Values must match the declared type (string, number, boolean, date, etc.). See Malloy givens documentation for accepted value shapes.
425
+ * Given *values* keyed by given name: what a caller sends, as distinct from `Given`, which describes what the model *accepts*. A collection of declarations is a plain array of `Given`, never this. Values are decoded and must match the declared type: a `number` given takes a JSON number, a `date` takes a bare `YYYY-MM-DD` string, a `timestamp` an ISO string with no zone, a `timestamptz` a full ISO string. `EncodedGivenValues` is the string-encoded counterpart.
420
426
  * @type {{ [key: string]: any; }}
421
427
  * @memberof CompileRequest
422
428
  */
@@ -764,11 +770,17 @@ export interface CreateMaterializationRequest {
764
770
  */
765
771
  'buildInstructions'?: BuildInstructions | null;
766
772
  /**
767
- * Build a new table even when a source\'s sourceEntityId is unchanged.
773
+ * Build a new table even when a source\'s sourceEntityId is unchanged — that is, defeat skip-if-unchanged, which would otherwise carry the existing table forward and run no SQL for that source. It means ONLY that. It never re-seeds a source declaring `refresh=\"incremental\"`: such a source is exempt from skip-if-unchanged anyway (its content address does not move when its data does), so there is nothing here for the flag to change, and reading it as \"rebuild from scratch\" would make a forced run — which is every scheduled fire — a full rebuild that no delta could ever follow. Ask for a rebuild with `reseed`. Has no effect at all on an orchestrated build: the host decides what gets built by instructing it, so no carry-forward runs.
768
774
  * @type {boolean}
769
775
  * @memberof CreateMaterializationRequest
770
776
  */
771
777
  'forceRefresh'?: boolean;
778
+ /**
779
+ * Rebuild every in-scope source declaring `refresh=\"incremental\"` from scratch, ignoring its recorded `covered_through` boundary, and re-derive the boundary from the table each rebuild writes. The escape hatch for a boundary or a table that is no longer trusted. Narrow it with `sourceNames`. Unlike `forceRefresh` this is about HOW an incremental source is built, not whether it is built at all, which is why the two are separate flags rather than one. An orchestrated caller can instead set `reseed` per source on each BuildInstruction, and the two are OR-ed: either asks for that source to rebuild.
780
+ * @type {boolean}
781
+ * @memberof CreateMaterializationRequest
782
+ */
783
+ 'reseed'?: boolean;
772
784
  /**
773
785
  * Restrict the plan/build to these persist source names. Omit = all persist sources.
774
786
  * @type {Array<string>}
@@ -1062,7 +1074,7 @@ export declare const FilterTypeEnum: {
1062
1074
  };
1063
1075
  export type FilterTypeEnum = typeof FilterTypeEnum[keyof typeof FilterTypeEnum];
1064
1076
  /**
1065
- * Freshness policy declared in malloy-publisher.json\'s `materialization.freshness` block. Fields are surfaced verbatim; invalid values are dropped (reported as absent), never defaulted.
1077
+ * Freshness policy declared in publisher.json\'s `materialization.freshness` block. Fields are surfaced verbatim; invalid values are dropped (reported as absent), never defaulted.
1066
1078
  * @export
1067
1079
  * @interface Freshness
1068
1080
  */
@@ -1106,7 +1118,7 @@ export interface GCSConnection {
1106
1118
  'secret': string;
1107
1119
  }
1108
1120
  /**
1109
- * A given (runtime parameter) declared on a Malloy model via the `given:` keyword. Surfaced on `CompiledModel.givens` and `Source.givens` so callers can introspect what runtime values a model accepts.
1121
+ * A given (runtime parameter) declared on a Malloy model via the `given:` keyword. Surfaced on `CompiledModel.givens` and `Source.givens` so callers can introspect what runtime values a model accepts. `givens` always names a collection of these declarations. Values keyed by given name are `GivenValues` (or `EncodedGivenValues` in the form that survives a URL), and a bare list of names is spelled `givenNames`. It also carries how the given should be presented as an input control (`label`, `control`, `rangeMin`, `rangeMax`, `suggest`), derived from the declaration\'s own tags. That contract belongs to the given rather than to any one surface, which is what lets a notebook and an SDK host render the same control without restating it. Those five fields describe the contract a renderer implements; no endpoint populates them yet, so they are absent from every response today.
1110
1122
  * @export
1111
1123
  * @interface Given
1112
1124
  */
@@ -1135,6 +1147,66 @@ export interface Given {
1135
1147
  * @memberof Given
1136
1148
  */
1137
1149
  'default'?: string;
1150
+ /**
1151
+ * Display label from the declaration\'s `# label=` tag
1152
+ * @type {string}
1153
+ * @memberof Given
1154
+ */
1155
+ 'label'?: string;
1156
+ /**
1157
+ * How the control renders when the choice is between a single-pick and a multi-pick list. Omitted means infer from the given\'s type. A slider is not one of these values; it is signalled by `rangeMin` and `rangeMax` instead, per the rule on those fields.
1158
+ * @type {string}
1159
+ * @memberof Given
1160
+ */
1161
+ 'control'?: GivenControlEnum;
1162
+ /**
1163
+ * Slider lower bound from `# range_min=`. The two bounds are what signal a slider, so a `number` or `filter<number>` given renders as one when BOTH are present and as a plain number input otherwise, so a lone bound changes nothing about the control.
1164
+ * @type {number}
1165
+ * @memberof Given
1166
+ */
1167
+ 'rangeMin'?: number;
1168
+ /**
1169
+ * Slider upper bound from `# range_max=`. See `rangeMin` for the rule that turns the pair into a slider.
1170
+ * @type {number}
1171
+ * @memberof Given
1172
+ */
1173
+ 'rangeMax'?: number;
1174
+ /**
1175
+ *
1176
+ * @type {GivenSuggest}
1177
+ * @memberof Given
1178
+ */
1179
+ 'suggest'?: GivenSuggest;
1180
+ }
1181
+ export declare const GivenControlEnum: {
1182
+ readonly Select: "select";
1183
+ readonly Multiselect: "multiselect";
1184
+ };
1185
+ export type GivenControlEnum = typeof GivenControlEnum[keyof typeof GivenControlEnum];
1186
+ /**
1187
+ * Where a select or multiselect control gets its options: a named `query`, a `source` + `dimension` pair, or a `query` with a `dimension` naming which of its columns to read. All three run through the ordinary query endpoint. With `query` alone the first column of each row is used, so a single-column `group_by` needs no `dimension`. Give `dimension` alongside `query` when the query returns more than one column.
1188
+ * @export
1189
+ * @interface GivenSuggest
1190
+ */
1191
+ export interface GivenSuggest {
1192
+ /**
1193
+ *
1194
+ * @type {string}
1195
+ * @memberof GivenSuggest
1196
+ */
1197
+ 'query'?: string;
1198
+ /**
1199
+ *
1200
+ * @type {string}
1201
+ * @memberof GivenSuggest
1202
+ */
1203
+ 'source'?: string;
1204
+ /**
1205
+ *
1206
+ * @type {string}
1207
+ * @memberof GivenSuggest
1208
+ */
1209
+ 'dimension'?: string;
1138
1210
  }
1139
1211
  /**
1140
1212
  * A log message from render tag validation
@@ -1290,6 +1362,18 @@ export interface ManifestEntry {
1290
1362
  * @memberof ManifestEntry
1291
1363
  */
1292
1364
  'freshnessFallback'?: ManifestEntryFreshnessFallbackEnum;
1365
+ /**
1366
+ * For a source declaring `refresh=\"incremental\"`, the EXCLUSIVE upper end of the watermark range this table is now known to contain — the boundary the next refresh will start from. Canonical scalar text (`2024-07-01`, `2024-07-01 12:00:00`, `41`), interpreted per `coveredThroughType`. Reported so a caller can observe and verify incremental progress rather than infer it: a value that advanced between runs is a delta that applied. Absent for a non-incremental source, and for an incremental one whose source is empty (no boundary is derivable, so none is recorded).
1367
+ * @type {string}
1368
+ * @memberof ManifestEntry
1369
+ */
1370
+ 'coveredThrough'?: string;
1371
+ /**
1372
+ * The Malloy type of `coveredThrough` (`date`, `timestamp`, `number`, `string`), which decides how its text is compared and rendered. Present exactly when `coveredThrough` is.
1373
+ * @type {string}
1374
+ * @memberof ManifestEntry
1375
+ */
1376
+ 'coveredThroughType'?: string;
1293
1377
  }
1294
1378
  export declare const ManifestEntryFreshnessFallbackEnum: {
1295
1379
  readonly Live: "live";
@@ -1648,7 +1732,7 @@ export interface Package {
1648
1732
  */
1649
1733
  'location'?: string;
1650
1734
  /**
1651
- * Package-level Malloy Persistence scope mode, declared once at the malloy-publisher.json root and applied uniformly to every persist source and index in the package. `package` (the default) = persisted artifacts are package-scoped: reused across the package\'s published versions whenever they still satisfy freshness. `version` = version-scoped: each artifact is owned by one published version. There is no per-source/per-dimension scope. A `materialization.schedule` cron is legal only when `scope: version` (a package-scoped lineage is reused across versions, so a single per-version cadence is meaningless). Emitted whenever the package is loaded; defaults to `package` when the manifest omits it.
1735
+ * Package-level Malloy Persistence scope mode, declared once at the publisher.json root and applied uniformly to every persist source and index in the package. `package` (the default) = persisted artifacts are package-scoped: reused across the package\'s published versions whenever they still satisfy freshness. `version` = version-scoped: each artifact is owned by one published version. There is no per-source/per-dimension scope. A `materialization.schedule` cron is legal only when `scope: version` (a package-scoped lineage is reused across versions, so a single per-version cadence is meaningless). Emitted whenever the package is loaded; defaults to `package` when the manifest omits it.
1652
1736
  * @type {string}
1653
1737
  * @memberof Package
1654
1738
  */
@@ -1666,7 +1750,7 @@ export interface Package {
1666
1750
  */
1667
1751
  'exploresWarnings'?: Array<string>;
1668
1752
  /**
1669
- * Non-fatal render-tag findings collected when the package loaded: a render annotation (e.g. `# big_value` or `# currency`) misconfigured for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time but does not stop the model compiling or the package loading. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings.
1753
+ * Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value` or `# currency`) misconfigured for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a persist-target collision, and materialization-config problems that degrade attribution. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings.
1670
1754
  * @type {Array<PackageWarningsInner>}
1671
1755
  * @memberof Package
1672
1756
  */
@@ -1737,7 +1821,7 @@ export declare const PackageManifestBindingStatusEnum: {
1737
1821
  };
1738
1822
  export type PackageManifestBindingStatusEnum = typeof PackageManifestBindingStatusEnum[keyof typeof PackageManifestBindingStatusEnum];
1739
1823
  /**
1740
- * Package-level Malloy Persistence policy from malloy-publisher.json\'s `materialization` block. Surfaced verbatim so the control plane can drive scheduled version-level re-materialization without re-reading the package files. The object is emitted whenever the package is loaded, even when no policy is declared (all fields null), so its presence is an authoritative \"the manifest says this\" signal rather than \"policy missing\".
1824
+ * Package-level Malloy Persistence policy from publisher.json\'s `materialization` block. Surfaced verbatim so the control plane can drive scheduled version-level re-materialization without re-reading the package files. The object is emitted whenever the package is loaded, even when no policy is declared (all fields null), so its presence is an authoritative \"the manifest says this\" signal rather than \"policy missing\".
1741
1825
  * @export
1742
1826
  * @interface PackageMaterializationConfig
1743
1827
  */
@@ -1795,19 +1879,19 @@ export interface PackageStorageServeBindingsInner {
1795
1879
  */
1796
1880
  export interface PackageWarningsInner {
1797
1881
  /**
1798
- * Package-relative path of the model the finding is on.
1882
+ * Package-relative path of the model the finding is on. Absent for a package-wide finding.
1799
1883
  * @type {string}
1800
1884
  * @memberof PackageWarningsInner
1801
1885
  */
1802
1886
  'model'?: string;
1803
1887
  /**
1804
- * The query or view the finding sits on, e.g. `by_carrier` or `flights -> by_carrier`.
1888
+ * What the finding is about: the query or view a render finding sits on (`by_carrier`, `flights -> by_carrier`), or the source a materialization finding belongs to. Absent when a finding spans several, in which case the message names them.
1805
1889
  * @type {string}
1806
1890
  * @memberof PackageWarningsInner
1807
1891
  */
1808
- 'target'?: string;
1892
+ 'subject'?: string;
1809
1893
  /**
1810
- * The render validator\'s description of the problem.
1894
+ * A description of the problem.
1811
1895
  * @type {string}
1812
1896
  * @memberof PackageWarningsInner
1813
1897
  */
@@ -1908,7 +1992,7 @@ export interface PersistSourcePlan {
1908
1992
  */
1909
1993
  'sql': string;
1910
1994
  /**
1911
- * The source\'s declared `#@ persist ... refresh=...` value (\"full\" | \"incremental\"), reported verbatim; null = unset. Metadata pass-through — inert to the publisher today.
1995
+ * The source\'s declared `#@ persist ... refresh=...` value, reported verbatim; null = unset (which means \"full\"). Read and VALIDATED by the publisher, no longer an inert pass-through: a value outside {\"full\", \"incremental\"} is a publish rejection, and `refresh=\"incremental\"` additionally requires a `watermark=` naming one output dimension (see `annotationFields`). An incremental source advances its serving table by a bounded delta in place instead of being rebuilt, so the mode also governs the build path — which is why it is validated rather than passed through.
1912
1996
  * @type {string}
1913
1997
  * @memberof PersistSourcePlan
1914
1998
  */
@@ -1934,7 +2018,7 @@ export interface PersistSourcePlan {
1934
2018
  */
1935
2019
  'columns': Array<Column>;
1936
2020
  /**
1937
- * All key=value fields of the source\'s `#@ persist` annotation (e.g. `name`, `realization`). The control plane uses `name` as the materialized table name (it may carry a dialect container path like `dataset.table`). Returned as the full set so new persist directives need no publisher change.
2021
+ * All key=value fields of the source\'s `#@ persist` annotation (e.g. `name`, `realization`). The control plane uses `name` as the materialized table name (it may carry a dialect container path like `dataset.table`). Returned as the full set so new persist directives need no publisher change; an unrecognized key rides through here and is reported as a package warning, never a rejection. Recognized keys beyond `name`/`realization`/`storage`, both read from the EFFECTIVE merged tag (a source extending a persisted parent inherits the parent\'s keys, and its own keys merge over them per key): * `watermark` — one output dimension name, monotone non-decreasing. Required by `refresh=\"incremental\"`; the platform derives each refresh\'s half-open range from it. Must be a single quoted string naming a column of `columns`. * `merge_key` — comma-separated output dimension names, none of them the watermark. Declares row identity for a source whose rows are restated with a LATER watermark value, which selects a MERGE apply; omitted, the delta replaces the range instead. Compound keys go in one quoted string (`merge_key=\"order_id, region\"`). Both are validated at publish against the compiled output schema, so a dangling or stale name is rejected rather than deferred to a build. Neither participates in `sourceEntityId`: adding a watermark to an existing source must not re-address its table.
1938
2022
  * @type {{ [key: string]: string; }}
1939
2023
  * @memberof PersistSourcePlan
1940
2024
  */
@@ -2184,7 +2268,7 @@ export interface QueryRequest {
2184
2268
  */
2185
2269
  'bypassFilters'?: boolean;
2186
2270
  /**
2187
- * Per-query given values that override model defaults. Keys are given names declared in the model\'s `given:` block. Values must match the declared type (string, number, boolean, date, etc.). See Malloy givens documentation for accepted value shapes.
2271
+ * Given *values* keyed by given name: what a caller sends, as distinct from `Given`, which describes what the model *accepts*. A collection of declarations is a plain array of `Given`, never this. Values are decoded and must match the declared type: a `number` given takes a JSON number, a `date` takes a bare `YYYY-MM-DD` string, a `timestamp` an ISO string with no zone, a `timestamptz` a full ISO string. `EncodedGivenValues` is the string-encoded counterpart.
2188
2272
  * @type {{ [key: string]: any; }}
2189
2273
  * @memberof QueryRequest
2190
2274
  */
@@ -2261,11 +2345,11 @@ export type QueryResultQueryRowLimitSourceEnum = typeof QueryResultQueryRowLimit
2261
2345
  */
2262
2346
  export interface RawNotebook {
2263
2347
  /**
2264
- * Resource path to the notebook
2348
+ * Always `notebook`. Distinguishes the payload from the compiled-model shape returned by the model endpoint.
2265
2349
  * @type {string}
2266
2350
  * @memberof RawNotebook
2267
2351
  */
2268
- 'resource'?: string;
2352
+ 'type'?: string;
2269
2353
  /**
2270
2354
  * Name of the package containing this notebook
2271
2355
  * @type {string}
@@ -2277,13 +2361,19 @@ export interface RawNotebook {
2277
2361
  * @type {string}
2278
2362
  * @memberof RawNotebook
2279
2363
  */
2280
- 'path'?: string;
2364
+ 'modelPath'?: string;
2281
2365
  /**
2282
2366
  * Version of the Malloy compiler used to generate the notebook data
2283
2367
  * @type {string}
2284
2368
  * @memberof RawNotebook
2285
2369
  */
2286
2370
  'malloyVersion'?: string;
2371
+ /**
2372
+ * JSON string containing model metadata and structure information
2373
+ * @type {string}
2374
+ * @memberof RawNotebook
2375
+ */
2376
+ 'modelInfo'?: string;
2287
2377
  /**
2288
2378
  * Array of notebook cells containing raw markdown and code content
2289
2379
  * @type {Array<NotebookCell>}
@@ -2296,12 +2386,26 @@ export interface RawNotebook {
2296
2386
  * @memberof RawNotebook
2297
2387
  */
2298
2388
  'annotations'?: Array<string>;
2389
+ /**
2390
+ * Starting values for the notebook\'s controls, declared at its file level. URL parameters override these, which is why the two share a shape. Omitted when the notebook declares none.
2391
+ * @type {{ [key: string]: string; }}
2392
+ * @memberof RawNotebook
2393
+ */
2394
+ 'startingGivens'?: {
2395
+ [key: string]: string;
2396
+ };
2299
2397
  /**
2300
2398
  * Sources defined in the notebook\'s model
2301
2399
  * @type {Array<Source>}
2302
2400
  * @memberof RawNotebook
2303
2401
  */
2304
2402
  'sources'?: Array<Source>;
2403
+ /**
2404
+ * Named queries defined in the notebook\'s model
2405
+ * @type {Array<Query>}
2406
+ * @memberof RawNotebook
2407
+ */
2408
+ 'queries'?: Array<Query>;
2305
2409
  }
2306
2410
  /**
2307
2411
  * SNAPSHOT = warehouse clone/snapshot; COPY = CREATE TABLE AS SELECT.
@@ -4713,7 +4817,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
4713
4817
  * @param {string} [versionId] Version identifier for the package
4714
4818
  * @param {string} [filterParams] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. Targets the deprecated &#x60;#(filter)&#x60; annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
4715
4819
  * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
4716
- * @param {string} [givens] JSON-encoded given values keyed by given name
4820
+ * @param {string} [givens] A &#x60;GivenValues&#x60; object, JSON-encoded so it can travel in a query string. Values are typed as &#x60;GivenValues&#x60; describes them, not string-encoded as &#x60;EncodedGivenValues&#x60; would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
4717
4821
  * @param {*} [options] Override http request option.
4718
4822
  * @throws {RequiredError}
4719
4823
  */
@@ -4755,7 +4859,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
4755
4859
  * @param {string} [versionId] Version identifier for the package
4756
4860
  * @param {string} [filterParams] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. Targets the deprecated &#x60;#(filter)&#x60; annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
4757
4861
  * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
4758
- * @param {string} [givens] JSON-encoded given values keyed by given name
4862
+ * @param {string} [givens] A &#x60;GivenValues&#x60; object, JSON-encoded so it can travel in a query string. Values are typed as &#x60;GivenValues&#x60; describes them, not string-encoded as &#x60;EncodedGivenValues&#x60; would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
4759
4863
  * @param {*} [options] Override http request option.
4760
4864
  * @throws {RequiredError}
4761
4865
  */
@@ -4797,7 +4901,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
4797
4901
  * @param {string} [versionId] Version identifier for the package
4798
4902
  * @param {string} [filterParams] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. Targets the deprecated &#x60;#(filter)&#x60; annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
4799
4903
  * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
4800
- * @param {string} [givens] JSON-encoded given values keyed by given name
4904
+ * @param {string} [givens] A &#x60;GivenValues&#x60; object, JSON-encoded so it can travel in a query string. Values are typed as &#x60;GivenValues&#x60; describes them, not string-encoded as &#x60;EncodedGivenValues&#x60; would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
4801
4905
  * @param {*} [options] Override http request option.
4802
4906
  * @throws {RequiredError}
4803
4907
  */
@@ -4841,7 +4945,7 @@ export declare class NotebooksApi extends BaseAPI {
4841
4945
  * @param {string} [versionId] Version identifier for the package
4842
4946
  * @param {string} [filterParams] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. Targets the deprecated &#x60;#(filter)&#x60; annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
4843
4947
  * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
4844
- * @param {string} [givens] JSON-encoded given values keyed by given name
4948
+ * @param {string} [givens] A &#x60;GivenValues&#x60; object, JSON-encoded so it can travel in a query string. Values are typed as &#x60;GivenValues&#x60; describes them, not string-encoded as &#x60;EncodedGivenValues&#x60; would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
4845
4949
  * @param {*} [options] Override http request option.
4846
4950
  * @throws {RequiredError}
4847
4951
  * @memberof NotebooksApi
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Malloy Publisher - Semantic Model Serving API
3
- * The Malloy Publisher - Semantic Model Serving API provides comprehensive access to Malloy packages and their associated resources. A Malloy package is a directory containing Malloy models (.malloy files), Malloy notebooks (.malloynb files), and embedded databases (.parquet, .csv, and .xlsx files) with a malloy-publisher.json manifest at the package\'s root directory. ## Key Features - **Environment Management**: Create and manage environments with their associated packages and connections - **Package Lifecycle**: Full CRUD operations for Malloy packages and their versions - **Model & Notebook Access**: Retrieve and execute Malloy models and notebooks - **Connection Management**: Secure database connection configuration and testing - **Query Execution**: Execute queries against models and retrieve results - **Watch Mode**: Real-time file watching for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Environments ├── Connections └── Packages ├── Models ├── Notebooks └── Databases ``` For examples, see the Malloy samples packages (https://github.com/malloydata/malloy-samples) repository.
3
+ * The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, pages, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Pages**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Pages static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
4
4
  *
5
5
  * The version of the OpenAPI document: v0
6
6
  *
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-CXg4bBm6.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.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.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;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.PageFitEnum=e.PageFitEnum;exports.PagesApi=e.PagesApi;exports.PagesApiAxiosParamCreator=e.PagesApiAxiosParamCreator;exports.PagesApiFactory=e.PagesApiFactory;exports.PagesApiFp=e.PagesApiFp;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-nJNqhxy6.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.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.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;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.PageFitEnum=e.PageFitEnum;exports.PagesApi=e.PagesApi;exports.PagesApiAxiosParamCreator=e.PagesApiAxiosParamCreator;exports.PagesApiFactory=e.PagesApiFactory;exports.PagesApiFp=e.PagesApiFp;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,6 +1,6 @@
1
1
  /**
2
2
  * Malloy Publisher - Semantic Model Serving API
3
- * The Malloy Publisher - Semantic Model Serving API provides comprehensive access to Malloy packages and their associated resources. A Malloy package is a directory containing Malloy models (.malloy files), Malloy notebooks (.malloynb files), and embedded databases (.parquet, .csv, and .xlsx files) with a malloy-publisher.json manifest at the package\'s root directory. ## Key Features - **Environment Management**: Create and manage environments with their associated packages and connections - **Package Lifecycle**: Full CRUD operations for Malloy packages and their versions - **Model & Notebook Access**: Retrieve and execute Malloy models and notebooks - **Connection Management**: Secure database connection configuration and testing - **Query Execution**: Execute queries against models and retrieve results - **Watch Mode**: Real-time file watching for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Environments ├── Connections └── Packages ├── Models ├── Notebooks └── Databases ``` For examples, see the Malloy samples packages (https://github.com/malloydata/malloy-samples) repository.
3
+ * The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, pages, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Pages**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Pages static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
4
4
  *
5
5
  * The version of the OpenAPI document: v0
6
6
  *