"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[431],{25117:function(e,r,t){t.d(r,{t:function(){return n}});var a=t(36476),i=t(61077);const o=async({reject:e,response:r,err:t})=>{const i=(0,a.a$)(r),o=i instanceof a.Bk?t:i;if(r)try{var n;const e=null===(n=await r.json())||void 0===n?void 0:n.message;e&&(o.message=e)}catch{}e(o)},n={listProviders:()=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/supported-providers",error:o}),listModels:e=>{const r=new URLSearchParams;e&&r.append("provider",e);const t=["ajax-api/3.0/mlflow/gateway/supported-models",r.toString()].join("?");return(0,i.AC)({relativeUrl:t,error:o})},getProviderConfig:e=>{const r=new URLSearchParams;r.append("provider",e);const t=["ajax-api/3.0/mlflow/gateway/provider-config",r.toString()].join("?");return(0,i.AC)({relativeUrl:t,error:o})},createSecret:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/secrets/create",method:"POST",body:JSON.stringify(e),error:o}),getSecret:e=>{const r=new URLSearchParams;r.append("secret_id",e);const t=["ajax-api/3.0/mlflow/gateway/secrets/get",r.toString()].join("?");return(0,i.AC)({relativeUrl:t,error:o})},updateSecret:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/secrets/update",method:"POST",body:JSON.stringify(e),error:o}),deleteSecret:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/secrets/delete",method:"DELETE",body:JSON.stringify({secret_id:e}),error:o}),listSecrets:e=>{const r=new URLSearchParams;e&&r.append("provider",e);const t=["ajax-api/3.0/mlflow/gateway/secrets/list",r.toString()].join("?");return(0,i.AC)({relativeUrl:t,error:o})},createEndpoint:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/endpoints/create",method:"POST",body:JSON.stringify(e),error:o}),getEndpoint:e=>{const r=new URLSearchParams;r.append("endpoint_id",e);const t=["ajax-api/3.0/mlflow/gateway/endpoints/get",r.toString()].join("?");return(0,i.AC)({relativeUrl:t,error:o})},updateEndpoint:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/endpoints/update",method:"POST",body:JSON.stringify(e),error:o}),deleteEndpoint:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/endpoints/delete",method:"DELETE",body:JSON.stringify({endpoint_id:e}),error:o}),listEndpoints:e=>{const r=new URLSearchParams;e&&r.append("provider",e);const t=["ajax-api/3.0/mlflow/gateway/endpoints/list",r.toString()].join("?");return(0,i.AC)({relativeUrl:t,error:o})},createModelDefinition:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/model-definitions/create",method:"POST",body:JSON.stringify(e),error:o}),getModelDefinition:e=>{const r=new URLSearchParams;r.append("model_definition_id",e);const t=["ajax-api/3.0/mlflow/gateway/model-definitions/get",r.toString()].join("?");return(0,i.AC)({relativeUrl:t,error:o})},listModelDefinitions:()=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/model-definitions/list",error:o}),updateModelDefinition:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/model-definitions/update",method:"POST",body:JSON.stringify(e),error:o}),deleteModelDefinition:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/model-definitions/delete",method:"DELETE",body:JSON.stringify({model_definition_id:e}),error:o}),attachModelToEndpoint:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/endpoints/models/attach",method:"POST",body:JSON.stringify(e),error:o}),detachModelFromEndpoint:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/endpoints/models/detach",method:"POST",body:JSON.stringify(e),error:o}),createEndpointBinding:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/endpoints/bindings/create",method:"POST",body:JSON.stringify(e),error:o}),deleteEndpointBinding:e=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/endpoints/bindings/delete",method:"DELETE",body:JSON.stringify({binding_id:e}),error:o}),listEndpointBindings:(e,r,t)=>{const a=new URLSearchParams;e&&a.append("endpoint_id",e),r&&a.append("resource_type",r),t&&a.append("resource_id",t);const n=["ajax-api/3.0/mlflow/gateway/endpoints/bindings/list",a.toString()].join("?");return(0,i.AC)({relativeUrl:n,error:o})},listUsers:()=>(0,i.AC)({relativeUrl:"ajax-api/2.0/mlflow/users/list",error:o}),getSecretsConfig:()=>(0,i.AC)({relativeUrl:"ajax-api/3.0/mlflow/gateway/secrets/config",error:o})}},30431:function(e,r,t){t.d(r,{c:function(){return n}});var a=t(49708),i=t(25117);const o=({queryKey:e})=>{const[,{provider:r}]=e;return i.t.listEndpoints(r)},n=({provider:e}={})=>{var r,t,i;const n=(0,a.I)(["gateway_endpoints",{provider:e}],{queryFn:o,retry:!1});return{data:null!==(r=null===(t=n.data)||void 0===t?void 0:t.endpoints)&&void 0!==r?r:[],error:null!==(i=n.error)&&void 0!==i?i:void 0,isLoading:n.isLoading,refetch:n.refetch}}}}]);