@lobu/runtime-server 24.2.0 → 24.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalogs/connectors.json +24 -2
- package/dist/catalogs/skills.json +1 -1
- package/dist/component.json +1 -1
- package/dist/connectors/gchat.ts +31 -1
- package/dist/connectors/postgres.ts +9 -5
- package/dist/dependencies.bun.lock +104 -167
- package/dist/owletto/dist/assets/_-XKF0m81R.js +3 -0
- package/dist/owletto/dist/assets/_-e8MbEBtw.js +2 -0
- package/dist/owletto/dist/assets/_agentId-Cv9goIFf.js +2 -0
- package/dist/owletto/dist/assets/_agentId-emObu67X.js +2 -0
- package/dist/owletto/dist/assets/_automationId-CfFFAYK1.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-D6NKXSOE.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-DFrkLLTU.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-D3vuAQPe.js +2 -0
- package/dist/owletto/dist/assets/_eventId-BV5SQaUA.js +2 -0
- package/dist/owletto/dist/assets/_name-DjtJMop4.js +2 -0
- package/dist/owletto/dist/assets/_owner-oBX68rb9.js +3 -0
- package/dist/owletto/dist/assets/_shape-C4lLPAwI.js +2 -0
- package/dist/owletto/dist/assets/_skillKey-Cw-7q6hI.js +2 -0
- package/dist/owletto/dist/assets/{_slug-MHQU8ftJ.js → _slug-B2g5qzn3.js} +2 -2
- package/dist/owletto/dist/assets/_viewKey-CIKGCtdK.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-Dx4kJo7o.js +2 -0
- package/dist/owletto/dist/assets/{accept-invitation-D2T_a2dj.js → accept-invitation-38lHBvjO.js} +2 -2
- package/dist/owletto/dist/assets/{activity-route-view-_G_lDz5K.js → activity-route-view-voRYSM3a.js} +2 -2
- package/dist/owletto/dist/assets/{agent-card-controls-ColL5rdd.js → agent-card-controls-DiU7Un5w.js} +2 -2
- package/dist/owletto/dist/assets/{agent-client-setup-list-BgyLhJCo.js → agent-client-setup-list-Bkyw22GW.js} +4 -4
- package/dist/owletto/dist/assets/agent-connect-pages-CpBxQCpx.js +2 -0
- package/dist/owletto/dist/assets/{agent-editor-form-C24p9LLg.js → agent-editor-form-QrIDroFL.js} +2 -2
- package/dist/owletto/dist/assets/agent-guardrails-route-CyoGSxcZ.js +2 -0
- package/dist/owletto/dist/assets/{agent-loading-shells-jkf9DjdO.js → agent-loading-shells-CamDtzHY.js} +2 -2
- package/dist/owletto/dist/assets/{agent-permissions-matrix-C8j8kRB1.js → agent-permissions-matrix-CgsQ8BK_.js} +2 -2
- package/dist/owletto/dist/assets/{agent-skill-context-B9giw2u2.js → agent-skill-context-lWbXKEm1.js} +2 -2
- package/dist/owletto/dist/assets/{agent-skills-route-BMZ3r1bP.js → agent-skills-route-D-w3tY_2.js} +2 -2
- package/dist/owletto/dist/assets/{agent-subpage-shell-D49f-bzP.js → agent-subpage-shell-CLqpn5Tb.js} +2 -2
- package/dist/owletto/dist/assets/{agent-thread-BGHYHWDO.js → agent-thread-CsRexwTv.js} +4 -4
- package/dist/owletto/dist/assets/agents-DzH_FFKU.js +2 -0
- package/dist/owletto/dist/assets/agents-workbench-CmGrMvPC.js +2 -0
- package/dist/owletto/dist/assets/app-bridge-C4nPtae3.js +121 -0
- package/dist/owletto/dist/assets/{app._appId-A51tx2jU.js → app._appId-BO7G38fL.js} +2 -2
- package/dist/owletto/dist/assets/{automation-detail-content-DCAZBKle.js → automation-detail-content-DMYxs6F6.js} +2 -2
- package/dist/owletto/dist/assets/automations-DzH_FFKU.js +2 -0
- package/dist/owletto/dist/assets/calendar-DDCCSPW6.js +2 -0
- package/dist/owletto/dist/assets/{callback-WmyCei3R.js → callback-DFciMR8u.js} +2 -2
- package/dist/owletto/dist/assets/{card-Cspo-4M6.js → card-BCsbrdGs.js} +2 -2
- package/dist/owletto/dist/assets/{claim-CCKdBtFt.js → claim-BRua2b_7.js} +2 -2
- package/dist/owletto/dist/assets/{client-activity-scopes-CmK3DkSP.js → client-activity-scopes-BLIy1Zc3.js} +2 -2
- package/dist/owletto/dist/assets/client-rows-DiJQ5D1z.js +2 -0
- package/dist/owletto/dist/assets/clients-8-EpRjsm.js +2 -0
- package/dist/owletto/dist/assets/{code-editor-C8FJbT2P.js → code-editor-BFZa4EIt.js} +2 -2
- package/dist/owletto/dist/assets/connect-C0cHE9Xl.js +2 -0
- package/dist/owletto/dist/assets/connect-menu-D2K4tmvW.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-D4EG5a0v.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-DhoCT6sT.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.activity-Dn4qw2Us.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.index-BTI5JXA3.js +2 -0
- package/dist/owletto/dist/assets/connection-X9VU9Ijm.js +2 -0
- package/dist/owletto/dist/assets/connection-feed-detail-B6ydKasK.js +2 -0
- package/dist/owletto/dist/assets/connections-browser-BMV8bf54.js +2 -0
- package/dist/owletto/dist/assets/connector-boxes-DqZA-FdG.js +2 -0
- package/dist/owletto/dist/assets/{connector-provenance-bmBJJ9B4.js → connector-provenance-BIg8P8WY.js} +2 -2
- package/dist/owletto/dist/assets/{connector-scope-lists-B44Q9W-j.js → connector-scope-lists-CJYz53YF.js} +2 -2
- package/dist/owletto/dist/assets/{connectors-CTWPDH8f.js → connectors-BroKpwhB.js} +2 -2
- package/dist/owletto/dist/assets/{consent-C_WBfmQ8.js → consent-fzLN-Qy7.js} +2 -2
- package/dist/owletto/dist/assets/copy-button-Df7QXE0w.js +2 -0
- package/dist/owletto/dist/assets/{core.esm-CoJ5Splc.js → core.esm-A1UnFbGs.js} +2 -2
- package/dist/owletto/dist/assets/create-BjwsYarn.js +2 -0
- package/dist/owletto/dist/assets/create-Dzr4mlr0.js +2 -0
- package/dist/owletto/dist/assets/create-automation-form-DHW6OUoS.js +3 -0
- package/dist/owletto/dist/assets/create-c94SPL21.js +2 -0
- package/dist/owletto/dist/assets/create._connectorKey-DLLn2nej.js +2 -0
- package/dist/owletto/dist/assets/{cronstrue-CeUS_78Q.js → cronstrue-xxpD1P2-.js} +2 -2
- package/dist/owletto/dist/assets/{device-Br9JHadR.js → device-C3AEoL5c.js} +2 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-B_te59GE.js +2 -0
- package/dist/owletto/dist/assets/device._deviceId-ZU09qrot.js +2 -0
- package/dist/owletto/dist/assets/{entity-avatar-BZIa-7i5.js → entity-avatar-CEV4ttUQ.js} +2 -2
- package/dist/owletto/dist/assets/entity-options-DJv2EhVV.js +2 -0
- package/dist/owletto/dist/assets/entity-page-BUghWZ1s.js +2 -0
- package/dist/owletto/dist/assets/entity-type-page-Lf6ONdpf.js +2 -0
- package/dist/owletto/dist/assets/event-card-CBlsG32u.js +2 -0
- package/dist/owletto/dist/assets/event-detail-BKSGEOdW.js +2 -0
- package/dist/owletto/dist/assets/events-feed-VfU4csn2.js +2 -0
- package/dist/owletto/dist/assets/feed-event-kinds-BYuZCoU4.js +2 -0
- package/dist/owletto/dist/assets/filter-bar-COU0sBFQ.js +2 -0
- package/dist/owletto/dist/assets/{full-page-spinner-DtmqQmgl.js → full-page-spinner-C1Q_jEzD.js} +2 -2
- package/dist/owletto/dist/assets/guardrails-6ZJv1uzM.js +2 -0
- package/dist/owletto/dist/assets/identity-BaFLmbSo.js +2 -0
- package/dist/owletto/dist/assets/index-008wj-Pz.js +7950 -0
- package/dist/owletto/dist/assets/index-BaetvYLa.js +2 -0
- package/dist/owletto/dist/assets/index-BiEf5xOE.css +1 -0
- package/dist/owletto/dist/assets/index-BrDP4PCs.js +2 -0
- package/dist/owletto/dist/assets/index-BuXIeK7D.js +2 -0
- package/dist/owletto/dist/assets/index-CAVcR9za.js +2 -0
- package/dist/owletto/dist/assets/index-CMLfWGPU.js +2 -0
- package/dist/owletto/dist/assets/index-D0YEYP7N.js +2 -0
- package/dist/owletto/dist/assets/{index-BhBYXtEN.js → index-DFyBbp7b.js} +2 -2
- package/dist/owletto/dist/assets/{index-DRbaESbJ.js → index-DNtYqkiA.js} +2 -2
- package/dist/owletto/dist/assets/index-DQxzeM37.js +2 -0
- package/dist/owletto/dist/assets/index-DkO0nPex.js +2 -0
- package/dist/owletto/dist/assets/index-KlRId0g6.js +2 -0
- package/dist/owletto/dist/assets/index-Ywnqi4A6.js +2 -0
- package/dist/owletto/dist/assets/index-xnxhf3Op.js +2 -0
- package/dist/owletto/dist/assets/{index-Bhop_otG.js → index-yIub2xUM.js} +2 -2
- package/dist/owletto/dist/assets/{json-diff-4sMmayDd.js → json-diff-LE_vNZrM.js} +4 -4
- package/dist/owletto/dist/assets/{list-skeleton-BafzvpOM.js → list-skeleton-Kzxi2OXB.js} +2 -2
- package/dist/owletto/dist/assets/login-DWOT6jtS.js +2 -0
- package/dist/owletto/dist/assets/logout-Dt_VDilG.js +2 -0
- package/dist/owletto/dist/assets/{member-scope-gate-Dit3MXBQ.js → member-scope-gate-De75CR7W.js} +2 -2
- package/dist/owletto/dist/assets/memory-browse-page-p2vIbfkC.js +74 -0
- package/dist/owletto/dist/assets/{model-selector-BeFuFH7p.js → model-selector-3l9lY50C.js} +2 -2
- package/dist/owletto/dist/assets/model-udnQ_S43.js +2 -0
- package/dist/owletto/dist/assets/models-CQj7GIOp.js +2 -0
- package/dist/owletto/dist/assets/new-BOwIHkre.js +2 -0
- package/dist/owletto/dist/assets/{new-ChwqLmVY.js → new-BbdwuJPm.js} +2 -2
- package/dist/owletto/dist/assets/new-DTuFCQhV.js +2 -0
- package/dist/owletto/dist/assets/{oauth-workspace-access-D15LYKSe.js → oauth-workspace-access-QPo4YwRX.js} +2 -2
- package/dist/owletto/dist/assets/{organization-CoUJYXx7.js → organization-BDzjnqPf.js} +2 -2
- package/dist/owletto/dist/assets/peek-pane-content-D7yt0PrA.js +2 -0
- package/dist/owletto/dist/assets/{permissions-C6UFdvz2.js → permissions-CfoY4WFY.js} +2 -2
- package/dist/owletto/dist/assets/{proposal-review-shell-CmLy1MZf.js → proposal-review-shell-CVkLnnKo.js} +2 -2
- package/dist/owletto/dist/assets/public-shell-ready-DXUTTGGp.js +2 -0
- package/dist/owletto/dist/assets/record-activity-BXhvJbd9.js +2 -0
- package/dist/owletto/dist/assets/{record-session-CJzFoVKc.js → record-session-D07szzqN.js} +2 -2
- package/dist/owletto/dist/assets/{linked-record-peek-B0_B4PnF.js → renderer-AJxSmE3-.js} +30 -30
- package/dist/owletto/dist/assets/reset-password-kRYyQuTY.js +2 -0
- package/dist/owletto/dist/assets/{runs-B0zVYb-w.js → runs-lG2ChtOt.js} +2 -2
- package/dist/owletto/dist/assets/runs-panel-LnGpHCAQ.js +2 -0
- package/dist/owletto/dist/assets/{schema-type-editor-panel-DcJqbCrU.js → schema-type-editor-panel-C_Es0qDf.js} +2 -2
- package/dist/owletto/dist/assets/settings-CEAOg7fr.js +2 -0
- package/dist/owletto/dist/assets/{settings-Dg0D_l_w.js → settings-gGYXbFfd.js} +2 -2
- package/dist/owletto/dist/assets/skills-BOL5c_Tk.js +2 -0
- package/dist/owletto/dist/assets/source-record-panels-CjFPgKKJ.js +2 -0
- package/dist/owletto/dist/assets/{status-dot-_LQZmEIX.js → status-dot-CSBtKT4g.js} +2 -2
- package/dist/owletto/dist/assets/table-DHM-vCxP.js +2 -0
- package/dist/owletto/dist/assets/use-automations-C4TSie1i.js +2 -0
- package/dist/owletto/dist/assets/{use-mention-search-CAFbh-Dk.js → use-mention-search-PfZrNbu_.js} +2 -2
- package/dist/owletto/dist/assets/use-scroll-sentinel-D-fJx_Md.js +2 -0
- package/dist/owletto/dist/assets/view-param-filters-DkX4YdDT.js +2 -0
- package/dist/owletto/dist/assets/views-access-required-2ubIf_3N.js +2 -0
- package/dist/owletto/dist/index.html +2 -2
- package/dist/server-main.bundle.mjs +99167 -97912
- package/npm-shrinkwrap.json +537 -896
- package/package.json +7 -10
- package/vendor/@better-auth-kysely-adapter/.bun-tag-abf95749a412716 +0 -0
- package/vendor/@better-auth-kysely-adapter/LICENSE.md +20 -0
- package/vendor/@better-auth-kysely-adapter/README.md +17 -0
- package/vendor/@better-auth-kysely-adapter/dist/bun-sqlite-dialect-DoOVo4ja.mjs +123 -0
- package/vendor/@better-auth-kysely-adapter/dist/d1-sqlite-dialect-Cru74LbR.mjs +133 -0
- package/vendor/@better-auth-kysely-adapter/dist/index.d.mts +116 -0
- package/vendor/@better-auth-kysely-adapter/dist/index.mjs +719 -0
- package/vendor/@better-auth-kysely-adapter/dist/node-sqlite-dialect.d.mts +27 -0
- package/vendor/@better-auth-kysely-adapter/dist/node-sqlite-dialect.mjs +123 -0
- package/vendor/@better-auth-kysely-adapter/dist/sqlite-introspector-DSCAP82F.mjs +90 -0
- package/vendor/@better-auth-kysely-adapter/package.json +52 -0
- package/vendor/connector-sdk/dist/connector-types.d.ts +29 -0
- package/vendor/connector-sdk/dist/index.d.ts +3 -1
- package/vendor/connector-sdk/dist/index.js +4 -0
- package/vendor/connector-sdk/dist/redact.d.ts +10 -0
- package/vendor/connector-sdk/dist/redact.js +130 -0
- package/vendor/connector-sdk/dist/types.d.ts +2 -1
- package/vendor/connector-sdk/package.json +6 -1
- package/vendor/core/dist/connector-query-errors.d.ts +6 -0
- package/vendor/core/dist/connector-query-errors.js +4 -0
- package/vendor/core/dist/contracts/tools/manage-automations.js +1 -1
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +1 -1
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +4 -0
- package/vendor/core/dist/contracts/tools/manage-entity.js +6 -0
- package/vendor/core/dist/contracts/worker/device-automation.d.ts +1 -1
- package/vendor/core/dist/contracts/worker/device-automation.js +1 -1
- package/vendor/core/dist/errors.d.ts +0 -20
- package/vendor/core/dist/errors.js +1 -25
- package/vendor/core/dist/otel.js +38 -10
- package/vendor/core/dist/utils/ajv.js +3 -1
- package/vendor/core/package.json +26 -5
- package/vendor/views/package.json +1 -1
- package/dist/owletto/dist/assets/_-Cjvw31gU.js +0 -2
- package/dist/owletto/dist/assets/_-iToIRRFt.js +0 -3
- package/dist/owletto/dist/assets/_agentId-CLdj0X7j.js +0 -2
- package/dist/owletto/dist/assets/_agentId-D5cAWjrP.js +0 -2
- package/dist/owletto/dist/assets/_automationId-BhEZmkJU.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey._connectionId-DZtLc3WW.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey.index-BoYpah_l.js +0 -2
- package/dist/owletto/dist/assets/_conversationId-ML2TjCwN.js +0 -2
- package/dist/owletto/dist/assets/_eventId-BYc3I2EL.js +0 -2
- package/dist/owletto/dist/assets/_name-BsOZmvlH.js +0 -2
- package/dist/owletto/dist/assets/_owner-UuyQLJ-0.js +0 -3
- package/dist/owletto/dist/assets/_shape-BpnVAYWH.js +0 -2
- package/dist/owletto/dist/assets/_skillKey-CYrGvNn-.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-CGAJ1ucr.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-CMkhfs1k.js +0 -2
- package/dist/owletto/dist/assets/agent-connect-pages-BryZas7Z.js +0 -2
- package/dist/owletto/dist/assets/agent-guardrails-route-D9PpDgR-.js +0 -2
- package/dist/owletto/dist/assets/agents-C05k-Xw6.js +0 -2
- package/dist/owletto/dist/assets/agents-workbench-D1YL3VAB.js +0 -2
- package/dist/owletto/dist/assets/app-bridge-BCm4muqj.js +0 -128
- package/dist/owletto/dist/assets/automations-C05k-Xw6.js +0 -2
- package/dist/owletto/dist/assets/client-rows-fFuxzFtE.js +0 -2
- package/dist/owletto/dist/assets/connect-BmCUJ3lr.js +0 -2
- package/dist/owletto/dist/assets/connect._clientId-B6StGCPK.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId-CPiMA6Bx.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.activity-BialEDmu.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.index-X1wVi6v0.js +0 -2
- package/dist/owletto/dist/assets/connection-DJd9bnEc.js +0 -2
- package/dist/owletto/dist/assets/connection-feed-detail-IO6G5QjL.js +0 -2
- package/dist/owletto/dist/assets/connections-browser-CzdcZeiU.js +0 -2
- package/dist/owletto/dist/assets/copy-button-kcjg8Giw.js +0 -2
- package/dist/owletto/dist/assets/create-CQE5rD0i.js +0 -2
- package/dist/owletto/dist/assets/create-DQNlRTUX.js +0 -2
- package/dist/owletto/dist/assets/create-automation-form-y3tq2QIJ.js +0 -3
- package/dist/owletto/dist/assets/create-lOFSQV_5.js +0 -2
- package/dist/owletto/dist/assets/create._connectorKey-icyNicvn.js +0 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-7UpeD4Sq.js +0 -2
- package/dist/owletto/dist/assets/device._deviceId-DGMmjr01.js +0 -2
- package/dist/owletto/dist/assets/entity-options-BcTafZ2e.js +0 -2
- package/dist/owletto/dist/assets/entity-page-CY7PF3X9.js +0 -2
- package/dist/owletto/dist/assets/entity-type-page-BzMZttzh.js +0 -2
- package/dist/owletto/dist/assets/event-detail-C25TvOb_.js +0 -2
- package/dist/owletto/dist/assets/events-feed-C4VrjIc1.js +0 -2
- package/dist/owletto/dist/assets/filter-editors-oNjBX9a2.js +0 -2
- package/dist/owletto/dist/assets/guardrails-Acfam-JF.js +0 -2
- package/dist/owletto/dist/assets/identity-BkK8ggdp.js +0 -2
- package/dist/owletto/dist/assets/index-Bw5iV_J7.js +0 -2
- package/dist/owletto/dist/assets/index-C3dpyynY.js +0 -2
- package/dist/owletto/dist/assets/index-C3zAbslo.js +0 -2
- package/dist/owletto/dist/assets/index-CGKN_WN_.js +0 -2
- package/dist/owletto/dist/assets/index-CgRaCOzW.js +0 -2
- package/dist/owletto/dist/assets/index-DfIoxD5Q.js +0 -2
- package/dist/owletto/dist/assets/index-DijuudSs.js +0 -2
- package/dist/owletto/dist/assets/index-Dr7bouPX.css +0 -1
- package/dist/owletto/dist/assets/index-JmEl29py.js +0 -7950
- package/dist/owletto/dist/assets/index-NK2VKPoL.js +0 -2
- package/dist/owletto/dist/assets/index-_5qsmBkt.js +0 -2
- package/dist/owletto/dist/assets/index-qkOKpRYs.js +0 -2
- package/dist/owletto/dist/assets/index-wzYkECAe.js +0 -2
- package/dist/owletto/dist/assets/login-XL5XxN6y.js +0 -2
- package/dist/owletto/dist/assets/logout-CMxdhLbM.js +0 -2
- package/dist/owletto/dist/assets/memory-browse-page-DTlM_9MY.js +0 -74
- package/dist/owletto/dist/assets/models-BAVaDnKN.js +0 -2
- package/dist/owletto/dist/assets/new-1QLuS1o-.js +0 -2
- package/dist/owletto/dist/assets/new-D21LGMl6.js +0 -2
- package/dist/owletto/dist/assets/peek-pane-content-BvkYk72J.js +0 -2
- package/dist/owletto/dist/assets/public-shell-ready-_awBxu2Y.js +0 -2
- package/dist/owletto/dist/assets/record-activity-Doeu5kPO.js +0 -2
- package/dist/owletto/dist/assets/reset-password-Y-WO77iR.js +0 -2
- package/dist/owletto/dist/assets/runs-panel-Dkyybqos.js +0 -2
- package/dist/owletto/dist/assets/runs-table-9OVdfPXZ.js +0 -2
- package/dist/owletto/dist/assets/settings-Cfy9tCOF.js +0 -2
- package/dist/owletto/dist/assets/skills-oxA7P5Fe.js +0 -2
- package/dist/owletto/dist/assets/source-record-panels-BeAZeMLy.js +0 -2
- package/dist/owletto/dist/assets/use-automations-DS3uz3pb.js +0 -2
- package/dist/owletto/dist/assets/use-scroll-sentinel-BpQ70c28.js +0 -2
- package/dist/owletto/dist/assets/view-param-filters-FuOZyjMg.js +0 -2
- package/dist/owletto/dist/assets/views-access-required-CWwlobOd.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/runtime-server",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"repository": {
|
|
@@ -21,10 +21,6 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@opentelemetry/api": "^1.9.0",
|
|
24
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "^0.222.0",
|
|
25
|
-
"@opentelemetry/resources": "^2.11.0",
|
|
26
|
-
"@opentelemetry/sdk-trace-node": "^2.11.0",
|
|
27
|
-
"@opentelemetry/semantic-conventions": "^1.28.0",
|
|
28
24
|
"@sinclair/typebox": "^0.34.41",
|
|
29
25
|
"acorn": "^8.16.0",
|
|
30
26
|
"ajv": "^8.17.1",
|
|
@@ -43,7 +39,7 @@
|
|
|
43
39
|
"esbuild": "^0.28.1",
|
|
44
40
|
"just-bash": "^2.14.2",
|
|
45
41
|
"pathe": "^2.0.3",
|
|
46
|
-
"undici": "7.
|
|
42
|
+
"undici": "7.30.1",
|
|
47
43
|
"@aws-sdk/client-bedrock": "^3.1028.0",
|
|
48
44
|
"@aws-sdk/client-secrets-manager": "^3.1028.0",
|
|
49
45
|
"@chat-adapter/discord": "4.38.1",
|
|
@@ -61,13 +57,15 @@
|
|
|
61
57
|
"@react-email/render": "^2.0.7",
|
|
62
58
|
"@scalar/hono-api-reference": "^0.9.39",
|
|
63
59
|
"@vercel/sandbox": "^2.2.1",
|
|
64
|
-
"@better-auth/core": "1.
|
|
65
|
-
"@better-auth/
|
|
66
|
-
"better-auth": "1.
|
|
60
|
+
"@better-auth/core": "1.7.7",
|
|
61
|
+
"@better-auth/kysely-adapter": "file:vendor/@better-auth-kysely-adapter",
|
|
62
|
+
"@better-auth/passkey": "1.7.7",
|
|
63
|
+
"better-auth": "1.7.7",
|
|
67
64
|
"chat": "^4.38.1",
|
|
68
65
|
"cron-parser": "^5.6.1",
|
|
69
66
|
"hono": "^4.10.4",
|
|
70
67
|
"hono-pino": "^0.10.3",
|
|
68
|
+
"jose": "^6.2.3",
|
|
71
69
|
"kysely": "^0.28.0",
|
|
72
70
|
"kysely-postgres-js": "^2.0.0",
|
|
73
71
|
"mdast-util-gfm": "^3.1.0",
|
|
@@ -75,7 +73,6 @@
|
|
|
75
73
|
"pino": "^10.1.0",
|
|
76
74
|
"react": "^19.2.5",
|
|
77
75
|
"react-dom": "^19.2.5",
|
|
78
|
-
"resend": "^6.28.0",
|
|
79
76
|
"@js-temporal/polyfill": "0.5.1",
|
|
80
77
|
"zod": "^4.4.0",
|
|
81
78
|
"dotenv": "^16.4.5",
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
Copyright (c) 2024 - present, Bereket Engida
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
this software and associated documentation files (the “Software”), to deal in
|
|
6
|
+
the Software without restriction, including without limitation the rights to
|
|
7
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
19
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
20
|
+
DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Better Auth Kysely Adapter
|
|
2
|
+
|
|
3
|
+
Kysely adapter for [Better Auth](https://www.better-auth.com).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @better-auth/kysely-adapter
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
|
|
13
|
+
For full documentation, visit [better-auth.com/docs/adapters/kysely](https://www.better-auth.com/docs/adapters/kysely).
|
|
14
|
+
|
|
15
|
+
## License
|
|
16
|
+
|
|
17
|
+
MIT
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { t as createSqliteIntrospector } from "./sqlite-introspector-DSCAP82F.mjs";
|
|
2
|
+
import { CompiledQuery, DefaultQueryCompiler } from "kysely";
|
|
3
|
+
//#region src/bun-sqlite-dialect.ts
|
|
4
|
+
var BunSqliteAdapter = class {
|
|
5
|
+
get supportsCreateIfNotExists() {
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
get supportsTransactionalDdl() {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
get supportsReturning() {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
async acquireMigrationLock() {}
|
|
15
|
+
async releaseMigrationLock() {}
|
|
16
|
+
get supportsOutput() {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var BunSqliteDriver = class {
|
|
21
|
+
#config;
|
|
22
|
+
#connectionMutex = new ConnectionMutex();
|
|
23
|
+
#db;
|
|
24
|
+
#connection;
|
|
25
|
+
constructor(config) {
|
|
26
|
+
this.#config = { ...config };
|
|
27
|
+
}
|
|
28
|
+
async init() {
|
|
29
|
+
this.#db = this.#config.database;
|
|
30
|
+
this.#connection = new BunSqliteConnection(this.#db);
|
|
31
|
+
if (this.#config.onCreateConnection) await this.#config.onCreateConnection(this.#connection);
|
|
32
|
+
}
|
|
33
|
+
async acquireConnection() {
|
|
34
|
+
await this.#connectionMutex.lock();
|
|
35
|
+
return this.#connection;
|
|
36
|
+
}
|
|
37
|
+
async beginTransaction(connection) {
|
|
38
|
+
await connection.executeQuery(CompiledQuery.raw("begin"));
|
|
39
|
+
}
|
|
40
|
+
async commitTransaction(connection) {
|
|
41
|
+
await connection.executeQuery(CompiledQuery.raw("commit"));
|
|
42
|
+
}
|
|
43
|
+
async rollbackTransaction(connection) {
|
|
44
|
+
await connection.executeQuery(CompiledQuery.raw("rollback"));
|
|
45
|
+
}
|
|
46
|
+
async releaseConnection() {
|
|
47
|
+
this.#connectionMutex.unlock();
|
|
48
|
+
}
|
|
49
|
+
async destroy() {
|
|
50
|
+
this.#db?.close();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var BunSqliteConnection = class {
|
|
54
|
+
#db;
|
|
55
|
+
constructor(db) {
|
|
56
|
+
this.#db = db;
|
|
57
|
+
}
|
|
58
|
+
executeQuery(compiledQuery) {
|
|
59
|
+
const { sql, parameters } = compiledQuery;
|
|
60
|
+
const stmt = this.#db.prepare(sql);
|
|
61
|
+
const params = parameters;
|
|
62
|
+
if (stmt.columnNames.length > 0) return Promise.resolve({ rows: stmt.all(...params) });
|
|
63
|
+
const { changes, lastInsertRowid } = stmt.run(...params);
|
|
64
|
+
return Promise.resolve({
|
|
65
|
+
rows: [],
|
|
66
|
+
numAffectedRows: BigInt(changes),
|
|
67
|
+
insertId: typeof lastInsertRowid === "bigint" ? lastInsertRowid : BigInt(lastInsertRowid)
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
async *streamQuery() {
|
|
71
|
+
throw new Error("Streaming query is not supported by SQLite driver.");
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var ConnectionMutex = class {
|
|
75
|
+
#promise;
|
|
76
|
+
#resolve;
|
|
77
|
+
async lock() {
|
|
78
|
+
while (this.#promise !== void 0) await this.#promise;
|
|
79
|
+
this.#promise = new Promise((resolve) => {
|
|
80
|
+
this.#resolve = resolve;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
unlock() {
|
|
84
|
+
const resolve = this.#resolve;
|
|
85
|
+
this.#promise = void 0;
|
|
86
|
+
this.#resolve = void 0;
|
|
87
|
+
resolve?.();
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var BunSqliteQueryCompiler = class extends DefaultQueryCompiler {
|
|
91
|
+
getCurrentParameterPlaceholder() {
|
|
92
|
+
return "?";
|
|
93
|
+
}
|
|
94
|
+
getLeftIdentifierWrapper() {
|
|
95
|
+
return "\"";
|
|
96
|
+
}
|
|
97
|
+
getRightIdentifierWrapper() {
|
|
98
|
+
return "\"";
|
|
99
|
+
}
|
|
100
|
+
getAutoIncrement() {
|
|
101
|
+
return "autoincrement";
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var BunSqliteDialect = class {
|
|
105
|
+
#config;
|
|
106
|
+
constructor(config) {
|
|
107
|
+
this.#config = { ...config };
|
|
108
|
+
}
|
|
109
|
+
createDriver() {
|
|
110
|
+
return new BunSqliteDriver(this.#config);
|
|
111
|
+
}
|
|
112
|
+
createQueryCompiler() {
|
|
113
|
+
return new BunSqliteQueryCompiler();
|
|
114
|
+
}
|
|
115
|
+
createAdapter() {
|
|
116
|
+
return new BunSqliteAdapter();
|
|
117
|
+
}
|
|
118
|
+
createIntrospector(db) {
|
|
119
|
+
return createSqliteIntrospector(db);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
//#endregion
|
|
123
|
+
export { BunSqliteDialect };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { a as DEFAULT_MIGRATION_LOCK_TABLE, i as toSqliteTableMetadata, o as DEFAULT_MIGRATION_TABLE, r as sqliteIntegerPrimaryKeyColumn } from "./sqlite-introspector-DSCAP82F.mjs";
|
|
2
|
+
import { SqliteAdapter, SqliteQueryCompiler } from "kysely";
|
|
3
|
+
//#region src/d1-sqlite-dialect.ts
|
|
4
|
+
function quoteSqliteStringLiteral(value) {
|
|
5
|
+
return `'${value.replaceAll("'", "''")}'`;
|
|
6
|
+
}
|
|
7
|
+
function createD1IndexIntrospector(database) {
|
|
8
|
+
return async (tableNames) => {
|
|
9
|
+
if (tableNames.length === 0) return [];
|
|
10
|
+
const indexes = (await database.batch(tableNames.map((tableName) => database.prepare(`PRAGMA index_list(${quoteSqliteStringLiteral(tableName)})`)))).flatMap((indexList, tablePosition) => {
|
|
11
|
+
const tableName = tableNames[tablePosition];
|
|
12
|
+
if (!tableName) return [];
|
|
13
|
+
return indexList.results.map((index) => ({
|
|
14
|
+
...index,
|
|
15
|
+
tableName
|
|
16
|
+
}));
|
|
17
|
+
});
|
|
18
|
+
if (indexes.length === 0) return [];
|
|
19
|
+
const indexColumns = await database.batch(indexes.map((index) => database.prepare(`PRAGMA index_info(${quoteSqliteStringLiteral(index.name)})`)));
|
|
20
|
+
return indexes.map((index, indexPosition) => ({
|
|
21
|
+
columns: (indexColumns[indexPosition]?.results ?? []).map((column) => ({
|
|
22
|
+
fullLength: column.name !== null,
|
|
23
|
+
name: column.name,
|
|
24
|
+
position: column.seqno
|
|
25
|
+
})),
|
|
26
|
+
name: index.name,
|
|
27
|
+
partial: index.partial !== 0,
|
|
28
|
+
table: index.tableName,
|
|
29
|
+
unique: index.unique !== 0,
|
|
30
|
+
valid: true
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
var D1SqliteAdapter = class extends SqliteAdapter {};
|
|
35
|
+
var D1SqliteDriver = class {
|
|
36
|
+
#config;
|
|
37
|
+
#connection;
|
|
38
|
+
constructor(config) {
|
|
39
|
+
this.#config = { ...config };
|
|
40
|
+
}
|
|
41
|
+
async init() {
|
|
42
|
+
this.#connection = new D1SqliteConnection(this.#config.database);
|
|
43
|
+
if (this.#config.onCreateConnection) await this.#config.onCreateConnection(this.#connection);
|
|
44
|
+
}
|
|
45
|
+
async acquireConnection() {
|
|
46
|
+
return this.#connection;
|
|
47
|
+
}
|
|
48
|
+
async beginTransaction() {
|
|
49
|
+
throw new Error("D1 does not support interactive transactions. Use the D1 batch() API instead.");
|
|
50
|
+
}
|
|
51
|
+
async commitTransaction() {
|
|
52
|
+
throw new Error("D1 does not support interactive transactions. Use the D1 batch() API instead.");
|
|
53
|
+
}
|
|
54
|
+
async rollbackTransaction() {
|
|
55
|
+
throw new Error("D1 does not support interactive transactions. Use the D1 batch() API instead.");
|
|
56
|
+
}
|
|
57
|
+
async releaseConnection() {}
|
|
58
|
+
async destroy() {}
|
|
59
|
+
};
|
|
60
|
+
var D1SqliteConnection = class {
|
|
61
|
+
#db;
|
|
62
|
+
constructor(db) {
|
|
63
|
+
this.#db = db;
|
|
64
|
+
}
|
|
65
|
+
async executeQuery(compiledQuery) {
|
|
66
|
+
const results = await this.#db.prepare(compiledQuery.sql).bind(...compiledQuery.parameters).all();
|
|
67
|
+
const numAffectedRows = results.meta.changes != null ? BigInt(results.meta.changes) : void 0;
|
|
68
|
+
return {
|
|
69
|
+
insertId: results.meta.last_row_id === void 0 || results.meta.last_row_id === null ? void 0 : BigInt(results.meta.last_row_id),
|
|
70
|
+
rows: results?.results || [],
|
|
71
|
+
numAffectedRows
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
async *streamQuery() {
|
|
75
|
+
throw new Error("D1 does not support streaming queries.");
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var D1SqliteIntrospector = class {
|
|
79
|
+
#db;
|
|
80
|
+
#d1;
|
|
81
|
+
constructor(db, d1) {
|
|
82
|
+
this.#db = db;
|
|
83
|
+
this.#d1 = d1;
|
|
84
|
+
}
|
|
85
|
+
async getSchemas() {
|
|
86
|
+
return [];
|
|
87
|
+
}
|
|
88
|
+
async getTables(options = { withInternalKyselyTables: false }) {
|
|
89
|
+
let query = this.#db.selectFrom("sqlite_master").where("type", "in", ["table", "view"]).where("name", "not like", "sqlite_%").where("name", "not like", "_cf_%").select(["name", "type"]).$castTo();
|
|
90
|
+
if (!options.withInternalKyselyTables) query = query.where("name", "!=", DEFAULT_MIGRATION_TABLE).where("name", "!=", DEFAULT_MIGRATION_LOCK_TABLE);
|
|
91
|
+
const tables = await query.execute();
|
|
92
|
+
if (tables.length === 0) return [];
|
|
93
|
+
const statements = tables.map((table) => this.#d1.prepare("SELECT * FROM pragma_table_info(?)").bind(table.name));
|
|
94
|
+
const batchResults = await this.#d1.batch(statements);
|
|
95
|
+
const rowidCandidates = tables.flatMap((table, index) => {
|
|
96
|
+
const column = sqliteIntegerPrimaryKeyColumn(batchResults[index]?.results ?? []);
|
|
97
|
+
return column ? [{
|
|
98
|
+
index,
|
|
99
|
+
tableName: table.name,
|
|
100
|
+
column
|
|
101
|
+
}] : [];
|
|
102
|
+
});
|
|
103
|
+
const indexResults = rowidCandidates.length ? await this.#d1.batch(rowidCandidates.map(({ tableName }) => this.#d1.prepare(`PRAGMA index_list(${quoteSqliteStringLiteral(tableName)})`))) : [];
|
|
104
|
+
const generatedColumns = new Map(rowidCandidates.filter((_, index) => !indexResults[index]?.results?.some((row) => row.origin === "pk")).map(({ index, column }) => [index, column]));
|
|
105
|
+
return tables.map((table, index) => {
|
|
106
|
+
return toSqliteTableMetadata(table, batchResults[index]?.results ?? [], generatedColumns.get(index));
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
async getMetadata(options) {
|
|
110
|
+
return { tables: await this.getTables(options) };
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
var D1SqliteQueryCompiler = class extends SqliteQueryCompiler {};
|
|
114
|
+
var D1SqliteDialect = class {
|
|
115
|
+
#config;
|
|
116
|
+
constructor(config) {
|
|
117
|
+
this.#config = { ...config };
|
|
118
|
+
}
|
|
119
|
+
createDriver() {
|
|
120
|
+
return new D1SqliteDriver(this.#config);
|
|
121
|
+
}
|
|
122
|
+
createQueryCompiler() {
|
|
123
|
+
return new D1SqliteQueryCompiler();
|
|
124
|
+
}
|
|
125
|
+
createAdapter() {
|
|
126
|
+
return new D1SqliteAdapter();
|
|
127
|
+
}
|
|
128
|
+
createIntrospector(db) {
|
|
129
|
+
return new D1SqliteIntrospector(db, this.#config.database);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
//#endregion
|
|
133
|
+
export { D1SqliteDialect, createD1IndexIntrospector };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Kysely, TableMetadata } from "kysely";
|
|
2
|
+
import { DBAdapter, DBAdapterDebugLogOption } from "@better-auth/core/db/adapter";
|
|
3
|
+
import { ExpectedSchema, IntrospectedTable } from "@better-auth/core/db/internal";
|
|
4
|
+
import { BetterAuthOptions } from "@better-auth/core";
|
|
5
|
+
|
|
6
|
+
//#region src/types.d.ts
|
|
7
|
+
type KyselyDatabaseType = "postgres" | "mysql" | "sqlite" | "mssql";
|
|
8
|
+
/**
|
|
9
|
+
* Metadata for a column that participates in a database index.
|
|
10
|
+
*/
|
|
11
|
+
interface DatabaseIndexColumnMetadata {
|
|
12
|
+
/**
|
|
13
|
+
* Whether the index covers the complete column value rather than a prefix.
|
|
14
|
+
*/
|
|
15
|
+
readonly fullLength: boolean;
|
|
16
|
+
readonly name: string | null;
|
|
17
|
+
readonly position: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Database-agnostic metadata for an index.
|
|
21
|
+
*/
|
|
22
|
+
interface DatabaseIndexMetadata {
|
|
23
|
+
readonly columns: readonly DatabaseIndexColumnMetadata[];
|
|
24
|
+
readonly name: string;
|
|
25
|
+
readonly partial: boolean;
|
|
26
|
+
readonly table: string;
|
|
27
|
+
readonly unique: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the database reports the index as complete and usable.
|
|
30
|
+
*/
|
|
31
|
+
readonly valid: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Reads normalized index metadata for the provided database tables.
|
|
35
|
+
*/
|
|
36
|
+
type DatabaseIndexIntrospector = (tableNames: readonly string[]) => Promise<readonly DatabaseIndexMetadata[]>;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/dialect.d.ts
|
|
39
|
+
declare function getKyselyDatabaseType(db: BetterAuthOptions["database"]): KyselyDatabaseType | null;
|
|
40
|
+
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
41
|
+
kysely: Kysely<any>;
|
|
42
|
+
databaseType: "postgres" | "mysql" | "sqlite" | "mssql";
|
|
43
|
+
introspectIndexes: undefined;
|
|
44
|
+
schemaName: string | undefined;
|
|
45
|
+
transaction: boolean | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
kysely: Kysely<any> | null;
|
|
48
|
+
databaseType: KyselyDatabaseType | null;
|
|
49
|
+
introspectIndexes: DatabaseIndexIntrospector | undefined;
|
|
50
|
+
schemaName: undefined;
|
|
51
|
+
transaction: boolean | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/kysely-adapter.d.ts
|
|
55
|
+
interface KyselyAdapterConfig {
|
|
56
|
+
/**
|
|
57
|
+
* Database type.
|
|
58
|
+
*
|
|
59
|
+
* For `"mysql"`, this adapter depends on the driver returning
|
|
60
|
+
* "rows matched" counts from `UPDATE`/`DELETE` operations (in
|
|
61
|
+
* mysql2: `affectedRows`, exposed by Kysely as `numUpdatedRows`).
|
|
62
|
+
* By default, `mysql2` enables this via the `FOUND_ROWS` client
|
|
63
|
+
* flag.
|
|
64
|
+
*
|
|
65
|
+
* Do not disable this flag. If you remove it (e.g. with
|
|
66
|
+
* `flags: '-FOUND_ROWS'` in your pool config), MySQL will report
|
|
67
|
+
* "rows changed" semantics: an idempotent `UPDATE` (where the new
|
|
68
|
+
* value equals the old value) will show zero affected rows, causing
|
|
69
|
+
* adapter methods like `update`, `incrementOne`, or `updateMany` to
|
|
70
|
+
* return `null` or `0` even if a row matched the predicate.
|
|
71
|
+
*/
|
|
72
|
+
type?: KyselyDatabaseType | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Enable debug logs for the adapter
|
|
75
|
+
*
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
debugLogs?: DBAdapterDebugLogOption | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Use plural for table names.
|
|
81
|
+
*
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
usePlural?: boolean | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Whether to execute multiple operations in a transaction.
|
|
87
|
+
*
|
|
88
|
+
* If the database doesn't support transactions,
|
|
89
|
+
* set this to `false` and operations will be executed sequentially.
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
transaction?: boolean | undefined;
|
|
93
|
+
}
|
|
94
|
+
declare const kyselyAdapter: (db: Kysely<any>, config?: KyselyAdapterConfig | undefined) => (options: BetterAuthOptions) => DBAdapter<BetterAuthOptions>;
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/schema-check.d.ts
|
|
97
|
+
/**
|
|
98
|
+
* Converts Kysely table metadata into the shape `diffSchema` compares.
|
|
99
|
+
*/
|
|
100
|
+
declare function toIntrospectedTables(tables: readonly TableMetadata[]): IntrospectedTable[];
|
|
101
|
+
/**
|
|
102
|
+
* The expected schema in the identifiers the connection sends. A plugin that
|
|
103
|
+
* renames identifiers, such as `CamelCasePlugin`, does so in `transformQuery`,
|
|
104
|
+
* so compiling one select per table through the connection yields the names
|
|
105
|
+
* the database is asked for. Without such a plugin the schema is unchanged.
|
|
106
|
+
*/
|
|
107
|
+
declare function toPhysicalSchema(db: Kysely<unknown>, expected: ExpectedSchema): ExpectedSchema;
|
|
108
|
+
/**
|
|
109
|
+
* The default schema for migration tooling. Let PostgreSQL resolve role
|
|
110
|
+
* names and privileges, retaining the legacy public fallback when none exists.
|
|
111
|
+
* Runtime validation uses the effective search path instead of this fallback.
|
|
112
|
+
*/
|
|
113
|
+
declare function getPostgresSchema(db: Kysely<unknown>): Promise<string>;
|
|
114
|
+
declare function getMssqlSchema(db: Kysely<unknown>): Promise<string>;
|
|
115
|
+
//#endregion
|
|
116
|
+
export { DatabaseIndexColumnMetadata, DatabaseIndexIntrospector, DatabaseIndexMetadata, KyselyDatabaseType, createKyselyAdapter, getKyselyDatabaseType, getMssqlSchema, getPostgresSchema, kyselyAdapter, toIntrospectedTables, toPhysicalSchema };
|