better-supabase 0.35.0 → 0.36.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/{adapter-CWzyKepA.js → adapter-ddQ9Hzka.js} +126 -91
- package/dist/{agents-DXiOPB3V.d.ts → agents-BwUHtvD6.d.ts} +4 -4
- package/dist/{ai-cache-CLiAXCPH.d.ts → ai-cache-CPOP2PYz.d.ts} +4 -4
- package/dist/{ai-chat-DlcBdOhJ.d.ts → ai-chat-BZhfCHHr.d.ts} +106 -25
- package/dist/{ai-schedules-Drx2KRTn.d.ts → ai-schedules-BZPmySUa.d.ts} +5 -5
- package/dist/ai-sdk/agents/index.d.ts +6 -6
- package/dist/ai-sdk/batches/index.d.ts +3 -3
- package/dist/ai-sdk/cache/index.d.ts +1 -1
- package/dist/ai-sdk/chat/index.d.ts +2 -2
- package/dist/ai-sdk/chat/index.js +3 -272
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +5 -5
- package/dist/ai-sdk/index.js +2 -3
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/workflow/index.d.ts +6 -5
- package/dist/ai-sdk/workflow/index.js +9 -9
- package/dist/{api-myq2e9t5.d.ts → api-XEaCJbgv.d.ts} +5 -5
- package/dist/{api-keys-DbIbkGxx.d.ts → api-keys-C82fMru4.d.ts} +4 -4
- package/dist/{app-tables-X3yzJljM.d.ts → app-tables-C0XVpQEJ.d.ts} +1 -1
- package/dist/{approvals-Da4uAANx.js → approvals-D8gR1R8R.js} +95 -11
- package/dist/{approvals-DZoGtNFv.d.ts → approvals-DqCv7f-G.d.ts} +101 -7
- package/dist/{assistant-BEbRPjhn.d.ts → assistant-5heV2GeR.d.ts} +7 -3
- package/dist/assistant-BHZ6fqBR.js +300 -0
- package/dist/astro/index.d.ts +7 -7
- package/dist/astro/index.js +5 -5
- package/dist/{auth-module-CqXdm8qD.js → auth-module-DkqapRZJ.js} +1 -1
- package/dist/{authorization-D1P3VBOd.d.ts → authorization-2Rv1AJQJ.d.ts} +114 -39
- package/dist/{authorization-hooks-CxwsRnfV.d.ts → authorization-hooks-C0GfMvFm.d.ts} +8 -2
- package/dist/authz-topic-D7fPUY4P.js +13 -0
- package/dist/{availability-CebEOfMN.d.ts → availability-CZlcrkqD.d.ts} +49 -8
- package/dist/{base64-CVyKHBBw.js → base64-CEBz6-Jj.js} +9 -2
- package/dist/better-result/index.d.ts +3 -3
- package/dist/{bind-Bvv-Zrdh.d.ts → bind-C2XvMlfg.d.ts} +7 -7
- package/dist/{block-env-h_uPl2f_.d.ts → block-env-BQrtLPyc.d.ts} +4 -4
- package/dist/{block-helpers-disoUWCp.d.ts → block-helpers-BNtM1tqy.d.ts} +1 -1
- package/dist/{block-hooks-DrA_d1dJ.d.ts → block-hooks-CtMsgLQr.d.ts} +2 -2
- package/dist/{block-subjects-Br2MQNFn.d.ts → block-subjects-Bkieh2Xk.d.ts} +1 -1
- package/dist/{block-tables-pj3eHfoP.d.ts → block-tables-DPOgnT3y.d.ts} +1 -1
- package/dist/{block-transport-BEtC_Kis.d.ts → block-transport-CDmOUuLZ.d.ts} +2 -2
- package/dist/blocks/access-requests/index.d.ts +5 -5
- package/dist/blocks/activities/index.d.ts +9 -9
- package/dist/blocks/agents/index.d.ts +4 -4
- package/dist/blocks/ai-cache/index.d.ts +3 -3
- package/dist/blocks/ai-chat/index.d.ts +8 -8
- package/dist/blocks/ai-chat/index.js +80 -20
- package/dist/blocks/ai-files/index.d.ts +3 -3
- package/dist/blocks/ai-keys/index.d.ts +4 -4
- package/dist/blocks/ai-schedules/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +8 -8
- package/dist/blocks/api-keys/index.d.ts +3 -3
- package/dist/blocks/approvals/index.d.ts +16 -5
- package/dist/blocks/approvals/index.js +7 -4
- package/dist/blocks/assets/index.d.ts +6 -6
- package/dist/blocks/assignment/index.d.ts +7 -7
- package/dist/blocks/attachments/index.d.ts +4 -4
- package/dist/blocks/audit/index.d.ts +13 -13
- package/dist/blocks/audit/index.js +1 -1
- package/dist/blocks/automations/index.d.ts +12 -12
- package/dist/blocks/billable-time/index.d.ts +6 -6
- package/dist/blocks/billing/index.d.ts +9 -9
- package/dist/blocks/billing/index.js +1 -1
- package/dist/blocks/bookings/index.d.ts +6 -6
- package/dist/blocks/bulk/index.d.ts +4 -4
- package/dist/blocks/calendar/index.d.ts +46 -8
- package/dist/blocks/calendar/index.js +306 -47
- package/dist/blocks/catalog/index.d.ts +39 -17
- package/dist/blocks/catalog/index.js +35 -15
- package/dist/blocks/channels/index.d.ts +7 -7
- package/dist/blocks/collections/index.d.ts +6 -6
- package/dist/blocks/comments/index.d.ts +10 -10
- package/dist/blocks/compliance/index.d.ts +5 -5
- package/dist/blocks/connectors/index.d.ts +4 -4
- package/dist/blocks/contacts/index.d.ts +6 -6
- package/dist/blocks/content/index.d.ts +5 -5
- package/dist/blocks/contracts/index.d.ts +6 -6
- package/dist/blocks/courses/index.d.ts +5 -5
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/custom-fields/index.d.ts +6 -6
- package/dist/blocks/data-lifecycle/index.d.ts +8 -8
- package/dist/blocks/deals/index.d.ts +6 -6
- package/dist/blocks/dispatch/index.d.ts +6 -6
- package/dist/blocks/documents/index.d.ts +4 -4
- package/dist/blocks/documents/index.js +1 -1
- package/dist/blocks/domains/index.d.ts +6 -6
- package/dist/blocks/donations/index.d.ts +6 -6
- package/dist/blocks/drive/index.d.ts +6 -6
- package/dist/blocks/employees/index.d.ts +8 -8
- package/dist/blocks/enrichment/index.d.ts +6 -6
- package/dist/blocks/enrollments/index.d.ts +74 -9
- package/dist/blocks/enrollments/index.js +67 -3
- package/dist/blocks/entitlements/index.d.ts +6 -6
- package/dist/blocks/expenses/index.d.ts +93 -6
- package/dist/blocks/expenses/index.js +95 -4
- package/dist/blocks/field-history/index.d.ts +4 -4
- package/dist/blocks/flags/index.d.ts +5 -5
- package/dist/blocks/forecasts/index.d.ts +6 -6
- package/dist/blocks/forms/index.d.ts +6 -6
- package/dist/blocks/goals/index.d.ts +4 -4
- package/dist/blocks/guests/index.d.ts +6 -6
- package/dist/blocks/hiring/index.d.ts +6 -6
- package/dist/blocks/identities/index.d.ts +5 -5
- package/dist/blocks/imports/index.d.ts +5 -5
- package/dist/blocks/inbox/index.d.ts +11 -11
- package/dist/blocks/inbox/index.js +56 -1
- package/dist/blocks/incidents/index.d.ts +5 -5
- package/dist/blocks/index.d.ts +9 -9
- package/dist/blocks/inventory/index.d.ts +6 -6
- package/dist/blocks/invoices/index.d.ts +26 -10
- package/dist/blocks/invoices/index.js +23 -7
- package/dist/blocks/knowledge/index.d.ts +4 -4
- package/dist/blocks/knowledge/index.js +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +7 -7
- package/dist/blocks/leases/index.d.ts +6 -6
- package/dist/blocks/leave/index.d.ts +88 -15
- package/dist/blocks/leave/index.js +65 -14
- package/dist/blocks/ledger/index.d.ts +6 -6
- package/dist/blocks/mail-sync/index.d.ts +5 -5
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memory/index.d.ts +5 -5
- package/dist/blocks/memory/index.js +30 -5
- package/dist/blocks/messaging/index.d.ts +11 -11
- package/dist/blocks/metrics/index.d.ts +6 -6
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +6 -6
- package/dist/blocks/notifications/index.d.ts +11 -11
- package/dist/blocks/notifications/index.js +1 -1
- package/dist/blocks/numbering/index.d.ts +4 -4
- package/dist/blocks/oauth-server/index.d.ts +5 -5
- package/dist/blocks/oauth-server/index.js +1 -1
- package/dist/blocks/onboarding/index.d.ts +5 -5
- package/dist/blocks/orders/index.d.ts +7 -7
- package/dist/blocks/organizations/index.d.ts +8 -8
- package/dist/blocks/outbox/index.d.ts +4 -4
- package/dist/blocks/outbox/index.js +1 -1
- package/dist/blocks/passes/index.d.ts +8 -8
- package/dist/blocks/passes/index.js +2 -2
- package/dist/blocks/permissions/index.d.ts +7 -7
- package/dist/blocks/pipelines/index.d.ts +6 -6
- package/dist/blocks/posts/index.d.ts +5 -5
- package/dist/blocks/profiles/index.d.ts +4 -4
- package/dist/blocks/promotions/index.d.ts +5 -5
- package/dist/blocks/push/index.d.ts +7 -7
- package/dist/blocks/queue/index.d.ts +6 -6
- package/dist/blocks/queue/index.js +2 -2
- package/dist/blocks/quotes/index.d.ts +119 -27
- package/dist/blocks/quotes/index.js +111 -17
- package/dist/blocks/rank/index.d.ts +4 -4
- package/dist/blocks/reactions/index.d.ts +9 -9
- package/dist/blocks/relations/index.d.ts +7 -7
- package/dist/blocks/reminders/index.d.ts +78 -11
- package/dist/blocks/reminders/index.js +118 -6
- package/dist/blocks/reviews/index.d.ts +5 -5
- package/dist/blocks/saved-views/index.d.ts +6 -6
- package/dist/blocks/scores/index.d.ts +5 -5
- package/dist/blocks/search/index.d.ts +7 -7
- package/dist/blocks/security-events/index.d.ts +7 -7
- package/dist/blocks/security-events/index.js +1 -1
- package/dist/blocks/segments/index.d.ts +7 -7
- package/dist/blocks/sequences/index.d.ts +6 -6
- package/dist/blocks/service-accounts/index.d.ts +5 -5
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +1 -1
- package/dist/blocks/settings/index.d.ts +6 -6
- package/dist/blocks/share-links/index.d.ts +5 -5
- package/dist/blocks/shipments/index.d.ts +6 -6
- package/dist/blocks/shipments/index.js +1 -1
- package/dist/blocks/signatures/index.d.ts +5 -5
- package/dist/blocks/signing-keys/index.d.ts +4 -4
- package/dist/blocks/signing-keys/index.js +2 -2
- package/dist/blocks/sla/index.d.ts +7 -7
- package/dist/blocks/sso/index.d.ts +6 -6
- package/dist/blocks/state-machine/index.d.ts +27 -7
- package/dist/blocks/state-machine/index.js +7 -2
- package/dist/blocks/subjects/index.d.ts +6 -6
- package/dist/blocks/tags/index.d.ts +6 -6
- package/dist/blocks/tasks/index.d.ts +9 -9
- package/dist/blocks/teams/index.d.ts +4 -4
- package/dist/blocks/templates/index.d.ts +7 -7
- package/dist/blocks/time-tracking/index.d.ts +7 -7
- package/dist/blocks/timeline/index.d.ts +8 -8
- package/dist/blocks/trash/index.d.ts +6 -6
- package/dist/blocks/undo/index.d.ts +4 -4
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +4 -4
- package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
- package/dist/blocks/vercel-marketplace/index.js +3 -3
- package/dist/blocks/versions/index.d.ts +6 -6
- package/dist/blocks/waitlist/index.d.ts +5 -5
- package/dist/blocks/waitlist/index.js +1 -1
- package/dist/blocks/webhooks/index.d.ts +13 -13
- package/dist/blocks/webhooks/index.js +5 -5
- package/dist/blocks/workflow-editor/index.d.ts +10 -10
- package/dist/blocks/workflow-editor/index.js +65 -2
- package/dist/blocks/workflows/index.d.ts +7 -7
- package/dist/{bookings-Br0VXzaf.d.ts → bookings-Dj5cvXKv.d.ts} +4 -4
- package/dist/{bucket-DvG66r5G.d.ts → bucket-CrsJNHzi.d.ts} +1 -1
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/claims/index.d.ts +6 -6
- package/dist/claims/index.js +2 -2
- package/dist/cli/{add-DzgsOE8V.js → add-D2CH8t_B.js} +2 -2
- package/dist/cli/add-De73Ghlh.js +1 -0
- package/dist/cli/{add-CYreXA68.js → add-Duf1-19E.js} +16 -14
- package/dist/cli/{agent-59XWXsRi.js → agent-Tqq3MAqx.js} +26 -1
- package/dist/cli/{app-table-files-BnISa3uY.js → app-table-files-ha8X0rRE.js} +2 -2
- package/dist/cli/app-tables-BIyQcsHH.js +42 -0
- package/dist/cli/{backfill-BLLTSDSa.js → backfill-CLgA6-ll.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-uzh1g_0v.js → blocks-9AeouX4h.js} +2 -2
- package/dist/cli/{blocks-CpRvI7x8.js → blocks-BVB1fMMj.js} +1 -1
- package/dist/cli/{cache-BPWC7tGD.js → cache-aMk9vF1_.js} +1 -1
- package/dist/cli/{codemod-CbJVS_kG.js → codemod-B5wrcnF2.js} +113 -4
- package/dist/cli/{command-BpZ4AuhR.js → command-DM_x_yzZ.js} +6 -0
- package/dist/cli/{completion-DHTT6rjI.js → completion-CusuUJNn.js} +1 -1
- package/dist/cli/{completion-B08Q0xB3.js → completion-Cx2UYd-y.js} +2 -2
- package/dist/cli/{completion-CwL7e93t.js → completion-DbYb3N8e.js} +2 -2
- package/dist/cli/{config-D-Upz3jV.js → config-BeuImpav.js} +1 -1
- package/dist/cli/{content-mapper-Cjkm2Sg3.js → content-mapper-CEtdbshU.js} +2 -2
- package/dist/cli/{db-Diy1OebO.js → db-CeiQzhPq.js} +2 -2
- package/dist/cli/{doctor-D94FEJZs.js → doctor-DaOUWfRN.js} +386 -49
- package/dist/cli/env-BfWbheiC.js +1 -0
- package/dist/cli/{env-BAJn6wCA.js → env-DVV10l_r.js} +1 -1
- package/dist/cli/{gen-Cd0VNDjE.js → gen-BO-2NF-G.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-Co1N9ZoA.js → init-Xit9Hnbb.js} +9 -9
- package/dist/cli/{keys-CxajkV_7.js → keys-DJTN2Avl.js} +1 -1
- package/dist/cli/{live-NFNeZsP7.js → live-CuMpyRjF.js} +2 -2
- package/dist/cli/{mcp-WZ8t7NMz.js → mcp-C7d4j5cq.js} +4 -4
- package/dist/cli/{metadata-BzMkmrZR.js → metadata-D2YvkY2D.js} +3 -3
- package/dist/cli/{migrate-C9gyDAV7.js → migrate-BCXxyTKt.js} +2 -2
- package/dist/cli/{migration-safety-BNi8PIiM.js → migration-safety-DfwTOBQ4.js} +1 -1
- package/dist/cli/{migrations-Ds0J_TmZ.js → migrations-nomh4TBo.js} +2 -2
- package/dist/cli/{module-migration-hFrlzQZ5.js → module-migration--9T_T-zt.js} +2 -2
- package/dist/cli/{moved-BAFPdJz_.js → moved-CT6i1csY.js} +1 -1
- package/dist/cli/{parse-BueItuNJ.js → parse-qgJylE_A.js} +1 -1
- package/dist/cli/{powersync-oFiwgsBi.js → powersync-DB9WZsIv.js} +4 -4
- package/dist/cli/powersync-IBM_v_eJ.js +1 -0
- package/dist/cli/{print-BtreoJSm.js → print-S6IF5rZm.js} +2 -2
- package/dist/cli/{providers-Be2dgyuR.js → providers-BDTcal71.js} +1 -1
- package/dist/cli/{prune-workflows-BPxgRrqY.js → prune-workflows-Zr2DjByi.js} +3 -3
- package/dist/cli/{remove-B4ad996E.js → remove-CPX5Tg5s.js} +6 -6
- package/dist/cli/{render-C-Mfq-o3.js → render-Bp7a7XQ9.js} +18 -4
- package/dist/cli/{run-D2nuyyPo.js → run-BclCFEyP.js} +12 -48
- package/dist/cli/{run-dY9uOC3W.js → run-BlVaLnt_.js} +2 -2
- package/dist/cli/{run-cLdnJHH0.js → run-kgG50x_Z.js} +44 -43
- package/dist/cli/{seed-BpaqqyO8.js → seed-Cn2R91cd.js} +2 -2
- package/dist/cli/seed-DGGjReq4.js +1 -0
- package/dist/cli/{shared-DCHxLAEL.js → shared-D60W9NS-.js} +1 -1
- package/dist/cli/{skills-jZThjL3B.js → skills-DH-yPDny.js} +1 -1
- package/dist/cli/{snapshot-CloKPNxv.js → snapshot-C3_eQUgY.js} +2 -2
- package/dist/cli/{source-Bwyp18Rj.js → source-Bk6XwIAK.js} +1 -1
- package/dist/cli/{spec-DsVq4_qV.js → spec-BDTpcBns.js} +1 -1
- package/dist/cli/{spec-DAUF4ybu.js → spec-C8ydQwZC.js} +3 -3
- package/dist/cli/{sql-layout-CHpEL0oq.js → sql-layout-DVQ20UMi.js} +2 -2
- package/dist/cli/{stack-147NqctC.js → stack-CmhSfY5V.js} +3 -2
- package/dist/cli/{sync-DZu1r34s.js → sync-D-WO4Yvl.js} +4 -4
- package/dist/cli/{table-D9FbJS8h.js → table-k5OABwy3.js} +1 -1
- package/dist/cli/{upgrade-Bpvi70zm.js → upgrade-DGe5Pv6v.js} +5 -5
- package/dist/cli/{upgrade-A-BALvp3.js → upgrade-XdhMuHAu.js} +3 -3
- package/dist/cli/{version-B59mZJoy.js → version-DKfeme2I.js} +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.d.ts +5 -5
- package/dist/client/native/index.js +2 -2
- package/dist/{client-Bky2z09B.js → client-DrejIxsu.js} +1 -1
- package/dist/{cloud-event-DXWmXrus.d.ts → cloud-event-BEmAUdl1.d.ts} +1 -1
- package/dist/commerce/index.js +1 -1
- package/dist/{compiler-qlXlokKn.d.ts → compiler-BOW4yPcW.d.ts} +2 -2
- package/dist/{composite-CIxjVcL1.d.ts → composite-B-oAH16L.d.ts} +7 -7
- package/dist/{composite-D2JnIiHt.js → composite-BidYZWZY.js} +3 -3
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +4 -4
- package/dist/{config-BZWSFxkG.js → config-BKxjItQ-.js} +3 -3
- package/dist/{config-DQP0IvDX.js → config-BrRlSxhx.js} +1 -1
- package/dist/{connectors-Cf2LeAuZ.d.ts → connectors-CrLRW4Ol.d.ts} +4 -4
- package/dist/{context-CderJRZf.d.ts → context-yfOlyAqb.d.ts} +3 -3
- package/dist/contract/index.d.ts +9 -9
- package/dist/{controller-DaWA9eWS.d.ts → controller-CAcLEndc.d.ts} +1 -1
- package/dist/{conversion-C9rndpEI.d.ts → conversion-s1NtB6S-.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +4 -4
- package/dist/create/lite/index.js +2 -2
- package/dist/credentials/index.d.ts +4 -4
- package/dist/credentials/index.js +1 -1
- package/dist/{cron-route-DSITg1yC.js → cron-route-uTsC2BD0.js} +1 -1
- package/dist/{data-engine-CMENsp3d.d.ts → data-engine-CX1oYDZl.d.ts} +1 -1
- package/dist/{define-ITQA71fw.d.ts → define-BvkaC3Oh.d.ts} +5 -5
- package/dist/{define-B6D55cO0.js → define-Duh2mMYk.js} +1 -1
- package/dist/{define-block-COmMkx2x.d.ts → define-block-Ds3aLZwz.d.ts} +12 -12
- package/dist/{documents-DeZw83ue.d.ts → documents-Btk0MhC0.d.ts} +3 -3
- package/dist/edge/index.d.ts +9 -9
- package/dist/edge/index.js +7 -7
- package/dist/elysia/index.d.ts +1 -1
- package/dist/elysia/index.js +1 -1
- package/dist/{embeddings-rVR2AKVz.d.ts → embeddings-CI6P_mtD.d.ts} +1 -1
- package/dist/{ended-NC_ZesY4.d.ts → ended-iq2wp8fc.d.ts} +8 -3
- package/dist/{entitlements-BefkpQIz.d.ts → entitlements-Dhu-4vlH.d.ts} +2 -2
- package/dist/env/index.d.ts +1 -1
- package/dist/{messages-CRk1g6oe.js → errors-0Qid9fGz.js} +107 -3
- package/dist/eve/index.d.ts +9 -9
- package/dist/eve/index.js +3 -3
- package/dist/{eve-DIKjuPp5.d.ts → eve-DleYrhwj.d.ts} +2 -2
- package/dist/{event-calendar-DUtFyRrv.d.ts → event-calendar-DPMcqy7Q.d.ts} +1 -1
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-DVt3Z9hw.d.ts → events-DCw3c6pj.d.ts} +1 -1
- package/dist/{executor-DqNRrFxx.d.ts → executor-B-o7QMPp.d.ts} +16 -2
- package/dist/{executor-CFmee_nV.d.ts → executor-DoSNec_H.d.ts} +1 -1
- package/dist/{executor-CHnoKOxk.d.ts → executor-H8ZLkeHj.d.ts} +4 -4
- package/dist/{executor-BDMqPbVU.js → executor-RYiR4z47.js} +71 -37
- package/dist/expo/index.d.ts +4 -4
- package/dist/expo/index.js +7 -7
- package/dist/{field-errors-D1meOs_H.d.ts → field-errors-DXZk9Qjt.d.ts} +10 -10
- package/dist/{fields-CAVk9dxX.d.ts → fields-CP46SPNE.d.ts} +1 -1
- package/dist/{filter-evaluate-Bz3Fzhz2.d.ts → filter-evaluate-Bkbb0nuQ.d.ts} +1 -1
- package/dist/{filter-query-DV-x8fio.d.ts → filter-query-Xj40B5KT.d.ts} +1 -1
- package/dist/{flags-6emyAXly.d.ts → flags-Cuew4tGx.d.ts} +2 -2
- package/dist/flags-sdk/index.d.ts +2 -2
- package/dist/{framework-BFlaPuvv.d.ts → framework-Byr_j8G-.d.ts} +8 -8
- package/dist/{framework-ChzJYkJW.js → framework-z3KTPRjk.js} +4 -4
- package/dist/{gateway-DaekJ_Me.d.ts → gateway-B9k89AC4.d.ts} +3 -3
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/index.js +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/h3/v1/index.js +1 -1
- package/dist/hono/index.d.ts +9 -10
- package/dist/hono/index.js +8 -8
- package/dist/{inbox-DavCzW7b.d.ts → inbox-yGfUVQr2.d.ts} +61 -6
- package/dist/{index-Dvpu22CJ.d.ts → index-1uV69AZq.d.ts} +1 -1
- package/dist/{index-BbDiBiKt.d.ts → index-6H-8Ib1w.d.ts} +4 -4
- package/dist/{index-M1izbwbN.d.ts → index-Ag-T51Jl.d.ts} +1 -1
- package/dist/{index-ZQZMQF4l.d.ts → index-BUluRi0b.d.ts} +6 -6
- package/dist/{index-BQlLxOj5.d.ts → index-C78VPlXW.d.ts} +1 -1
- package/dist/{index-D18su_r5.d.ts → index-CY612vAg.d.ts} +10 -5
- package/dist/{index-DXUiRyEk.d.ts → index-CnzGRpeH.d.ts} +5 -5
- package/dist/{index-BIAtapnD.d.ts → index-Dbd1E5Au.d.ts} +5 -5
- package/dist/{index-ChLuLxy-.d.ts → index-Dv6lfL5p.d.ts} +14 -14
- package/dist/{index-8w4OB5En.d.ts → index-F6lsRlsr.d.ts} +1 -1
- package/dist/{index-D9aV0Fvx.d.ts → index-kkZwp5M1.d.ts} +6 -6
- package/dist/{index-C13UgV67.d.ts → index-lMApFSAd.d.ts} +5 -5
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/{instances-D9YrkoAy.js → instances-xQ2lupVE.js} +218 -11
- package/dist/jwks-cache-CBKtICNV.js +114 -0
- package/dist/{jws-B8p0ppgh.js → jws-De9qjIPV.js} +1 -1
- package/dist/{kit-9pZP5iLU.js → kit-D5rRAKWJ.js} +2 -2
- package/dist/{kit-OgFOW9rX.d.ts → kit-DCuO1ZhB.d.ts} +4 -4
- package/dist/{knowledge-DdZzUTQ-.js → knowledge-CJnZOaix.js} +67 -7
- package/dist/{knowledge-BBC2sfAY.d.ts → knowledge-DWXAxvkN.d.ts} +82 -11
- package/dist/lint/index.d.ts +1 -1
- package/dist/list/index.d.ts +3 -3
- package/dist/{list-query-C7V8kUaD.d.ts → list-query-D1h3Dmnk.d.ts} +3 -3
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +5 -5
- package/dist/mcp/sdk/index.d.ts +6 -6
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/{messaging-D5z2TR37.d.ts → messaging-Bfe4p9Pm.d.ts} +4 -4
- package/dist/{model-messages-BcrkjsPE.js → model-messages-CIHqP7Z3.js} +1 -1
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/nestjs/index.js +1 -1
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +331 -79
- package/dist/next/index.js +520 -105
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +1 -1
- package/dist/{operations-t_hlXkS4.d.ts → operations-SWpzGC_K.d.ts} +1 -1
- package/dist/{options-D4dxMGHF.js → options-Bgnm4pTD.js} +1 -0
- package/dist/{options-C13-dVMH.js → options-D-jiqb0l.js} +2 -0
- package/dist/{options-C9bp3SEA.js → options-DqmTs2nv.js} +2 -1
- package/dist/{options-CuPWezcV.js → options-RYbyaVhv.js} +3 -1
- package/dist/options-SOjQVgfS.js +37 -0
- package/dist/{options-JnPEVbBJ.js → options-ScQ6Hnxo.js} +2 -1
- package/dist/{options-CuaWhsQS.js → options-X61tvckX.js} +2 -1
- package/dist/orpc/index.d.ts +8 -8
- package/dist/orpc/index.js +6 -6
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-7zgh-7nw.d.ts → outbox-BFZS6Kvz.d.ts} +4 -4
- package/dist/{permissions-C8p6RlIZ.d.ts → permissions-2UlVQDzY.d.ts} +1 -1
- package/dist/{pool-D-4HyhuW.d.ts → pool-yO-LzZAd.d.ts} +3 -3
- package/dist/{ports-CmEXVqhg.js → ports-CkygVOeE.js} +2 -2
- package/dist/{ports-C-8uduFM.d.ts → ports-prqYrReN.d.ts} +1 -1
- package/dist/postgres/index.d.ts +4 -4
- package/dist/{postgrest-DZtM2nIS.d.ts → postgrest-Bjain6nf.d.ts} +1 -1
- package/dist/powersync/index.d.ts +6 -6
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-B_sSI9vg.js → preset-BvHNleCo.js} +2 -2
- package/dist/{project-DVlXQGEp.js → project-CBvowdKY.js} +5 -5
- package/dist/{provider-BI0KC4u5.d.ts → provider-bIAzxVMB.d.ts} +1 -1
- package/dist/{push-token-D41lOoE8.d.ts → push-token-DtqJeg8w.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/{rate-limit-CRhlLFhP.js → rate-limit-BJ4EMdAy.js} +1 -1
- package/dist/react/index.d.ts +9 -9
- package/dist/react/index.js +3 -3
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/native/index.js +1 -1
- package/dist/react/server.d.ts +9 -9
- package/dist/react/server.js +2 -2
- package/dist/react/session.d.ts +2 -32
- package/dist/react/session.js +1 -37
- package/dist/{react-COIov1yC.js → react-DZ7AW2yf.js} +2 -2
- package/dist/react-router/index.d.ts +6 -6
- package/dist/react-router/index.js +5 -5
- package/dist/realtime/index.d.ts +6 -6
- package/dist/{record-form-DU2EoVsv.d.ts → record-form-BQA-lawE.d.ts} +1 -1
- package/dist/{recordings-D69Va7gP.d.ts → recordings-Bw5LoocX.d.ts} +1 -1
- package/dist/records/index.d.ts +9 -9
- package/dist/{refusal-CGi-0Q18.d.ts → refusal-BX1EvmpJ.d.ts} +3 -3
- package/dist/{refusal-5c6UMpUP.js → refusal-rnbr6RZD.js} +2 -2
- package/dist/{refresh-B8t_KE3s.js → request-kind-tNDM5Z_o.js} +15 -31
- package/dist/{resolve--LfVoOMg.d.ts → resolve-BIpQRhvF.d.ts} +97 -36
- package/dist/{resolve-FW8oeXvh.js → resolve-CZV31iCm.js} +402 -392
- package/dist/{resolved-names-h-3UbKcw.js → resolved-names-b6P2--jK.js} +1 -1
- package/dist/{resource-BbWk4hoP.js → resource-COaS9_i8.js} +1 -1
- package/dist/{resource-DWllVW8k.d.ts → resource-CaYpB07K.d.ts} +1 -1
- package/dist/{resource-execute-DUBYKTYU.d.ts → resource-execute-A1NbR-sd.d.ts} +2 -2
- package/dist/{resource-types-RgaljPs0.d.ts → resource-types-CTcc37WL.d.ts} +4 -4
- package/dist/{resources-Bki1J4jy.d.ts → resources-13ZFX1G6.d.ts} +2 -2
- package/dist/{resources-DYSx9NYM.js → resources-DhiK3yLO.js} +1 -1
- package/dist/{respond-DLH4tD2d.js → respond-8A3EOo61.js} +1 -1
- package/dist/{respond-BYOV7KZp.d.ts → respond-CAxhkwAi.d.ts} +15 -19
- package/dist/{sales-lines-DuNVoKHA.d.ts → sales-lines-wQHuL-pa.d.ts} +1 -1
- package/dist/{sandboxes-B2hBoBvJ.d.ts → sandboxes-BF9RxxCU.d.ts} +1 -1
- package/dist/{scores-FAORS4qU.d.ts → scores-Ce8MxQX9.d.ts} +5 -5
- package/dist/server/index.d.ts +58 -36
- package/dist/server/index.js +35 -41
- package/dist/{server-types-C2hlvhP4.d.ts → server-types-DEjva0MW.d.ts} +19 -17
- package/dist/{session-B4VasaAA.d.ts → session-BA0YDmjt.d.ts} +11 -12
- package/dist/session-BjPYE4dT.js +180 -0
- package/dist/session-CeYL3EPm.d.ts +77 -0
- package/dist/{session-status-D8CBxCqv.d.ts → session-status-Df6tuKY9.d.ts} +4 -3
- package/dist/{sign-in-CX1a5i2P.d.ts → sign-in-4u4vLtXG.d.ts} +16 -4
- package/dist/{sign-in-CxdoTEp5.js → sign-in-djgvab1X.js} +3 -3
- package/dist/{sign-in-BMm1xhKq.js → sign-in-k2lXELeC.js} +2 -2
- package/dist/{signatures-CBn7w4VR.js → signatures-DK01D2S7.js} +1 -1
- package/dist/{signers-6ih6i9aq.d.ts → signers-Dw9DBZjJ.d.ts} +4 -4
- package/dist/{signing-keys-De09WNJ3.d.ts → signing-keys-FglIQ6iL.d.ts} +2 -2
- package/dist/{signing-keys-BC5_hJN5.js → signing-keys-sGaXklwD.js} +1 -1
- package/dist/{snapshot-CVMSyTHH.js → snapshot-BOA7lkRg.js} +9 -17
- package/dist/solid/index.d.ts +10 -10
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-C9nO-Mat.js → sql-BChN3Hxv.js} +7382 -2219
- package/dist/sqlite/index.d.ts +3 -3
- package/dist/{sso-CuzAjsc8.d.ts → sso-B7w7h8RJ.d.ts} +3 -3
- package/dist/ssr/index.d.ts +5 -6
- package/dist/ssr/index.js +3 -3
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +1 -1
- package/dist/streams/index.d.ts +1 -1
- package/dist/{subject-readers-BlD8tALG.d.ts → subject-readers-YL8H9G8X.d.ts} +2 -2
- package/dist/{subjects-Bv2dPflD.d.ts → subjects-CVjAE7nz.d.ts} +3 -3
- package/dist/{support-DxYI6sDM.d.ts → support-BwtMgjVg.d.ts} +4 -4
- package/dist/{support-view-DSmCett7.d.ts → support-view-GykHOIQ2.d.ts} +1 -1
- package/dist/svelte/index.d.ts +9 -9
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.d.ts +7 -7
- package/dist/sveltekit/index.js +5 -5
- package/dist/{tags--k2fbPfO.d.ts → tags-CAfvzA1U.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +3 -3
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +5 -5
- package/dist/{tenant-gezshhcs.d.ts → tenant-lBgoqg9T.d.ts} +1 -1
- package/dist/testing/index.d.ts +27 -28
- package/dist/testing/index.js +5 -5
- package/dist/{timeline-Bq658xsi.d.ts → timeline-CrO48Qa6.d.ts} +5 -5
- package/dist/{topic-BVq5RdsI.d.ts → topic-x-mrN_Ff.d.ts} +5 -5
- package/dist/{types-C8UyJOPJ.d.ts → types-6PMaLIyw.d.ts} +3 -3
- package/dist/{types-Dh2OGEW5.d.ts → types-BdhE7I8Z.d.ts} +5 -5
- package/dist/{types-BkYEUWdz.d.ts → types-BzIYSSWK.d.ts} +16 -1
- package/dist/{types-DCoqai8o.d.ts → types-C7K8mu9B.d.ts} +45 -15
- package/dist/{types-d0JBRTAg.d.ts → types-C9XfFGmA.d.ts} +128 -13
- package/dist/{types-hTj5OuFo.d.ts → types-CJqNGQKb.d.ts} +2 -2
- package/dist/{types-TH3zlMiM.d.ts → types-D5uf0l4_.d.ts} +1 -1
- package/dist/{types-BBqP9H6w.d.ts → types-auvHrNWC.d.ts} +4 -4
- package/dist/{undo-22ofP6Zp.d.ts → undo-CdKp5_2X.d.ts} +2 -2
- package/dist/{usage-CNCT6_3D.d.ts → usage-DZ8j5Tm_.d.ts} +4 -4
- package/dist/{vault-yGQD5Rdl.d.ts → vault-DjbG4XQS.d.ts} +2 -2
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/vercel-sandbox/index.d.ts +2 -2
- package/dist/{verify-DY_j4GPZ.js → verify-96j8d5ps.js} +1 -1
- package/dist/{verify-BQu3eBNW.d.ts → verify-HOiu3lRR.d.ts} +2 -2
- package/dist/{view-BfEqjZJ_.js → view-Ch0Qtr36.js} +1 -1
- package/dist/{view-Cy2XxYp1.d.ts → view-DdDY88SC.d.ts} +1 -1
- package/dist/vue/index.d.ts +10 -10
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-BOclyLFd.d.ts → watch-topic-D6bcqOrJ.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +29 -5
- package/dist/workflow-sdk/builder/index.js +39 -12
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/index.js +2 -2
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-BL3wzkdp.js → workflow-sdk-CBS8L2Ku.js} +5 -0
- package/dist/{workflow-sdk-yIkECybp.d.ts → workflow-sdk-D3H10W5h.d.ts} +3 -3
- package/dist/{workflows-BljkWRxE.d.ts → workflows-BI4yKqFh.d.ts} +3 -3
- package/dist/yjs/index.d.ts +2 -2
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +126 -0
- package/schemas/doctor-report-v1.json +4 -0
- package/skills/better-supabase-auth/SKILL.md +45 -11
- package/dist/cli/add-BaB3y1lv.js +0 -1
- package/dist/cli/env-UN6PJFX6.js +0 -1
- package/dist/cli/powersync-J2Kms2NT.js +0 -1
- package/dist/cli/seed-ByLneY1H.js +0 -1
- package/dist/errors-D3-4c-XF.js +0 -102
- package/dist/http-BDC1IvBX.js +0 -27
- package/dist/jwks-cache-IZaiICAV.js +0 -48
- package/dist/options-Itq7QYoW.js +0 -20
- package/dist/refresh-BtbC2rZe.d.ts +0 -52
- package/dist/snapshot-BGsJw9xn.d.ts +0 -83
|
@@ -3,8 +3,59 @@ import { n as dbError } from "./errors-B7tCfCvX.js";
|
|
|
3
3
|
import { n as isRecord } from "./guards-CsRa6v57.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "./result-8xza7w5W.js";
|
|
5
5
|
import { t as vectorLiteral } from "./search-DtbkD0h0.js";
|
|
6
|
-
import { A as recordsOf, L as textOf, M as run, O as recordOf, f as errorText, h as instantOf, k as recordOrEmpty, n as applyTemporal, o as blockCall, p as injectableOf, w as optionalText } from "./block-helpers-I7UzjNEf.js";
|
|
6
|
+
import { A as recordsOf, L as textOf, M as run, O as recordOf, f as errorText, h as instantOf, k as recordOrEmpty, n as applyTemporal, o as blockCall, p as injectableOf, w as optionalText, x as oneOf } from "./block-helpers-I7UzjNEf.js";
|
|
7
7
|
import { r as withBlockHooks } from "./block-hooks-CadxQ9-_.js";
|
|
8
|
+
// src/blocks/knowledge/collections.ts
|
|
9
|
+
const VISIBILITIES = [
|
|
10
|
+
"automatic",
|
|
11
|
+
"restricted",
|
|
12
|
+
"disabled"
|
|
13
|
+
];
|
|
14
|
+
function collectionOf(value) {
|
|
15
|
+
const row = recordOf(value, "knowledge_collections");
|
|
16
|
+
return {
|
|
17
|
+
id: textOf(row["id"]),
|
|
18
|
+
organizationId: optionalText(row["organization_id"]),
|
|
19
|
+
name: textOf(row["name"]),
|
|
20
|
+
description: optionalText(row["description"]),
|
|
21
|
+
visibility: oneOf(textOf(row["visibility"]), VISIBILITIES, "disabled"),
|
|
22
|
+
priority: Number(row["priority"] ?? 0),
|
|
23
|
+
createdBy: optionalText(row["created_by"]),
|
|
24
|
+
createdAt: instantOf(row["created_at"]),
|
|
25
|
+
updatedAt: instantOf(row["updated_at"])
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
const granteeArgs = (grantee) => "userId" in grantee ? { user_id: grantee.userId } : { team_id: grantee.teamId };
|
|
29
|
+
/** The collection methods of `createKnowledge`, over its user transport. */
|
|
30
|
+
function knowledgeCollections(call) {
|
|
31
|
+
const setGrant = (collectionId, grantee, granted) => call("set_knowledge_collection_grant", {
|
|
32
|
+
collection_id: collectionId,
|
|
33
|
+
...granteeArgs(grantee),
|
|
34
|
+
granted
|
|
35
|
+
}, (value) => value === true);
|
|
36
|
+
return {
|
|
37
|
+
create: (organizationId, collection) => call("create_knowledge_collection", {
|
|
38
|
+
tenant: organizationId,
|
|
39
|
+
name: collection.name,
|
|
40
|
+
description: collection.description,
|
|
41
|
+
visibility: collection.visibility,
|
|
42
|
+
priority: collection.priority
|
|
43
|
+
}, collectionOf),
|
|
44
|
+
update: (collectionId, patch) => call("update_knowledge_collection", {
|
|
45
|
+
collection_id: collectionId,
|
|
46
|
+
patch
|
|
47
|
+
}, collectionOf),
|
|
48
|
+
remove: (collectionId) => call("delete_knowledge_collection", { collection_id: collectionId }, (value) => value === true),
|
|
49
|
+
list: (organizationId) => call("list_knowledge_collections", { tenant: organizationId }, (value) => recordsOf(value, "knowledge_collections").map(collectionOf)),
|
|
50
|
+
grant: (collectionId, to) => setGrant(collectionId, to, true),
|
|
51
|
+
revoke: (collectionId, from) => setGrant(collectionId, from, false),
|
|
52
|
+
grants: (collectionId) => call("list_knowledge_collection_grants", { collection_id: collectionId }, (value) => recordsOf(value, "knowledge_collection_grants").map((row) => ({
|
|
53
|
+
userId: optionalText(row["user_id"]),
|
|
54
|
+
teamId: optionalText(row["team_id"]),
|
|
55
|
+
createdAt: instantOf(row["created_at"])
|
|
56
|
+
})))
|
|
57
|
+
};
|
|
58
|
+
}
|
|
8
59
|
// src/blocks/knowledge/knowledge.ts
|
|
9
60
|
const SCOPES = /* @__PURE__ */ new Set([
|
|
10
61
|
"organization",
|
|
@@ -87,8 +138,8 @@ function documentOf(value) {
|
|
|
87
138
|
const row = recordOf(value, "knowledge_documents");
|
|
88
139
|
return {
|
|
89
140
|
id: textOf(row["id"]),
|
|
90
|
-
organizationId:
|
|
91
|
-
ownerId:
|
|
141
|
+
organizationId: optionalText(row["organization_id"]),
|
|
142
|
+
ownerId: optionalText(row["owner_id"]),
|
|
92
143
|
scope: scopeOf(row["scope"]),
|
|
93
144
|
scopeId: optionalText(row["scope_id"]),
|
|
94
145
|
fileId: optionalText(row["file_id"]),
|
|
@@ -99,6 +150,7 @@ function documentOf(value) {
|
|
|
99
150
|
error: optionalText(row["error"]),
|
|
100
151
|
chunkCount: Number(row["chunk_count"] ?? 0),
|
|
101
152
|
embeddingModel: optionalText(row["embedding_model"]),
|
|
153
|
+
collectionId: optionalText(row["collection_id"]),
|
|
102
154
|
createdAt: instantOf(row["created_at"]),
|
|
103
155
|
updatedAt: instantOf(row["updated_at"])
|
|
104
156
|
};
|
|
@@ -138,7 +190,8 @@ function createKnowledge(options) {
|
|
|
138
190
|
file_id: document.fileId,
|
|
139
191
|
source: document.source,
|
|
140
192
|
metadata: document.metadata,
|
|
141
|
-
owner: document.ownerId
|
|
193
|
+
owner: document.ownerId,
|
|
194
|
+
collection_id: document.collectionId
|
|
142
195
|
}, documentOf);
|
|
143
196
|
const write = (documentId, chunks) => call("write_knowledge_chunks", {
|
|
144
197
|
document_id: documentId,
|
|
@@ -195,6 +248,7 @@ function createKnowledge(options) {
|
|
|
195
248
|
}
|
|
196
249
|
});
|
|
197
250
|
const client = {
|
|
251
|
+
collections: knowledgeCollections(call),
|
|
198
252
|
documents: {
|
|
199
253
|
create,
|
|
200
254
|
get: (documentId) => call("get_knowledge_document", { document_id: documentId }, (value) => value).andThen(found),
|
|
@@ -202,7 +256,8 @@ function createKnowledge(options) {
|
|
|
202
256
|
tenant: organizationId,
|
|
203
257
|
scope: listOptions.scope,
|
|
204
258
|
scope_id: listOptions.scopeId,
|
|
205
|
-
max_rows: listOptions.limit
|
|
259
|
+
max_rows: listOptions.limit,
|
|
260
|
+
collection_id: listOptions.collectionId
|
|
206
261
|
}, (value) => recordsOf(value, "list_knowledge_documents").map(documentOf)),
|
|
207
262
|
write,
|
|
208
263
|
remove: (documentId) => call("delete_knowledge_document", { document_id: documentId }, (value) => value === true)
|
|
@@ -271,7 +326,8 @@ function createKnowledge(options) {
|
|
|
271
326
|
query_text: text === "" ? void 0 : text,
|
|
272
327
|
scopes: searchOptions.scopes === void 0 ? void 0 : { items: searchOptions.scopes },
|
|
273
328
|
k: searchOptions.k,
|
|
274
|
-
filter: searchOptions.filter
|
|
329
|
+
filter: searchOptions.filter,
|
|
330
|
+
collections: searchOptions.collections
|
|
275
331
|
}, (rows) => recordsOf(rows, "knowledge_search").map(hitOf)));
|
|
276
332
|
},
|
|
277
333
|
reembed: (reembedOptions = {}) => service("reembed_knowledge", {
|
|
@@ -279,10 +335,14 @@ function createKnowledge(options) {
|
|
|
279
335
|
model: reembedOptions.model
|
|
280
336
|
}, Number)
|
|
281
337
|
};
|
|
282
|
-
const { documents, ingest, ...hooks } = options.hooks ?? {};
|
|
338
|
+
const { collections, documents, ingest, ...hooks } = options.hooks ?? {};
|
|
283
339
|
const logger = options.logger ? { logger: options.logger } : {};
|
|
284
340
|
return withBlockHooks({
|
|
285
341
|
...client,
|
|
342
|
+
collections: withBlockHooks(client.collections, collections, {
|
|
343
|
+
block: "knowledge.collections",
|
|
344
|
+
...logger
|
|
345
|
+
}),
|
|
286
346
|
documents: withBlockHooks(client.documents, documents, {
|
|
287
347
|
block: "knowledge.documents",
|
|
288
348
|
...logger
|
|
@@ -1,11 +1,63 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
3
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
4
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
5
|
-
import { t as BlockTransport } from "./block-transport-
|
|
6
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
7
|
-
import { f as AiFiles, o as AiFile } from "./types-
|
|
8
|
-
import { _ as JobHandler } from "./types-
|
|
4
|
+
import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
|
|
5
|
+
import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
|
|
6
|
+
import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
|
|
7
|
+
import { f as AiFiles, o as AiFile } from "./types-6PMaLIyw.js";
|
|
8
|
+
import { _ as JobHandler } from "./types-BdhE7I8Z.js";
|
|
9
|
+
/**
|
|
10
|
+
* `automatic` collections show up in every search of their tenant, `restricted`
|
|
11
|
+
* ones only for their grants and admins, `disabled` ones in no search.
|
|
12
|
+
*/
|
|
13
|
+
type KnowledgeVisibility = "automatic" | "restricted" | "disabled";
|
|
14
|
+
interface KnowledgeCollection {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
/** None for a system collection, which every tenant reads. */
|
|
17
|
+
readonly organizationId: string | undefined;
|
|
18
|
+
readonly name: string;
|
|
19
|
+
readonly description: string | undefined;
|
|
20
|
+
readonly visibility: KnowledgeVisibility;
|
|
21
|
+
/** A search ranks the chunks of a higher priority collection first. */
|
|
22
|
+
readonly priority: number;
|
|
23
|
+
readonly createdBy: string | undefined;
|
|
24
|
+
readonly createdAt: Temporal.Instant;
|
|
25
|
+
readonly updatedAt: Temporal.Instant;
|
|
26
|
+
}
|
|
27
|
+
interface NewKnowledgeCollection {
|
|
28
|
+
readonly name: string;
|
|
29
|
+
readonly description?: string;
|
|
30
|
+
/** Default `automatic`. */
|
|
31
|
+
readonly visibility?: KnowledgeVisibility;
|
|
32
|
+
/** Default 0. */
|
|
33
|
+
readonly priority?: number;
|
|
34
|
+
}
|
|
35
|
+
/** A user or a team a restricted collection is granted to. */
|
|
36
|
+
type KnowledgeGrantee = {
|
|
37
|
+
readonly userId: string;
|
|
38
|
+
} | {
|
|
39
|
+
readonly teamId: string;
|
|
40
|
+
};
|
|
41
|
+
interface KnowledgeCollectionGrant {
|
|
42
|
+
readonly userId: string | undefined;
|
|
43
|
+
readonly teamId: string | undefined;
|
|
44
|
+
readonly createdAt: Temporal.Instant;
|
|
45
|
+
}
|
|
46
|
+
interface KnowledgeCollections {
|
|
47
|
+
/**
|
|
48
|
+
* Creates a collection. `organizationId` null creates a system collection
|
|
49
|
+
* (service role).
|
|
50
|
+
*/
|
|
51
|
+
create(organizationId: string | null, collection: NewKnowledgeCollection): AsyncResult<KnowledgeCollection>;
|
|
52
|
+
update(collectionId: string, patch: Partial<NewKnowledgeCollection>): AsyncResult<KnowledgeCollection>;
|
|
53
|
+
/** Deletes a collection; its documents stay, without a collection. */
|
|
54
|
+
remove(collectionId: string): AsyncResult<boolean>;
|
|
55
|
+
/** The collections the caller reads, system ones included. */
|
|
56
|
+
list(organizationId: string): AsyncResult<readonly KnowledgeCollection[]>;
|
|
57
|
+
grant(collectionId: string, to: KnowledgeGrantee): AsyncResult<boolean>;
|
|
58
|
+
revoke(collectionId: string, from: KnowledgeGrantee): AsyncResult<boolean>;
|
|
59
|
+
grants(collectionId: string): AsyncResult<readonly KnowledgeCollectionGrant[]>;
|
|
60
|
+
}
|
|
9
61
|
/**
|
|
10
62
|
* Turns texts into vectors. `model` is stored with each document, so a document
|
|
11
63
|
* embedded by another model can be found and embedded again.
|
|
@@ -22,8 +74,10 @@ type KnowledgeScope = "organization" | "agent" | "project" | "chat" | "user";
|
|
|
22
74
|
type KnowledgeStatus = "pending" | "ready" | "failed";
|
|
23
75
|
interface KnowledgeDocument {
|
|
24
76
|
readonly id: string;
|
|
25
|
-
|
|
26
|
-
readonly
|
|
77
|
+
/** None for a system document, which every tenant reads. */
|
|
78
|
+
readonly organizationId: string | undefined;
|
|
79
|
+
/** None for a system document. */
|
|
80
|
+
readonly ownerId: string | undefined;
|
|
27
81
|
readonly scope: KnowledgeScope;
|
|
28
82
|
/**
|
|
29
83
|
* The agent, project, chat or user the document belongs to; none for
|
|
@@ -38,6 +92,7 @@ interface KnowledgeDocument {
|
|
|
38
92
|
readonly error: string | undefined;
|
|
39
93
|
readonly chunkCount: number;
|
|
40
94
|
readonly embeddingModel: string | undefined;
|
|
95
|
+
readonly collectionId: string | undefined;
|
|
41
96
|
readonly createdAt: Temporal.Instant;
|
|
42
97
|
readonly updatedAt: Temporal.Instant;
|
|
43
98
|
}
|
|
@@ -52,6 +107,8 @@ interface NewKnowledgeDocument {
|
|
|
52
107
|
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
53
108
|
/** The service role only: the user the document belongs to. */
|
|
54
109
|
readonly ownerId?: string;
|
|
110
|
+
/** A collection of the tenant, or a system collection. */
|
|
111
|
+
readonly collectionId?: string;
|
|
55
112
|
}
|
|
56
113
|
interface KnowledgeChunk {
|
|
57
114
|
readonly content: string;
|
|
@@ -82,6 +139,8 @@ interface KnowledgeSearchOptions {
|
|
|
82
139
|
}[];
|
|
83
140
|
/** How many chunks to return. Default 8, at most 100. */
|
|
84
141
|
readonly k?: number;
|
|
142
|
+
/** Only the documents of these collections. */
|
|
143
|
+
readonly collections?: readonly string[];
|
|
85
144
|
/** Matches documents whose metadata contains this object. */
|
|
86
145
|
readonly filter?: Readonly<Record<string, unknown>>;
|
|
87
146
|
readonly signal?: AbortSignal;
|
|
@@ -131,25 +190,37 @@ interface KnowledgeOptions extends BlockTemporalOptions {
|
|
|
131
190
|
* group.
|
|
132
191
|
*/
|
|
133
192
|
type KnowledgeHooks = BlockHooks<Knowledge> & {
|
|
193
|
+
readonly collections?: BlockHooks<Knowledge["collections"]>;
|
|
134
194
|
readonly documents?: BlockHooks<Knowledge["documents"]>;
|
|
135
195
|
readonly ingest?: BlockHooks<Knowledge["ingest"]>;
|
|
136
196
|
};
|
|
137
197
|
interface Knowledge {
|
|
198
|
+
/** Collections of documents with a visibility, a priority and grants. */
|
|
199
|
+
readonly collections: KnowledgeCollections;
|
|
138
200
|
readonly documents: {
|
|
139
|
-
|
|
201
|
+
/**
|
|
202
|
+
* Creates a document. `organizationId` null creates a system document,
|
|
203
|
+
* which every tenant reads (service role).
|
|
204
|
+
*/
|
|
205
|
+
create(organizationId: string | null, document: NewKnowledgeDocument): AsyncResult<KnowledgeDocument>;
|
|
140
206
|
get(documentId: string): AsyncResult<KnowledgeDocument>;
|
|
141
207
|
list(organizationId: string, options?: {
|
|
142
208
|
readonly scope?: KnowledgeScope;
|
|
143
209
|
readonly scopeId?: string;
|
|
144
210
|
readonly limit?: number;
|
|
211
|
+
/** The documents of a collection, system ones included. */
|
|
212
|
+
readonly collectionId?: string;
|
|
145
213
|
}): AsyncResult<readonly KnowledgeDocument[]>;
|
|
146
214
|
/** Replaces the chunks; unchanged chunks keep their embedding. */
|
|
147
215
|
write(documentId: string, chunks: readonly KnowledgeChunk[]): AsyncResult<KnowledgeDocument>;
|
|
148
216
|
remove(documentId: string): AsyncResult<boolean>;
|
|
149
217
|
};
|
|
150
218
|
readonly ingest: {
|
|
151
|
-
/**
|
|
152
|
-
|
|
219
|
+
/**
|
|
220
|
+
* Creates a document from text and writes its chunks; null creates a system
|
|
221
|
+
* document (service role).
|
|
222
|
+
*/
|
|
223
|
+
text(organizationId: string | null, document: NewKnowledgeDocument & {
|
|
153
224
|
readonly text: string;
|
|
154
225
|
}): AsyncResult<KnowledgeDocument>;
|
|
155
226
|
/** Creates a document from a ready ai-files file and writes its chunks. */
|
|
@@ -212,4 +283,4 @@ interface Knowledge {
|
|
|
212
283
|
declare function chunk(text: string, options?: ChunkOptions): readonly KnowledgeChunk[];
|
|
213
284
|
/** Documents, chunks and hybrid search for retrieval. */
|
|
214
285
|
declare function createKnowledge(options: KnowledgeOptions): Knowledge;
|
|
215
|
-
export { KnowledgeDocument as a, KnowledgeOptions as c, KnowledgeSearchOptions as d, KnowledgeStatus as f, createKnowledge as h, KnowledgeChunk as i, KnowledgeQuery as l, chunk as m, Embedder as n, KnowledgeHit as o, NewKnowledgeDocument as p, Knowledge as r, KnowledgeHooks as s, ChunkOptions as t, KnowledgeScope as u };
|
|
286
|
+
export { KnowledgeCollectionGrant as _, KnowledgeDocument as a, KnowledgeVisibility as b, KnowledgeOptions as c, KnowledgeSearchOptions as d, KnowledgeStatus as f, KnowledgeCollection as g, createKnowledge as h, KnowledgeChunk as i, KnowledgeQuery as l, chunk as m, Embedder as n, KnowledgeHit as o, NewKnowledgeDocument as p, Knowledge as r, KnowledgeHooks as s, ChunkOptions as t, KnowledgeScope as u, KnowledgeCollections as v, NewKnowledgeCollection as x, KnowledgeGrantee as y };
|
package/dist/lint/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ft as RepositoryExtension, Nt as Plugin, m as Operation } from "../types-BzIYSSWK.js";
|
|
2
2
|
type GuardLevel = "off" | "warn" | "error";
|
|
3
3
|
/** A level, or a level with the rule's option: `['error', 500]`. */
|
|
4
4
|
type GuardSetting<Option = never> = GuardLevel | ([Option] extends [never] ? never : readonly [GuardLevel, Option]);
|
package/dist/list/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as FilterRule, a as FilterDateValue, b as encodeFilterQuery, c as FilterFieldLabels, d as FilterLimits, f as FilterNode, g as FilterRelativeDate, h as FilterQuery, i as FilterCombinator, l as FilterFieldType, m as FilterOperatorSpec, n as FILTER_OPERATOR_LABELS, o as FilterField, p as FilterOperatorArity, r as FilterClock, s as FilterFieldInfo, t as FILTER_OPERATORS, u as FilterGroupNode, v as ListFilterConfig, y as decodeFilterQuery } from "../filter-query-
|
|
2
|
-
import { _ as UNSET, a as ListExtra, c as ListParseOptions, d as ListQuery, f as ListQueryConfig, g as ParserSpec, h as OpenApiParameter, i as ListDefinition, l as ListParseResult, m as ListSearchParams, n as FacetCounts, o as ListPage, p as ListQueryInput, r as FacetInfo, s as ListPagination, t as FacetCountFields, u as ListParsers, v as defineListQuery } from "../list-query-
|
|
3
|
-
import { n as FilterRecordField, r as evaluateFilterQuery, t as FilterEvaluation } from "../filter-evaluate-
|
|
1
|
+
import { _ as FilterRule, a as FilterDateValue, b as encodeFilterQuery, c as FilterFieldLabels, d as FilterLimits, f as FilterNode, g as FilterRelativeDate, h as FilterQuery, i as FilterCombinator, l as FilterFieldType, m as FilterOperatorSpec, n as FILTER_OPERATOR_LABELS, o as FilterField, p as FilterOperatorArity, r as FilterClock, s as FilterFieldInfo, t as FILTER_OPERATORS, u as FilterGroupNode, v as ListFilterConfig, y as decodeFilterQuery } from "../filter-query-Xj40B5KT.js";
|
|
2
|
+
import { _ as UNSET, a as ListExtra, c as ListParseOptions, d as ListQuery, f as ListQueryConfig, g as ParserSpec, h as OpenApiParameter, i as ListDefinition, l as ListParseResult, m as ListSearchParams, n as FacetCounts, o as ListPage, p as ListQueryInput, r as FacetInfo, s as ListPagination, t as FacetCountFields, u as ListParsers, v as defineListQuery } from "../list-query-D1h3Dmnk.js";
|
|
3
|
+
import { n as FilterRecordField, r as evaluateFilterQuery, t as FilterEvaluation } from "../filter-evaluate-Bkbb0nuQ.js";
|
|
4
4
|
export { FILTER_OPERATORS, FILTER_OPERATOR_LABELS, type FacetCountFields, type FacetCounts, type FacetInfo, type FilterClock, type FilterCombinator, type FilterDateValue, type FilterEvaluation, type FilterField, type FilterFieldInfo, type FilterFieldLabels, type FilterFieldType, type FilterGroupNode, type FilterLimits, type FilterNode, type FilterOperatorArity, type FilterOperatorSpec, type FilterQuery, type FilterRecordField, type FilterRelativeDate, type FilterRule, type ListDefinition, type ListExtra, type ListFilterConfig, type ListPage, type ListPagination, type ListParseOptions, type ListParseResult, type ListParsers, type ListQuery, type ListQueryConfig, type ListQueryInput, type ListSearchParams, type OpenApiParameter, type ParserSpec, UNSET, decodeFilterQuery, defineListQuery, encodeFilterQuery, evaluateFilterQuery };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { D as ValidationIssue, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { O as AnyFunctions, a as CountMode,
|
|
3
|
-
import { A as OffsetPageArgs, C as FindExt, Gt as SelectArg, Vt as Payload, Yt as WhereInput, _ as CursorPage, jt as IncludeArg, k as OffsetPage, t as BetterSupabase, v as CursorPageArgs, z as RepositoryOf, zt as OrderByArg } from "./define-
|
|
4
|
-
import { c as FilterFieldLabels, h as FilterQuery, o as FilterField, r as FilterClock, s as FilterFieldInfo, v as ListFilterConfig } from "./filter-query-
|
|
2
|
+
import { O as AnyFunctions, a as CountMode, at as Row, dt as TableKey, k as AnyModels } from "./types-BzIYSSWK.js";
|
|
3
|
+
import { A as OffsetPageArgs, C as FindExt, Gt as SelectArg, Vt as Payload, Yt as WhereInput, _ as CursorPage, jt as IncludeArg, k as OffsetPage, t as BetterSupabase, v as CursorPageArgs, z as RepositoryOf, zt as OrderByArg } from "./define-BvkaC3Oh.js";
|
|
4
|
+
import { c as FilterFieldLabels, h as FilterQuery, o as FilterField, r as FilterClock, s as FilterFieldInfo, v as ListFilterConfig } from "./filter-query-Xj40B5KT.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
/** Facet value meaning "not set": filters with `is null`. */
|
|
7
7
|
declare const UNSET = "__unset__";
|
package/dist/mapper/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as VERSION } from "../cli/version-
|
|
2
|
-
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-
|
|
3
|
-
import { t as loadSnapshot } from "../cli/snapshot-
|
|
4
|
-
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-
|
|
1
|
+
import { t as VERSION } from "../cli/version-DKfeme2I.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-aMk9vF1_.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-C3_eQUgY.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-Bp7a7XQ9.js";
|
|
5
5
|
import { i as discoverConfig, s as loadConfig } from "../cli/config-DrrkMihk.js";
|
|
6
6
|
import { i as parseEnv, n as configEnvironment } from "../cli/env-BCuUsWOh.js";
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-CEtdbshU.js";
|
|
8
8
|
import { existsSync, realpathSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, join, resolve } from "node:path";
|
|
10
10
|
import { createHash } from "node:crypto";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as GuardOptions } from "../respond-
|
|
2
|
-
import { l as ResourceRouteOptions } from "../resource-types-
|
|
3
|
-
import { _ as ToolResult, a as ToolDecision, c as ToolResourceOptions, d as defineTool, f as MCP_PROTOCOL_VERSION, g as ToolInfo, h as ToolAnnotations, i as ToolContext, l as ToolResources, m as ServerDescription, n as McpOptions, o as ToolDefinition, p as ProtocolServer, r as McpTool, s as ToolRef, t as BetterMcp, u as createMcp, v as answerLine, y as answerMessage } from "../index-
|
|
1
|
+
import { r as GuardOptions } from "../respond-CAxhkwAi.js";
|
|
2
|
+
import { l as ResourceRouteOptions } from "../resource-types-CTcc37WL.js";
|
|
3
|
+
import { _ as ToolResult, a as ToolDecision, c as ToolResourceOptions, d as defineTool, f as MCP_PROTOCOL_VERSION, g as ToolInfo, h as ToolAnnotations, i as ToolContext, l as ToolResources, m as ServerDescription, n as McpOptions, o as ToolDefinition, p as ProtocolServer, r as McpTool, s as ToolRef, t as BetterMcp, u as createMcp, v as answerLine, y as answerMessage } from "../index-BUluRi0b.js";
|
|
4
4
|
export { type BetterMcp, type GuardOptions, MCP_PROTOCOL_VERSION, type McpOptions, type McpTool, type ProtocolServer, type ResourceRouteOptions, type ServerDescription, type ToolAnnotations, type ToolContext, type ToolDecision, type ToolDefinition, type ToolInfo, type ToolRef, type ToolResourceOptions, type ToolResources, type ToolResult, answerLine, answerMessage, createMcp, defineTool };
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as dbError } from "../errors-B7tCfCvX.js";
|
|
2
2
|
import { a as ok } from "../result-8xza7w5W.js";
|
|
3
|
-
import { t as base64ToText } from "../base64-
|
|
3
|
+
import { t as base64ToText } from "../base64-CEBz6-Jj.js";
|
|
4
4
|
import { n as validate } from "../standard-BD2aOUsf.js";
|
|
5
5
|
import { a as methodNotAllowed, c as toProblem, o as problemResponse } from "../problem-C0SVHhd3.js";
|
|
6
6
|
import { t as SPEC_PINS } from "../spec-pins-FKUzgF6K.js";
|
|
@@ -8,12 +8,12 @@ import { r as toDraft07, t as buildJsonSchema } from "../json-schema-D9eVL_xi.js
|
|
|
8
8
|
import { r as operationPermission, t as OPERATION_PREFIXES } from "../operations-BNFbWv1t.js";
|
|
9
9
|
import { r as pageSchema, t as pageInputSchema } from "../resource-schemas-Bq0g2RCQ.js";
|
|
10
10
|
import { n as jsonResponse, t as jsonReplacer } from "../json-O5vFw243.js";
|
|
11
|
-
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
11
|
+
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-ddQ9Hzka.js";
|
|
12
12
|
import { a as isRequestMemo, o as outcomesOf, r as checkPermission } from "../authorizer-BtIPDO-c.js";
|
|
13
|
-
import { i as guard, n as defaultExpose, s as settle } from "../respond-
|
|
13
|
+
import { i as guard, n as defaultExpose, s as settle } from "../respond-8A3EOo61.js";
|
|
14
14
|
import { t as boundedTtlCache } from "../ttl-cache-C5S0L2wx.js";
|
|
15
|
-
import { t as defineResource } from "../resource-
|
|
16
|
-
import { r as hasRole } from "../kit-
|
|
15
|
+
import { t as defineResource } from "../resource-COaS9_i8.js";
|
|
16
|
+
import { r as hasRole } from "../kit-D5rRAKWJ.js";
|
|
17
17
|
import { t as withExtra } from "../extra-Dz9n5y1s.js";
|
|
18
18
|
import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../http-BRUI3qim.js";
|
|
19
19
|
import { resourceMetadataResponse, unauthorizedResponse } from "@supabase/server/oauth-protected-resource";
|
package/dist/mcp/sdk/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as AnyFunctions, k as AnyModels } from "../../types-
|
|
2
|
-
import { r as AuthState } from "../../resolve
|
|
3
|
-
import { i as CredentialRef, r as CredentialProvider } from "../../provider-
|
|
1
|
+
import { O as AnyFunctions, k as AnyModels } from "../../types-BzIYSSWK.js";
|
|
2
|
+
import { r as AuthState } from "../../resolve-BIpQRhvF.js";
|
|
3
|
+
import { i as CredentialRef, r as CredentialProvider } from "../../provider-bIAzxVMB.js";
|
|
4
4
|
import { i as SupabaseMcpScope, n as SupabaseMcpModule, r as SupabaseMcpPlatformModule, t as SupabaseMcpFeature } from "../../supabase-mcp-DY32eoax.js";
|
|
5
|
-
import { t as BetterSupabase } from "../../define-
|
|
6
|
-
import { l as ServerOptions, o as ServerContext$1, r as BetterServer } from "../../server-types-
|
|
7
|
-
import { r as GuardOptions, t as AllowedCaller } from "../../respond-
|
|
5
|
+
import { t as BetterSupabase } from "../../define-BvkaC3Oh.js";
|
|
6
|
+
import { l as ServerOptions, o as ServerContext$1, r as BetterServer } from "../../server-types-DEjva0MW.js";
|
|
7
|
+
import { r as GuardOptions, t as AllowedCaller } from "../../respond-CAxhkwAi.js";
|
|
8
8
|
import { AuthInfo, CallToolResult, Icon, InputRequiredResult, OAuthTokenVerifier, RegisteredTool, ScopeChallengeHandler, ServerContext, StandardSchemaWithJSON, ToolAnnotations } from "@modelcontextprotocol/server";
|
|
9
9
|
interface McpAuthOptions extends ServerOptions, Omit<GuardOptions, "scopes"> {
|
|
10
10
|
/**
|
package/dist/mcp/sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-B7tCfCvX.js";
|
|
2
2
|
import { o as problemResponse } from "../../problem-C0SVHhd3.js";
|
|
3
3
|
import { i as delegationOf } from "../../actor-B5b0i1Fs.js";
|
|
4
|
-
import { c as extendServer, i as resolveToken, n as flushEvents, s as createServer } from "../../adapter-
|
|
5
|
-
import { i as guard } from "../../respond-
|
|
4
|
+
import { c as extendServer, i as resolveToken, n as flushEvents, s as createServer } from "../../adapter-ddQ9Hzka.js";
|
|
5
|
+
import { i as guard } from "../../respond-8A3EOo61.js";
|
|
6
6
|
import { t as withExtra } from "../../extra-Dz9n5y1s.js";
|
|
7
7
|
import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../../http-BRUI3qim.js";
|
|
8
8
|
import { n as loadSupabaseMcp, r as loadSupabaseMcpPlatform, t as isRecord } from "../../supabase-mcp-QvebHckf.js";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "./standard-DRX6Ch1j.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "./block-fields-Puv5m5D3.js";
|
|
5
|
-
import {
|
|
5
|
+
import { et as RecordRef } from "./types-BzIYSSWK.js";
|
|
6
6
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
7
|
-
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-helpers-
|
|
8
|
-
import { t as BlockTransport } from "./block-transport-
|
|
9
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
7
|
+
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
|
|
8
|
+
import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
|
|
9
|
+
import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
|
|
10
10
|
import { t as Author } from "./block-authors-C5z3tGVu.js";
|
|
11
11
|
import { a as ThreadSummary, i as ThreadSummarizer, r as SummaryTarget, t as SummarizeOptions } from "./summaries-CUemsYwV.js";
|
|
12
12
|
/** What a conversation is for. */
|
package/dist/nestjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as RouteGuardOptions } from "../refusal-
|
|
1
|
+
import { n as RouteGuardOptions } from "../refusal-BX1EvmpJ.js";
|
|
2
2
|
import { t as Validated } from "../shared-DsBcvj6q.js";
|
|
3
|
-
import { l as ToNodeOptions } from "../index-
|
|
3
|
+
import { l as ToNodeOptions } from "../index-Ag-T51Jl.js";
|
|
4
4
|
import { AnyEntry } from "@supabase/middleware";
|
|
5
5
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
6
6
|
/**
|
package/dist/nestjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-
|
|
1
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-rnbr6RZD.js";
|
|
2
2
|
import { t as beforeRoute } from "../before-route-Ra3OhI2x.js";
|
|
3
3
|
import { t as applyWebHeaders } from "../node-headers-C3FExlg9.js";
|
|
4
4
|
import { n as toWebRequest, t as sendWebResponse } from "../http-D4lH1xqY.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as SessionWatchStatus, t as SessionStatusBody } from "../../session-status-
|
|
1
|
+
import { i as SessionWatchStatus, t as SessionStatusBody } from "../../session-status-Df6tuKY9.js";
|
|
2
2
|
/**
|
|
3
3
|
* Why the session changed: Auth ended it or banned the user, the user signed
|
|
4
4
|
* out, or the claims or support target behind the session changed.
|