@malloy-publisher/sdk 0.0.232 → 0.0.234
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-DMk_BDrm.es.js → ServerProvider-BupI3Smf.es.js} +152 -137
- package/dist/ServerProvider-CXg4bBm6.cjs.js +1 -0
- package/dist/client/api.d.ts +142 -4
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +37 -34
- package/dist/{core-DeaXfVr8.cjs.js → core-C-aiDDhx.cjs.js} +1 -1
- package/dist/{core-CK68iv6w.es.js → core-Rj_4rRnA.es.js} +1 -1
- package/dist/{index-D0RRMPyp.cjs.js → index-DJW7yQLF.cjs.js} +2 -2
- package/dist/{index-3Ctefu0u.es.js → index-DPfNLAv1.es.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +13 -13
- package/package.json +1 -1
- package/dist/ServerProvider-BlufsK4M.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={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},qe={Live:"live",StaleOk:"stale_ok",Fail:"fail"},Le={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},je={Markdown:"markdown",Code:"code"},He={Markdown:"markdown",Code:"code"},De={Version:"version",Package:"package"},We={Declared:"declared",All:"all"},_e={Unbound:"unbound",Bound:"bound",LiveFallback:"live_fallback"},Ge={Error:"error",Warn:"warn"},Ye={Viewport:"viewport"},Ke={Disable:"disable",NoVerify:"no-verify",VerifyCa:"verify-ca",VerifyFull:"verify-full"},Je={Interactive:"interactive",Materialize:"materialize",Index:"index",Ops:"ops"},Xe={Query:"query",ServerDefault:"server_default"},Ze={Snapshot:"SNAPSHOT",Copy:"COPY"},ea={Publish:"publish",OnDemand:"on_demand",Scheduler:"scheduler"},aa={Initializing:"initializing",Serving:"serving",Draining:"draining",Throttled:"throttled"},ta={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)}}},na=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)}}},ra=function(l,n,e){const r=D(l);return{testConnectionConfiguration(a,t){return r.testConnectionConfiguration(a,t).then(o=>o(e,n))}}};class oa 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)}}},sa=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)}}},la=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)}}},ca=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 ia={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)}}},da=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)}}},pa=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 ma={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)}}},ha=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)}}},ua=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)}}},ga=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)}}},Pa=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"},ba='"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"}),Va=y.styled(y.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),Oa=y.styled(y.CardMedia)({padding:"0"}),ya=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 Sa=y.styled("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Ca=y.styled("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),ka=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 Aa=y.styled("div")({height:"100%"});y.styled("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const xa=y.styled("div")({height:"75vh",width:"100%",overflowY:"auto"});y.styled("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Ia=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)"}})),Ra=y.styled(y.CardContent)({padding:"0","&:last-child":{paddingBottom:"0"}}),Ta=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 Na=[F.teal,F.orange,F.darkBlue,"#66cedc","#ec72b8","#f9c85b","#aacd85","#b87ced"],Ea="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",L={defaultMode:"light",allowUserToggle:!0,palette:{series:Na,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:Ea,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 Ua(){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}}}),Ma={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1},j="publisher:themeMode";function wa(){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 fa(){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),Ba=(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)}},Qa=l=>Q.jsx(H.QueryClientProvider,{client:Ce,children:Q.jsx(za,{...l})}),za=({children:l,getAccessToken:n,baseURL:e,mutable:r,theme:a})=>{const t=A.useMemo(()=>Ba(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(wa),[I,z]=A.useState(fa);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})})},$a=()=>{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=Ma;exports.CleanMetricCard=ka;exports.CleanNotebookCell=Ca;exports.CleanNotebookContainer=ya;exports.CleanNotebookSection=Sa;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=na;exports.ConnectionsApiFp=S;exports.ConnectionsTestApi=oa;exports.ConnectionsTestApiAxiosParamCreator=Z;exports.ConnectionsTestApiFactory=ra;exports.ConnectionsTestApiFp=D;exports.DEFAULT_THEME=L;exports.DatabaseTypeEnum=Be;exports.DatabasesApi=ae;exports.DatabasesApiAxiosParamCreator=ee;exports.DatabasesApiFactory=sa;exports.DatabasesApiFp=W;exports.EnvironmentsApi=ne;exports.EnvironmentsApiAxiosParamCreator=te;exports.EnvironmentsApiFactory=la;exports.EnvironmentsApiFp=T;exports.ExecuteNotebookCellBypassFiltersEnum=ma;exports.FilterTypeEnum=Qe;exports.FreshnessFallbackEnum=ze;exports.LogMessageSeverityEnum=$e;exports.MALLOY_BRAND=F;exports.MONO_FONT_FAMILY=ba;exports.ManifestEntryFreshnessFallbackEnum=qe;exports.MaterializationActionActionEnum=ia;exports.MaterializationStatus=Le;exports.MaterializationsApi=oe;exports.MaterializationsApiAxiosParamCreator=re;exports.MaterializationsApiFactory=ca;exports.MaterializationsApiFp=R;exports.ModelsApi=le;exports.ModelsApiAxiosParamCreator=se;exports.ModelsApiFactory=da;exports.ModelsApiFp=U;exports.NotebookCellResultTypeEnum=He;exports.NotebookCellTypeEnum=je;exports.NotebooksApi=ie;exports.NotebooksApiAxiosParamCreator=ce;exports.NotebooksApiFactory=pa;exports.NotebooksApiFp=B;exports.PER_MODE_COLOR_KEYS=Ve;exports.PackageCard=Ia;exports.PackageCardContent=Ra;exports.PackageManifestBindingStatusEnum=_e;exports.PackageQueryableSourcesEnum=We;exports.PackageScopeEnum=De;exports.PackageSectionTitle=Ta;exports.PackageWarningsInnerSeverityEnum=Ge;exports.PackagesApi=pe;exports.PackagesApiAxiosParamCreator=de;exports.PackagesApiFactory=ha;exports.PackagesApiFp=N;exports.PageFitEnum=Ye;exports.PagesApi=he;exports.PagesApiAxiosParamCreator=me;exports.PagesApiFactory=ua;exports.PagesApiFp=_;exports.PostgresConnectionSslmodeEnum=Ke;exports.PublisherApi=ge;exports.PublisherApiAxiosParamCreator=ue;exports.PublisherApiFactory=ga;exports.PublisherApiFp=M;exports.QueryClass=Je;exports.QueryResultQueryRowLimitSourceEnum=Xe;exports.Realization=Ze;exports.RunContextTriggerEnum=ea;exports.ServerProvider=Qa;exports.ServerStatusOperationalStateEnum=aa;exports.StyledCard=va;exports.StyledCardContent=Va;exports.StyledCardMedia=Oa;exports.StyledExplorerContent=xa;exports.StyledExplorerPage=Aa;exports.ThemeDefaultModeEnum=ta;exports.ThemeProvider=Se;exports.WatchModeApi=be;exports.WatchModeApiAxiosParamCreator=Pe;exports.WatchModeApiFactory=Pa;exports.WatchModeApiFp=w;exports.globalQueryClient=Ce;exports.resolveMode=Oe;exports.resolveTheme=G;exports.usePublisherTheme=Ua;exports.useServer=$a;
|
package/dist/client/api.d.ts
CHANGED
|
@@ -545,6 +545,22 @@ export interface Connection {
|
|
|
545
545
|
* @memberof Connection
|
|
546
546
|
*/
|
|
547
547
|
'fingerprint'?: string;
|
|
548
|
+
/**
|
|
549
|
+
* Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
|
|
550
|
+
* @type {{ [key: string]: string; }}
|
|
551
|
+
* @memberof Connection
|
|
552
|
+
*/
|
|
553
|
+
'queryMetadata'?: {
|
|
554
|
+
[key: string]: string;
|
|
555
|
+
};
|
|
556
|
+
/**
|
|
557
|
+
* Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
|
|
558
|
+
* @type {{ [key: string]: string; }}
|
|
559
|
+
* @memberof Connection
|
|
560
|
+
*/
|
|
561
|
+
'queryMetadataEnforced'?: {
|
|
562
|
+
[key: string]: string;
|
|
563
|
+
};
|
|
548
564
|
/**
|
|
549
565
|
*
|
|
550
566
|
* @type {ConnectionAttributes}
|
|
@@ -759,6 +775,12 @@ export interface CreateMaterializationRequest {
|
|
|
759
775
|
* @memberof CreateMaterializationRequest
|
|
760
776
|
*/
|
|
761
777
|
'sourceNames'?: Array<string>;
|
|
778
|
+
/**
|
|
779
|
+
*
|
|
780
|
+
* @type {RunContext}
|
|
781
|
+
* @memberof CreateMaterializationRequest
|
|
782
|
+
*/
|
|
783
|
+
'runContext'?: RunContext | null;
|
|
762
784
|
}
|
|
763
785
|
/**
|
|
764
786
|
* Embedded database within a Malloy package
|
|
@@ -901,6 +923,12 @@ export interface DucklakeConnectionCatalog {
|
|
|
901
923
|
* @memberof DucklakeConnectionCatalog
|
|
902
924
|
*/
|
|
903
925
|
'postgresConnection': PostgresConnection;
|
|
926
|
+
/**
|
|
927
|
+
* Optional schema in the catalog database holding this DuckLake\'s metadata (`ducklake_*`) tables, passed to ATTACH as METADATA_SCHEMA. Absent means DuckLake\'s default — the catalog connection\'s default schema, typically `public` — which is the pre-existing behavior. Set it to run several independent DuckLake catalogs against ONE catalog database: each keeps its metadata in its own schema, so a catalog reads only the tables recorded in the schema it names. DuckLake creates the schema on a read-write attach if it does not exist; a read-only attach cannot, and fails until it does. Separating metadata does not separate data — give each catalog its own `storage.bucketUrl` prefix as well, since data-path-based maintenance (e.g. `ducklake_delete_orphaned_files`) treats a co-tenant catalog\'s files under a shared prefix as orphaned. This is an ORGANIZATIONAL boundary, not an access-control one. The separation is which schema a configuration names, so any config whose catalog role can reach a sibling schema could name it and read that catalog\'s metadata — and therefore its data-file paths. Where catalogs must be isolated from one another rather than merely kept tidy, grant each its own role with `USAGE` limited to its own schema; a database-per-catalog remains the strongest separation. Setting this on a catalog whose metadata already lives elsewhere does not move it: a read-write attach CREATES a new empty catalog in the named schema (and materializes into it), while a read-only attach fails because there is nothing there yet. Must be a plain identifier (`[A-Za-z_][A-Za-z0-9_]*`) — the value reaches both a quoted string literal in the ATTACH and an identifier position in the catalog-format preflight, so it is validated at config load rather than escaped for two different contexts.
|
|
928
|
+
* @type {string}
|
|
929
|
+
* @memberof DucklakeConnectionCatalog
|
|
930
|
+
*/
|
|
931
|
+
'metadataSchema'?: string;
|
|
904
932
|
}
|
|
905
933
|
/**
|
|
906
934
|
* Data storage connection configuration (S3 or GCS)
|
|
@@ -1720,6 +1748,14 @@ export interface PackageMaterializationConfig {
|
|
|
1720
1748
|
* @memberof PackageMaterializationConfig
|
|
1721
1749
|
*/
|
|
1722
1750
|
'freshness'?: Freshness | null;
|
|
1751
|
+
/**
|
|
1752
|
+
* Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
|
|
1753
|
+
* @type {{ [key: string]: string; }}
|
|
1754
|
+
* @memberof PackageMaterializationConfig
|
|
1755
|
+
*/
|
|
1756
|
+
'queryMetadata'?: {
|
|
1757
|
+
[key: string]: string;
|
|
1758
|
+
};
|
|
1723
1759
|
}
|
|
1724
1760
|
/**
|
|
1725
1761
|
*
|
|
@@ -1877,6 +1913,14 @@ export interface PersistSourcePlan {
|
|
|
1877
1913
|
* @memberof PersistSourcePlan
|
|
1878
1914
|
*/
|
|
1879
1915
|
'freshness'?: Freshness | null;
|
|
1916
|
+
/**
|
|
1917
|
+
* Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
|
|
1918
|
+
* @type {{ [key: string]: string; }}
|
|
1919
|
+
* @memberof PersistSourcePlan
|
|
1920
|
+
*/
|
|
1921
|
+
'queryMetadata'?: {
|
|
1922
|
+
[key: string]: string;
|
|
1923
|
+
};
|
|
1880
1924
|
/**
|
|
1881
1925
|
* Output schema of the source.
|
|
1882
1926
|
* @type {Array<Column>}
|
|
@@ -1916,6 +1960,20 @@ export interface PostQuerydataRequest {
|
|
|
1916
1960
|
* @memberof PostQuerydataRequest
|
|
1917
1961
|
*/
|
|
1918
1962
|
'options'?: string;
|
|
1963
|
+
/**
|
|
1964
|
+
* Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
|
|
1965
|
+
* @type {{ [key: string]: string; }}
|
|
1966
|
+
* @memberof PostQuerydataRequest
|
|
1967
|
+
*/
|
|
1968
|
+
'queryMetadata'?: {
|
|
1969
|
+
[key: string]: string;
|
|
1970
|
+
};
|
|
1971
|
+
/**
|
|
1972
|
+
* What class of work this statement belongs to, attached as the `class` property. Defaults to `ops`: raw SQL against a connection is platform maintenance unless the caller says otherwise.
|
|
1973
|
+
* @type {QueryClass}
|
|
1974
|
+
* @memberof PostQuerydataRequest
|
|
1975
|
+
*/
|
|
1976
|
+
'queryClass'?: QueryClass;
|
|
1919
1977
|
}
|
|
1920
1978
|
/**
|
|
1921
1979
|
*
|
|
@@ -2030,6 +2088,18 @@ export interface Query {
|
|
|
2030
2088
|
*/
|
|
2031
2089
|
'annotations'?: Array<string>;
|
|
2032
2090
|
}
|
|
2091
|
+
/**
|
|
2092
|
+
* The class of work a statement belongs to, attached as the `class` query-metadata property: `interactive` (a user or application query), `materialize` (a persist-source build), `index` (an index build or scan), `ops` (platform maintenance). Attribution\'s primary axis — a backend bill separates traffic from builds only if every statement says which it is.
|
|
2093
|
+
* @export
|
|
2094
|
+
* @enum {string}
|
|
2095
|
+
*/
|
|
2096
|
+
export declare const QueryClass: {
|
|
2097
|
+
readonly Interactive: "interactive";
|
|
2098
|
+
readonly Materialize: "materialize";
|
|
2099
|
+
readonly Index: "index";
|
|
2100
|
+
readonly Ops: "ops";
|
|
2101
|
+
};
|
|
2102
|
+
export type QueryClass = typeof QueryClass[keyof typeof QueryClass];
|
|
2033
2103
|
/**
|
|
2034
2104
|
*
|
|
2035
2105
|
* @export
|
|
@@ -2048,6 +2118,12 @@ export interface QueryData {
|
|
|
2048
2118
|
* @memberof QueryData
|
|
2049
2119
|
*/
|
|
2050
2120
|
'data'?: string;
|
|
2121
|
+
/**
|
|
2122
|
+
* Id the server minted for this statement and attached as the `query_id` property. Same contract and correlation use as `QueryResult.queryCorrelationId`.
|
|
2123
|
+
* @type {string}
|
|
2124
|
+
* @memberof QueryData
|
|
2125
|
+
*/
|
|
2126
|
+
'queryCorrelationId'?: string | null;
|
|
2051
2127
|
}
|
|
2052
2128
|
/**
|
|
2053
2129
|
* Request body for executing a Malloy query
|
|
@@ -2109,6 +2185,20 @@ export interface QueryRequest {
|
|
|
2109
2185
|
'givens'?: {
|
|
2110
2186
|
[key: string]: any;
|
|
2111
2187
|
};
|
|
2188
|
+
/**
|
|
2189
|
+
* Per-query metadata: a flat bag of string properties attached to the statements a query issues, for the backend\'s own reporting — cost attribution, workload classification, tracing. Each backend applies it through a per-query mechanism: Snowflake a per-statement `QUERY_TAG` (the bag as JSON, so its properties are queryable in `QUERY_HISTORY`), BigQuery per-job `labels` (queryable in `INFORMATION_SCHEMA.JOBS`), and every other backend a leading SQL comment (`-- team=\"finance\"`, visible in query history / `pg_stat_activity`). It never affects results, and it is excluded from connection fingerprints and from build identity, so changing a property never re-addresses or rebuilds anything. The contract, which every backend can render and which the connector enforces at dispatch: property names are ASCII alphanumerics and underscore (<=128 chars), values are printable ASCII without `\"` (<=256 chars), and a bag holds at most 20 properties. Declare a name starting with a LETTER: BigQuery drops a name it cannot fit to its label grammar while other backends keep it. Layers, most specific wins per property: connection default < package `materialization.queryMetadata` < model-file `## materialization.queryMetadata.*` < `#@ persist queryMetadata.*` < per-request `queryMetadata`. The publisher\'s own context (`class`, `environment`, `package`, `model`, `source`, `trigger`, `run_id`, `query_id`) is applied on top and cannot be overwritten by a declaration — it is what the server is actually doing, and a caller must not be able to relabel it. Put no secrets or personal data here: a tag is visible to anyone who can read the backend\'s query history, and on a backend with no native tag mechanism it is visible in the statement text.
|
|
2190
|
+
* @type {{ [key: string]: string; }}
|
|
2191
|
+
* @memberof QueryRequest
|
|
2192
|
+
*/
|
|
2193
|
+
'queryMetadata'?: {
|
|
2194
|
+
[key: string]: string;
|
|
2195
|
+
};
|
|
2196
|
+
/**
|
|
2197
|
+
* What class of work this request represents, attached as the `class` property. Defaults to `interactive`.
|
|
2198
|
+
* @type {QueryClass}
|
|
2199
|
+
* @memberof QueryRequest
|
|
2200
|
+
*/
|
|
2201
|
+
'queryClass'?: QueryClass;
|
|
2112
2202
|
}
|
|
2113
2203
|
/**
|
|
2114
2204
|
* Results from executing a Malloy query
|
|
@@ -2128,13 +2218,36 @@ export interface QueryResult {
|
|
|
2128
2218
|
* @memberof QueryResult
|
|
2129
2219
|
*/
|
|
2130
2220
|
'resource'?: string;
|
|
2221
|
+
/**
|
|
2222
|
+
* Id the server minted for this query and attached to its statements as the `query_id` query-metadata property — the join key back to the backend\'s own record of the query. Find the same value in `QUERY_HISTORY.query_tag` (Snowflake, inside the JSON tag), `INFORMATION_SCHEMA.JOBS.labels` (BigQuery), or the statement text (every other backend), and you have the warehouse-side row for this API call: its cost, its duration, its plan. Minted by the server rather than taken from the request because it is the platform\'s join key — a caller-supplied value can be omitted or reused, leaving a response with nothing to hand back. To carry your own id as well, declare it in `queryMetadata` under your own property name (`query_id` is reserved). Null when no metadata was attached — which is every query until a deployment sets `PUBLISHER_QUERY_METADATA=on`, since query metadata ships off by default.
|
|
2223
|
+
* @type {string}
|
|
2224
|
+
* @memberof QueryResult
|
|
2225
|
+
*/
|
|
2226
|
+
'queryCorrelationId'?: string | null;
|
|
2131
2227
|
/**
|
|
2132
2228
|
* Render tag validation messages (errors, warnings) detected during query preparation
|
|
2133
2229
|
* @type {Array<LogMessage>}
|
|
2134
2230
|
* @memberof QueryResult
|
|
2135
2231
|
*/
|
|
2136
2232
|
'renderLogs'?: Array<LogMessage>;
|
|
2233
|
+
/**
|
|
2234
|
+
* Row cap pushed into the SQL for this query, taken from the query\'s own limit/top when it has one and otherwise from the server default. A caller cannot derive it, since it depends on server configuration as well as the query, and without it a result that the cap cut off is indistinguishable from a complete one.
|
|
2235
|
+
* @type {number}
|
|
2236
|
+
* @memberof QueryResult
|
|
2237
|
+
*/
|
|
2238
|
+
'queryRowLimit'?: number;
|
|
2239
|
+
/**
|
|
2240
|
+
* Which of the two queryRowLimit came from. Only server_default means rows were probably left behind; a deliberate limit or top returning exactly that many rows is a complete answer.
|
|
2241
|
+
* @type {string}
|
|
2242
|
+
* @memberof QueryResult
|
|
2243
|
+
*/
|
|
2244
|
+
'queryRowLimitSource'?: QueryResultQueryRowLimitSourceEnum;
|
|
2137
2245
|
}
|
|
2246
|
+
export declare const QueryResultQueryRowLimitSourceEnum: {
|
|
2247
|
+
readonly Query: "query";
|
|
2248
|
+
readonly ServerDefault: "server_default";
|
|
2249
|
+
};
|
|
2250
|
+
export type QueryResultQueryRowLimitSourceEnum = typeof QueryResultQueryRowLimitSourceEnum[keyof typeof QueryResultQueryRowLimitSourceEnum];
|
|
2138
2251
|
/**
|
|
2139
2252
|
* Raw Malloy notebook with unexecuted cell contents
|
|
2140
2253
|
* @export
|
|
@@ -2194,6 +2307,31 @@ export declare const Realization: {
|
|
|
2194
2307
|
readonly Copy: "COPY";
|
|
2195
2308
|
};
|
|
2196
2309
|
export type Realization = typeof Realization[keyof typeof Realization];
|
|
2310
|
+
/**
|
|
2311
|
+
* Caller-supplied context for one materialization run, folded into the per-query metadata of the statements it issues (see `QueryMetadata`). Observability only — it never affects what gets built or how anything is addressed.
|
|
2312
|
+
* @export
|
|
2313
|
+
* @interface RunContext
|
|
2314
|
+
*/
|
|
2315
|
+
export interface RunContext {
|
|
2316
|
+
/**
|
|
2317
|
+
* What started this run, attached as the `trigger` property: a package publish, an explicit request, or the caller\'s scheduler.
|
|
2318
|
+
* @type {string}
|
|
2319
|
+
* @memberof RunContext
|
|
2320
|
+
*/
|
|
2321
|
+
'trigger'?: RunContextTriggerEnum;
|
|
2322
|
+
/**
|
|
2323
|
+
* The caller\'s id for this run, attached as the `run_id` property so every statement of one build groups together in the backend\'s query history.
|
|
2324
|
+
* @type {string}
|
|
2325
|
+
* @memberof RunContext
|
|
2326
|
+
*/
|
|
2327
|
+
'runId'?: string;
|
|
2328
|
+
}
|
|
2329
|
+
export declare const RunContextTriggerEnum: {
|
|
2330
|
+
readonly Publish: "publish";
|
|
2331
|
+
readonly OnDemand: "on_demand";
|
|
2332
|
+
readonly Scheduler: "scheduler";
|
|
2333
|
+
};
|
|
2334
|
+
export type RunContextTriggerEnum = typeof RunContextTriggerEnum[keyof typeof RunContextTriggerEnum];
|
|
2197
2335
|
/**
|
|
2198
2336
|
* AWS S3 connection configuration for DuckDB
|
|
2199
2337
|
* @export
|
|
@@ -4778,7 +4916,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
4778
4916
|
*/
|
|
4779
4917
|
listPackages: (environmentName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4780
4918
|
/**
|
|
4781
|
-
* Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible.
|
|
4919
|
+
* Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions, because neither is expressible in the block a caller sends: `scope` (a top-level field) and `queryMetadata` (orthogonal to the schedule and freshness policy this call usually carries) are preserved when omitted. Send `queryMetadata: null` to clear it.
|
|
4782
4920
|
* @summary Update package configuration
|
|
4783
4921
|
* @param {string} environmentName Name of the environment
|
|
4784
4922
|
* @param {string} packageName Name of the package
|
|
@@ -4831,7 +4969,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
4831
4969
|
*/
|
|
4832
4970
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Package>>>;
|
|
4833
4971
|
/**
|
|
4834
|
-
* Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible.
|
|
4972
|
+
* Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions, because neither is expressible in the block a caller sends: `scope` (a top-level field) and `queryMetadata` (orthogonal to the schedule and freshness policy this call usually carries) are preserved when omitted. Send `queryMetadata: null` to clear it.
|
|
4835
4973
|
* @summary Update package configuration
|
|
4836
4974
|
* @param {string} environmentName Name of the environment
|
|
4837
4975
|
* @param {string} packageName Name of the package
|
|
@@ -4884,7 +5022,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
4884
5022
|
*/
|
|
4885
5023
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Package>>;
|
|
4886
5024
|
/**
|
|
4887
|
-
* Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible.
|
|
5025
|
+
* Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions, because neither is expressible in the block a caller sends: `scope` (a top-level field) and `queryMetadata` (orthogonal to the schedule and freshness policy this call usually carries) are preserved when omitted. Send `queryMetadata: null` to clear it.
|
|
4888
5026
|
* @summary Update package configuration
|
|
4889
5027
|
* @param {string} environmentName Name of the environment
|
|
4890
5028
|
* @param {string} packageName Name of the package
|
|
@@ -4943,7 +5081,7 @@ export declare class PackagesApi extends BaseAPI {
|
|
|
4943
5081
|
*/
|
|
4944
5082
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package[], any, {}>>;
|
|
4945
5083
|
/**
|
|
4946
|
-
* Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible.
|
|
5084
|
+
* Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions, because neither is expressible in the block a caller sends: `scope` (a top-level field) and `queryMetadata` (orthogonal to the schedule and freshness policy this call usually carries) are preserved when omitted. Send `queryMetadata: null` to clear it.
|
|
4947
5085
|
* @summary Update package configuration
|
|
4948
5086
|
* @param {string} environmentName Name of the environment
|
|
4949
5087
|
* @param {string} packageName Name of the package
|
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-CXg4bBm6.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PageFitEnum=e.PageFitEnum;exports.PagesApi=e.PagesApi;exports.PagesApiAxiosParamCreator=e.PagesApiAxiosParamCreator;exports.PagesApiFactory=e.PagesApiFactory;exports.PagesApiFp=e.PagesApiFp;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.Realization=e.Realization;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
|
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, am 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, H as b, B as g, G as k, E as M, O as S, I as x, K as d, J as h, a5 as T, F as v, f as z, L as D, M as N, Y as f, h as R, X as Q, U as W, W as B, V as L, a0 as j, Z as w, $ as I, _ as O, i as q, N as G, a4 as H, a1 as J, a3 as K, a2 as U, k as V, j as X, P as Y, l as Z, a9 as _, a6 as $, a8 as aa, a7 as sa, m as ea, ad as oa, aa as ia, ac as ta, ab as na, n as ra, ah as pa, ae as Aa, ag as ua, af as ma, Q as ca, o as la, R as Ca, p as Ea, S as Pa, q as ya, T as Fa, al as ba, ai as ga, ak as ka, aj as Ma, g as Sa, u as xa } from "../ServerProvider-BupI3Smf.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AttachedDatabaseTypeEnum,
|
|
4
4
|
o as AzureConnectionAuthTypeEnum,
|
|
@@ -8,39 +8,39 @@ export {
|
|
|
8
8
|
r as ConnectionProxyTypeEnum,
|
|
9
9
|
p as ConnectionStatusStatusEnum,
|
|
10
10
|
A as ConnectionTypeEnum,
|
|
11
|
-
|
|
11
|
+
u as ConnectionsApi,
|
|
12
12
|
m as ConnectionsApiAxiosParamCreator,
|
|
13
|
-
|
|
13
|
+
c as ConnectionsApiFactory,
|
|
14
14
|
l as ConnectionsApiFp,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
C as ConnectionsTestApi,
|
|
16
|
+
E as ConnectionsTestApiAxiosParamCreator,
|
|
17
|
+
P as ConnectionsTestApiFactory,
|
|
18
|
+
y as ConnectionsTestApiFp,
|
|
19
|
+
F as DatabaseTypeEnum,
|
|
20
20
|
b as DatabasesApi,
|
|
21
21
|
g as DatabasesApiAxiosParamCreator,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
k as DatabasesApiFactory,
|
|
23
|
+
M as DatabasesApiFp,
|
|
24
24
|
S as EnvironmentsApi,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
x as EnvironmentsApiAxiosParamCreator,
|
|
26
|
+
d as EnvironmentsApiFactory,
|
|
27
|
+
h as EnvironmentsApiFp,
|
|
28
28
|
T as ExecuteNotebookCellBypassFiltersEnum,
|
|
29
29
|
v as FilterTypeEnum,
|
|
30
30
|
z as FreshnessFallbackEnum,
|
|
31
31
|
D as LogMessageSeverityEnum,
|
|
32
32
|
N as ManifestEntryFreshnessFallbackEnum,
|
|
33
33
|
f as MaterializationActionActionEnum,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
R as MaterializationStatus,
|
|
35
|
+
Q as MaterializationsApi,
|
|
36
|
+
W as MaterializationsApiAxiosParamCreator,
|
|
37
|
+
B as MaterializationsApiFactory,
|
|
38
|
+
L as MaterializationsApiFp,
|
|
39
|
+
j as ModelsApi,
|
|
40
|
+
w as ModelsApiAxiosParamCreator,
|
|
41
|
+
I as ModelsApiFactory,
|
|
42
|
+
O as ModelsApiFp,
|
|
43
|
+
q as NotebookCellResultTypeEnum,
|
|
44
44
|
G as NotebookCellTypeEnum,
|
|
45
45
|
H as NotebooksApi,
|
|
46
46
|
J as NotebooksApiAxiosParamCreator,
|
|
@@ -62,16 +62,19 @@ export {
|
|
|
62
62
|
ra as PostgresConnectionSslmodeEnum,
|
|
63
63
|
pa as PublisherApi,
|
|
64
64
|
Aa as PublisherApiAxiosParamCreator,
|
|
65
|
-
|
|
65
|
+
ua as PublisherApiFactory,
|
|
66
66
|
ma as PublisherApiFp,
|
|
67
|
-
|
|
68
|
-
la as
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
ba as
|
|
75
|
-
ga as
|
|
76
|
-
|
|
67
|
+
ca as QueryClass,
|
|
68
|
+
la as QueryResultQueryRowLimitSourceEnum,
|
|
69
|
+
Ca as Realization,
|
|
70
|
+
Ea as RunContextTriggerEnum,
|
|
71
|
+
Pa as ServerProvider,
|
|
72
|
+
ya as ServerStatusOperationalStateEnum,
|
|
73
|
+
Fa as ThemeDefaultModeEnum,
|
|
74
|
+
ba as WatchModeApi,
|
|
75
|
+
ga as WatchModeApiAxiosParamCreator,
|
|
76
|
+
ka as WatchModeApiFactory,
|
|
77
|
+
Ma as WatchModeApiFp,
|
|
78
|
+
Sa as globalQueryClient,
|
|
79
|
+
xa as useServer
|
|
77
80
|
};
|