decocms 2.304.7 → 2.304.8
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/client/assets/{AlertCircle-D2CfiqIb.js → AlertCircle-CGS7SlNZ.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-DbvZvWo_.js → ArrowNarrowLeft-BvcKCPPt.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-C4097qeP.js → ArrowUpRight-BfE23c8s.js} +1 -1
- package/dist/client/assets/{CheckCircle-DzPOiS7f.js → CheckCircle-DQGoPzYM.js} +1 -1
- package/dist/client/assets/{ChevronDown-nbfYLv74.js → ChevronDown-Dle378FN.js} +1 -1
- package/dist/client/assets/{ChevronRight-BMU5pFO3.js → ChevronRight-BwTBPBXD.js} +1 -1
- package/dist/client/assets/{ChevronUp-DYWpqTMs.js → ChevronUp-DOPSv7Jo.js} +1 -1
- package/dist/client/assets/{Container-BExsAw1Y.js → Container-Bjdb96SI.js} +1 -1
- package/dist/client/assets/{DotsVertical-vQJr-cQl.js → DotsVertical-BuAzAdDZ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CIznTcjx.js → LinkExternal01-ryVwfw5_.js} +1 -1
- package/dist/client/assets/{Lock01-_cHNYwVm.js → Lock01-D9gVlZ3n.js} +1 -1
- package/dist/client/assets/{Palette-CpHUCWb_.js → Palette-1qL25a9u.js} +1 -1
- package/dist/client/assets/{Play-P-JNZi6M.js → Play-C6odCWa1.js} +1 -1
- package/dist/client/assets/{Plus-UMVRoN9P.js → Plus-CGctI5qa.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DImxDs2M.js → RefreshCcw01-DlTzZS8a.js} +1 -1
- package/dist/client/assets/{SearchMd-BZgC3RwY.js → SearchMd-JWdfIDAa.js} +1 -1
- package/dist/client/assets/{Settings02-DsZ22GF2.js → Settings02-DtwFPoYp.js} +1 -1
- package/dist/client/assets/{Shield01-DSdOF02b.js → Shield01-Dj1UOyDV.js} +1 -1
- package/dist/client/assets/{Star01-B5DJ8WSO.js → Star01-CxLxZthD.js} +1 -1
- package/dist/client/assets/{Sun-DwLarfIS.js → Sun-D1drbPvR.js} +1 -1
- package/dist/client/assets/{Tool01-BYbeRyP1.js → Tool01-Cj173b_Q.js} +1 -1
- package/dist/client/assets/{Trash01-XaVufWhG.js → Trash01-DmugmVtH.js} +1 -1
- package/dist/client/assets/{User01-DOEJf7_z.js → User01-DNfbm8LW.js} +1 -1
- package/dist/client/assets/{Users03-BDvrLgkH.js → Users03-BAiUjF-1.js} +1 -1
- package/dist/client/assets/{X-80NRAfnw.js → X-DqLs9vpH.js} +1 -1
- package/dist/client/assets/{XCircle-BEAFTgYK.js → XCircle-D_4uFiCh.js} +1 -1
- package/dist/client/assets/{XClose-DWbPt4W1.js → XClose-Rxztrnzf.js} +1 -1
- package/dist/client/assets/{Zap-DJ-5nwQH.js → Zap-DCSjpSJ7.js} +1 -1
- package/dist/client/assets/{ZapSquare-CUSW7lK1.js → ZapSquare-Dzrt3oay.js} +1 -1
- package/dist/client/assets/{accordion-Cs5A2mwd.js → accordion-UDoYmaIB.js} +1 -1
- package/dist/client/assets/{agent-icon-CNwr7nQ6.js → agent-icon-CL45Wifm.js} +1 -1
- package/dist/client/assets/{agents-list-DbYzBYNO.js → agents-list-C8LXqbnr.js} +1 -1
- package/dist/client/assets/ai-providers-DjpPn0iI.js +1 -0
- package/dist/client/assets/{alert-dialog-CjZ_yEsA.js → alert-dialog-Cs2lf0wi.js} +1 -1
- package/dist/client/assets/{auth-catchall-C25SUnt0.js → auth-catchall-DGnDQLN0.js} +1 -1
- package/dist/client/assets/{automation-list-row-wACLbSFs.js → automation-list-row-7DtUnIlg.js} +1 -1
- package/dist/client/assets/{automations-M3aSI6qo.js → automations-CWt4GOLz.js} +1 -1
- package/dist/client/assets/{avatar-VfK9F8Gm.js → avatar-BcGOvZ9P.js} +1 -1
- package/dist/client/assets/{badge-BJCa3Rup.js → badge-Cpo1XmAx.js} +1 -1
- package/dist/client/assets/{brand-context-DgCqovd4.js → brand-context-COazQM8-.js} +1 -1
- package/dist/client/assets/{card-iIHVwReR.js → card-ChPTWuEz.js} +1 -1
- package/dist/client/assets/{chat-context-BTZrU_bp.js → chat-context-B5mCE2Dl.js} +1 -1
- package/dist/client/assets/{checkbox-pdr67-6J.js → checkbox-CgeI-KLu.js} +1 -1
- package/dist/client/assets/{collection-detail-BEYnuLnN.js → collection-detail-Bx_h9wvL.js} +1 -1
- package/dist/client/assets/{collection-display-button-DxpSOd3z.js → collection-display-button-DMRYWpDV.js} +1 -1
- package/dist/client/assets/{collection-search-DGbMy7UX.js → collection-search-CvOZQgZf.js} +1 -1
- package/dist/client/assets/{collection-search-DzHZlyRO.js → collection-search-Xsvaup1l.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-mfnrIfln.js → collection-table-wrapper-CovgsN3b.js} +1 -1
- package/dist/client/assets/{collection-tabs-CUM5pTIq.js → collection-tabs-CeSeUpFD.js} +1 -1
- package/dist/client/assets/{collections-CPizzQEO.js → collections-BgKSt6n0.js} +1 -1
- package/dist/client/assets/{command-xCX5Hjh8.js → command-Cwx2tkAC.js} +1 -1
- package/dist/client/assets/{connection-card-BH_OVnZ0.js → connection-card-BBgrlkNf.js} +1 -1
- package/dist/client/assets/{connection-detail-BoLTCviP.js → connection-detail-BujhlI5m.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CDFSSkBK.js → connection-form-helpers-1Nu4mg1N.js} +1 -1
- package/dist/client/assets/{connections-uq0w2h-m.js → connections-_If2WcK2.js} +1 -1
- package/dist/client/assets/{constants-Cir84GoX.js → constants-BBeVlOcv.js} +1 -1
- package/dist/client/assets/{constants-CL9Yh3jE.js → constants-DWJv5284.js} +1 -1
- package/dist/client/assets/{dialog-BY7V3l1b.js → dialog-o_JVdycy.js} +1 -1
- package/dist/client/assets/{domain-settings-CY-m55Yf.js → domain-settings-CbIxe1dN.js} +1 -1
- package/dist/client/assets/{drawer-CF_GY3GP.js → drawer-DuBsYQy-.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CZKqA1eF.js → dropdown-menu-NLdCnhe2.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-vv0w1X_h.js → dynamic-plugin-layout-BePmHsM5.js} +1 -1
- package/dist/client/assets/{empty-state-B6o1wtCI.js → empty-state-BNIqiqmO.js} +1 -1
- package/dist/client/assets/{empty-state-C50VMolH.js → empty-state-CS7vMz-S.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CXgcXDyg.js → extract-connection-data-C1rFp-EK.js} +1 -1
- package/dist/client/assets/{features-CKpfzOBb.js → features-C8abN4ke.js} +1 -1
- package/dist/client/assets/{form-Bqxj9UR_.js → form-DYhJizGS.js} +1 -1
- package/dist/client/assets/{general-08k-NPRS.js → general-BDubresg.js} +1 -1
- package/dist/client/assets/{index-CC-8lukI.js → index-BAEkPxc0.js} +1 -1
- package/dist/client/assets/{index-C6PH122m.js → index-BH7Qrxij.js} +1 -1
- package/dist/client/assets/{index-DTFrJfZ5.js → index-BRC1FK7F.js} +1 -1
- package/dist/client/assets/{index-B3-v3ay0.js → index-BnnTf_Sd.js} +1 -1
- package/dist/client/assets/{index-lG8RrDCk.js → index-BtuZ6g--.js} +1 -1
- package/dist/client/assets/{index-CWBm8dkR.js → index-BxjSTUlr.js} +1 -1
- package/dist/client/assets/{index-OL4lmhJr.js → index-C-CxSS2X.js} +1 -1
- package/dist/client/assets/{index-UnY-zvRC.js → index-C9M4Xv-S.js} +2 -2
- package/dist/client/assets/{index-C6PkFaxl.js → index-C9Z9u1Tw.js} +1 -1
- package/dist/client/assets/{index-QzcyPSZ1.js → index-CV-Szw_N.js} +1 -1
- package/dist/client/assets/{index-DW5-Qpk8.js → index-D8ndbAa3.js} +1 -1
- package/dist/client/assets/index-DseuXjGf.js +1 -0
- package/dist/client/assets/{index-CpEh11mD.js → index-KkQYgVnb.js} +1 -1
- package/dist/client/assets/{index-CvfgmSHb.js → index-QdTc2-Rk.js} +1 -1
- package/dist/client/assets/{index-D3YEAKgK.js → index-lGyUFz6v.js} +1 -1
- package/dist/client/assets/{index-DSTE_mKl.js → index-qcF-nEjv.js} +3 -3
- package/dist/client/assets/{infiniteQueryObserver-Dx_FFlyw.js → infiniteQueryObserver-CrM8xD0J.js} +1 -1
- package/dist/client/assets/{input-D6bqiRsc.js → input-D7aJNH3r.js} +1 -1
- package/dist/client/assets/{integration-icon-Czloo5aB.js → integration-icon-CikcQgPA.js} +1 -1
- package/dist/client/assets/{label-OH00Bm2e.js → label-nMjNWeer.js} +1 -1
- package/dist/client/assets/{layout-B8grH51l.js → layout-BdrWRcCU.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-D3uOPj7B.js → lean-canvas-recruit-modal-D2NK3tQ5.js} +1 -1
- package/dist/client/assets/{login-BIRsXm68.js → login-7TTbEZ4g.js} +1 -1
- package/dist/client/assets/{members-CpgyEKOu.js → members-d5KexfoH.js} +1 -1
- package/dist/client/assets/{monaco-editor-CCm4ijBh.js → monaco-editor-B6okB9o3.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BI6rRgmE.js → monitoring-stats-row-BP9UqHTj.js} +1 -1
- package/dist/client/assets/{oauth-callback-DzeQ4ct_.js → oauth-callback-DdD8wzEd.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-D0xvnKC5.js → oauth-callback-ai-provider-Eo5vnDNg.js} +1 -1
- package/dist/client/assets/{onboarding-9fXXhsXI.js → onboarding-Btum00Ln.js} +1 -1
- package/dist/client/assets/{org-layout-DVzQC_Yi.js → org-layout-o44AzcTB.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-DNF-iC79.js → org-plugin-layout-BQQN1snQ.js} +1 -1
- package/dist/client/assets/{pair-Dnl7WYnw.js → pair-D6t7TZZY.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DHJl5jI3.js → plugin-empty-state-v3unt4A_.js} +1 -1
- package/dist/client/assets/{plugin-header-CKGimWCh.js → plugin-header-C5hJY-bG.js} +1 -1
- package/dist/client/assets/{plugin-layout-BHyhXQOZ.js → plugin-layout-ByjMXE2_.js} +1 -1
- package/dist/client/assets/{popover-BdA1Au4C.js → popover-DvYGtEfv.js} +1 -1
- package/dist/client/assets/{profile-Bl2GSS8s.js → profile-bhSlw_hZ.js} +1 -1
- package/dist/client/assets/{project-app-view-BKdpoQ4z.js → project-app-view-C5KFZJmQ.js} +1 -1
- package/dist/client/assets/registry-CDWfMNhx.js +2 -0
- package/dist/client/assets/{registry-layout-C7UuH9A8.js → registry-layout-BjTa2Fez.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DyXOjWp0.js → required-auth-layout-B-n0CRtk.js} +1 -1
- package/dist/client/assets/{reset-password-DFyOjTrX.js → reset-password-CVmoiZSn.js} +1 -1
- package/dist/client/assets/{roles-BBiEMyt9.js → roles-DOvgAdNt.js} +1 -1
- package/dist/client/assets/{scroll-area-BtYccAiz.js → scroll-area-C9jltrVR.js} +1 -1
- package/dist/client/assets/{search-input-DRArEtrV.js → search-input-J2Up5mqM.js} +1 -1
- package/dist/client/assets/{select-DBTJ405R.js → select-BpWMsKq-.js} +1 -1
- package/dist/client/assets/{select-model-CVihu6QE.js → select-model-B5AXvSeg.js} +1 -1
- package/dist/client/assets/{settings-layout-DSg7AZLP.js → settings-layout-BCEM9NqD.js} +1 -1
- package/dist/client/assets/{settings-section-B-H7r-eT.js → settings-section-ZpAPCH6i.js} +1 -1
- package/dist/client/assets/{shell-layout-V_I5BZHu.js → shell-layout-CKhsw5Sh.js} +1 -1
- package/dist/client/assets/{skeleton-C2zJGx2Y.js → skeleton-BhL9H11L.js} +1 -1
- package/dist/client/assets/{sso-RdX7LN5j.js → sso-DMGvs9Z-.js} +1 -1
- package/dist/client/assets/{store-cLIKmL15.js → store-B2Lmd39T.js} +1 -1
- package/dist/client/assets/store-registry-C0UdTWoP.js +2 -0
- package/dist/client/assets/{switch-BsX6ngUr.js → switch-B20JmlBf.js} +1 -1
- package/dist/client/assets/{table-DmKKh-Uo.js → table-D4DqVxc9.js} +1 -1
- package/dist/client/assets/{tabs-DKwgBUgV.js → tabs-BX6UCACt.js} +1 -1
- package/dist/client/assets/{task-status-DEPsM1Cn.js → task-status-BIfmjfC3.js} +1 -1
- package/dist/client/assets/{textarea-CPrSylHb.js → textarea-UvbmRoe-.js} +1 -1
- package/dist/client/assets/{toggle-group-B7clKLKk.js → toggle-group-Tf_rUt5t.js} +1 -1
- package/dist/client/assets/{tools-list-C3T4yOSU.js → tools-list-CRd4heFY.js} +1 -1
- package/dist/client/assets/{tooltip-ADPPk7Xn.js → tooltip-B3IUO41H.js} +1 -1
- package/dist/client/assets/{types-DHKNdHPr.js → types-M1_25Vrf.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BwSVWd-T.js → use-ai-providers-Dqu6jx-F.js} +1 -1
- package/dist/client/assets/{use-collections-ALcwG43o.js → use-collections-Da70-nLG.js} +1 -1
- package/dist/client/assets/{use-connection-BCg6eUzo.js → use-connection-BpZtYbNe.js} +1 -1
- package/dist/client/assets/{use-copy-ckzdRU4i.js → use-copy-BSXck2x7.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CZMfwNnK.js → use-create-virtual-mcp-DjyE6zmA.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DkifTpav.js → use-decopilot-events-B-oXB6oi.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Q6Ekhh19.js → use-delete-connection-CJNEN3TP.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D8lsFQgN.js → use-infinite-scroll-BDVxH8Nj.js} +1 -1
- package/dist/client/assets/{use-list-state-DDYvJEtn.js → use-list-state-Bf4Orvks.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CecwS7ew.js → use-mcp-tools-UPubU5dS.js} +1 -1
- package/dist/client/assets/{use-members-D_xWh-py.js → use-members-6lxWp3cM.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-HfjXn9N3.js → use-navigate-to-agent-CHUquCU3.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B8yYcDOl.js → use-org-auth-client-VBCw4Z09.js} +1 -1
- package/dist/client/assets/{use-org-sso-D3_x4jf3.js → use-org-sso-B4E1THrG.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DbDXN-yR.js → use-organization-roles-DkTxgjYa.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Chq5JyfA.js → use-organization-settings-BVe1RnJv.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BTRKcUsD.js → use-registry-connections-o0Gae1A5.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Lh1NAEqk.js → use-status-sounds-BJnu3Bk4.js} +1 -1
- package/dist/client/assets/{use-tasks-DHfFkdLo.js → use-tasks-COfJsoNk.js} +1 -1
- package/dist/client/assets/{use-view-mode-C_0UGTCG.js → use-view-mode-ptHtxrZN.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Bd5gChwa.js → use-virtual-mcp-Ci4PPj2K.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DtUmiZEX.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CCko66uu.js +1 -0
- package/dist/client/assets/{user-Dp4XSqp-.js → user-BcXNPJaC.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D-WxHo9K.js → view-mode-toggle-DbMW5Bpx.js} +1 -1
- package/dist/client/assets/{workflow-Mj-lIDhI.js → workflow-DLWGQFO8.js} +1 -1
- package/dist/client/assets/workflow-detail-B6yBsW48.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +3 -3
- package/dist/server/migrate.js +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-FYypRZeO.js +0 -1
- package/dist/client/assets/index-DESpfOlS.js +0 -1
- package/dist/client/assets/registry-CK0nGsxr.js +0 -2
- package/dist/client/assets/store-registry-336aF83x.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CRbDZq1R.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cs4PAUkF.js +0 -1
- package/dist/client/assets/workflow-detail-CXPhEJbk.js +0 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
- package/dist/server/node_modules/ansi-styles/index.js +0 -223
- package/dist/server/node_modules/ansi-styles/license +0 -9
- package/dist/server/node_modules/ansi-styles/package.json +0 -54
- package/dist/server/node_modules/ansi-styles/readme.md +0 -173
- package/dist/server/node_modules/environment/index.d.ts +0 -74
- package/dist/server/node_modules/environment/index.js +0 -47
- package/dist/server/node_modules/environment/license +0 -9
- package/dist/server/node_modules/environment/package.json +0 -74
- package/dist/server/node_modules/environment/readme.md +0 -94
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +0 -18
- package/dist/server/node_modules/escape-string-regexp/index.js +0 -11
- package/dist/server/node_modules/escape-string-regexp/license +0 -9
- package/dist/server/node_modules/escape-string-regexp/package.json +0 -43
- package/dist/server/node_modules/escape-string-regexp/readme.md +0 -29
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
- package/dist/server/node_modules/is-fullwidth-code-point/license +0 -9
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/dist/server/node_modules/is-unicode-supported/index.js +0 -21
- package/dist/server/node_modules/is-unicode-supported/license +0 -9
- package/dist/server/node_modules/is-unicode-supported/package.json +0 -47
- package/dist/server/node_modules/is-unicode-supported/readme.md +0 -35
- package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
- package/dist/server/node_modules/mimic-fn/index.js +0 -13
- package/dist/server/node_modules/mimic-fn/license +0 -9
- package/dist/server/node_modules/mimic-fn/package.json +0 -42
- package/dist/server/node_modules/mimic-fn/readme.md +0 -69
- package/dist/server/node_modules/onetime/index.d.ts +0 -64
- package/dist/server/node_modules/onetime/index.js +0 -44
- package/dist/server/node_modules/onetime/license +0 -9
- package/dist/server/node_modules/onetime/package.json +0 -43
- package/dist/server/node_modules/onetime/readme.md +0 -94
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/pg-pool/LICENSE +0 -21
- package/dist/server/node_modules/pg-pool/README.md +0 -357
- package/dist/server/node_modules/pg-pool/esm/index.mjs +0 -5
- package/dist/server/node_modules/pg-pool/index.js +0 -517
- package/dist/server/node_modules/pg-pool/package.json +0 -51
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/restore-cursor/index.d.ts +0 -11
- package/dist/server/node_modules/restore-cursor/index.js +0 -11
- package/dist/server/node_modules/restore-cursor/license +0 -9
- package/dist/server/node_modules/restore-cursor/package.json +0 -55
- package/dist/server/node_modules/restore-cursor/readme.md +0 -31
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
- package/dist/server/node_modules/string-width/index.d.ts +0 -39
- package/dist/server/node_modules/string-width/index.js +0 -82
- package/dist/server/node_modules/string-width/license +0 -9
- package/dist/server/node_modules/string-width/package.json +0 -64
- package/dist/server/node_modules/string-width/readme.md +0 -66
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/LICENSE +0 -20
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
package/dist/server/migrate.js
CHANGED
|
@@ -1371,9 +1371,9 @@ Please refer to the documentation here: https://better-auth.com/docs/plugins/org
|
|
|
1371
1371
|
</script>
|
|
1372
1372
|
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference" ${$}></script>
|
|
1373
1373
|
</body>
|
|
1374
|
-
</html>`},Gp=(Y)=>{let J=Y?.path??"/reference";return{id:"open-api",endpoints:{generateOpenAPISchema:_1("/open-api/generate-schema",{method:"GET"},async(X)=>{let $=await fH1(X.context,X.context.options);return X.json($)}),openAPIReference:_1(J,{method:"GET",metadata:{isAction:!1}},async(X)=>{if(Y?.disableDefaultReference)throw new h("NOT_FOUND");let $=await fH1(X.context,X.context.options);return new Response(_30($,Y?.theme,Y?.nonce),{headers:{"Content-Type":"text/html"}})})}}};a5();sX();q8();i8();h0();var ey6=M6(async()=>{return{}}),Yh6=M6({use:[y4]},async(Y)=>{return{session:Y.context.session}}),Jh6=e6({YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_SLUG_ALREADY_TAKEN:"Organization slug already taken",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER:"You cannot leave the organization without an owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION:"Email verification required before accepting or rejecting invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"You are not allowed to invite a user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached",USER_IS_NOT_A_MEMBER_OF_THE_TEAM:"User is not a member of the team",YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM:"You are not allowed to list the members of this team",YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM:"You do not have an active team",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER:"You are not allowed to create a new member",YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER:"You are not allowed to remove a team member",YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION:"You are not allowed to access this organization as an owner",YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION:"You are not a member of this organization",MISSING_AC_INSTANCE:"Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information",YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE:"You must be in an organization to create a role",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE:"You are not allowed to create a role",YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE:"You are not allowed to update a role",YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE:"You are not allowed to delete a role",YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE:"You are not allowed to read a role",YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE:"You are not allowed to list a role",YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE:"You are not allowed to get a role",TOO_MANY_ROLES:"This organization has too many roles",INVALID_RESOURCE:"The provided permission includes an invalid resource",ROLE_NAME_IS_ALREADY_TAKEN:"That role name is already taken",CANNOT_DELETE_A_PRE_DEFINED_ROLE:"Cannot delete a pre-defined role"});var Xh6=Number.POSITIVE_INFINITY;var hH1=N(),C30=Z0(["pending","accepted","rejected","canceled"]).default("pending"),$h6=y({id:N().default(l9),name:N(),slug:N(),logo:N().nullish().optional(),metadata:l1(N(),C6()).or(N().transform((Y)=>JSON.parse(Y))).optional(),createdAt:k0()}),Wh6=y({id:N().default(l9),organizationId:N(),userId:P0.string(),role:hH1,createdAt:k0().default(()=>new Date)}),Gh6=y({id:N().default(l9),organizationId:N(),email:N(),role:hH1,status:C30,teamId:N().nullish(),inviterId:N(),expiresAt:k0(),createdAt:k0().default(()=>new Date)}),Zh6=y({id:N().default(l9),name:N().min(1),organizationId:N(),createdAt:k0(),updatedAt:k0().optional()}),Qh6=y({id:N().default(l9),teamId:N(),userId:N(),createdAt:k0().default(()=>new Date)}),Kh6=y({id:N().default(l9),organizationId:N(),role:N(),permission:l1(N(),U1(N())),createdAt:k0().default(()=>new Date),updatedAt:k0().optional()}),yH1=["admin","member","owner"],Hh6=y0([Z0(yH1),U1(Z0(yH1))]);c4();q8();i8();var Dh6=e6({INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",PHONE_NUMBER_NOT_EXIST:"phone number isn't registered",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified",PHONE_NUMBER_CANNOT_BE_UPDATED:"Phone number cannot be updated",SEND_OTP_NOT_IMPLEMENTED:"sendOTP not implemented",TOO_MANY_ATTEMPTS:"Too many attempts"});c4();r5();q8();i8();p8();R4();var S30=e6({OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"});q8();i8();var I30=e6({INVALID_USERNAME_OR_PASSWORD:"Invalid username or password",EMAIL_NOT_VERIFIED:"Email not verified",UNEXPECTED_ERROR:"Unexpected error",USERNAME_IS_ALREADY_TAKEN:"Username is already taken. Please try another.",USERNAME_TOO_SHORT:"Username is too short",USERNAME_TOO_LONG:"Username is too long",INVALID_USERNAME:"Username is invalid",INVALID_DISPLAY_USERNAME:"Display username is invalid"});r7();uX();a5();c4();uZ();r5();I0();import{Pool as I_1}from"pg";import{homedir as k30}from"os";function tP(Y){return Y==="true"||Y==="1"}function gH1(Y){if(!Y)return null;try{let X=new URL(Y).hostname;if(X==="localhost"||X==="127.0.0.1"||X==="::1")return null;return Y}catch{return null}}function mH1(Y,J){let X=Y.home||J.DATA_DIR||J.DECOCMS_HOME||`${k30()}/deco`,$=Y.localMode,W=Y.nodeEnv||J.NODE_ENV||"development",G=J.NATS_URL||"nats://localhost:4222";return{settings:{nodeEnv:W,port:Number(Y.port)||Number(J.PORT)||3000,baseUrl:Y.baseUrl||J.BASE_URL,dataDir:X,databasePgSsl:tP(J.DATABASE_PG_SSL),databasePoolMax:Number(J.DATABASE_POOL_MAX)||3,betterAuthSecret:J.BETTER_AUTH_SECRET||"",encryptionKey:J.ENCRYPTION_KEY||"",meshJwtSecret:J.MESH_JWT_SECRET,localMode:$,disableRateLimit:tP(J.DISABLE_RATE_LIMIT),studioProvisionSecretKey:J.STUDIO_PROVISION_SECRET_KEY,clickhouseUrl:J.CLICKHOUSE_URL,otelServiceName:J.OTEL_SERVICE_NAME||"mesh",configPath:J.CONFIG_PATH||"./config.json",aiGatewayEnabled:tP(J.DECO_AI_GATEWAY_ENABLED),aiGatewayUrl:J.DECO_AI_GATEWAY_URL||"https://ai-site.decocache.com",enableDecoImport:tP(J.ENABLE_DECO_IMPORT),s3Endpoint:J.S3_ENDPOINT,s3Bucket:J.S3_BUCKET,s3Region:J.S3_REGION||"auto",s3AccessKeyId:J.S3_ACCESS_KEY_ID,s3SecretAccessKey:J.S3_SECRET_ACCESS_KEY,s3ForcePathStyle:J.S3_FORCE_PATH_STYLE===void 0||J.S3_FORCE_PATH_STYLE===""||J.S3_FORCE_PATH_STYLE==="true"||J.S3_FORCE_PATH_STYLE==="1",isCli:!0,noTui:Y.noTui===!0,podName:J.POD_NAME??crypto.randomUUID(),decoSupabaseUrl:J.DECO_SUPABASE_URL,decoSupabaseServiceKey:J.DECO_SUPABASE_SERVICE_KEY,firecrawlApiKey:J.FIRECRAWL_API_KEY},externalDatabaseUrl:gH1(J.DATABASE_URL),externalNatsUrl:gH1(G),skipMigrations:Y.skipMigrations}}var eP=null;function cH(){if(!eP)b30();return eP}function b30(){if(eP)return;let Y={...process.env},J=mH1({port:Y.PORT||"3000",home:Y.DATA_DIR||Y.DECOCMS_HOME||"",localMode:Y.DECOCMS_LOCAL_MODE==="true",skipMigrations:!0,noTui:Y.DECO_NO_TUI==="true",vitePort:Y.VITE_PORT,baseUrl:Y.BASE_URL},Y);eP=Object.freeze({...J.settings,databaseUrl:Y.DATABASE_URL??"postgresql://postgres:postgres@localhost:5432/postgres",natsUrls:(Y.NATS_URL||"nats://localhost:4222").split(",").map((X)=>X.trim()).filter(Boolean)})}var ZG=s9(K6(),1),jF=s9(FA(),1);var R_1=s9(Uv1(),1);var CC0=s9(E_1(),1);var Vi6=globalThis.fetch;var GG;(function(Y){Y[Y.SUCCESS=0]="SUCCESS",Y[Y.FAILED=1]="FAILED"})(GG||(GG={}));import{mkdir as TC0,rename as vC0,writeFile as RC0}from"fs/promises";import{join as JE}from"path";class XE{bufferItems=[];bufferBytes=0;flushTimer=null;flushQueue=Promise.resolve();basePath;flushThreshold;maxBufferBytes;isShutdown=!1;knownDirs=new Set;partitionKey;constructor(Y){this.basePath=Y.basePath,this.flushThreshold=Y.flushThreshold??1000,this.maxBufferBytes=Y.maxBufferBytes??10485760,this.partitionKey=Y.partitionKey;let J=Y.flushIntervalMs??60000;if(J>0&&J<3600000){if(this.flushTimer=setInterval(()=>{this.flush().catch((X)=>{console.error("[NDJSONExporter] Timer flush failed:",X)})},J),this.flushTimer&&typeof this.flushTimer==="object"&&"unref"in this.flushTimer)this.flushTimer.unref()}}exportRows(Y){if(this.isShutdown)return Promise.resolve({code:GG.FAILED});for(let J of Y){let X=JSON.stringify(J),$=this.partitionKey?this.partitionKey(J):"";this.bufferItems.push({partition:$,json:X}),this.bufferBytes+=Buffer.byteLength(X,"utf8")+1}if(this.bufferItems.length>=this.flushThreshold||this.bufferBytes>=this.maxBufferBytes)return this.flush().then(()=>({code:GG.SUCCESS})).catch((J)=>{return console.error("[NDJSONExporter] Flush failed:",J),{code:GG.FAILED}});return Promise.resolve({code:GG.SUCCESS})}async shutdown(){if(this.isShutdown=!0,this.flushTimer)clearInterval(this.flushTimer),this.flushTimer=null;try{await this.flushQueue}catch{}if(this.bufferItems.length>0)await this.flush()}async forceFlush(){try{await this.flushQueue}catch{}if(this.bufferItems.length>0)await this.flush()}flush(){let J=this.flushQueue.catch(()=>{}).then(()=>this.doFlush());return this.flushQueue=J,J}async doFlush(){if(this.bufferItems.length===0)return;let Y=this.bufferItems;this.bufferItems=[],this.bufferBytes=0;let J=new Map;for(let W of Y){let G=J.get(W.partition);if(!G)G=[],J.set(W.partition,G);G.push(W.json)}let X=await Promise.allSettled(Array.from(J.entries()).map(([W,G])=>this.writeNDJSON(G,W).then(()=>W))),$=X.find((W)=>W.status==="rejected");if($){let W=new Set;for(let Z of X)if(Z.status==="fulfilled")W.add(Z.value);let G=Y.filter((Z)=>!W.has(Z.partition));this.bufferItems=G.concat(this.bufferItems),this.bufferBytes=0;for(let Z of this.bufferItems)this.bufferBytes+=Buffer.byteLength(Z.json,"utf8")+1;throw $.reason}}async writeNDJSON(Y,J){let X=new Date,$=[String(X.getUTCFullYear()),String(X.getUTCMonth()+1).padStart(2,"0"),String(X.getUTCDate()).padStart(2,"0"),String(X.getUTCHours()).padStart(2,"0")],W=J?JE(this.basePath,J,...$):JE(this.basePath,...$);if(!this.knownDirs.has(W))await TC0(W,{recursive:!0,mode:448}),this.knownDirs.add(W);let G=`${crypto.randomUUID()}.ndjson`,Z=JE(W,`.${G}.tmp`),Q=JE(W,G),K=Y.join(`
|
|
1374
|
+
</html>`},Gp=(Y)=>{let J=Y?.path??"/reference";return{id:"open-api",endpoints:{generateOpenAPISchema:_1("/open-api/generate-schema",{method:"GET"},async(X)=>{let $=await fH1(X.context,X.context.options);return X.json($)}),openAPIReference:_1(J,{method:"GET",metadata:{isAction:!1}},async(X)=>{if(Y?.disableDefaultReference)throw new h("NOT_FOUND");let $=await fH1(X.context,X.context.options);return new Response(_30($,Y?.theme,Y?.nonce),{headers:{"Content-Type":"text/html"}})})}}};a5();sX();q8();i8();h0();var ey6=M6(async()=>{return{}}),Yh6=M6({use:[y4]},async(Y)=>{return{session:Y.context.session}}),Jh6=e6({YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_SLUG_ALREADY_TAKEN:"Organization slug already taken",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER:"You cannot leave the organization without an owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION:"Email verification required before accepting or rejecting invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"You are not allowed to invite a user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached",USER_IS_NOT_A_MEMBER_OF_THE_TEAM:"User is not a member of the team",YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM:"You are not allowed to list the members of this team",YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM:"You do not have an active team",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER:"You are not allowed to create a new member",YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER:"You are not allowed to remove a team member",YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION:"You are not allowed to access this organization as an owner",YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION:"You are not a member of this organization",MISSING_AC_INSTANCE:"Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information",YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE:"You must be in an organization to create a role",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE:"You are not allowed to create a role",YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE:"You are not allowed to update a role",YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE:"You are not allowed to delete a role",YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE:"You are not allowed to read a role",YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE:"You are not allowed to list a role",YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE:"You are not allowed to get a role",TOO_MANY_ROLES:"This organization has too many roles",INVALID_RESOURCE:"The provided permission includes an invalid resource",ROLE_NAME_IS_ALREADY_TAKEN:"That role name is already taken",CANNOT_DELETE_A_PRE_DEFINED_ROLE:"Cannot delete a pre-defined role"});var Xh6=Number.POSITIVE_INFINITY;var hH1=N(),C30=Z0(["pending","accepted","rejected","canceled"]).default("pending"),$h6=y({id:N().default(l9),name:N(),slug:N(),logo:N().nullish().optional(),metadata:l1(N(),C6()).or(N().transform((Y)=>JSON.parse(Y))).optional(),createdAt:k0()}),Wh6=y({id:N().default(l9),organizationId:N(),userId:P0.string(),role:hH1,createdAt:k0().default(()=>new Date)}),Gh6=y({id:N().default(l9),organizationId:N(),email:N(),role:hH1,status:C30,teamId:N().nullish(),inviterId:N(),expiresAt:k0(),createdAt:k0().default(()=>new Date)}),Zh6=y({id:N().default(l9),name:N().min(1),organizationId:N(),createdAt:k0(),updatedAt:k0().optional()}),Qh6=y({id:N().default(l9),teamId:N(),userId:N(),createdAt:k0().default(()=>new Date)}),Kh6=y({id:N().default(l9),organizationId:N(),role:N(),permission:l1(N(),U1(N())),createdAt:k0().default(()=>new Date),updatedAt:k0().optional()}),yH1=["admin","member","owner"],Hh6=y0([Z0(yH1),U1(Z0(yH1))]);c4();q8();i8();var Dh6=e6({INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",PHONE_NUMBER_NOT_EXIST:"phone number isn't registered",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified",PHONE_NUMBER_CANNOT_BE_UPDATED:"Phone number cannot be updated",SEND_OTP_NOT_IMPLEMENTED:"sendOTP not implemented",TOO_MANY_ATTEMPTS:"Too many attempts"});c4();r5();q8();i8();p8();R4();var S30=e6({OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"});q8();i8();var I30=e6({INVALID_USERNAME_OR_PASSWORD:"Invalid username or password",EMAIL_NOT_VERIFIED:"Email not verified",UNEXPECTED_ERROR:"Unexpected error",USERNAME_IS_ALREADY_TAKEN:"Username is already taken. Please try another.",USERNAME_TOO_SHORT:"Username is too short",USERNAME_TOO_LONG:"Username is too long",INVALID_USERNAME:"Username is invalid",INVALID_DISPLAY_USERNAME:"Display username is invalid"});r7();uX();a5();c4();uZ();r5();I0();import{Pool as I_1}from"pg";import{homedir as k30}from"os";function tP(Y){return Y==="true"||Y==="1"}function gH1(Y){if(!Y)return null;try{let X=new URL(Y).hostname;if(X==="localhost"||X==="127.0.0.1"||X==="::1")return null;return Y}catch{return null}}function mH1(Y,J){let X=Y.home||J.DATA_DIR||J.DECOCMS_HOME||`${k30()}/deco`,$=Y.localMode,W=Y.nodeEnv||J.NODE_ENV||"development",G=J.NATS_URL||"nats://localhost:4222";return{settings:{nodeEnv:W,port:Number(Y.port)||Number(J.PORT)||3000,baseUrl:Y.baseUrl||J.BASE_URL,dataDir:X,databasePgSsl:tP(J.DATABASE_PG_SSL),databasePoolMax:Number(J.DATABASE_POOL_MAX)||3,betterAuthSecret:J.BETTER_AUTH_SECRET||"",encryptionKey:J.ENCRYPTION_KEY||"",meshJwtSecret:J.MESH_JWT_SECRET,localMode:$,disableRateLimit:tP(J.DISABLE_RATE_LIMIT),studioProvisionSecretKey:J.STUDIO_PROVISION_SECRET_KEY,clickhouseUrl:J.CLICKHOUSE_URL,otelServiceName:J.OTEL_SERVICE_NAME||"studio",configPath:J.CONFIG_PATH||"./config.json",aiGatewayEnabled:tP(J.DECO_AI_GATEWAY_ENABLED),aiGatewayUrl:J.DECO_AI_GATEWAY_URL||"https://ai-site.decocache.com",enableDecoImport:tP(J.ENABLE_DECO_IMPORT),s3Endpoint:J.S3_ENDPOINT,s3Bucket:J.S3_BUCKET,s3Region:J.S3_REGION||"auto",s3AccessKeyId:J.S3_ACCESS_KEY_ID,s3SecretAccessKey:J.S3_SECRET_ACCESS_KEY,s3ForcePathStyle:J.S3_FORCE_PATH_STYLE===void 0||J.S3_FORCE_PATH_STYLE===""||J.S3_FORCE_PATH_STYLE==="true"||J.S3_FORCE_PATH_STYLE==="1",isCli:!0,noTui:Y.noTui===!0,podName:J.POD_NAME??crypto.randomUUID(),decoSupabaseUrl:J.DECO_SUPABASE_URL,decoSupabaseServiceKey:J.DECO_SUPABASE_SERVICE_KEY,firecrawlApiKey:J.FIRECRAWL_API_KEY},externalDatabaseUrl:gH1(J.DATABASE_URL),externalNatsUrl:gH1(G),skipMigrations:Y.skipMigrations}}var eP=null;function cH(){if(!eP)b30();return eP}function b30(){if(eP)return;let Y={...process.env},J=mH1({port:Y.PORT||"3000",home:Y.DATA_DIR||Y.DECOCMS_HOME||"",localMode:Y.DECOCMS_LOCAL_MODE==="true",skipMigrations:!0,noTui:Y.DECO_NO_TUI==="true",vitePort:Y.VITE_PORT,baseUrl:Y.BASE_URL},Y);eP=Object.freeze({...J.settings,databaseUrl:Y.DATABASE_URL??"postgresql://postgres:postgres@localhost:5432/postgres",natsUrls:(Y.NATS_URL||"nats://localhost:4222").split(",").map((X)=>X.trim()).filter(Boolean)})}var ZG=s9(K6(),1),jF=s9(FA(),1);var R_1=s9(Uv1(),1);var CC0=s9(E_1(),1);var Vi6=globalThis.fetch;var GG;(function(Y){Y[Y.SUCCESS=0]="SUCCESS",Y[Y.FAILED=1]="FAILED"})(GG||(GG={}));import{mkdir as TC0,rename as vC0,writeFile as RC0}from"fs/promises";import{join as JE}from"path";class XE{bufferItems=[];bufferBytes=0;flushTimer=null;flushQueue=Promise.resolve();basePath;flushThreshold;maxBufferBytes;isShutdown=!1;knownDirs=new Set;partitionKey;constructor(Y){this.basePath=Y.basePath,this.flushThreshold=Y.flushThreshold??1000,this.maxBufferBytes=Y.maxBufferBytes??10485760,this.partitionKey=Y.partitionKey;let J=Y.flushIntervalMs??60000;if(J>0&&J<3600000){if(this.flushTimer=setInterval(()=>{this.flush().catch((X)=>{console.error("[NDJSONExporter] Timer flush failed:",X)})},J),this.flushTimer&&typeof this.flushTimer==="object"&&"unref"in this.flushTimer)this.flushTimer.unref()}}exportRows(Y){if(this.isShutdown)return Promise.resolve({code:GG.FAILED});for(let J of Y){let X=JSON.stringify(J),$=this.partitionKey?this.partitionKey(J):"";this.bufferItems.push({partition:$,json:X}),this.bufferBytes+=Buffer.byteLength(X,"utf8")+1}if(this.bufferItems.length>=this.flushThreshold||this.bufferBytes>=this.maxBufferBytes)return this.flush().then(()=>({code:GG.SUCCESS})).catch((J)=>{return console.error("[NDJSONExporter] Flush failed:",J),{code:GG.FAILED}});return Promise.resolve({code:GG.SUCCESS})}async shutdown(){if(this.isShutdown=!0,this.flushTimer)clearInterval(this.flushTimer),this.flushTimer=null;try{await this.flushQueue}catch{}if(this.bufferItems.length>0)await this.flush()}async forceFlush(){try{await this.flushQueue}catch{}if(this.bufferItems.length>0)await this.flush()}flush(){let J=this.flushQueue.catch(()=>{}).then(()=>this.doFlush());return this.flushQueue=J,J}async doFlush(){if(this.bufferItems.length===0)return;let Y=this.bufferItems;this.bufferItems=[],this.bufferBytes=0;let J=new Map;for(let W of Y){let G=J.get(W.partition);if(!G)G=[],J.set(W.partition,G);G.push(W.json)}let X=await Promise.allSettled(Array.from(J.entries()).map(([W,G])=>this.writeNDJSON(G,W).then(()=>W))),$=X.find((W)=>W.status==="rejected");if($){let W=new Set;for(let Z of X)if(Z.status==="fulfilled")W.add(Z.value);let G=Y.filter((Z)=>!W.has(Z.partition));this.bufferItems=G.concat(this.bufferItems),this.bufferBytes=0;for(let Z of this.bufferItems)this.bufferBytes+=Buffer.byteLength(Z.json,"utf8")+1;throw $.reason}}async writeNDJSON(Y,J){let X=new Date,$=[String(X.getUTCFullYear()),String(X.getUTCMonth()+1).padStart(2,"0"),String(X.getUTCDate()).padStart(2,"0"),String(X.getUTCHours()).padStart(2,"0")],W=J?JE(this.basePath,J,...$):JE(this.basePath,...$);if(!this.knownDirs.has(W))await TC0(W,{recursive:!0,mode:448}),this.knownDirs.add(W);let G=`${crypto.randomUUID()}.ndjson`,Z=JE(W,`.${G}.tmp`),Q=JE(W,G),K=Y.join(`
|
|
1375
1375
|
`)+`
|
|
1376
|
-
`;await RC0(Z,K,{mode:384}),await vC0(Z,Q)}}var F7;(function(Y){Y[Y.NOT_RECORD=0]="NOT_RECORD",Y[Y.RECORD=1]="RECORD",Y[Y.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(F7||(F7={}));var SC0="__d",IC0=ZG.createContextKey("Current request"),kC0=1;var v_1=(Y)=>{let X=new URL(Y.url).searchParams.get(SC0);if(X==="")return crypto.randomUUID();if(!X)X=Y.headers.get("x-trace-debug-id");return X};class __1{inner;constructor(Y){this.inner=Y}shouldSample(Y,J,X,$,W,G){let Z=Y.getValue(IC0);if(!Z){if(this.inner)return this.inner.shouldSample(Y,J,X,$,W,G);return{decision:F7.RECORD_AND_SAMPLED}}let Q=v_1(Z);if(Q)return{decision:F7.RECORD_AND_SAMPLED,attributes:{"trace.debug.id":Q}};if(this.inner){let K=this.inner.shouldSample(Y,J,X,$,W,G);if(K.decision===F7.RECORD_AND_SAMPLED){let H=crypto.randomUUID();K.attributes={...K.attributes??{},"trace.debug.id":H}}return K}return{decision:F7.NOT_RECORD}}toString(){return"DebugSampler"}}class C_1{ratio;constructor(Y){this.ratio=Y}shouldSample(){if(Math.random()<this.ratio)return{decision:F7.RECORD_AND_SAMPLED};return{decision:F7.NOT_RECORD}}toString(){return`RatioSampler(${this.ratio})`}}var An6=new R_1.PrometheusExporter({preventServerStart:!0}),En6=new __1(new C_1(kC0));var T_1=ZG.trace.getTracer("
|
|
1376
|
+
`;await RC0(Z,K,{mode:384}),await vC0(Z,Q)}}var F7;(function(Y){Y[Y.NOT_RECORD=0]="NOT_RECORD",Y[Y.RECORD=1]="RECORD",Y[Y.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(F7||(F7={}));var SC0="__d",IC0=ZG.createContextKey("Current request"),kC0=1;var v_1=(Y)=>{let X=new URL(Y.url).searchParams.get(SC0);if(X==="")return crypto.randomUUID();if(!X)X=Y.headers.get("x-trace-debug-id");return X};class __1{inner;constructor(Y){this.inner=Y}shouldSample(Y,J,X,$,W,G){let Z=Y.getValue(IC0);if(!Z){if(this.inner)return this.inner.shouldSample(Y,J,X,$,W,G);return{decision:F7.RECORD_AND_SAMPLED}}let Q=v_1(Z);if(Q)return{decision:F7.RECORD_AND_SAMPLED,attributes:{"trace.debug.id":Q}};if(this.inner){let K=this.inner.shouldSample(Y,J,X,$,W,G);if(K.decision===F7.RECORD_AND_SAMPLED){let H=crypto.randomUUID();K.attributes={...K.attributes??{},"trace.debug.id":H}}return K}return{decision:F7.NOT_RECORD}}toString(){return"DebugSampler"}}class C_1{ratio;constructor(Y){this.ratio=Y}shouldSample(){if(Math.random()<this.ratio)return{decision:F7.RECORD_AND_SAMPLED};return{decision:F7.NOT_RECORD}}toString(){return`RatioSampler(${this.ratio})`}}var An6=new R_1.PrometheusExporter({preventServerStart:!0}),En6=new __1(new C_1(kC0));var T_1=ZG.trace.getTracer("studio","1.0.0"),S_1=ZG.metrics.getMeter("studio","1.0.0"),bC0=jF.logs.getLogger("studio","1.0.0"),gi=(Y,J,X)=>{let $={},W=X,G=X[X.length-1];if(G!==null&&typeof G==="object"&&!Array.isArray(G)&&!(G instanceof Error)&&Object.getPrototypeOf(G)===Object.prototype)$=G,W=X.slice(0,-1);let Z=W.map((Q)=>{if(Q instanceof Error)return`${Q.name}: ${Q.message}`;if(typeof Q==="object")try{return JSON.stringify(Q)}catch{return"[Object]"}return String(Q)}).join(" ");bC0.emit({severityNumber:Y,severityText:J,body:Z,attributes:{"log.source":"console",...$}})},mi={error:console.error.bind(console),warn:console.warn.bind(console),debug:console.debug.bind(console)};console.error=(...Y)=>{gi(jF.SeverityNumber.ERROR,"ERROR",Y),mi.error(...Y)};console.warn=(...Y)=>{gi(jF.SeverityNumber.WARN,"WARN",Y),mi.warn(...Y)};console.debug=(...Y)=>{gi(jF.SeverityNumber.DEBUG,"DEBUG",Y),mi.debug(...Y)};var fC0=S_1.createHistogram("db.query.duration",{description:"Database query execution duration in milliseconds",unit:"ms"}),yC0=400,hC0=(Y)=>{let J={"db.statement":Y.query.sql,"db.status":Y.level==="error"?"error":"success"};if(Y.queryDurationMillis>yC0)console.error("Slow query detected:",{durationMs:Y.queryDurationMillis,sql:Y.query.sql});if(fC0.record(Y.queryDurationMillis,J),Y.level==="error")console.error("Query failed:",{durationMs:Y.queryDurationMillis,error:Y.error,sql:Y.query.sql})},k_1={keepAlive:!0,keepAliveInitialDelayMillis:1e4,idleTimeoutMillis:300000,connectionTimeoutMillis:30000,allowExitOnIdle:!0};function b_1(){try{return cH().databasePgSsl}catch{return!1}}function f_1(){try{return cH().databasePoolMax}catch{return 10}}function gC0(Y){let J=new I_1({connectionString:Y,max:f_1(),ssl:b_1(),...k_1}),X=new _X({pool:J});return{type:"postgres",db:new J5({dialect:X,log:hC0}),pool:J}}function UL(){return cH().databaseUrl}function y_1(Y){let J=Y||UL();return new _X({pool:new I_1({connectionString:J,max:f_1(),ssl:b_1(),...k_1})})}function mC0(Y){let J=Y||UL();return gC0(J)}async function h_1(Y){if(await Y.db.destroy(),!Y.pool.ended)await Y.pool.end();if(Y===BL)BL=null}var BL=null;function xi(){if(!BL)BL=mC0(UL());return BL}async function g_1(Y){let X={database:y_1(Y||UL()),plugins:[ud({dynamicAccessControl:{enabled:!0,enableCustomResources:!0}}),cd(),Xp(),ad(),Gp(),$p({loginPage:"/login"}),GK1(),Wp({sendMagicLink:async()=>{}}),aP({sendVerificationOTP:async()=>{}})]},{toBeAdded:$,toBeCreated:W,runMigrations:G}=await aM(X);if(!$.length&&!W.length)return"up to date";return await G(),`${W.length+$.length} table(s) migrated`}Nx();async function m_1(Y,J){return(await t`
|
|
1377
1377
|
SELECT table_name FROM information_schema.tables
|
|
1378
1378
|
WHERE table_schema='public' AND table_name=${J}
|
|
1379
1379
|
`.execute(Y)).rows.length>0}async function xC0(Y){if(await m_1(Y,"plugin_migrations"))return;await t`
|