@malloy-publisher/sdk 0.0.207 → 0.0.209

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";const q=require("react/jsx-runtime"),j=require("@tanstack/react-query"),h=require("axios"),U=require("react"),u="http://localhost/api/v0".replace(/\/+$/,"");class A{constructor(r,e=u,t=h){this.basePath=e,this.axios=t,r&&(this.configuration=r,this.basePath=r.basePath??e)}configuration}class me extends Error{constructor(r,e){super(e),this.field=r,this.name="RequiredError"}}const P={},V="https://example.com",d=function(l,r,e){if(e==null)throw new me(r,`Required parameter ${r} was null or undefined when calling ${l}.`)};function F(l,r,e=""){r!=null&&(typeof r=="object"?Array.isArray(r)?r.forEach(t=>F(l,t,e)):Object.keys(r).forEach(t=>F(l,r[t],`${e}${e!==""?".":""}${t}`)):l.has(e)?l.append(e,r):l.set(e,r))}const g=function(l,...r){const e=new URLSearchParams(l.search);F(e,r),l.search=e.toString()},y=function(l,r,e){const t=typeof l!="string";return(t&&e&&e.isJsonMime?e.isJsonMime(r.headers["Content-Type"]):t)?JSON.stringify(l!==void 0?l:{}):l||""},v=function(l){return l.pathname+l.search+l.hash},b=function(l,r,e,t){return(a=r,n=e)=>{const o={...l.options,url:(a.defaults.baseURL?"":t?.basePath??n)+l.url};return a.request(o)}},he={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},ue={ServicePrincipal:"service_principal",SasToken:"sas_token"},Pe={Error:"error",Warn:"warn",Debug:"debug"},Ve={Success:"success",Error:"error"},ge={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},ve={Ok:"ok",Failed:"failed"},be={Embedded:"embedded",Materialized:"materialized"},Oe={Equal:"equal",In:"in",Like:"like",GreaterThan:"greater_than",LessThan:"less_than"},Se={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},ye={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},Ce={Markdown:"markdown",Code:"code"},Ae={Markdown:"markdown",Code:"code"},ke={Declared:"declared",All:"all"},Ie={Unbound:"unbound",Bound:"bound",LiveFallback:"live_fallback"},xe={Snapshot:"SNAPSHOT",Copy:"COPY"},Ne={Initializing:"initializing",Serving:"serving",Draining:"draining",Throttled:"throttled"},L=function(l){return{createConnection:async(r,e,t,a={})=>{d("createConnection","environmentName",r),d("createConnection","connectionName",e),d("createConnection","connection",t);const n="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",g(o,p);let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},c.data=y(t,c,l),{url:v(o),options:c}},deleteConnection:async(r,e,t={})=>{d("deleteConnection","environmentName",r),d("deleteConnection","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(a,V);let o;l&&(o=l.baseOptions);const s={method:"DELETE",...o,...t},c={};g(n,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...t.headers},{url:v(n),options:s}},getConnection:async(r,e,t={})=>{d("getConnection","environmentName",r),d("getConnection","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(a,V);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...t},c={};g(n,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...t.headers},{url:v(n),options:s}},getTable:async(r,e,t,a,n={})=>{d("getTable","environmentName",r),d("getTable","connectionName",e),d("getTable","schemaName",t),d("getTable","tablePath",a);const o="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(t))).replace("{tablePath}",encodeURIComponent(String(a))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={};g(s,{});let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},{url:v(s),options:i}},getTableInPackage:async(r,e,t,a,n,o={})=>{d("getTableInPackage","environmentName",r),d("getTableInPackage","packageName",e),d("getTableInPackage","connectionName",t),d("getTableInPackage","schemaName",a),d("getTableInPackage","tablePath",n);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(t))).replace("{schemaName}",encodeURIComponent(String(a))).replace("{tablePath}",encodeURIComponent(String(n))),c=new URL(s,V);let i;l&&(i=l.baseOptions);const p={method:"GET",...i,...o},m={};g(c,{});let C=i&&i.headers?i.headers:{};return p.headers={...m,...C,...o.headers},{url:v(c),options:p}},listConnections:async(r,e={})=>{d("listConnections","environmentName",r);const t="/environments/{environmentName}/connections".replace("{environmentName}",encodeURIComponent(String(r))),a=new URL(t,V);let n;l&&(n=l.baseOptions);const o={method:"GET",...n,...e},s={};g(a,{});let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},listSchemas:async(r,e,t={})=>{d("listSchemas","environmentName",r),d("listSchemas","connectionName",e);const a="/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(a,V);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...t},c={};g(n,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...t.headers},{url:v(n),options:s}},listSchemasInPackage:async(r,e,t,a={})=>{d("listSchemasInPackage","environmentName",r),d("listSchemasInPackage","packageName",e),d("listSchemasInPackage","connectionName",t);const n="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(t))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={};g(o,{});let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},{url:v(o),options:c}},listTables:async(r,e,t,a,n={})=>{d("listTables","environmentName",r),d("listTables","connectionName",e),d("listTables","schemaName",t);const o="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(t))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},m={};a&&(m.tableNames=a),g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},{url:v(s),options:i}},listTablesInPackage:async(r,e,t,a,n,o={})=>{d("listTablesInPackage","environmentName",r),d("listTablesInPackage","packageName",e),d("listTablesInPackage","connectionName",t),d("listTablesInPackage","schemaName",a);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(t))).replace("{schemaName}",encodeURIComponent(String(a))),c=new URL(s,V);let i;l&&(i=l.baseOptions);const p={method:"GET",...i,...o},m={},O={};n&&(O.tableNames=n),g(c,O);let C=i&&i.headers?i.headers:{};return p.headers={...m,...C,...o.headers},{url:v(c),options:p}},postQuerydata:async(r,e,t,a={})=>{d("postQuerydata","environmentName",r),d("postQuerydata","connectionName",e),d("postQuerydata","postQuerydataRequest",t);const n="/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",g(o,p);let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},c.data=y(t,c,l),{url:v(o),options:c}},postQuerydataInPackage:async(r,e,t,a,n={})=>{d("postQuerydataInPackage","environmentName",r),d("postQuerydataInPackage","packageName",e),d("postQuerydataInPackage","connectionName",t),d("postQuerydataInPackage","postQuerydataRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(t))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},m={};p["Content-Type"]="application/json",g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},i.data=y(a,i,l),{url:v(s),options:i}},postSqlsource:async(r,e,t,a={})=>{d("postSqlsource","environmentName",r),d("postSqlsource","connectionName",e),d("postSqlsource","postSqlsourceRequest",t);const n="/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",g(o,p);let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},c.data=y(t,c,l),{url:v(o),options:c}},postSqlsourceInPackage:async(r,e,t,a,n={})=>{d("postSqlsourceInPackage","environmentName",r),d("postSqlsourceInPackage","packageName",e),d("postSqlsourceInPackage","connectionName",t),d("postSqlsourceInPackage","postSqlsourceRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(t))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},m={};p["Content-Type"]="application/json",g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},i.data=y(a,i,l),{url:v(s),options:i}},postTemporarytable:async(r,e,t,a={})=>{d("postTemporarytable","environmentName",r),d("postTemporarytable","connectionName",e),d("postTemporarytable","postSqlsourceRequest",t);const n="/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",g(o,p);let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},c.data=y(t,c,l),{url:v(o),options:c}},postTemporarytableInPackage:async(r,e,t,a,n={})=>{d("postTemporarytableInPackage","environmentName",r),d("postTemporarytableInPackage","packageName",e),d("postTemporarytableInPackage","connectionName",t),d("postTemporarytableInPackage","postSqlsourceRequest",a);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{connectionName}",encodeURIComponent(String(t))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},m={};p["Content-Type"]="application/json",g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},i.data=y(a,i,l),{url:v(s),options:i}},updateConnection:async(r,e,t,a={})=>{d("updateConnection","environmentName",r),d("updateConnection","connectionName",e),d("updateConnection","updateConnectionRequest",t);const n="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"PATCH",...s,...a},i={},p={};i["Content-Type"]="application/json",g(o,p);let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},c.data=y(t,c,l),{url:v(o),options:c}}}},S=function(l){const r=L(l);return{async createConnection(e,t,a,n){const o=await r.createConnection(e,t,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.createConnection"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)},async deleteConnection(e,t,a){const n=await r.deleteConnection(e,t,a),o=l?.serverIndex??0,s=P["ConnectionsApi.deleteConnection"]?.[o]?.url;return(c,i)=>b(n,h,u,l)(c,s||i)},async getConnection(e,t,a){const n=await r.getConnection(e,t,a),o=l?.serverIndex??0,s=P["ConnectionsApi.getConnection"]?.[o]?.url;return(c,i)=>b(n,h,u,l)(c,s||i)},async getTable(e,t,a,n,o){const s=await r.getTable(e,t,a,n,o),c=l?.serverIndex??0,i=P["ConnectionsApi.getTable"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async getTableInPackage(e,t,a,n,o,s){const c=await r.getTableInPackage(e,t,a,n,o,s),i=l?.serverIndex??0,p=P["ConnectionsApi.getTableInPackage"]?.[i]?.url;return(m,O)=>b(c,h,u,l)(m,p||O)},async listConnections(e,t){const a=await r.listConnections(e,t),n=l?.serverIndex??0,o=P["ConnectionsApi.listConnections"]?.[n]?.url;return(s,c)=>b(a,h,u,l)(s,o||c)},async listSchemas(e,t,a){const n=await r.listSchemas(e,t,a),o=l?.serverIndex??0,s=P["ConnectionsApi.listSchemas"]?.[o]?.url;return(c,i)=>b(n,h,u,l)(c,s||i)},async listSchemasInPackage(e,t,a,n){const o=await r.listSchemasInPackage(e,t,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)},async listTables(e,t,a,n,o){const s=await r.listTables(e,t,a,n,o),c=l?.serverIndex??0,i=P["ConnectionsApi.listTables"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async listTablesInPackage(e,t,a,n,o,s){const c=await r.listTablesInPackage(e,t,a,n,o,s),i=l?.serverIndex??0,p=P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;return(m,O)=>b(c,h,u,l)(m,p||O)},async postQuerydata(e,t,a,n){const o=await r.postQuerydata(e,t,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.postQuerydata"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)},async postQuerydataInPackage(e,t,a,n,o){const s=await r.postQuerydataInPackage(e,t,a,n,o),c=l?.serverIndex??0,i=P["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async postSqlsource(e,t,a,n){const o=await r.postSqlsource(e,t,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.postSqlsource"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)},async postSqlsourceInPackage(e,t,a,n,o){const s=await r.postSqlsourceInPackage(e,t,a,n,o),c=l?.serverIndex??0,i=P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async postTemporarytable(e,t,a,n){const o=await r.postTemporarytable(e,t,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.postTemporarytable"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)},async postTemporarytableInPackage(e,t,a,n,o){const s=await r.postTemporarytableInPackage(e,t,a,n,o),c=l?.serverIndex??0,i=P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async updateConnection(e,t,a,n){const o=await r.updateConnection(e,t,a,n),s=l?.serverIndex??0,c=P["ConnectionsApi.updateConnection"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)}}},Re=function(l,r,e){const t=S(l);return{createConnection(a,n,o,s){return t.createConnection(a,n,o,s).then(c=>c(e,r))},deleteConnection(a,n,o){return t.deleteConnection(a,n,o).then(s=>s(e,r))},getConnection(a,n,o){return t.getConnection(a,n,o).then(s=>s(e,r))},getTable(a,n,o,s,c){return t.getTable(a,n,o,s,c).then(i=>i(e,r))},getTableInPackage(a,n,o,s,c,i){return t.getTableInPackage(a,n,o,s,c,i).then(p=>p(e,r))},listConnections(a,n){return t.listConnections(a,n).then(o=>o(e,r))},listSchemas(a,n,o){return t.listSchemas(a,n,o).then(s=>s(e,r))},listSchemasInPackage(a,n,o,s){return t.listSchemasInPackage(a,n,o,s).then(c=>c(e,r))},listTables(a,n,o,s,c){return t.listTables(a,n,o,s,c).then(i=>i(e,r))},listTablesInPackage(a,n,o,s,c,i){return t.listTablesInPackage(a,n,o,s,c,i).then(p=>p(e,r))},postQuerydata(a,n,o,s){return t.postQuerydata(a,n,o,s).then(c=>c(e,r))},postQuerydataInPackage(a,n,o,s,c){return t.postQuerydataInPackage(a,n,o,s,c).then(i=>i(e,r))},postSqlsource(a,n,o,s){return t.postSqlsource(a,n,o,s).then(c=>c(e,r))},postSqlsourceInPackage(a,n,o,s,c){return t.postSqlsourceInPackage(a,n,o,s,c).then(i=>i(e,r))},postTemporarytable(a,n,o,s){return t.postTemporarytable(a,n,o,s).then(c=>c(e,r))},postTemporarytableInPackage(a,n,o,s,c){return t.postTemporarytableInPackage(a,n,o,s,c).then(i=>i(e,r))},updateConnection(a,n,o,s){return t.updateConnection(a,n,o,s).then(c=>c(e,r))}}};class H extends A{createConnection(r,e,t,a){return S(this.configuration).createConnection(r,e,t,a).then(n=>n(this.axios,this.basePath))}deleteConnection(r,e,t){return S(this.configuration).deleteConnection(r,e,t).then(a=>a(this.axios,this.basePath))}getConnection(r,e,t){return S(this.configuration).getConnection(r,e,t).then(a=>a(this.axios,this.basePath))}getTable(r,e,t,a,n){return S(this.configuration).getTable(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}getTableInPackage(r,e,t,a,n,o){return S(this.configuration).getTableInPackage(r,e,t,a,n,o).then(s=>s(this.axios,this.basePath))}listConnections(r,e){return S(this.configuration).listConnections(r,e).then(t=>t(this.axios,this.basePath))}listSchemas(r,e,t){return S(this.configuration).listSchemas(r,e,t).then(a=>a(this.axios,this.basePath))}listSchemasInPackage(r,e,t,a){return S(this.configuration).listSchemasInPackage(r,e,t,a).then(n=>n(this.axios,this.basePath))}listTables(r,e,t,a,n){return S(this.configuration).listTables(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}listTablesInPackage(r,e,t,a,n,o){return S(this.configuration).listTablesInPackage(r,e,t,a,n,o).then(s=>s(this.axios,this.basePath))}postQuerydata(r,e,t,a){return S(this.configuration).postQuerydata(r,e,t,a).then(n=>n(this.axios,this.basePath))}postQuerydataInPackage(r,e,t,a,n){return S(this.configuration).postQuerydataInPackage(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}postSqlsource(r,e,t,a){return S(this.configuration).postSqlsource(r,e,t,a).then(n=>n(this.axios,this.basePath))}postSqlsourceInPackage(r,e,t,a,n){return S(this.configuration).postSqlsourceInPackage(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}postTemporarytable(r,e,t,a){return S(this.configuration).postTemporarytable(r,e,t,a).then(n=>n(this.axios,this.basePath))}postTemporarytableInPackage(r,e,t,a,n){return S(this.configuration).postTemporarytableInPackage(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}updateConnection(r,e,t,a){return S(this.configuration).updateConnection(r,e,t,a).then(n=>n(this.axios,this.basePath))}}const D=function(l){return{testConnectionConfiguration:async(r,e={})=>{d("testConnectionConfiguration","connection",r);const t="/connections/test",a=new URL(t,V);let n;l&&(n=l.baseOptions);const o={method:"POST",...n,...e},s={},c={};s["Content-Type"]="application/json",g(a,c);let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},o.data=y(r,o,l),{url:v(a),options:o}}}},Q=function(l){const r=D(l);return{async testConnectionConfiguration(e,t){const a=await r.testConnectionConfiguration(e,t),n=l?.serverIndex??0,o=P["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;return(s,c)=>b(a,h,u,l)(s,o||c)}}},Ue=function(l,r,e){const t=Q(l);return{testConnectionConfiguration(a,n){return t.testConnectionConfiguration(a,n).then(o=>o(e,r))}}};class Te extends A{testConnectionConfiguration(r,e){return Q(this.configuration).testConnectionConfiguration(r,e).then(t=>t(this.axios,this.basePath))}}const W=function(l){return{listDatabases:async(r,e,t,a={})=>{d("listDatabases","environmentName",r),d("listDatabases","packageName",e);const n="/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};t!==void 0&&(p.versionId=t),g(o,p);let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},{url:v(o),options:c}}}},$=function(l){const r=W(l);return{async listDatabases(e,t,a,n){const o=await r.listDatabases(e,t,a,n),s=l?.serverIndex??0,c=P["DatabasesApi.listDatabases"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)}}},Ee=function(l,r,e){const t=$(l);return{listDatabases(a,n,o,s){return t.listDatabases(a,n,o,s).then(c=>c(e,r))}}};class G extends A{listDatabases(r,e,t,a){return $(this.configuration).listDatabases(r,e,t,a).then(n=>n(this.axios,this.basePath))}}const f=function(l){return{createEnvironment:async(r,e={})=>{d("createEnvironment","environment",r);const t="/environments",a=new URL(t,V);let n;l&&(n=l.baseOptions);const o={method:"POST",...n,...e},s={},c={};s["Content-Type"]="application/json",g(a,c);let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},o.data=y(r,o,l),{url:v(a),options:o}},deleteEnvironment:async(r,e={})=>{d("deleteEnvironment","environmentName",r);const t="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(r))),a=new URL(t,V);let n;l&&(n=l.baseOptions);const o={method:"DELETE",...n,...e},s={};g(a,{});let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},getEnvironment:async(r,e,t={})=>{d("getEnvironment","environmentName",r);const a="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(r))),n=new URL(a,V);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...t},c={},i={};e!==void 0&&(i.reload=e),g(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...t.headers},{url:v(n),options:s}},listEnvironments:async(r={})=>{const e="/environments",t=new URL(e,V);let a;l&&(a=l.baseOptions);const n={method:"GET",...a,...r},o={};g(t,{});let c=a&&a.headers?a.headers:{};return n.headers={...o,...c,...r.headers},{url:v(t),options:n}},updateEnvironment:async(r,e,t={})=>{d("updateEnvironment","environmentName",r),d("updateEnvironment","environment",e);const a="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(r))),n=new URL(a,V);let o;l&&(o=l.baseOptions);const s={method:"PATCH",...o,...t},c={},i={};c["Content-Type"]="application/json",g(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...t.headers},s.data=y(e,s,l),{url:v(n),options:s}}}},I=function(l){const r=f(l);return{async createEnvironment(e,t){const a=await r.createEnvironment(e,t),n=l?.serverIndex??0,o=P["EnvironmentsApi.createEnvironment"]?.[n]?.url;return(s,c)=>b(a,h,u,l)(s,o||c)},async deleteEnvironment(e,t){const a=await r.deleteEnvironment(e,t),n=l?.serverIndex??0,o=P["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;return(s,c)=>b(a,h,u,l)(s,o||c)},async getEnvironment(e,t,a){const n=await r.getEnvironment(e,t,a),o=l?.serverIndex??0,s=P["EnvironmentsApi.getEnvironment"]?.[o]?.url;return(c,i)=>b(n,h,u,l)(c,s||i)},async listEnvironments(e){const t=await r.listEnvironments(e),a=l?.serverIndex??0,n=P["EnvironmentsApi.listEnvironments"]?.[a]?.url;return(o,s)=>b(t,h,u,l)(o,n||s)},async updateEnvironment(e,t,a){const n=await r.updateEnvironment(e,t,a),o=l?.serverIndex??0,s=P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;return(c,i)=>b(n,h,u,l)(c,s||i)}}},Me=function(l,r,e){const t=I(l);return{createEnvironment(a,n){return t.createEnvironment(a,n).then(o=>o(e,r))},deleteEnvironment(a,n){return t.deleteEnvironment(a,n).then(o=>o(e,r))},getEnvironment(a,n,o){return t.getEnvironment(a,n,o).then(s=>s(e,r))},listEnvironments(a){return t.listEnvironments(a).then(n=>n(e,r))},updateEnvironment(a,n,o){return t.updateEnvironment(a,n,o).then(s=>s(e,r))}}};class _ extends A{createEnvironment(r,e){return I(this.configuration).createEnvironment(r,e).then(t=>t(this.axios,this.basePath))}deleteEnvironment(r,e){return I(this.configuration).deleteEnvironment(r,e).then(t=>t(this.axios,this.basePath))}getEnvironment(r,e,t){return I(this.configuration).getEnvironment(r,e,t).then(a=>a(this.axios,this.basePath))}listEnvironments(r){return I(this.configuration).listEnvironments(r).then(e=>e(this.axios,this.basePath))}updateEnvironment(r,e,t){return I(this.configuration).updateEnvironment(r,e,t).then(a=>a(this.axios,this.basePath))}}const Y=function(l){return{createMaterialization:async(r,e,t,a={})=>{d("createMaterialization","environmentName",r),d("createMaterialization","packageName",e);const n="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"POST",...s,...a},i={},p={};i["Content-Type"]="application/json",g(o,p);let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},c.data=y(t,c,l),{url:v(o),options:c}},deleteMaterialization:async(r,e,t,a,n={})=>{d("deleteMaterialization","environmentName",r),d("deleteMaterialization","packageName",e),d("deleteMaterialization","materializationId",t);const o="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(t))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"DELETE",...c,...n},p={},m={};a!==void 0&&(m.dropTables=a),g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},{url:v(s),options:i}},getMaterialization:async(r,e,t,a={})=>{d("getMaterialization","environmentName",r),d("getMaterialization","packageName",e),d("getMaterialization","materializationId",t);const n="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(t))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={};g(o,{});let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},{url:v(o),options:c}},listMaterializations:async(r,e,t,a,n={})=>{d("listMaterializations","environmentName",r),d("listMaterializations","packageName",e);const o="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},m={};t!==void 0&&(m.limit=t),a!==void 0&&(m.offset=a),g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},{url:v(s),options:i}},materializationAction:async(r,e,t,a,n={})=>{d("materializationAction","environmentName",r),d("materializationAction","packageName",e),d("materializationAction","materializationId",t),d("materializationAction","action",a);const o="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{materializationId}",encodeURIComponent(String(t))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},m={};a!==void 0&&(m.action=a),g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},{url:v(s),options:i}}}},x=function(l){const r=Y(l);return{async createMaterialization(e,t,a,n){const o=await r.createMaterialization(e,t,a,n),s=l?.serverIndex??0,c=P["MaterializationsApi.createMaterialization"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)},async deleteMaterialization(e,t,a,n,o){const s=await r.deleteMaterialization(e,t,a,n,o),c=l?.serverIndex??0,i=P["MaterializationsApi.deleteMaterialization"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async getMaterialization(e,t,a,n){const o=await r.getMaterialization(e,t,a,n),s=l?.serverIndex??0,c=P["MaterializationsApi.getMaterialization"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)},async listMaterializations(e,t,a,n,o){const s=await r.listMaterializations(e,t,a,n,o),c=l?.serverIndex??0,i=P["MaterializationsApi.listMaterializations"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async materializationAction(e,t,a,n,o){const s=await r.materializationAction(e,t,a,n,o),c=l?.serverIndex??0,i=P["MaterializationsApi.materializationAction"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)}}},we=function(l,r,e){const t=x(l);return{createMaterialization(a,n,o,s){return t.createMaterialization(a,n,o,s).then(c=>c(e,r))},deleteMaterialization(a,n,o,s,c){return t.deleteMaterialization(a,n,o,s,c).then(i=>i(e,r))},getMaterialization(a,n,o,s){return t.getMaterialization(a,n,o,s).then(c=>c(e,r))},listMaterializations(a,n,o,s,c){return t.listMaterializations(a,n,o,s,c).then(i=>i(e,r))},materializationAction(a,n,o,s,c){return t.materializationAction(a,n,o,s,c).then(i=>i(e,r))}}};class J extends A{createMaterialization(r,e,t,a){return x(this.configuration).createMaterialization(r,e,t,a).then(n=>n(this.axios,this.basePath))}deleteMaterialization(r,e,t,a,n){return x(this.configuration).deleteMaterialization(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}getMaterialization(r,e,t,a){return x(this.configuration).getMaterialization(r,e,t,a).then(n=>n(this.axios,this.basePath))}listMaterializations(r,e,t,a,n){return x(this.configuration).listMaterializations(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}materializationAction(r,e,t,a,n){return x(this.configuration).materializationAction(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}}const Fe={Stop:"stop"},K=function(l){return{compileModelSource:async(r,e,t,a,n={})=>{d("compileModelSource","environmentName",r),d("compileModelSource","packageName",e),d("compileModelSource","path",t),d("compileModelSource","compileRequest",a);const o="/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(t))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},m={};p["Content-Type"]="application/json",g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},i.data=y(a,i,l),{url:v(s),options:i}},executeQueryModel:async(r,e,t,a,n={})=>{d("executeQueryModel","environmentName",r),d("executeQueryModel","packageName",e),d("executeQueryModel","path",t),d("executeQueryModel","queryRequest",a);const o="/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(t))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"POST",...c,...n},p={},m={};p["Content-Type"]="application/json",g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},i.data=y(a,i,l),{url:v(s),options:i}},getModel:async(r,e,t,a,n={})=>{d("getModel","environmentName",r),d("getModel","packageName",e),d("getModel","path",t);const o="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(t))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},m={};a!==void 0&&(m.versionId=a),g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},{url:v(s),options:i}},listModels:async(r,e,t,a={})=>{d("listModels","environmentName",r),d("listModels","packageName",e);const n="/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};t!==void 0&&(p.versionId=t),g(o,p);let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},{url:v(o),options:c}}}},T=function(l){const r=K(l);return{async compileModelSource(e,t,a,n,o){const s=await r.compileModelSource(e,t,a,n,o),c=l?.serverIndex??0,i=P["ModelsApi.compileModelSource"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async executeQueryModel(e,t,a,n,o){const s=await r.executeQueryModel(e,t,a,n,o),c=l?.serverIndex??0,i=P["ModelsApi.executeQueryModel"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async getModel(e,t,a,n,o){const s=await r.getModel(e,t,a,n,o),c=l?.serverIndex??0,i=P["ModelsApi.getModel"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async listModels(e,t,a,n){const o=await r.listModels(e,t,a,n),s=l?.serverIndex??0,c=P["ModelsApi.listModels"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)}}},Qe=function(l,r,e){const t=T(l);return{compileModelSource(a,n,o,s,c){return t.compileModelSource(a,n,o,s,c).then(i=>i(e,r))},executeQueryModel(a,n,o,s,c){return t.executeQueryModel(a,n,o,s,c).then(i=>i(e,r))},getModel(a,n,o,s,c){return t.getModel(a,n,o,s,c).then(i=>i(e,r))},listModels(a,n,o,s){return t.listModels(a,n,o,s).then(c=>c(e,r))}}};class X extends A{compileModelSource(r,e,t,a,n){return T(this.configuration).compileModelSource(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}executeQueryModel(r,e,t,a,n){return T(this.configuration).executeQueryModel(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}getModel(r,e,t,a,n){return T(this.configuration).getModel(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}listModels(r,e,t,a){return T(this.configuration).listModels(r,e,t,a).then(n=>n(this.axios,this.basePath))}}const Z=function(l){return{executeNotebookCell:async(r,e,t,a,n,o,s,c,i={})=>{d("executeNotebookCell","environmentName",r),d("executeNotebookCell","packageName",e),d("executeNotebookCell","path",t),d("executeNotebookCell","cellIndex",a);const p="/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(t))).replace("{cellIndex}",encodeURIComponent(String(a))),m=new URL(p,V);let O;l&&(O=l.baseOptions);const C={method:"GET",...O,...i},w={},k={};n!==void 0&&(k.versionId=n),o!==void 0&&(k.filter_params=o),s!==void 0&&(k.bypass_filters=s),c!==void 0&&(k.givens=c),g(m,k);let R=O&&O.headers?O.headers:{};return C.headers={...w,...R,...i.headers},{url:v(m),options:C}},getNotebook:async(r,e,t,a,n={})=>{d("getNotebook","environmentName",r),d("getNotebook","packageName",e),d("getNotebook","path",t);const o="/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(t))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},m={};a!==void 0&&(m.versionId=a),g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},{url:v(s),options:i}},listNotebooks:async(r,e,t,a={})=>{d("listNotebooks","environmentName",r),d("listNotebooks","packageName",e);const n="/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"GET",...s,...a},i={},p={};t!==void 0&&(p.versionId=t),g(o,p);let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},{url:v(o),options:c}}}},M=function(l){const r=Z(l);return{async executeNotebookCell(e,t,a,n,o,s,c,i,p){const m=await r.executeNotebookCell(e,t,a,n,o,s,c,i,p),O=l?.serverIndex??0,C=P["NotebooksApi.executeNotebookCell"]?.[O]?.url;return(w,k)=>b(m,h,u,l)(w,C||k)},async getNotebook(e,t,a,n,o){const s=await r.getNotebook(e,t,a,n,o),c=l?.serverIndex??0,i=P["NotebooksApi.getNotebook"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async listNotebooks(e,t,a,n){const o=await r.listNotebooks(e,t,a,n),s=l?.serverIndex??0,c=P["NotebooksApi.listNotebooks"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)}}},$e=function(l,r,e){const t=M(l);return{executeNotebookCell(a,n,o,s,c,i,p,m,O){return t.executeNotebookCell(a,n,o,s,c,i,p,m,O).then(C=>C(e,r))},getNotebook(a,n,o,s,c){return t.getNotebook(a,n,o,s,c).then(i=>i(e,r))},listNotebooks(a,n,o,s){return t.listNotebooks(a,n,o,s).then(c=>c(e,r))}}};class ee extends A{executeNotebookCell(r,e,t,a,n,o,s,c,i){return M(this.configuration).executeNotebookCell(r,e,t,a,n,o,s,c,i).then(p=>p(this.axios,this.basePath))}getNotebook(r,e,t,a,n){return M(this.configuration).getNotebook(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}listNotebooks(r,e,t,a){return M(this.configuration).listNotebooks(r,e,t,a).then(n=>n(this.axios,this.basePath))}}const Be={True:"true",False:"false"},ae=function(l){return{createPackage:async(r,e,t={})=>{d("createPackage","environmentName",r),d("createPackage","_package",e);const a="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(r))),n=new URL(a,V);let o;l&&(o=l.baseOptions);const s={method:"POST",...o,...t},c={},i={};c["Content-Type"]="application/json",g(n,i);let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...t.headers},s.data=y(e,s,l),{url:v(n),options:s}},deletePackage:async(r,e,t={})=>{d("deletePackage","environmentName",r),d("deletePackage","packageName",e);const a="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))),n=new URL(a,V);let o;l&&(o=l.baseOptions);const s={method:"DELETE",...o,...t},c={};g(n,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...t.headers},{url:v(n),options:s}},getPackage:async(r,e,t,a,n={})=>{d("getPackage","environmentName",r),d("getPackage","packageName",e);const o="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,V);let c;l&&(c=l.baseOptions);const i={method:"GET",...c,...n},p={},m={};t!==void 0&&(m.versionId=t),a!==void 0&&(m.reload=a),g(s,m);let O=c&&c.headers?c.headers:{};return i.headers={...p,...O,...n.headers},{url:v(s),options:i}},listPackages:async(r,e={})=>{d("listPackages","environmentName",r);const t="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(r))),a=new URL(t,V);let n;l&&(n=l.baseOptions);const o={method:"GET",...n,...e},s={};g(a,{});let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},{url:v(a),options:o}},updatePackage:async(r,e,t,a={})=>{d("updatePackage","environmentName",r),d("updatePackage","packageName",e),d("updatePackage","_package",t);const n="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(n,V);let s;l&&(s=l.baseOptions);const c={method:"PATCH",...s,...a},i={},p={};i["Content-Type"]="application/json",g(o,p);let m=s&&s.headers?s.headers:{};return c.headers={...i,...m,...a.headers},c.data=y(t,c,l),{url:v(o),options:c}}}},N=function(l){const r=ae(l);return{async createPackage(e,t,a){const n=await r.createPackage(e,t,a),o=l?.serverIndex??0,s=P["PackagesApi.createPackage"]?.[o]?.url;return(c,i)=>b(n,h,u,l)(c,s||i)},async deletePackage(e,t,a){const n=await r.deletePackage(e,t,a),o=l?.serverIndex??0,s=P["PackagesApi.deletePackage"]?.[o]?.url;return(c,i)=>b(n,h,u,l)(c,s||i)},async getPackage(e,t,a,n,o){const s=await r.getPackage(e,t,a,n,o),c=l?.serverIndex??0,i=P["PackagesApi.getPackage"]?.[c]?.url;return(p,m)=>b(s,h,u,l)(p,i||m)},async listPackages(e,t){const a=await r.listPackages(e,t),n=l?.serverIndex??0,o=P["PackagesApi.listPackages"]?.[n]?.url;return(s,c)=>b(a,h,u,l)(s,o||c)},async updatePackage(e,t,a,n){const o=await r.updatePackage(e,t,a,n),s=l?.serverIndex??0,c=P["PackagesApi.updatePackage"]?.[s]?.url;return(i,p)=>b(o,h,u,l)(i,c||p)}}},ze=function(l,r,e){const t=N(l);return{createPackage(a,n,o){return t.createPackage(a,n,o).then(s=>s(e,r))},deletePackage(a,n,o){return t.deletePackage(a,n,o).then(s=>s(e,r))},getPackage(a,n,o,s,c){return t.getPackage(a,n,o,s,c).then(i=>i(e,r))},listPackages(a,n){return t.listPackages(a,n).then(o=>o(e,r))},updatePackage(a,n,o,s){return t.updatePackage(a,n,o,s).then(c=>c(e,r))}}};class te extends A{createPackage(r,e,t){return N(this.configuration).createPackage(r,e,t).then(a=>a(this.axios,this.basePath))}deletePackage(r,e,t){return N(this.configuration).deletePackage(r,e,t).then(a=>a(this.axios,this.basePath))}getPackage(r,e,t,a,n){return N(this.configuration).getPackage(r,e,t,a,n).then(o=>o(this.axios,this.basePath))}listPackages(r,e){return N(this.configuration).listPackages(r,e).then(t=>t(this.axios,this.basePath))}updatePackage(r,e,t,a){return N(this.configuration).updatePackage(r,e,t,a).then(n=>n(this.axios,this.basePath))}}const ne=function(l){return{listPages:async(r,e,t={})=>{d("listPages","environmentName",r),d("listPages","packageName",e);const a="/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))),n=new URL(a,V);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...t},c={};g(n,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...t.headers},{url:v(n),options:s}}}},B=function(l){const r=ne(l);return{async listPages(e,t,a){const n=await r.listPages(e,t,a),o=l?.serverIndex??0,s=P["PagesApi.listPages"]?.[o]?.url;return(c,i)=>b(n,h,u,l)(c,s||i)}}},qe=function(l,r,e){const t=B(l);return{listPages(a,n,o){return t.listPages(a,n,o).then(s=>s(e,r))}}};class re extends A{listPages(r,e,t){return B(this.configuration).listPages(r,e,t).then(a=>a(this.axios,this.basePath))}}const oe=function(l){return{getStatus:async(r={})=>{const e="/status",t=new URL(e,V);let a;l&&(a=l.baseOptions);const n={method:"GET",...a,...r},o={};g(t,{});let c=a&&a.headers?a.headers:{};return n.headers={...o,...c,...r.headers},{url:v(t),options:n}}}},z=function(l){const r=oe(l);return{async getStatus(e){const t=await r.getStatus(e),a=l?.serverIndex??0,n=P["PublisherApi.getStatus"]?.[a]?.url;return(o,s)=>b(t,h,u,l)(o,n||s)}}},je=function(l,r,e){const t=z(l);return{getStatus(a){return t.getStatus(a).then(n=>n(e,r))}}};class se extends A{getStatus(r){return z(this.configuration).getStatus(r).then(e=>e(this.axios,this.basePath))}}const ce=function(l){return{getWatchStatus:async(r={})=>{const e="/watch-mode/status",t=new URL(e,V);let a;l&&(a=l.baseOptions);const n={method:"GET",...a,...r},o={};g(t,{});let c=a&&a.headers?a.headers:{};return n.headers={...o,...c,...r.headers},{url:v(t),options:n}},startWatching:async(r,e={})=>{d("startWatching","startWatchRequest",r);const t="/watch-mode/start",a=new URL(t,V);let n;l&&(n=l.baseOptions);const o={method:"POST",...n,...e},s={},c={};s["Content-Type"]="application/json",g(a,c);let i=n&&n.headers?n.headers:{};return o.headers={...s,...i,...e.headers},o.data=y(r,o,l),{url:v(a),options:o}},stopWatching:async(r={})=>{const e="/watch-mode/stop",t=new URL(e,V);let a;l&&(a=l.baseOptions);const n={method:"POST",...a,...r},o={};g(t,{});let c=a&&a.headers?a.headers:{};return n.headers={...o,...c,...r.headers},{url:v(t),options:n}},streamPackageEvents:async(r,e,t={})=>{d("streamPackageEvents","environmentName",r),d("streamPackageEvents","packageName",e);const a="/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(e))),n=new URL(a,V);let o;l&&(o=l.baseOptions);const s={method:"GET",...o,...t},c={};g(n,{});let p=o&&o.headers?o.headers:{};return s.headers={...c,...p,...t.headers},{url:v(n),options:s}}}},E=function(l){const r=ce(l);return{async getWatchStatus(e){const t=await r.getWatchStatus(e),a=l?.serverIndex??0,n=P["WatchModeApi.getWatchStatus"]?.[a]?.url;return(o,s)=>b(t,h,u,l)(o,n||s)},async startWatching(e,t){const a=await r.startWatching(e,t),n=l?.serverIndex??0,o=P["WatchModeApi.startWatching"]?.[n]?.url;return(s,c)=>b(a,h,u,l)(s,o||c)},async stopWatching(e){const t=await r.stopWatching(e),a=l?.serverIndex??0,n=P["WatchModeApi.stopWatching"]?.[a]?.url;return(o,s)=>b(t,h,u,l)(o,n||s)},async streamPackageEvents(e,t,a){const n=await r.streamPackageEvents(e,t,a),o=l?.serverIndex??0,s=P["WatchModeApi.streamPackageEvents"]?.[o]?.url;return(c,i)=>b(n,h,u,l)(c,s||i)}}},Le=function(l,r,e){const t=E(l);return{getWatchStatus(a){return t.getWatchStatus(a).then(n=>n(e,r))},startWatching(a,n){return t.startWatching(a,n).then(o=>o(e,r))},stopWatching(a){return t.stopWatching(a).then(n=>n(e,r))},streamPackageEvents(a,n,o){return t.streamPackageEvents(a,n,o).then(s=>s(e,r))}}};class le extends A{getWatchStatus(r){return E(this.configuration).getWatchStatus(r).then(e=>e(this.axios,this.basePath))}startWatching(r,e){return E(this.configuration).startWatching(r,e).then(t=>t(this.axios,this.basePath))}stopWatching(r){return E(this.configuration).stopWatching(r).then(e=>e(this.axios,this.basePath))}streamPackageEvents(r,e,t){return E(this.configuration).streamPackageEvents(r,e,t).then(a=>a(this.axios,this.basePath))}}class ie{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(r={}){this.apiKey=r.apiKey,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.serverIndex=r.serverIndex,this.baseOptions={...r.baseOptions,headers:{...r.baseOptions?.headers}},this.formDataCtor=r.formDataCtor}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return r!==null&&(e.test(r)||r.toLowerCase()==="application/json-patch+json")}}const pe=new j.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}});h.defaults.baseURL||(h.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const de=U.createContext(void 0),He=(l,r)=>{const e=`${window.location.protocol}//${window.location.host}/api/v0`,t=h.create({baseURL:l||e,withCredentials:!0,timeout:6e5});t.interceptors.request.use(async n=>{const o=await r?.();return n.headers.Authorization=o||"",n});const a=new ie({basePath:e});return{models:new X(a,e,t),publisher:new se(a,e,t),environments:new _(a,e,t),packages:new te(a,e,t),pages:new re(a,e,t),notebooks:new ee(a,e,t),connections:new H(a,e,t),databases:new G(a,e,t),materializations:new J(a,e,t),watchMode:new le(a,e,t)}},De=({children:l,getAccessToken:r,baseURL:e,mutable:t})=>{const a=U.useMemo(()=>He(e,r),[e,r]),n=e||`${window.location.protocol}//${window.location.host}/api/v0`,[o,s]=U.useState(t),[c,i]=U.useState(!0);U.useEffect(()=>{let m=!0;return(async()=>{try{const C=await a.publisher.getStatus();if(m){const k=C.data?.frozenConfig;let R;k?R=!1:t===void 0?R=!0:R=t,s(R),i(!1)}}catch(C){console.error("Failed to fetch publisher status:",C),m&&(s(t),i(!1))}})(),()=>{m=!1}},[a,t]);const p={server:n,getAccessToken:r,apiClients:a,mutable:o,isLoadingStatus:c};return q.jsx(j.QueryClientProvider,{client:pe,children:q.jsx(de.Provider,{value:p,children:l})})},We=()=>{const l=U.useContext(de);if(l===void 0)throw new Error("useServer must be used within a ServerProvider");return l};exports.AttachedDatabaseTypeEnum=he;exports.AzureConnectionAuthTypeEnum=ue;exports.CompileProblemSeverityEnum=Pe;exports.CompileResultStatusEnum=Ve;exports.Configuration=ie;exports.ConnectionStatusStatusEnum=ve;exports.ConnectionTypeEnum=ge;exports.ConnectionsApi=H;exports.ConnectionsApiAxiosParamCreator=L;exports.ConnectionsApiFactory=Re;exports.ConnectionsApiFp=S;exports.ConnectionsTestApi=Te;exports.ConnectionsTestApiAxiosParamCreator=D;exports.ConnectionsTestApiFactory=Ue;exports.ConnectionsTestApiFp=Q;exports.DatabaseTypeEnum=be;exports.DatabasesApi=G;exports.DatabasesApiAxiosParamCreator=W;exports.DatabasesApiFactory=Ee;exports.DatabasesApiFp=$;exports.EnvironmentsApi=_;exports.EnvironmentsApiAxiosParamCreator=f;exports.EnvironmentsApiFactory=Me;exports.EnvironmentsApiFp=I;exports.ExecuteNotebookCellBypassFiltersEnum=Be;exports.FilterTypeEnum=Oe;exports.LogMessageSeverityEnum=Se;exports.MaterializationActionActionEnum=Fe;exports.MaterializationStatus=ye;exports.MaterializationsApi=J;exports.MaterializationsApiAxiosParamCreator=Y;exports.MaterializationsApiFactory=we;exports.MaterializationsApiFp=x;exports.ModelsApi=X;exports.ModelsApiAxiosParamCreator=K;exports.ModelsApiFactory=Qe;exports.ModelsApiFp=T;exports.NotebookCellResultTypeEnum=Ae;exports.NotebookCellTypeEnum=Ce;exports.NotebooksApi=ee;exports.NotebooksApiAxiosParamCreator=Z;exports.NotebooksApiFactory=$e;exports.NotebooksApiFp=M;exports.PackageManifestBindingStatusEnum=Ie;exports.PackageQueryableSourcesEnum=ke;exports.PackagesApi=te;exports.PackagesApiAxiosParamCreator=ae;exports.PackagesApiFactory=ze;exports.PackagesApiFp=N;exports.PagesApi=re;exports.PagesApiAxiosParamCreator=ne;exports.PagesApiFactory=qe;exports.PagesApiFp=B;exports.PublisherApi=se;exports.PublisherApiAxiosParamCreator=oe;exports.PublisherApiFactory=je;exports.PublisherApiFp=z;exports.Realization=xe;exports.ServerProvider=De;exports.ServerStatusOperationalStateEnum=Ne;exports.WatchModeApi=le;exports.WatchModeApiAxiosParamCreator=ce;exports.WatchModeApiFactory=Le;exports.WatchModeApiFp=E;exports.globalQueryClient=pe;exports.useServer=We;
@@ -206,7 +206,7 @@ export interface BuildInstruction {
206
206
  */
207
207
  'sourceID'?: string;
208
208
  /**
209
- * CP-assigned surrogate id for the materialized table about to be produced.
209
+ * Caller-assigned surrogate id for the materialized table about to be produced.
210
210
  * @type {string}
211
211
  * @memberof BuildInstruction
212
212
  */
@@ -225,7 +225,7 @@ export interface BuildInstruction {
225
225
  'realization': Realization;
226
226
  }
227
227
  /**
228
- * Round 2 input. Per-source instructions assigned by the control plane.
228
+ * Build input. Per-source instructions assigned by the caller.
229
229
  * @export
230
230
  * @interface BuildInstructions
231
231
  */
@@ -238,7 +238,7 @@ export interface BuildInstructions {
238
238
  'sources': Array<BuildInstruction>;
239
239
  }
240
240
  /**
241
- * Round 2 output. Maps each buildId a build produced to its physical table. Returned inline; the control plane persists it.
241
+ * Build output. Maps each buildId a build produced to its physical table. Returned inline; the caller persists it.
242
242
  * @export
243
243
  * @interface BuildManifest
244
244
  */
@@ -284,7 +284,7 @@ export interface BuildNode {
284
284
  'dependsOn'?: Array<string>;
285
285
  }
286
286
  /**
287
- * Round 1 output. Mirrors Malloy\'s native build plan plus the minimal per-source detail the control plane needs in v0 to assign identity/naming/realization. Lineage, policy, and connection capability are intentionally omitted until they carry real data.
287
+ * The package\'s persist build plan. Mirrors Malloy\'s native build plan plus the minimal per-source detail a caller needs to assign identity/naming/realization. Lineage, policy, and connection capability are intentionally omitted until they carry real data.
288
288
  * @export
289
289
  * @interface BuildPlan
290
290
  */
@@ -581,6 +581,12 @@ export interface Connection {
581
581
  * @memberof Connection
582
582
  */
583
583
  'ducklakeConnection'?: DucklakeConnection;
584
+ /**
585
+ *
586
+ * @type {PublisherConnection}
587
+ * @memberof Connection
588
+ */
589
+ 'publisherConnection'?: PublisherConnection;
584
590
  }
585
591
  export declare const ConnectionTypeEnum: {
586
592
  readonly Postgres: "postgres";
@@ -592,6 +598,7 @@ export declare const ConnectionTypeEnum: {
592
598
  readonly Duckdb: "duckdb";
593
599
  readonly Motherduck: "motherduck";
594
600
  readonly Ducklake: "ducklake";
601
+ readonly Publisher: "publisher";
595
602
  };
596
603
  export type ConnectionTypeEnum = typeof ConnectionTypeEnum[keyof typeof ConnectionTypeEnum];
597
604
  /**
@@ -676,17 +683,17 @@ export interface CreateConnection409Response {
676
683
  'error'?: string;
677
684
  }
678
685
  /**
679
- * Options for starting a materialization. Auto-run by default; opt into the two-round control-plane-driven flow with pauseBetweenPhases.
686
+ * Options for starting a materialization. Two modes — (1) auto-run (default), omit `buildInstructions` and the publisher self-assigns names and runs all phases in one pass; (2) orchestrated build, supply `buildInstructions` and the publisher builds directly into the caller-assigned names from the package\'s already-compiled build plan (read off `Package.buildPlan`).
680
687
  * @export
681
688
  * @interface CreateMaterializationRequest
682
689
  */
683
690
  export interface CreateMaterializationRequest {
684
691
  /**
685
- * When false (default) the publisher runs all phases in one pass — self-assigns table names (the \"#@ persist name=\" value, else the source name), builds with realization=COPY, assembles the manifest, and auto-loads it into the package models. When true it pauses at BUILD_PLAN_READY for the control plane to send Round 2 build instructions.
686
- * @type {boolean}
692
+ *
693
+ * @type {BuildInstructions}
687
694
  * @memberof CreateMaterializationRequest
688
695
  */
689
- 'pauseBetweenPhases'?: boolean;
696
+ 'buildInstructions'?: BuildInstructions | null;
690
697
  /**
691
698
  * Build a new table even when a source\'s buildId is unchanged.
692
699
  * @type {boolean}
@@ -1100,7 +1107,7 @@ export interface ManifestEntry {
1100
1107
  */
1101
1108
  'sourceName'?: string;
1102
1109
  /**
1103
- * Echoes the CP-assigned id from the BuildInstruction.
1110
+ * Echoes the caller-assigned id from the BuildInstruction.
1104
1111
  * @type {string}
1105
1112
  * @memberof ManifestEntry
1106
1113
  */
@@ -1131,7 +1138,7 @@ export interface ManifestEntry {
1131
1138
  'rowCount'?: number | null;
1132
1139
  }
1133
1140
  /**
1134
- * A record of one two-round materialization run for a package.
1141
+ * A record of one materialization run for a package.
1135
1142
  * @export
1136
1143
  * @interface Materialization
1137
1144
  */
@@ -1154,24 +1161,12 @@ export interface Materialization {
1154
1161
  * @memberof Materialization
1155
1162
  */
1156
1163
  'packageName'?: string;
1157
- /**
1158
- * Echoes the create-time flag. False (default) = auto-run all phases; true = pause at BUILD_PLAN_READY for control-plane-driven Round 2.
1159
- * @type {boolean}
1160
- * @memberof Materialization
1161
- */
1162
- 'pauseBetweenPhases'?: boolean;
1163
1164
  /**
1164
1165
  *
1165
1166
  * @type {MaterializationStatus}
1166
1167
  * @memberof Materialization
1167
1168
  */
1168
1169
  'status'?: MaterializationStatus;
1169
- /**
1170
- *
1171
- * @type {BuildPlan}
1172
- * @memberof Materialization
1173
- */
1174
- 'buildPlan'?: BuildPlan | null;
1175
1170
  /**
1176
1171
  *
1177
1172
  * @type {BuildManifest}
@@ -1216,13 +1211,12 @@ export interface Materialization {
1216
1211
  'updatedAt'?: string;
1217
1212
  }
1218
1213
  /**
1219
- * Phase-aware status of a two-round materialization run.
1214
+ * Phase-aware status of a materialization run.
1220
1215
  * @export
1221
1216
  * @enum {string}
1222
1217
  */
1223
1218
  export declare const MaterializationStatus: {
1224
1219
  readonly Pending: "PENDING";
1225
- readonly BuildPlanReady: "BUILD_PLAN_READY";
1226
1220
  readonly ManifestRowsReady: "MANIFEST_ROWS_READY";
1227
1221
  readonly ManifestFileReady: "MANIFEST_FILE_READY";
1228
1222
  readonly Failed: "FAILED";
@@ -1487,13 +1481,13 @@ export interface Package {
1487
1481
  */
1488
1482
  'queryableSources'?: PackageQueryableSourcesEnum;
1489
1483
  /**
1490
- * URI (gs:// or s3://) of the control-plane-computed manifest for this package. On (re)load the worker reads it and binds persist references (buildId -> physicalTableName). Null = serve live.
1484
+ * URI (gs:// or s3://) of the externally-computed manifest for this package. On (re)load the publisher reads it and binds persist references (buildId -> physicalTableName). Null = serve live.
1491
1485
  * @type {string}
1492
1486
  * @memberof Package
1493
1487
  */
1494
1488
  'manifestLocation'?: string | null;
1495
1489
  /**
1496
- * Server-computed, read-only: whether the control-plane build manifest is currently bound to this package\'s served models. `unbound` = no manifest configured, so the package serves live. `bound` = a manifest was fetched and applied, so persist sources route to their materialized physical tables. `live_fallback` = a `manifestLocation` is configured but the fetch/bind failed or timed out, so the package is serving live despite intending to be materialized-routed. Lets the control plane confirm a worker actually bound a distributed manifest rather than inferring it from logs.
1490
+ * Server-computed, read-only: whether the configured build manifest is currently bound to this package\'s served models. `unbound` = no manifest configured, so the package serves live. `bound` = a manifest was fetched and applied, so persist sources route to their materialized physical tables. `live_fallback` = a `manifestLocation` is configured but the fetch/bind failed or timed out, so the package is serving live despite intending to be materialized-routed. Lets the caller confirm the publisher actually bound the configured manifest rather than inferring it from logs.
1497
1491
  * @type {string}
1498
1492
  * @memberof Package
1499
1493
  */
@@ -1510,6 +1504,12 @@ export interface Package {
1510
1504
  * @memberof Package
1511
1505
  */
1512
1506
  'boundManifestUri'?: string | null;
1507
+ /**
1508
+ *
1509
+ * @type {BuildPlan}
1510
+ * @memberof Package
1511
+ */
1512
+ 'buildPlan'?: BuildPlan | null;
1513
1513
  }
1514
1514
  export declare const PackageQueryableSourcesEnum: {
1515
1515
  readonly Declared: "declared";
@@ -1677,6 +1677,25 @@ export interface PostgresConnection {
1677
1677
  */
1678
1678
  'connectionString'?: string;
1679
1679
  }
1680
+ /**
1681
+ * Malloy Publisher proxy connection. Proxies SQL to a remote Publisher dataplane instead of connecting to a warehouse directly. The remote dataplane owns authentication, access control, and read-only enforcement.
1682
+ * @export
1683
+ * @interface PublisherConnection
1684
+ */
1685
+ export interface PublisherConnection {
1686
+ /**
1687
+ * Full URI of the remote connection, e.g. https://org.data.example.com/api/v0/environments/<env>/connections/<name>
1688
+ * @type {string}
1689
+ * @memberof PublisherConnection
1690
+ */
1691
+ 'connectionUri': string;
1692
+ /**
1693
+ * Bearer token for the remote dataplane (user-scoped, short-lived)
1694
+ * @type {string}
1695
+ * @memberof PublisherConnection
1696
+ */
1697
+ 'accessToken'?: string;
1698
+ }
1680
1699
  /**
1681
1700
  * Named model query definition
1682
1701
  * @export
@@ -1959,7 +1978,7 @@ export interface ServerStatus {
1959
1978
  */
1960
1979
  'initialized'?: boolean;
1961
1980
  /**
1962
- * Status of the server; initializing when the server is loading environments, packages and connections, serving when the server is initialized and ready to serve requests, draining when the server is going to shut down, and throttled when the server has hit its memory back-pressure limit and is rejecting new package loads and queries to stay under PUBLISHER_MAX_MEMORY_BYTES (see the memory governor). Already-loaded packages remain serviceable while throttled; the control plane treats a throttled worker as unhealthy for new load. Only reported when the memory governor is enabled.
1981
+ * Status of the server; initializing when the server is loading environments, packages and connections, serving when the server is initialized and ready to serve requests, draining when the server is going to shut down, and throttled when the server has hit its memory back-pressure limit and is rejecting new package loads and queries to stay under PUBLISHER_MAX_MEMORY_BYTES (see the memory governor). Already-loaded packages remain serviceable while throttled; callers can treat a throttled server as unhealthy for new load. Only reported when the memory governor is enabled.
1963
1982
  * @type {string}
1964
1983
  * @memberof ServerStatus
1965
1984
  */
@@ -3409,8 +3428,8 @@ export declare class EnvironmentsApi extends BaseAPI {
3409
3428
  */
3410
3429
  export declare const MaterializationsApiAxiosParamCreator: (configuration?: Configuration) => {
3411
3430
  /**
3412
- * Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
3413
- * @summary Create a materialization (Round 1)
3431
+ * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
3432
+ * @summary Create a materialization
3414
3433
  * @param {string} environmentName Name of the environment
3415
3434
  * @param {string} packageName Name of the package
3416
3435
  * @param {CreateMaterializationRequest} [createMaterializationRequest]
@@ -3419,12 +3438,12 @@ export declare const MaterializationsApiAxiosParamCreator: (configuration?: Conf
3419
3438
  */
3420
3439
  createMaterialization: (environmentName: string, packageName: string, createMaterializationRequest?: CreateMaterializationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3421
3440
  /**
3422
- * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
3441
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
3423
3442
  * @summary Delete a materialization
3424
3443
  * @param {string} environmentName Name of the environment
3425
3444
  * @param {string} packageName Name of the package
3426
3445
  * @param {string} materializationId ID of the materialization
3427
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
3446
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
3428
3447
  * @param {*} [options] Override http request option.
3429
3448
  * @throws {RequiredError}
3430
3449
  */
@@ -3451,17 +3470,16 @@ export declare const MaterializationsApiAxiosParamCreator: (configuration?: Conf
3451
3470
  */
3452
3471
  listMaterializations: (environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3453
3472
  /**
3454
- * Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
3473
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
3455
3474
  * @summary Perform an action on a materialization
3456
3475
  * @param {string} environmentName Name of the environment
3457
3476
  * @param {string} packageName Name of the package
3458
3477
  * @param {string} materializationId ID of the materialization
3459
3478
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
3460
- * @param {BuildInstructions} [buildInstructions]
3461
3479
  * @param {*} [options] Override http request option.
3462
3480
  * @throws {RequiredError}
3463
3481
  */
3464
- materializationAction: (environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, buildInstructions?: BuildInstructions, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3482
+ materializationAction: (environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3465
3483
  };
3466
3484
  /**
3467
3485
  * MaterializationsApi - functional programming interface
@@ -3469,8 +3487,8 @@ export declare const MaterializationsApiAxiosParamCreator: (configuration?: Conf
3469
3487
  */
3470
3488
  export declare const MaterializationsApiFp: (configuration?: Configuration) => {
3471
3489
  /**
3472
- * Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
3473
- * @summary Create a materialization (Round 1)
3490
+ * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
3491
+ * @summary Create a materialization
3474
3492
  * @param {string} environmentName Name of the environment
3475
3493
  * @param {string} packageName Name of the package
3476
3494
  * @param {CreateMaterializationRequest} [createMaterializationRequest]
@@ -3479,12 +3497,12 @@ export declare const MaterializationsApiFp: (configuration?: Configuration) => {
3479
3497
  */
3480
3498
  createMaterialization(environmentName: string, packageName: string, createMaterializationRequest?: CreateMaterializationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
3481
3499
  /**
3482
- * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
3500
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
3483
3501
  * @summary Delete a materialization
3484
3502
  * @param {string} environmentName Name of the environment
3485
3503
  * @param {string} packageName Name of the package
3486
3504
  * @param {string} materializationId ID of the materialization
3487
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
3505
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
3488
3506
  * @param {*} [options] Override http request option.
3489
3507
  * @throws {RequiredError}
3490
3508
  */
@@ -3511,17 +3529,16 @@ export declare const MaterializationsApiFp: (configuration?: Configuration) => {
3511
3529
  */
3512
3530
  listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Materialization>>>;
3513
3531
  /**
3514
- * Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
3532
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
3515
3533
  * @summary Perform an action on a materialization
3516
3534
  * @param {string} environmentName Name of the environment
3517
3535
  * @param {string} packageName Name of the package
3518
3536
  * @param {string} materializationId ID of the materialization
3519
3537
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
3520
- * @param {BuildInstructions} [buildInstructions]
3521
3538
  * @param {*} [options] Override http request option.
3522
3539
  * @throws {RequiredError}
3523
3540
  */
3524
- materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, buildInstructions?: BuildInstructions, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
3541
+ materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
3525
3542
  };
3526
3543
  /**
3527
3544
  * MaterializationsApi - factory interface
@@ -3529,8 +3546,8 @@ export declare const MaterializationsApiFp: (configuration?: Configuration) => {
3529
3546
  */
3530
3547
  export declare const MaterializationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3531
3548
  /**
3532
- * Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
3533
- * @summary Create a materialization (Round 1)
3549
+ * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
3550
+ * @summary Create a materialization
3534
3551
  * @param {string} environmentName Name of the environment
3535
3552
  * @param {string} packageName Name of the package
3536
3553
  * @param {CreateMaterializationRequest} [createMaterializationRequest]
@@ -3539,12 +3556,12 @@ export declare const MaterializationsApiFactory: (configuration?: Configuration,
3539
3556
  */
3540
3557
  createMaterialization(environmentName: string, packageName: string, createMaterializationRequest?: CreateMaterializationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
3541
3558
  /**
3542
- * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
3559
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
3543
3560
  * @summary Delete a materialization
3544
3561
  * @param {string} environmentName Name of the environment
3545
3562
  * @param {string} packageName Name of the package
3546
3563
  * @param {string} materializationId ID of the materialization
3547
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
3564
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
3548
3565
  * @param {*} [options] Override http request option.
3549
3566
  * @throws {RequiredError}
3550
3567
  */
@@ -3571,17 +3588,16 @@ export declare const MaterializationsApiFactory: (configuration?: Configuration,
3571
3588
  */
3572
3589
  listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Materialization>>;
3573
3590
  /**
3574
- * Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
3591
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
3575
3592
  * @summary Perform an action on a materialization
3576
3593
  * @param {string} environmentName Name of the environment
3577
3594
  * @param {string} packageName Name of the package
3578
3595
  * @param {string} materializationId ID of the materialization
3579
3596
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
3580
- * @param {BuildInstructions} [buildInstructions]
3581
3597
  * @param {*} [options] Override http request option.
3582
3598
  * @throws {RequiredError}
3583
3599
  */
3584
- materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, buildInstructions?: BuildInstructions, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
3600
+ materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
3585
3601
  };
3586
3602
  /**
3587
3603
  * MaterializationsApi - object-oriented interface
@@ -3591,8 +3607,8 @@ export declare const MaterializationsApiFactory: (configuration?: Configuration,
3591
3607
  */
3592
3608
  export declare class MaterializationsApi extends BaseAPI {
3593
3609
  /**
3594
- * Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
3595
- * @summary Create a materialization (Round 1)
3610
+ * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
3611
+ * @summary Create a materialization
3596
3612
  * @param {string} environmentName Name of the environment
3597
3613
  * @param {string} packageName Name of the package
3598
3614
  * @param {CreateMaterializationRequest} [createMaterializationRequest]
@@ -3602,12 +3618,12 @@ export declare class MaterializationsApi extends BaseAPI {
3602
3618
  */
3603
3619
  createMaterialization(environmentName: string, packageName: string, createMaterializationRequest?: CreateMaterializationRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}>>;
3604
3620
  /**
3605
- * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
3621
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
3606
3622
  * @summary Delete a materialization
3607
3623
  * @param {string} environmentName Name of the environment
3608
3624
  * @param {string} packageName Name of the package
3609
3625
  * @param {string} materializationId ID of the materialization
3610
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
3626
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
3611
3627
  * @param {*} [options] Override http request option.
3612
3628
  * @throws {RequiredError}
3613
3629
  * @memberof MaterializationsApi
@@ -3637,24 +3653,22 @@ export declare class MaterializationsApi extends BaseAPI {
3637
3653
  */
3638
3654
  listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization[], any, {}>>;
3639
3655
  /**
3640
- * Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
3656
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
3641
3657
  * @summary Perform an action on a materialization
3642
3658
  * @param {string} environmentName Name of the environment
3643
3659
  * @param {string} packageName Name of the package
3644
3660
  * @param {string} materializationId ID of the materialization
3645
3661
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
3646
- * @param {BuildInstructions} [buildInstructions]
3647
3662
  * @param {*} [options] Override http request option.
3648
3663
  * @throws {RequiredError}
3649
3664
  * @memberof MaterializationsApi
3650
3665
  */
3651
- materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, buildInstructions?: BuildInstructions, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}>>;
3666
+ materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}>>;
3652
3667
  }
3653
3668
  /**
3654
3669
  * @export
3655
3670
  */
3656
3671
  export declare const MaterializationActionActionEnum: {
3657
- readonly Build: "build";
3658
3672
  readonly Stop: "stop";
3659
3673
  };
3660
3674
  export type MaterializationActionActionEnum = typeof MaterializationActionActionEnum[keyof typeof MaterializationActionActionEnum];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-UAgM1ojG.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;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.LogMessageSeverityEnum=e.LogMessageSeverityEnum;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.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PagesApi=e.PagesApi;exports.PagesApiAxiosParamCreator=e.PagesApiAxiosParamCreator;exports.PagesApiFactory=e.PagesApiFactory;exports.PagesApiFp=e.PagesApiFp;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.Realization=e.Realization;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-DLfoKLcf.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;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.LogMessageSeverityEnum=e.LogMessageSeverityEnum;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.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PagesApi=e.PagesApi;exports.PagesApiAxiosParamCreator=e.PagesApiAxiosParamCreator;exports.PagesApiFactory=e.PagesApiFactory;exports.PagesApiFp=e.PagesApiFp;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.Realization=e.Realization;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
@@ -1,4 +1,4 @@
1
- import { A as e, a as i, C as o, b as t, ab as r, d as n, c as p, l as A, i as c, k as u, j as m, p as l, m as C, o as P, n as F, D as y, t as b, q as E, s as M, r as g, x as k, E as x, w as S, v as d, W as T, F as h, L as v, H as z, M as N, G as D, y as W, B as f, z as R, O as B, I as Q, K as L, J as O, e as j, N as q, V as w, Q as G, U as H, T as I, f as J, P as K, _ as U, X as V, Z as X, Y, a2 as Z, $ as _, a1 as $, a0 as aa, a6 as sa, a3 as ea, a5 as ia, a4 as oa, R as ta, S as ra, h as na, aa as pa, a7 as Aa, a9 as ca, a8 as ua, g as ma, u as la } from "../ServerProvider-jpXNccQX.es.js";
1
+ import { A as e, a as i, C as o, b as t, ab as r, d as n, c as p, l as A, i as c, k as u, j as m, p as l, m as C, o as P, n as F, D as y, t as b, q as E, s as M, r as g, x as k, E as x, w as S, v as d, W as T, F as h, L as v, H as z, M as N, G as D, y as W, B as f, z as R, O as B, I as Q, K as L, J as O, e as j, N as q, V as w, Q as G, U as H, T as I, f as J, P as K, _ as U, X as V, Z as X, Y, a2 as Z, $ as _, a1 as $, a0 as aa, a6 as sa, a3 as ea, a5 as ia, a4 as oa, R as ta, S as ra, h as na, aa as pa, a7 as Aa, a9 as ca, a8 as ua, g as ma, u as la } from "../ServerProvider-B76JLUMa.es.js";
2
2
  export {
3
3
  e as AttachedDatabaseTypeEnum,
4
4
  i as AzureConnectionAuthTypeEnum,
@@ -1,5 +1,5 @@
1
1
  import { HTMLInputTypeAttribute } from 'react';
2
- import { AzureConnection, BigqueryConnection, ConnectionTypeEnum, DatabricksConnection, DucklakeConnection, GCSConnection, MotherDuckConnection, MysqlConnection, PostgresConnection, S3Connection, SnowflakeConnection, TrinoConnection } from '../../client/api';
2
+ import { ConnectionTypeEnum, AzureConnection, BigqueryConnection, DatabricksConnection, DucklakeConnection, GCSConnection, MotherDuckConnection, MysqlConnection, PostgresConnection, S3Connection, SnowflakeConnection, TrinoConnection } from '../../client/api';
3
3
  type ConnectionField = {
4
4
  label: string;
5
5
  name: keyof (PostgresConnection & BigqueryConnection & SnowflakeConnection & TrinoConnection & DatabricksConnection & MysqlConnection & MotherDuckConnection & S3Connection & GCSConnection & AzureConnection & DucklakeConnection);
@@ -16,6 +16,12 @@ type ConnectionField = {
16
16
  };
17
17
  export declare const connectionFieldsByType: Record<ConnectionTypeEnum, Array<ConnectionField>>;
18
18
  export declare const attributesFieldName: Record<ConnectionTypeEnum, string>;
19
+ /**
20
+ * Connection types the Add/Edit dialogs offer as creatable. `publisher` proxy
21
+ * connections are configured in publisher.config.json rather than through the
22
+ * UI, so they are a valid ConnectionTypeEnum but not a form choice.
23
+ */
24
+ export declare const uiCreatableConnectionTypes: ("bigquery" | "snowflake" | "postgres" | "trino" | "databricks" | "mysql" | "duckdb" | "motherduck" | "ducklake")[];
19
25
  export declare const attachedDatabaseConnectionFieldName: Record<string, string>;
20
26
  export declare const s3AttachedDatabaseFields: Array<ConnectionField>;
21
27
  export declare const gcsAttachedDatabaseFields: Array<ConnectionField>;
@@ -1,7 +1,8 @@
1
- import { Materialization } from '../../client';
1
+ import { BuildPlan, Materialization } from '../../client';
2
2
  type MaterializationDetailDialogProps = {
3
3
  materialization: Materialization | null;
4
+ buildPlan: BuildPlan | null;
4
5
  onClose: () => void;
5
6
  };
6
- export default function MaterializationDetailDialog({ materialization, onClose, }: MaterializationDetailDialogProps): import("react/jsx-runtime").JSX.Element;
7
+ export default function MaterializationDetailDialog({ materialization, buildPlan, onClose, }: MaterializationDetailDialogProps): import("react/jsx-runtime").JSX.Element;
7
8
  export {};