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
package/dist/edge/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { f as Result } from "../result-DTOQRyGY.js";
|
|
2
2
|
import { t as StandardSchemaV1 } from "../standard-DRX6Ch1j.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as BetterSupabase } from "../define-
|
|
5
|
-
import { n as AuthSession } from "../view-
|
|
6
|
-
import { l as ServerOptions, o as ServerContext, r as BetterServer } from "../server-types-
|
|
7
|
-
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-
|
|
8
|
-
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-
|
|
3
|
+
import { O as AnyFunctions, Ut as AnyAuthorizer, k as AnyModels, nn as AuthzVersionCache, rn as PermissionRef } from "../types-BzIYSSWK.js";
|
|
4
|
+
import { t as BetterSupabase } from "../define-BvkaC3Oh.js";
|
|
5
|
+
import { n as AuthSession } from "../view-DdDY88SC.js";
|
|
6
|
+
import { l as ServerOptions, o as ServerContext, r as BetterServer } from "../server-types-DEjva0MW.js";
|
|
7
|
+
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-CAxhkwAi.js";
|
|
8
|
+
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-DCuO1ZhB.js";
|
|
9
9
|
import { n as FunctionContract, t as DescribedFunction } from "../function-contract-DgDBYbXu.js";
|
|
10
|
-
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-
|
|
10
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-CTcc37WL.js";
|
|
11
11
|
import { t as Validated } from "../shared-DsBcvj6q.js";
|
|
12
12
|
import { n as SUPABASE_CORS_HEADERS, r as corsConfig, t as CorsOptions } from "../cors-9SDsndtb.js";
|
|
13
|
-
import { t as ResourceMap } from "../resources-
|
|
14
|
-
import { t as defineAction } from "../resource-execute-
|
|
13
|
+
import { t as ResourceMap } from "../resources-13ZFX1G6.js";
|
|
14
|
+
import { t as defineAction } from "../resource-execute-A1NbR-sd.js";
|
|
15
15
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
16
16
|
/** The platform context Workers pass as the third `fetch` argument. */
|
|
17
17
|
interface EdgeExecutionContext {
|
package/dist/edge/index.js
CHANGED
|
@@ -2,15 +2,15 @@ import { n as dbError } from "../errors-B7tCfCvX.js";
|
|
|
2
2
|
import { a as ok, r as err } from "../result-8xza7w5W.js";
|
|
3
3
|
import { n as validate } from "../standard-BD2aOUsf.js";
|
|
4
4
|
import { o as problemResponse } from "../problem-C0SVHhd3.js";
|
|
5
|
-
import { a as unexpectedResponse, c as extendServer, o as withFlush, s as createServer } from "../adapter-
|
|
6
|
-
import { n as defaultExpose, o as respond, s as settle } from "../respond-
|
|
7
|
-
import { t as withBetterSupabase } from "../composite-
|
|
8
|
-
import { i as defineAction } from "../resource-
|
|
9
|
-
import { i as requireCaller } from "../kit-
|
|
5
|
+
import { a as unexpectedResponse, c as extendServer, o as withFlush, s as createServer } from "../adapter-ddQ9Hzka.js";
|
|
6
|
+
import { n as defaultExpose, o as respond, s as settle } from "../respond-8A3EOo61.js";
|
|
7
|
+
import { t as withBetterSupabase } from "../composite-BidYZWZY.js";
|
|
8
|
+
import { i as defineAction } from "../resource-COaS9_i8.js";
|
|
9
|
+
import { i as requireCaller } from "../kit-D5rRAKWJ.js";
|
|
10
10
|
import { t as withExtra } from "../extra-Dz9n5y1s.js";
|
|
11
|
-
import { n as resourceRouter } from "../resources-
|
|
11
|
+
import { n as resourceRouter } from "../resources-DhiK3yLO.js";
|
|
12
12
|
import { n as corsConfig, t as SUPABASE_CORS_HEADERS } from "../cors-DrDFLMNn.js";
|
|
13
|
-
import { t as EVERY_CALLER } from "../framework-
|
|
13
|
+
import { t as EVERY_CALLER } from "../framework-z3KTPRjk.js";
|
|
14
14
|
import { t as FUNCTION_DESCRIPTOR } from "../function-contract-Bf6llTkE.js";
|
|
15
15
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
16
16
|
import { withCors } from "@supabase/middleware/cors";
|
package/dist/elysia/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
3
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
4
4
|
interface ElysiaBridge<Entries extends readonly AnyEntry[]> {
|
package/dist/elysia/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as around } from "../shared-Ci1g9nl4.js";
|
|
2
|
-
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-
|
|
2
|
+
import { a as routeRefusal, n as guardedLocals, t as errorResponse } from "../refusal-rnbr6RZD.js";
|
|
3
3
|
import { bufferRequest } from "@supabase/middleware";
|
|
4
4
|
// src/bridges/elysia.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as KnowledgeSearchOptions, n as Embedder, o as KnowledgeHit, r as Knowledge } from "./knowledge-
|
|
1
|
+
import { d as KnowledgeSearchOptions, n as Embedder, o as KnowledgeHit, r as Knowledge } from "./knowledge-DWXAxvkN.js";
|
|
2
2
|
import { EmbeddingModel, RerankingModel, SourceDocumentUIPart, Tool, embedMany } from "ai";
|
|
3
3
|
type ProviderOptions = Parameters<typeof embedMany>[0]["providerOptions"];
|
|
4
4
|
interface EmbedWithOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { It as RequestContext } from "./types-BzIYSSWK.js";
|
|
2
|
+
import { r as AuthState, x as CookieOptions } from "./resolve-BIpQRhvF.js";
|
|
3
3
|
/** The repository context (`actor`, `claims`) for an auth state. */
|
|
4
4
|
declare function authContext(auth: AuthState): RequestContext;
|
|
5
5
|
/** `banned`: Auth rejected the token with `error_code: "user_banned"`. */
|
|
@@ -18,5 +18,10 @@ interface ClearSessionCookiesOptions {
|
|
|
18
18
|
readonly cookie?: CookieOptions;
|
|
19
19
|
}
|
|
20
20
|
declare function sessionStatus(input: Request | string, options: SessionStatusOptions): Promise<SessionStatus>;
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Clears the session cookie and its chunks on `response`, with the no-store
|
|
23
|
+
* headers, through `@supabase/ssr`. Resolves to `response` unchanged when the
|
|
24
|
+
* request carries no session cookie.
|
|
25
|
+
*/
|
|
26
|
+
declare function clearSessionCookies<R extends Response>(request: Request, response: R, options: ClearSessionCookiesOptions): Promise<R>;
|
|
22
27
|
export { sessionStatus as a, clearSessionCookies as i, SessionStatus as n, authContext as o, SessionStatusOptions as r, ClearSessionCookiesOptions as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as AuthSnapshot } from "./bind-
|
|
2
|
-
import { n as AuthSession } from "./view-
|
|
1
|
+
import { t as AuthSnapshot } from "./bind-C2XvMlfg.js";
|
|
2
|
+
import { n as AuthSession } from "./view-DdDY88SC.js";
|
|
3
3
|
/** Verified claims, read by name. */
|
|
4
4
|
type ClaimsRecord = Readonly<Record<string, unknown>>;
|
|
5
5
|
/** A server session, the client's `useAuth()` snapshot, or verified claims. */
|
package/dist/env/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as EnvResult, c as InlineJwks, d as loadEnv, f as parseEnv, i as EnvOptions, l as PublicEnv, m as toServerEnv, n as ENV_VARIABLES, o as EnvSource, p as publicEnv, r as EnvIssue, s as EnvValidationError, t as BetterSupabaseEnv, u as envSchema } from "../index-
|
|
1
|
+
import { a as EnvResult, c as InlineJwks, d as loadEnv, f as parseEnv, i as EnvOptions, l as PublicEnv, m as toServerEnv, n as ENV_VARIABLES, o as EnvSource, p as publicEnv, r as EnvIssue, s as EnvValidationError, t as BetterSupabaseEnv, u as envSchema } from "../index-F6lsRlsr.js";
|
|
2
2
|
export { BetterSupabaseEnv, ENV_VARIABLES, EnvIssue, EnvOptions, EnvResult, EnvSource, EnvValidationError, InlineJwks, PublicEnv, envSchema, loadEnv, parseEnv, publicEnv, toServerEnv };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as dbError } from "./errors-B7tCfCvX.js";
|
|
1
|
+
import { n as dbError, r as dbErrorOf } from "./errors-B7tCfCvX.js";
|
|
2
2
|
import { n as isRecord } from "./guards-CsRa6v57.js";
|
|
3
3
|
import { s as nowInstant } from "./temporal-DKTdGK9i.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "./result-8xza7w5W.js";
|
|
@@ -145,6 +145,11 @@ function modelCatalogRefresh(options) {
|
|
|
145
145
|
// src/ai-sdk/messages.ts
|
|
146
146
|
/** The `format` the chat tree stores next to an AI SDK message it keeps as is. */
|
|
147
147
|
const AI_SDK_UI_FORMAT = "ai-sdk-ui";
|
|
148
|
+
/**
|
|
149
|
+
* The `format` of a row whose own parts are the SDK's, with
|
|
150
|
+
* `blocks.ai-chat.options.messages.parts: "native"`.
|
|
151
|
+
*/
|
|
152
|
+
const NATIVE_FORMATS = /* @__PURE__ */ new Set([AI_SDK_UI_FORMAT, "native"]);
|
|
148
153
|
/** The output a denied tool call gets in the canonical history. */
|
|
149
154
|
const DENIED_TOOL_OUTPUT = "The tool call was denied.";
|
|
150
155
|
const meta = (value) => isRecord(value) ? { providerMetadata: value } : {};
|
|
@@ -435,7 +440,7 @@ function render(parts, tools, into, slots) {
|
|
|
435
440
|
}
|
|
436
441
|
function nativeOf(message) {
|
|
437
442
|
const stored = message;
|
|
438
|
-
return stored.format
|
|
443
|
+
return NATIVE_FORMATS.has(stored.format) && isUIMessage(stored.native) ? stored.native : void 0;
|
|
439
444
|
}
|
|
440
445
|
/**
|
|
441
446
|
* The AI SDK form of a canonical message: the stored native message when the
|
|
@@ -509,4 +514,103 @@ function validUIMessages(messages, schemas = {}) {
|
|
|
509
514
|
}));
|
|
510
515
|
});
|
|
511
516
|
}
|
|
512
|
-
|
|
517
|
+
// src/ai-sdk/errors.ts
|
|
518
|
+
const INVALID_INPUT = /* @__PURE__ */ new Set([
|
|
519
|
+
"AI_InvalidArgumentError",
|
|
520
|
+
"AI_InvalidPromptError",
|
|
521
|
+
"AI_InvalidDataContentError",
|
|
522
|
+
"AI_MessageConversionError",
|
|
523
|
+
"AI_TooManyEmbeddingValuesForCallError"
|
|
524
|
+
]);
|
|
525
|
+
const PROVIDER_CONFIG = /* @__PURE__ */ new Set(["AI_LoadAPIKeyError", "AI_LoadSettingError"]);
|
|
526
|
+
const GENERATION_FAILED = /* @__PURE__ */ new Set([
|
|
527
|
+
"AI_NoObjectGeneratedError",
|
|
528
|
+
"AI_NoContentGeneratedError",
|
|
529
|
+
"AI_NoOutputGeneratedError",
|
|
530
|
+
"AI_NoImageGeneratedError",
|
|
531
|
+
"AI_NoSpeechGeneratedError",
|
|
532
|
+
"AI_NoTranscriptGeneratedError",
|
|
533
|
+
"AI_NoVideoGeneratedError",
|
|
534
|
+
"AI_NoSuchToolError",
|
|
535
|
+
"AI_InvalidToolInputError",
|
|
536
|
+
"AI_ToolCallRepairError",
|
|
537
|
+
"AI_JSONParseError",
|
|
538
|
+
"AI_InvalidResponseDataError",
|
|
539
|
+
"AI_EmptyResponseBodyError",
|
|
540
|
+
"AI_UIMessageStreamError"
|
|
541
|
+
]);
|
|
542
|
+
const numberOf = (value) => typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
543
|
+
function retryAfterOf(error) {
|
|
544
|
+
const headers = error["responseHeaders"];
|
|
545
|
+
if (!isRecord(headers)) return;
|
|
546
|
+
const value = headers["retry-after"] ?? headers["Retry-After"];
|
|
547
|
+
const seconds = typeof value === "string" ? Number(value) : NaN;
|
|
548
|
+
return Number.isFinite(seconds) && seconds >= 0 ? Math.ceil(seconds) : void 0;
|
|
549
|
+
}
|
|
550
|
+
function ofStatus(status, error) {
|
|
551
|
+
if (status === 429) {
|
|
552
|
+
const retryAfter = retryAfterOf(error);
|
|
553
|
+
return dbError("rate_limited", "The model provider is rate limiting.", {
|
|
554
|
+
code: "AI_PROVIDER_RATE_LIMITED",
|
|
555
|
+
...retryAfter === void 0 ? {} : { retryAfter }
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
if (status === 408 || status === 504) return dbError("timeout", "The model provider timed out.", { code: "AI_PROVIDER_TIMEOUT" });
|
|
559
|
+
if (status === 400 || status === 413 || status === 422) return dbError("invalid_request", "The model provider refused the request.", { code: "AI_PROVIDER_BAD_REQUEST" });
|
|
560
|
+
if (status === 404) return dbError("not_found", "The model provider has no such resource.", { code: "AI_PROVIDER_NOT_FOUND" });
|
|
561
|
+
if (status === 401 || status === 403) return dbError("unexpected", "The model provider refused the credentials.", { code: "AI_PROVIDER_AUTH" });
|
|
562
|
+
if (status !== void 0 && status >= 500) return dbError("network", "The model provider is unavailable.", { code: "AI_PROVIDER_UNAVAILABLE" });
|
|
563
|
+
return dbError("unexpected", "The model provider call failed.", { code: "AI_PROVIDER_FAILED" });
|
|
564
|
+
}
|
|
565
|
+
function ofGateway(type, error) {
|
|
566
|
+
switch (type) {
|
|
567
|
+
case "rate_limit_exceeded": return ofStatus(429, error);
|
|
568
|
+
case "timeout": return ofStatus(504, error);
|
|
569
|
+
case "invalid_request_error": return ofStatus(400, error);
|
|
570
|
+
case "model_not_found": return dbError("not_found", "The AI Gateway has no such model.", { code: "AI_MODEL_NOT_FOUND" });
|
|
571
|
+
case "not_found": return ofStatus(404, error);
|
|
572
|
+
case "forbidden": return dbError("forbidden", "The AI Gateway refused the request.", { code: "AI_GATEWAY_FORBIDDEN" });
|
|
573
|
+
case "authentication_error": return dbError("unexpected", "The AI Gateway refused the credentials.", { code: "AI_GATEWAY_AUTH" });
|
|
574
|
+
case "failed_dependency":
|
|
575
|
+
case "internal_server_error": return ofStatus(503, error);
|
|
576
|
+
default: return ofStatus(numberOf(error["statusCode"]), error);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* An AI SDK or AI Gateway error as a `DbError`, so a route answers with the
|
|
581
|
+
* same Problem Details as the rest of the app. Errors are matched by `name`
|
|
582
|
+
* (and `type` for the gateway), so a second copy of `ai` still matches. The
|
|
583
|
+
* message is fixed per kind; the provider's own message never reaches it, since
|
|
584
|
+
* it can quote the prompt or a key.
|
|
585
|
+
*/
|
|
586
|
+
function aiErrorToDbError(error) {
|
|
587
|
+
const known = dbErrorOf(error);
|
|
588
|
+
if (known !== void 0) return known;
|
|
589
|
+
if (!isRecord(error)) return dbError("unexpected", "The generation failed.", { code: "AI_GENERATION_FAILED" });
|
|
590
|
+
const name = typeof error["name"] === "string" ? error["name"] : "";
|
|
591
|
+
if (name === "AbortError" || name === "TimeoutError") return name === "AbortError" ? dbError("aborted", "The generation was stopped.", { code: "AI_ABORTED" }) : ofStatus(504, error);
|
|
592
|
+
if (name === "AI_RetryError") {
|
|
593
|
+
const last = error["lastError"];
|
|
594
|
+
return last === void 0 || last === error ? ofStatus(void 0, error) : aiErrorToDbError(last);
|
|
595
|
+
}
|
|
596
|
+
if (name === "AI_APICallError") return ofStatus(numberOf(error["statusCode"]), error);
|
|
597
|
+
if (name.startsWith("Gateway") && typeof error["type"] === "string") return ofGateway(error["type"], error);
|
|
598
|
+
if (name === "AI_TypeValidationError") return dbError("validation", "The value did not match its schema.", {
|
|
599
|
+
code: "AI_TYPE_VALIDATION",
|
|
600
|
+
issues: [{ message: "The value did not match its schema." }]
|
|
601
|
+
});
|
|
602
|
+
if (name === "AI_NoSuchModelError" || name === "AI_NoSuchProviderError") return dbError("not_found", "The model is not available.", { code: "AI_MODEL_NOT_FOUND" });
|
|
603
|
+
if (name === "AI_UnsupportedFunctionalityError") return dbError("unsupported", "The model does not support this.", { code: "AI_UNSUPPORTED" });
|
|
604
|
+
if (name === "AI_DownloadError") return dbError("network", "A file could not be downloaded.", { code: "AI_DOWNLOAD_FAILED" });
|
|
605
|
+
if (INVALID_INPUT.has(name)) return dbError("invalid_request", "The request to the model is invalid.", { code: "AI_INVALID_REQUEST" });
|
|
606
|
+
if (PROVIDER_CONFIG.has(name)) return dbError("unexpected", "The model provider is not configured.", { code: "AI_PROVIDER_CONFIG" });
|
|
607
|
+
return dbError("unexpected", "The generation failed.", { code: GENERATION_FAILED.has(name) ? "AI_GENERATION_FAILED" : "AI_UNEXPECTED" });
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* The message a client sees for a stream error: the fixed message of
|
|
611
|
+
* `aiErrorToDbError`. The default `onError` of `createAssistant`.
|
|
612
|
+
*/
|
|
613
|
+
function aiErrorMessage(error) {
|
|
614
|
+
return aiErrorToDbError(error).message;
|
|
615
|
+
}
|
|
616
|
+
export { usageOf as _, fromUIMessage as a, toUIMessage as c, costBackfill as d, modelCatalogRefresh as f, usageEntries as g, runRelease as h, DENIED_TOOL_OUTPUT as i, toUIMessages as l, problem429 as m, aiErrorToDbError as n, isUIMessage as o, modelInputOf as p, AI_SDK_UI_FORMAT as r, meta as s, aiErrorMessage as t, validUIMessages as u, usageQuota as v };
|
package/dist/eve/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../result-DTOQRyGY.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as ResolveAuthOptions, r as AuthState } from "../resolve
|
|
4
|
-
import { i as CredentialRef, r as CredentialProvider } from "../provider-
|
|
5
|
-
import { r as DbTransportSource, t as BlockTransport } from "../block-transport-
|
|
6
|
-
import { j as ScheduleOptions } from "../types-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { a as Inbox } from "../inbox-
|
|
10
|
-
import { S as EveToolContext, _ as EveApprovalResponseDecision, a as EveMemoryToolsContext, b as EveSessionContext, c as MemoryDocumentConflictError, d as supabaseDocumentBackend, f as supabaseMemory, g as EveApprovalResponseContext, h as EveApprovalPolicy, i as EveMemoryTool, l as SupabaseDocumentBackendOptions, m as EveApprovalContext, n as EveMemoryContext, o as EveRecallMessage, p as EveApprovalConfiguration, r as EveMemoryProvider, s as EveRecallResult, t as EveDocumentBackend, u as SupabaseMemoryOptions, v as EveApprovalStatus, x as EveToolApproval, y as EveSessionAuth } from "../eve-
|
|
2
|
+
import { It as RequestContext } from "../types-BzIYSSWK.js";
|
|
3
|
+
import { a as ResolveAuthOptions, r as AuthState } from "../resolve-BIpQRhvF.js";
|
|
4
|
+
import { i as CredentialRef, r as CredentialProvider } from "../provider-bIAzxVMB.js";
|
|
5
|
+
import { r as DbTransportSource, t as BlockTransport } from "../block-transport-CDmOUuLZ.js";
|
|
6
|
+
import { j as ScheduleOptions } from "../types-BdhE7I8Z.js";
|
|
7
|
+
import { R as AiToolPolicy, t as AiChat } from "../ai-chat-BZhfCHHr.js";
|
|
8
|
+
import { p as Approvals } from "../approvals-DqCv7f-G.js";
|
|
9
|
+
import { a as Inbox } from "../inbox-yGfUVQr2.js";
|
|
10
|
+
import { S as EveToolContext, _ as EveApprovalResponseDecision, a as EveMemoryToolsContext, b as EveSessionContext, c as MemoryDocumentConflictError, d as supabaseDocumentBackend, f as supabaseMemory, g as EveApprovalResponseContext, h as EveApprovalPolicy, i as EveMemoryTool, l as SupabaseDocumentBackendOptions, m as EveApprovalContext, n as EveMemoryContext, o as EveRecallMessage, p as EveApprovalConfiguration, r as EveMemoryProvider, s as EveRecallResult, t as EveDocumentBackend, u as SupabaseMemoryOptions, v as EveApprovalStatus, x as EveToolApproval, y as EveSessionAuth } from "../eve-DleYrhwj.js";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
12
12
|
/** The user a tool runs as when the session has no Supabase user. */
|
|
13
13
|
interface EveRunAs {
|
package/dist/eve/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import { a as tenantClaimPaths, n as claimAt, t as DEFAULT_CLAIMS } from "../cla
|
|
|
5
5
|
import { t as importOptionalPeer } from "../optional-peer-5SOYr3lL.js";
|
|
6
6
|
import { r as agentClaims } from "../actor-B5b0i1Fs.js";
|
|
7
7
|
import { V as dbTransport } from "../block-helpers-I7UzjNEf.js";
|
|
8
|
-
import { t as isAnonymousUser } from "../view-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { t as isAnonymousUser } from "../view-Ch0Qtr36.js";
|
|
9
|
+
import { r as resolveAuth } from "../resolve-CZV31iCm.js";
|
|
10
|
+
import { n as createApprovals } from "../approvals-D8gR1R8R.js";
|
|
11
11
|
// src/eve/ids.ts
|
|
12
12
|
/**
|
|
13
13
|
* A UUID (version 8) from the SHA-256 of `input`, so the same input always gets
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as KnowledgeSearchOptions, r as Knowledge } from "./knowledge-
|
|
2
|
-
import { t as Memory } from "./types-
|
|
1
|
+
import { d as KnowledgeSearchOptions, r as Knowledge } from "./knowledge-DWXAxvkN.js";
|
|
2
|
+
import { t as Memory } from "./types-C7K8mu9B.js";
|
|
3
3
|
/**
|
|
4
4
|
* Eve's `SessionAuthContext`, typed structurally so this entry never imports
|
|
5
5
|
* eve. `attributes` carries `tenantId`, `roles` and `isAnonymous`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { f as CalendarEvent, p as CalendarOccurrence } from "./availability-
|
|
2
|
+
import { f as CalendarEvent, p as CalendarOccurrence } from "./availability-CZlcrkqD.js";
|
|
3
3
|
/**
|
|
4
4
|
* The event shape of a headless event calendar such as ReUI's Event Calendar
|
|
5
5
|
* (`CalendarEvent`), typed structurally: better-supabase imports no UI
|
package/dist/events/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as SaasEventData, A as CollaborationEventData, B as FormEventData, C as BillingEventData, Ct as Events, D as BlockEventPattern, Dt as mergeEvents, E as BlockEventMeta, Et as event, F as DataExportEventData, G as InviteCodeEventData, H as InboxEventData, J as NotificationEventData, K as LegalHoldEventData, M as CommerceSubjectEventData, N as ConnectorEventData, O as BlockEventType, P as CredentialEventData, Q as PushDeviceEventData, S as BLOCK_EVENT_RENAMES, St as EventSpec, T as BlockEvent, Tt as defineEvents, U as IncomingWebhookEventData, V as FormSubmissionEventData, W as InvitationEventData, X as OrganizationDomainEventData, Y as OrganizationDeletionEventData, Z as OrganizationEventData, _ as AnnouncementEventData, _t as WorkflowRunEventData, at as SsoProviderEventData, b as AuditRevealEventData, bt as EventMap, ct as SubjectEventType, dt as TemplateEventData, et as SaasSubjectEventData, ft as TimeEntryEventData, g as AiToolEventData, gt as WorkflowEventData, h as AiProviderKeyEventData, ht as WebhookEventData, it as SignatureEventData, j as CommerceEventData, k as BlockEventsMatching, lt as SupportEventData, m as AiChatEventData, mt as WaitlistEventData, nt as ScimEventData, ot as StorageObjectEventData, p as AgentEventData, pt as TimesheetEventData, q as NotificationDeliveryEventData, rt as SettingEventData, st as SubjectEventData, tt as SchedulingEventData, ut as TemplateApplicationEventData, v as ApiKeyEventData, vt as blockEventAttributes, w as BlockEmit, wt as MergedEventMap, x as BLOCK_ATTRIBUTES, xt as EventMapOf, y as AttachmentEventData, yt as emitBlockEvent, z as FlagEventData } from "../events-
|
|
2
|
-
import { A as PartyEventData, C as ForecastSnapshotEventData, D as MailMessageEventData, E as MailAccountEventData, F as SegmentEventData, I as SegmentMemberEventData, L as SlaEventData, M as PipelineStageEventData, N as QuoteEventData, O as MailTrackingEventData, P as SavedItemEventData, R as WorkItemEventData, S as EnrichmentEventData, T as JobEventData, a as RowEventData, b as EngagementEventData, c as httpSink, d as toHttp, f as ApplicationEventData, g as CollectionEventData, h as CollectionEntryEventData, i as ROW_EVENT_TYPES, j as PipelineEventData, l as isCloudEvent, n as HttpMode, o as forwardMutations, p as AssignmentEventData, r as HttpSinkOptions, s as fromHttp, t as ForwardOptions, u as toCloudEvents, v as DealEventData, w as InvoiceEventData, x as EngagementRecordingEventData, y as EmployeeEventData, z as onBlockEvent } from "../index-
|
|
3
|
-
import { a as ForwardBlockOptions, i as EventSink, n as CloudEventOptions, o as blockCloudEvent, r as DataschemaContext, s as forwardBlockEvents, t as CloudEvent } from "../cloud-event-
|
|
1
|
+
import { $ as SaasEventData, A as CollaborationEventData, B as FormEventData, C as BillingEventData, Ct as Events, D as BlockEventPattern, Dt as mergeEvents, E as BlockEventMeta, Et as event, F as DataExportEventData, G as InviteCodeEventData, H as InboxEventData, J as NotificationEventData, K as LegalHoldEventData, M as CommerceSubjectEventData, N as ConnectorEventData, O as BlockEventType, P as CredentialEventData, Q as PushDeviceEventData, S as BLOCK_EVENT_RENAMES, St as EventSpec, T as BlockEvent, Tt as defineEvents, U as IncomingWebhookEventData, V as FormSubmissionEventData, W as InvitationEventData, X as OrganizationDomainEventData, Y as OrganizationDeletionEventData, Z as OrganizationEventData, _ as AnnouncementEventData, _t as WorkflowRunEventData, at as SsoProviderEventData, b as AuditRevealEventData, bt as EventMap, ct as SubjectEventType, dt as TemplateEventData, et as SaasSubjectEventData, ft as TimeEntryEventData, g as AiToolEventData, gt as WorkflowEventData, h as AiProviderKeyEventData, ht as WebhookEventData, it as SignatureEventData, j as CommerceEventData, k as BlockEventsMatching, lt as SupportEventData, m as AiChatEventData, mt as WaitlistEventData, nt as ScimEventData, ot as StorageObjectEventData, p as AgentEventData, pt as TimesheetEventData, q as NotificationDeliveryEventData, rt as SettingEventData, st as SubjectEventData, tt as SchedulingEventData, ut as TemplateApplicationEventData, v as ApiKeyEventData, vt as blockEventAttributes, w as BlockEmit, wt as MergedEventMap, x as BLOCK_ATTRIBUTES, xt as EventMapOf, y as AttachmentEventData, yt as emitBlockEvent, z as FlagEventData } from "../events-DCw3c6pj.js";
|
|
2
|
+
import { A as PartyEventData, C as ForecastSnapshotEventData, D as MailMessageEventData, E as MailAccountEventData, F as SegmentEventData, I as SegmentMemberEventData, L as SlaEventData, M as PipelineStageEventData, N as QuoteEventData, O as MailTrackingEventData, P as SavedItemEventData, R as WorkItemEventData, S as EnrichmentEventData, T as JobEventData, a as RowEventData, b as EngagementEventData, c as httpSink, d as toHttp, f as ApplicationEventData, g as CollectionEventData, h as CollectionEntryEventData, i as ROW_EVENT_TYPES, j as PipelineEventData, l as isCloudEvent, n as HttpMode, o as forwardMutations, p as AssignmentEventData, r as HttpSinkOptions, s as fromHttp, t as ForwardOptions, u as toCloudEvents, v as DealEventData, w as InvoiceEventData, x as EngagementRecordingEventData, y as EmployeeEventData, z as onBlockEvent } from "../index-CY612vAg.js";
|
|
3
|
+
import { a as ForwardBlockOptions, i as EventSink, n as CloudEventOptions, o as blockCloudEvent, r as DataschemaContext, s as forwardBlockEvents, t as CloudEvent } from "../cloud-event-BEmAUdl1.js";
|
|
4
4
|
export { type AgentEventData, type AiChatEventData, type AiProviderKeyEventData, type AiToolEventData, type AnnouncementEventData, type ApiKeyEventData, type ApplicationEventData, type AssignmentEventData, type AttachmentEventData, type AuditRevealEventData, BLOCK_ATTRIBUTES, BLOCK_EVENT_RENAMES, type BillingEventData, type BlockEmit, type BlockEvent, type BlockEventMeta, type BlockEventPattern, type BlockEventType, type BlockEventsMatching, type CloudEvent, type CloudEventOptions, type CollaborationEventData, type CollectionEntryEventData, type CollectionEventData, type CommerceEventData, type CommerceSubjectEventData, type ConnectorEventData, type CredentialEventData, type DataExportEventData, type DataschemaContext, type DealEventData, type EmployeeEventData, type EngagementEventData, type EngagementRecordingEventData, type EnrichmentEventData, type EventMap, type EventMapOf, type EventSink, type EventSpec, type Events, type FlagEventData, type ForecastSnapshotEventData, type FormEventData, type FormSubmissionEventData, type ForwardBlockOptions, ForwardOptions, HttpMode, HttpSinkOptions, type InboxEventData, type IncomingWebhookEventData, type InvitationEventData, type InviteCodeEventData, type InvoiceEventData, type JobEventData, type LegalHoldEventData, type MailAccountEventData, type MailMessageEventData, type MailTrackingEventData, type MergedEventMap, type NotificationDeliveryEventData, type NotificationEventData, type OrganizationDeletionEventData, type OrganizationDomainEventData, type OrganizationEventData, type PartyEventData, type PipelineEventData, type PipelineStageEventData, type PushDeviceEventData, type QuoteEventData, ROW_EVENT_TYPES, RowEventData, type SaasEventData, type SaasSubjectEventData, type SavedItemEventData, type SchedulingEventData, type ScimEventData, type SegmentEventData, type SegmentMemberEventData, type SettingEventData, type SignatureEventData, type SlaEventData, type SsoProviderEventData, type StorageObjectEventData, type SubjectEventData, type SubjectEventType, type SupportEventData, type TemplateApplicationEventData, type TemplateEventData, type TimeEntryEventData, type TimesheetEventData, type WaitlistEventData, type WebhookEventData, type WorkItemEventData, type WorkflowEventData, type WorkflowRunEventData, blockCloudEvent, blockEventAttributes, defineEvents, emitBlockEvent, event, forwardBlockEvents, forwardMutations, fromHttp, httpSink, isCloudEvent, mergeEvents, onBlockEvent, toCloudEvents, toHttp };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError } from "./result-DTOQRyGY.js";
|
|
3
|
-
import {
|
|
3
|
+
import { It as RequestContext, d as MutationIntent, f as MutationKind, m as Operation } from "./types-BzIYSSWK.js";
|
|
4
4
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
5
5
|
/**
|
|
6
6
|
* Event maps: the types a block or an app emits and the data of each. Kept
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as WorkflowGraph, Z as WorkflowNodeKindInfo } from "./types-C9XfFGmA.js";
|
|
2
2
|
/** The record a run belongs to. */
|
|
3
3
|
interface GraphSubject {
|
|
4
4
|
readonly type: string;
|
|
@@ -23,6 +23,13 @@ interface GraphStepCall {
|
|
|
23
23
|
readonly tenant?: string;
|
|
24
24
|
readonly subject?: GraphSubject;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* What a node of an app's own kind (`defineNodeKind`) passes to the engine's
|
|
28
|
+
* step: plain data, so it serializes.
|
|
29
|
+
*/
|
|
30
|
+
interface GraphNodeCall extends Omit<GraphStepCall, "step"> {
|
|
31
|
+
readonly kind: string;
|
|
32
|
+
}
|
|
26
33
|
/**
|
|
27
34
|
* What an approval node passes to `GraphRuntime.requestApproval`: plain data,
|
|
28
35
|
* so it serializes.
|
|
@@ -58,7 +65,14 @@ interface GraphRuntime {
|
|
|
58
65
|
* approval node takes its stub as the decision (else approved).
|
|
59
66
|
*/
|
|
60
67
|
readonly stubs?: Readonly<Record<string, unknown>>;
|
|
68
|
+
/** The app's own node kinds (`defineNodeKind`) the graph may use. */
|
|
69
|
+
readonly nodes?: readonly WorkflowNodeKindInfo[];
|
|
61
70
|
step(call: GraphStepCall): PromiseLike<unknown>;
|
|
71
|
+
/**
|
|
72
|
+
* Runs a node of an app's own kind, as a step. A branching kind takes the
|
|
73
|
+
* `true` branch when the output is truthy. Required when the graph has one.
|
|
74
|
+
*/
|
|
75
|
+
node?(call: GraphNodeCall): PromiseLike<unknown>;
|
|
62
76
|
sleep(ms: number): PromiseLike<unknown>;
|
|
63
77
|
/**
|
|
64
78
|
* Files the approval request for an approval node and returns its id, which
|
|
@@ -96,4 +110,4 @@ declare function startNodeOf(graph: WorkflowGraph, requested: string | undefined
|
|
|
96
110
|
* executor.
|
|
97
111
|
*/
|
|
98
112
|
declare function executeGraph(graph: WorkflowGraph, input: unknown, runtime: GraphRuntime): Promise<Record<string, unknown>>;
|
|
99
|
-
export {
|
|
113
|
+
export { GraphStepCall as a, graphRunFields as c, GraphRuntime as i, startNodeOf as l, GraphNodeCall as n, GraphSubject as o, GraphRunFields as r, executeGraph as s, GraphApprovalCall as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { E as RawDbError, b as DbError, f as Result } from "./result-DTOQRyGY.js";
|
|
2
|
-
import {
|
|
3
|
-
import { mt as QuerySpec, t as BetterSupabase } from "./define-
|
|
4
|
-
import { i as ListDefinition } from "./list-query-
|
|
5
|
-
import { t as Compiler } from "./compiler-
|
|
2
|
+
import { O as AnyFunctions, Vt as Executor, dt as TableKey, ft as TableMeta, k as AnyModels, m as Operation } from "./types-BzIYSSWK.js";
|
|
3
|
+
import { mt as QuerySpec, t as BetterSupabase } from "./define-BvkaC3Oh.js";
|
|
4
|
+
import { i as ListDefinition } from "./list-query-D1h3Dmnk.js";
|
|
5
|
+
import { t as Compiler } from "./compiler-BOW4yPcW.js";
|
|
6
6
|
/** A value SQLite binds: booleans become `0`/`1`, objects JSON text. */
|
|
7
7
|
type SqliteValue = string | number | bigint | null;
|
|
8
8
|
interface SqliteQuery {
|
|
@@ -4,13 +4,20 @@ import { t as evaluateFilterQuery } from "./filter-evaluate-D_LLfdtE.js";
|
|
|
4
4
|
// src/blocks/workflow-editor/graph.ts
|
|
5
5
|
/** Kept local: the static executor runs this file inside the workflow VM. */
|
|
6
6
|
const isGraphRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
7
|
-
const
|
|
7
|
+
const WORKFLOW_BUILTIN_NODE_KINDS = [
|
|
8
8
|
"trigger",
|
|
9
9
|
"step",
|
|
10
10
|
"sleep",
|
|
11
11
|
"approval",
|
|
12
12
|
"condition"
|
|
13
13
|
];
|
|
14
|
+
/** Whether `kind` is one of the built-in node kinds. */
|
|
15
|
+
const isBuiltinNodeKind = (kind) => WORKFLOW_BUILTIN_NODE_KINDS.some((known) => known === kind);
|
|
16
|
+
/**
|
|
17
|
+
* The shape of an app's own node kind; `workflow_node_kinds` checks the same
|
|
18
|
+
* pattern.
|
|
19
|
+
*/
|
|
20
|
+
const NODE_KIND_PATTERN = /^[a-z][a-z0-9_.-]{0,62}$/;
|
|
14
21
|
const OPERATORS = [
|
|
15
22
|
"equals",
|
|
16
23
|
"notEquals",
|
|
@@ -183,12 +190,14 @@ function topologicalOrder(graph) {
|
|
|
183
190
|
}
|
|
184
191
|
return order.length === graph.nodes.length ? order : void 0;
|
|
185
192
|
}
|
|
186
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* `value` as a node, or `undefined` when its id is missing or its kind is
|
|
195
|
+
* neither built in nor shaped like an app's own kind.
|
|
196
|
+
*/
|
|
187
197
|
function nodeOf(value) {
|
|
188
198
|
if (!isGraphRecord(value)) return;
|
|
189
|
-
const id = value
|
|
190
|
-
|
|
191
|
-
if (typeof id !== "string" || kind === void 0) return;
|
|
199
|
+
const { id, kind } = value;
|
|
200
|
+
if (typeof id !== "string" || typeof kind !== "string" || !(isBuiltinNodeKind(kind) || NODE_KIND_PATTERN.test(kind))) return;
|
|
192
201
|
const { label, step, config, position } = value;
|
|
193
202
|
return {
|
|
194
203
|
id,
|
|
@@ -220,15 +229,33 @@ function edgeOf(value) {
|
|
|
220
229
|
*/
|
|
221
230
|
const NODE_ID = /^[A-Za-z0-9_-]{1,100}$/;
|
|
222
231
|
const BRANCHING = /* @__PURE__ */ new Set(["condition", "approval"]);
|
|
232
|
+
/** Whether a node of `kind` branches, given the app's own kinds. */
|
|
233
|
+
function branchesOn(kind, nodes) {
|
|
234
|
+
return BRANCHING.has(kind) || nodes.get(kind)?.branches === true;
|
|
235
|
+
}
|
|
236
|
+
function builtinErrors(node, kind, library) {
|
|
237
|
+
const { id } = node;
|
|
238
|
+
switch (kind) {
|
|
239
|
+
case "trigger":
|
|
240
|
+
case "approval": return [];
|
|
241
|
+
case "step":
|
|
242
|
+
if (typeof node.step !== "string" || node.step.length === 0) return [`Node ${id} names no step`];
|
|
243
|
+
return library !== void 0 && !library.has(node.step) ? [`Node ${id} uses step ${node.step}, which is not in the step library`] : [];
|
|
244
|
+
case "sleep": return durationMs(node.config?.["duration"]) === void 0 ? [`Node ${id} has no valid duration`] : [];
|
|
245
|
+
case "condition": return conditionOf(node) === void 0 ? [`Node ${id} has no valid condition`] : [];
|
|
246
|
+
default: return [`Node ${id} has an unknown kind ${String(kind)}`];
|
|
247
|
+
}
|
|
248
|
+
}
|
|
223
249
|
/**
|
|
224
|
-
* Problems that keep `graph` from running, as messages; empty when it can.
|
|
225
|
-
*
|
|
226
|
-
*
|
|
250
|
+
* Problems that keep `graph` from running, as messages; empty when it can.
|
|
251
|
+
* `options.steps` checks step nodes against the library and `options.nodes`
|
|
252
|
+
* lists the app's own node kinds.
|
|
227
253
|
*/
|
|
228
|
-
function validateGraph(graph,
|
|
254
|
+
function validateGraph(graph, options = {}) {
|
|
229
255
|
if (!isGraphRecord(graph) || !Array.isArray(graph["nodes"]) || !Array.isArray(graph["edges"])) return ["A graph has a nodes array and an edges array"];
|
|
230
256
|
const errors = [];
|
|
231
|
-
const library = steps === void 0 ? void 0 : new Set(steps);
|
|
257
|
+
const library = options.steps === void 0 ? void 0 : new Set(options.steps);
|
|
258
|
+
const kinds = new Map([...options.nodes ?? []].map((info) => [info.kind, info]));
|
|
232
259
|
const nodes = /* @__PURE__ */ new Map();
|
|
233
260
|
let triggers = 0;
|
|
234
261
|
for (const value of graph["nodes"]) {
|
|
@@ -244,26 +271,14 @@ function validateGraph(graph, steps) {
|
|
|
244
271
|
continue;
|
|
245
272
|
}
|
|
246
273
|
nodes.set(id, node);
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
case "step":
|
|
252
|
-
if (typeof node.step !== "string" || node.step.length === 0) errors.push(`Node ${id} names no step`);
|
|
253
|
-
else if (library !== void 0 && !library.has(node.step)) errors.push(`Node ${id} uses step ${node.step}, which is not in the step library`);
|
|
254
|
-
break;
|
|
255
|
-
case "sleep":
|
|
256
|
-
if (durationMs(node.config?.["duration"]) === void 0) errors.push(`Node ${id} has no valid duration`);
|
|
257
|
-
break;
|
|
258
|
-
case "approval": break;
|
|
259
|
-
case "condition":
|
|
260
|
-
if (conditionOf(node) === void 0) errors.push(`Node ${id} has no valid condition`);
|
|
261
|
-
break;
|
|
262
|
-
default: {
|
|
263
|
-
const unknown = node.kind;
|
|
264
|
-
errors.push(`Node ${id} has an unknown kind ${String(unknown)}`);
|
|
265
|
-
}
|
|
274
|
+
if (isBuiltinNodeKind(node.kind)) {
|
|
275
|
+
triggers += node.kind === "trigger" ? 1 : 0;
|
|
276
|
+
errors.push(...builtinErrors(node, node.kind, library));
|
|
277
|
+
continue;
|
|
266
278
|
}
|
|
279
|
+
const custom = kinds.get(node.kind);
|
|
280
|
+
if (custom === void 0) errors.push(`Node ${id} has an unknown kind`);
|
|
281
|
+
else errors.push(...custom.validate?.(node) ?? []);
|
|
267
282
|
}
|
|
268
283
|
if (triggers === 0) errors.push("A graph has at least one trigger node");
|
|
269
284
|
const edgeIds = /* @__PURE__ */ new Set();
|
|
@@ -281,7 +296,7 @@ function validateGraph(graph, steps) {
|
|
|
281
296
|
const branch = value["branch"];
|
|
282
297
|
if (branch !== void 0) {
|
|
283
298
|
if (branch !== "true" && branch !== "false") errors.push(`Edge ${id} has a branch other than "true" or "false"`);
|
|
284
|
-
else if (source !== void 0 && !
|
|
299
|
+
else if (source !== void 0 && !branchesOn(source.kind, kinds)) errors.push(`Edge ${id} branches from a ${source.kind} node`);
|
|
285
300
|
}
|
|
286
301
|
if (target?.kind === "trigger") errors.push(`Edge ${id} leads into the trigger node`);
|
|
287
302
|
edges.push({
|
|
@@ -392,7 +407,7 @@ function startNodeOf(graph, requested) {
|
|
|
392
407
|
* executor.
|
|
393
408
|
*/
|
|
394
409
|
async function executeGraph(graph, input, runtime) {
|
|
395
|
-
const errors = validateGraph(graph);
|
|
410
|
+
const errors = validateGraph(graph, { nodes: runtime.nodes ?? [] });
|
|
396
411
|
if (errors.length > 0) throw new TypeError(`workflow-editor: ${errors.join("; ")}`);
|
|
397
412
|
const start = startNodeOf(graph, runtime.triggerNode);
|
|
398
413
|
const order = topologicalOrder(graph) ?? [];
|
|
@@ -415,8 +430,30 @@ const extrasOf = (runtime) => ({
|
|
|
415
430
|
...runtime.tenant === void 0 ? {} : { tenant: runtime.tenant },
|
|
416
431
|
...runtime.subject === void 0 ? {} : { subject: runtime.subject }
|
|
417
432
|
});
|
|
433
|
+
async function runCustomNode(node, input, results, runtime) {
|
|
434
|
+
let output;
|
|
435
|
+
if (runtime.stubs !== void 0) output = stubOf(runtime.stubs, node.id, { stubbed: true });
|
|
436
|
+
else if (runtime.node === void 0) throw new TypeError(`workflow-editor: pass node to the runtime to run node ${node.id} of kind ${node.kind}`);
|
|
437
|
+
else output = await runtime.node({
|
|
438
|
+
node: node.id,
|
|
439
|
+
kind: node.kind,
|
|
440
|
+
config: node.config ?? {},
|
|
441
|
+
input,
|
|
442
|
+
results: { ...results },
|
|
443
|
+
runKey: runtime.runKey,
|
|
444
|
+
...extrasOf(runtime)
|
|
445
|
+
});
|
|
446
|
+
const kinds = new Map((runtime.nodes ?? []).map((info) => [info.kind, info]));
|
|
447
|
+
return {
|
|
448
|
+
output: output ?? null,
|
|
449
|
+
outcome: branchesOn(node.kind, kinds) ? Boolean(output) : true
|
|
450
|
+
};
|
|
451
|
+
}
|
|
418
452
|
async function runNode(node, input, results, runtime) {
|
|
419
|
-
|
|
453
|
+
return isBuiltinNodeKind(node.kind) ? runBuiltinNode(node, node.kind, input, results, runtime) : runCustomNode(node, input, results, runtime);
|
|
454
|
+
}
|
|
455
|
+
async function runBuiltinNode(node, kind, input, results, runtime) {
|
|
456
|
+
switch (kind) {
|
|
420
457
|
case "trigger": return {
|
|
421
458
|
output: input,
|
|
422
459
|
outcome: true
|
|
@@ -473,10 +510,7 @@ async function runNode(node, input, results, runtime) {
|
|
|
473
510
|
outcome
|
|
474
511
|
};
|
|
475
512
|
}
|
|
476
|
-
default: {
|
|
477
|
-
const unknown = node.kind;
|
|
478
|
-
throw new TypeError(`workflow-editor: unknown node kind ${String(unknown)}`);
|
|
479
|
-
}
|
|
513
|
+
default: throw new TypeError(`workflow-editor: unknown node kind ${String(kind)}`);
|
|
480
514
|
}
|
|
481
515
|
}
|
|
482
|
-
export {
|
|
516
|
+
export { validateGraph as _, WORKFLOW_BUILTIN_NODE_KINDS as a, diffGraphs as c, filterConditionOf as d, graphOf as f, topologicalOrder as g, matchesFilter as h, NODE_KIND_PATTERN as i, durationMs as l, isGraphRecord as m, graphRunFields as n, approved as o, isBuiltinNodeKind as p, startNodeOf as r, branchesOn as s, executeGraph as t, evaluateCondition as u };
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { O as AnyFunctions, k as AnyModels } from "../types-
|
|
2
|
-
import { t as BetterSupabase } from "../define-
|
|
3
|
-
import { i as ContextOptions, l as ServerOptions, o as ServerContext, r as BetterServer } from "../server-types-
|
|
4
|
-
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-
|
|
1
|
+
import { O as AnyFunctions, k as AnyModels } from "../types-BzIYSSWK.js";
|
|
2
|
+
import { t as BetterSupabase } from "../define-BvkaC3Oh.js";
|
|
3
|
+
import { i as ContextOptions, l as ServerOptions, o as ServerContext, r as BetterServer } from "../server-types-DEjva0MW.js";
|
|
4
|
+
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-CAxhkwAi.js";
|
|
5
5
|
import { t as Validated } from "../shared-DsBcvj6q.js";
|
|
6
6
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
7
7
|
import { ImmutableRequest, MiddlewareFunction } from "expo-server";
|
package/dist/expo/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as DbException } from "../db-exception-Dv18UZ-I.js";
|
|
2
2
|
import { c as toProblem } from "../problem-C0SVHhd3.js";
|
|
3
|
-
import { a as unexpectedResponse, c as extendServer, s as createServer } from "../adapter-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { i as guard, n as defaultExpose, o as respond } from "../respond-
|
|
7
|
-
import { t as withBetterSupabase } from "../composite-
|
|
3
|
+
import { a as unexpectedResponse, c as extendServer, s as createServer } from "../adapter-ddQ9Hzka.js";
|
|
4
|
+
import { r as refreshFor } from "../request-kind-tNDM5Z_o.js";
|
|
5
|
+
import { u as serializeCookie } from "../resolve-CZV31iCm.js";
|
|
6
|
+
import { i as guard, n as defaultExpose, o as respond } from "../respond-8A3EOo61.js";
|
|
7
|
+
import { t as withBetterSupabase } from "../composite-BidYZWZY.js";
|
|
8
8
|
import { r as handoffOf } from "../shared-Ci1g9nl4.js";
|
|
9
9
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
10
10
|
import { StatusError, setResponseHeaders } from "expo-server";
|
|
@@ -101,7 +101,7 @@ function createExpo(betterSupabase, options = {}) {
|
|
|
101
101
|
const resolved = toRequest(incoming);
|
|
102
102
|
const ctx = await server.context(handoff ? withCookie(resolved, handoff.cookie) : resolved, {
|
|
103
103
|
...rest,
|
|
104
|
-
refresh: !handoff && refresh
|
|
104
|
+
refresh: !handoff && refresh
|
|
105
105
|
});
|
|
106
106
|
writeHeaders(ctx);
|
|
107
107
|
if (allow !== void 0 || aal !== void 0 || scopes !== void 0) {
|
|
@@ -147,7 +147,7 @@ function createExpo(betterSupabase, options = {}) {
|
|
|
147
147
|
const { redirectTo, allow, aal, scopes, publicPaths = [] } = middlewareOptions;
|
|
148
148
|
return async (incoming) => {
|
|
149
149
|
const resolved = toRequest(incoming);
|
|
150
|
-
const ctx = await server.context(resolved, { refresh: refreshFor(middlewareOptions.refresh, resolved) ??
|
|
150
|
+
const ctx = await server.context(resolved, { refresh: refreshFor(middlewareOptions.refresh, resolved) ?? true });
|
|
151
151
|
const url = new URL(incoming.url);
|
|
152
152
|
const target = redirectTo === void 0 ? void 0 : new URL(redirectTo, url);
|
|
153
153
|
if (!target || under(url.pathname, target.pathname) || publicPaths.some((path) => under(url.pathname, path)) || !guard(ctx.auth, allow, aal, scopes)) {
|