@malloy-publisher/sdk 0.17.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RenderedResult-hRvgFMAF.cjs.js → RenderedResult-DAPv24rW.cjs.js} +1 -1
- package/dist/{RenderedResult-CYJ2Y9Fm.es.js → RenderedResult-QdYnecnr.es.js} +2 -2
- package/dist/ServerProvider-BPCJnHae.cjs.js +1 -0
- package/dist/{ServerProvider-DzzfVDg_.es.js → ServerProvider-DAVb5QK1.es.js} +22 -21
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +223 -38
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -5
- package/dist/{useCompiledDocument-BCr-xB_i.cjs.js → useCompiledDocument-5KuF7E_O.cjs.js} +2 -2
- package/dist/{useCompiledDocument-E0tU5KzP.es.js → useCompiledDocument-BbdwlcRj.es.js} +2 -2
- package/package.json +1 -1
- package/dist/ServerProvider-DeVejmVr.cjs.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const $=require("react/jsx-runtime"),de=require("@mui/material"),w=require("react"),u=require("./useCompiledDocument-
|
|
1
|
+
"use strict";const $=require("react/jsx-runtime"),de=require("@mui/material"),w=require("react"),u=require("./useCompiledDocument-5KuF7E_O.cjs.js"),G=require("./ServerProvider-BPCJnHae.cjs.js"),v=u.reportClasses.drillCell;function me(e,t){const r=new Set;let a;try{a=e.getMetadata()?.getAllFields()??[]}catch{return r}const o=new Set;for(const n of a)!n||t(n)||n.tag?.tag("hidden")===void 0&&o.add(n.tag?.text("label")??n.name);for(const n of a){if(!n||!t(n))continue;const l=n.tag?.text("label")??n.name;o.has(l)||r.add(l)}return r}function j(e){const t=/^\s*(\d+)/.exec(e.style?.gridColumn??"");return t?t[1]:void 0}function be(e,t){if(t.size!==0)for(const r of e.querySelectorAll(".malloy-table")){const a=l=>l.closest(".malloy-table")===r,o=new Set;for(const l of r.querySelectorAll(".column-cell.th")){if(!a(l))continue;const i=(l.textContent??"").replace(/\u200b/g,"").trim(),m=j(l);m&&t.has(i)&&o.add(m)}if(o.size===0)continue;const n=new Set;for(const l of r.querySelectorAll(`.${v}[tabindex="0"]`)){if(!a(l))continue;const i=j(l);i&&(n.has(i)?l.tabIndex=-1:n.add(i))}for(const l of r.querySelectorAll(".column-cell.td")){if(!a(l))continue;const i=j(l),m=!l.querySelector(".value-null")&&(l.textContent??"").trim()!=="";if(i&&m&&o.has(i)&&!l.querySelector(".malloy-table")){if(l.classList.add(v),l.tabIndex===0)n.add(i);else{const p=n.has(i);p||n.add(i),l.tabIndex=p?-1:0}l.setAttribute("role","button")}}}}function Ce(e){const t=e.closest(".malloy-table"),r=j(e);return!t||!r?[]:Array.from(t.querySelectorAll(`.${v}`)).filter(a=>a.closest(".malloy-table")===t&&j(a)===r)}function ce(e,t){const r=Ce(e),a=r.indexOf(e);if(a===-1)return;const o=t==="first"?r[0]:t==="last"?r[r.length-1]:r[Math.min(Math.max(a+t,0),r.length-1)];if(o){for(const n of r)n.tabIndex=n===o?0:-1;return o}}function fe(e){return{background:e.dashboardRoot,tableBackground:e.tableBackground,tableHeaderColor:e.tableHeader,tableBodyColor:e.tableBody,tableBorder:e.border,tablePinnedBackground:e.tableHeaderBackground,tablePinnedBorder:e.pinnedBorder,tableFontSize:`${e.font.size}px`,fontFamily:e.font.family,mapColor:e.mapColor}}function ye(e){const{foreground:t,axisFaint:r,gridline:a,font:o}=e,n={background:e.background,font:o.family,title:{color:t,font:o.family},axis:{labelColor:t,titleColor:t,domainColor:r,tickColor:r,gridColor:a,labelFont:o.family,titleFont:o.family},legend:{labelColor:t,titleColor:t,labelFont:o.family,titleFont:o.family},header:{labelColor:t,titleColor:t},range:{category:e.series}},l={...n,legend:{...n.legend,orient:"bottom"}};return i=>i==="shape_map"?l:n}function pe(e){if(!e)return;const t=e.tag("theme");if(!t)return;const r={},a=t.tag("palette");if(a){const n={},l=a.textArray("series");l&&l.length>0&&(n.series=l);for(const i of G.PER_MODE_COLOR_KEYS){const m=a.tag(i);if(!m)continue;const p={},C=m.text("light"),x=m.text("dark");C&&(p.light=C),x&&(p.dark=x),Object.keys(p).length>0&&(n[i]=p)}Object.keys(n).length>0&&(r.palette=n)}const o=t.tag("font");if(o){const n={},l=o.text("family");l&&(n.family=l);const i=o.numeric("size");typeof i=="number"&&Number.isFinite(i)&&(n.size=i),Object.keys(n).length>0&&(r.font=n)}return Object.keys(r).length>0?r:void 0}const ee=e=>(e??[]).map(t=>t?.value).filter(t=>typeof t=="string");function Re(e){const t=e.replace(/[-_]+/g," ").replace(/\s+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}const Te=e=>ee(e.annotations).some(t=>{const r=t.trim();return/^#[^("]/.test(r)&&/(?:^#|[\s{])label\s*=/.test(r)}),Ae=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,Ee=e=>e.type?.element_type?.fields??e.type?.fields;function ge(e,t){let r=!1;return{fields:e.map(o=>{const n=Ee(o);if(n){const i=ge(n,u.requestsRowChart(ee(o.annotations)));if(!i.changed)return o;r=!0;const m=o.type?.element_type?{...o.type,element_type:{...o.type.element_type,fields:i.fields}}:{...o.type,fields:i.fields};return{...o,type:m}}if(!t||!o.name||Te(o))return o;const l=Re(o.name);return l===o.name?o:(r=!0,{...o,annotations:[{value:`# label=${Ae(l)}
|
|
2
2
|
`},...o.annotations??[]]})}),changed:r}}function Se(e){if(!e||typeof e!="object")return e;const t=e,r=t.schema?.fields;if(!Array.isArray(r))return e;const{fields:a,changed:o}=ge(r,u.requestsRowChart(ee(t.annotations)));return o?{...t,schema:{...t.schema,fields:a}}:e}const ue=320,_e=10,De=96,Oe=4e3;function Fe(e,t){if(e!=="bar"&&e!=="combo"&&e!=="line"&&e!=="chart"&&e!=="scatter_chart")return;if(e!=="bar"&&e!=="combo")return ue;const r=t?.data?.array_value?.length,a=r===void 0?0:r*_e+De;return Math.min(Math.max(ue,a),Oe)}function Le(e){let t;return{onClick:r=>{const a={...r,...ze(r)};t=a,queueMicrotask(()=>{t===a&&(t=void 0),e(a)})},onDrill:r=>{const a=t;t=void 0,a&&r.stableDrillClauses!==void 0&&(a.drillClauses=r.stableDrillClauses)}}}function ze(e){const t=e.field;try{const r=t?.getEffectiveQueryTimezone?.();return r?{timezone:r}:{}}catch{return{}}}function Ie(e){const t=r=>{let a=!1;try{a=r.isArray?.()===!0}catch{a=!1}a&&"stableDrillFilters"in r&&Object.defineProperty(r,"stableDrillFilters",{configurable:!0,get:()=>[]});for(const o of r.fields??[])t(o)};e&&t(e)}const B="data-publisher-fill";let X;function ve(){if(X===void 0)try{X=new Function("return true")()===!0}catch{X=!1}return X}const Me=async(e,t,r)=>{if(typeof window>"u")throw new Error("MalloyRenderer can only be used in browser environment");const{MalloyRenderer:a}=await u.loadMalloyRenderer();return new a({onClick:t,...r?{onDrill:r,tableConfig:{enableDrill:!0}}:{},vegaConfigOverride:ye(e),...ve()?{}:{useVegaInterpreter:!0},theme:fe(e),onError:n=>{console.error("Error rendering visualization:",typeof n,n)}}).createViz()};async function $e(e){if(!e||typeof e!="object")return;const t=e,r=[...Array.isArray(t.model_annotations)?t.model_annotations:[],...Array.isArray(t.source_annotations)?t.source_annotations:[],...Array.isArray(t.annotations)?t.annotations:[]].map(o=>typeof o?.value=="string"?o.value:void 0).filter(o=>!!o);if(r.length===0)return;let a;try{({parseAnnotation:a}=await u.loadMalloyTag())}catch{return}try{const{tag:o}=a(r);return pe(o)}catch(o){console.warn("Failed to parse # theme.* annotations; chart will render with the shell theme.",{error:o,lines:r});return}}function Be(e,t,r){const a=u.buildTableCssVars(t,r);for(const[o,n]of Object.entries(a))e.style.setProperty(o,n)}const je=`
|
|
3
3
|
/* Card geometry, through the renderer's OWN theme vars rather than over the top
|
|
4
4
|
of them. It declares --malloy-theme--dashboard-* on .malloy-render itself and
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import { Box as de } from "@mui/material";
|
|
3
3
|
import { Suspense as we, useRef as M, useMemo as ce, useEffect as ke, useLayoutEffect as xe } from "react";
|
|
4
|
-
import { r as Ce, a as fe, D as Re, b as Z, T as V, l as Ee, c as Ae, d as Te, e as Se, R as _e, m as De, f as Oe, g as ue } from "./useCompiledDocument-
|
|
5
|
-
import { bs as Fe, bq as ze, bt as Le, bu as Me } from "./ServerProvider-
|
|
4
|
+
import { r as Ce, a as fe, D as Re, b as Z, T as V, l as Ee, c as Ae, d as Te, e as Se, R as _e, m as De, f as Oe, g as ue } from "./useCompiledDocument-BbdwlcRj.es.js";
|
|
5
|
+
import { bs as Fe, bq as ze, bt as Le, bu as Me } from "./ServerProvider-DAVb5QK1.es.js";
|
|
6
6
|
const g = Ce.drillCell;
|
|
7
7
|
function Ie(e, t) {
|
|
8
8
|
const r = /* @__PURE__ */ new Set();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const Q=require("react/jsx-runtime"),ae=require("@tanstack/react-query"),h=require("axios"),R=require("react"),T=require("@mui/material"),le="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",U={radius:{control:"6px",tile:"8px",menu:"10px",dialog:"12px"},size:{control:32,chip:24},type:{pageTitle:{fontSize:24,fontWeight:600,letterSpacing:"-0.01em"},tileTitle:{fontSize:14,fontWeight:600,lineHeight:1.4},prose:{fontSize:15,lineHeight:1.6},control:{fontSize:13,fontWeight:500},caption:{fontSize:12,lineHeight:1.4},label:{fontSize:12,fontWeight:600,lineHeight:1.4},code:{fontSize:11.5,fontFamily:le}},font:{mono:le},shadow:{menu:"0 8px 24px rgba(16, 24, 40, 0.12)"}};function pe(c){if(!c)return U;const r={...U.font,...c.font},a={...U.type};a.code={...a.code,fontFamily:r.mono};for(const[n,e]of Object.entries(c.type??{}))a[n]={...a[n],...e};return{radius:{...U.radius,...c.radius},size:{...U.size,...c.size},type:a,font:r,shadow:{...U.shadow,...c.shadow}}}const C={blue:"#2563eb",indigo:"#4f46e5",violet:"#7c3aed",pink:"#be185d",red:"#dc2626",orange:"#c2410c",amber:"#b45309",lime:"#4d7c0f",emerald:"#059669",teal:"#0f766e",cyan:"#0e7490",slate:"#475569"},Xe={environment:C.emerald,package:C.teal,connection:C.orange},ea='"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace',aa=T.styled(T.Card)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),ta=T.styled(T.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),na=T.styled(T.CardMedia)({padding:"0"}),ra=T.styled("div")({backgroundColor:"transparent",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"none",boxShadow:"none",marginBottom:"0"}),oa=T.styled("div")({height:"100%"}),sa=T.styled("div")({height:"75vh",width:"100%",overflowY:"auto"}),ia={light:{accent:C.blue,accentHover:"#1d4ed8",accentContrast:"#ffffff"},dark:{accent:"#60a5fa",accentHover:"#93c5fd",accentContrast:"#0f172a"}},ca={light:"#ffffff",dark:"#0f172a"},la=3,F=c=>{const r=/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(c.trim());if(!r)return;const a=r[1].length===3?[...r[1]].map(n=>n+n).join(""):r[1];return[0,2,4].map(n=>parseInt(a.slice(n,n+2),16))},de=c=>`#${c.map(r=>Math.round(r).toString(16).padStart(2,"0")).join("")}`,$=(c,r,a)=>de(c.map(n=>n+(r-n)*a)),Y=c=>{const[r,a,n]=c.map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*r+.7152*a+.0722*n},q=(c,r)=>{const[a,n]=[Y(c),Y(r)].sort((e,t)=>t-e);return(a+.05)/(n+.05)};function pa(c,r){const a=F(c),n=F(r);return a&&n?q(a,n):void 0}const da=[15,23,42];function J(c,r,a=la){const n=F(c),e=F(r);if(!n||!e||q(n,e)>=a)return c;const t=Y(e)<.5?255:0;for(let s=.05;s<1;s+=.05){const o=F($(n,t,s));if(o&&q(o,e)>=a)return de(o)}return t===255?"#ffffff":"#000000"}function Z(c,r,a=ca[r]){const n=ia[r];if(!c||c.toLowerCase()===C.blue)return n;if(!F(c))return r==="light"?{...n,accent:c,accentHover:c}:n;const e=J(c,a),t=F(e),s=r==="dark"?$(t,255,.25):$(t,0,.2),o=q(t,[255,255,255]),i=q(t,da);return{accent:e,accentHover:s,accentContrast:o>=i?"#ffffff":"#0f172a"}}const ma=[C.blue,C.orange,C.emerald,C.pink,C.violet,C.amber,C.cyan,C.lime],ua="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",H={defaultMode:"light",allowUserToggle:!0,palette:{series:ma,background:{light:"#ffffff",dark:"#0f172a"},tableHeader:{light:"#475569",dark:"#cbd5e1"},tableHeaderBackground:{light:"#f8fafc",dark:"#1e293b"},tableBody:{light:"#475569",dark:"#e2e8f0"},tile:{light:"#ffffff",dark:"#0f172a"},tileTitle:{light:"#475569",dark:"#94a3b8"},mapColor:{light:C.blue,dark:C.blue},border:{light:"#e2e8f0",dark:"#334155"},cardBorder:{light:"#cbd5e1",dark:"#475569"},axis:{light:"#cbd5e1",dark:"#475569"},gridline:{light:"#cbd5e1",dark:"#475569"},chartText:{light:"#0f172a",dark:"#e2e8f0"},value:{light:"#0f172a",dark:"#f1f5f9"}},font:{family:ua,size:12}},me=["background","tableHeader","tableHeaderBackground","tableBody","tile","tileTitle","mapColor","border","cardBorder","axis","gridline","chartText","value"];function te(c,r){const a=H.palette??{},n=H.font??{family:"sans-serif",size:12};let e=[...a.series??[]],t=!1,s=n.family??"sans-serif",o=n.size??12;const i={background:{...a.background??{}},tableHeader:{...a.tableHeader??{}},tableHeaderBackground:{...a.tableHeaderBackground??{}},tableBody:{...a.tableBody??{}},tile:{...a.tile??{}},tileTitle:{...a.tileTitle??{}},mapColor:{...a.mapColor??{}},border:{...a.border??{}},cardBorder:{...a.cardBorder??{}},axis:{...a.axis??{}},gridline:{...a.gridline??{}},chartText:{...a.chartText??{}},value:{...a.value??{}}},l={light:new Set,dark:new Set};for(const k of c)if(k){Array.isArray(k.palette?.series)&&(e=[...k.palette.series],t=!0);for(const x of me){const B=k.palette?.[x];B&&(i[x]={...i[x],...B},B.light!==void 0&&l.light.add(x),B.dark!==void 0&&l.dark.add(x))}typeof k.font?.family=="string"&&(s=k.font.family),typeof k.font?.size=="number"&&(o=k.font.size)}const p=r==="dark",d=k=>i[k][r]??a[k]?.[r],u=d("background"),A=p&&l.light.has("mapColor")&&!l.dark.has("mapColor")?J(i.mapColor.light,u):d("mapColor");return{mode:r,ui:U,series:p&&t?e.map(k=>J(k,u)):e,...Z(e[0],r,u),font:{family:s,size:o},background:u,tableHeader:d("tableHeader"),tableHeaderBackground:d("tableHeaderBackground"),tableBody:d("tableBody"),tile:d("tile"),tileTitle:d("tileTitle"),mapColor:A,tableBackground:u,border:`1px solid ${d("border")}`,cardBorder:`1px solid ${d("cardBorder")}`,pinnedBorder:`1px solid ${d("cardBorder")}`,valueColor:d("value"),foreground:d("chartText"),axisFaint:d("axis"),gridline:d("gridline"),shadow:p?{lift:"0 2px 12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08)",drag:"0 12px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12)"}:{lift:"0 2px 10px rgba(0, 0, 0, 0.10)",drag:"0 12px 32px rgba(0, 0, 0, 0.22)"},dashboardRoot:p?"#0f172a":"#ffffff",drillLink:Z(void 0,r).accent}}function ha(c,r){const a=r.palette?.series;if(!Array.isArray(a)||a.length!==1)return r;const n=a[0],e=c.reduce((l,p)=>Array.isArray(p?.palette?.series)?p.palette.series:l,H.palette?.series??[]),t=l=>l.toLowerCase()===n.toLowerCase(),[s,...o]=e,i=o.length>0?o.map(l=>t(l)?s:l):[s].filter(l=>l!==void 0&&!t(l));return{...r,palette:{...r.palette,series:[n,...i]}}}function ue(c,r,a){const n=r??c??"light";return n==="auto"?a?"dark":"light":n}const he=R.createContext(void 0);function ge({layers:c,mode:r,userChoice:a,setMode:n,allowUserToggle:e=!0,ui:t,children:s}){const o=JSON.stringify(t??null),i=R.useMemo(()=>pe(t),[o]),l=R.useMemo(()=>({...te(c,r),ui:i}),[c,r,i]),p=R.useMemo(()=>({theme:l,layers:c,mode:r,userChoice:a,setMode:n,allowUserToggle:e}),[l,c,r,a,n,e]);return Q.jsx(he.Provider,{value:p,children:s})}function ga(){const c=R.useContext(he);return c||{theme:te([],"light"),layers:[],mode:"light",userChoice:void 0,setMode:()=>{},allowUserToggle:!1}}const g="http://localhost/api/v0".replace(/\/+$/,"");class I{constructor(r,a=g,n=h){this.basePath=a,this.axios=n,r&&(this.configuration=r,this.basePath=r.basePath??a)}configuration}class Pa extends Error{constructor(r,a){super(a),this.field=r,this.name="RequiredError"}}const P={},S="https://example.com",m=function(c,r,a){if(a==null)throw new Pa(r,`Required parameter ${r} was null or undefined when calling ${c}.`)};function X(c,r,a=""){r!=null&&(typeof r=="object"?Array.isArray(r)||r instanceof Set?r.forEach(n=>X(c,n,a)):Object.keys(r).forEach(n=>X(c,r[n],`${a}${a!==""?".":""}${n}`)):c.has(a)?c.append(a,r):c.set(a,r))}const v=function(c,...r){const a=new URLSearchParams(c.search);X(a,r),c.search=a.toString()},Sa=function(c,r){return r instanceof Set?Array.from(r):r},O=function(c,r,a){const n=typeof c!="string";return(n&&a&&a.isJsonMime?a.isJsonMime(r.headers["Content-Type"]):n)?JSON.stringify(c!==void 0?c:{},Sa):c||""},V=function(c){return c.pathname+c.search+c.hash},b=function(c,r,a,n){return(e=r,t=a)=>{const s={...c.options,url:(e.defaults.baseURL?"":n?.basePath??t)+c.url};return e.request(s)}},va={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},Va={ServicePrincipal:"service_principal",SasToken:"sas_token"},ba={Error:"error",Warn:"warn",Debug:"debug"},Aa={Append:"append",File:"file",Package:"package"},ka={Success:"success",Error:"error"},Oa={Grid:"grid",Linear:"linear"},ya={Dashboard:"dashboard",Notebook:"notebook"},Ca={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Databricks:"databricks",Mysql:"mysql",Sqlserver:"sqlserver",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake",Publisher:"publisher"},Ia={Ssh:"ssh"},Ra={Ok:"ok",Failed:"failed"},Ea={Grid:"grid",Linear:"linear"},xa={Dashboard:"dashboard",Notebook:"notebook"},Ta={Query:"query",Text:"text"},Ua={Viewport:"viewport"},Na={Embedded:"embedded",Materialized:"materialized"},fa={Equal:"equal",In:"in",Like:"like",GreaterThan:"greater_than",LessThan:"less_than"},Ma={Live:"live",StaleOk:"stale_ok",Fail:"fail"},wa={Select:"select",Multiselect:"multiselect"},Fa={Merge:"merge",RangeReplace:"range_replace"},Ba={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},ja={Persist:"persist",Materialize:"materialize",View:"view",Query:"query",Rollup:"rollup",Preaggregate:"preaggregate"},Da={Reused:"reused",Recomputed:"recomputed"},La={Live:"live",StaleOk:"stale_ok",Fail:"fail"},_a={Delta:"delta",Full:"full",None:"none"},za={AuthorName:"author_name",DestinationMissing:"destination_missing",MayBeServed:"may_be_served"},Qa={Pending:"PENDING",ManifestRowsReady:"MANIFEST_ROWS_READY",ManifestFileReady:"MANIFEST_FILE_READY",Failed:"FAILED",Cancelled:"CANCELLED"},qa={Compile:"compile",Extraction:"extraction"},Ha={Markdown:"markdown",Code:"code"},Ga={Markdown:"markdown",Query:"query",Definition:"definition"},Wa={Archive:"archive",Unarchive:"unarchive"},Ka={Version:"version",Package:"package"},$a={Declared:"declared",All:"all"},Ya={Unbound:"unbound",Bound:"bound",BindFailed:"bind_failed",LiveFallback:"live_fallback"},Ja={Lexical:"lexical",Indexing:"indexing",Ready:"ready",Error:"error",Cooldown:"cooldown",TooManyEntities:"too-many-entities"},Za={Cooldown:"cooldown",TooManyEntities:"too-many-entities"},Xa={Keyphrase:"keyphrase",SourceSummary:"source_summary"},et={Archive:"archive",Unarchive:"unarchive"},at={Unbound:"unbound",Bound:"bound",BindFailed:"bind_failed",LiveFallback:"live_fallback"},tt={Archive:"archive",Unarchive:"unarchive"},nt={Version:"version",Package:"package"},rt={Declared:"declared",All:"all"},ot={Unbound:"unbound",Bound:"bound",BindFailed:"bind_failed",LiveFallback:"live_fallback"},st={Archive:"archive",Unarchive:"unarchive"},it={Unbound:"unbound",Bound:"bound",BindFailed:"bind_failed",LiveFallback:"live_fallback"},ct={Archive:"archive",Unarchive:"unarchive"},lt={Archive:"archive",Unarchive:"unarchive"},pt={Error:"error",Warn:"warn"},dt={Persist:"persist",Materialize:"materialize",View:"view",Query:"query",Rollup:"rollup",Preaggregate:"preaggregate"},mt={Disable:"disable",NoVerify:"no-verify",VerifyCa:"verify-ca",VerifyFull:"verify-full"},ut={Interactive:"interactive",Materialize:"materialize",Index:"index",Ops:"ops"},ht={Persist:"persist",Materialize:"materialize",View:"view",Query:"query",Rollup:"rollup"},gt={Used:"used",Skipped:"skipped"},Pt={Persist:"persist",Materialize:"materialize",View:"view",Query:"query",Rollup:"rollup"},St={Sibling:"sibling",Below:"below"},vt={Persist:"persist",Materialize:"materialize",View:"view",Query:"query",Rollup:"rollup"},Vt={Database:"database",Storage:"storage"},bt={View:"view",Query:"query",Rollup:"rollup",Materialized:"materialized",Live:"live"},At={Query:"query",ServerDefault:"server_default"},kt={Storage:"storage",Database:"database",LiveFallback:"live_fallback"},Ot={Snapshot:"SNAPSHOT",Copy:"COPY"},yt={Persist:"persist",Materialize:"materialize",View:"view",Query:"query",Rollup:"rollup"},Ct={Storage:"storage",Database:"database",Preaggregate:"preaggregate",Colocated:"colocated"},It={FreeParameter:"free_parameter",Given:"given",GivenInPersistedQuery:"given_in_persisted_query",DynamicProjection:"dynamic_projection",DynamicJoin:"dynamic_join",DynamicJoinedWhere:"dynamic_joined_where",InheritedWhereWithGiven:"inherited_where_with_given",PartitionWithoutStorage:"partition_without_storage",PartitionColumnUnknown:"partition_column_unknown",PartitionColumnNotPublic:"partition_column_not_public",MergeKeyScopeUnresolved:"merge_key_scope_unresolved",PreaggregateOverDynamicSource:"preaggregate_over_dynamic_source",Authorize:"authorize",NotDuckdbPortable:"not_duckdb_portable",PublicSurfaceUnknown:"public_surface_unknown",ReadOnlyDialect:"read_only_dialect",ConnectionCannotHoldTable:"connection_cannot_hold_table",StorageSourceUnsupported:"storage_source_unsupported",EnvReference:"env_reference",RollupNameCollision:"rollup_name_collision",EmptyStorage:"empty_storage",TableNameCollision:"table_name_collision",CurrentTime:"current_time",ReadsGiven:"reads_given",IncrementalUnsupported:"incremental_unsupported",MaterializationOff:"materialization_off",MultiLineAnnotation:"multi_line_annotation",BuildNameCollision:"build_name_collision",RunTargetUnsupported:"run_target_unsupported",NestedResult:"nested_result",InheritedPersist:"inherited_persist",InlineUnsupported:"inline_unsupported",NoStoredColumns:"no_stored_columns",NeedsQualifiedName:"needs_qualified_name",GeneratedBuildFailed:"generated_build_failed",HiddenField:"hidden_field",AccessFilter:"access_filter",TimeZone:"time_zone",UnreadableMeasure:"unreadable_measure",JoinNotInGrain:"join_not_in_grain",PartialNameCollision:"partial_name_collision",GivenWhereOverUnstoredField:"given_where_over_unstored_field",UnreadableGrain:"unreadable_grain",UpstreamUnread:"upstream_unread",UpstreamTableUnusable:"upstream_table_unusable"},Rt={Grid:"grid",Linear:"linear"},Et={Malloynb:"malloynb",Malloy:"malloy"},xt={Grid:"grid",Linear:"linear"},Tt={Query:"query",Text:"text"},Ut={Publish:"publish",OnDemand:"on_demand",Scheduler:"scheduler"},Nt={Config:"config",CredentialChain:"credential_chain"},ft={Initializing:"initializing",Serving:"serving",Draining:"draining",Throttled:"throttled"},Mt={Off:"off",On:"on"},wt={OnPublish:"on-publish",Explicit:"explicit"},Ft={Explorer:"explorer",Viewer:"viewer"},Bt={Bundled:"bundled",Package:"package"},jt={Bundled:"bundled",Package:"package"},Dt={NotBuilt:"NOT_BUILT",NotServed:"NOT_SERVED",OptedOut:"OPTED_OUT",MissingField:"MISSING_FIELD",ShapeMismatch:"SHAPE_MISMATCH",RowLevelGate:"ROW_LEVEL_GATE",GrainTooCoarse:"GRAIN_TOO_COARSE",TimeZone:"TIME_ZONE",CrossConnection:"CROSS_CONNECTION",CountSemantics:"COUNT_SEMANTICS",Stale:"STALE",ReadFailed:"READ_FAILED",Warned:"WARNED",Contract:"CONTRACT",RunFailed:"RUN_FAILED"},Lt={Persist:"persist",Materialize:"materialize",View:"view",Query:"query",Rollup:"rollup",Preaggregate:"preaggregate"},_t={Light:"light",Dark:"dark",Auto:"auto"},zt={NoCatalog:"no_catalog",NotFound:"not_found",Ambiguous:"ambiguous",ReadFailed:"read_failed"},Pe=function(c){return{getAgent:async(r,a,n,e,t,s={})=>{m("getAgent","environmentName",r),m("getAgent","packageName",a),m("getAgent","agentName",n);const o="/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{agentName}",encodeURIComponent(String(n))),i=new URL(o,S);let l;c&&(l=c.baseOptions);const p={method:"GET",...l,...s},d={},u={};e!==void 0&&(u.skills=e),t!==void 0&&(u.versionId=t),d.Accept="application/json",v(i,u);let A=l&&l.headers?l.headers:{};return p.headers={...d,...A,...s.headers},{url:V(i),options:p}},getAgentSkillFile:async(r,a,n,e,t,s={})=>{m("getAgentSkillFile","environmentName",r),m("getAgentSkillFile","packageName",a),m("getAgentSkillFile","agentName",n),m("getAgentSkillFile","relativeFilepath",e);const o="/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{agentName}",encodeURIComponent(String(n))).replace("{relativeFilepath}",encodeURIComponent(String(e))),i=new URL(o,S);let l;c&&(l=c.baseOptions);const p={method:"GET",...l,...s},d={},u={};t!==void 0&&(u.versionId=t),d.Accept="application/json",v(i,u);let A=l&&l.headers?l.headers:{};return p.headers={...d,...A,...s.headers},{url:V(i),options:p}},listAgents:async(r,a,n,e={})=>{m("listAgents","environmentName",r),m("listAgents","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};n!==void 0&&(p.versionId=n),l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}}}},_=function(c){const r=Pe(c);return{async getAgent(a,n,e,t,s,o){const i=await r.getAgent(a,n,e,t,s,o),l=c?.serverIndex??0,p=P["AgentsApi.getAgent"]?.[l]?.url;return(d,u)=>b(i,h,g,c)(d,p||u)},async getAgentSkillFile(a,n,e,t,s,o){const i=await r.getAgentSkillFile(a,n,e,t,s,o),l=c?.serverIndex??0,p=P["AgentsApi.getAgentSkillFile"]?.[l]?.url;return(d,u)=>b(i,h,g,c)(d,p||u)},async listAgents(a,n,e,t){const s=await r.listAgents(a,n,e,t),o=c?.serverIndex??0,i=P["AgentsApi.listAgents"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)}}},Qt=function(c,r,a){const n=_(c);return{getAgent(e,t,s,o,i,l){return n.getAgent(e,t,s,o,i,l).then(p=>p(a,r))},getAgentSkillFile(e,t,s,o,i,l){return n.getAgentSkillFile(e,t,s,o,i,l).then(p=>p(a,r))},listAgents(e,t,s,o){return n.listAgents(e,t,s,o).then(i=>i(a,r))}}};class Se extends I{getAgent(r,a,n,e,t,s){return _(this.configuration).getAgent(r,a,n,e,t,s).then(o=>o(this.axios,this.basePath))}getAgentSkillFile(r,a,n,e,t,s){return _(this.configuration).getAgentSkillFile(r,a,n,e,t,s).then(o=>o(this.axios,this.basePath))}listAgents(r,a,n,e){return _(this.configuration).listAgents(r,a,n,e).then(t=>t(this.axios,this.basePath))}}const qt={Full:"full",Summary:"summary"},ve=function(c){return{createConnection:async(r,a,n,e={})=>{m("createConnection","environmentName",r),m("createConnection","connectionName",a),m("createConnection","connection",n);const t="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"POST",...o,...e},l={},p={};l["Content-Type"]="application/json",l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},i.data=O(n,i,c),{url:V(s),options:i}},deleteConnection:async(r,a,n={})=>{m("deleteConnection","environmentName",r),m("deleteConnection","connectionName",a);const e="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(a))),t=new URL(e,S);let s;c&&(s=c.baseOptions);const o={method:"DELETE",...s,...n},i={},l={};i.Accept="application/json",v(t,l);let p=s&&s.headers?s.headers:{};return o.headers={...i,...p,...n.headers},{url:V(t),options:o}},getConnection:async(r,a,n={})=>{m("getConnection","environmentName",r),m("getConnection","connectionName",a);const e="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(a))),t=new URL(e,S);let s;c&&(s=c.baseOptions);const o={method:"GET",...s,...n},i={},l={};i.Accept="application/json",v(t,l);let p=s&&s.headers?s.headers:{};return o.headers={...i,...p,...n.headers},{url:V(t),options:o}},getTable:async(r,a,n,e,t={})=>{m("getTable","environmentName",r),m("getTable","connectionName",a),m("getTable","schemaName",n),m("getTable","tablePath",e);const s="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(a))).replace("{schemaName}",encodeURIComponent(String(n))).replace("{tablePath}",encodeURIComponent(String(e))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"GET",...i,...t},p={},d={};p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},getTableInPackage:async(r,a,n,e,t,s,o={})=>{m("getTableInPackage","environmentName",r),m("getTableInPackage","packageName",a),m("getTableInPackage","connectionName",n),m("getTableInPackage","schemaName",e),m("getTableInPackage","tablePath",t);const i="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(e))).replace("{tablePath}",encodeURIComponent(String(t))),l=new URL(i,S);let p;c&&(p=c.baseOptions);const d={method:"GET",...p,...o},u={},A={};s!==void 0&&(A.versionId=s),u.Accept="application/json",v(l,A);let k=p&&p.headers?p.headers:{};return d.headers={...u,...k,...o.headers},{url:V(l),options:d}},listConnections:async(r,a={})=>{m("listConnections","environmentName",r);const n="/environments/{environmentName}/connections".replace("{environmentName}",encodeURIComponent(String(r))),e=new URL(n,S);let t;c&&(t=c.baseOptions);const s={method:"GET",...t,...a},o={},i={};o.Accept="application/json",v(e,i);let l=t&&t.headers?t.headers:{};return s.headers={...o,...l,...a.headers},{url:V(e),options:s}},listSchemas:async(r,a,n={})=>{m("listSchemas","environmentName",r),m("listSchemas","connectionName",a);const e="/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(a))),t=new URL(e,S);let s;c&&(s=c.baseOptions);const o={method:"GET",...s,...n},i={},l={};i.Accept="application/json",v(t,l);let p=s&&s.headers?s.headers:{};return o.headers={...i,...p,...n.headers},{url:V(t),options:o}},listSchemasInPackage:async(r,a,n,e,t={})=>{m("listSchemasInPackage","environmentName",r),m("listSchemasInPackage","packageName",a),m("listSchemasInPackage","connectionName",n);const s="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"GET",...i,...t},p={},d={};e!==void 0&&(d.versionId=e),p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},listTables:async(r,a,n,e,t={})=>{m("listTables","environmentName",r),m("listTables","connectionName",a),m("listTables","schemaName",n);const s="/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(a))).replace("{schemaName}",encodeURIComponent(String(n))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"GET",...i,...t},p={},d={};e&&(d.tableNames=e),p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},listTablesInPackage:async(r,a,n,e,t,s,o={})=>{m("listTablesInPackage","environmentName",r),m("listTablesInPackage","packageName",a),m("listTablesInPackage","connectionName",n),m("listTablesInPackage","schemaName",e);const i="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(e))),l=new URL(i,S);let p;c&&(p=c.baseOptions);const d={method:"GET",...p,...o},u={},A={};t&&(A.tableNames=t),s!==void 0&&(A.versionId=s),u.Accept="application/json",v(l,A);let k=p&&p.headers?p.headers:{};return d.headers={...u,...k,...o.headers},{url:V(l),options:d}},postQuerydata:async(r,a,n,e={})=>{m("postQuerydata","environmentName",r),m("postQuerydata","connectionName",a),m("postQuerydata","postQuerydataRequest",n);const t="/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"POST",...o,...e},l={},p={};l["Content-Type"]="application/json",l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},i.data=O(n,i,c),{url:V(s),options:i}},postQuerydataInPackage:async(r,a,n,e,t,s={})=>{m("postQuerydataInPackage","environmentName",r),m("postQuerydataInPackage","packageName",a),m("postQuerydataInPackage","connectionName",n),m("postQuerydataInPackage","postQuerydataRequest",e);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(o,S);let l;c&&(l=c.baseOptions);const p={method:"POST",...l,...s},d={},u={};t!==void 0&&(u.versionId=t),d["Content-Type"]="application/json",d.Accept="application/json",v(i,u);let A=l&&l.headers?l.headers:{};return p.headers={...d,...A,...s.headers},p.data=O(e,p,c),{url:V(i),options:p}},postSqlsource:async(r,a,n,e={})=>{m("postSqlsource","environmentName",r),m("postSqlsource","connectionName",a),m("postSqlsource","postSqlsourceRequest",n);const t="/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"POST",...o,...e},l={},p={};l["Content-Type"]="application/json",l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},i.data=O(n,i,c),{url:V(s),options:i}},postSqlsourceInPackage:async(r,a,n,e,t,s={})=>{m("postSqlsourceInPackage","environmentName",r),m("postSqlsourceInPackage","packageName",a),m("postSqlsourceInPackage","connectionName",n),m("postSqlsourceInPackage","postSqlsourceRequest",e);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(o,S);let l;c&&(l=c.baseOptions);const p={method:"POST",...l,...s},d={},u={};t!==void 0&&(u.versionId=t),d["Content-Type"]="application/json",d.Accept="application/json",v(i,u);let A=l&&l.headers?l.headers:{};return p.headers={...d,...A,...s.headers},p.data=O(e,p,c),{url:V(i),options:p}},postTemporarytable:async(r,a,n,e={})=>{m("postTemporarytable","environmentName",r),m("postTemporarytable","connectionName",a),m("postTemporarytable","postSqlsourceRequest",n);const t="/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"POST",...o,...e},l={},p={};l["Content-Type"]="application/json",l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},i.data=O(n,i,c),{url:V(s),options:i}},postTemporarytableInPackage:async(r,a,n,e,t,s={})=>{m("postTemporarytableInPackage","environmentName",r),m("postTemporarytableInPackage","packageName",a),m("postTemporarytableInPackage","connectionName",n),m("postTemporarytableInPackage","postSqlsourceRequest",e);const o="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(o,S);let l;c&&(l=c.baseOptions);const p={method:"POST",...l,...s},d={},u={};t!==void 0&&(u.versionId=t),d["Content-Type"]="application/json",d.Accept="application/json",v(i,u);let A=l&&l.headers?l.headers:{};return p.headers={...d,...A,...s.headers},p.data=O(e,p,c),{url:V(i),options:p}},updateConnection:async(r,a,n,e={})=>{m("updateConnection","environmentName",r),m("updateConnection","connectionName",a),m("updateConnection","updateConnectionRequest",n);const t="/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{connectionName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"PATCH",...o,...e},l={},p={};l["Content-Type"]="application/json",l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},i.data=O(n,i,c),{url:V(s),options:i}}}},y=function(c){const r=ve(c);return{async createConnection(a,n,e,t){const s=await r.createConnection(a,n,e,t),o=c?.serverIndex??0,i=P["ConnectionsApi.createConnection"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async deleteConnection(a,n,e){const t=await r.deleteConnection(a,n,e),s=c?.serverIndex??0,o=P["ConnectionsApi.deleteConnection"]?.[s]?.url;return(i,l)=>b(t,h,g,c)(i,o||l)},async getConnection(a,n,e){const t=await r.getConnection(a,n,e),s=c?.serverIndex??0,o=P["ConnectionsApi.getConnection"]?.[s]?.url;return(i,l)=>b(t,h,g,c)(i,o||l)},async getTable(a,n,e,t,s){const o=await r.getTable(a,n,e,t,s),i=c?.serverIndex??0,l=P["ConnectionsApi.getTable"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async getTableInPackage(a,n,e,t,s,o,i){const l=await r.getTableInPackage(a,n,e,t,s,o,i),p=c?.serverIndex??0,d=P["ConnectionsApi.getTableInPackage"]?.[p]?.url;return(u,A)=>b(l,h,g,c)(u,d||A)},async listConnections(a,n){const e=await r.listConnections(a,n),t=c?.serverIndex??0,s=P["ConnectionsApi.listConnections"]?.[t]?.url;return(o,i)=>b(e,h,g,c)(o,s||i)},async listSchemas(a,n,e){const t=await r.listSchemas(a,n,e),s=c?.serverIndex??0,o=P["ConnectionsApi.listSchemas"]?.[s]?.url;return(i,l)=>b(t,h,g,c)(i,o||l)},async listSchemasInPackage(a,n,e,t,s){const o=await r.listSchemasInPackage(a,n,e,t,s),i=c?.serverIndex??0,l=P["ConnectionsApi.listSchemasInPackage"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async listTables(a,n,e,t,s){const o=await r.listTables(a,n,e,t,s),i=c?.serverIndex??0,l=P["ConnectionsApi.listTables"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async listTablesInPackage(a,n,e,t,s,o,i){const l=await r.listTablesInPackage(a,n,e,t,s,o,i),p=c?.serverIndex??0,d=P["ConnectionsApi.listTablesInPackage"]?.[p]?.url;return(u,A)=>b(l,h,g,c)(u,d||A)},async postQuerydata(a,n,e,t){const s=await r.postQuerydata(a,n,e,t),o=c?.serverIndex??0,i=P["ConnectionsApi.postQuerydata"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async postQuerydataInPackage(a,n,e,t,s,o){const i=await r.postQuerydataInPackage(a,n,e,t,s,o),l=c?.serverIndex??0,p=P["ConnectionsApi.postQuerydataInPackage"]?.[l]?.url;return(d,u)=>b(i,h,g,c)(d,p||u)},async postSqlsource(a,n,e,t){const s=await r.postSqlsource(a,n,e,t),o=c?.serverIndex??0,i=P["ConnectionsApi.postSqlsource"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async postSqlsourceInPackage(a,n,e,t,s,o){const i=await r.postSqlsourceInPackage(a,n,e,t,s,o),l=c?.serverIndex??0,p=P["ConnectionsApi.postSqlsourceInPackage"]?.[l]?.url;return(d,u)=>b(i,h,g,c)(d,p||u)},async postTemporarytable(a,n,e,t){const s=await r.postTemporarytable(a,n,e,t),o=c?.serverIndex??0,i=P["ConnectionsApi.postTemporarytable"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async postTemporarytableInPackage(a,n,e,t,s,o){const i=await r.postTemporarytableInPackage(a,n,e,t,s,o),l=c?.serverIndex??0,p=P["ConnectionsApi.postTemporarytableInPackage"]?.[l]?.url;return(d,u)=>b(i,h,g,c)(d,p||u)},async updateConnection(a,n,e,t){const s=await r.updateConnection(a,n,e,t),o=c?.serverIndex??0,i=P["ConnectionsApi.updateConnection"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)}}},Ht=function(c,r,a){const n=y(c);return{createConnection(e,t,s,o){return n.createConnection(e,t,s,o).then(i=>i(a,r))},deleteConnection(e,t,s){return n.deleteConnection(e,t,s).then(o=>o(a,r))},getConnection(e,t,s){return n.getConnection(e,t,s).then(o=>o(a,r))},getTable(e,t,s,o,i){return n.getTable(e,t,s,o,i).then(l=>l(a,r))},getTableInPackage(e,t,s,o,i,l,p){return n.getTableInPackage(e,t,s,o,i,l,p).then(d=>d(a,r))},listConnections(e,t){return n.listConnections(e,t).then(s=>s(a,r))},listSchemas(e,t,s){return n.listSchemas(e,t,s).then(o=>o(a,r))},listSchemasInPackage(e,t,s,o,i){return n.listSchemasInPackage(e,t,s,o,i).then(l=>l(a,r))},listTables(e,t,s,o,i){return n.listTables(e,t,s,o,i).then(l=>l(a,r))},listTablesInPackage(e,t,s,o,i,l,p){return n.listTablesInPackage(e,t,s,o,i,l,p).then(d=>d(a,r))},postQuerydata(e,t,s,o){return n.postQuerydata(e,t,s,o).then(i=>i(a,r))},postQuerydataInPackage(e,t,s,o,i,l){return n.postQuerydataInPackage(e,t,s,o,i,l).then(p=>p(a,r))},postSqlsource(e,t,s,o){return n.postSqlsource(e,t,s,o).then(i=>i(a,r))},postSqlsourceInPackage(e,t,s,o,i,l){return n.postSqlsourceInPackage(e,t,s,o,i,l).then(p=>p(a,r))},postTemporarytable(e,t,s,o){return n.postTemporarytable(e,t,s,o).then(i=>i(a,r))},postTemporarytableInPackage(e,t,s,o,i,l){return n.postTemporarytableInPackage(e,t,s,o,i,l).then(p=>p(a,r))},updateConnection(e,t,s,o){return n.updateConnection(e,t,s,o).then(i=>i(a,r))}}};class Ve extends I{createConnection(r,a,n,e){return y(this.configuration).createConnection(r,a,n,e).then(t=>t(this.axios,this.basePath))}deleteConnection(r,a,n){return y(this.configuration).deleteConnection(r,a,n).then(e=>e(this.axios,this.basePath))}getConnection(r,a,n){return y(this.configuration).getConnection(r,a,n).then(e=>e(this.axios,this.basePath))}getTable(r,a,n,e,t){return y(this.configuration).getTable(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}getTableInPackage(r,a,n,e,t,s,o){return y(this.configuration).getTableInPackage(r,a,n,e,t,s,o).then(i=>i(this.axios,this.basePath))}listConnections(r,a){return y(this.configuration).listConnections(r,a).then(n=>n(this.axios,this.basePath))}listSchemas(r,a,n){return y(this.configuration).listSchemas(r,a,n).then(e=>e(this.axios,this.basePath))}listSchemasInPackage(r,a,n,e,t){return y(this.configuration).listSchemasInPackage(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}listTables(r,a,n,e,t){return y(this.configuration).listTables(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}listTablesInPackage(r,a,n,e,t,s,o){return y(this.configuration).listTablesInPackage(r,a,n,e,t,s,o).then(i=>i(this.axios,this.basePath))}postQuerydata(r,a,n,e){return y(this.configuration).postQuerydata(r,a,n,e).then(t=>t(this.axios,this.basePath))}postQuerydataInPackage(r,a,n,e,t,s){return y(this.configuration).postQuerydataInPackage(r,a,n,e,t,s).then(o=>o(this.axios,this.basePath))}postSqlsource(r,a,n,e){return y(this.configuration).postSqlsource(r,a,n,e).then(t=>t(this.axios,this.basePath))}postSqlsourceInPackage(r,a,n,e,t,s){return y(this.configuration).postSqlsourceInPackage(r,a,n,e,t,s).then(o=>o(this.axios,this.basePath))}postTemporarytable(r,a,n,e){return y(this.configuration).postTemporarytable(r,a,n,e).then(t=>t(this.axios,this.basePath))}postTemporarytableInPackage(r,a,n,e,t,s){return y(this.configuration).postTemporarytableInPackage(r,a,n,e,t,s).then(o=>o(this.axios,this.basePath))}updateConnection(r,a,n,e){return y(this.configuration).updateConnection(r,a,n,e).then(t=>t(this.axios,this.basePath))}}const be=function(c){return{testConnectionConfiguration:async(r,a={})=>{m("testConnectionConfiguration","connection",r);const n="/connections/test",e=new URL(n,S);let t;c&&(t=c.baseOptions);const s={method:"POST",...t,...a},o={},i={};o["Content-Type"]="application/json",o.Accept="application/json",v(e,i);let l=t&&t.headers?t.headers:{};return s.headers={...o,...l,...a.headers},s.data=O(r,s,c),{url:V(e),options:s}}}},ne=function(c){const r=be(c);return{async testConnectionConfiguration(a,n){const e=await r.testConnectionConfiguration(a,n),t=c?.serverIndex??0,s=P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;return(o,i)=>b(e,h,g,c)(o,s||i)}}},Gt=function(c,r,a){const n=ne(c);return{testConnectionConfiguration(e,t){return n.testConnectionConfiguration(e,t).then(s=>s(a,r))}}};class Wt extends I{testConnectionConfiguration(r,a){return ne(this.configuration).testConnectionConfiguration(r,a).then(n=>n(this.axios,this.basePath))}}const Ae=function(c){return{listDataApps:async(r,a,n,e={})=>{m("listDataApps","environmentName",r),m("listDataApps","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};n!==void 0&&(p.versionId=n),l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}}}},re=function(c){const r=Ae(c);return{async listDataApps(a,n,e,t){const s=await r.listDataApps(a,n,e,t),o=c?.serverIndex??0,i=P["DataAppsApi.listDataApps"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)}}},Kt=function(c,r,a){const n=re(c);return{listDataApps(e,t,s,o){return n.listDataApps(e,t,s,o).then(i=>i(a,r))}}};class ke extends I{listDataApps(r,a,n,e){return re(this.configuration).listDataApps(r,a,n,e).then(t=>t(this.axios,this.basePath))}}const Oe=function(c){return{listDatabases:async(r,a,n,e={})=>{m("listDatabases","environmentName",r),m("listDatabases","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};n!==void 0&&(p.versionId=n),l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}}}},oe=function(c){const r=Oe(c);return{async listDatabases(a,n,e,t){const s=await r.listDatabases(a,n,e,t),o=c?.serverIndex??0,i=P["DatabasesApi.listDatabases"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)}}},$t=function(c,r,a){const n=oe(c);return{listDatabases(e,t,s,o){return n.listDatabases(e,t,s,o).then(i=>i(a,r))}}};class ye extends I{listDatabases(r,a,n,e){return oe(this.configuration).listDatabases(r,a,n,e).then(t=>t(this.axios,this.basePath))}}const Ce=function(c){return{createEnvironment:async(r,a={})=>{m("createEnvironment","environment",r);const n="/environments",e=new URL(n,S);let t;c&&(t=c.baseOptions);const s={method:"POST",...t,...a},o={},i={};o["Content-Type"]="application/json",o.Accept="application/json",v(e,i);let l=t&&t.headers?t.headers:{};return s.headers={...o,...l,...a.headers},s.data=O(r,s,c),{url:V(e),options:s}},deleteEnvironment:async(r,a={})=>{m("deleteEnvironment","environmentName",r);const n="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(r))),e=new URL(n,S);let t;c&&(t=c.baseOptions);const s={method:"DELETE",...t,...a},o={},i={};o.Accept="application/json",v(e,i);let l=t&&t.headers?t.headers:{};return s.headers={...o,...l,...a.headers},{url:V(e),options:s}},getEnvironment:async(r,a,n={})=>{m("getEnvironment","environmentName",r);const e="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(r))),t=new URL(e,S);let s;c&&(s=c.baseOptions);const o={method:"GET",...s,...n},i={},l={};a!==void 0&&(l.reload=a),i.Accept="application/json",v(t,l);let p=s&&s.headers?s.headers:{};return o.headers={...i,...p,...n.headers},{url:V(t),options:o}},listEnvironments:async(r={})=>{const a="/environments",n=new URL(a,S);let e;c&&(e=c.baseOptions);const t={method:"GET",...e,...r},s={},o={};s.Accept="application/json",v(n,o);let i=e&&e.headers?e.headers:{};return t.headers={...s,...i,...r.headers},{url:V(n),options:t}},updateEnvironment:async(r,a,n={})=>{m("updateEnvironment","environmentName",r),m("updateEnvironment","environment",a);const e="/environments/{environmentName}".replace("{environmentName}",encodeURIComponent(String(r))),t=new URL(e,S);let s;c&&(s=c.baseOptions);const o={method:"PATCH",...s,...n},i={},l={};i["Content-Type"]="application/json",i.Accept="application/json",v(t,l);let p=s&&s.headers?s.headers:{};return o.headers={...i,...p,...n.headers},o.data=O(a,o,c),{url:V(t),options:o}}}},M=function(c){const r=Ce(c);return{async createEnvironment(a,n){const e=await r.createEnvironment(a,n),t=c?.serverIndex??0,s=P["EnvironmentsApi.createEnvironment"]?.[t]?.url;return(o,i)=>b(e,h,g,c)(o,s||i)},async deleteEnvironment(a,n){const e=await r.deleteEnvironment(a,n),t=c?.serverIndex??0,s=P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;return(o,i)=>b(e,h,g,c)(o,s||i)},async getEnvironment(a,n,e){const t=await r.getEnvironment(a,n,e),s=c?.serverIndex??0,o=P["EnvironmentsApi.getEnvironment"]?.[s]?.url;return(i,l)=>b(t,h,g,c)(i,o||l)},async listEnvironments(a){const n=await r.listEnvironments(a),e=c?.serverIndex??0,t=P["EnvironmentsApi.listEnvironments"]?.[e]?.url;return(s,o)=>b(n,h,g,c)(s,t||o)},async updateEnvironment(a,n,e){const t=await r.updateEnvironment(a,n,e),s=c?.serverIndex??0,o=P["EnvironmentsApi.updateEnvironment"]?.[s]?.url;return(i,l)=>b(t,h,g,c)(i,o||l)}}},Yt=function(c,r,a){const n=M(c);return{createEnvironment(e,t){return n.createEnvironment(e,t).then(s=>s(a,r))},deleteEnvironment(e,t){return n.deleteEnvironment(e,t).then(s=>s(a,r))},getEnvironment(e,t,s){return n.getEnvironment(e,t,s).then(o=>o(a,r))},listEnvironments(e){return n.listEnvironments(e).then(t=>t(a,r))},updateEnvironment(e,t,s){return n.updateEnvironment(e,t,s).then(o=>o(a,r))}}};class Ie extends I{createEnvironment(r,a){return M(this.configuration).createEnvironment(r,a).then(n=>n(this.axios,this.basePath))}deleteEnvironment(r,a){return M(this.configuration).deleteEnvironment(r,a).then(n=>n(this.axios,this.basePath))}getEnvironment(r,a,n){return M(this.configuration).getEnvironment(r,a,n).then(e=>e(this.axios,this.basePath))}listEnvironments(r){return M(this.configuration).listEnvironments(r).then(a=>a(this.axios,this.basePath))}updateEnvironment(r,a,n){return M(this.configuration).updateEnvironment(r,a,n).then(e=>e(this.axios,this.basePath))}}const Re=function(c){return{createMaterialization:async(r,a,n,e={})=>{m("createMaterialization","environmentName",r),m("createMaterialization","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"POST",...o,...e},l={},p={};l["Content-Type"]="application/json",l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},i.data=O(n,i,c),{url:V(s),options:i}},deleteMaterialization:async(r,a,n,e,t={})=>{m("deleteMaterialization","environmentName",r),m("deleteMaterialization","packageName",a),m("deleteMaterialization","materializationId",n);const s="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{materializationId}",encodeURIComponent(String(n))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"DELETE",...i,...t},p={},d={};e!==void 0&&(d.versionId=e),p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},dropMaterializedTable:async(r,a,n,e,t,s,o={})=>{m("dropMaterializedTable","environmentName",r),m("dropMaterializedTable","packageName",a),m("dropMaterializedTable","connectionName",n),m("dropMaterializedTable","tableName",e);const i="/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/materializedTables/{tableName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{tableName}",encodeURIComponent(String(e))),l=new URL(i,S);let p;c&&(p=c.baseOptions);const d={method:"DELETE",...p,...o},u={},A={};t!==void 0&&(A.materializationId=t),s!==void 0&&(A.versionId=s),u.Accept="application/json",v(l,A);let k=p&&p.headers?p.headers:{};return d.headers={...u,...k,...o.headers},{url:V(l),options:d}},getMaterialization:async(r,a,n,e,t={})=>{m("getMaterialization","environmentName",r),m("getMaterialization","packageName",a),m("getMaterialization","materializationId",n);const s="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{materializationId}",encodeURIComponent(String(n))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"GET",...i,...t},p={},d={};e!==void 0&&(d.versionId=e),p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},listMaterializations:async(r,a,n,e,t,s={})=>{m("listMaterializations","environmentName",r),m("listMaterializations","packageName",a);const o="/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),i=new URL(o,S);let l;c&&(l=c.baseOptions);const p={method:"GET",...l,...s},d={},u={};n!==void 0&&(u.limit=n),e!==void 0&&(u.offset=e),t!==void 0&&(u.versionId=t),d.Accept="application/json",v(i,u);let A=l&&l.headers?l.headers:{};return p.headers={...d,...A,...s.headers},{url:V(i),options:p}},materializationAction:async(r,a,n,e,t,s={})=>{m("materializationAction","environmentName",r),m("materializationAction","packageName",a),m("materializationAction","materializationId",n),m("materializationAction","action",e);const o="/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{materializationId}",encodeURIComponent(String(n))),i=new URL(o,S);let l;c&&(l=c.baseOptions);const p={method:"POST",...l,...s},d={},u={};e!==void 0&&(u.action=e),t!==void 0&&(u.versionId=t),d.Accept="application/json",v(i,u);let A=l&&l.headers?l.headers:{};return p.headers={...d,...A,...s.headers},{url:V(i),options:p}}}},N=function(c){const r=Re(c);return{async createMaterialization(a,n,e,t){const s=await r.createMaterialization(a,n,e,t),o=c?.serverIndex??0,i=P["MaterializationsApi.createMaterialization"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async deleteMaterialization(a,n,e,t,s){const o=await r.deleteMaterialization(a,n,e,t,s),i=c?.serverIndex??0,l=P["MaterializationsApi.deleteMaterialization"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async dropMaterializedTable(a,n,e,t,s,o,i){const l=await r.dropMaterializedTable(a,n,e,t,s,o,i),p=c?.serverIndex??0,d=P["MaterializationsApi.dropMaterializedTable"]?.[p]?.url;return(u,A)=>b(l,h,g,c)(u,d||A)},async getMaterialization(a,n,e,t,s){const o=await r.getMaterialization(a,n,e,t,s),i=c?.serverIndex??0,l=P["MaterializationsApi.getMaterialization"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async listMaterializations(a,n,e,t,s,o){const i=await r.listMaterializations(a,n,e,t,s,o),l=c?.serverIndex??0,p=P["MaterializationsApi.listMaterializations"]?.[l]?.url;return(d,u)=>b(i,h,g,c)(d,p||u)},async materializationAction(a,n,e,t,s,o){const i=await r.materializationAction(a,n,e,t,s,o),l=c?.serverIndex??0,p=P["MaterializationsApi.materializationAction"]?.[l]?.url;return(d,u)=>b(i,h,g,c)(d,p||u)}}},Jt=function(c,r,a){const n=N(c);return{createMaterialization(e,t,s,o){return n.createMaterialization(e,t,s,o).then(i=>i(a,r))},deleteMaterialization(e,t,s,o,i){return n.deleteMaterialization(e,t,s,o,i).then(l=>l(a,r))},dropMaterializedTable(e,t,s,o,i,l,p){return n.dropMaterializedTable(e,t,s,o,i,l,p).then(d=>d(a,r))},getMaterialization(e,t,s,o,i){return n.getMaterialization(e,t,s,o,i).then(l=>l(a,r))},listMaterializations(e,t,s,o,i,l){return n.listMaterializations(e,t,s,o,i,l).then(p=>p(a,r))},materializationAction(e,t,s,o,i,l){return n.materializationAction(e,t,s,o,i,l).then(p=>p(a,r))}}};class Ee extends I{createMaterialization(r,a,n,e){return N(this.configuration).createMaterialization(r,a,n,e).then(t=>t(this.axios,this.basePath))}deleteMaterialization(r,a,n,e,t){return N(this.configuration).deleteMaterialization(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}dropMaterializedTable(r,a,n,e,t,s,o){return N(this.configuration).dropMaterializedTable(r,a,n,e,t,s,o).then(i=>i(this.axios,this.basePath))}getMaterialization(r,a,n,e,t){return N(this.configuration).getMaterialization(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}listMaterializations(r,a,n,e,t,s){return N(this.configuration).listMaterializations(r,a,n,e,t,s).then(o=>o(this.axios,this.basePath))}materializationAction(r,a,n,e,t,s){return N(this.configuration).materializationAction(r,a,n,e,t,s).then(o=>o(this.axios,this.basePath))}}const Zt={Stop:"stop"},xe=function(c){return{compileModelSource:async(r,a,n,e,t,s={})=>{m("compileModelSource","environmentName",r),m("compileModelSource","packageName",a),m("compileModelSource","path",n),m("compileModelSource","compileRequest",e);const o="/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{path}",encodeURIComponent(String(n))),i=new URL(o,S);let l;c&&(l=c.baseOptions);const p={method:"POST",...l,...s},d={},u={};t!==void 0&&(u.versionId=t),d["Content-Type"]="application/json",d.Accept="application/json",v(i,u);let A=l&&l.headers?l.headers:{};return p.headers={...d,...A,...s.headers},p.data=O(e,p,c),{url:V(i),options:p}},executeQueryModel:async(r,a,n,e,t,s,o={})=>{m("executeQueryModel","environmentName",r),m("executeQueryModel","packageName",a),m("executeQueryModel","path",n),m("executeQueryModel","queryRequest",e);const i="/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{path}",encodeURIComponent(String(n))),l=new URL(i,S);let p;c&&(p=c.baseOptions);const d={method:"POST",...p,...o},u={},A={};t!==void 0&&(A.includeHiddenFilesAndSources=t),s!==void 0&&(A.versionId=s),u["Content-Type"]="application/json",u.Accept="application/json",v(l,A);let k=p&&p.headers?p.headers:{};return d.headers={...u,...k,...o.headers},d.data=O(e,d,c),{url:V(l),options:d}},getModel:async(r,a,n,e,t,s,o={})=>{m("getModel","environmentName",r),m("getModel","packageName",a),m("getModel","path",n);const i="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{path}",encodeURIComponent(String(n))),l=new URL(i,S);let p;c&&(p=c.baseOptions);const d={method:"GET",...p,...o},u={},A={};e!==void 0&&(A.versionId=e),t!==void 0&&(A.includeHiddenFilesAndSources=t),s!==void 0&&(A.givens=s),u.Accept="application/json",v(l,A);let k=p&&p.headers?p.headers:{};return d.headers={...u,...k,...o.headers},{url:V(l),options:d}},listModels:async(r,a,n,e,t={})=>{m("listModels","environmentName",r),m("listModels","packageName",a);const s="/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"GET",...i,...t},p={},d={};n!==void 0&&(d.versionId=n),e!==void 0&&(d.includeHiddenFilesAndSources=e),p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},updateModelSource:async(r,a,n,e,t,s={})=>{m("updateModelSource","environmentName",r),m("updateModelSource","packageName",a),m("updateModelSource","path",n),m("updateModelSource","modelSourceWriteRequest",e);const o="/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{path}",encodeURIComponent(String(n))),i=new URL(o,S);let l;c&&(l=c.baseOptions);const p={method:"PUT",...l,...s},d={},u={};t!==void 0&&(u.versionId=t),d["Content-Type"]="application/json",d.Accept="application/json",v(i,u);let A=l&&l.headers?l.headers:{};return p.headers={...d,...A,...s.headers},p.data=O(e,p,c),{url:V(i),options:p}}}},w=function(c){const r=xe(c);return{async compileModelSource(a,n,e,t,s,o){const i=await r.compileModelSource(a,n,e,t,s,o),l=c?.serverIndex??0,p=P["ModelsApi.compileModelSource"]?.[l]?.url;return(d,u)=>b(i,h,g,c)(d,p||u)},async executeQueryModel(a,n,e,t,s,o,i){const l=await r.executeQueryModel(a,n,e,t,s,o,i),p=c?.serverIndex??0,d=P["ModelsApi.executeQueryModel"]?.[p]?.url;return(u,A)=>b(l,h,g,c)(u,d||A)},async getModel(a,n,e,t,s,o,i){const l=await r.getModel(a,n,e,t,s,o,i),p=c?.serverIndex??0,d=P["ModelsApi.getModel"]?.[p]?.url;return(u,A)=>b(l,h,g,c)(u,d||A)},async listModels(a,n,e,t,s){const o=await r.listModels(a,n,e,t,s),i=c?.serverIndex??0,l=P["ModelsApi.listModels"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async updateModelSource(a,n,e,t,s,o){const i=await r.updateModelSource(a,n,e,t,s,o),l=c?.serverIndex??0,p=P["ModelsApi.updateModelSource"]?.[l]?.url;return(d,u)=>b(i,h,g,c)(d,p||u)}}},Xt=function(c,r,a){const n=w(c);return{compileModelSource(e,t,s,o,i,l){return n.compileModelSource(e,t,s,o,i,l).then(p=>p(a,r))},executeQueryModel(e,t,s,o,i,l,p){return n.executeQueryModel(e,t,s,o,i,l,p).then(d=>d(a,r))},getModel(e,t,s,o,i,l,p){return n.getModel(e,t,s,o,i,l,p).then(d=>d(a,r))},listModels(e,t,s,o,i){return n.listModels(e,t,s,o,i).then(l=>l(a,r))},updateModelSource(e,t,s,o,i,l){return n.updateModelSource(e,t,s,o,i,l).then(p=>p(a,r))}}};class Te extends I{compileModelSource(r,a,n,e,t,s){return w(this.configuration).compileModelSource(r,a,n,e,t,s).then(o=>o(this.axios,this.basePath))}executeQueryModel(r,a,n,e,t,s,o){return w(this.configuration).executeQueryModel(r,a,n,e,t,s,o).then(i=>i(this.axios,this.basePath))}getModel(r,a,n,e,t,s,o){return w(this.configuration).getModel(r,a,n,e,t,s,o).then(i=>i(this.axios,this.basePath))}listModels(r,a,n,e,t){return w(this.configuration).listModels(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}updateModelSource(r,a,n,e,t,s){return w(this.configuration).updateModelSource(r,a,n,e,t,s).then(o=>o(this.axios,this.basePath))}}const Ue=function(c){return{createPackage:async(r,a,n,e={})=>{m("createPackage","environmentName",r),m("createPackage","_package",a);const t="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(r))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"POST",...o,...e},l={},p={};n!==void 0&&(p.dryRun=n),l["Content-Type"]="application/json",l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},i.data=O(a,i,c),{url:V(s),options:i}},deletePackage:async(r,a,n={})=>{m("deletePackage","environmentName",r),m("deletePackage","packageName",a);const e="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),t=new URL(e,S);let s;c&&(s=c.baseOptions);const o={method:"DELETE",...s,...n},i={},l={};i.Accept="application/json",v(t,l);let p=s&&s.headers?s.headers:{};return o.headers={...i,...p,...n.headers},{url:V(t),options:o}},getPackage:async(r,a,n,e,t={})=>{m("getPackage","environmentName",r),m("getPackage","packageName",a);const s="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"GET",...i,...t},p={},d={};n!==void 0&&(d.versionId=n),e!==void 0&&(d.reload=e),p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},getPackageBuildPlan:async(r,a,n,e={})=>{m("getPackageBuildPlan","environmentName",r),m("getPackageBuildPlan","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/build-plan".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};n!==void 0&&(p.versionId=n),l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}},getPackageClassification:async(r,a,n,e={})=>{m("getPackageClassification","environmentName",r),m("getPackageClassification","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/classification".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};n!==void 0&&(p.versionId=n),l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}},getPackageEmbeddingIndex:async(r,a,n,e={})=>{m("getPackageEmbeddingIndex","environmentName",r),m("getPackageEmbeddingIndex","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/embedding-index".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};n!==void 0&&(p.versionId=n),l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}},getPackageEntities:async(r,a,n,e,t={})=>{m("getPackageEntities","environmentName",r),m("getPackageEntities","packageName",a);const s="/environments/{environmentName}/packages/{packageName}/entities".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"GET",...i,...t},p={},d={};n!==void 0&&(d.versionId=n),e!==void 0&&(d.includeHiddenFilesAndSources=e),p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},getPackageStatus:async(r,a,n,e={})=>{m("getPackageStatus","environmentName",r),m("getPackageStatus","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/status".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};n!==void 0&&(p.versionId=n),l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}},listPackages:async(r,a={})=>{m("listPackages","environmentName",r);const n="/environments/{environmentName}/packages".replace("{environmentName}",encodeURIComponent(String(r))),e=new URL(n,S);let t;c&&(t=c.baseOptions);const s={method:"GET",...t,...a},o={},i={};o.Accept="application/json",v(e,i);let l=t&&t.headers?t.headers:{};return s.headers={...o,...l,...a.headers},{url:V(e),options:s}},updatePackage:async(r,a,n,e={})=>{m("updatePackage","environmentName",r),m("updatePackage","packageName",a),m("updatePackage","_package",n);const t="/environments/{environmentName}/packages/{packageName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"PATCH",...o,...e},l={},p={};l["Content-Type"]="application/json",l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},i.data=O(n,i,c),{url:V(s),options:i}}}},E=function(c){const r=Ue(c);return{async createPackage(a,n,e,t){const s=await r.createPackage(a,n,e,t),o=c?.serverIndex??0,i=P["PackagesApi.createPackage"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async deletePackage(a,n,e){const t=await r.deletePackage(a,n,e),s=c?.serverIndex??0,o=P["PackagesApi.deletePackage"]?.[s]?.url;return(i,l)=>b(t,h,g,c)(i,o||l)},async getPackage(a,n,e,t,s){const o=await r.getPackage(a,n,e,t,s),i=c?.serverIndex??0,l=P["PackagesApi.getPackage"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async getPackageBuildPlan(a,n,e,t){const s=await r.getPackageBuildPlan(a,n,e,t),o=c?.serverIndex??0,i=P["PackagesApi.getPackageBuildPlan"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async getPackageClassification(a,n,e,t){const s=await r.getPackageClassification(a,n,e,t),o=c?.serverIndex??0,i=P["PackagesApi.getPackageClassification"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async getPackageEmbeddingIndex(a,n,e,t){const s=await r.getPackageEmbeddingIndex(a,n,e,t),o=c?.serverIndex??0,i=P["PackagesApi.getPackageEmbeddingIndex"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async getPackageEntities(a,n,e,t,s){const o=await r.getPackageEntities(a,n,e,t,s),i=c?.serverIndex??0,l=P["PackagesApi.getPackageEntities"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async getPackageStatus(a,n,e,t){const s=await r.getPackageStatus(a,n,e,t),o=c?.serverIndex??0,i=P["PackagesApi.getPackageStatus"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async listPackages(a,n){const e=await r.listPackages(a,n),t=c?.serverIndex??0,s=P["PackagesApi.listPackages"]?.[t]?.url;return(o,i)=>b(e,h,g,c)(o,s||i)},async updatePackage(a,n,e,t){const s=await r.updatePackage(a,n,e,t),o=c?.serverIndex??0,i=P["PackagesApi.updatePackage"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)}}},en=function(c,r,a){const n=E(c);return{createPackage(e,t,s,o){return n.createPackage(e,t,s,o).then(i=>i(a,r))},deletePackage(e,t,s){return n.deletePackage(e,t,s).then(o=>o(a,r))},getPackage(e,t,s,o,i){return n.getPackage(e,t,s,o,i).then(l=>l(a,r))},getPackageBuildPlan(e,t,s,o){return n.getPackageBuildPlan(e,t,s,o).then(i=>i(a,r))},getPackageClassification(e,t,s,o){return n.getPackageClassification(e,t,s,o).then(i=>i(a,r))},getPackageEmbeddingIndex(e,t,s,o){return n.getPackageEmbeddingIndex(e,t,s,o).then(i=>i(a,r))},getPackageEntities(e,t,s,o,i){return n.getPackageEntities(e,t,s,o,i).then(l=>l(a,r))},getPackageStatus(e,t,s,o){return n.getPackageStatus(e,t,s,o).then(i=>i(a,r))},listPackages(e,t){return n.listPackages(e,t).then(s=>s(a,r))},updatePackage(e,t,s,o){return n.updatePackage(e,t,s,o).then(i=>i(a,r))}}};class Ne extends I{createPackage(r,a,n,e){return E(this.configuration).createPackage(r,a,n,e).then(t=>t(this.axios,this.basePath))}deletePackage(r,a,n){return E(this.configuration).deletePackage(r,a,n).then(e=>e(this.axios,this.basePath))}getPackage(r,a,n,e,t){return E(this.configuration).getPackage(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}getPackageBuildPlan(r,a,n,e){return E(this.configuration).getPackageBuildPlan(r,a,n,e).then(t=>t(this.axios,this.basePath))}getPackageClassification(r,a,n,e){return E(this.configuration).getPackageClassification(r,a,n,e).then(t=>t(this.axios,this.basePath))}getPackageEmbeddingIndex(r,a,n,e){return E(this.configuration).getPackageEmbeddingIndex(r,a,n,e).then(t=>t(this.axios,this.basePath))}getPackageEntities(r,a,n,e,t){return E(this.configuration).getPackageEntities(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}getPackageStatus(r,a,n,e){return E(this.configuration).getPackageStatus(r,a,n,e).then(t=>t(this.axios,this.basePath))}listPackages(r,a){return E(this.configuration).listPackages(r,a).then(n=>n(this.axios,this.basePath))}updatePackage(r,a,n,e){return E(this.configuration).updatePackage(r,a,n,e).then(t=>t(this.axios,this.basePath))}}const fe=function(c){return{deleteTheme:async(r={})=>{const a="/theme",n=new URL(a,S);let e;c&&(e=c.baseOptions);const t={method:"DELETE",...e,...r},s={},o={};s.Accept="application/json",v(n,o);let i=e&&e.headers?e.headers:{};return t.headers={...s,...i,...r.headers},{url:V(n),options:t}},getStatus:async(r,a={})=>{const n="/status",e=new URL(n,S);let t;c&&(t=c.baseOptions);const s={method:"GET",...t,...a},o={},i={};r!==void 0&&(i.includeLoading=r),o.Accept="application/json",v(e,i);let l=t&&t.headers?t.headers:{};return s.headers={...o,...l,...a.headers},{url:V(e),options:s}},getTheme:async(r={})=>{const a="/theme",n=new URL(a,S);let e;c&&(e=c.baseOptions);const t={method:"GET",...e,...r},s={},o={};s.Accept="application/json",v(n,o);let i=e&&e.headers?e.headers:{};return t.headers={...s,...i,...r.headers},{url:V(n),options:t}},updateTheme:async(r,a={})=>{m("updateTheme","theme",r);const n="/theme",e=new URL(n,S);let t;c&&(t=c.baseOptions);const s={method:"PUT",...t,...a},o={},i={};o["Content-Type"]="application/json",o.Accept="application/json",v(e,i);let l=t&&t.headers?t.headers:{};return s.headers={...o,...l,...a.headers},s.data=O(r,s,c),{url:V(e),options:s}}}},D=function(c){const r=fe(c);return{async deleteTheme(a){const n=await r.deleteTheme(a),e=c?.serverIndex??0,t=P["PublisherApi.deleteTheme"]?.[e]?.url;return(s,o)=>b(n,h,g,c)(s,t||o)},async getStatus(a,n){const e=await r.getStatus(a,n),t=c?.serverIndex??0,s=P["PublisherApi.getStatus"]?.[t]?.url;return(o,i)=>b(e,h,g,c)(o,s||i)},async getTheme(a){const n=await r.getTheme(a),e=c?.serverIndex??0,t=P["PublisherApi.getTheme"]?.[e]?.url;return(s,o)=>b(n,h,g,c)(s,t||o)},async updateTheme(a,n){const e=await r.updateTheme(a,n),t=c?.serverIndex??0,s=P["PublisherApi.updateTheme"]?.[t]?.url;return(o,i)=>b(e,h,g,c)(o,s||i)}}},an=function(c,r,a){const n=D(c);return{deleteTheme(e){return n.deleteTheme(e).then(t=>t(a,r))},getStatus(e,t){return n.getStatus(e,t).then(s=>s(a,r))},getTheme(e){return n.getTheme(e).then(t=>t(a,r))},updateTheme(e,t){return n.updateTheme(e,t).then(s=>s(a,r))}}};class Me extends I{deleteTheme(r){return D(this.configuration).deleteTheme(r).then(a=>a(this.axios,this.basePath))}getStatus(r,a){return D(this.configuration).getStatus(r,a).then(n=>n(this.axios,this.basePath))}getTheme(r){return D(this.configuration).getTheme(r).then(a=>a(this.axios,this.basePath))}updateTheme(r,a){return D(this.configuration).updateTheme(r,a).then(n=>n(this.axios,this.basePath))}}const we=function(c){return{getReport:async(r,a,n,e,t={})=>{m("getReport","environmentName",r),m("getReport","packageName",a),m("getReport","path",n);const s="/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{path}",encodeURIComponent(String(n))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"GET",...i,...t},p={},d={};e!==void 0&&(d.versionId=e),p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},listReports:async(r,a,n,e={})=>{m("listReports","environmentName",r),m("listReports","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};n!==void 0&&(p.versionId=n),l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}}}},G=function(c){const r=we(c);return{async getReport(a,n,e,t,s){const o=await r.getReport(a,n,e,t,s),i=c?.serverIndex??0,l=P["ReportsApi.getReport"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async listReports(a,n,e,t){const s=await r.listReports(a,n,e,t),o=c?.serverIndex??0,i=P["ReportsApi.listReports"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)}}},tn=function(c,r,a){const n=G(c);return{getReport(e,t,s,o,i){return n.getReport(e,t,s,o,i).then(l=>l(a,r))},listReports(e,t,s,o){return n.listReports(e,t,s,o).then(i=>i(a,r))}}};class Fe extends I{getReport(r,a,n,e,t){return G(this.configuration).getReport(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}listReports(r,a,n,e){return G(this.configuration).listReports(r,a,n,e).then(t=>t(this.axios,this.basePath))}}const Be=function(c){return{getSkill:async(r,a,n,e,t={})=>{m("getSkill","environmentName",r),m("getSkill","packageName",a),m("getSkill","skillName",n);const s="/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{skillName}",encodeURIComponent(String(n))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"GET",...i,...t},p={},d={};e!==void 0&&(d.versionId=e),p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},listSkills:async(r,a,n,e={})=>{m("listSkills","environmentName",r),m("listSkills","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};n!==void 0&&(p.versionId=n),l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}}}},W=function(c){const r=Be(c);return{async getSkill(a,n,e,t,s){const o=await r.getSkill(a,n,e,t,s),i=c?.serverIndex??0,l=P["SkillsApi.getSkill"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async listSkills(a,n,e,t){const s=await r.listSkills(a,n,e,t),o=c?.serverIndex??0,i=P["SkillsApi.listSkills"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)}}},nn=function(c,r,a){const n=W(c);return{getSkill(e,t,s,o,i){return n.getSkill(e,t,s,o,i).then(l=>l(a,r))},listSkills(e,t,s,o){return n.listSkills(e,t,s,o).then(i=>i(a,r))}}};class rn extends I{getSkill(r,a,n,e,t){return W(this.configuration).getSkill(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}listSkills(r,a,n,e){return W(this.configuration).listSkills(r,a,n,e).then(t=>t(this.axios,this.basePath))}}const je=function(c){return{createStorageDestinationFileCleanup:async(r,a,n,e={})=>{m("createStorageDestinationFileCleanup","environmentName",r),m("createStorageDestinationFileCleanup","destinationName",a),m("createStorageDestinationFileCleanup","storageFileCleanupRequest",n);const t="/environments/{environmentName}/storageDestinations/{destinationName}/fileCleanups".replace("{environmentName}",encodeURIComponent(String(r))).replace("{destinationName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"POST",...o,...e},l={},p={};l["Content-Type"]="application/json",l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},i.data=O(n,i,c),{url:V(s),options:i}},deleteStorageDestinationTable:async(r,a,n,e,t={})=>{m("deleteStorageDestinationTable","environmentName",r),m("deleteStorageDestinationTable","destinationName",a),m("deleteStorageDestinationTable","schemaName",n),m("deleteStorageDestinationTable","tableName",e);const s="/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables/{tableName}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{destinationName}",encodeURIComponent(String(a))).replace("{schemaName}",encodeURIComponent(String(n))).replace("{tableName}",encodeURIComponent(String(e))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"DELETE",...i,...t},p={},d={};p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},{url:V(o),options:l}},listStorageDestinationTables:async(r,a,n,e={})=>{m("listStorageDestinationTables","environmentName",r),m("listStorageDestinationTables","destinationName",a),m("listStorageDestinationTables","schemaName",n);const t="/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables".replace("{environmentName}",encodeURIComponent(String(r))).replace("{destinationName}",encodeURIComponent(String(a))).replace("{schemaName}",encodeURIComponent(String(n))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}}}},z=function(c){const r=je(c);return{async createStorageDestinationFileCleanup(a,n,e,t){const s=await r.createStorageDestinationFileCleanup(a,n,e,t),o=c?.serverIndex??0,i=P["StorageDestinationsApi.createStorageDestinationFileCleanup"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async deleteStorageDestinationTable(a,n,e,t,s){const o=await r.deleteStorageDestinationTable(a,n,e,t,s),i=c?.serverIndex??0,l=P["StorageDestinationsApi.deleteStorageDestinationTable"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async listStorageDestinationTables(a,n,e,t){const s=await r.listStorageDestinationTables(a,n,e,t),o=c?.serverIndex??0,i=P["StorageDestinationsApi.listStorageDestinationTables"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)}}},on=function(c,r,a){const n=z(c);return{createStorageDestinationFileCleanup(e,t,s,o){return n.createStorageDestinationFileCleanup(e,t,s,o).then(i=>i(a,r))},deleteStorageDestinationTable(e,t,s,o,i){return n.deleteStorageDestinationTable(e,t,s,o,i).then(l=>l(a,r))},listStorageDestinationTables(e,t,s,o){return n.listStorageDestinationTables(e,t,s,o).then(i=>i(a,r))}}};class sn extends I{createStorageDestinationFileCleanup(r,a,n,e){return z(this.configuration).createStorageDestinationFileCleanup(r,a,n,e).then(t=>t(this.axios,this.basePath))}deleteStorageDestinationTable(r,a,n,e,t){return z(this.configuration).deleteStorageDestinationTable(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}listStorageDestinationTables(r,a,n,e){return z(this.configuration).listStorageDestinationTables(r,a,n,e).then(t=>t(this.axios,this.basePath))}}const De=function(c){return{deletePackageVersion:async(r,a,n,e={})=>{m("deletePackageVersion","environmentName",r),m("deletePackageVersion","packageName",a),m("deletePackageVersion","versionId",n);const t="/environments/{environmentName}/packages/{packageName}/versions/{versionId}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{versionId}",encodeURIComponent(String(n))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"DELETE",...o,...e},l={},p={};l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}},getPackageVersion:async(r,a,n,e={})=>{m("getPackageVersion","environmentName",r),m("getPackageVersion","packageName",a),m("getPackageVersion","versionId",n);const t="/environments/{environmentName}/packages/{packageName}/versions/{versionId}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{versionId}",encodeURIComponent(String(n))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}},listPackageVersions:async(r,a,n={})=>{m("listPackageVersions","environmentName",r),m("listPackageVersions","packageName",a);const e="/environments/{environmentName}/packages/{packageName}/versions".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),t=new URL(e,S);let s;c&&(s=c.baseOptions);const o={method:"GET",...s,...n},i={},l={};i.Accept="application/json",v(t,l);let p=s&&s.headers?s.headers:{};return o.headers={...i,...p,...n.headers},{url:V(t),options:o}},setPackageLatestVersion:async(r,a,n,e={})=>{m("setPackageLatestVersion","environmentName",r),m("setPackageLatestVersion","packageName",a),m("setPackageLatestVersion","packageLatestVersion",n);const t="/environments/{environmentName}/packages/{packageName}/latest".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"PUT",...o,...e},l={},p={};l["Content-Type"]="application/json",l.Accept="application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},i.data=O(n,i,c),{url:V(s),options:i}},setPackageVersionManifest:async(r,a,n,e,t={})=>{m("setPackageVersionManifest","environmentName",r),m("setPackageVersionManifest","packageName",a),m("setPackageVersionManifest","versionId",n),m("setPackageVersionManifest","packageVersionManifest",e);const s="/environments/{environmentName}/packages/{packageName}/versions/{versionId}/manifest".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{versionId}",encodeURIComponent(String(n))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"PUT",...i,...t},p={},d={};p["Content-Type"]="application/json",p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},l.data=O(e,l,c),{url:V(o),options:l}},updatePackageVersion:async(r,a,n,e,t={})=>{m("updatePackageVersion","environmentName",r),m("updatePackageVersion","packageName",a),m("updatePackageVersion","versionId",n),m("updatePackageVersion","packageVersionUpdate",e);const s="/environments/{environmentName}/packages/{packageName}/versions/{versionId}".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))).replace("{versionId}",encodeURIComponent(String(n))),o=new URL(s,S);let i;c&&(i=c.baseOptions);const l={method:"PATCH",...i,...t},p={},d={};p["Content-Type"]="application/json",p.Accept="application/json",v(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...p,...u,...t.headers},l.data=O(e,l,c),{url:V(o),options:l}}}},f=function(c){const r=De(c);return{async deletePackageVersion(a,n,e,t){const s=await r.deletePackageVersion(a,n,e,t),o=c?.serverIndex??0,i=P["VersionsApi.deletePackageVersion"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async getPackageVersion(a,n,e,t){const s=await r.getPackageVersion(a,n,e,t),o=c?.serverIndex??0,i=P["VersionsApi.getPackageVersion"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async listPackageVersions(a,n,e){const t=await r.listPackageVersions(a,n,e),s=c?.serverIndex??0,o=P["VersionsApi.listPackageVersions"]?.[s]?.url;return(i,l)=>b(t,h,g,c)(i,o||l)},async setPackageLatestVersion(a,n,e,t){const s=await r.setPackageLatestVersion(a,n,e,t),o=c?.serverIndex??0,i=P["VersionsApi.setPackageLatestVersion"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)},async setPackageVersionManifest(a,n,e,t,s){const o=await r.setPackageVersionManifest(a,n,e,t,s),i=c?.serverIndex??0,l=P["VersionsApi.setPackageVersionManifest"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)},async updatePackageVersion(a,n,e,t,s){const o=await r.updatePackageVersion(a,n,e,t,s),i=c?.serverIndex??0,l=P["VersionsApi.updatePackageVersion"]?.[i]?.url;return(p,d)=>b(o,h,g,c)(p,l||d)}}},cn=function(c,r,a){const n=f(c);return{deletePackageVersion(e,t,s,o){return n.deletePackageVersion(e,t,s,o).then(i=>i(a,r))},getPackageVersion(e,t,s,o){return n.getPackageVersion(e,t,s,o).then(i=>i(a,r))},listPackageVersions(e,t,s){return n.listPackageVersions(e,t,s).then(o=>o(a,r))},setPackageLatestVersion(e,t,s,o){return n.setPackageLatestVersion(e,t,s,o).then(i=>i(a,r))},setPackageVersionManifest(e,t,s,o,i){return n.setPackageVersionManifest(e,t,s,o,i).then(l=>l(a,r))},updatePackageVersion(e,t,s,o,i){return n.updatePackageVersion(e,t,s,o,i).then(l=>l(a,r))}}};class Le extends I{deletePackageVersion(r,a,n,e){return f(this.configuration).deletePackageVersion(r,a,n,e).then(t=>t(this.axios,this.basePath))}getPackageVersion(r,a,n,e){return f(this.configuration).getPackageVersion(r,a,n,e).then(t=>t(this.axios,this.basePath))}listPackageVersions(r,a,n){return f(this.configuration).listPackageVersions(r,a,n).then(e=>e(this.axios,this.basePath))}setPackageLatestVersion(r,a,n,e){return f(this.configuration).setPackageLatestVersion(r,a,n,e).then(t=>t(this.axios,this.basePath))}setPackageVersionManifest(r,a,n,e,t){return f(this.configuration).setPackageVersionManifest(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}updatePackageVersion(r,a,n,e,t){return f(this.configuration).updatePackageVersion(r,a,n,e,t).then(s=>s(this.axios,this.basePath))}}const _e=function(c){return{getWatchStatus:async(r={})=>{const a="/watch-mode/status",n=new URL(a,S);let e;c&&(e=c.baseOptions);const t={method:"GET",...e,...r},s={},o={};s.Accept="application/json",v(n,o);let i=e&&e.headers?e.headers:{};return t.headers={...s,...i,...r.headers},{url:V(n),options:t}},startWatching:async(r,a={})=>{m("startWatching","startWatchRequest",r);const n="/watch-mode/start",e=new URL(n,S);let t;c&&(t=c.baseOptions);const s={method:"POST",...t,...a},o={},i={};o["Content-Type"]="application/json",o.Accept="application/json",v(e,i);let l=t&&t.headers?t.headers:{};return s.headers={...o,...l,...a.headers},s.data=O(r,s,c),{url:V(e),options:s}},stopWatching:async(r={})=>{const a="/watch-mode/stop",n=new URL(a,S);let e;c&&(e=c.baseOptions);const t={method:"POST",...e,...r},s={},o={};s.Accept="application/json",v(n,o);let i=e&&e.headers?e.headers:{};return t.headers={...s,...i,...r.headers},{url:V(n),options:t}},streamPackageEvents:async(r,a,n,e={})=>{m("streamPackageEvents","environmentName",r),m("streamPackageEvents","packageName",a);const t="/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}",encodeURIComponent(String(r))).replace("{packageName}",encodeURIComponent(String(a))),s=new URL(t,S);let o;c&&(o=c.baseOptions);const i={method:"GET",...o,...e},l={},p={};n!==void 0&&(p.versionId=n),l.Accept="text/event-stream,application/json",v(s,p);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...e.headers},{url:V(s),options:i}}}},L=function(c){const r=_e(c);return{async getWatchStatus(a){const n=await r.getWatchStatus(a),e=c?.serverIndex??0,t=P["WatchModeApi.getWatchStatus"]?.[e]?.url;return(s,o)=>b(n,h,g,c)(s,t||o)},async startWatching(a,n){const e=await r.startWatching(a,n),t=c?.serverIndex??0,s=P["WatchModeApi.startWatching"]?.[t]?.url;return(o,i)=>b(e,h,g,c)(o,s||i)},async stopWatching(a){const n=await r.stopWatching(a),e=c?.serverIndex??0,t=P["WatchModeApi.stopWatching"]?.[e]?.url;return(s,o)=>b(n,h,g,c)(s,t||o)},async streamPackageEvents(a,n,e,t){const s=await r.streamPackageEvents(a,n,e,t),o=c?.serverIndex??0,i=P["WatchModeApi.streamPackageEvents"]?.[o]?.url;return(l,p)=>b(s,h,g,c)(l,i||p)}}},ln=function(c,r,a){const n=L(c);return{getWatchStatus(e){return n.getWatchStatus(e).then(t=>t(a,r))},startWatching(e,t){return n.startWatching(e,t).then(s=>s(a,r))},stopWatching(e){return n.stopWatching(e).then(t=>t(a,r))},streamPackageEvents(e,t,s,o){return n.streamPackageEvents(e,t,s,o).then(i=>i(a,r))}}};class ze extends I{getWatchStatus(r){return L(this.configuration).getWatchStatus(r).then(a=>a(this.axios,this.basePath))}startWatching(r,a){return L(this.configuration).startWatching(r,a).then(n=>n(this.axios,this.basePath))}stopWatching(r){return L(this.configuration).stopWatching(r).then(a=>a(this.axios,this.basePath))}streamPackageEvents(r,a,n,e){return L(this.configuration).streamPackageEvents(r,a,n,e).then(t=>t(this.axios,this.basePath))}}class Qe{apiKey;username;password;accessToken;awsv4;basePath;serverIndex;baseOptions;formDataCtor;constructor(r={}){this.apiKey=r.apiKey,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.awsv4=r.awsv4,this.basePath=r.basePath,this.serverIndex=r.serverIndex,this.baseOptions={...r.baseOptions,headers:{...r.baseOptions?.headers}},this.formDataCtor=r.formDataCtor}isJsonMime(r){return r!==null&&/^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(r)}}const qe=new ae.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1,refetchOnWindowFocus:!1},mutations:{retry:!1,throwOnError:!1}}}),pn={staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1};function dn(c,r){return r||c?.modelPage==="viewer"?"viewer":"explorer"}function mn(c){return{modelPage:dn(c.data,c.isError&&c.data===void 0),isLoadingStatus:c.isPending}}const ee="publisher:themeMode";function un(){if(!(typeof window>"u"))try{const c=window.localStorage.getItem(ee);if(c==="light"||c==="dark"||c==="auto")return c}catch{}}function hn(c){if(!(typeof window>"u"))try{c===void 0?window.localStorage.removeItem(ee):window.localStorage.setItem(ee,c)}catch{}}function gn(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}h.defaults.baseURL||(h.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet");const He=R.createContext(void 0),Pn=(c,r,a)=>{const n=`${window.location.protocol}//${window.location.host}/api/v0`,e=h.create({baseURL:c||n,withCredentials:!0,timeout:6e5,...a?{adapter:a}:{}});e.interceptors.request.use(async s=>{const o=await r?.();return s.headers.Authorization=o||"",s});const t=new Qe({basePath:n});return{models:new Te(t,n,e),publisher:new Me(t,n,e),environments:new Ie(t,n,e),packages:new Ne(t,n,e),agents:new Se(t,n,e),dataApps:new ke(t,n,e),reports:new Fe(t,n,e),connections:new Ve(t,n,e),databases:new ye(t,n,e),materializations:new Ee(t,n,e),watchMode:new ze(t,n,e),versions:new Le(t,n,e)}},Sn=c=>Q.jsx(ae.QueryClientProvider,{client:qe,children:Q.jsx(vn,{...c})}),vn=({children:c,getAccessToken:r,baseURL:a,mutable:n,theme:e,ui:t,adapter:s,mode:o})=>{const i=R.useMemo(()=>Pn(a,r,s),[a,r,s]),l=a||`${window.location.protocol}//${window.location.host}/api/v0`,p=ae.useQuery({queryKey:["status",l],retry:3,queryFn:async()=>(await i.publisher.getStatus()).data});p.error&&console.error("Failed to fetch publisher status:",p.error);const d=p.data?.frozenConfig,u=p.data?.theme,{modelPage:A,isLoadingStatus:k}=mn(p);let x;p.isLoading||p.error?x=n:d?x=!1:x=n??!0;const B=R.useMemo(()=>[u,e],[u,e]),[Ge,We]=R.useState(un),[se,Ke]=R.useState(gn);R.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const j=window.matchMedia("(prefers-color-scheme: dark)"),ce=Ze=>Ke(Ze.matches);return j.addEventListener("change",ce),()=>j.removeEventListener("change",ce)},[]);const $e=R.useCallback(j=>{We(j),hn(j)},[]),ie=u?.allowUserToggle??!0,K=ie?Ge:void 0,Ye=R.useMemo(()=>o??ue(u?.defaultMode,K,se),[o,u?.defaultMode,K,se]),Je={server:l,getAccessToken:r,apiClients:i,mutable:x,isLoadingStatus:k,instanceTheme:u,modelPage:A};return Q.jsx(He.Provider,{value:Je,children:Q.jsx(ge,{layers:B,mode:Ye,userChoice:K,setMode:$e,allowUserToggle:ie&&o===void 0,...t?{ui:t}:{},children:c})})},Vn=()=>{const c=R.useContext(He);if(c===void 0)throw new Error("useServer must be used within a ServerProvider");return c};exports.AgentsApi=Se;exports.AgentsApiAxiosParamCreator=Pe;exports.AgentsApiFactory=Qt;exports.AgentsApiFp=_;exports.AttachedDatabaseTypeEnum=va;exports.AzureConnectionAuthTypeEnum=Va;exports.CHART_RESULT_QUERY_OPTIONS=pn;exports.CleanMetricCard=ra;exports.CompileProblemSeverityEnum=ba;exports.CompileRequestScopeEnum=Aa;exports.CompileResultStatusEnum=ka;exports.CompiledDocumentKindEnum=ya;exports.CompiledDocumentLayoutEnum=Oa;exports.Configuration=Qe;exports.ConnectionProxyTypeEnum=Ia;exports.ConnectionStatusStatusEnum=Ra;exports.ConnectionTypeEnum=Ca;exports.ConnectionsApi=Ve;exports.ConnectionsApiAxiosParamCreator=ve;exports.ConnectionsApiFactory=Ht;exports.ConnectionsApiFp=y;exports.ConnectionsTestApi=Wt;exports.ConnectionsTestApiAxiosParamCreator=be;exports.ConnectionsTestApiFactory=Gt;exports.ConnectionsTestApiFp=ne;exports.DEFAULT_THEME=H;exports.DEFAULT_UI=U;exports.DashboardManifestKindEnum=xa;exports.DashboardManifestLayoutEnum=Ea;exports.DashboardTileKindEnum=Ta;exports.DataAppFitEnum=Ua;exports.DataAppsApi=ke;exports.DataAppsApiAxiosParamCreator=Ae;exports.DataAppsApiFactory=Kt;exports.DataAppsApiFp=re;exports.DatabaseTypeEnum=Na;exports.DatabasesApi=ye;exports.DatabasesApiAxiosParamCreator=Oe;exports.DatabasesApiFactory=$t;exports.DatabasesApiFp=oe;exports.EnvironmentsApi=Ie;exports.EnvironmentsApiAxiosParamCreator=Ce;exports.EnvironmentsApiFactory=Yt;exports.EnvironmentsApiFp=M;exports.FilterTypeEnum=fa;exports.FreshnessFallbackEnum=Ma;exports.GetAgentSkillsEnum=qt;exports.GivenControlEnum=wa;exports.LedgerEntryStrategyEnum=Fa;exports.LogMessageSeverityEnum=Ba;exports.MONO_FONT_FAMILY=ea;exports.ManifestEntryFreshnessFallbackEnum=La;exports.ManifestEntryOriginEnum=ja;exports.ManifestEntryRefreshEnum=_a;exports.ManifestEntryUpstreamReuseEnum=Da;exports.MaterializationActionActionEnum=Zt;exports.MaterializationMetadataKeptTablesInnerReasonEnum=za;exports.MaterializationStatus=Qa;exports.MaterializationsApi=Ee;exports.MaterializationsApiAxiosParamCreator=Re;exports.MaterializationsApiFactory=Jt;exports.MaterializationsApiFp=N;exports.ModelEntitiesErrorKindEnum=qa;exports.ModelsApi=Te;exports.ModelsApiAxiosParamCreator=xe;exports.ModelsApiFactory=Xt;exports.ModelsApiFp=w;exports.NotebookCellKindEnum=Ga;exports.NotebookCellTypeEnum=Ha;exports.PALETTE=C;exports.PER_MODE_COLOR_KEYS=me;exports.PackageArchiveStatusEnum=Wa;exports.PackageEmbeddingIndexReasonEnum=Za;exports.PackageEmbeddingIndexStageEnum=Xa;exports.PackageEmbeddingIndexStatusEnum=Ja;exports.PackageManifestBindingStatusEnum=Ya;exports.PackageQueryableSourcesEnum=$a;exports.PackageScopeEnum=Ka;exports.PackageServingStateArchiveStatusEnum=et;exports.PackageServingStateManifestBindingStatusEnum=at;exports.PackageStatusEntryArchiveStatusEnum=tt;exports.PackageStatusEntryFieldsArchiveStatusEnum=st;exports.PackageStatusEntryFieldsManifestBindingStatusEnum=it;exports.PackageStatusEntryManifestBindingStatusEnum=ot;exports.PackageStatusEntryQueryableSourcesEnum=rt;exports.PackageStatusEntryScopeEnum=nt;exports.PackageVersionArchiveStatusEnum=ct;exports.PackageVersionUpdateArchiveStatusEnum=lt;exports.PackageWarningsInnerSeverityEnum=pt;exports.PackagesApi=Ne;exports.PackagesApiAxiosParamCreator=Ue;exports.PackagesApiFactory=en;exports.PackagesApiFp=E;exports.PersistSourcePlanOriginEnum=dt;exports.PostgresConnectionSslmodeEnum=mt;exports.PublisherApi=Me;exports.PublisherApiAxiosParamCreator=fe;exports.PublisherApiFactory=an;exports.PublisherApiFp=D;exports.QueryClass=ut;exports.QueryPathCandidateOriginEnum=ht;exports.QueryPathCandidateOutcomeEnum=gt;exports.QueryPathNearbyOriginEnum=Pt;exports.QueryPathNearbyRelationshipEnum=St;exports.QueryPathServerOriginEnum=vt;exports.QueryPathServerTierEnum=Vt;exports.QueryPathTableKind=bt;exports.QueryResultQueryRowLimitSourceEnum=At;exports.QueryResultServedFromEnum=kt;exports.Realization=Ot;exports.RefusedSourceOriginEnum=yt;exports.RefusedSourceReasonEnum=It;exports.RefusedSourceTierEnum=Ct;exports.ReportCellsFormatEnum=Et;exports.ReportLayoutEnum=Rt;exports.ReportManifestLayoutEnum=xt;exports.ReportTileKindEnum=Tt;exports.ReportsApi=Fe;exports.ReportsApiAxiosParamCreator=we;exports.ReportsApiFactory=tn;exports.ReportsApiFp=G;exports.RunContextTriggerEnum=Ut;exports.S3ConnectionProviderEnum=Nt;exports.SURFACE_TINT=Xe;exports.ServerProvider=Sn;exports.ServerStatusModelPageEnum=Ft;exports.ServerStatusOperationalStateEnum=ft;exports.ServerStatusPackageVersioningEnum=Mt;exports.ServerStatusVersionPromotionEnum=wt;exports.SkillOriginEnum=Bt;exports.SkillSummaryOriginEnum=jt;exports.SkillsApi=rn;exports.SkillsApiAxiosParamCreator=Be;exports.SkillsApiFactory=nn;exports.SkillsApiFp=W;exports.SkipReason=Dt;exports.StorageDestinationsApi=sn;exports.StorageDestinationsApiAxiosParamCreator=je;exports.StorageDestinationsApiFactory=on;exports.StorageDestinationsApiFp=z;exports.StorageServeBindingOriginEnum=Lt;exports.StyledCard=aa;exports.StyledCardContent=ta;exports.StyledCardMedia=na;exports.StyledExplorerContent=sa;exports.StyledExplorerPage=oa;exports.ThemeDefaultModeEnum=_t;exports.ThemeProvider=ge;exports.UpstreamTableSchemaUnreadEnum=zt;exports.VersionsApi=Le;exports.VersionsApiAxiosParamCreator=De;exports.VersionsApiFactory=cn;exports.VersionsApiFp=f;exports.WatchModeApi=ze;exports.WatchModeApiAxiosParamCreator=_e;exports.WatchModeApiFactory=ln;exports.WatchModeApiFp=L;exports.accentFor=Z;exports.chartThemeLayer=ha;exports.contrastRatio=pa;exports.globalQueryClient=qe;exports.mergeUi=pe;exports.resolveMode=ue;exports.resolveTheme=te;exports.usePublisherTheme=ga;exports.useServer=Vn;
|
|
@@ -738,7 +738,8 @@ const V = function(l, ...r) {
|
|
|
738
738
|
PartialNameCollision: "partial_name_collision",
|
|
739
739
|
GivenWhereOverUnstoredField: "given_where_over_unstored_field",
|
|
740
740
|
UnreadableGrain: "unreadable_grain",
|
|
741
|
-
UpstreamUnread: "upstream_unread"
|
|
741
|
+
UpstreamUnread: "upstream_unread",
|
|
742
|
+
UpstreamTableUnusable: "upstream_table_unusable"
|
|
742
743
|
}, $t = {
|
|
743
744
|
Grid: "grid",
|
|
744
745
|
Linear: "linear"
|
|
@@ -3519,7 +3520,7 @@ const na = function(l) {
|
|
|
3519
3520
|
};
|
|
3520
3521
|
},
|
|
3521
3522
|
/**
|
|
3522
|
-
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
3523
|
+
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound answers 500 with `reason` `MANIFEST_BIND_FAILED`, on a versioned package as on the version route, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
3523
3524
|
* @summary Update package configuration
|
|
3524
3525
|
* @param {string} environmentName Name of the environment
|
|
3525
3526
|
* @param {string} packageName Name of the package
|
|
@@ -3662,7 +3663,7 @@ const na = function(l) {
|
|
|
3662
3663
|
return (s, i) => b(e, u, g, l)(s, o || i);
|
|
3663
3664
|
},
|
|
3664
3665
|
/**
|
|
3665
|
-
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
3666
|
+
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound answers 500 with `reason` `MANIFEST_BIND_FAILED`, on a versioned package as on the version route, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
3666
3667
|
* @summary Update package configuration
|
|
3667
3668
|
* @param {string} environmentName Name of the environment
|
|
3668
3669
|
* @param {string} packageName Name of the package
|
|
@@ -3787,7 +3788,7 @@ const na = function(l) {
|
|
|
3787
3788
|
return n.listPackages(e, t).then((o) => o(a, r));
|
|
3788
3789
|
},
|
|
3789
3790
|
/**
|
|
3790
|
-
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
3791
|
+
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound answers 500 with `reason` `MANIFEST_BIND_FAILED`, on a versioned package as on the version route, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
3791
3792
|
* @summary Update package configuration
|
|
3792
3793
|
* @param {string} environmentName Name of the environment
|
|
3793
3794
|
* @param {string} packageName Name of the package
|
|
@@ -3910,7 +3911,7 @@ class ra extends C {
|
|
|
3910
3911
|
return R(this.configuration).listPackages(r, a).then((n) => n(this.axios, this.basePath));
|
|
3911
3912
|
}
|
|
3912
3913
|
/**
|
|
3913
|
-
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
3914
|
+
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound answers 500 with `reason` `MANIFEST_BIND_FAILED`, on a versioned package as on the version route, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
3914
3915
|
* @summary Update package configuration
|
|
3915
3916
|
* @param {string} environmentName Name of the environment
|
|
3916
3917
|
* @param {string} packageName Name of the package
|
|
@@ -4428,11 +4429,11 @@ const pa = function(l) {
|
|
|
4428
4429
|
};
|
|
4429
4430
|
},
|
|
4430
4431
|
/**
|
|
4431
|
-
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4432
|
+
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. The path\'s schema qualifies the table. On a destination whose `destinationSchema` is set and is not `main`, a `main` path answers `400` naming the `destinationSchema` (an earlier release read `main` as the destination\'s own schema): name the `destinationSchema` to drop a build table, and drop a table in `main` through the admin API. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4432
4433
|
* @summary Drop a table from a storage destination
|
|
4433
4434
|
* @param {string} environmentName Name of the environment
|
|
4434
4435
|
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4435
|
-
* @param {string} schemaName Schema within the storage destination. A
|
|
4436
|
+
* @param {string} schemaName Schema within the storage destination: the path\'s table is `{schemaName}.{tableName}`. A build writes a bare physical name into the destination\'s `destinationSchema` (`main` when it declares none), so a drop in `main` on a destination that sets another `destinationSchema` answers `400` naming it.
|
|
4436
4437
|
* @param {string} tableName Name of the table
|
|
4437
4438
|
* @param {*} [options] Override http request option.
|
|
4438
4439
|
* @deprecated
|
|
@@ -4456,7 +4457,7 @@ const pa = function(l) {
|
|
|
4456
4457
|
* @summary List tables in a storage destination
|
|
4457
4458
|
* @param {string} environmentName Name of the environment
|
|
4458
4459
|
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4459
|
-
* @param {string} schemaName Schema within the storage destination. A
|
|
4460
|
+
* @param {string} schemaName Schema within the storage destination: the path\'s table is `{schemaName}.{tableName}`. A build writes a bare physical name into the destination\'s `destinationSchema` (`main` when it declares none), so a drop in `main` on a destination that sets another `destinationSchema` answers `400` naming it.
|
|
4460
4461
|
* @param {*} [options] Override http request option.
|
|
4461
4462
|
* @deprecated
|
|
4462
4463
|
* @throws {RequiredError}
|
|
@@ -4493,11 +4494,11 @@ const pa = function(l) {
|
|
|
4493
4494
|
return (c, p) => b(o, u, g, l)(c, i || p);
|
|
4494
4495
|
},
|
|
4495
4496
|
/**
|
|
4496
|
-
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4497
|
+
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. The path\'s schema qualifies the table. On a destination whose `destinationSchema` is set and is not `main`, a `main` path answers `400` naming the `destinationSchema` (an earlier release read `main` as the destination\'s own schema): name the `destinationSchema` to drop a build table, and drop a table in `main` through the admin API. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4497
4498
|
* @summary Drop a table from a storage destination
|
|
4498
4499
|
* @param {string} environmentName Name of the environment
|
|
4499
4500
|
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4500
|
-
* @param {string} schemaName Schema within the storage destination. A
|
|
4501
|
+
* @param {string} schemaName Schema within the storage destination: the path\'s table is `{schemaName}.{tableName}`. A build writes a bare physical name into the destination\'s `destinationSchema` (`main` when it declares none), so a drop in `main` on a destination that sets another `destinationSchema` answers `400` naming it.
|
|
4501
4502
|
* @param {string} tableName Name of the table
|
|
4502
4503
|
* @param {*} [options] Override http request option.
|
|
4503
4504
|
* @deprecated
|
|
@@ -4512,7 +4513,7 @@ const pa = function(l) {
|
|
|
4512
4513
|
* @summary List tables in a storage destination
|
|
4513
4514
|
* @param {string} environmentName Name of the environment
|
|
4514
4515
|
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4515
|
-
* @param {string} schemaName Schema within the storage destination. A
|
|
4516
|
+
* @param {string} schemaName Schema within the storage destination: the path\'s table is `{schemaName}.{tableName}`. A build writes a bare physical name into the destination\'s `destinationSchema` (`main` when it declares none), so a drop in `main` on a destination that sets another `destinationSchema` answers `400` naming it.
|
|
4516
4517
|
* @param {*} [options] Override http request option.
|
|
4517
4518
|
* @deprecated
|
|
4518
4519
|
* @throws {RequiredError}
|
|
@@ -4539,11 +4540,11 @@ const pa = function(l) {
|
|
|
4539
4540
|
return n.createStorageDestinationFileCleanup(e, t, o, s).then((i) => i(a, r));
|
|
4540
4541
|
},
|
|
4541
4542
|
/**
|
|
4542
|
-
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4543
|
+
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. The path\'s schema qualifies the table. On a destination whose `destinationSchema` is set and is not `main`, a `main` path answers `400` naming the `destinationSchema` (an earlier release read `main` as the destination\'s own schema): name the `destinationSchema` to drop a build table, and drop a table in `main` through the admin API. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4543
4544
|
* @summary Drop a table from a storage destination
|
|
4544
4545
|
* @param {string} environmentName Name of the environment
|
|
4545
4546
|
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4546
|
-
* @param {string} schemaName Schema within the storage destination. A
|
|
4547
|
+
* @param {string} schemaName Schema within the storage destination: the path\'s table is `{schemaName}.{tableName}`. A build writes a bare physical name into the destination\'s `destinationSchema` (`main` when it declares none), so a drop in `main` on a destination that sets another `destinationSchema` answers `400` naming it.
|
|
4547
4548
|
* @param {string} tableName Name of the table
|
|
4548
4549
|
* @param {*} [options] Override http request option.
|
|
4549
4550
|
* @deprecated
|
|
@@ -4557,7 +4558,7 @@ const pa = function(l) {
|
|
|
4557
4558
|
* @summary List tables in a storage destination
|
|
4558
4559
|
* @param {string} environmentName Name of the environment
|
|
4559
4560
|
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4560
|
-
* @param {string} schemaName Schema within the storage destination. A
|
|
4561
|
+
* @param {string} schemaName Schema within the storage destination: the path\'s table is `{schemaName}.{tableName}`. A build writes a bare physical name into the destination\'s `destinationSchema` (`main` when it declares none), so a drop in `main` on a destination that sets another `destinationSchema` answers `400` naming it.
|
|
4561
4562
|
* @param {*} [options] Override http request option.
|
|
4562
4563
|
* @deprecated
|
|
4563
4564
|
* @throws {RequiredError}
|
|
@@ -4582,11 +4583,11 @@ class Un extends C {
|
|
|
4582
4583
|
return q(this.configuration).createStorageDestinationFileCleanup(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
4583
4584
|
}
|
|
4584
4585
|
/**
|
|
4585
|
-
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4586
|
+
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. The path\'s schema qualifies the table. On a destination whose `destinationSchema` is set and is not `main`, a `main` path answers `400` naming the `destinationSchema` (an earlier release read `main` as the destination\'s own schema): name the `destinationSchema` to drop a build table, and drop a table in `main` through the admin API. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4586
4587
|
* @summary Drop a table from a storage destination
|
|
4587
4588
|
* @param {string} environmentName Name of the environment
|
|
4588
4589
|
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4589
|
-
* @param {string} schemaName Schema within the storage destination. A
|
|
4590
|
+
* @param {string} schemaName Schema within the storage destination: the path\'s table is `{schemaName}.{tableName}`. A build writes a bare physical name into the destination\'s `destinationSchema` (`main` when it declares none), so a drop in `main` on a destination that sets another `destinationSchema` answers `400` naming it.
|
|
4590
4591
|
* @param {string} tableName Name of the table
|
|
4591
4592
|
* @param {*} [options] Override http request option.
|
|
4592
4593
|
* @deprecated
|
|
@@ -4600,7 +4601,7 @@ class Un extends C {
|
|
|
4600
4601
|
* @summary List tables in a storage destination
|
|
4601
4602
|
* @param {string} environmentName Name of the environment
|
|
4602
4603
|
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4603
|
-
* @param {string} schemaName Schema within the storage destination. A
|
|
4604
|
+
* @param {string} schemaName Schema within the storage destination: the path\'s table is `{schemaName}.{tableName}`. A build writes a bare physical name into the destination\'s `destinationSchema` (`main` when it declares none), so a drop in `main` on a destination that sets another `destinationSchema` answers `400` naming it.
|
|
4604
4605
|
* @param {*} [options] Override http request option.
|
|
4605
4606
|
* @deprecated
|
|
4606
4607
|
* @throws {RequiredError}
|
|
@@ -4699,7 +4700,7 @@ const da = function(l) {
|
|
|
4699
4700
|
};
|
|
4700
4701
|
},
|
|
4701
4702
|
/**
|
|
4702
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
4703
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear. A manifest that cannot be fetched (unreachable, timed out, not a manifest) or bound answers 500 with `reason` `MANIFEST_BIND_FAILED` and the cause in the message, and nothing of it is applied: the version\'s `manifestLocation` stays what it was, the version is not marked host-owned, and it serves what it served before the request, the manifest it had bound or, with none, live (or this server\'s own runs\' tables, for a version no host has bound). Its status says the same: `manifestBindingStatus`, `boundManifestUri` and `manifestEntryCount` describe that previous binding. One exception: when the failure came after the version\'s models moved, the previous manifest is fetched and bound again, and if that fails too the version reports `bind_failed`, as any failed rebind does (see `manifestBindingStatus`), and the server logs that failed bind. Releases before this one answered 200 here and reported the failure only as `manifestBindingStatus` `bind_failed`. A publish that names a `manifestLocation` still loads the version and reports a failed bind that way.
|
|
4703
4704
|
* @summary Bind a version to a build manifest
|
|
4704
4705
|
* @param {string} environmentName Name of the environment
|
|
4705
4706
|
* @param {string} packageName Name of the package
|
|
@@ -4800,7 +4801,7 @@ const da = function(l) {
|
|
|
4800
4801
|
return (c, p) => b(o, u, g, l)(c, i || p);
|
|
4801
4802
|
},
|
|
4802
4803
|
/**
|
|
4803
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
4804
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear. A manifest that cannot be fetched (unreachable, timed out, not a manifest) or bound answers 500 with `reason` `MANIFEST_BIND_FAILED` and the cause in the message, and nothing of it is applied: the version\'s `manifestLocation` stays what it was, the version is not marked host-owned, and it serves what it served before the request, the manifest it had bound or, with none, live (or this server\'s own runs\' tables, for a version no host has bound). Its status says the same: `manifestBindingStatus`, `boundManifestUri` and `manifestEntryCount` describe that previous binding. One exception: when the failure came after the version\'s models moved, the previous manifest is fetched and bound again, and if that fails too the version reports `bind_failed`, as any failed rebind does (see `manifestBindingStatus`), and the server logs that failed bind. Releases before this one answered 200 here and reported the failure only as `manifestBindingStatus` `bind_failed`. A publish that names a `manifestLocation` still loads the version and reports a failed bind that way.
|
|
4804
4805
|
* @summary Bind a version to a build manifest
|
|
4805
4806
|
* @param {string} environmentName Name of the environment
|
|
4806
4807
|
* @param {string} packageName Name of the package
|
|
@@ -4879,7 +4880,7 @@ const da = function(l) {
|
|
|
4879
4880
|
return n.setPackageLatestVersion(e, t, o, s).then((i) => i(a, r));
|
|
4880
4881
|
},
|
|
4881
4882
|
/**
|
|
4882
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
4883
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear. A manifest that cannot be fetched (unreachable, timed out, not a manifest) or bound answers 500 with `reason` `MANIFEST_BIND_FAILED` and the cause in the message, and nothing of it is applied: the version\'s `manifestLocation` stays what it was, the version is not marked host-owned, and it serves what it served before the request, the manifest it had bound or, with none, live (or this server\'s own runs\' tables, for a version no host has bound). Its status says the same: `manifestBindingStatus`, `boundManifestUri` and `manifestEntryCount` describe that previous binding. One exception: when the failure came after the version\'s models moved, the previous manifest is fetched and bound again, and if that fails too the version reports `bind_failed`, as any failed rebind does (see `manifestBindingStatus`), and the server logs that failed bind. Releases before this one answered 200 here and reported the failure only as `manifestBindingStatus` `bind_failed`. A publish that names a `manifestLocation` still loads the version and reports a failed bind that way.
|
|
4883
4884
|
* @summary Bind a version to a build manifest
|
|
4884
4885
|
* @param {string} environmentName Name of the environment
|
|
4885
4886
|
* @param {string} packageName Name of the package
|
|
@@ -4955,7 +4956,7 @@ class ma extends C {
|
|
|
4955
4956
|
return N(this.configuration).setPackageLatestVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
4956
4957
|
}
|
|
4957
4958
|
/**
|
|
4958
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
4959
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear. A manifest that cannot be fetched (unreachable, timed out, not a manifest) or bound answers 500 with `reason` `MANIFEST_BIND_FAILED` and the cause in the message, and nothing of it is applied: the version\'s `manifestLocation` stays what it was, the version is not marked host-owned, and it serves what it served before the request, the manifest it had bound or, with none, live (or this server\'s own runs\' tables, for a version no host has bound). Its status says the same: `manifestBindingStatus`, `boundManifestUri` and `manifestEntryCount` describe that previous binding. One exception: when the failure came after the version\'s models moved, the previous manifest is fetched and bound again, and if that fails too the version reports `bind_failed`, as any failed rebind does (see `manifestBindingStatus`), and the server logs that failed bind. Releases before this one answered 200 here and reported the failure only as `manifestBindingStatus` `bind_failed`. A publish that names a `manifestLocation` still loads the version and reports a failed bind that way.
|
|
4959
4960
|
* @summary Bind a version to a build manifest
|
|
4960
4961
|
* @param {string} environmentName Name of the environment
|
|
4961
4962
|
* @param {string} packageName Name of the package
|