@malloy-publisher/sdk 0.0.236 → 0.0.238
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ServerProvider-BupI3Smf.es.js → ServerProvider-kzoOMXNx.es.js} +128 -124
- package/dist/ServerProvider-nJNqhxy6.cjs.js +1 -0
- package/dist/client/api.d.ts +101 -21
- package/dist/client/configuration.d.ts +1 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.es.js +48 -47
- package/dist/{core-Rj_4rRnA.es.js → core-BGHaIj_q.es.js} +1 -1
- package/dist/{core-C-aiDDhx.cjs.js → core-DtPGM_JB.cjs.js} +1 -1
- package/dist/{index-DJW7yQLF.cjs.js → index-B2gBd2gP.cjs.js} +64 -64
- package/dist/{index-DPfNLAv1.es.js → index-CEteIhTc.es.js} +255 -237
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +32 -31
- package/dist/utils/pageEmbed.d.ts +20 -0
- package/package.json +1 -1
- package/src/components/PageViewer/PageViewer.tsx +14 -6
- package/src/index.ts +4 -0
- package/src/utils/pageEmbed.ts +35 -0
- package/dist/ServerProvider-CXg4bBm6.cjs.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const Q=require("react/jsx-runtime"),H=require("@tanstack/react-query"),h=require("axios"),A=require("react"),y=require("@mui/material"),u="http://localhost/api/v0".replace(/\/+$/,"");class x{constructor(n,e=u,r=h){this.basePath=e,this.axios=r,n&&(this.configuration=n,this.basePath=n.basePath??e)}configuration}class Te extends Error{constructor(n,e){super(e),this.field=n,this.name="RequiredError"}}const g={},P="https://example.com",m=function(l,n,e){if(e==null)throw new Te(n,`Required parameter ${n} was null or undefined when calling ${l}.`)};function q(l,n,e=""){n!=null&&(typeof n=="object"?Array.isArray(n)?n.forEach(r=>q(l,r,e)):Object.keys(n).forEach(r=>q(l,n[r],`${e}${e!==""?".":""}${r}`)):l.has(e)?l.append(e,n):l.set(e,n))}const b=function(l,...n){const e=new URLSearchParams(l.search);q(e,n),l.search=e.toString()},C=function(l,n,e){const r=typeof l!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(n.headers["Content-Type"]):r)?JSON.stringify(l!==void 0?l:{}):l||""},v=function(l){return l.pathname+l.search+l.hash},V=function(l,n,e,r){return(a=n,t=e)=>{const o={...l.options,url:(a.defaults.baseURL?"":r?.basePath??t)+l.url};return a.request(o)}},Ne={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},Ee={ServicePrincipal:"service_principal",SasToken:"sas_token"},Ue={Error:"error",Warn:"warn",Debug:"debug"},Me={Success:"success",Error:"error"},we={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},Fe={Ssh:"ssh"},fe={Ok:"ok",Failed:"failed"},Be={Embedded:"embedded",Materialized:"materialized"},Qe={Equal:"equal",In:"in",Like:"like",GreaterThan:"greater_than",LessThan:"less_than"},ze={Live:"live",StaleOk:"stale_ok",Fail:"fail"},$e={Select:"select",Multiselect:"multiselect"},qe={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},Le={Live:"live",StaleOk:"stale_ok",Fail:"fail"},je={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},He={Markdown:"markdown",Code:"code"},De={Markdown:"markdown",Code:"code"},We={Version:"version",Package:"package"},_e={Declared:"declared",All:"all"},Ge={Unbound:"unbound",Bound:"bound",LiveFallback:"live_fallback"},Ye={Error:"error",Warn:"warn"},Ke={Viewport:"viewport"},Je={Disable:"disable",NoVerify:"no-verify",VerifyCa:"verify-ca",VerifyFull:"verify-full"},Xe={Interactive:"interactive",Materialize:"materialize",Index:"index",Ops:"ops"},Ze={Query:"query",ServerDefault:"server_default"},ea={Snapshot:"SNAPSHOT",Copy:"COPY"},aa={Publish:"publish",OnDemand:"on_demand",Scheduler:"scheduler"},ta={Initializing:"initializing",Serving:"serving",Draining:"draining",Throttled:"throttled"},na={Light:"light",Dark:"dark",Auto:"auto"},J=function(l){return{createConnection:async(n,e,r,a={})=>{m("createConnection","environmentName",n),m("createConnection","connectionName",e),m("createConnection","connection",r);const t="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}},deleteConnection:async(n,e,r={})=>{m("deleteConnection","environmentName",n),m("deleteConnection","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"DELETE",...o,...r},c={};b(t,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},{url:v(t),options:s}},getConnection:async(n,e,r={})=>{m("getConnection","environmentName",n),m("getConnection","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={};b(t,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},{url:v(t),options:s}},getTable:async(n,e,r,a,t={})=>{m("getTable","environmentName",n),m("getTable","connectionName",e),m("getTable","schemaName",r),m("getTable","tablePath",a);const o="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(r))).replace("{tablePath}",encodeURIComponent(String(a))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},d={};b(s,{});let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},{url:v(s),options:i}},getTableInPackage:async(n,e,r,a,t,o={})=>{m("getTableInPackage","environmentName",n),m("getTableInPackage","packageName",e),m("getTableInPackage","connectionName",r),m("getTableInPackage","schemaName",a),m("getTableInPackage","tablePath",t);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(a))).replace("{tablePath}",encodeURIComponent(String(t))),c=new URL(s,P);let i;l&&(i=l.baseOptions);const d={method:"GET",...i,...o},p={};b(c,{});let k=i&&i.headers?i.headers:{};return d.headers={...p,...k,...o.headers},{url:v(c),options:d}},listConnections:async(n,e={})=>{m("listConnections","environmentName",n);const r="/environments/{environmentName}/connections".replace("{environmentName}",encodeURIComponent(String(n))),a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"GET",...t,...e},s={};b(a,{});let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},listSchemas:async(n,e,r={})=>{m("listSchemas","environmentName",n),m("listSchemas","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={};b(t,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},{url:v(t),options:s}},listSchemasInPackage:async(n,e,r,a={})=>{m("listSchemasInPackage","environmentName",n),m("listSchemasInPackage","packageName",e),m("listSchemasInPackage","connectionName",r);const t="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={};b(o,{});let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}},listTables:async(n,e,r,a,t={})=>{m("listTables","environmentName",n),m("listTables","connectionName",e),m("listTables","schemaName",r);const o="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},d={},p={};a&&(p.tableNames=a),b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},{url:v(s),options:i}},listTablesInPackage:async(n,e,r,a,t,o={})=>{m("listTablesInPackage","environmentName",n),m("listTablesInPackage","packageName",e),m("listTablesInPackage","connectionName",r),m("listTablesInPackage","schemaName",a);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(a))),c=new URL(s,P);let i;l&&(i=l.baseOptions);const d={method:"GET",...i,...o},p={},O={};t&&(O.tableNames=t),b(c,O);let k=i&&i.headers?i.headers:{};return d.headers={...p,...k,...o.headers},{url:v(c),options:d}},postQuerydata:async(n,e,r,a={})=>{m("postQuerydata","environmentName",n),m("postQuerydata","connectionName",e),m("postQuerydata","postQuerydataRequest",r);const t="/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}},postQuerydataInPackage:async(n,e,r,a,t={})=>{m("postQuerydataInPackage","environmentName",n),m("postQuerydataInPackage","packageName",e),m("postQuerydataInPackage","connectionName",r),m("postQuerydataInPackage","postQuerydataRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},d={},p={};d["Content-Type"]="application/json",b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},i.data=C(a,i,l),{url:v(s),options:i}},postSqlsource:async(n,e,r,a={})=>{m("postSqlsource","environmentName",n),m("postSqlsource","connectionName",e),m("postSqlsource","postSqlsourceRequest",r);const t="/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}},postSqlsourceInPackage:async(n,e,r,a,t={})=>{m("postSqlsourceInPackage","environmentName",n),m("postSqlsourceInPackage","packageName",e),m("postSqlsourceInPackage","connectionName",r),m("postSqlsourceInPackage","postSqlsourceRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},d={},p={};d["Content-Type"]="application/json",b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},i.data=C(a,i,l),{url:v(s),options:i}},postTemporarytable:async(n,e,r,a={})=>{m("postTemporarytable","environmentName",n),m("postTemporarytable","connectionName",e),m("postTemporarytable","postSqlsourceRequest",r);const t="/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}},postTemporarytableInPackage:async(n,e,r,a,t={})=>{m("postTemporarytableInPackage","environmentName",n),m("postTemporarytableInPackage","packageName",e),m("postTemporarytableInPackage","connectionName",r),m("postTemporarytableInPackage","postSqlsourceRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},d={},p={};d["Content-Type"]="application/json",b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},i.data=C(a,i,l),{url:v(s),options:i}},updateConnection:async(n,e,r,a={})=>{m("updateConnection","environmentName",n),m("updateConnection","connectionName",e),m("updateConnection","updateConnectionRequest",r);const t="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"PATCH",...s,...a},i={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}}}},S=function(l){const n=J(l);return{async createConnection(e,r,a,t){const o=await n.createConnection(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.createConnection"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async deleteConnection(e,r,a){const t=await n.deleteConnection(e,r,a),o=l?.serverIndex??0,s=g["ConnectionsApi.deleteConnection"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async getConnection(e,r,a){const t=await n.getConnection(e,r,a),o=l?.serverIndex??0,s=g["ConnectionsApi.getConnection"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async getTable(e,r,a,t,o){const s=await n.getTable(e,r,a,t,o),c=l?.serverIndex??0,i=g["ConnectionsApi.getTable"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async getTableInPackage(e,r,a,t,o,s){const c=await n.getTableInPackage(e,r,a,t,o,s),i=l?.serverIndex??0,d=g["ConnectionsApi.getTableInPackage"]?.[i]?.url;return(p,O)=>V(c,h,u,l)(p,d||O)},async listConnections(e,r){const a=await n.listConnections(e,r),t=l?.serverIndex??0,o=g["ConnectionsApi.listConnections"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async listSchemas(e,r,a){const t=await n.listSchemas(e,r,a),o=l?.serverIndex??0,s=g["ConnectionsApi.listSchemas"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async listSchemasInPackage(e,r,a,t){const o=await n.listSchemasInPackage(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async listTables(e,r,a,t,o){const s=await n.listTables(e,r,a,t,o),c=l?.serverIndex??0,i=g["ConnectionsApi.listTables"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async listTablesInPackage(e,r,a,t,o,s){const c=await n.listTablesInPackage(e,r,a,t,o,s),i=l?.serverIndex??0,d=g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;return(p,O)=>V(c,h,u,l)(p,d||O)},async postQuerydata(e,r,a,t){const o=await n.postQuerydata(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.postQuerydata"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async postQuerydataInPackage(e,r,a,t,o){const s=await n.postQuerydataInPackage(e,r,a,t,o),c=l?.serverIndex??0,i=g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async postSqlsource(e,r,a,t){const o=await n.postSqlsource(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.postSqlsource"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async postSqlsourceInPackage(e,r,a,t,o){const s=await n.postSqlsourceInPackage(e,r,a,t,o),c=l?.serverIndex??0,i=g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async postTemporarytable(e,r,a,t){const o=await n.postTemporarytable(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.postTemporarytable"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async postTemporarytableInPackage(e,r,a,t,o){const s=await n.postTemporarytableInPackage(e,r,a,t,o),c=l?.serverIndex??0,i=g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async updateConnection(e,r,a,t){const o=await n.updateConnection(e,r,a,t),s=l?.serverIndex??0,c=g["ConnectionsApi.updateConnection"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},ra=function(l,n,e){const r=S(l);return{createConnection(a,t,o,s){return r.createConnection(a,t,o,s).then(c=>c(e,n))},deleteConnection(a,t,o){return r.deleteConnection(a,t,o).then(s=>s(e,n))},getConnection(a,t,o){return r.getConnection(a,t,o).then(s=>s(e,n))},getTable(a,t,o,s,c){return r.getTable(a,t,o,s,c).then(i=>i(e,n))},getTableInPackage(a,t,o,s,c,i){return r.getTableInPackage(a,t,o,s,c,i).then(d=>d(e,n))},listConnections(a,t){return r.listConnections(a,t).then(o=>o(e,n))},listSchemas(a,t,o){return r.listSchemas(a,t,o).then(s=>s(e,n))},listSchemasInPackage(a,t,o,s){return r.listSchemasInPackage(a,t,o,s).then(c=>c(e,n))},listTables(a,t,o,s,c){return r.listTables(a,t,o,s,c).then(i=>i(e,n))},listTablesInPackage(a,t,o,s,c,i){return r.listTablesInPackage(a,t,o,s,c,i).then(d=>d(e,n))},postQuerydata(a,t,o,s){return r.postQuerydata(a,t,o,s).then(c=>c(e,n))},postQuerydataInPackage(a,t,o,s,c){return r.postQuerydataInPackage(a,t,o,s,c).then(i=>i(e,n))},postSqlsource(a,t,o,s){return r.postSqlsource(a,t,o,s).then(c=>c(e,n))},postSqlsourceInPackage(a,t,o,s,c){return r.postSqlsourceInPackage(a,t,o,s,c).then(i=>i(e,n))},postTemporarytable(a,t,o,s){return r.postTemporarytable(a,t,o,s).then(c=>c(e,n))},postTemporarytableInPackage(a,t,o,s,c){return r.postTemporarytableInPackage(a,t,o,s,c).then(i=>i(e,n))},updateConnection(a,t,o,s){return r.updateConnection(a,t,o,s).then(c=>c(e,n))}}};class X extends x{createConnection(n,e,r,a){return S(this.configuration).createConnection(n,e,r,a).then(t=>t(this.axios,this.basePath))}deleteConnection(n,e,r){return S(this.configuration).deleteConnection(n,e,r).then(a=>a(this.axios,this.basePath))}getConnection(n,e,r){return S(this.configuration).getConnection(n,e,r).then(a=>a(this.axios,this.basePath))}getTable(n,e,r,a,t){return S(this.configuration).getTable(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}getTableInPackage(n,e,r,a,t,o){return S(this.configuration).getTableInPackage(n,e,r,a,t,o).then(s=>s(this.axios,this.basePath))}listConnections(n,e){return S(this.configuration).listConnections(n,e).then(r=>r(this.axios,this.basePath))}listSchemas(n,e,r){return S(this.configuration).listSchemas(n,e,r).then(a=>a(this.axios,this.basePath))}listSchemasInPackage(n,e,r,a){return S(this.configuration).listSchemasInPackage(n,e,r,a).then(t=>t(this.axios,this.basePath))}listTables(n,e,r,a,t){return S(this.configuration).listTables(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}listTablesInPackage(n,e,r,a,t,o){return S(this.configuration).listTablesInPackage(n,e,r,a,t,o).then(s=>s(this.axios,this.basePath))}postQuerydata(n,e,r,a){return S(this.configuration).postQuerydata(n,e,r,a).then(t=>t(this.axios,this.basePath))}postQuerydataInPackage(n,e,r,a,t){return S(this.configuration).postQuerydataInPackage(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}postSqlsource(n,e,r,a){return S(this.configuration).postSqlsource(n,e,r,a).then(t=>t(this.axios,this.basePath))}postSqlsourceInPackage(n,e,r,a,t){return S(this.configuration).postSqlsourceInPackage(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}postTemporarytable(n,e,r,a){return S(this.configuration).postTemporarytable(n,e,r,a).then(t=>t(this.axios,this.basePath))}postTemporarytableInPackage(n,e,r,a,t){return S(this.configuration).postTemporarytableInPackage(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}updateConnection(n,e,r,a){return S(this.configuration).updateConnection(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const Z=function(l){return{testConnectionConfiguration:async(n,e={})=>{m("testConnectionConfiguration","connection",n);const r="/connections/test",a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"POST",...t,...e},s={},c={};s["Content-Type"]="application/json",b(a,c);let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},o.data=C(n,o,l),{url:v(a),options:o}}}},D=function(l){const n=Z(l);return{async testConnectionConfiguration(e,r){const a=await n.testConnectionConfiguration(e,r),t=l?.serverIndex??0,o=g["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)}}},oa=function(l,n,e){const r=D(l);return{testConnectionConfiguration(a,t){return r.testConnectionConfiguration(a,t).then(o=>o(e,n))}}};class sa extends x{testConnectionConfiguration(n,e){return D(this.configuration).testConnectionConfiguration(n,e).then(r=>r(this.axios,this.basePath))}}const ee=function(l){return{listDatabases:async(n,e,r,a={})=>{m("listDatabases","environmentName",n),m("listDatabases","packageName",e);const t="/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},d={};r!==void 0&&(d.versionId=r),b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}}}},W=function(l){const n=ee(l);return{async listDatabases(e,r,a,t){const o=await n.listDatabases(e,r,a,t),s=l?.serverIndex??0,c=g["DatabasesApi.listDatabases"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},la=function(l,n,e){const r=W(l);return{listDatabases(a,t,o,s){return r.listDatabases(a,t,o,s).then(c=>c(e,n))}}};class ae extends x{listDatabases(n,e,r,a){return W(this.configuration).listDatabases(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const te=function(l){return{createEnvironment:async(n,e={})=>{m("createEnvironment","environment",n);const r="/environments",a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"POST",...t,...e},s={},c={};s["Content-Type"]="application/json",b(a,c);let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},o.data=C(n,o,l),{url:v(a),options:o}},deleteEnvironment:async(n,e={})=>{m("deleteEnvironment","environmentName",n);const r="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(n))),a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"DELETE",...t,...e},s={};b(a,{});let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},getEnvironment:async(n,e,r={})=>{m("getEnvironment","environmentName",n);const a="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(n))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={},i={};e!==void 0&&(i.reload=e),b(t,i);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},{url:v(t),options:s}},listEnvironments:async(n={})=>{const e="/environments",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"GET",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},updateEnvironment:async(n,e,r={})=>{m("updateEnvironment","environmentName",n),m("updateEnvironment","environment",e);const a="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(n))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"PATCH",...o,...r},c={},i={};c["Content-Type"]="application/json",b(t,i);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},s.data=C(e,s,l),{url:v(t),options:s}}}},T=function(l){const n=te(l);return{async createEnvironment(e,r){const a=await n.createEnvironment(e,r),t=l?.serverIndex??0,o=g["EnvironmentsApi.createEnvironment"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async deleteEnvironment(e,r){const a=await n.deleteEnvironment(e,r),t=l?.serverIndex??0,o=g["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async getEnvironment(e,r,a){const t=await n.getEnvironment(e,r,a),o=l?.serverIndex??0,s=g["EnvironmentsApi.getEnvironment"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async listEnvironments(e){const r=await n.listEnvironments(e),a=l?.serverIndex??0,t=g["EnvironmentsApi.listEnvironments"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async updateEnvironment(e,r,a){const t=await n.updateEnvironment(e,r,a),o=l?.serverIndex??0,s=g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)}}},ca=function(l,n,e){const r=T(l);return{createEnvironment(a,t){return r.createEnvironment(a,t).then(o=>o(e,n))},deleteEnvironment(a,t){return r.deleteEnvironment(a,t).then(o=>o(e,n))},getEnvironment(a,t,o){return r.getEnvironment(a,t,o).then(s=>s(e,n))},listEnvironments(a){return r.listEnvironments(a).then(t=>t(e,n))},updateEnvironment(a,t,o){return r.updateEnvironment(a,t,o).then(s=>s(e,n))}}};class ne extends x{createEnvironment(n,e){return T(this.configuration).createEnvironment(n,e).then(r=>r(this.axios,this.basePath))}deleteEnvironment(n,e){return T(this.configuration).deleteEnvironment(n,e).then(r=>r(this.axios,this.basePath))}getEnvironment(n,e,r){return T(this.configuration).getEnvironment(n,e,r).then(a=>a(this.axios,this.basePath))}listEnvironments(n){return T(this.configuration).listEnvironments(n).then(e=>e(this.axios,this.basePath))}updateEnvironment(n,e,r){return T(this.configuration).updateEnvironment(n,e,r).then(a=>a(this.axios,this.basePath))}}const re=function(l){return{createMaterialization:async(n,e,r,a={})=>{m("createMaterialization","environmentName",n),m("createMaterialization","packageName",e);const t="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}},deleteMaterialization:async(n,e,r,a,t={})=>{m("deleteMaterialization","environmentName",n),m("deleteMaterialization","packageName",e),m("deleteMaterialization","materializationId",r);const o="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"DELETE",...c,...t},d={},p={};a!==void 0&&(p.dropTables=a),b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},{url:v(s),options:i}},getMaterialization:async(n,e,r,a={})=>{m("getMaterialization","environmentName",n),m("getMaterialization","packageName",e),m("getMaterialization","materializationId",r);const t="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(r))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={};b(o,{});let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}},listEnvironmentMaterializations:async(n,e,r,a={})=>{m("listEnvironmentMaterializations","environmentName",n);const t="/environments/{environmentName}/packages/materializations".replace("{environmentName}",encodeURIComponent(String(n))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},d={};e!==void 0&&(d.limit=e),r!==void 0&&(d.offset=r),b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}},listMaterializations:async(n,e,r,a,t={})=>{m("listMaterializations","environmentName",n),m("listMaterializations","packageName",e);const o="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},d={},p={};r!==void 0&&(p.limit=r),a!==void 0&&(p.offset=a),b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},{url:v(s),options:i}},materializationAction:async(n,e,r,a,t={})=>{m("materializationAction","environmentName",n),m("materializationAction","packageName",e),m("materializationAction","materializationId",r),m("materializationAction","action",a);const o="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},d={},p={};a!==void 0&&(p.action=a),b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},{url:v(s),options:i}}}},R=function(l){const n=re(l);return{async createMaterialization(e,r,a,t){const o=await n.createMaterialization(e,r,a,t),s=l?.serverIndex??0,c=g["MaterializationsApi.createMaterialization"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async deleteMaterialization(e,r,a,t,o){const s=await n.deleteMaterialization(e,r,a,t,o),c=l?.serverIndex??0,i=g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async getMaterialization(e,r,a,t){const o=await n.getMaterialization(e,r,a,t),s=l?.serverIndex??0,c=g["MaterializationsApi.getMaterialization"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async listEnvironmentMaterializations(e,r,a,t){const o=await n.listEnvironmentMaterializations(e,r,a,t),s=l?.serverIndex??0,c=g["MaterializationsApi.listEnvironmentMaterializations"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)},async listMaterializations(e,r,a,t,o){const s=await n.listMaterializations(e,r,a,t,o),c=l?.serverIndex??0,i=g["MaterializationsApi.listMaterializations"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async materializationAction(e,r,a,t,o){const s=await n.materializationAction(e,r,a,t,o),c=l?.serverIndex??0,i=g["MaterializationsApi.materializationAction"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)}}},ia=function(l,n,e){const r=R(l);return{createMaterialization(a,t,o,s){return r.createMaterialization(a,t,o,s).then(c=>c(e,n))},deleteMaterialization(a,t,o,s,c){return r.deleteMaterialization(a,t,o,s,c).then(i=>i(e,n))},getMaterialization(a,t,o,s){return r.getMaterialization(a,t,o,s).then(c=>c(e,n))},listEnvironmentMaterializations(a,t,o,s){return r.listEnvironmentMaterializations(a,t,o,s).then(c=>c(e,n))},listMaterializations(a,t,o,s,c){return r.listMaterializations(a,t,o,s,c).then(i=>i(e,n))},materializationAction(a,t,o,s,c){return r.materializationAction(a,t,o,s,c).then(i=>i(e,n))}}};class oe extends x{createMaterialization(n,e,r,a){return R(this.configuration).createMaterialization(n,e,r,a).then(t=>t(this.axios,this.basePath))}deleteMaterialization(n,e,r,a,t){return R(this.configuration).deleteMaterialization(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}getMaterialization(n,e,r,a){return R(this.configuration).getMaterialization(n,e,r,a).then(t=>t(this.axios,this.basePath))}listEnvironmentMaterializations(n,e,r,a){return R(this.configuration).listEnvironmentMaterializations(n,e,r,a).then(t=>t(this.axios,this.basePath))}listMaterializations(n,e,r,a,t){return R(this.configuration).listMaterializations(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}materializationAction(n,e,r,a,t){return R(this.configuration).materializationAction(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}}const da={Stop:"stop"},se=function(l){return{compileModelSource:async(n,e,r,a,t={})=>{m("compileModelSource","environmentName",n),m("compileModelSource","packageName",e),m("compileModelSource","path",r),m("compileModelSource","compileRequest",a);const o="/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},d={},p={};d["Content-Type"]="application/json",b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},i.data=C(a,i,l),{url:v(s),options:i}},executeQueryModel:async(n,e,r,a,t={})=>{m("executeQueryModel","environmentName",n),m("executeQueryModel","packageName",e),m("executeQueryModel","path",r),m("executeQueryModel","queryRequest",a);const o="/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...t},d={},p={};d["Content-Type"]="application/json",b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},i.data=C(a,i,l),{url:v(s),options:i}},getModel:async(n,e,r,a,t={})=>{m("getModel","environmentName",n),m("getModel","packageName",e),m("getModel","path",r);const o="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},d={},p={};a!==void 0&&(p.versionId=a),b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},{url:v(s),options:i}},listModels:async(n,e,r,a={})=>{m("listModels","environmentName",n),m("listModels","packageName",e);const t="/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},d={};r!==void 0&&(d.versionId=r),b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}}}},U=function(l){const n=se(l);return{async compileModelSource(e,r,a,t,o){const s=await n.compileModelSource(e,r,a,t,o),c=l?.serverIndex??0,i=g["ModelsApi.compileModelSource"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async executeQueryModel(e,r,a,t,o){const s=await n.executeQueryModel(e,r,a,t,o),c=l?.serverIndex??0,i=g["ModelsApi.executeQueryModel"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async getModel(e,r,a,t,o){const s=await n.getModel(e,r,a,t,o),c=l?.serverIndex??0,i=g["ModelsApi.getModel"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async listModels(e,r,a,t){const o=await n.listModels(e,r,a,t),s=l?.serverIndex??0,c=g["ModelsApi.listModels"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},pa=function(l,n,e){const r=U(l);return{compileModelSource(a,t,o,s,c){return r.compileModelSource(a,t,o,s,c).then(i=>i(e,n))},executeQueryModel(a,t,o,s,c){return r.executeQueryModel(a,t,o,s,c).then(i=>i(e,n))},getModel(a,t,o,s,c){return r.getModel(a,t,o,s,c).then(i=>i(e,n))},listModels(a,t,o,s){return r.listModels(a,t,o,s).then(c=>c(e,n))}}};class le extends x{compileModelSource(n,e,r,a,t){return U(this.configuration).compileModelSource(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}executeQueryModel(n,e,r,a,t){return U(this.configuration).executeQueryModel(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}getModel(n,e,r,a,t){return U(this.configuration).getModel(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}listModels(n,e,r,a){return U(this.configuration).listModels(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const ce=function(l){return{executeNotebookCell:async(n,e,r,a,t,o,s,c,i={})=>{m("executeNotebookCell","environmentName",n),m("executeNotebookCell","packageName",e),m("executeNotebookCell","path",r),m("executeNotebookCell","cellIndex",a);const d="/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))).replace("{cellIndex}",encodeURIComponent(String(a))),p=new URL(d,P);let O;l&&(O=l.baseOptions);const k={method:"GET",...O,...i},f={},I={};t!==void 0&&(I.versionId=t),o!==void 0&&(I.filter_params=o),s!==void 0&&(I.bypass_filters=s),c!==void 0&&(I.givens=c),b(p,I);let z=O&&O.headers?O.headers:{};return k.headers={...f,...z,...i.headers},{url:v(p),options:k}},getNotebook:async(n,e,r,a,t={})=>{m("getNotebook","environmentName",n),m("getNotebook","packageName",e),m("getNotebook","path",r);const o="/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},d={},p={};a!==void 0&&(p.versionId=a),b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},{url:v(s),options:i}},listNotebooks:async(n,e,r,a={})=>{m("listNotebooks","environmentName",n),m("listNotebooks","packageName",e);const t="/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},d={};r!==void 0&&(d.versionId=r),b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},{url:v(o),options:c}}}},B=function(l){const n=ce(l);return{async executeNotebookCell(e,r,a,t,o,s,c,i,d){const p=await n.executeNotebookCell(e,r,a,t,o,s,c,i,d),O=l?.serverIndex??0,k=g["NotebooksApi.executeNotebookCell"]?.[O]?.url;return(f,I)=>V(p,h,u,l)(f,k||I)},async getNotebook(e,r,a,t,o){const s=await n.getNotebook(e,r,a,t,o),c=l?.serverIndex??0,i=g["NotebooksApi.getNotebook"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async listNotebooks(e,r,a,t){const o=await n.listNotebooks(e,r,a,t),s=l?.serverIndex??0,c=g["NotebooksApi.listNotebooks"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},ma=function(l,n,e){const r=B(l);return{executeNotebookCell(a,t,o,s,c,i,d,p,O){return r.executeNotebookCell(a,t,o,s,c,i,d,p,O).then(k=>k(e,n))},getNotebook(a,t,o,s,c){return r.getNotebook(a,t,o,s,c).then(i=>i(e,n))},listNotebooks(a,t,o,s){return r.listNotebooks(a,t,o,s).then(c=>c(e,n))}}};class ie extends x{executeNotebookCell(n,e,r,a,t,o,s,c,i){return B(this.configuration).executeNotebookCell(n,e,r,a,t,o,s,c,i).then(d=>d(this.axios,this.basePath))}getNotebook(n,e,r,a,t){return B(this.configuration).getNotebook(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}listNotebooks(n,e,r,a){return B(this.configuration).listNotebooks(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const ha={True:"true",False:"false"},de=function(l){return{createPackage:async(n,e,r={})=>{m("createPackage","environmentName",n),m("createPackage","_package",e);const a="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(n))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"POST",...o,...r},c={},i={};c["Content-Type"]="application/json",b(t,i);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},s.data=C(e,s,l),{url:v(t),options:s}},deletePackage:async(n,e,r={})=>{m("deletePackage","environmentName",n),m("deletePackage","packageName",e);const a="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"DELETE",...o,...r},c={};b(t,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},{url:v(t),options:s}},getPackage:async(n,e,r,a,t={})=>{m("getPackage","environmentName",n),m("getPackage","packageName",e);const o="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,P);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...t},d={},p={};r!==void 0&&(p.versionId=r),a!==void 0&&(p.reload=a),b(s,p);let O=c&&c.headers?c.headers:{};return i.headers={...d,...O,...t.headers},{url:v(s),options:i}},listPackages:async(n,e={})=>{m("listPackages","environmentName",n);const r="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(n))),a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"GET",...t,...e},s={};b(a,{});let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},updatePackage:async(n,e,r,a={})=>{m("updatePackage","environmentName",n),m("updatePackage","packageName",e),m("updatePackage","_package",r);const t="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,P);let s;l&&(s=l.baseOptions);const c={method:"PATCH",...s,...a},i={},d={};i["Content-Type"]="application/json",b(o,d);let p=s&&s.headers?s.headers:{};return c.headers={...i,...p,...a.headers},c.data=C(r,c,l),{url:v(o),options:c}}}},N=function(l){const n=de(l);return{async createPackage(e,r,a){const t=await n.createPackage(e,r,a),o=l?.serverIndex??0,s=g["PackagesApi.createPackage"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async deletePackage(e,r,a){const t=await n.deletePackage(e,r,a),o=l?.serverIndex??0,s=g["PackagesApi.deletePackage"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)},async getPackage(e,r,a,t,o){const s=await n.getPackage(e,r,a,t,o),c=l?.serverIndex??0,i=g["PackagesApi.getPackage"]?.[c]?.url;return(d,p)=>V(s,h,u,l)(d,i||p)},async listPackages(e,r){const a=await n.listPackages(e,r),t=l?.serverIndex??0,o=g["PackagesApi.listPackages"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async updatePackage(e,r,a,t){const o=await n.updatePackage(e,r,a,t),s=l?.serverIndex??0,c=g["PackagesApi.updatePackage"]?.[s]?.url;return(i,d)=>V(o,h,u,l)(i,c||d)}}},ua=function(l,n,e){const r=N(l);return{createPackage(a,t,o){return r.createPackage(a,t,o).then(s=>s(e,n))},deletePackage(a,t,o){return r.deletePackage(a,t,o).then(s=>s(e,n))},getPackage(a,t,o,s,c){return r.getPackage(a,t,o,s,c).then(i=>i(e,n))},listPackages(a,t){return r.listPackages(a,t).then(o=>o(e,n))},updatePackage(a,t,o,s){return r.updatePackage(a,t,o,s).then(c=>c(e,n))}}};class pe extends x{createPackage(n,e,r){return N(this.configuration).createPackage(n,e,r).then(a=>a(this.axios,this.basePath))}deletePackage(n,e,r){return N(this.configuration).deletePackage(n,e,r).then(a=>a(this.axios,this.basePath))}getPackage(n,e,r,a,t){return N(this.configuration).getPackage(n,e,r,a,t).then(o=>o(this.axios,this.basePath))}listPackages(n,e){return N(this.configuration).listPackages(n,e).then(r=>r(this.axios,this.basePath))}updatePackage(n,e,r,a){return N(this.configuration).updatePackage(n,e,r,a).then(t=>t(this.axios,this.basePath))}}const me=function(l){return{listPages:async(n,e,r={})=>{m("listPages","environmentName",n),m("listPages","packageName",e);const a="/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={};b(t,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},{url:v(t),options:s}}}},_=function(l){const n=me(l);return{async listPages(e,r,a){const t=await n.listPages(e,r,a),o=l?.serverIndex??0,s=g["PagesApi.listPages"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)}}},ga=function(l,n,e){const r=_(l);return{listPages(a,t,o){return r.listPages(a,t,o).then(s=>s(e,n))}}};class he extends x{listPages(n,e,r){return _(this.configuration).listPages(n,e,r).then(a=>a(this.axios,this.basePath))}}const ue=function(l){return{deleteTheme:async(n={})=>{const e="/theme",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"DELETE",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},getStatus:async(n={})=>{const e="/status",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"GET",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},getTheme:async(n={})=>{const e="/theme",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"GET",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},updateTheme:async(n,e={})=>{m("updateTheme","theme",n);const r="/theme",a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"PUT",...t,...e},s={},c={};s["Content-Type"]="application/json",b(a,c);let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},o.data=C(n,o,l),{url:v(a),options:o}}}},M=function(l){const n=ue(l);return{async deleteTheme(e){const r=await n.deleteTheme(e),a=l?.serverIndex??0,t=g["PublisherApi.deleteTheme"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async getStatus(e){const r=await n.getStatus(e),a=l?.serverIndex??0,t=g["PublisherApi.getStatus"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async getTheme(e){const r=await n.getTheme(e),a=l?.serverIndex??0,t=g["PublisherApi.getTheme"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async updateTheme(e,r){const a=await n.updateTheme(e,r),t=l?.serverIndex??0,o=g["PublisherApi.updateTheme"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)}}},Pa=function(l,n,e){const r=M(l);return{deleteTheme(a){return r.deleteTheme(a).then(t=>t(e,n))},getStatus(a){return r.getStatus(a).then(t=>t(e,n))},getTheme(a){return r.getTheme(a).then(t=>t(e,n))},updateTheme(a,t){return r.updateTheme(a,t).then(o=>o(e,n))}}};class ge extends x{deleteTheme(n){return M(this.configuration).deleteTheme(n).then(e=>e(this.axios,this.basePath))}getStatus(n){return M(this.configuration).getStatus(n).then(e=>e(this.axios,this.basePath))}getTheme(n){return M(this.configuration).getTheme(n).then(e=>e(this.axios,this.basePath))}updateTheme(n,e){return M(this.configuration).updateTheme(n,e).then(r=>r(this.axios,this.basePath))}}const Pe=function(l){return{getWatchStatus:async(n={})=>{const e="/watch-mode/status",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"GET",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},startWatching:async(n,e={})=>{m("startWatching","startWatchRequest",n);const r="/watch-mode/start",a=new URL(r,P);let t;l&&(t=l.baseOptions);const o={method:"POST",...t,...e},s={},c={};s["Content-Type"]="application/json",b(a,c);let i=t&&t.headers?t.headers:{};return o.headers={...s,...i,...e.headers},o.data=C(n,o,l),{url:v(a),options:o}},stopWatching:async(n={})=>{const e="/watch-mode/stop",r=new URL(e,P);let a;l&&(a=l.baseOptions);const t={method:"POST",...a,...n},o={};b(r,{});let c=a&&a.headers?a.headers:{};return t.headers={...o,...c,...n.headers},{url:v(r),options:t}},streamPackageEvents:async(n,e,r={})=>{m("streamPackageEvents","environmentName",n),m("streamPackageEvents","packageName",e);const a="/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}",encodeURIComponent(String(n))).replace("{packageName}",encodeURIComponent(String(e))),t=new URL(a,P);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...r},c={};b(t,{});let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},{url:v(t),options:s}}}},w=function(l){const n=Pe(l);return{async getWatchStatus(e){const r=await n.getWatchStatus(e),a=l?.serverIndex??0,t=g["WatchModeApi.getWatchStatus"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async startWatching(e,r){const a=await n.startWatching(e,r),t=l?.serverIndex??0,o=g["WatchModeApi.startWatching"]?.[t]?.url;return(s,c)=>V(a,h,u,l)(s,o||c)},async stopWatching(e){const r=await n.stopWatching(e),a=l?.serverIndex??0,t=g["WatchModeApi.stopWatching"]?.[a]?.url;return(o,s)=>V(r,h,u,l)(o,t||s)},async streamPackageEvents(e,r,a){const t=await n.streamPackageEvents(e,r,a),o=l?.serverIndex??0,s=g["WatchModeApi.streamPackageEvents"]?.[o]?.url;return(c,i)=>V(t,h,u,l)(c,s||i)}}},ba=function(l,n,e){const r=w(l);return{getWatchStatus(a){return r.getWatchStatus(a).then(t=>t(e,n))},startWatching(a,t){return r.startWatching(a,t).then(o=>o(e,n))},stopWatching(a){return r.stopWatching(a).then(t=>t(e,n))},streamPackageEvents(a,t,o){return r.streamPackageEvents(a,t,o).then(s=>s(e,n))}}};class be extends x{getWatchStatus(n){return w(this.configuration).getWatchStatus(n).then(e=>e(this.axios,this.basePath))}startWatching(n,e){return w(this.configuration).startWatching(n,e).then(r=>r(this.axios,this.basePath))}stopWatching(n){return w(this.configuration).stopWatching(n).then(e=>e(this.axios,this.basePath))}streamPackageEvents(n,e,r){return w(this.configuration).streamPackageEvents(n,e,r).then(a=>a(this.axios,this.basePath))}}class ve{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(n={}){this.apiKey=n.apiKey,this.username=n.username,this.password=n.password,this.accessToken=n.accessToken,this.basePath=n.basePath,this.serverIndex=n.serverIndex,this.baseOptions={...n.baseOptions,headers:{...n.baseOptions?.headers}},this.formDataCtor=n.formDataCtor}isJsonMime(n){const e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return n!==null&&(e.test(n)||n.toLowerCase()==="application/json-patch+json")}}const F={teal:"#14b3cb",orange:"#e47404",darkBlue:"#1474a4"},va='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',Va=y.styled(y.Card)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),Oa=y.styled(y.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),ya=y.styled(y.CardMedia)({padding:"0"}),Sa=y.styled("div")(({theme:l})=>({backgroundColor:l.palette.background.default,padding:"0 8px 0px 8px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"}));y.styled("div")(({theme:l})=>({marginBottom:"40px",paddingBottom:"24px",borderBottom:`1px solid ${l.palette.divider}`}));const Ca=y.styled("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),ka=y.styled("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Aa=y.styled("div")({backgroundColor:"transparent",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"none",boxShadow:"none",marginBottom:"0"});y.styled("div")(({theme:l})=>({backgroundColor:l.palette.mode==="dark"?"#1e293b":"#f8f9fa",padding:"16px",borderRadius:"8px",border:`1px solid ${l.palette.divider}`,fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto",color:l.palette.text.primary}));y.styled("div")(({theme:l})=>({backgroundColor:l.palette.mode==="dark"?"#1e293b":"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:`1px solid ${l.palette.divider}`,marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"}));const xa=y.styled("div")({height:"100%"});y.styled("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const Ia=y.styled("div")({height:"75vh",width:"100%",overflowY:"auto"});y.styled("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Ra=y.styled(y.Card)(({theme:l})=>({backgroundColor:l.palette.background.paper,padding:"24px",borderRadius:"8px",border:`1px solid ${l.palette.divider}`,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}})),Ta=y.styled(y.CardContent)({padding:"0","&:last-child":{paddingBottom:"0"}}),Na=y.styled("div")(({theme:l})=>({fontSize:"0.875rem",fontWeight:500,color:l.palette.text.secondary,marginBottom:"16px",paddingBottom:"8px",borderBottom:`1px solid ${l.palette.divider}`}));y.styled("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"});const Ea=[F.teal,F.orange,F.darkBlue,"#66cedc","#ec72b8","#f9c85b","#aacd85","#b87ced"],Ua="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",L={defaultMode:"light",allowUserToggle:!0,palette:{series:Ea,background:{light:"#ffffff",dark:"#1e293b"},tableHeader:{light:"#5d626b",dark:"#cbd5e1"},tableHeaderBackground:{light:"#f5fafc",dark:"#1e293b"},tableBody:{light:"#727883",dark:"#e2e8f0"},tile:{light:"#f5fafc",dark:"#0f172a"},tileTitle:{light:"#5d626b",dark:"#94a3b8"},mapColor:{light:F.teal,dark:F.teal}},font:{family:Ua,size:12}},Ve=["background","tableHeader","tableHeaderBackground","tableBody","tile","tileTitle","mapColor"];function G(l,n){const e=L.palette??{},r=L.font??{family:"sans-serif",size:12};let a=[...e.series??[]],t=r.family??"sans-serif",o=r.size??12;const s={background:{...e.background??{}},tableHeader:{...e.tableHeader??{}},tableHeaderBackground:{...e.tableHeaderBackground??{}},tableBody:{...e.tableBody??{}},tile:{...e.tile??{}},tileTitle:{...e.tileTitle??{}},mapColor:{...e.mapColor??{}}};for(const p of l)if(p){Array.isArray(p.palette?.series)&&(a=[...p.palette.series]);for(const O of Ve){const k=p.palette?.[O];k&&(s[O]={...s[O],...k})}typeof p.font?.family=="string"&&(t=p.font.family),typeof p.font?.size=="number"&&(o=p.font.size)}const c=n==="dark",i=p=>s[p][n]??e[p]?.[n],d=i("background");return{mode:n,series:a,font:{family:t,size:o},background:d,tableHeader:i("tableHeader"),tableHeaderBackground:i("tableHeaderBackground"),tableBody:i("tableBody"),tile:i("tile"),tileTitle:i("tileTitle"),mapColor:i("mapColor"),tableBackground:d,border:c?"1px solid #334155":"1px solid #e5e7eb",pinnedBorder:c?"1px solid #475569":"1px solid #daedf3",valueColor:c?"#f1f5f9":"#1f2937",foreground:c?"#e2e8f0":"#1f2937",axisFaint:c?"#475569":"#d1d5db",dashboardRoot:c?"#1e293b":"#ffffff"}}function Oe(l,n,e){const r=n??l??"light";return r==="auto"?e?"dark":"light":r}const ye=A.createContext(void 0);function Se({layers:l,mode:n,userChoice:e,setMode:r,allowUserToggle:a=!0,children:t}){const o=A.useMemo(()=>G(l,n),[l,n]),s=A.useMemo(()=>({theme:o,layers:l,mode:n,userChoice:e,setMode:r,allowUserToggle:a}),[o,l,n,e,r,a]);return Q.jsx(ye.Provider,{value:s,children:t})}function Ma(){const l=A.useContext(ye);return l||{theme:G([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const Ce=new H.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),wa={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},j="publisher:themeMode";function Fa(){if(!(typeof window>"u"))try{const l=window.localStorage.getItem(j);if(l==="light"||l==="dark"||l==="auto")return l}catch{}}function fa(l){if(!(typeof window>"u"))try{l===void 0?window.localStorage.removeItem(j):window.localStorage.setItem(j,l)}catch{}}function Ba(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}h.defaults.baseURL||(h.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const ke=A.createContext(void 0),Qa=(l,n)=>{const e=`${window.location.protocol}//${window.location.host}/api/v0`,r=h.create({baseURL:l||e,withCredentials:!0,timeout:6e5});r.interceptors.request.use(async t=>{const o=await n?.();return t.headers.Authorization=o||"",t});const a=new ve({basePath:e});return{models:new le(a,e,r),publisher:new ge(a,e,r),environments:new ne(a,e,r),packages:new pe(a,e,r),pages:new he(a,e,r),notebooks:new ie(a,e,r),connections:new X(a,e,r),databases:new ae(a,e,r),materializations:new oe(a,e,r),watchMode:new be(a,e,r)}},za=l=>Q.jsx(H.QueryClientProvider,{client:Ce,children:Q.jsx($a,{...l})}),$a=({children:l,getAccessToken:n,baseURL:e,mutable:r,theme:a})=>{const t=A.useMemo(()=>Qa(e,n),[e,n]),o=e||`${window.location.protocol}//${window.location.host}/api/v0`,s=H.useQuery({queryKey:["status"],queryFn:async()=>(await t.publisher.getStatus()).data});s.error&&console.error("Failed to fetch publisher status:",s.error);const c=s.data?.frozenConfig,i=s.data?.theme,d=s.isLoading;let p;s.isLoading||s.error?p=r:c?p=!1:p=r??!0;const O=A.useMemo(()=>[i,a],[i,a]),[k,f]=A.useState(Fa),[I,z]=A.useState(Ba);A.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const E=window.matchMedia("(prefers-color-scheme: dark)"),K=Re=>z(Re.matches);return E.addEventListener("change",K),()=>E.removeEventListener("change",K)},[]);const Ae=A.useCallback(E=>{f(E),fa(E)},[]),Y=i?.allowUserToggle??!0,$=Y?k:void 0,xe=A.useMemo(()=>Oe(i?.defaultMode,$,I),[i?.defaultMode,$,I]),Ie={server:o,getAccessToken:n,apiClients:t,mutable:p,isLoadingStatus:d,instanceTheme:i};return Q.jsx(ke.Provider,{value:Ie,children:Q.jsx(Se,{layers:O,mode:xe,userChoice:$,setMode:Ae,allowUserToggle:Y,children:l})})},qa=()=>{const l=A.useContext(ke);if(l===void 0)throw new Error("useServer must be used within a ServerProvider");return l};exports.AttachedDatabaseTypeEnum=Ne;exports.AzureConnectionAuthTypeEnum=Ee;exports.CHART_RESULT_QUERY_OPTIONS=wa;exports.CleanMetricCard=Aa;exports.CleanNotebookCell=ka;exports.CleanNotebookContainer=Sa;exports.CleanNotebookSection=Ca;exports.CompileProblemSeverityEnum=Ue;exports.CompileResultStatusEnum=Me;exports.Configuration=ve;exports.ConnectionProxyTypeEnum=Fe;exports.ConnectionStatusStatusEnum=fe;exports.ConnectionTypeEnum=we;exports.ConnectionsApi=X;exports.ConnectionsApiAxiosParamCreator=J;exports.ConnectionsApiFactory=ra;exports.ConnectionsApiFp=S;exports.ConnectionsTestApi=sa;exports.ConnectionsTestApiAxiosParamCreator=Z;exports.ConnectionsTestApiFactory=oa;exports.ConnectionsTestApiFp=D;exports.DEFAULT_THEME=L;exports.DatabaseTypeEnum=Be;exports.DatabasesApi=ae;exports.DatabasesApiAxiosParamCreator=ee;exports.DatabasesApiFactory=la;exports.DatabasesApiFp=W;exports.EnvironmentsApi=ne;exports.EnvironmentsApiAxiosParamCreator=te;exports.EnvironmentsApiFactory=ca;exports.EnvironmentsApiFp=T;exports.ExecuteNotebookCellBypassFiltersEnum=ha;exports.FilterTypeEnum=Qe;exports.FreshnessFallbackEnum=ze;exports.GivenControlEnum=$e;exports.LogMessageSeverityEnum=qe;exports.MALLOY_BRAND=F;exports.MONO_FONT_FAMILY=va;exports.ManifestEntryFreshnessFallbackEnum=Le;exports.MaterializationActionActionEnum=da;exports.MaterializationStatus=je;exports.MaterializationsApi=oe;exports.MaterializationsApiAxiosParamCreator=re;exports.MaterializationsApiFactory=ia;exports.MaterializationsApiFp=R;exports.ModelsApi=le;exports.ModelsApiAxiosParamCreator=se;exports.ModelsApiFactory=pa;exports.ModelsApiFp=U;exports.NotebookCellResultTypeEnum=De;exports.NotebookCellTypeEnum=He;exports.NotebooksApi=ie;exports.NotebooksApiAxiosParamCreator=ce;exports.NotebooksApiFactory=ma;exports.NotebooksApiFp=B;exports.PER_MODE_COLOR_KEYS=Ve;exports.PackageCard=Ra;exports.PackageCardContent=Ta;exports.PackageManifestBindingStatusEnum=Ge;exports.PackageQueryableSourcesEnum=_e;exports.PackageScopeEnum=We;exports.PackageSectionTitle=Na;exports.PackageWarningsInnerSeverityEnum=Ye;exports.PackagesApi=pe;exports.PackagesApiAxiosParamCreator=de;exports.PackagesApiFactory=ua;exports.PackagesApiFp=N;exports.PageFitEnum=Ke;exports.PagesApi=he;exports.PagesApiAxiosParamCreator=me;exports.PagesApiFactory=ga;exports.PagesApiFp=_;exports.PostgresConnectionSslmodeEnum=Je;exports.PublisherApi=ge;exports.PublisherApiAxiosParamCreator=ue;exports.PublisherApiFactory=Pa;exports.PublisherApiFp=M;exports.QueryClass=Xe;exports.QueryResultQueryRowLimitSourceEnum=Ze;exports.Realization=ea;exports.RunContextTriggerEnum=aa;exports.ServerProvider=za;exports.ServerStatusOperationalStateEnum=ta;exports.StyledCard=Va;exports.StyledCardContent=Oa;exports.StyledCardMedia=ya;exports.StyledExplorerContent=Ia;exports.StyledExplorerPage=xa;exports.ThemeDefaultModeEnum=na;exports.ThemeProvider=Se;exports.WatchModeApi=be;exports.WatchModeApiAxiosParamCreator=Pe;exports.WatchModeApiFactory=ba;exports.WatchModeApiFp=w;exports.globalQueryClient=Ce;exports.resolveMode=Oe;exports.resolveTheme=G;exports.usePublisherTheme=Ma;exports.useServer=qa;
|
package/dist/client/api.d.ts
CHANGED
|
@@ -416,7 +416,7 @@ export interface CompileRequest {
|
|
|
416
416
|
*/
|
|
417
417
|
'includeSql'?: boolean;
|
|
418
418
|
/**
|
|
419
|
-
*
|
|
419
|
+
* Given *values* keyed by given name: what a caller sends, as distinct from `Given`, which describes what the model *accepts*. A collection of declarations is a plain array of `Given`, never this. Values are decoded and must match the declared type: a `number` given takes a JSON number, a `date` takes a bare `YYYY-MM-DD` string, a `timestamp` an ISO string with no zone, a `timestamptz` a full ISO string. `EncodedGivenValues` is the string-encoded counterpart.
|
|
420
420
|
* @type {{ [key: string]: any; }}
|
|
421
421
|
* @memberof CompileRequest
|
|
422
422
|
*/
|
|
@@ -1062,7 +1062,7 @@ export declare const FilterTypeEnum: {
|
|
|
1062
1062
|
};
|
|
1063
1063
|
export type FilterTypeEnum = typeof FilterTypeEnum[keyof typeof FilterTypeEnum];
|
|
1064
1064
|
/**
|
|
1065
|
-
* Freshness policy declared in
|
|
1065
|
+
* Freshness policy declared in publisher.json\'s `materialization.freshness` block. Fields are surfaced verbatim; invalid values are dropped (reported as absent), never defaulted.
|
|
1066
1066
|
* @export
|
|
1067
1067
|
* @interface Freshness
|
|
1068
1068
|
*/
|
|
@@ -1106,7 +1106,7 @@ export interface GCSConnection {
|
|
|
1106
1106
|
'secret': string;
|
|
1107
1107
|
}
|
|
1108
1108
|
/**
|
|
1109
|
-
* A given (runtime parameter) declared on a Malloy model via the `given:` keyword. Surfaced on `CompiledModel.givens` and `Source.givens` so callers can introspect what runtime values a model accepts.
|
|
1109
|
+
* A given (runtime parameter) declared on a Malloy model via the `given:` keyword. Surfaced on `CompiledModel.givens` and `Source.givens` so callers can introspect what runtime values a model accepts. `givens` always names a collection of these declarations. Values keyed by given name are `GivenValues` (or `EncodedGivenValues` in the form that survives a URL), and a bare list of names is spelled `givenNames`. It also carries how the given should be presented as an input control (`label`, `control`, `rangeMin`, `rangeMax`, `suggest`), derived from the declaration\'s own tags. That contract belongs to the given rather than to any one surface, which is what lets a notebook and an SDK host render the same control without restating it. Those five fields describe the contract a renderer implements; no endpoint populates them yet, so they are absent from every response today.
|
|
1110
1110
|
* @export
|
|
1111
1111
|
* @interface Given
|
|
1112
1112
|
*/
|
|
@@ -1135,6 +1135,66 @@ export interface Given {
|
|
|
1135
1135
|
* @memberof Given
|
|
1136
1136
|
*/
|
|
1137
1137
|
'default'?: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* Display label from the declaration\'s `# label=` tag
|
|
1140
|
+
* @type {string}
|
|
1141
|
+
* @memberof Given
|
|
1142
|
+
*/
|
|
1143
|
+
'label'?: string;
|
|
1144
|
+
/**
|
|
1145
|
+
* How the control renders when the choice is between a single-pick and a multi-pick list. Omitted means infer from the given\'s type. A slider is not one of these values; it is signalled by `rangeMin` and `rangeMax` instead, per the rule on those fields.
|
|
1146
|
+
* @type {string}
|
|
1147
|
+
* @memberof Given
|
|
1148
|
+
*/
|
|
1149
|
+
'control'?: GivenControlEnum;
|
|
1150
|
+
/**
|
|
1151
|
+
* Slider lower bound from `# range_min=`. The two bounds are what signal a slider, so a `number` or `filter<number>` given renders as one when BOTH are present and as a plain number input otherwise, so a lone bound changes nothing about the control.
|
|
1152
|
+
* @type {number}
|
|
1153
|
+
* @memberof Given
|
|
1154
|
+
*/
|
|
1155
|
+
'rangeMin'?: number;
|
|
1156
|
+
/**
|
|
1157
|
+
* Slider upper bound from `# range_max=`. See `rangeMin` for the rule that turns the pair into a slider.
|
|
1158
|
+
* @type {number}
|
|
1159
|
+
* @memberof Given
|
|
1160
|
+
*/
|
|
1161
|
+
'rangeMax'?: number;
|
|
1162
|
+
/**
|
|
1163
|
+
*
|
|
1164
|
+
* @type {GivenSuggest}
|
|
1165
|
+
* @memberof Given
|
|
1166
|
+
*/
|
|
1167
|
+
'suggest'?: GivenSuggest;
|
|
1168
|
+
}
|
|
1169
|
+
export declare const GivenControlEnum: {
|
|
1170
|
+
readonly Select: "select";
|
|
1171
|
+
readonly Multiselect: "multiselect";
|
|
1172
|
+
};
|
|
1173
|
+
export type GivenControlEnum = typeof GivenControlEnum[keyof typeof GivenControlEnum];
|
|
1174
|
+
/**
|
|
1175
|
+
* Where a select or multiselect control gets its options: a named `query`, a `source` + `dimension` pair, or a `query` with a `dimension` naming which of its columns to read. All three run through the ordinary query endpoint. With `query` alone the first column of each row is used, so a single-column `group_by` needs no `dimension`. Give `dimension` alongside `query` when the query returns more than one column.
|
|
1176
|
+
* @export
|
|
1177
|
+
* @interface GivenSuggest
|
|
1178
|
+
*/
|
|
1179
|
+
export interface GivenSuggest {
|
|
1180
|
+
/**
|
|
1181
|
+
*
|
|
1182
|
+
* @type {string}
|
|
1183
|
+
* @memberof GivenSuggest
|
|
1184
|
+
*/
|
|
1185
|
+
'query'?: string;
|
|
1186
|
+
/**
|
|
1187
|
+
*
|
|
1188
|
+
* @type {string}
|
|
1189
|
+
* @memberof GivenSuggest
|
|
1190
|
+
*/
|
|
1191
|
+
'source'?: string;
|
|
1192
|
+
/**
|
|
1193
|
+
*
|
|
1194
|
+
* @type {string}
|
|
1195
|
+
* @memberof GivenSuggest
|
|
1196
|
+
*/
|
|
1197
|
+
'dimension'?: string;
|
|
1138
1198
|
}
|
|
1139
1199
|
/**
|
|
1140
1200
|
* A log message from render tag validation
|
|
@@ -1648,7 +1708,7 @@ export interface Package {
|
|
|
1648
1708
|
*/
|
|
1649
1709
|
'location'?: string;
|
|
1650
1710
|
/**
|
|
1651
|
-
* Package-level Malloy Persistence scope mode, declared once at the
|
|
1711
|
+
* Package-level Malloy Persistence scope mode, declared once at the publisher.json root and applied uniformly to every persist source and index in the package. `package` (the default) = persisted artifacts are package-scoped: reused across the package\'s published versions whenever they still satisfy freshness. `version` = version-scoped: each artifact is owned by one published version. There is no per-source/per-dimension scope. A `materialization.schedule` cron is legal only when `scope: version` (a package-scoped lineage is reused across versions, so a single per-version cadence is meaningless). Emitted whenever the package is loaded; defaults to `package` when the manifest omits it.
|
|
1652
1712
|
* @type {string}
|
|
1653
1713
|
* @memberof Package
|
|
1654
1714
|
*/
|
|
@@ -1666,7 +1726,7 @@ export interface Package {
|
|
|
1666
1726
|
*/
|
|
1667
1727
|
'exploresWarnings'?: Array<string>;
|
|
1668
1728
|
/**
|
|
1669
|
-
* Non-fatal
|
|
1729
|
+
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value` or `# currency`) misconfigured for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a persist-target collision, and materialization-config problems that degrade attribution. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings.
|
|
1670
1730
|
* @type {Array<PackageWarningsInner>}
|
|
1671
1731
|
* @memberof Package
|
|
1672
1732
|
*/
|
|
@@ -1737,7 +1797,7 @@ export declare const PackageManifestBindingStatusEnum: {
|
|
|
1737
1797
|
};
|
|
1738
1798
|
export type PackageManifestBindingStatusEnum = typeof PackageManifestBindingStatusEnum[keyof typeof PackageManifestBindingStatusEnum];
|
|
1739
1799
|
/**
|
|
1740
|
-
* Package-level Malloy Persistence policy from
|
|
1800
|
+
* Package-level Malloy Persistence policy from publisher.json\'s `materialization` block. Surfaced verbatim so the control plane can drive scheduled version-level re-materialization without re-reading the package files. The object is emitted whenever the package is loaded, even when no policy is declared (all fields null), so its presence is an authoritative \"the manifest says this\" signal rather than \"policy missing\".
|
|
1741
1801
|
* @export
|
|
1742
1802
|
* @interface PackageMaterializationConfig
|
|
1743
1803
|
*/
|
|
@@ -1795,19 +1855,19 @@ export interface PackageStorageServeBindingsInner {
|
|
|
1795
1855
|
*/
|
|
1796
1856
|
export interface PackageWarningsInner {
|
|
1797
1857
|
/**
|
|
1798
|
-
* Package-relative path of the model the finding is on.
|
|
1858
|
+
* Package-relative path of the model the finding is on. Absent for a package-wide finding.
|
|
1799
1859
|
* @type {string}
|
|
1800
1860
|
* @memberof PackageWarningsInner
|
|
1801
1861
|
*/
|
|
1802
1862
|
'model'?: string;
|
|
1803
1863
|
/**
|
|
1804
|
-
*
|
|
1864
|
+
* What the finding is about: the query or view a render finding sits on (`by_carrier`, `flights -> by_carrier`), or the source a materialization finding belongs to. Absent when a finding spans several, in which case the message names them.
|
|
1805
1865
|
* @type {string}
|
|
1806
1866
|
* @memberof PackageWarningsInner
|
|
1807
1867
|
*/
|
|
1808
|
-
'
|
|
1868
|
+
'subject'?: string;
|
|
1809
1869
|
/**
|
|
1810
|
-
*
|
|
1870
|
+
* A description of the problem.
|
|
1811
1871
|
* @type {string}
|
|
1812
1872
|
* @memberof PackageWarningsInner
|
|
1813
1873
|
*/
|
|
@@ -2144,13 +2204,13 @@ export interface QueryRequest {
|
|
|
2144
2204
|
*/
|
|
2145
2205
|
'query'?: string;
|
|
2146
2206
|
/**
|
|
2147
|
-
* Name of the source in the model to use for queryName, search, and topValue requests.
|
|
2207
|
+
* Name of the source in the model to use for queryName, search, and topValue requests. A NAME, not Malloy code: a single source name exactly as the model response\'s `sources` listing returns it. The server quotes it as a Malloy identifier, so a name that needs quoting (a hyphen, a space, a reserved word, a leading digit) works as-is and must be sent bare — do not add backticks of your own. Anything richer than one name (a parameterized source, an inline extension, a second statement) belongs in `query`, and here is refused as an unresolvable name.
|
|
2148
2208
|
* @type {string}
|
|
2149
2209
|
* @memberof QueryRequest
|
|
2150
2210
|
*/
|
|
2151
2211
|
'sourceName'?: string;
|
|
2152
2212
|
/**
|
|
2153
|
-
* Name of a query to execute on a source in the model. Requires the sourceName parameter is set. If the queryName parameter is set, the query parameter must be empty.
|
|
2213
|
+
* Name of a query to execute on a source in the model. Requires the sourceName parameter is set. If the queryName parameter is set, the query parameter must be empty. A NAME, not Malloy code, on the same terms as `sourceName`: one view name as the model response lists it, quoted for you, sent bare. A dotted path, a refinement (`by_carrier + { limit: 10 }`), or any additional statement belongs in `query`.
|
|
2154
2214
|
* @type {string}
|
|
2155
2215
|
* @memberof QueryRequest
|
|
2156
2216
|
*/
|
|
@@ -2184,7 +2244,7 @@ export interface QueryRequest {
|
|
|
2184
2244
|
*/
|
|
2185
2245
|
'bypassFilters'?: boolean;
|
|
2186
2246
|
/**
|
|
2187
|
-
*
|
|
2247
|
+
* Given *values* keyed by given name: what a caller sends, as distinct from `Given`, which describes what the model *accepts*. A collection of declarations is a plain array of `Given`, never this. Values are decoded and must match the declared type: a `number` given takes a JSON number, a `date` takes a bare `YYYY-MM-DD` string, a `timestamp` an ISO string with no zone, a `timestamptz` a full ISO string. `EncodedGivenValues` is the string-encoded counterpart.
|
|
2188
2248
|
* @type {{ [key: string]: any; }}
|
|
2189
2249
|
* @memberof QueryRequest
|
|
2190
2250
|
*/
|
|
@@ -2261,11 +2321,11 @@ export type QueryResultQueryRowLimitSourceEnum = typeof QueryResultQueryRowLimit
|
|
|
2261
2321
|
*/
|
|
2262
2322
|
export interface RawNotebook {
|
|
2263
2323
|
/**
|
|
2264
|
-
*
|
|
2324
|
+
* Always `notebook`. Distinguishes the payload from the compiled-model shape returned by the model endpoint.
|
|
2265
2325
|
* @type {string}
|
|
2266
2326
|
* @memberof RawNotebook
|
|
2267
2327
|
*/
|
|
2268
|
-
'
|
|
2328
|
+
'type'?: string;
|
|
2269
2329
|
/**
|
|
2270
2330
|
* Name of the package containing this notebook
|
|
2271
2331
|
* @type {string}
|
|
@@ -2277,13 +2337,19 @@ export interface RawNotebook {
|
|
|
2277
2337
|
* @type {string}
|
|
2278
2338
|
* @memberof RawNotebook
|
|
2279
2339
|
*/
|
|
2280
|
-
'
|
|
2340
|
+
'modelPath'?: string;
|
|
2281
2341
|
/**
|
|
2282
2342
|
* Version of the Malloy compiler used to generate the notebook data
|
|
2283
2343
|
* @type {string}
|
|
2284
2344
|
* @memberof RawNotebook
|
|
2285
2345
|
*/
|
|
2286
2346
|
'malloyVersion'?: string;
|
|
2347
|
+
/**
|
|
2348
|
+
* JSON string containing model metadata and structure information
|
|
2349
|
+
* @type {string}
|
|
2350
|
+
* @memberof RawNotebook
|
|
2351
|
+
*/
|
|
2352
|
+
'modelInfo'?: string;
|
|
2287
2353
|
/**
|
|
2288
2354
|
* Array of notebook cells containing raw markdown and code content
|
|
2289
2355
|
* @type {Array<NotebookCell>}
|
|
@@ -2296,12 +2362,26 @@ export interface RawNotebook {
|
|
|
2296
2362
|
* @memberof RawNotebook
|
|
2297
2363
|
*/
|
|
2298
2364
|
'annotations'?: Array<string>;
|
|
2365
|
+
/**
|
|
2366
|
+
* Starting values for the notebook\'s controls, declared at its file level. URL parameters override these, which is why the two share a shape. Omitted when the notebook declares none.
|
|
2367
|
+
* @type {{ [key: string]: string; }}
|
|
2368
|
+
* @memberof RawNotebook
|
|
2369
|
+
*/
|
|
2370
|
+
'startingGivens'?: {
|
|
2371
|
+
[key: string]: string;
|
|
2372
|
+
};
|
|
2299
2373
|
/**
|
|
2300
2374
|
* Sources defined in the notebook\'s model
|
|
2301
2375
|
* @type {Array<Source>}
|
|
2302
2376
|
* @memberof RawNotebook
|
|
2303
2377
|
*/
|
|
2304
2378
|
'sources'?: Array<Source>;
|
|
2379
|
+
/**
|
|
2380
|
+
* Named queries defined in the notebook\'s model
|
|
2381
|
+
* @type {Array<Query>}
|
|
2382
|
+
* @memberof RawNotebook
|
|
2383
|
+
*/
|
|
2384
|
+
'queries'?: Array<Query>;
|
|
2305
2385
|
}
|
|
2306
2386
|
/**
|
|
2307
2387
|
* SNAPSHOT = warehouse clone/snapshot; COPY = CREATE TABLE AS SELECT.
|
|
@@ -2591,7 +2671,7 @@ export interface Source {
|
|
|
2591
2671
|
*/
|
|
2592
2672
|
'givens'?: Array<Given>;
|
|
2593
2673
|
/**
|
|
2594
|
-
* Effective authorize expressions
|
|
2674
|
+
* Effective authorize expressions gating this source via `#(authorize)` / `##(authorize)` annotations — file-level expressions first, then the source\'s own, or, when it declares none, the nearest source it extends that does. Each is a Malloy boolean expression over declared givens, evaluated as a disjunction (OR) and enforced at query time. A request that reads this source is denied with HTTP 403 unless at least one expression evaluates true for the supplied givens; an empty or absent list means unrestricted. IMPORTANT for anything re-implementing the decision: this flat list cannot always express the predicate. Expressions from one source are OR-ed, but when more than one source gates the entry point (its own gate plus one carried from the source it derives from) those sources are AND-ed, and both sets appear here as one list. So a list of two expressions may mean \"either\" or \"both\". Treat it as \"at least these constraints apply\" — use it to decide THAT a source is gated, not to recompute WHETHER a given caller passes. Reading it as a pure disjunction grants where Publisher denies. Givens are caller-asserted, so this is a boundary only behind a trusted tier — see docs/authorize.md.
|
|
2595
2675
|
* @type {Array<string>}
|
|
2596
2676
|
* @memberof Source
|
|
2597
2677
|
*/
|
|
@@ -4713,7 +4793,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4713
4793
|
* @param {string} [versionId] Version identifier for the package
|
|
4714
4794
|
* @param {string} [filterParams] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. Targets the deprecated `#(filter)` annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
|
|
4715
4795
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4716
|
-
* @param {string} [givens] JSON-encoded
|
|
4796
|
+
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4717
4797
|
* @param {*} [options] Override http request option.
|
|
4718
4798
|
* @throws {RequiredError}
|
|
4719
4799
|
*/
|
|
@@ -4755,7 +4835,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
4755
4835
|
* @param {string} [versionId] Version identifier for the package
|
|
4756
4836
|
* @param {string} [filterParams] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. Targets the deprecated `#(filter)` annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
|
|
4757
4837
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4758
|
-
* @param {string} [givens] JSON-encoded
|
|
4838
|
+
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4759
4839
|
* @param {*} [options] Override http request option.
|
|
4760
4840
|
* @throws {RequiredError}
|
|
4761
4841
|
*/
|
|
@@ -4797,7 +4877,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
4797
4877
|
* @param {string} [versionId] Version identifier for the package
|
|
4798
4878
|
* @param {string} [filterParams] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. Targets the deprecated `#(filter)` annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
|
|
4799
4879
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4800
|
-
* @param {string} [givens] JSON-encoded
|
|
4880
|
+
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4801
4881
|
* @param {*} [options] Override http request option.
|
|
4802
4882
|
* @throws {RequiredError}
|
|
4803
4883
|
*/
|
|
@@ -4841,7 +4921,7 @@ export declare class NotebooksApi extends BaseAPI {
|
|
|
4841
4921
|
* @param {string} [versionId] Version identifier for the package
|
|
4842
4922
|
* @param {string} [filterParams] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. Targets the deprecated `#(filter)` annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
|
|
4843
4923
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4844
|
-
* @param {string} [givens] JSON-encoded
|
|
4924
|
+
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4845
4925
|
* @param {*} [options] Override http request option.
|
|
4846
4926
|
* @throws {RequiredError}
|
|
4847
4927
|
* @memberof NotebooksApi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Malloy Publisher - Semantic Model Serving API
|
|
3
|
-
* The Malloy Publisher - Semantic Model Serving API provides
|
|
3
|
+
* The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, pages, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Pages**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Pages static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v0
|
|
6
6
|
*
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-nJNqhxy6.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PageFitEnum=e.PageFitEnum;exports.PagesApi=e.PagesApi;exports.PagesApiAxiosParamCreator=e.PagesApiAxiosParamCreator;exports.PagesApiFactory=e.PagesApiFactory;exports.PagesApiFp=e.PagesApiFp;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.Realization=e.Realization;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Malloy Publisher - Semantic Model Serving API
|
|
3
|
-
* The Malloy Publisher - Semantic Model Serving API provides
|
|
3
|
+
* The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, pages, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Pages**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Pages static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v0
|
|
6
6
|
*
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as o, C as i, b as t,
|
|
1
|
+
import { A as e, a as o, C as i, b as t, an as n, d as r, e as p, c as A, v as u, r as m, t as c, s as l, z as C, w as E, y as P, x as y, D as F, I as b, B as g, H as k, E as M, U as S, J as x, O as d, K as h, a6 as T, F as v, f as z, G as D, L as N, M as f, Z as R, h as Q, Y as W, V as B, X as L, W as j, a1 as w, _ as G, a0 as I, $ as O, i as q, N as H, a5 as J, a2 as K, a4 as U, a3 as V, k as X, j as Y, P as Z, l as _, aa as $, a7 as aa, a9 as sa, a8 as ea, m as oa, ae as ia, ab as ta, ad as na, ac as ra, n as pa, ai as Aa, af as ua, ah as ma, ag as ca, Q as la, o as Ca, R as Ea, p as Pa, S as ya, q as Fa, T as ba, am as ga, aj as ka, al as Ma, ak as Sa, g as xa, u as da } from "../ServerProvider-kzoOMXNx.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AttachedDatabaseTypeEnum,
|
|
4
4
|
o as AzureConnectionAuthTypeEnum,
|
|
@@ -28,53 +28,54 @@ export {
|
|
|
28
28
|
T as ExecuteNotebookCellBypassFiltersEnum,
|
|
29
29
|
v as FilterTypeEnum,
|
|
30
30
|
z as FreshnessFallbackEnum,
|
|
31
|
-
D as
|
|
32
|
-
N as
|
|
33
|
-
f as
|
|
34
|
-
R as
|
|
35
|
-
Q as
|
|
36
|
-
W as
|
|
37
|
-
B as
|
|
38
|
-
L as
|
|
39
|
-
j as
|
|
40
|
-
w as
|
|
31
|
+
D as GivenControlEnum,
|
|
32
|
+
N as LogMessageSeverityEnum,
|
|
33
|
+
f as ManifestEntryFreshnessFallbackEnum,
|
|
34
|
+
R as MaterializationActionActionEnum,
|
|
35
|
+
Q as MaterializationStatus,
|
|
36
|
+
W as MaterializationsApi,
|
|
37
|
+
B as MaterializationsApiAxiosParamCreator,
|
|
38
|
+
L as MaterializationsApiFactory,
|
|
39
|
+
j as MaterializationsApiFp,
|
|
40
|
+
w as ModelsApi,
|
|
41
|
+
G as ModelsApiAxiosParamCreator,
|
|
41
42
|
I as ModelsApiFactory,
|
|
42
43
|
O as ModelsApiFp,
|
|
43
44
|
q as NotebookCellResultTypeEnum,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
45
|
+
H as NotebookCellTypeEnum,
|
|
46
|
+
J as NotebooksApi,
|
|
47
|
+
K as NotebooksApiAxiosParamCreator,
|
|
48
|
+
U as NotebooksApiFactory,
|
|
49
|
+
V as NotebooksApiFp,
|
|
50
|
+
X as PackageManifestBindingStatusEnum,
|
|
51
|
+
Y as PackageQueryableSourcesEnum,
|
|
52
|
+
Z as PackageScopeEnum,
|
|
53
|
+
_ as PackageWarningsInnerSeverityEnum,
|
|
54
|
+
$ as PackagesApi,
|
|
55
|
+
aa as PackagesApiAxiosParamCreator,
|
|
56
|
+
sa as PackagesApiFactory,
|
|
57
|
+
ea as PackagesApiFp,
|
|
58
|
+
oa as PageFitEnum,
|
|
59
|
+
ia as PagesApi,
|
|
60
|
+
ta as PagesApiAxiosParamCreator,
|
|
61
|
+
na as PagesApiFactory,
|
|
62
|
+
ra as PagesApiFp,
|
|
63
|
+
pa as PostgresConnectionSslmodeEnum,
|
|
64
|
+
Aa as PublisherApi,
|
|
65
|
+
ua as PublisherApiAxiosParamCreator,
|
|
66
|
+
ma as PublisherApiFactory,
|
|
67
|
+
ca as PublisherApiFp,
|
|
68
|
+
la as QueryClass,
|
|
69
|
+
Ca as QueryResultQueryRowLimitSourceEnum,
|
|
70
|
+
Ea as Realization,
|
|
71
|
+
Pa as RunContextTriggerEnum,
|
|
72
|
+
ya as ServerProvider,
|
|
73
|
+
Fa as ServerStatusOperationalStateEnum,
|
|
74
|
+
ba as ThemeDefaultModeEnum,
|
|
75
|
+
ga as WatchModeApi,
|
|
76
|
+
ka as WatchModeApiAxiosParamCreator,
|
|
77
|
+
Ma as WatchModeApiFactory,
|
|
78
|
+
Sa as WatchModeApiFp,
|
|
79
|
+
xa as globalQueryClient,
|
|
80
|
+
da as useServer
|
|
80
81
|
};
|