@malloy-publisher/sdk 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/{ServerProvider-DUFPY6Rv.es.js → ServerProvider-CWkd55-c.es.js} +130 -126
  2. package/dist/ServerProvider-Cn_LhKda.cjs.js +1 -0
  3. package/dist/client/api.d.ts +86 -39
  4. package/dist/client/index.cjs.js +1 -1
  5. package/dist/client/index.es.js +14 -13
  6. package/dist/components/Dashboard/Dashboard.d.ts +14 -1
  7. package/dist/components/Dashboard/DashboardTile.d.ts +16 -7
  8. package/dist/{core-hLahnv0W.cjs.js → core-CqRKhtoy.cjs.js} +1 -1
  9. package/dist/{core-lb28vQkR.es.js → core-mFfgwzPH.es.js} +1 -1
  10. package/dist/hooks/useSuggestOptions.d.ts +1 -1
  11. package/dist/index-DD4b_bt0.cjs.js +356 -0
  12. package/dist/{index-txw04ZbN.es.js → index-hiul47sw.es.js} +13455 -13248
  13. package/dist/index.cjs.js +1 -1
  14. package/dist/index.es.js +9 -9
  15. package/dist/theme/buildTableCssVars.d.ts +17 -1
  16. package/package.json +1 -1
  17. package/src/components/Connections/AddConnectionDialog.tsx +102 -23
  18. package/src/components/Connections/EditConnectionDialog.tsx +134 -33
  19. package/src/components/Connections/common.ts +30 -2
  20. package/src/components/Dashboard/Dashboard.spec.tsx +216 -0
  21. package/src/components/Dashboard/Dashboard.tsx +77 -17
  22. package/src/components/Dashboard/DashboardTile.spec.tsx +81 -0
  23. package/src/components/Dashboard/DashboardTile.tsx +58 -12
  24. package/src/components/Dashboard/tileGridColumn.spec.ts +35 -0
  25. package/src/components/Notebook/Notebook.spec.tsx +88 -0
  26. package/src/components/Notebook/Notebook.tsx +1 -0
  27. package/src/components/Package/Package.spec.tsx +113 -0
  28. package/src/components/Package/Package.tsx +29 -3
  29. package/src/components/RenderedResult/RenderedResult.tsx +47 -7
  30. package/src/hooks/useSuggestOptions.dom.spec.ts +91 -0
  31. package/src/hooks/useSuggestOptions.ts +6 -1
  32. package/src/theme/buildTableCssVars.spec.ts +19 -0
  33. package/src/theme/buildTableCssVars.ts +31 -0
  34. package/test/README.md +44 -0
  35. package/test/serverProvider.tsx +72 -0
  36. package/dist/ServerProvider-CTopDUWW.cjs.js +0 -1
  37. package/dist/index-DvEanVgc.cjs.js +0 -339
@@ -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,t=h){this.basePath=e,this.axios=t,n&&(this.configuration=n,this.basePath=n.basePath??e)}configuration}class Ue extends Error{constructor(n,e){super(e),this.field=n,this.name="RequiredError"}}const g={},b="https://example.com",m=function(l,n,e){if(e==null)throw new Ue(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(t=>q(l,t,e)):Object.keys(n).forEach(t=>q(l,n[t],`${e}${e!==""?".":""}${t}`)):l.has(e)?l.append(e,n):l.set(e,n))}const P=function(l,...n){const e=new URLSearchParams(l.search);q(e,n),l.search=e.toString()},C=function(l,n,e){const t=typeof l!="string";return(t&&e&&e.isJsonMime?e.isJsonMime(n.headers["Content-Type"]):t)?JSON.stringify(l!==void 0?l:{}):l||""},v=function(l){return l.pathname+l.search+l.hash},V=function(l,n,e,t){return(a=n,r=e)=>{const o={...l.options,url:(a.defaults.baseURL?"":t?.basePath??r)+l.url};return a.request(o)}},Me={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},we={ServicePrincipal:"service_principal",SasToken:"sas_token"},fe={Error:"error",Warn:"warn",Debug:"debug"},Fe={Append:"append",File:"file",Package:"package"},Be={Success:"success",Error:"error"},Qe={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},ze={Ssh:"ssh"},De={Ok:"ok",Failed:"failed"},$e={Viewport:"viewport"},qe={Embedded:"embedded",Materialized:"materialized"},Le={Equal:"equal",In:"in",Like:"like",GreaterThan:"greater_than",LessThan:"less_than"},je={Live:"live",StaleOk:"stale_ok",Fail:"fail"},He={Select:"select",Multiselect:"multiselect"},_e={Merge:"merge",RangeReplace:"range_replace"},We={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},Ge={Persist:"persist",Preaggregate:"preaggregate"},Ye={Live:"live",StaleOk:"stale_ok",Fail:"fail"},Ke={Delta:"delta",Full:"full",None:"none"},Je={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},Xe={Markdown:"markdown",Code:"code"},Ze={Markdown:"markdown",Code:"code"},ea={Version:"version",Package:"package"},aa={Declared:"declared",All:"all"},ta={Unbound:"unbound",Bound:"bound",LiveFallback:"live_fallback"},ra={Error:"error",Warn:"warn"},na={Persist:"persist",Preaggregate:"preaggregate"},oa={Disable:"disable",NoVerify:"no-verify",VerifyCa:"verify-ca",VerifyFull:"verify-full"},sa={Interactive:"interactive",Materialize:"materialize",Index:"index",Ops:"ops"},la={Query:"query",ServerDefault:"server_default"},ca={Storage:"storage",LiveFallback:"live_fallback"},ia={Snapshot:"SNAPSHOT",Copy:"COPY"},da={Storage:"storage",Colocated:"colocated",Preaggregate:"preaggregate"},pa={FreeParameter:"free_parameter",Given:"given",Authorize:"authorize",NotDuckdbPortable:"not_duckdb_portable",PublicSurfaceUnknown:"public_surface_unknown"},ma={Publish:"publish",OnDemand:"on_demand",Scheduler:"scheduler"},ha={Config:"config",CredentialChain:"credential_chain"},ua={Initializing:"initializing",Serving:"serving",Draining:"draining",Throttled:"throttled"},ga={Light:"light",Dark:"dark",Auto:"auto"},X=function(l){return{createConnection:async(n,e,t,a={})=>{m("createConnection","environmentName",n),m("createConnection","connectionName",e),m("createConnection","connection",t);const r="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},d={};i["Content-Type"]="application/json",P(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(t,c,l),{url:v(o),options:c}},deleteConnection:async(n,e,t={})=>{m("deleteConnection","environmentName",n),m("deleteConnection","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),r=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"DELETE",...o,...t},c={};P(r,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...t.headers},{url:v(r),options:s}},getConnection:async(n,e,t={})=>{m("getConnection","environmentName",n),m("getConnection","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),r=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...t},c={};P(r,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...t.headers},{url:v(r),options:s}},getTable:async(n,e,t,a,r={})=>{m("getTable","environmentName",n),m("getTable","connectionName",e),m("getTable","schemaName",t),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(t))).replace("{tablePath}",encodeURIComponent(String(a))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...r},d={};P(s,{});let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},{url:v(s),options:i}},getTableInPackage:async(n,e,t,a,r,o={})=>{m("getTableInPackage","environmentName",n),m("getTableInPackage","packageName",e),m("getTableInPackage","connectionName",t),m("getTableInPackage","schemaName",a),m("getTableInPackage","tablePath",r);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(t))).replace("{schemaName}",encodeURIComponent(String(a))).replace("{tablePath}",encodeURIComponent(String(r))),c=new URL(s,b);let i;l&&(i=l.baseOptions);const d={method:"GET",...i,...o},p={};P(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 t="/environments/{environmentName}/connections".replace("{environmentName}",encodeURIComponent(String(n))),a=new URL(t,b);let r;l&&(r=l.baseOptions);const o={method:"GET",...r,...e},s={};P(a,{});let i=r&&r.headers?r.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},listSchemas:async(n,e,t={})=>{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))),r=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...t},c={};P(r,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...t.headers},{url:v(r),options:s}},listSchemasInPackage:async(n,e,t,a={})=>{m("listSchemasInPackage","environmentName",n),m("listSchemasInPackage","packageName",e),m("listSchemasInPackage","connectionName",t);const r="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(t))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={};P(o,{});let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}},listTables:async(n,e,t,a,r={})=>{m("listTables","environmentName",n),m("listTables","connectionName",e),m("listTables","schemaName",t);const o="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...r},d={},p={};a&&(p.tableNames=a),P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},{url:v(s),options:i}},listTablesInPackage:async(n,e,t,a,r,o={})=>{m("listTablesInPackage","environmentName",n),m("listTablesInPackage","packageName",e),m("listTablesInPackage","connectionName",t),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(t))).replace("{schemaName}",encodeURIComponent(String(a))),c=new URL(s,b);let i;l&&(i=l.baseOptions);const d={method:"GET",...i,...o},p={},O={};r&&(O.tableNames=r),P(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,t,a={})=>{m("postQuerydata","environmentName",n),m("postQuerydata","connectionName",e),m("postQuerydata","postQuerydataRequest",t);const r="/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},d={};i["Content-Type"]="application/json",P(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(t,c,l),{url:v(o),options:c}},postQuerydataInPackage:async(n,e,t,a,r={})=>{m("postQuerydataInPackage","environmentName",n),m("postQuerydataInPackage","packageName",e),m("postQuerydataInPackage","connectionName",t),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(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...r},d={},p={};d["Content-Type"]="application/json",P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},i.data=C(a,i,l),{url:v(s),options:i}},postSqlsource:async(n,e,t,a={})=>{m("postSqlsource","environmentName",n),m("postSqlsource","connectionName",e),m("postSqlsource","postSqlsourceRequest",t);const r="/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},d={};i["Content-Type"]="application/json",P(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(t,c,l),{url:v(o),options:c}},postSqlsourceInPackage:async(n,e,t,a,r={})=>{m("postSqlsourceInPackage","environmentName",n),m("postSqlsourceInPackage","packageName",e),m("postSqlsourceInPackage","connectionName",t),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(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...r},d={},p={};d["Content-Type"]="application/json",P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},i.data=C(a,i,l),{url:v(s),options:i}},postTemporarytable:async(n,e,t,a={})=>{m("postTemporarytable","environmentName",n),m("postTemporarytable","connectionName",e),m("postTemporarytable","postSqlsourceRequest",t);const r="/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},d={};i["Content-Type"]="application/json",P(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(t,c,l),{url:v(o),options:c}},postTemporarytableInPackage:async(n,e,t,a,r={})=>{m("postTemporarytableInPackage","environmentName",n),m("postTemporarytableInPackage","packageName",e),m("postTemporarytableInPackage","connectionName",t),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(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...r},d={},p={};d["Content-Type"]="application/json",P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},i.data=C(a,i,l),{url:v(s),options:i}},updateConnection:async(n,e,t,a={})=>{m("updateConnection","environmentName",n),m("updateConnection","connectionName",e),m("updateConnection","updateConnectionRequest",t);const r="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"PATCH",...s,...a},i={},d={};i["Content-Type"]="application/json",P(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(t,c,l),{url:v(o),options:c}}}},S=function(l){const n=X(l);return{async createConnection(e,t,a,r){const o=await n.createConnection(e,t,a,r),s=l?.serverIndex??0,c=g["ConnectionsApi.createConnection"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async deleteConnection(e,t,a){const r=await n.deleteConnection(e,t,a),o=l?.serverIndex??0,s=g["ConnectionsApi.deleteConnection"]?.[o]?.url;return(c,i)=>V(r,h,u,l)(c,s||i)},async getConnection(e,t,a){const r=await n.getConnection(e,t,a),o=l?.serverIndex??0,s=g["ConnectionsApi.getConnection"]?.[o]?.url;return(c,i)=>V(r,h,u,l)(c,s||i)},async getTable(e,t,a,r,o){const s=await n.getTable(e,t,a,r,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,t,a,r,o,s){const c=await n.getTableInPackage(e,t,a,r,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,t){const a=await n.listConnections(e,t),r=l?.serverIndex??0,o=g["ConnectionsApi.listConnections"]?.[r]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async listSchemas(e,t,a){const r=await n.listSchemas(e,t,a),o=l?.serverIndex??0,s=g["ConnectionsApi.listSchemas"]?.[o]?.url;return(c,i)=>V(r,h,u,l)(c,s||i)},async listSchemasInPackage(e,t,a,r){const o=await n.listSchemasInPackage(e,t,a,r),s=l?.serverIndex??0,c=g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async listTables(e,t,a,r,o){const s=await n.listTables(e,t,a,r,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,t,a,r,o,s){const c=await n.listTablesInPackage(e,t,a,r,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,t,a,r){const o=await n.postQuerydata(e,t,a,r),s=l?.serverIndex??0,c=g["ConnectionsApi.postQuerydata"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async postQuerydataInPackage(e,t,a,r,o){const s=await n.postQuerydataInPackage(e,t,a,r,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,t,a,r){const o=await n.postSqlsource(e,t,a,r),s=l?.serverIndex??0,c=g["ConnectionsApi.postSqlsource"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async postSqlsourceInPackage(e,t,a,r,o){const s=await n.postSqlsourceInPackage(e,t,a,r,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,t,a,r){const o=await n.postTemporarytable(e,t,a,r),s=l?.serverIndex??0,c=g["ConnectionsApi.postTemporarytable"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async postTemporarytableInPackage(e,t,a,r,o){const s=await n.postTemporarytableInPackage(e,t,a,r,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,t,a,r){const o=await n.updateConnection(e,t,a,r),s=l?.serverIndex??0,c=g["ConnectionsApi.updateConnection"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},ba=function(l,n,e){const t=S(l);return{createConnection(a,r,o,s){return t.createConnection(a,r,o,s).then(c=>c(e,n))},deleteConnection(a,r,o){return t.deleteConnection(a,r,o).then(s=>s(e,n))},getConnection(a,r,o){return t.getConnection(a,r,o).then(s=>s(e,n))},getTable(a,r,o,s,c){return t.getTable(a,r,o,s,c).then(i=>i(e,n))},getTableInPackage(a,r,o,s,c,i){return t.getTableInPackage(a,r,o,s,c,i).then(d=>d(e,n))},listConnections(a,r){return t.listConnections(a,r).then(o=>o(e,n))},listSchemas(a,r,o){return t.listSchemas(a,r,o).then(s=>s(e,n))},listSchemasInPackage(a,r,o,s){return t.listSchemasInPackage(a,r,o,s).then(c=>c(e,n))},listTables(a,r,o,s,c){return t.listTables(a,r,o,s,c).then(i=>i(e,n))},listTablesInPackage(a,r,o,s,c,i){return t.listTablesInPackage(a,r,o,s,c,i).then(d=>d(e,n))},postQuerydata(a,r,o,s){return t.postQuerydata(a,r,o,s).then(c=>c(e,n))},postQuerydataInPackage(a,r,o,s,c){return t.postQuerydataInPackage(a,r,o,s,c).then(i=>i(e,n))},postSqlsource(a,r,o,s){return t.postSqlsource(a,r,o,s).then(c=>c(e,n))},postSqlsourceInPackage(a,r,o,s,c){return t.postSqlsourceInPackage(a,r,o,s,c).then(i=>i(e,n))},postTemporarytable(a,r,o,s){return t.postTemporarytable(a,r,o,s).then(c=>c(e,n))},postTemporarytableInPackage(a,r,o,s,c){return t.postTemporarytableInPackage(a,r,o,s,c).then(i=>i(e,n))},updateConnection(a,r,o,s){return t.updateConnection(a,r,o,s).then(c=>c(e,n))}}};class Z extends x{createConnection(n,e,t,a){return S(this.configuration).createConnection(n,e,t,a).then(r=>r(this.axios,this.basePath))}deleteConnection(n,e,t){return S(this.configuration).deleteConnection(n,e,t).then(a=>a(this.axios,this.basePath))}getConnection(n,e,t){return S(this.configuration).getConnection(n,e,t).then(a=>a(this.axios,this.basePath))}getTable(n,e,t,a,r){return S(this.configuration).getTable(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}getTableInPackage(n,e,t,a,r,o){return S(this.configuration).getTableInPackage(n,e,t,a,r,o).then(s=>s(this.axios,this.basePath))}listConnections(n,e){return S(this.configuration).listConnections(n,e).then(t=>t(this.axios,this.basePath))}listSchemas(n,e,t){return S(this.configuration).listSchemas(n,e,t).then(a=>a(this.axios,this.basePath))}listSchemasInPackage(n,e,t,a){return S(this.configuration).listSchemasInPackage(n,e,t,a).then(r=>r(this.axios,this.basePath))}listTables(n,e,t,a,r){return S(this.configuration).listTables(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}listTablesInPackage(n,e,t,a,r,o){return S(this.configuration).listTablesInPackage(n,e,t,a,r,o).then(s=>s(this.axios,this.basePath))}postQuerydata(n,e,t,a){return S(this.configuration).postQuerydata(n,e,t,a).then(r=>r(this.axios,this.basePath))}postQuerydataInPackage(n,e,t,a,r){return S(this.configuration).postQuerydataInPackage(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}postSqlsource(n,e,t,a){return S(this.configuration).postSqlsource(n,e,t,a).then(r=>r(this.axios,this.basePath))}postSqlsourceInPackage(n,e,t,a,r){return S(this.configuration).postSqlsourceInPackage(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}postTemporarytable(n,e,t,a){return S(this.configuration).postTemporarytable(n,e,t,a).then(r=>r(this.axios,this.basePath))}postTemporarytableInPackage(n,e,t,a,r){return S(this.configuration).postTemporarytableInPackage(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}updateConnection(n,e,t,a){return S(this.configuration).updateConnection(n,e,t,a).then(r=>r(this.axios,this.basePath))}}const ee=function(l){return{testConnectionConfiguration:async(n,e={})=>{m("testConnectionConfiguration","connection",n);const t="/connections/test",a=new URL(t,b);let r;l&&(r=l.baseOptions);const o={method:"POST",...r,...e},s={},c={};s["Content-Type"]="application/json",P(a,c);let i=r&&r.headers?r.headers:{};return o.headers={...s,...i,...e.headers},o.data=C(n,o,l),{url:v(a),options:o}}}},_=function(l){const n=ee(l);return{async testConnectionConfiguration(e,t){const a=await n.testConnectionConfiguration(e,t),r=l?.serverIndex??0,o=g["ConnectionsTestApi.testConnectionConfiguration"]?.[r]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)}}},Pa=function(l,n,e){const t=_(l);return{testConnectionConfiguration(a,r){return t.testConnectionConfiguration(a,r).then(o=>o(e,n))}}};class va extends x{testConnectionConfiguration(n,e){return _(this.configuration).testConnectionConfiguration(n,e).then(t=>t(this.axios,this.basePath))}}const ae=function(l){return{getDashboard:async(n,e,t,a,r={})=>{m("getDashboard","environmentName",n),m("getDashboard","packageName",e),m("getDashboard","dashboardName",t);const o="/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{dashboardName}",encodeURIComponent(String(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...r},d={},p={};a!==void 0&&(p.versionId=a),P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},{url:v(s),options:i}},listDashboards:async(n,e,t,a={})=>{m("listDashboards","environmentName",n),m("listDashboards","packageName",e);const r="/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},d={};t!==void 0&&(d.versionId=t),P(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}}}},z=function(l){const n=ae(l);return{async getDashboard(e,t,a,r,o){const s=await n.getDashboard(e,t,a,r,o),c=l?.serverIndex??0,i=g["DashboardsApi.getDashboard"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async listDashboards(e,t,a,r){const o=await n.listDashboards(e,t,a,r),s=l?.serverIndex??0,c=g["DashboardsApi.listDashboards"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},Va=function(l,n,e){const t=z(l);return{getDashboard(a,r,o,s,c){return t.getDashboard(a,r,o,s,c).then(i=>i(e,n))},listDashboards(a,r,o,s){return t.listDashboards(a,r,o,s).then(c=>c(e,n))}}};class te extends x{getDashboard(n,e,t,a,r){return z(this.configuration).getDashboard(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}listDashboards(n,e,t,a){return z(this.configuration).listDashboards(n,e,t,a).then(r=>r(this.axios,this.basePath))}}const re=function(l){return{listDataApps:async(n,e,t={})=>{m("listDataApps","environmentName",n),m("listDataApps","packageName",e);const a="/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),r=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...t},c={};P(r,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...t.headers},{url:v(r),options:s}}}},W=function(l){const n=re(l);return{async listDataApps(e,t,a){const r=await n.listDataApps(e,t,a),o=l?.serverIndex??0,s=g["DataAppsApi.listDataApps"]?.[o]?.url;return(c,i)=>V(r,h,u,l)(c,s||i)}}},Oa=function(l,n,e){const t=W(l);return{listDataApps(a,r,o){return t.listDataApps(a,r,o).then(s=>s(e,n))}}};class ne extends x{listDataApps(n,e,t){return W(this.configuration).listDataApps(n,e,t).then(a=>a(this.axios,this.basePath))}}const oe=function(l){return{listDatabases:async(n,e,t,a={})=>{m("listDatabases","environmentName",n),m("listDatabases","packageName",e);const r="/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},d={};t!==void 0&&(d.versionId=t),P(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}}}},G=function(l){const n=oe(l);return{async listDatabases(e,t,a,r){const o=await n.listDatabases(e,t,a,r),s=l?.serverIndex??0,c=g["DatabasesApi.listDatabases"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},ya=function(l,n,e){const t=G(l);return{listDatabases(a,r,o,s){return t.listDatabases(a,r,o,s).then(c=>c(e,n))}}};class se extends x{listDatabases(n,e,t,a){return G(this.configuration).listDatabases(n,e,t,a).then(r=>r(this.axios,this.basePath))}}const le=function(l){return{createEnvironment:async(n,e={})=>{m("createEnvironment","environment",n);const t="/environments",a=new URL(t,b);let r;l&&(r=l.baseOptions);const o={method:"POST",...r,...e},s={},c={};s["Content-Type"]="application/json",P(a,c);let i=r&&r.headers?r.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 t="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(n))),a=new URL(t,b);let r;l&&(r=l.baseOptions);const o={method:"DELETE",...r,...e},s={};P(a,{});let i=r&&r.headers?r.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},getEnvironment:async(n,e,t={})=>{m("getEnvironment","environmentName",n);const a="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(n))),r=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...t},c={},i={};e!==void 0&&(i.reload=e),P(r,i);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...t.headers},{url:v(r),options:s}},listEnvironments:async(n={})=>{const e="/environments",t=new URL(e,b);let a;l&&(a=l.baseOptions);const r={method:"GET",...a,...n},o={};P(t,{});let c=a&&a.headers?a.headers:{};return r.headers={...o,...c,...n.headers},{url:v(t),options:r}},updateEnvironment:async(n,e,t={})=>{m("updateEnvironment","environmentName",n),m("updateEnvironment","environment",e);const a="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(n))),r=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"PATCH",...o,...t},c={},i={};c["Content-Type"]="application/json",P(r,i);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...t.headers},s.data=C(e,s,l),{url:v(r),options:s}}}},E=function(l){const n=le(l);return{async createEnvironment(e,t){const a=await n.createEnvironment(e,t),r=l?.serverIndex??0,o=g["EnvironmentsApi.createEnvironment"]?.[r]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async deleteEnvironment(e,t){const a=await n.deleteEnvironment(e,t),r=l?.serverIndex??0,o=g["EnvironmentsApi.deleteEnvironment"]?.[r]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async getEnvironment(e,t,a){const r=await n.getEnvironment(e,t,a),o=l?.serverIndex??0,s=g["EnvironmentsApi.getEnvironment"]?.[o]?.url;return(c,i)=>V(r,h,u,l)(c,s||i)},async listEnvironments(e){const t=await n.listEnvironments(e),a=l?.serverIndex??0,r=g["EnvironmentsApi.listEnvironments"]?.[a]?.url;return(o,s)=>V(t,h,u,l)(o,r||s)},async updateEnvironment(e,t,a){const r=await n.updateEnvironment(e,t,a),o=l?.serverIndex??0,s=g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;return(c,i)=>V(r,h,u,l)(c,s||i)}}},Sa=function(l,n,e){const t=E(l);return{createEnvironment(a,r){return t.createEnvironment(a,r).then(o=>o(e,n))},deleteEnvironment(a,r){return t.deleteEnvironment(a,r).then(o=>o(e,n))},getEnvironment(a,r,o){return t.getEnvironment(a,r,o).then(s=>s(e,n))},listEnvironments(a){return t.listEnvironments(a).then(r=>r(e,n))},updateEnvironment(a,r,o){return t.updateEnvironment(a,r,o).then(s=>s(e,n))}}};class ce extends x{createEnvironment(n,e){return E(this.configuration).createEnvironment(n,e).then(t=>t(this.axios,this.basePath))}deleteEnvironment(n,e){return E(this.configuration).deleteEnvironment(n,e).then(t=>t(this.axios,this.basePath))}getEnvironment(n,e,t){return E(this.configuration).getEnvironment(n,e,t).then(a=>a(this.axios,this.basePath))}listEnvironments(n){return E(this.configuration).listEnvironments(n).then(e=>e(this.axios,this.basePath))}updateEnvironment(n,e,t){return E(this.configuration).updateEnvironment(n,e,t).then(a=>a(this.axios,this.basePath))}}const ie=function(l){return{createMaterialization:async(n,e,t,a={})=>{m("createMaterialization","environmentName",n),m("createMaterialization","packageName",e);const r="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},d={};i["Content-Type"]="application/json",P(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(t,c,l),{url:v(o),options:c}},deleteMaterialization:async(n,e,t,a,r={})=>{m("deleteMaterialization","environmentName",n),m("deleteMaterialization","packageName",e),m("deleteMaterialization","materializationId",t);const o="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"DELETE",...c,...r},d={},p={};a!==void 0&&(p.dropTables=a),P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},{url:v(s),options:i}},getMaterialization:async(n,e,t,a={})=>{m("getMaterialization","environmentName",n),m("getMaterialization","packageName",e),m("getMaterialization","materializationId",t);const r="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(t))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={};P(o,{});let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}},listEnvironmentMaterializations:async(n,e,t,a={})=>{m("listEnvironmentMaterializations","environmentName",n);const r="/environments/{environmentName}/packages/materializations".replace("{environmentName}",encodeURIComponent(String(n))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},d={};e!==void 0&&(d.limit=e),t!==void 0&&(d.offset=t),P(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,t,a,r={})=>{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,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...r},d={},p={};t!==void 0&&(p.limit=t),a!==void 0&&(p.offset=a),P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},{url:v(s),options:i}},materializationAction:async(n,e,t,a,r={})=>{m("materializationAction","environmentName",n),m("materializationAction","packageName",e),m("materializationAction","materializationId",t),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(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...r},d={},p={};a!==void 0&&(p.action=a),P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},{url:v(s),options:i}}}},R=function(l){const n=ie(l);return{async createMaterialization(e,t,a,r){const o=await n.createMaterialization(e,t,a,r),s=l?.serverIndex??0,c=g["MaterializationsApi.createMaterialization"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async deleteMaterialization(e,t,a,r,o){const s=await n.deleteMaterialization(e,t,a,r,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,t,a,r){const o=await n.getMaterialization(e,t,a,r),s=l?.serverIndex??0,c=g["MaterializationsApi.getMaterialization"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async listEnvironmentMaterializations(e,t,a,r){const o=await n.listEnvironmentMaterializations(e,t,a,r),s=l?.serverIndex??0,c=g["MaterializationsApi.listEnvironmentMaterializations"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async listMaterializations(e,t,a,r,o){const s=await n.listMaterializations(e,t,a,r,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,t,a,r,o){const s=await n.materializationAction(e,t,a,r,o),c=l?.serverIndex??0,i=g["MaterializationsApi.materializationAction"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)}}},Ca=function(l,n,e){const t=R(l);return{createMaterialization(a,r,o,s){return t.createMaterialization(a,r,o,s).then(c=>c(e,n))},deleteMaterialization(a,r,o,s,c){return t.deleteMaterialization(a,r,o,s,c).then(i=>i(e,n))},getMaterialization(a,r,o,s){return t.getMaterialization(a,r,o,s).then(c=>c(e,n))},listEnvironmentMaterializations(a,r,o,s){return t.listEnvironmentMaterializations(a,r,o,s).then(c=>c(e,n))},listMaterializations(a,r,o,s,c){return t.listMaterializations(a,r,o,s,c).then(i=>i(e,n))},materializationAction(a,r,o,s,c){return t.materializationAction(a,r,o,s,c).then(i=>i(e,n))}}};class de extends x{createMaterialization(n,e,t,a){return R(this.configuration).createMaterialization(n,e,t,a).then(r=>r(this.axios,this.basePath))}deleteMaterialization(n,e,t,a,r){return R(this.configuration).deleteMaterialization(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}getMaterialization(n,e,t,a){return R(this.configuration).getMaterialization(n,e,t,a).then(r=>r(this.axios,this.basePath))}listEnvironmentMaterializations(n,e,t,a){return R(this.configuration).listEnvironmentMaterializations(n,e,t,a).then(r=>r(this.axios,this.basePath))}listMaterializations(n,e,t,a,r){return R(this.configuration).listMaterializations(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}materializationAction(n,e,t,a,r){return R(this.configuration).materializationAction(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}}const ka={Stop:"stop"},pe=function(l){return{compileModelSource:async(n,e,t,a,r={})=>{m("compileModelSource","environmentName",n),m("compileModelSource","packageName",e),m("compileModelSource","path",t),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(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...r},d={},p={};d["Content-Type"]="application/json",P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},i.data=C(a,i,l),{url:v(s),options:i}},executeQueryModel:async(n,e,t,a,r={})=>{m("executeQueryModel","environmentName",n),m("executeQueryModel","packageName",e),m("executeQueryModel","path",t),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(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...r},d={},p={};d["Content-Type"]="application/json",P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},i.data=C(a,i,l),{url:v(s),options:i}},getModel:async(n,e,t,a,r={})=>{m("getModel","environmentName",n),m("getModel","packageName",e),m("getModel","path",t);const o="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...r},d={},p={};a!==void 0&&(p.versionId=a),P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},{url:v(s),options:i}},listModels:async(n,e,t,a={})=>{m("listModels","environmentName",n),m("listModels","packageName",e);const r="/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},d={};t!==void 0&&(d.versionId=t),P(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=pe(l);return{async compileModelSource(e,t,a,r,o){const s=await n.compileModelSource(e,t,a,r,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,t,a,r,o){const s=await n.executeQueryModel(e,t,a,r,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,t,a,r,o){const s=await n.getModel(e,t,a,r,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,t,a,r){const o=await n.listModels(e,t,a,r),s=l?.serverIndex??0,c=g["ModelsApi.listModels"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},Aa=function(l,n,e){const t=U(l);return{compileModelSource(a,r,o,s,c){return t.compileModelSource(a,r,o,s,c).then(i=>i(e,n))},executeQueryModel(a,r,o,s,c){return t.executeQueryModel(a,r,o,s,c).then(i=>i(e,n))},getModel(a,r,o,s,c){return t.getModel(a,r,o,s,c).then(i=>i(e,n))},listModels(a,r,o,s){return t.listModels(a,r,o,s).then(c=>c(e,n))}}};class me extends x{compileModelSource(n,e,t,a,r){return U(this.configuration).compileModelSource(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}executeQueryModel(n,e,t,a,r){return U(this.configuration).executeQueryModel(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}getModel(n,e,t,a,r){return U(this.configuration).getModel(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}listModels(n,e,t,a){return U(this.configuration).listModels(n,e,t,a).then(r=>r(this.axios,this.basePath))}}const he=function(l){return{executeNotebookCell:async(n,e,t,a,r,o,s,c,i={})=>{m("executeNotebookCell","environmentName",n),m("executeNotebookCell","packageName",e),m("executeNotebookCell","path",t),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(t))).replace("{cellIndex}",encodeURIComponent(String(a))),p=new URL(d,b);let O;l&&(O=l.baseOptions);const k={method:"GET",...O,...i},F={},I={};r!==void 0&&(I.versionId=r),o!==void 0&&(I.filter_params=o),s!==void 0&&(I.bypass_filters=s),c!==void 0&&(I.givens=c),P(p,I);let D=O&&O.headers?O.headers:{};return k.headers={...F,...D,...i.headers},{url:v(p),options:k}},getNotebook:async(n,e,t,a,r={})=>{m("getNotebook","environmentName",n),m("getNotebook","packageName",e),m("getNotebook","path",t);const o="/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(t))),s=new URL(o,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...r},d={},p={};a!==void 0&&(p.versionId=a),P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},{url:v(s),options:i}},listNotebooks:async(n,e,t,a={})=>{m("listNotebooks","environmentName",n),m("listNotebooks","packageName",e);const r="/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},d={};t!==void 0&&(d.versionId=t),P(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=he(l);return{async executeNotebookCell(e,t,a,r,o,s,c,i,d){const p=await n.executeNotebookCell(e,t,a,r,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,t,a,r,o){const s=await n.getNotebook(e,t,a,r,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,t,a,r){const o=await n.listNotebooks(e,t,a,r),s=l?.serverIndex??0,c=g["NotebooksApi.listNotebooks"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},xa=function(l,n,e){const t=B(l);return{executeNotebookCell(a,r,o,s,c,i,d,p,O){return t.executeNotebookCell(a,r,o,s,c,i,d,p,O).then(k=>k(e,n))},getNotebook(a,r,o,s,c){return t.getNotebook(a,r,o,s,c).then(i=>i(e,n))},listNotebooks(a,r,o,s){return t.listNotebooks(a,r,o,s).then(c=>c(e,n))}}};class ue extends x{executeNotebookCell(n,e,t,a,r,o,s,c,i){return B(this.configuration).executeNotebookCell(n,e,t,a,r,o,s,c,i).then(d=>d(this.axios,this.basePath))}getNotebook(n,e,t,a,r){return B(this.configuration).getNotebook(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}listNotebooks(n,e,t,a){return B(this.configuration).listNotebooks(n,e,t,a).then(r=>r(this.axios,this.basePath))}}const Ia={True:"true",False:"false"},ge=function(l){return{createPackage:async(n,e,t={})=>{m("createPackage","environmentName",n),m("createPackage","_package",e);const a="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(n))),r=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"POST",...o,...t},c={},i={};c["Content-Type"]="application/json",P(r,i);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...t.headers},s.data=C(e,s,l),{url:v(r),options:s}},deletePackage:async(n,e,t={})=>{m("deletePackage","environmentName",n),m("deletePackage","packageName",e);const a="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),r=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"DELETE",...o,...t},c={};P(r,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...t.headers},{url:v(r),options:s}},getPackage:async(n,e,t,a,r={})=>{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,b);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...r},d={},p={};t!==void 0&&(p.versionId=t),a!==void 0&&(p.reload=a),P(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...r.headers},{url:v(s),options:i}},listPackages:async(n,e={})=>{m("listPackages","environmentName",n);const t="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(n))),a=new URL(t,b);let r;l&&(r=l.baseOptions);const o={method:"GET",...r,...e},s={};P(a,{});let i=r&&r.headers?r.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},updatePackage:async(n,e,t,a={})=>{m("updatePackage","environmentName",n),m("updatePackage","packageName",e),m("updatePackage","_package",t);const r="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(r,b);let s;l&&(s=l.baseOptions);const c={method:"PATCH",...s,...a},i={},d={};i["Content-Type"]="application/json",P(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(t,c,l),{url:v(o),options:c}}}},N=function(l){const n=ge(l);return{async createPackage(e,t,a){const r=await n.createPackage(e,t,a),o=l?.serverIndex??0,s=g["PackagesApi.createPackage"]?.[o]?.url;return(c,i)=>V(r,h,u,l)(c,s||i)},async deletePackage(e,t,a){const r=await n.deletePackage(e,t,a),o=l?.serverIndex??0,s=g["PackagesApi.deletePackage"]?.[o]?.url;return(c,i)=>V(r,h,u,l)(c,s||i)},async getPackage(e,t,a,r,o){const s=await n.getPackage(e,t,a,r,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,t){const a=await n.listPackages(e,t),r=l?.serverIndex??0,o=g["PackagesApi.listPackages"]?.[r]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async updatePackage(e,t,a,r){const o=await n.updatePackage(e,t,a,r),s=l?.serverIndex??0,c=g["PackagesApi.updatePackage"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},Ra=function(l,n,e){const t=N(l);return{createPackage(a,r,o){return t.createPackage(a,r,o).then(s=>s(e,n))},deletePackage(a,r,o){return t.deletePackage(a,r,o).then(s=>s(e,n))},getPackage(a,r,o,s,c){return t.getPackage(a,r,o,s,c).then(i=>i(e,n))},listPackages(a,r){return t.listPackages(a,r).then(o=>o(e,n))},updatePackage(a,r,o,s){return t.updatePackage(a,r,o,s).then(c=>c(e,n))}}};class be extends x{createPackage(n,e,t){return N(this.configuration).createPackage(n,e,t).then(a=>a(this.axios,this.basePath))}deletePackage(n,e,t){return N(this.configuration).deletePackage(n,e,t).then(a=>a(this.axios,this.basePath))}getPackage(n,e,t,a,r){return N(this.configuration).getPackage(n,e,t,a,r).then(o=>o(this.axios,this.basePath))}listPackages(n,e){return N(this.configuration).listPackages(n,e).then(t=>t(this.axios,this.basePath))}updatePackage(n,e,t,a){return N(this.configuration).updatePackage(n,e,t,a).then(r=>r(this.axios,this.basePath))}}const Pe=function(l){return{deleteTheme:async(n={})=>{const e="/theme",t=new URL(e,b);let a;l&&(a=l.baseOptions);const r={method:"DELETE",...a,...n},o={};P(t,{});let c=a&&a.headers?a.headers:{};return r.headers={...o,...c,...n.headers},{url:v(t),options:r}},getStatus:async(n={})=>{const e="/status",t=new URL(e,b);let a;l&&(a=l.baseOptions);const r={method:"GET",...a,...n},o={};P(t,{});let c=a&&a.headers?a.headers:{};return r.headers={...o,...c,...n.headers},{url:v(t),options:r}},getTheme:async(n={})=>{const e="/theme",t=new URL(e,b);let a;l&&(a=l.baseOptions);const r={method:"GET",...a,...n},o={};P(t,{});let c=a&&a.headers?a.headers:{};return r.headers={...o,...c,...n.headers},{url:v(t),options:r}},updateTheme:async(n,e={})=>{m("updateTheme","theme",n);const t="/theme",a=new URL(t,b);let r;l&&(r=l.baseOptions);const o={method:"PUT",...r,...e},s={},c={};s["Content-Type"]="application/json",P(a,c);let i=r&&r.headers?r.headers:{};return o.headers={...s,...i,...e.headers},o.data=C(n,o,l),{url:v(a),options:o}}}},M=function(l){const n=Pe(l);return{async deleteTheme(e){const t=await n.deleteTheme(e),a=l?.serverIndex??0,r=g["PublisherApi.deleteTheme"]?.[a]?.url;return(o,s)=>V(t,h,u,l)(o,r||s)},async getStatus(e){const t=await n.getStatus(e),a=l?.serverIndex??0,r=g["PublisherApi.getStatus"]?.[a]?.url;return(o,s)=>V(t,h,u,l)(o,r||s)},async getTheme(e){const t=await n.getTheme(e),a=l?.serverIndex??0,r=g["PublisherApi.getTheme"]?.[a]?.url;return(o,s)=>V(t,h,u,l)(o,r||s)},async updateTheme(e,t){const a=await n.updateTheme(e,t),r=l?.serverIndex??0,o=g["PublisherApi.updateTheme"]?.[r]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)}}},Ea=function(l,n,e){const t=M(l);return{deleteTheme(a){return t.deleteTheme(a).then(r=>r(e,n))},getStatus(a){return t.getStatus(a).then(r=>r(e,n))},getTheme(a){return t.getTheme(a).then(r=>r(e,n))},updateTheme(a,r){return t.updateTheme(a,r).then(o=>o(e,n))}}};class ve 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(t=>t(this.axios,this.basePath))}}const Ve=function(l){return{getWatchStatus:async(n={})=>{const e="/watch-mode/status",t=new URL(e,b);let a;l&&(a=l.baseOptions);const r={method:"GET",...a,...n},o={};P(t,{});let c=a&&a.headers?a.headers:{};return r.headers={...o,...c,...n.headers},{url:v(t),options:r}},startWatching:async(n,e={})=>{m("startWatching","startWatchRequest",n);const t="/watch-mode/start",a=new URL(t,b);let r;l&&(r=l.baseOptions);const o={method:"POST",...r,...e},s={},c={};s["Content-Type"]="application/json",P(a,c);let i=r&&r.headers?r.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",t=new URL(e,b);let a;l&&(a=l.baseOptions);const r={method:"POST",...a,...n},o={};P(t,{});let c=a&&a.headers?a.headers:{};return r.headers={...o,...c,...n.headers},{url:v(t),options:r}},streamPackageEvents:async(n,e,t={})=>{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))),r=new URL(a,b);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...t},c={};P(r,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...t.headers},{url:v(r),options:s}}}},w=function(l){const n=Ve(l);return{async getWatchStatus(e){const t=await n.getWatchStatus(e),a=l?.serverIndex??0,r=g["WatchModeApi.getWatchStatus"]?.[a]?.url;return(o,s)=>V(t,h,u,l)(o,r||s)},async startWatching(e,t){const a=await n.startWatching(e,t),r=l?.serverIndex??0,o=g["WatchModeApi.startWatching"]?.[r]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async stopWatching(e){const t=await n.stopWatching(e),a=l?.serverIndex??0,r=g["WatchModeApi.stopWatching"]?.[a]?.url;return(o,s)=>V(t,h,u,l)(o,r||s)},async streamPackageEvents(e,t,a){const r=await n.streamPackageEvents(e,t,a),o=l?.serverIndex??0,s=g["WatchModeApi.streamPackageEvents"]?.[o]?.url;return(c,i)=>V(r,h,u,l)(c,s||i)}}},Na=function(l,n,e){const t=w(l);return{getWatchStatus(a){return t.getWatchStatus(a).then(r=>r(e,n))},startWatching(a,r){return t.startWatching(a,r).then(o=>o(e,n))},stopWatching(a){return t.stopWatching(a).then(r=>r(e,n))},streamPackageEvents(a,r,o){return t.streamPackageEvents(a,r,o).then(s=>s(e,n))}}};class Oe 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(t=>t(this.axios,this.basePath))}stopWatching(n){return w(this.configuration).stopWatching(n).then(e=>e(this.axios,this.basePath))}streamPackageEvents(n,e,t){return w(this.configuration).streamPackageEvents(n,e,t).then(a=>a(this.axios,this.basePath))}}class ye{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"},Ta={violet:"#7c4dcc",magenta:"#c2478f",moss:"#5c8f3f"},Ua='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',Ma=y.styled(y.Card)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),wa=y.styled(y.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),fa=y.styled(y.CardMedia)({padding:"0"}),Fa=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 Ba=y.styled("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Qa=y.styled("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),za=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 Da=y.styled("div")({height:"100%"});y.styled("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const $a=y.styled("div")({height:"75vh",width:"100%",overflowY:"auto"});y.styled("div")({position:"relative",height:"100%",flex:"0 0 auto"});const qa=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)"}})),La=y.styled(y.CardContent)({padding:"0","&:last-child":{paddingBottom:"0"}}),ja=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 Ha=[f.teal,f.orange,f.darkBlue,"#66cedc","#ec72b8","#f9c85b","#aacd85","#b87ced"],_a="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",L={defaultMode:"light",allowUserToggle:!0,palette:{series:Ha,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:_a,size:12}},Se=["background","tableHeader","tableHeaderBackground","tableBody","tile","tileTitle","mapColor"];function Y(l,n){const e=L.palette??{},t=L.font??{family:"sans-serif",size:12};let a=[...e.series??[]],r=t.family??"sans-serif",o=t.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 Se){const k=p.palette?.[O];k&&(s[O]={...s[O],...k})}typeof p.font?.family=="string"&&(r=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:r,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",drillLink:c?"#60a5fa":"#2563eb"}}function Ce(l,n,e){const t=n??l??"light";return t==="auto"?e?"dark":"light":t}const ke=A.createContext(void 0);function Ae({layers:l,mode:n,userChoice:e,setMode:t,allowUserToggle:a=!0,children:r}){const o=A.useMemo(()=>Y(l,n),[l,n]),s=A.useMemo(()=>({theme:o,layers:l,mode:n,userChoice:e,setMode:t,allowUserToggle:a}),[o,l,n,e,t,a]);return Q.jsx(ke.Provider,{value:s,children:r})}function Wa(){const l=A.useContext(ke);return l||{theme:Y([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const xe=new H.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),Ga={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},j="publisher:themeMode";function Ya(){if(!(typeof window>"u"))try{const l=window.localStorage.getItem(j);if(l==="light"||l==="dark"||l==="auto")return l}catch{}}function Ka(l){if(!(typeof window>"u"))try{l===void 0?window.localStorage.removeItem(j):window.localStorage.setItem(j,l)}catch{}}function Ja(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}h.defaults.baseURL||(h.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const Ie=A.createContext(void 0),Xa=(l,n)=>{const e=`${window.location.protocol}//${window.location.host}/api/v0`,t=h.create({baseURL:l||e,withCredentials:!0,timeout:6e5});t.interceptors.request.use(async r=>{const o=await n?.();return r.headers.Authorization=o||"",r});const a=new ye({basePath:e});return{models:new me(a,e,t),publisher:new ve(a,e,t),environments:new ce(a,e,t),packages:new be(a,e,t),dashboards:new te(a,e,t),dataApps:new ne(a,e,t),notebooks:new ue(a,e,t),connections:new Z(a,e,t),databases:new se(a,e,t),materializations:new de(a,e,t),watchMode:new Oe(a,e,t)}},Za=l=>Q.jsx(H.QueryClientProvider,{client:xe,children:Q.jsx(et,{...l})}),et=({children:l,getAccessToken:n,baseURL:e,mutable:t,theme:a})=>{const r=A.useMemo(()=>Xa(e,n),[e,n]),o=e||`${window.location.protocol}//${window.location.host}/api/v0`,s=H.useQuery({queryKey:["status"],queryFn:async()=>(await r.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=t:c?p=!1:p=t??!0;const O=A.useMemo(()=>[i,a],[i,a]),[k,F]=A.useState(Ya),[I,D]=A.useState(Ja);A.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const T=window.matchMedia("(prefers-color-scheme: dark)"),J=Te=>D(Te.matches);return T.addEventListener("change",J),()=>T.removeEventListener("change",J)},[]);const Re=A.useCallback(T=>{F(T),Ka(T)},[]),K=i?.allowUserToggle??!0,$=K?k:void 0,Ee=A.useMemo(()=>Ce(i?.defaultMode,$,I),[i?.defaultMode,$,I]),Ne={server:o,getAccessToken:n,apiClients:r,mutable:p,isLoadingStatus:d,instanceTheme:i};return Q.jsx(Ie.Provider,{value:Ne,children:Q.jsx(Ae,{layers:O,mode:Ee,userChoice:$,setMode:Re,allowUserToggle:K,children:l})})},at=()=>{const l=A.useContext(Ie);if(l===void 0)throw new Error("useServer must be used within a ServerProvider");return l};exports.AttachedDatabaseTypeEnum=Me;exports.AzureConnectionAuthTypeEnum=we;exports.CHART_RESULT_QUERY_OPTIONS=Ga;exports.CleanMetricCard=za;exports.CleanNotebookCell=Qa;exports.CleanNotebookContainer=Fa;exports.CleanNotebookSection=Ba;exports.CompileProblemSeverityEnum=fe;exports.CompileRequestScopeEnum=Fe;exports.CompileResultStatusEnum=Be;exports.Configuration=ye;exports.ConnectionProxyTypeEnum=ze;exports.ConnectionStatusStatusEnum=De;exports.ConnectionTypeEnum=Qe;exports.ConnectionsApi=Z;exports.ConnectionsApiAxiosParamCreator=X;exports.ConnectionsApiFactory=ba;exports.ConnectionsApiFp=S;exports.ConnectionsTestApi=va;exports.ConnectionsTestApiAxiosParamCreator=ee;exports.ConnectionsTestApiFactory=Pa;exports.ConnectionsTestApiFp=_;exports.DEFAULT_THEME=L;exports.DashboardsApi=te;exports.DashboardsApiAxiosParamCreator=ae;exports.DashboardsApiFactory=Va;exports.DashboardsApiFp=z;exports.DataAppFitEnum=$e;exports.DataAppsApi=ne;exports.DataAppsApiAxiosParamCreator=re;exports.DataAppsApiFactory=Oa;exports.DataAppsApiFp=W;exports.DatabaseTypeEnum=qe;exports.DatabasesApi=se;exports.DatabasesApiAxiosParamCreator=oe;exports.DatabasesApiFactory=ya;exports.DatabasesApiFp=G;exports.EnvironmentsApi=ce;exports.EnvironmentsApiAxiosParamCreator=le;exports.EnvironmentsApiFactory=Sa;exports.EnvironmentsApiFp=E;exports.ExecuteNotebookCellBypassFiltersEnum=Ia;exports.FilterTypeEnum=Le;exports.FreshnessFallbackEnum=je;exports.GivenControlEnum=He;exports.LedgerEntryStrategyEnum=_e;exports.LogMessageSeverityEnum=We;exports.MALLOY_ACCENT=Ta;exports.MALLOY_BRAND=f;exports.MONO_FONT_FAMILY=Ua;exports.ManifestEntryFreshnessFallbackEnum=Ye;exports.ManifestEntryOriginEnum=Ge;exports.ManifestEntryRefreshEnum=Ke;exports.MaterializationActionActionEnum=ka;exports.MaterializationStatus=Je;exports.MaterializationsApi=de;exports.MaterializationsApiAxiosParamCreator=ie;exports.MaterializationsApiFactory=Ca;exports.MaterializationsApiFp=R;exports.ModelsApi=me;exports.ModelsApiAxiosParamCreator=pe;exports.ModelsApiFactory=Aa;exports.ModelsApiFp=U;exports.NotebookCellResultTypeEnum=Ze;exports.NotebookCellTypeEnum=Xe;exports.NotebooksApi=ue;exports.NotebooksApiAxiosParamCreator=he;exports.NotebooksApiFactory=xa;exports.NotebooksApiFp=B;exports.PER_MODE_COLOR_KEYS=Se;exports.PackageCard=qa;exports.PackageCardContent=La;exports.PackageManifestBindingStatusEnum=ta;exports.PackageQueryableSourcesEnum=aa;exports.PackageScopeEnum=ea;exports.PackageSectionTitle=ja;exports.PackageWarningsInnerSeverityEnum=ra;exports.PackagesApi=be;exports.PackagesApiAxiosParamCreator=ge;exports.PackagesApiFactory=Ra;exports.PackagesApiFp=N;exports.PersistSourcePlanOriginEnum=na;exports.PostgresConnectionSslmodeEnum=oa;exports.PublisherApi=ve;exports.PublisherApiAxiosParamCreator=Pe;exports.PublisherApiFactory=Ea;exports.PublisherApiFp=M;exports.QueryClass=sa;exports.QueryResultQueryRowLimitSourceEnum=la;exports.QueryResultServedFromEnum=ca;exports.Realization=ia;exports.RefusedSourceReasonEnum=pa;exports.RefusedSourceTierEnum=da;exports.RunContextTriggerEnum=ma;exports.S3ConnectionProviderEnum=ha;exports.ServerProvider=Za;exports.ServerStatusOperationalStateEnum=ua;exports.StyledCard=Ma;exports.StyledCardContent=wa;exports.StyledCardMedia=fa;exports.StyledExplorerContent=$a;exports.StyledExplorerPage=Da;exports.ThemeDefaultModeEnum=ga;exports.ThemeProvider=Ae;exports.WatchModeApi=Oe;exports.WatchModeApiAxiosParamCreator=Ve;exports.WatchModeApiFactory=Na;exports.WatchModeApiFp=w;exports.globalQueryClient=xe;exports.resolveMode=Ce;exports.resolveTheme=Y;exports.usePublisherTheme=Wa;exports.useServer=at;
@@ -334,7 +334,7 @@ export interface BuildNode {
334
334
  */
335
335
  export interface BuildPlan {
336
336
  /**
337
- * Dependency-ordered build graphs, one per connection.
337
+ * Dependency-ordered build graphs. One per connection per model, not one per connection: a model contributes a graph for each connection its ROOT persist sources use, and a package\'s plan concatenates every model\'s, so the same source appears in the graph of every model that imports it.
338
338
  * @type {Array<BuildGraph>}
339
339
  * @memberof BuildPlan
340
340
  */
@@ -896,7 +896,7 @@ export interface Dashboard {
896
896
  'error'?: string;
897
897
  }
898
898
  /**
899
- * Everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running needs no dashboard-specific endpoint — the query, each composite tile, and each control\'s suggest query all run through the ordinary model query endpoint with `givens`.
899
+ * Everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running needs no dashboard-specific endpoint — the query, each tile, and each control\'s suggest query all run through the ordinary model query endpoint with `givens`.
900
900
  * @export
901
901
  * @interface DashboardManifest
902
902
  */
@@ -944,19 +944,19 @@ export interface DashboardManifest {
944
944
  */
945
945
  'error'?: string;
946
946
  /**
947
- * Name of the tagged query to run. Present for the single-query form only; a composite dashboard carries `tiles` instead. A NAME rather than an expression, so it goes in the `queryName` field of a `POST …/models/{path}/query` body. A tile\'s `query` is the other shape and is not interchangeable with this one; see `DashboardTile.query`.
947
+ * Name of the tagged query whose single result IS the page. Set when the `# artifact` tag sits on a `query:`; a dashboard authored the ordinary way carries `tiles` instead and leaves this absent. A NAME rather than an expression, so it goes in the `queryName` field of a `POST …/models/{path}/query` body. A tile\'s `query` is the other shape and is not interchangeable with this one; see `DashboardTile.query`.
948
948
  * @type {string}
949
949
  * @memberof DashboardManifest
950
950
  */
951
951
  'query'?: string;
952
952
  /**
953
- * Tiles of a composite dashboard, run separately and combined into one grid. Present for the composite form only.
953
+ * The dashboard\'s tiles, each run as its own query and combined into one grid. This is how a dashboard is normally authored, and the only form that can span sources. Absent when the `# artifact` tag sits on a `query:` instead, in which case `query` is set.
954
954
  * @type {Array<DashboardTile>}
955
955
  * @memberof DashboardManifest
956
956
  */
957
957
  'tiles'?: Array<DashboardTile>;
958
958
  /**
959
- * Grid width — from the `# dashboard {columns=N}` render tag, or `dashboard_columns=N` on a composite artifact tag
959
+ * Grid width, from the `# dashboard {columns=N}` render tag beside the artifact tag. One spelling wherever the artifact tag sits: Publisher reads it at model level to lay out `tiles`, and `@malloydata/render` reads the same tag off a tagged `query:`. Absent means the viewer\'s default.
960
960
  * @type {number}
961
961
  * @memberof DashboardManifest
962
962
  */
@@ -976,14 +976,14 @@ export interface DashboardManifest {
976
976
  */
977
977
  'autorun'?: boolean;
978
978
  /**
979
- * The control row. Normally one entry per given the dashboard runs with, which is what its `query` references on the single-query form and the union over `tiles` on a composite, and which the entry file can bind. A composite widens it to every given the entry file surfaces when any tile is one discovery cannot resolve, because that tile\'s givens are otherwise absent from the row it filters by; see `DashboardTile.givenNames`. So an entry here is always bindable, but on a widened row it is not necessarily referenced by any tile. A given reachable only through an import chain the entry file does not import itself cannot be bound at query time, so no control is offered for it and it stays at its default; that case is reported in the package\'s `warnings` rather than represented here by an unusable entry. Plain `Given`s, because the presentation a control takes is declared on the given itself, so a dashboard and a notebook render the same control for the same given, `#(description=…)` helper text included. ONE DELIBERATE DIVERGENCE from `Given` as the model surface sends it: `default` here is the value the QUERY ENDPOINT takes, not the Malloy source literal. A `filter<…>` given declared `f\'West\'` publishes `West`. As the literal it could not be used as a default at all, since sending it back verbatim matches zero rows silently, with no error to search for. Only filter-typed givens are unwrapped, so a plain string default that merely reads like `f\'x\'` is untouched. `startingGivens` uses the same shape for the same reason.
979
+ * The control row. Normally one entry per given the dashboard runs with: the union over `tiles`, or what `query` references when the tag sits on a query, and which the entry file can bind. The row widens to every given the entry file surfaces when any tile is one discovery cannot resolve, because that tile\'s givens are otherwise absent from the row it filters by; see `DashboardTile.givenNames`. So an entry here is always bindable, but on a widened row it is not necessarily referenced by any tile. A given reachable only through an import chain the entry file does not import itself cannot be bound at query time, so no control is offered for it and it stays at its default; that case is reported in the package\'s `warnings` rather than represented here by an unusable entry. Plain `Given`s, because the presentation a control takes is declared on the given itself, so a dashboard and a notebook render the same control for the same given, `#(description=…)` helper text included. ONE DELIBERATE DIVERGENCE from `Given` as the model surface sends it: `default` here is the value the QUERY ENDPOINT takes, not the Malloy source literal. A `filter<…>` given declared `f\'West\'` publishes `West`. As the literal it could not be used as a default at all, since sending it back verbatim matches zero rows silently, with no error to search for. Only filter-typed givens are unwrapped, so a plain string default that merely reads like `f\'x\'` is untouched. `startingGivens` uses the same shape for the same reason.
980
980
  * @type {Array<Given>}
981
981
  * @memberof DashboardManifest
982
982
  */
983
983
  'givens'?: Array<Given>;
984
984
  }
985
985
  /**
986
- * One tile of a composite dashboard
986
+ * One tile of a dashboard
987
987
  * @export
988
988
  * @interface DashboardTile
989
989
  */
@@ -1000,6 +1000,36 @@ export interface DashboardTile {
1000
1000
  * @memberof DashboardTile
1001
1001
  */
1002
1002
  'givenNames'?: Array<string>;
1003
+ /**
1004
+ * Heading for the tile, from a `# label` on the view or query it names. Absent when it carries none, in which case a viewer derives one from the run expression.
1005
+ * @type {string}
1006
+ * @memberof DashboardTile
1007
+ */
1008
+ 'label'?: string;
1009
+ /**
1010
+ * Second line under the heading, from a `# subtitle` on the view or query it names.
1011
+ * @type {string}
1012
+ * @memberof DashboardTile
1013
+ */
1014
+ 'subtitle'?: string;
1015
+ /**
1016
+ * Grid columns this tile spans, from a `# colspan=N` on the view or query it names. Clamped to `dashboardColumns` at render time. Absent means one column.
1017
+ * @type {number}
1018
+ * @memberof DashboardTile
1019
+ */
1020
+ 'colspan'?: number;
1021
+ /**
1022
+ * Start a new grid row at this tile, from a `# break` on the view or query it names. Named for the tag, so every per-tile field on this schema is spelled the way an author writes it. A generated client escapes the attribute where the word is reserved (the Python client exposes `break_`) while the wire key stays `break`.
1023
+ * @type {boolean}
1024
+ * @memberof DashboardTile
1025
+ */
1026
+ 'break'?: boolean;
1027
+ /**
1028
+ * Draw the result with no card around it, from a `# borderless` on the view or query it names. Together with `label`, `subtitle`, `colspan` and `break` this is the whole per-child tag set `@malloydata/render` resolves for a `# dashboard` nest child, read the same way here so one view presents identically as a tile and as a nest.
1029
+ * @type {boolean}
1030
+ * @memberof DashboardTile
1031
+ */
1032
+ 'borderless'?: boolean;
1003
1033
  }
1004
1034
  /**
1005
1035
  * An in-package HTML data app within a Malloy package - a static page served from the package\'s public/ directory
@@ -2118,7 +2148,7 @@ export interface Package {
2118
2148
  */
2119
2149
  'exploresWarnings'?: Array<string>;
2120
2150
  /**
2121
- * Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value` or `# currency`) misconfigured for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a persist-target collision, and materialization-config problems that degrade attribution. Discovery findings: a model listed in `explores` whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page. Dashboard findings: a `dashboards/` file whose `# artifact` tag does not parse or does not describe a dashboard, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a dashboard, and a dashboard held back from the listing because its entry file is not in `explores`. Two dashboard findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Pre-aggregation contributes nothing to this array. A `#@ preaggregate` that cannot be honored is an ERROR, never a warning** — a 400 at publish or PATCH, and a load failure thereafter. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, `#(authorize)` gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD, not only at publish, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing.
2151
+ * 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`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a persist-target collision, and materialization-config problems that degrade attribution. Discovery findings: a model listed in `explores` whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page. Dashboard findings: a `dashboards/` file whose `# artifact` tag does not parse or does not describe a dashboard, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a dashboard, and a dashboard held back from the listing because its entry file is not in `explores`. Two dashboard findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Pre-aggregation contributes nothing to this array. A `#@ preaggregate` that cannot be honored is an ERROR, never a warning** — a 400 at publish or PATCH, and a load failure thereafter. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, `#(authorize)` gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD, not only at publish, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing.
2122
2152
  * @type {Array<PackageWarningsInner>}
2123
2153
  * @memberof Package
2124
2154
  */
@@ -2273,7 +2303,7 @@ export interface PackageWarningsInner {
2273
2303
  */
2274
2304
  'message'?: string;
2275
2305
  /**
2276
- * Finding severity. Render findings are surfaced here only at `error` severity; lower-severity render findings remain on the query-time `renderLogs` surface. Materialization and dashboard findings use both: `error` for something that cannot work as written, such as a tile naming a view the source does not have, and `warn` for something that works but not as the author probably intended, such as a dashboard held back by curation. The two findings about Publisher rather than about the package split across both: a file that carries an artifact tag and could not be read is `error`, because the dashboard it should have produced does not exist, and a lint that stopped early is `warn`, because the lint failing is not itself a defect in the package. That `warn` does NOT mean the package is free of `error`-severity findings, since the ones the lint never reached are exactly what it cannot report.
2306
+ * Finding severity. Render-tag findings use both: `error` for a tag malformed for the field it sits on, which renders as \"[object Object]\" or an inline error at query time, and `warn` for one that is well-formed but inert where it sits and so is silently ignored (e.g. `# colspan` outside `# dashboard { columns=N }`), where nothing looks broken at query time and the layout simply is not what was written. Those are the only two severities the renderer emits, so no render finding is withheld. Materialization and dashboard findings use both: `error` for something that cannot work as written, such as a tile naming a view the source does not have, and `warn` for something that works but not as the author probably intended, such as a dashboard held back by curation. The two findings about Publisher rather than about the package split across both: a file that carries an artifact tag and could not be read is `error`, because the dashboard it should have produced does not exist, and a lint that stopped early is `warn`, because the lint failing is not itself a defect in the package. That `warn` does NOT mean the package is free of `error`-severity findings, since the ones the lint never reached are exactly what it cannot report.
2277
2307
  * @type {string}
2278
2308
  * @memberof PackageWarningsInner
2279
2309
  */
@@ -2710,7 +2740,7 @@ export interface QueryResult {
2710
2740
  */
2711
2741
  'queryRowLimitSource'?: QueryResultQueryRowLimitSourceEnum;
2712
2742
  /**
2713
- * How this answer was produced, when the query reached the storage routing decision at all. `storage` — served from a materialized table in a `storage=` destination, via the virtual-source transform. The source\'s own warehouse was not queried. `live_fallback` — the query DID route to storage and the store then failed underneath it, and the source\'s freshness fallback allowed it to degrade to the live warehouse. **The rows are correct and the request succeeded**, which is why this needs its own value: it is indistinguishable from a storage hit at the call site, and treating it as one would report a healthy hit rate for a broken store. Null when the query never had a storage binding to consider — every query on a deployment with no `storage=` sources, which is the default. A storage-served result is byte-identical to a live one by design, so this field is the only way a caller can tell that materialization did anything, or show a user which of their sources it applies to.
2743
+ * How this answer was produced, when the query reached the storage routing decision at all. `storage` — served from a materialized table in a `storage=` destination, via the virtual-source transform. The source\'s own warehouse was not queried. `live_fallback` — the query DID route to storage and the store then failed underneath it, and the source\'s freshness fallback allowed it to degrade to the live warehouse. **The rows are correct and the request succeeded**, which is why this needs its own value: it is indistinguishable from a storage hit at the call site, and treating it as one would report a healthy hit rate for a broken store. This value is NOT the same event as the `live_fallback` label on `publisher_storage_serve_routing_total` — see the warning below. **This field describes the `storage=` tier and nothing else.** It records how the storage routing decision came out, so it says nothing about the colocated `#@ persist` tier, which answers a query by substituting the materialized table into the model and never reaches that decision. **Null is three different outcomes**, and they are worth telling apart because two of them mean materialization worked and one means it silently did not: 1. The query never had a storage binding to consider — every query on a deployment with no `storage=` sources, which is the default. 2. It was answered from a **colocated** materialized table. The query never reached the routing decision, so a fully materialized answer reports the same null a fully live one does. 3. The storage transform was **ineligible** for this query, so it was served live. The query DID reach the routing decision and the tier declined it — a storage-tier miss, reported identically to \"no materialization exists anywhere.\" Case 3 is the one that costs time, because nothing about the response distinguishes it from case 1. The server does log it: one `storage serve-shape ineligible for this query; serving live` line at INFO per routed query, carrying the compile error that made the shape ineligible, plus `shapeSources` (what the shape offered) and `staleSources` (bound, but withheld by the freshness gate). The compile error alone does not separate those: `Reference to undefined object \'x\'` reads identically whether `x` carries no `#@ persist` at all or is materialized and merely past its freshness window. That log is currently the only per-query account of a storage-tier miss. It is not a hypothetical shape — a source warehouse that folds unquoted identifiers to upper case made every query on every `storage=` source in a package ineligible, and the whole tier reported null for months while looking exactly like a deployment that had never enabled it. For the colocated tier there is no per-query signal at all. The package-grain fields are the nearest thing — `manifestBindingStatus`, `manifestEntryCount` and `storageServeBindings` — but read what each actually claims: `bound` reports that the bind ran to completion, explicitly NOT that any query routes to a materialized table, and `manifestEntryCount` counts colocated entries only, so a package whose sources are all `storage=` reports 0 while being fully bound. ⚠️ **`live_fallback` names two different things across two surfaces, and correlating them on the token is wrong in both directions.** On this field it means the store failed at run time. On `publisher_storage_serve_routing_total{outcome}` it means the transform was ineligible — this field\'s null case 3 — and that metric spells the run-time failure `runtime_live_fallback`. So the field\'s `live_fallback` is the metric\'s `runtime_live_fallback`, and the metric\'s `live_fallback` is this field\'s `null`. A third surface, `manifestBindingStatus`, uses the same token for a third thing: a configured `manifestLocation` whose fetch or bind failed. Each surface is internally consistent; none of them means what the others do.
2714
2744
  * @type {string}
2715
2745
  * @memberof QueryResult
2716
2746
  */
@@ -2912,19 +2942,31 @@ export type RunContextTriggerEnum = typeof RunContextTriggerEnum[keyof typeof Ru
2912
2942
  */
2913
2943
  export interface S3Connection {
2914
2944
  /**
2915
- * AWS access key ID
2945
+ * How credentials are obtained; defaults to `config` when omitted. `config` uses the accessKeyId and secretAccessKey on this object, which are then required. `credential_chain` resolves them from the host instead — an instance profile, a web-identity token, or the environment — so no key is stored, and supplying one is rejected. Chain resolution happens when the connection is attached, so a host that cannot supply credentials fails there rather than on first object access.
2916
2946
  * @type {string}
2917
2947
  * @memberof S3Connection
2918
2948
  */
2919
- 'accessKeyId': string;
2949
+ 'provider'?: S3ConnectionProviderEnum;
2920
2950
  /**
2921
- * AWS secret access key
2951
+ * Ordered list of credential providers to try, semicolon-separated, for `provider: credential_chain` (DuckDB\'s CHAIN). Recognized providers are env, config, sts, instance, sso, process, and web_identity. Omit to use Publisher\'s default order, which covers the environment, a web-identity token, and an instance profile. Rejected under `provider: config`, where the key pair beside it is what grants access.
2922
2952
  * @type {string}
2923
2953
  * @memberof S3Connection
2924
2954
  */
2925
- 'secretAccessKey': string;
2955
+ 'chain'?: string;
2926
2956
  /**
2927
- * AWS region (e.g., us-east-1)
2957
+ * AWS access key ID (required for `provider: config`)
2958
+ * @type {string}
2959
+ * @memberof S3Connection
2960
+ */
2961
+ 'accessKeyId'?: string;
2962
+ /**
2963
+ * AWS secret access key (required for `provider: config`)
2964
+ * @type {string}
2965
+ * @memberof S3Connection
2966
+ */
2967
+ 'secretAccessKey'?: string;
2968
+ /**
2969
+ * AWS region (e.g., us-east-1). Optional, and Publisher falls back to us-east-1 when it is absent — but the fallback is applied in code, not by this schema: a `default:` here would be documentation only, since the generated clients leave an omitted property undefined rather than filling it. Stated this way so a caller reading the schema does not conclude the wire supplies it. A remote root in another region MUST set this; omitting it reaches us-east-1 and fails as a missing bucket rather than as a misconfiguration.
2928
2970
  * @type {string}
2929
2971
  * @memberof S3Connection
2930
2972
  */
@@ -2942,6 +2984,11 @@ export interface S3Connection {
2942
2984
  */
2943
2985
  'sessionToken'?: string;
2944
2986
  }
2987
+ export declare const S3ConnectionProviderEnum: {
2988
+ readonly Config: "config";
2989
+ readonly CredentialChain: "credential_chain";
2990
+ };
2991
+ export type S3ConnectionProviderEnum = typeof S3ConnectionProviderEnum[keyof typeof S3ConnectionProviderEnum];
2945
2992
  /**
2946
2993
  * A schema name in a Connection.
2947
2994
  * @export
@@ -4577,7 +4624,7 @@ export declare class ConnectionsTestApi extends BaseAPI {
4577
4624
  */
4578
4625
  export declare const DashboardsApiAxiosParamCreator: (configuration?: Configuration) => {
4579
4626
  /**
4580
- * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
4627
+ * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
4581
4628
  * @summary Get a dashboard manifest
4582
4629
  * @param {string} environmentName Name of the environment
4583
4630
  * @param {string} packageName Name of the package
@@ -4604,7 +4651,7 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
4604
4651
  */
4605
4652
  export declare const DashboardsApiFp: (configuration?: Configuration) => {
4606
4653
  /**
4607
- * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
4654
+ * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
4608
4655
  * @summary Get a dashboard manifest
4609
4656
  * @param {string} environmentName Name of the environment
4610
4657
  * @param {string} packageName Name of the package
@@ -4631,7 +4678,7 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
4631
4678
  */
4632
4679
  export declare const DashboardsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4633
4680
  /**
4634
- * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
4681
+ * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
4635
4682
  * @summary Get a dashboard manifest
4636
4683
  * @param {string} environmentName Name of the environment
4637
4684
  * @param {string} packageName Name of the package
@@ -4660,7 +4707,7 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
4660
4707
  */
4661
4708
  export declare class DashboardsApi extends BaseAPI {
4662
4709
  /**
4663
- * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
4710
+ * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
4664
4711
  * @summary Get a dashboard manifest
4665
4712
  * @param {string} environmentName Name of the environment
4666
4713
  * @param {string} packageName Name of the package
@@ -4838,13 +4885,13 @@ export declare const EnvironmentsApiAxiosParamCreator: (configuration?: Configur
4838
4885
  * Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
4839
4886
  * @summary Get environment details and metadata
4840
4887
  * @param {string} environmentName Name of the environment
4841
- * @param {boolean} [reload] Load / reload the environment before returning result
4888
+ * @param {boolean} [reload] Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
4842
4889
  * @param {*} [options] Override http request option.
4843
4890
  * @throws {RequiredError}
4844
4891
  */
4845
4892
  getEnvironment: (environmentName: string, reload?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4846
4893
  /**
4847
- * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
4894
+ * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
4848
4895
  * @summary List all available environments
4849
4896
  * @param {*} [options] Override http request option.
4850
4897
  * @throws {RequiredError}
@@ -4885,13 +4932,13 @@ export declare const EnvironmentsApiFp: (configuration?: Configuration) => {
4885
4932
  * Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
4886
4933
  * @summary Get environment details and metadata
4887
4934
  * @param {string} environmentName Name of the environment
4888
- * @param {boolean} [reload] Load / reload the environment before returning result
4935
+ * @param {boolean} [reload] Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
4889
4936
  * @param {*} [options] Override http request option.
4890
4937
  * @throws {RequiredError}
4891
4938
  */
4892
4939
  getEnvironment(environmentName: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Environment>>;
4893
4940
  /**
4894
- * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
4941
+ * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
4895
4942
  * @summary List all available environments
4896
4943
  * @param {*} [options] Override http request option.
4897
4944
  * @throws {RequiredError}
@@ -4932,13 +4979,13 @@ export declare const EnvironmentsApiFactory: (configuration?: Configuration, bas
4932
4979
  * Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
4933
4980
  * @summary Get environment details and metadata
4934
4981
  * @param {string} environmentName Name of the environment
4935
- * @param {boolean} [reload] Load / reload the environment before returning result
4982
+ * @param {boolean} [reload] Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
4936
4983
  * @param {*} [options] Override http request option.
4937
4984
  * @throws {RequiredError}
4938
4985
  */
4939
4986
  getEnvironment(environmentName: string, reload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Environment>;
4940
4987
  /**
4941
- * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
4988
+ * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
4942
4989
  * @summary List all available environments
4943
4990
  * @param {*} [options] Override http request option.
4944
4991
  * @throws {RequiredError}
@@ -4983,14 +5030,14 @@ export declare class EnvironmentsApi extends BaseAPI {
4983
5030
  * Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
4984
5031
  * @summary Get environment details and metadata
4985
5032
  * @param {string} environmentName Name of the environment
4986
- * @param {boolean} [reload] Load / reload the environment before returning result
5033
+ * @param {boolean} [reload] Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
4987
5034
  * @param {*} [options] Override http request option.
4988
5035
  * @throws {RequiredError}
4989
5036
  * @memberof EnvironmentsApi
4990
5037
  */
4991
5038
  getEnvironment(environmentName: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Environment, any, {}>>;
4992
5039
  /**
4993
- * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
5040
+ * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
4994
5041
  * @summary List all available environments
4995
5042
  * @param {*} [options] Override http request option.
4996
5043
  * @throws {RequiredError}
@@ -5029,7 +5076,7 @@ export declare const MaterializationsApiAxiosParamCreator: (configuration?: Conf
5029
5076
  * @param {string} environmentName Name of the environment
5030
5077
  * @param {string} packageName Name of the package
5031
5078
  * @param {string} materializationId ID of the materialization
5032
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
5079
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
5033
5080
  * @param {*} [options] Override http request option.
5034
5081
  * @throws {RequiredError}
5035
5082
  */
@@ -5098,7 +5145,7 @@ export declare const MaterializationsApiFp: (configuration?: Configuration) => {
5098
5145
  * @param {string} environmentName Name of the environment
5099
5146
  * @param {string} packageName Name of the package
5100
5147
  * @param {string} materializationId ID of the materialization
5101
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
5148
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
5102
5149
  * @param {*} [options] Override http request option.
5103
5150
  * @throws {RequiredError}
5104
5151
  */
@@ -5167,7 +5214,7 @@ export declare const MaterializationsApiFactory: (configuration?: Configuration,
5167
5214
  * @param {string} environmentName Name of the environment
5168
5215
  * @param {string} packageName Name of the package
5169
5216
  * @param {string} materializationId ID of the materialization
5170
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
5217
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
5171
5218
  * @param {*} [options] Override http request option.
5172
5219
  * @throws {RequiredError}
5173
5220
  */
@@ -5239,7 +5286,7 @@ export declare class MaterializationsApi extends BaseAPI {
5239
5286
  * @param {string} environmentName Name of the environment
5240
5287
  * @param {string} packageName Name of the package
5241
5288
  * @param {string} materializationId ID of the materialization
5242
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
5289
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
5243
5290
  * @param {*} [options] Override http request option.
5244
5291
  * @throws {RequiredError}
5245
5292
  * @memberof MaterializationsApi
@@ -5711,13 +5758,13 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
5711
5758
  * @param {string} environmentName Name of the environment
5712
5759
  * @param {string} packageName Package name
5713
5760
  * @param {string} [versionId] Version identifier for the package
5714
- * @param {boolean} [reload] Load / reload the package before returning result
5761
+ * @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5715
5762
  * @param {*} [options] Override http request option.
5716
5763
  * @throws {RequiredError}
5717
5764
  */
5718
5765
  getPackage: (environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5719
5766
  /**
5720
- * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
5767
+ * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
5721
5768
  * @summary List environment packages
5722
5769
  * @param {string} environmentName Name of the environment
5723
5770
  * @param {*} [options] Override http request option.
@@ -5764,13 +5811,13 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
5764
5811
  * @param {string} environmentName Name of the environment
5765
5812
  * @param {string} packageName Package name
5766
5813
  * @param {string} [versionId] Version identifier for the package
5767
- * @param {boolean} [reload] Load / reload the package before returning result
5814
+ * @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5768
5815
  * @param {*} [options] Override http request option.
5769
5816
  * @throws {RequiredError}
5770
5817
  */
5771
5818
  getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
5772
5819
  /**
5773
- * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
5820
+ * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
5774
5821
  * @summary List environment packages
5775
5822
  * @param {string} environmentName Name of the environment
5776
5823
  * @param {*} [options] Override http request option.
@@ -5817,13 +5864,13 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
5817
5864
  * @param {string} environmentName Name of the environment
5818
5865
  * @param {string} packageName Package name
5819
5866
  * @param {string} [versionId] Version identifier for the package
5820
- * @param {boolean} [reload] Load / reload the package before returning result
5867
+ * @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5821
5868
  * @param {*} [options] Override http request option.
5822
5869
  * @throws {RequiredError}
5823
5870
  */
5824
5871
  getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
5825
5872
  /**
5826
- * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
5873
+ * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
5827
5874
  * @summary List environment packages
5828
5875
  * @param {string} environmentName Name of the environment
5829
5876
  * @param {*} [options] Override http request option.
@@ -5874,14 +5921,14 @@ export declare class PackagesApi extends BaseAPI {
5874
5921
  * @param {string} environmentName Name of the environment
5875
5922
  * @param {string} packageName Package name
5876
5923
  * @param {string} [versionId] Version identifier for the package
5877
- * @param {boolean} [reload] Load / reload the package before returning result
5924
+ * @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5878
5925
  * @param {*} [options] Override http request option.
5879
5926
  * @throws {RequiredError}
5880
5927
  * @memberof PackagesApi
5881
5928
  */
5882
5929
  getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}>>;
5883
5930
  /**
5884
- * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
5931
+ * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
5885
5932
  * @summary List environment packages
5886
5933
  * @param {string} environmentName Name of the environment
5887
5934
  * @param {*} [options] Override http request option.