zenml-nightly 0.81.0.dev20250428__py3-none-any.whl → 0.81.0.dev20250430__py3-none-any.whl

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.
Files changed (168) hide show
  1. zenml/VERSION +1 -1
  2. zenml/cli/model.py +2 -7
  3. zenml/client.py +17 -2
  4. zenml/config/build_configuration.py +4 -0
  5. zenml/config/docker_settings.py +1 -1
  6. zenml/config/resource_settings.py +1 -1
  7. zenml/config/strict_base_model.py +1 -1
  8. zenml/entrypoints/base_entrypoint_configuration.py +1 -1
  9. zenml/environment.py +37 -34
  10. zenml/exceptions.py +0 -78
  11. zenml/integrations/aws/__init__.py +1 -1
  12. zenml/integrations/evidently/__init__.py +1 -0
  13. zenml/integrations/evidently/metrics.py +1 -1
  14. zenml/integrations/evidently/tests.py +1 -1
  15. zenml/integrations/gcp/flavors/vertex_orchestrator_flavor.py +6 -0
  16. zenml/integrations/gcp/orchestrators/vertex_orchestrator.py +49 -28
  17. zenml/integrations/kubeflow/orchestrators/kubeflow_orchestrator.py +7 -29
  18. zenml/integrations/kubernetes/flavors/kubernetes_orchestrator_flavor.py +6 -0
  19. zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py +12 -5
  20. zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint.py +31 -18
  21. zenml/integrations/kubernetes/orchestrators/manifest_utils.py +21 -0
  22. zenml/integrations/kubernetes/pod_settings.py +6 -1
  23. zenml/integrations/numpy/__init__.py +4 -1
  24. zenml/integrations/numpy/materializers/numpy_materializer.py +75 -6
  25. zenml/integrations/pandas/materializers/pandas_materializer.py +118 -22
  26. zenml/integrations/tekton/orchestrators/tekton_orchestrator.py +8 -28
  27. zenml/models/v2/core/model_version.py +28 -33
  28. zenml/models/v2/core/pipeline_deployment.py +4 -4
  29. zenml/models/v2/core/pipeline_run.py +5 -12
  30. zenml/models/v2/core/user.py +1 -1
  31. zenml/orchestrators/dag_runner.py +50 -14
  32. zenml/secret/base_secret.py +1 -1
  33. zenml/stack/stack_component.py +1 -1
  34. zenml/stack/utils.py +1 -1
  35. zenml/utils/code_utils.py +1 -1
  36. zenml/zen_server/dashboard/assets/{404-o3nB5iwI.js → 404-D4aYbspS.js} +1 -1
  37. zenml/zen_server/dashboard/assets/{@react-router-BGgzhn5D.js → @react-router-CNP6g_RL.js} +1 -1
  38. zenml/zen_server/dashboard/assets/{AlertDialogDropdownItem-C_qWs-4u.js → AlertDialogDropdownItem-CRZjthRL.js} +1 -1
  39. zenml/zen_server/dashboard/assets/{CodeSnippet-nRnOvbOJ.js → CodeSnippet-Di-loaZu.js} +1 -1
  40. zenml/zen_server/dashboard/assets/CollapsibleCard-Dr5zb5T5.js +1 -0
  41. zenml/zen_server/dashboard/assets/{Commands-BwBzFj-5.js → Commands-CD9Y7FOE.js} +1 -1
  42. zenml/zen_server/dashboard/assets/{ComponentBadge-CMx2DbsV.js → ComponentBadge-BgGnzcLu.js} +1 -1
  43. zenml/zen_server/dashboard/assets/{ComponentIcon-CSxdApv8.js → ComponentIcon-B_7Y_oV-.js} +1 -1
  44. zenml/zen_server/dashboard/assets/{CsvVizualization-lxB2iyEh.js → CsvVizualization-CDrjL6bW.js} +1 -1
  45. zenml/zen_server/dashboard/assets/{DeleteAlertDialog-Bp0o-UXZ.js → DeleteAlertDialog-9RTDnEx3.js} +1 -1
  46. zenml/zen_server/dashboard/assets/DialogItem-0fWTH7ki.js +1 -0
  47. zenml/zen_server/dashboard/assets/{Error-DRhVeVHQ.js → Error-vBjUYjb-.js} +1 -1
  48. zenml/zen_server/dashboard/assets/{ExecutionStatus-HnZXi9bW.js → ExecutionStatus-B-ysY113.js} +1 -1
  49. zenml/zen_server/dashboard/assets/{Helpbox-Dsr3ZYcL.js → Helpbox-Dt3q7NGd.js} +1 -1
  50. zenml/zen_server/dashboard/assets/{Infobox-C4Op55B8.js → Infobox-Bai0JtFs.js} +1 -1
  51. zenml/zen_server/dashboard/assets/{InlineAvatar-CrAwe7Pl.js → InlineAvatar-Cpj0lVRQ.js} +1 -1
  52. zenml/zen_server/dashboard/assets/NestedCollapsible-DbhKdWx-.js +1 -0
  53. zenml/zen_server/dashboard/assets/{Partials-DjTM0Oe-.js → Partials-BNBtCjuT.js} +1 -1
  54. zenml/zen_server/dashboard/assets/ProBadge-3vtouJQf.js +1 -0
  55. zenml/zen_server/dashboard/assets/{ProCta-BYSSivgY.js → ProCta-BoTLdAdV.js} +1 -1
  56. zenml/zen_server/dashboard/assets/{ProviderIcon-B8W7AGNk.js → ProviderIcon-kkODO9tx.js} +1 -1
  57. zenml/zen_server/dashboard/assets/{ProviderRadio-BWFJPEY2.js → ProviderRadio-26EB5tY-.js} +1 -1
  58. zenml/zen_server/dashboard/assets/RunSelector-j0C_TPVp.js +1 -0
  59. zenml/zen_server/dashboard/assets/RunsBody-DexNouV4.js +1 -0
  60. zenml/zen_server/dashboard/assets/SearchField-DMCywawn.js +1 -0
  61. zenml/zen_server/dashboard/assets/{SecretTooltip-CCn9HfEh.js → SecretTooltip-LLGP7AIC.js} +1 -1
  62. zenml/zen_server/dashboard/assets/{SetPassword-BDFVwnNB.js → SetPassword-CBHW-Su8.js} +1 -1
  63. zenml/zen_server/dashboard/assets/StackList-S-9I1R4n.js +1 -0
  64. zenml/zen_server/dashboard/assets/Tabs-C2ufJX4t.js +1 -0
  65. zenml/zen_server/dashboard/assets/Tick-ay3Bgtro.js +1 -0
  66. zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-3gg2tC-H.js → UpdatePasswordSchemas-p3RX0P-Q.js} +1 -1
  67. zenml/zen_server/dashboard/assets/{UsageReason-DOMAzO02.js → UsageReason-C8sD2bOU.js} +1 -1
  68. zenml/zen_server/dashboard/assets/{Wizard-BSH_lIfi.js → Wizard-DIllc07n.js} +1 -1
  69. zenml/zen_server/dashboard/assets/{WizardFooter-CnM-50jL.js → WizardFooter-dNDpuero.js} +1 -1
  70. zenml/zen_server/dashboard/assets/{all-pipeline-runs-query-D9XfZpmV.js → all-pipeline-runs-query-BUT1PiTp.js} +1 -1
  71. zenml/zen_server/dashboard/assets/{configuration-form-Ci_QlfZC.js → configuration-form-DBZSb0FV.js} +1 -1
  72. zenml/zen_server/dashboard/assets/{create-stack-CoQ5SEJL.js → create-stack-BXLyjE58.js} +1 -1
  73. zenml/zen_server/dashboard/assets/{delete-run-B5xUZwdP.js → delete-run-DzcYxUnd.js} +1 -1
  74. zenml/zen_server/dashboard/assets/dots-horizontal-BGRJCPCs.js +1 -0
  75. zenml/zen_server/dashboard/assets/{flavor-select-DOLAl-S4.js → flavor-select-BTEwByv6.js} +1 -1
  76. zenml/zen_server/dashboard/assets/{form-schemas-BaEJ1z87.js → form-schemas-BJN_25Ua.js} +1 -1
  77. zenml/zen_server/dashboard/assets/{index-e8udi7QT.js → index-8uhUi12k.js} +1 -1
  78. zenml/zen_server/dashboard/assets/{index-hsSXyS3H.js → index-BygJE88j.js} +8 -8
  79. zenml/zen_server/dashboard/assets/{index-ojAuWXMf.js → index-D9-ukAem.js} +1 -1
  80. zenml/zen_server/dashboard/assets/index-DmTFrHJm.css +1 -0
  81. zenml/zen_server/dashboard/assets/{index-BoWZ9rXk.js → index-wYtmKLnQ.js} +1 -1
  82. zenml/zen_server/dashboard/assets/{login-mutation-CwraNa5G.js → login-mutation-DywLqguW.js} +1 -1
  83. zenml/zen_server/dashboard/assets/{not-found-BuK1QrF2.js → not-found-BOoklIG4.js} +1 -1
  84. zenml/zen_server/dashboard/assets/{page-0AIX3VK8.js → page--hSXKqyG.js} +1 -1
  85. zenml/zen_server/dashboard/assets/{page-CIDo1Ajk.js → page-2BsNK_sZ.js} +1 -1
  86. zenml/zen_server/dashboard/assets/page-4nVakAEl.js +1 -0
  87. zenml/zen_server/dashboard/assets/{page-CjRoKEQs.js → page-8AzB83Py.js} +1 -1
  88. zenml/zen_server/dashboard/assets/{page-BQVPbNps.js → page-B0r9dBEU.js} +1 -1
  89. zenml/zen_server/dashboard/assets/{page-hVng6ANV.js → page-B1Uq1S1Q.js} +1 -1
  90. zenml/zen_server/dashboard/assets/page-B3DscprQ.js +1 -0
  91. zenml/zen_server/dashboard/assets/{page-KRP_w5zH.js → page-B7Aj2XbV.js} +1 -1
  92. zenml/zen_server/dashboard/assets/{page-CZgeF_wQ.js → page-BE8jdyaM.js} +1 -1
  93. zenml/zen_server/dashboard/assets/page-BIYqUwTI.js +1 -0
  94. zenml/zen_server/dashboard/assets/page-BTzhAVEn.js +1 -0
  95. zenml/zen_server/dashboard/assets/{page-_Zt6UwiG.js → page-ByXQN8A-.js} +1 -1
  96. zenml/zen_server/dashboard/assets/page-CI4a9CXs.js +1 -0
  97. zenml/zen_server/dashboard/assets/page-CPLlVRXx.js +6 -0
  98. zenml/zen_server/dashboard/assets/page-CSQOpvvK.js +3 -0
  99. zenml/zen_server/dashboard/assets/{page-DwIlrsF0.js → page-Ccnk_5ji.js} +1 -1
  100. zenml/zen_server/dashboard/assets/{page-C-6XUKSp.js → page-Ci_n_x3a.js} +1 -1
  101. zenml/zen_server/dashboard/assets/page-D-ry_oLs.js +1 -0
  102. zenml/zen_server/dashboard/assets/{page-DbEn9V9E.js → page-D2TtSfnb.js} +1 -1
  103. zenml/zen_server/dashboard/assets/page-DHnkTzqs.js +1 -0
  104. zenml/zen_server/dashboard/assets/{page-B5clbTo4.js → page-DP2Ed-2m.js} +1 -1
  105. zenml/zen_server/dashboard/assets/{page-C30HZCTR.js → page-D_5R6E7b.js} +1 -1
  106. zenml/zen_server/dashboard/assets/page-DfTsntQI.js +1 -0
  107. zenml/zen_server/dashboard/assets/page-DkY7AIhj.js +1 -0
  108. zenml/zen_server/dashboard/assets/page-DmteSSj6.js +1 -0
  109. zenml/zen_server/dashboard/assets/page-Dt3wHeWX.js +1 -0
  110. zenml/zen_server/dashboard/assets/page-EXvws1ss.js +1 -0
  111. zenml/zen_server/dashboard/assets/{page-Czj8fu8q.js → page-K9yjbnd4.js} +1 -1
  112. zenml/zen_server/dashboard/assets/{page-DHDeVaMO.js → page-RV8wpZ_4.js} +1 -1
  113. zenml/zen_server/dashboard/assets/{page-DLVtrRa5.js → page-bUVHi7DE.js} +1 -1
  114. zenml/zen_server/dashboard/assets/page-cOEvFs_l.js +1 -0
  115. zenml/zen_server/dashboard/assets/page-kzSGEVUs.js +1 -0
  116. zenml/zen_server/dashboard/assets/{page-C7buw8xJ.js → page-uDGvpa5g.js} +2 -2
  117. zenml/zen_server/dashboard/assets/{page-BbygQpf-.js → page-uN0n_DE2.js} +1 -1
  118. zenml/zen_server/dashboard/assets/{page-CgJcperk.js → page-xa1EAPcI.js} +1 -1
  119. zenml/zen_server/dashboard/assets/{persist-xOAq24Bm.js → persist-CEeDYHW5.js} +1 -1
  120. zenml/zen_server/dashboard/assets/{persist-DLvsEXh0.js → persist-SSTTV5q0.js} +1 -1
  121. zenml/zen_server/dashboard/assets/{service-MHyqhRgp.js → service-BRoAA1Kq.js} +1 -1
  122. zenml/zen_server/dashboard/assets/sharedSchema-BACERDat.js +14 -0
  123. zenml/zen_server/dashboard/assets/{stack-detail-query-C1GoxBeK.js → stack-detail-query-ihiJr6nq.js} +1 -1
  124. zenml/zen_server/dashboard/assets/{update-server-settings-mutation-DduehrZn.js → update-server-settings-mutation-CK6COmw9.js} +1 -1
  125. zenml/zen_server/dashboard/index.html +4 -4
  126. zenml/zen_server/deploy/daemon/daemon_zen_server.py +1 -1
  127. zenml/zen_server/deploy/docker/docker_zen_server.py +1 -1
  128. zenml/zen_server/exceptions.py +0 -2
  129. zenml/zen_server/routers/model_versions_endpoints.py +10 -19
  130. zenml/zen_server/routers/runs_endpoints.py +7 -1
  131. zenml/zen_stores/schemas/pipeline_deployment_schemas.py +20 -3
  132. zenml/zen_stores/schemas/pipeline_run_schemas.py +21 -1
  133. zenml/zen_stores/secrets_stores/hashicorp_secrets_store.py +1 -1
  134. zenml/zen_stores/secrets_stores/sql_secrets_store.py +1 -1
  135. zenml/zen_stores/sql_zen_store.py +10 -34
  136. {zenml_nightly-0.81.0.dev20250428.dist-info → zenml_nightly-0.81.0.dev20250430.dist-info}/METADATA +2 -2
  137. {zenml_nightly-0.81.0.dev20250428.dist-info → zenml_nightly-0.81.0.dev20250430.dist-info}/RECORD +140 -139
  138. zenml/zen_server/dashboard/assets/CollapsibleCard-9sSz7n1R.js +0 -1
  139. zenml/zen_server/dashboard/assets/DialogItem-DHw2ihTx.js +0 -1
  140. zenml/zen_server/dashboard/assets/NestedCollapsible-Ce1bmT8N.js +0 -1
  141. zenml/zen_server/dashboard/assets/ProBadge-CDEqgzh8.js +0 -1
  142. zenml/zen_server/dashboard/assets/RunSelector-DoL_gMHJ.js +0 -1
  143. zenml/zen_server/dashboard/assets/RunsBody-B6mBjv-_.js +0 -1
  144. zenml/zen_server/dashboard/assets/SearchField-DHl5flXv.js +0 -1
  145. zenml/zen_server/dashboard/assets/StackList-dhdUtky3.js +0 -1
  146. zenml/zen_server/dashboard/assets/Tabs-BuZG8ft1.js +0 -1
  147. zenml/zen_server/dashboard/assets/Tick-C4gtED35.js +0 -1
  148. zenml/zen_server/dashboard/assets/index-6mLFgFwe.css +0 -1
  149. zenml/zen_server/dashboard/assets/page-3lW9eIer.js +0 -1
  150. zenml/zen_server/dashboard/assets/page-9PzQok8O.js +0 -1
  151. zenml/zen_server/dashboard/assets/page-BEibNYiA.js +0 -6
  152. zenml/zen_server/dashboard/assets/page-BOE2XBFy.js +0 -1
  153. zenml/zen_server/dashboard/assets/page-Bki79xdd.js +0 -1
  154. zenml/zen_server/dashboard/assets/page-BnKwJnOb.js +0 -1
  155. zenml/zen_server/dashboard/assets/page-CBGeo-7W.js +0 -2
  156. zenml/zen_server/dashboard/assets/page-Co-FJ5ds.js +0 -1
  157. zenml/zen_server/dashboard/assets/page-Cu8vuohQ.js +0 -1
  158. zenml/zen_server/dashboard/assets/page-D0QcEBi1.js +0 -1
  159. zenml/zen_server/dashboard/assets/page-DKY_U5Sz.js +0 -1
  160. zenml/zen_server/dashboard/assets/page-DQHU5o_C.js +0 -1
  161. zenml/zen_server/dashboard/assets/page-DpY1koQY.js +0 -1
  162. zenml/zen_server/dashboard/assets/page-DrS4WOup.js +0 -1
  163. zenml/zen_server/dashboard/assets/page-HIAPXq4w.js +0 -1
  164. zenml/zen_server/dashboard/assets/page-Jw2QAdxa.js +0 -1
  165. zenml/zen_server/dashboard/assets/sharedSchema-CQA5lnlU.js +0 -14
  166. {zenml_nightly-0.81.0.dev20250428.dist-info → zenml_nightly-0.81.0.dev20250430.dist-info}/LICENSE +0 -0
  167. {zenml_nightly-0.81.0.dev20250428.dist-info → zenml_nightly-0.81.0.dev20250430.dist-info}/WHEEL +0 -0
  168. {zenml_nightly-0.81.0.dev20250428.dist-info → zenml_nightly-0.81.0.dev20250430.dist-info}/entry_points.txt +0 -0
@@ -1 +1 @@
1
- import{j as e,r as k}from"./@radix-C7hRs6Kx.js";import{j as I,o as q,F as Q,p as L,ak as G,am as X,an as W,ao as H,S as B,aY as ee,aZ as se,ag as re,a_ as te,a$ as ae,b0 as ne,I as $,b1 as oe,b2 as ie,b3 as A,b4 as N,m as le,b5 as ce,B as me,_ as de,h as v,X as ue,z as C,l as pe,f as xe,aj as he,Y as fe}from"./index-hsSXyS3H.js";import{b as M,h as je,a as O,c as ge}from"./@tanstack-CSxjHCME.js";import{s as ye,g as Ne,a as ve,D as Ce,b as be,f as we}from"./index-ojAuWXMf.js";import{w as Se}from"./index-BoWZ9rXk.js";import{t as Fe}from"./zod-C0xYeTvL.js";import{b as Pe,C as _e,u as ze,F as Te}from"./index.esm-D7jFlf5N.js";import{b as Ee,C as ke}from"./ComponentIcon-CSxdApv8.js";import{S as Ae}from"./check-DK77doTf.js";import{S as Oe}from"./plus-COjQg3AG.js";import{C as De}from"./CodeSnippet-nRnOvbOJ.js";import{S as Ie}from"./file-text-BdxZdjP_.js";import{S as qe}from"./terminal-square-DMtel8mb.js";async function Qe({payload:s,workspaceId:t}){const a=q(L.workspaces.components(t)),n=await I(a,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(s)});if(!n.ok){const u=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>"Error while creating new stack");throw new Q({status:n.status,statusText:n.statusText,message:u})}return n.json()}function Le(s){return M({...s,mutationFn:async({workspaceId:t,payload:a})=>Qe({workspaceId:t,payload:a})})}function Be({open:s,setOpen:t}){return e.jsx(G,{open:s,onOpenChange:t,children:e.jsxs(X,{className:"max-w-[600px]",children:[e.jsx(W,{children:e.jsx(H,{children:"Create Service Connector"})}),e.jsx("div",{className:"min-w-0 p-5",children:e.jsxs("div",{className:"min-w-0 max-w-full space-y-1",children:[e.jsx("p",{children:"Create a new service connector"}),e.jsx(De,{wrap:!0,code:"zenml service-connector register <NAME> --type=<TYPE> --interactive"})]})})]})})}function $e({connectorResourceType:s}){var h;const t=Pe(),[a,n]=k.useState(!1),[u,i]=k.useState(!1),p=je(ye.serviceConnectorListInfinite({resource_type:s,sort_by:"desc:created"}));if(p.isPending)return e.jsx(B,{className:"h-[60px] w-full"});if(p.isError)return e.jsx("div",{children:"Error"});const c=(h=p.data)==null?void 0:h.pages.flatMap(m=>m.items);return e.jsxs(e.Fragment,{children:[e.jsx(_e,{control:t.control,name:"connector",render:({field:m})=>e.jsxs(ee,{modal:!0,open:a,onOpenChange:n,children:[e.jsx(se,{asChild:!0,children:e.jsx("button",{className:re("w-full flex-1 truncate rounded-md border border-primary-400 bg-theme-surface-secondary px-2",{"h-7":!m.value,"py-2 pl-2 pr-3 text-left":m.value}),children:m.value?(()=>{const r=c.find(d=>d.id===m.value);return r?e.jsx(D,{connector:r}):"Select Connector"})():"Select Connector"})}),e.jsx(te,{className:"p-0",style:{width:"var(--radix-popover-trigger-width)"},align:"start",children:e.jsxs(ae,{filter:(r,d)=>r.toLowerCase().includes(d.toLowerCase())||r.includes("doNotFilter-")?1:0,children:[c.length>0&&e.jsx(ne,{placeholder:"Search connectors...",children:e.jsx($,{className:"w-full",inputSize:"sm"})}),e.jsx(oe,{className:"space-y-1 p-2",children:e.jsxs("div",{className:"space-y-1",children:[c.length>0?e.jsxs(e.Fragment,{children:[e.jsx(ie,{children:"No results"}),e.jsx(A,{className:"max-h-[300px] overflow-y-auto",children:c.map(r=>e.jsxs(N,{value:`${r.id}:${r.name}`,onSelect:d=>{const[f]=d.split(":");t.setValue("connector",m.value===f?"":f),n(!1)},children:[e.jsx(D,{connector:r}),e.jsx(Ae,{className:le("fill-brand-500 ml-auto size-4 shrink-0",m.value===r.id?"opacity-100":"opacity-0")})]},r.id))})]}):e.jsx("div",{className:"p-2 text-center text-theme-text-secondary",children:"No connectors found"}),e.jsx(ce,{className:"-mx-1"}),e.jsxs(A,{children:[p.hasNextPage&&e.jsx(N,{value:"doNotFilter-fetch-more",className:"flex items-center font-semibold",onSelect:()=>{p.fetchNextPage()},children:"Load more"}),e.jsxs(N,{value:"doNotFilter-create-new",className:"flex items-center gap-2 font-semibold",onSelect:()=>{n(!1),i(!0)},children:[e.jsx(Oe,{className:"size-3 shrink-0 fill-neutral-400"}),"Create new Service Connector"]})]})]})})]})})]})}),e.jsx(Be,{open:u,setOpen:i})]})}function D({connector:s}){var t,a;return e.jsxs("div",{className:"flex items-center gap-2",children:[typeof((t=s.body)==null?void 0:t.connector_type)=="object"&&((a=s.body)==null?void 0:a.connector_type.logo_url)&&e.jsx("img",{src:s.body.connector_type.logo_url,alt:s.name,className:"size-5 shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s.name}),e.jsx("div",{className:"text-theme-text-secondary",children:s.id.split("-")[0]})]})]})}function Me({connectorResourceType:s}){return e.jsxs("section",{className:"w-full max-w-full space-y-3 overflow-x-hidden rounded-md border border-warning-50 bg-[#FFF6EA] p-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ee,{className:"size-5 shrink-0 fill-warning-400"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Connect to resource"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You can select a Service Connector to connect ZenML to external resources"})]}),e.jsx($e,{connectorResourceType:s})]})}function Re({sdkDocsUrl:s,name:t,logoUrl:a,type:n}){return e.jsxs(me,{className:"space-y-5 overflow-hidden pb-5",children:[e.jsx("div",{className:"flex h-[120px] w-full items-center justify-center bg-teal-25",children:a?e.jsx("img",{width:60,height:60,className:"aspect-square object-contain",src:de(a),alt:`Logo of ${t}`}):e.jsx(ke,{className:"aspect-square h-[60px] w-[60px] fill-primary-400 object-contain",type:n})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"px-5",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Need Help?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow our extensive documentation to get started."})]}),e.jsxs("ul",{className:"space-y-0.5 px-5",children:[!!s&&e.jsx("li",{children:e.jsx(v,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:s,children:[e.jsx(Ie,{className:"size-5 shrink-0 fill-primary-600"}),"Api Reference"]})})}),e.jsx("li",{children:e.jsx(v,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:"https://github.com/zenml-io/zenml/tree/main/examples",children:[e.jsx(qe,{className:"size-5 shrink-0 fill-primary-600"}),"Navigate our examples"]})})}),e.jsx("li",{children:e.jsx(v,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:"https://www.zenml.io/blog",children:[e.jsx(ue,{className:"size-5 shrink-0 fill-primary-600"}),"Read our blog"]})})})]})]})]})}const Ue=C.object({componentName:C.string().min(1,"Component name is required"),connector:C.string()});async function Ve({componentId:s,payload:t}){const a=q(L.components.detail(s)),n=await I(a,{headers:{"Content-Type":"application/json"},method:"PUT",body:JSON.stringify(t)});if(!n.ok){const u=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>"Error while creating new stack");throw new Q({status:n.status,statusText:n.statusText,message:u})}return n.json()}function Ye(s){return M({...s,mutationFn:async({payload:t,componentId:a})=>Ve({payload:t,componentId:a})})}function is({flavorId:s,formId:t,successHandler:a,FooterComponent:n,useMaxHeight:u=!1,component:i,isCreate:p=!0}){var r,d,f,g;const c=O(we.flavorDetail(s)),h=pe(),m=O(Se.workspaceDetail("default"));return c.isPending||h.isPending||m.isPending?e.jsx("div",{className:"px-8 py-5",children:e.jsx(B,{className:"h-[250px] w-full"})}):c.isError||h.isError||m.isError?e.jsx("p",{className:"px-8 py-5",children:"Failed to fetch flavor"}):e.jsx(Ke,{isCreate:p,component:i,useMaxHeight:u,infoTile:e.jsx(Re,{type:((r=c.data.body)==null?void 0:r.type)||"orchestrator",name:c.data.name,sdkDocsUrl:((d=c.data.metadata)==null?void 0:d.sdk_docs_url)??void 0,logoUrl:((f=c.data.body)==null?void 0:f.logo_url)??void 0}),FooterComponent:n,successHandler:a,workspaceId:m.data.id,flavor:c.data,userId:h.data.id,formId:t,schema:(g=c.data.metadata)==null?void 0:g.config_schema})}function Ke({formId:s,schema:t,flavor:a,userId:n,workspaceId:u,successHandler:i,infoTile:p,FooterComponent:c,useMaxHeight:h,isCreate:m,component:r}){var S,F,P,_,z;const{toast:d}=xe(),f=fe.all,g=ge(),b=Le({onSuccess:({id:o})=>{g.invalidateQueries({queryKey:f}),i==null||i(o)},onError:o=>{d({emphasis:"subtle",status:"error",rounded:!0,description:o.message})}}),R=Ye({onSuccess:({id:o})=>{g.invalidateQueries({queryKey:f}),i==null||i(o)},onError:o=>{d({emphasis:"subtle",status:"error",rounded:!0,description:o.message})}}),U=t.properties||{},y=t.required||[],V=t.$defs;function Y({componentName:o,...l}){if(Object.keys(l).forEach(x=>{(l[x]===""||l[x]===null||l[x]===void 0||Array.isArray(l[x])&&l[x].length===0||typeof l[x]=="object"&&!Array.isArray(l[x])&&Object.keys(l[x]).length===0)&&delete l[x]}),!a.body)return;const{connector:T,...E}=l;if(m)b.mutate({workspaceId:u,payload:{name:o,configuration:E,flavor:a.name,type:a.body.type,user:n,connector:T||null,workspace:u}});else{if(!r)return;R.mutate({componentId:r.id,payload:{name:o,configuration:E,connector:T||null}})}}const K=Ue.merge(Ne(t)),Z=ve(t,(S=r==null?void 0:r.metadata)==null?void 0:S.configuration),j=ze({resolver:Fe(K),defaultValues:{componentName:(r==null?void 0:r.name)??"",connector:((P=(F=r==null?void 0:r.metadata)==null?void 0:F.connector)==null?void 0:P.id)??"",...Z}}),{handleSubmit:J}=j,w=Object.entries(U).sort(([o],[l])=>y.includes(o)&&!y.includes(l)?-1:!y.includes(o)&&y.includes(l)?1:0);return e.jsx(Te,{...j,children:e.jsxs("form",{onSubmit:o=>(o.stopPropagation(),J(Y)(o)),id:s,children:[e.jsx(he,{viewportClassName:h?"max-h-[70vh]":"",children:e.jsxs("div",{className:"space-y-4 p-8",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{className:"text-text-lg font-semibold",children:"Component Name"}),e.jsx($,{...j.register("componentName"),"data-error":j.formState.errors.componentName?"true":"false",className:"w-full data-[error=true]:border-error-500",inputSize:"lg"}),j.formState.errors.componentName&&e.jsx("p",{className:"text-text-sm text-error-500",children:(_=j.formState.errors.componentName.message)==null?void 0:_.toString()})]}),e.jsxs("div",{className:"flex flex-col-reverse gap-5 xl:flex-row",children:[e.jsxs("div",{className:"flex-1 space-y-5",children:[(z=a.metadata)!=null&&z.connector_resource_type?e.jsx(Me,{connectorResourceType:a.metadata.connector_resource_type}):null,w.length>0?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Attributes"}),w.map(([o,l])=>e.jsx(Ce,{definitions:V,isOptional:be(o,y),name:o,schema:l},o))]}):null]}),e.jsx("div",{className:"w-full xl:w-1/3",children:p})]})]})}),e.jsx(c,{formId:s,isPending:b.isPending})]})})}export{is as C};
1
+ import{j as e,r as k}from"./@radix-C7hRs6Kx.js";import{j as I,o as q,F as Q,p as L,ai as X,ak as G,al as W,am as H,S as B,aX as ee,aY as se,ae as re,aZ as te,a_ as ae,a$ as ne,I as $,b0 as oe,b1 as ie,b2 as A,b3 as N,m as le,b4 as ce,B as me,Z as de,h as v,W as ue,z as C,l as pe,f as xe,ah as he,X as fe}from"./index-BygJE88j.js";import{b as M,h as je,a as O,c as ge}from"./@tanstack-CSxjHCME.js";import{s as ye,g as Ne,a as ve,D as Ce,b as be,f as we}from"./index-D9-ukAem.js";import{w as Se}from"./index-wYtmKLnQ.js";import{t as Fe}from"./zod-C0xYeTvL.js";import{b as Pe,C as ze,u as _e,F as Te}from"./index.esm-D7jFlf5N.js";import{b as Ee,C as ke}from"./ComponentIcon-B_7Y_oV-.js";import{S as Ae}from"./check-DK77doTf.js";import{S as Oe}from"./plus-COjQg3AG.js";import{C as De}from"./CodeSnippet-Di-loaZu.js";import{S as Ie}from"./file-text-BdxZdjP_.js";import{S as qe}from"./terminal-square-DMtel8mb.js";async function Qe({payload:s,workspaceId:t}){const a=q(L.workspaces.components(t)),n=await I(a,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(s)});if(!n.ok){const u=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>"Error while creating new stack");throw new Q({status:n.status,statusText:n.statusText,message:u})}return n.json()}function Le(s){return M({...s,mutationFn:async({workspaceId:t,payload:a})=>Qe({workspaceId:t,payload:a})})}function Be({open:s,setOpen:t}){return e.jsx(X,{open:s,onOpenChange:t,children:e.jsxs(G,{className:"max-w-[600px]",children:[e.jsx(W,{children:e.jsx(H,{children:"Create Service Connector"})}),e.jsx("div",{className:"min-w-0 p-5",children:e.jsxs("div",{className:"min-w-0 max-w-full space-y-1",children:[e.jsx("p",{children:"Create a new service connector"}),e.jsx(De,{wrap:!0,code:"zenml service-connector register <NAME> --type=<TYPE> --interactive"})]})})]})})}function $e({connectorResourceType:s}){var h;const t=Pe(),[a,n]=k.useState(!1),[u,i]=k.useState(!1),p=je(ye.serviceConnectorListInfinite({resource_type:s,sort_by:"desc:created"}));if(p.isPending)return e.jsx(B,{className:"h-[60px] w-full"});if(p.isError)return e.jsx("div",{children:"Error"});const c=(h=p.data)==null?void 0:h.pages.flatMap(m=>m.items);return e.jsxs(e.Fragment,{children:[e.jsx(ze,{control:t.control,name:"connector",render:({field:m})=>e.jsxs(ee,{modal:!0,open:a,onOpenChange:n,children:[e.jsx(se,{asChild:!0,children:e.jsx("button",{className:re("w-full flex-1 truncate rounded-md border border-primary-400 bg-theme-surface-secondary px-2",{"h-7":!m.value,"py-2 pl-2 pr-3 text-left":m.value}),children:m.value?(()=>{const r=c.find(d=>d.id===m.value);return r?e.jsx(D,{connector:r}):"Select Connector"})():"Select Connector"})}),e.jsx(te,{className:"p-0",style:{width:"var(--radix-popover-trigger-width)"},align:"start",children:e.jsxs(ae,{filter:(r,d)=>r.toLowerCase().includes(d.toLowerCase())||r.includes("doNotFilter-")?1:0,children:[c.length>0&&e.jsx(ne,{placeholder:"Search connectors...",children:e.jsx($,{className:"w-full",inputSize:"sm"})}),e.jsx(oe,{className:"space-y-1 p-2",children:e.jsxs("div",{className:"space-y-1",children:[c.length>0?e.jsxs(e.Fragment,{children:[e.jsx(ie,{children:"No results"}),e.jsx(A,{className:"max-h-[300px] overflow-y-auto",children:c.map(r=>e.jsxs(N,{value:`${r.id}:${r.name}`,onSelect:d=>{const[f]=d.split(":");t.setValue("connector",m.value===f?"":f),n(!1)},children:[e.jsx(D,{connector:r}),e.jsx(Ae,{className:le("fill-brand-500 ml-auto size-4 shrink-0",m.value===r.id?"opacity-100":"opacity-0")})]},r.id))})]}):e.jsx("div",{className:"p-2 text-center text-theme-text-secondary",children:"No connectors found"}),e.jsx(ce,{className:"-mx-1"}),e.jsxs(A,{children:[p.hasNextPage&&e.jsx(N,{value:"doNotFilter-fetch-more",className:"flex items-center font-semibold",onSelect:()=>{p.fetchNextPage()},children:"Load more"}),e.jsxs(N,{value:"doNotFilter-create-new",className:"flex items-center gap-2 font-semibold",onSelect:()=>{n(!1),i(!0)},children:[e.jsx(Oe,{className:"size-3 shrink-0 fill-neutral-400"}),"Create new Service Connector"]})]})]})})]})})]})}),e.jsx(Be,{open:u,setOpen:i})]})}function D({connector:s}){var t,a;return e.jsxs("div",{className:"flex items-center gap-2",children:[typeof((t=s.body)==null?void 0:t.connector_type)=="object"&&((a=s.body)==null?void 0:a.connector_type.logo_url)&&e.jsx("img",{src:s.body.connector_type.logo_url,alt:s.name,className:"size-5 shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s.name}),e.jsx("div",{className:"text-theme-text-secondary",children:s.id.split("-")[0]})]})]})}function Me({connectorResourceType:s}){return e.jsxs("section",{className:"w-full max-w-full space-y-3 overflow-x-hidden rounded-md border border-warning-50 bg-[#FFF6EA] p-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ee,{className:"size-5 shrink-0 fill-warning-400"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Connect to resource"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You can select a Service Connector to connect ZenML to external resources"})]}),e.jsx($e,{connectorResourceType:s})]})}function Re({sdkDocsUrl:s,name:t,logoUrl:a,type:n}){return e.jsxs(me,{className:"space-y-5 overflow-hidden pb-5",children:[e.jsx("div",{className:"flex h-[120px] w-full items-center justify-center bg-teal-25",children:a?e.jsx("img",{width:60,height:60,className:"aspect-square object-contain",src:de(a),alt:`Logo of ${t}`}):e.jsx(ke,{className:"aspect-square h-[60px] w-[60px] fill-primary-400 object-contain",type:n})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"px-5",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Need Help?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow our extensive documentation to get started."})]}),e.jsxs("ul",{className:"space-y-0.5 px-5",children:[!!s&&e.jsx("li",{children:e.jsx(v,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:s,children:[e.jsx(Ie,{className:"size-5 shrink-0 fill-primary-600"}),"Api Reference"]})})}),e.jsx("li",{children:e.jsx(v,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:"https://github.com/zenml-io/zenml/tree/main/examples",children:[e.jsx(qe,{className:"size-5 shrink-0 fill-primary-600"}),"Navigate our examples"]})})}),e.jsx("li",{children:e.jsx(v,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:"https://www.zenml.io/blog",children:[e.jsx(ue,{className:"size-5 shrink-0 fill-primary-600"}),"Read our blog"]})})})]})]})]})}const Ue=C.object({componentName:C.string().min(1,"Component name is required"),connector:C.string()});async function Ve({componentId:s,payload:t}){const a=q(L.components.detail(s)),n=await I(a,{headers:{"Content-Type":"application/json"},method:"PUT",body:JSON.stringify(t)});if(!n.ok){const u=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>"Error while creating new stack");throw new Q({status:n.status,statusText:n.statusText,message:u})}return n.json()}function Ze(s){return M({...s,mutationFn:async({payload:t,componentId:a})=>Ve({payload:t,componentId:a})})}function is({flavorId:s,formId:t,successHandler:a,FooterComponent:n,useMaxHeight:u=!1,component:i,isCreate:p=!0}){var r,d,f,g;const c=O(we.flavorDetail(s)),h=pe(),m=O(Se.workspaceDetail("default"));return c.isPending||h.isPending||m.isPending?e.jsx("div",{className:"px-8 py-5",children:e.jsx(B,{className:"h-[250px] w-full"})}):c.isError||h.isError||m.isError?e.jsx("p",{className:"px-8 py-5",children:"Failed to fetch flavor"}):e.jsx(Ke,{isCreate:p,component:i,useMaxHeight:u,infoTile:e.jsx(Re,{type:((r=c.data.body)==null?void 0:r.type)||"orchestrator",name:c.data.name,sdkDocsUrl:((d=c.data.metadata)==null?void 0:d.sdk_docs_url)??void 0,logoUrl:((f=c.data.body)==null?void 0:f.logo_url)??void 0}),FooterComponent:n,successHandler:a,workspaceId:m.data.id,flavor:c.data,userId:h.data.id,formId:t,schema:(g=c.data.metadata)==null?void 0:g.config_schema})}function Ke({formId:s,schema:t,flavor:a,userId:n,workspaceId:u,successHandler:i,infoTile:p,FooterComponent:c,useMaxHeight:h,isCreate:m,component:r}){var S,F,P,z,_;const{toast:d}=xe(),f=fe.all,g=ge(),b=Le({onSuccess:({id:o})=>{g.invalidateQueries({queryKey:f}),i==null||i(o)},onError:o=>{d({emphasis:"subtle",status:"error",rounded:!0,description:o.message})}}),R=Ze({onSuccess:({id:o})=>{g.invalidateQueries({queryKey:f}),i==null||i(o)},onError:o=>{d({emphasis:"subtle",status:"error",rounded:!0,description:o.message})}}),U=t.properties||{},y=t.required||[],V=t.$defs;function Z({componentName:o,...l}){if(Object.keys(l).forEach(x=>{(l[x]===""||l[x]===null||l[x]===void 0||Array.isArray(l[x])&&l[x].length===0||typeof l[x]=="object"&&!Array.isArray(l[x])&&Object.keys(l[x]).length===0)&&delete l[x]}),!a.body)return;const{connector:T,...E}=l;if(m)b.mutate({workspaceId:u,payload:{name:o,configuration:E,flavor:a.name,type:a.body.type,user:n,connector:T||null,workspace:u}});else{if(!r)return;R.mutate({componentId:r.id,payload:{name:o,configuration:E,connector:T||null}})}}const K=Ue.merge(Ne(t)),Y=ve(t,(S=r==null?void 0:r.metadata)==null?void 0:S.configuration),j=_e({resolver:Fe(K),defaultValues:{componentName:(r==null?void 0:r.name)??"",connector:((P=(F=r==null?void 0:r.metadata)==null?void 0:F.connector)==null?void 0:P.id)??"",...Y}}),{handleSubmit:J}=j,w=Object.entries(U).sort(([o],[l])=>y.includes(o)&&!y.includes(l)?-1:!y.includes(o)&&y.includes(l)?1:0);return e.jsx(Te,{...j,children:e.jsxs("form",{onSubmit:o=>(o.stopPropagation(),J(Z)(o)),id:s,children:[e.jsx(he,{viewportClassName:h?"max-h-[70vh]":"",children:e.jsxs("div",{className:"space-y-4 p-8",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{className:"text-text-lg font-semibold",children:"Component Name"}),e.jsx($,{...j.register("componentName"),"data-error":j.formState.errors.componentName?"true":"false",className:"w-full data-[error=true]:border-error-500",inputSize:"lg"}),j.formState.errors.componentName&&e.jsx("p",{className:"text-text-sm text-error-500",children:(z=j.formState.errors.componentName.message)==null?void 0:z.toString()})]}),e.jsxs("div",{className:"flex flex-col-reverse gap-5 xl:flex-row",children:[e.jsxs("div",{className:"flex-1 space-y-5",children:[(_=a.metadata)!=null&&_.connector_resource_type?e.jsx(Me,{connectorResourceType:a.metadata.connector_resource_type}):null,w.length>0?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Attributes"}),w.map(([o,l])=>e.jsx(Ce,{definitions:V,isOptional:be(o,y),name:o,schema:l},o))]}):null]}),e.jsx("div",{className:"w-full xl:w-1/3",children:p})]})]})}),e.jsx(c,{formId:s,isPending:b.isPending})]})})}export{is as C};
@@ -1 +1 @@
1
- import{r as o,j as n}from"./@radix-C7hRs6Kx.js";import{m as i,o as u,F as d,p as m}from"./index-hsSXyS3H.js";import{b as p}from"./@tanstack-CSxjHCME.js";const l=o.forwardRef(({className:e,...t},r)=>n.jsx("label",{ref:r,...t,className:i("flex w-full items-center gap-2 space-x-2 rounded-md border border-theme-border-moderate p-4 font-semibold transition-shadow duration-150 hover:cursor-pointer hover:shadow-sm data-[state=selected]:border-theme-surface-strong",e)}));l.displayName="RadioItemLabel";const f=o.forwardRef(({className:e,type:t,...r},a)=>n.jsx("input",{type:"radio",ref:a,...r,className:i("h-3 w-3 border !border-theme-border-bold text-theme-surface-primary focus:ring-2 focus:ring-theme-surface-strong",e)}));f.displayName="RadioItem";function x(e){return new Promise(t=>setTimeout(t,e))}async function h({workspaceId:e,payload:t}){const r=u(m.workspaces.stacks(e)),a=await fetch(r,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok){const c=await a.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while creating new stack");throw new d({status:a.status,statusText:a.statusText,message:c})}return a.json()}function g(e){return p({...e,mutationFn:async({workspaceId:t,payload:r})=>h({workspaceId:t,payload:r})})}export{l as R,f as a,x as s,g as u};
1
+ import{r as o,j as n}from"./@radix-C7hRs6Kx.js";import{m as i,o as u,F as d,p as m}from"./index-BygJE88j.js";import{b as p}from"./@tanstack-CSxjHCME.js";const l=o.forwardRef(({className:e,...t},r)=>n.jsx("label",{ref:r,...t,className:i("flex w-full items-center gap-2 space-x-2 rounded-md border border-theme-border-moderate p-4 font-semibold transition-shadow duration-150 hover:cursor-pointer hover:shadow-sm data-[state=selected]:border-theme-surface-strong",e)}));l.displayName="RadioItemLabel";const f=o.forwardRef(({className:e,type:t,...r},a)=>n.jsx("input",{type:"radio",ref:a,...r,className:i("h-3 w-3 border !border-theme-border-bold text-theme-surface-primary focus:ring-2 focus:ring-theme-surface-strong",e)}));f.displayName="RadioItem";function x(e){return new Promise(t=>setTimeout(t,e))}async function h({workspaceId:e,payload:t}){const r=u(m.workspaces.stacks(e)),a=await fetch(r,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok){const c=await a.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while creating new stack");throw new d({status:a.status,statusText:a.statusText,message:c})}return a.json()}function g(e){return p({...e,mutationFn:async({workspaceId:t,payload:r})=>h({workspaceId:t,payload:r})})}export{l as R,f as a,x as s,g as u};
@@ -1 +1 @@
1
- import{o,F as r,p as i}from"./index-hsSXyS3H.js";import{b as u}from"./@tanstack-CSxjHCME.js";async function c({runId:e}){const a=o(i.runs.detail(e)),t=await fetch(a,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}});if(!t.ok){const s=await t.json().then(n=>n.detail).catch(()=>`Failed to delete run ${e}`);throw new r({status:t.status,statusText:t.statusText,message:s})}return t.json()}function p(e){return u({mutationFn:c,...e})}export{p as u};
1
+ import{o,F as r,p as i}from"./index-BygJE88j.js";import{b as u}from"./@tanstack-CSxjHCME.js";async function c({runId:e}){const a=o(i.runs.detail(e)),t=await fetch(a,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}});if(!t.ok){const s=await t.json().then(n=>n.detail).catch(()=>`Failed to delete run ${e}`);throw new r({status:t.status,statusText:t.statusText,message:s})}return t.json()}function p(e){return u({mutationFn:c,...e})}export{p as u};
@@ -0,0 +1 @@
1
+ import{r as e}from"./@radix-C7hRs6Kx.js";const o=t=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12ZM10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12ZM17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12Z"}));export{o as S};
@@ -1 +1 @@
1
- import{j as s}from"./@radix-C7hRs6Kx.js";import{S as l,h as c,_ as m,ae as d}from"./index-hsSXyS3H.js";import{f as p}from"./index-ojAuWXMf.js";import{h as u}from"./@tanstack-CSxjHCME.js";import{C as x}from"./ComponentIcon-CSxdApv8.js";function y({type:i,setSelectedFlavor:e}){const a=u(p.flavorListInfinite({type:i}));if(a.isPending)return s.jsx(g,{});if(a.isError)return s.jsx("p",{children:"Failed to fetch Flavor List"});const{data:t}=a;return s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 2xl:grid-cols-4",children:t.pages.map(n=>n.items.map(r=>{var o;return s.jsx("li",{className:"",children:s.jsx(f,{type:i,onClick:()=>e(r),id:r.id,name:r.name,logoUrl:((o=r.body)==null?void 0:o.logo_url)??void 0})},r.id)}))})}function f({name:i,logoUrl:e,onClick:a,type:t}){return s.jsxs(c,{onClick:a,intent:"secondary",emphasis:"subtle",className:"h-auto w-full gap-2 px-5 py-3",children:[e?s.jsx("img",{alt:`Logo of ${i}`,width:36,height:36,className:"aspect-square object-contain",src:m(e)}):s.jsx(x,{className:"aspect-square h-[36px] w-[36px] fill-primary-400 object-contain",type:t}),s.jsx("span",{className:"min-w-0 truncate",children:d(i)})]})}function g(){return s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 2xl:grid-cols-4",children:Array.from({length:4}).map((i,e)=>s.jsx(l,{className:"h-[70px] w-full"},e))})}export{y as S};
1
+ import{j as s}from"./@radix-C7hRs6Kx.js";import{S as l,h as c,Z as m,ac as d}from"./index-BygJE88j.js";import{f as p}from"./index-D9-ukAem.js";import{h as u}from"./@tanstack-CSxjHCME.js";import{C as x}from"./ComponentIcon-B_7Y_oV-.js";function y({type:i,setSelectedFlavor:e}){const a=u(p.flavorListInfinite({type:i}));if(a.isPending)return s.jsx(g,{});if(a.isError)return s.jsx("p",{children:"Failed to fetch Flavor List"});const{data:t}=a;return s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 2xl:grid-cols-4",children:t.pages.map(n=>n.items.map(r=>{var o;return s.jsx("li",{className:"",children:s.jsx(f,{type:i,onClick:()=>e(r),id:r.id,name:r.name,logoUrl:((o=r.body)==null?void 0:o.logo_url)??void 0})},r.id)}))})}function f({name:i,logoUrl:e,onClick:a,type:t}){return s.jsxs(c,{onClick:a,intent:"secondary",emphasis:"subtle",className:"h-auto w-full gap-2 px-5 py-3",children:[e?s.jsx("img",{alt:`Logo of ${i}`,width:36,height:36,className:"aspect-square object-contain",src:m(e)}):s.jsx(x,{className:"aspect-square h-[36px] w-[36px] fill-primary-400 object-contain",type:t}),s.jsx("span",{className:"min-w-0 truncate",children:d(i)})]})}function g(){return s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 2xl:grid-cols-4",children:Array.from({length:4}).map((i,e)=>s.jsx(l,{className:"h-[70px] w-full"},e))})}export{y as S};
@@ -1 +1 @@
1
- import{r as n,j as s}from"./@radix-C7hRs6Kx.js";import{S as u}from"./check-circle-mvyzYvIW.js";import{bb as p,B as h,h as d,r as x,z as r}from"./index-hsSXyS3H.js";import{d as f,L as g}from"./@react-router-BGgzhn5D.js";import{a as S}from"./UpdatePasswordSchemas-3gg2tC-H.js";const c=n.createContext(null);function R({children:e,initialStep:t=1}){const[a,o]=n.useState(t);return s.jsx(c.Provider,{value:{surveyStep:a,setSurveyStep:o},children:e})}function y(){const e=n.useContext(c);if(e===null)throw new Error("useSurveyContext must be used within an SurveyProvider");return e}function _({stepAmount:e}){const{surveyStep:t}=y();return t>e?null:s.jsx("ol",{className:"flex flex-wrap justify-center gap-1 pb-5","aria-label":"progress",children:Array.from({length:e},(a,o)=>s.jsx("li",{"aria-current":t===o+1?"step":void 0,className:`h-0.5 w-[90px] rounded-rounded ${t===o+1?"bg-primary-100":t>o?"bg-primary-300":"bg-neutral-200"}`},o))})}const v=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071C10.9024 19.3166 10.9024 18.6834 11.2929 18.2929L16.5858 13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H16.5858L11.2929 5.70711C10.9024 5.31658 10.9024 4.68342 11.2929 4.29289Z"}));function U({username:e,subHeader:t,displayBody:a=!0}){const[o]=f(),i=o.get("redirect"),m=i&&`${window.location.origin}${i}`,l=p.safeParse(m);return s.jsxs(h,{className:"flex max-w-[540px] flex-col items-center justify-center space-y-7 px-7 py-9",children:[s.jsx(u,{className:"h-[120px] w-[120px] fill-theme-text-success"}),s.jsxs("div",{className:"space-y-3 text-center",children:[s.jsxs("p",{className:"text-display-xs font-semibold",children:["Congratulations!",s.jsx("br",{}),t]}),a&&s.jsxs("p",{className:"text-theme-text-secondary",children:["You can log in to the dashboard with your username"," ",s.jsx("span",{className:"font-semibold text-theme-text-primary",children:e})," and your password to start exploring!"]}),s.jsx(d,{className:"inline-flex",size:"md",intent:"primary",asChild:!0,children:s.jsxs(g,{to:l.success?l.data:x.home,children:[s.jsx("span",{children:"Go to Dashboard"}),s.jsx(v,{className:"h-5 w-5 fill-white"})]})})]})]})}const F=r.object({fullName:r.string().min(1),email:r.union([r.string().email(),r.literal("")]),getUpdates:r.boolean()}).refine(e=>e.getUpdates?e.email!=="":!0),L=r.object({primaryUse:r.string().min(1)}),B=r.object({providers:r.string().array(),other:r.boolean(),otherVal:r.string().optional()}).refine(e=>e.other?e.otherVal!=="":e.providers.length>0),E=r.object({serverName:r.string().optional()});function w(e=!1){return S.extend({username:r.string()}).refine(t=>t.newPassword===t.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"}).refine(t=>e?t.username.length>0:!0)}w();const T=r.object({usageReason:r.union([r.enum(["exploring","planning_poc","comparing_tools","implementing_production_environment"]),r.literal("")]),comparison_tools:r.string().array().optional(),otherTool:r.boolean().optional(),otherToolVal:r.string().optional()}).refine(e=>{var t;return e.usageReason.length===0?!1:e.otherTool?e.otherToolVal!=="":e.usageReason==="comparing_tools"?((t=e.comparison_tools)==null?void 0:t.length)??!1:!0});export{B as I,_ as S,T as U,U as a,R as b,E as c,F as d,w as g,L as p,y as u};
1
+ import{r as n,j as s}from"./@radix-C7hRs6Kx.js";import{S as u}from"./check-circle-mvyzYvIW.js";import{ba as p,B as h,h as d,r as x,z as r}from"./index-BygJE88j.js";import{d as f,L as g}from"./@react-router-CNP6g_RL.js";import{a as S}from"./UpdatePasswordSchemas-p3RX0P-Q.js";const c=n.createContext(null);function R({children:e,initialStep:t=1}){const[a,o]=n.useState(t);return s.jsx(c.Provider,{value:{surveyStep:a,setSurveyStep:o},children:e})}function y(){const e=n.useContext(c);if(e===null)throw new Error("useSurveyContext must be used within an SurveyProvider");return e}function _({stepAmount:e}){const{surveyStep:t}=y();return t>e?null:s.jsx("ol",{className:"flex flex-wrap justify-center gap-1 pb-5","aria-label":"progress",children:Array.from({length:e},(a,o)=>s.jsx("li",{"aria-current":t===o+1?"step":void 0,className:`h-0.5 w-[90px] rounded-rounded ${t===o+1?"bg-primary-100":t>o?"bg-primary-300":"bg-neutral-200"}`},o))})}const v=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071C10.9024 19.3166 10.9024 18.6834 11.2929 18.2929L16.5858 13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H16.5858L11.2929 5.70711C10.9024 5.31658 10.9024 4.68342 11.2929 4.29289Z"}));function U({username:e,subHeader:t,displayBody:a=!0}){const[o]=f(),i=o.get("redirect"),m=i&&`${window.location.origin}${i}`,l=p.safeParse(m);return s.jsxs(h,{className:"flex max-w-[540px] flex-col items-center justify-center space-y-7 px-7 py-9",children:[s.jsx(u,{className:"h-[120px] w-[120px] fill-theme-text-success"}),s.jsxs("div",{className:"space-y-3 text-center",children:[s.jsxs("p",{className:"text-display-xs font-semibold",children:["Congratulations!",s.jsx("br",{}),t]}),a&&s.jsxs("p",{className:"text-theme-text-secondary",children:["You can log in to the dashboard with your username"," ",s.jsx("span",{className:"font-semibold text-theme-text-primary",children:e})," and your password to start exploring!"]}),s.jsx(d,{className:"inline-flex",size:"md",intent:"primary",asChild:!0,children:s.jsxs(g,{to:l.success?l.data:x.home,children:[s.jsx("span",{children:"Go to Dashboard"}),s.jsx(v,{className:"h-5 w-5 fill-white"})]})})]})]})}const F=r.object({fullName:r.string().min(1),email:r.union([r.string().email(),r.literal("")]),getUpdates:r.boolean()}).refine(e=>e.getUpdates?e.email!=="":!0),L=r.object({primaryUse:r.string().min(1)}),B=r.object({providers:r.string().array(),other:r.boolean(),otherVal:r.string().optional()}).refine(e=>e.other?e.otherVal!=="":e.providers.length>0),E=r.object({serverName:r.string().optional()});function w(e=!1){return S.extend({username:r.string()}).refine(t=>t.newPassword===t.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"}).refine(t=>e?t.username.length>0:!0)}w();const T=r.object({usageReason:r.union([r.enum(["exploring","planning_poc","comparing_tools","implementing_production_environment"]),r.literal("")]),comparison_tools:r.string().array().optional(),otherTool:r.boolean().optional(),otherToolVal:r.string().optional()}).refine(e=>{var t;return e.usageReason.length===0?!1:e.otherTool?e.otherToolVal!=="":e.usageReason==="comparing_tools"?((t=e.comparison_tools)==null?void 0:t.length)??!1:!0});export{B as I,_ as S,T as U,U as a,R as b,E as c,F as d,w as g,L as p,y as u};
@@ -1 +1 @@
1
- import{q as o}from"./@tanstack-CSxjHCME.js";import{o as c,p as i,q as l,j as y,s as u,F as f}from"./index-hsSXyS3H.js";import{f as h}from"./stack-detail-query-C1GoxBeK.js";async function p(e){const n=c(i.stackDeployment.config)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching stack deployment config");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}async function k(e){const n=c(i.stackDeployment.info)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching stack deployment info");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}async function m(e){const n=c(i.stackDeployment.stack)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching the deployed stack");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}async function w(e){const n=c(i.stacks.all)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching stacks");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}const r={all:["stacks"],stackDeployment:["stack-deployment"],stackList:e=>o({queryKey:[...r.all,e],queryFn:async()=>w(e)}),stackDetail:e=>o({queryKey:[...r.all,e],queryFn:async()=>h({stackId:e})}),stackDeploymentInfo:e=>o({queryKey:[...r.stackDeployment,"info",e],queryFn:async()=>k(e)}),stackDeploymentStack:e=>o({queryKey:[...r.stackDeployment,"stack",e],queryFn:async()=>m(e)}),stackDeploymentConfig:e=>o({queryKey:[...r.stackDeployment,"config",e],queryFn:async()=>p(e)})};export{w as f,r as s};
1
+ import{q as o}from"./@tanstack-CSxjHCME.js";import{o as c,p as i,q as l,j as y,s as u,F as f}from"./index-BygJE88j.js";import{f as h}from"./stack-detail-query-ihiJr6nq.js";async function p(e){const n=c(i.stackDeployment.config)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching stack deployment config");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}async function k(e){const n=c(i.stackDeployment.info)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching stack deployment info");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}async function m(e){const n=c(i.stackDeployment.stack)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching the deployed stack");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}async function w(e){const n=c(i.stacks.all)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching stacks");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}const r={all:["stacks"],stackDeployment:["stack-deployment"],stackList:e=>o({queryKey:[...r.all,e],queryFn:async()=>w(e)}),stackDetail:e=>o({queryKey:[...r.all,e],queryFn:async()=>h({stackId:e})}),stackDeploymentInfo:e=>o({queryKey:[...r.stackDeployment,"info",e],queryFn:async()=>k(e)}),stackDeploymentStack:e=>o({queryKey:[...r.stackDeployment,"stack",e],queryFn:async()=>m(e)}),stackDeploymentConfig:e=>o({queryKey:[...r.stackDeployment,"config",e],queryFn:async()=>p(e)})};export{w as f,r as s};