better-supabase 0.34.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-Don-aNOB.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-DpVtxuKM.d.ts → authorization-2Rv1AJQJ.d.ts} +151 -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/{automations-Bw5cX7oj.js → automations-D4QTP8nI.js} +2 -1
- 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-BA05aoY9.d.ts → bind-C2XvMlfg.d.ts} +7 -7
- package/dist/{block-env-UX42PHLP.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-Bre1zjau.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 +52 -15
- package/dist/blocks/catalog/index.js +53 -18
- 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/deals/index.js +1 -1
- 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 +30 -10
- package/dist/blocks/invoices/index.js +28 -9
- 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 +112 -18
- 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/time-tracking/index.js +1 -1
- 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-DoEtJhZG.js → add-D2CH8t_B.js} +2 -2
- package/dist/cli/add-De73Ghlh.js +1 -0
- package/dist/cli/{add-THXE7juv.js → add-Duf1-19E.js} +16 -14
- package/dist/cli/{agent-59XWXsRi.js → agent-Tqq3MAqx.js} +26 -1
- package/dist/cli/{app-table-files-BqLd5TuX.js → app-table-files-ha8X0rRE.js} +2 -2
- package/dist/cli/app-tables-BIyQcsHH.js +42 -0
- package/dist/cli/{backfill-D-2W0fNT.js → backfill-CLgA6-ll.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-BVU_FoLo.js → blocks-9AeouX4h.js} +2 -2
- package/dist/cli/{blocks-XwUHeyUH.js → blocks-BVB1fMMj.js} +1 -1
- package/dist/cli/{cache-D4nwCBXc.js → cache-aMk9vF1_.js} +1 -1
- package/dist/cli/{codemod-Dh4lf_k4.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-CwFH_PEn.js → content-mapper-CEtdbshU.js} +2 -2
- package/dist/cli/{db-Diy1OebO.js → db-CeiQzhPq.js} +2 -2
- package/dist/cli/{doctor-CyAMbZ_s.js → doctor-DaOUWfRN.js} +391 -54
- package/dist/cli/env-BfWbheiC.js +1 -0
- package/dist/cli/{env-BAJn6wCA.js → env-DVV10l_r.js} +1 -1
- package/dist/cli/{gen-EAUNnUY7.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-BRmmmGHJ.js → init-Xit9Hnbb.js} +9 -9
- package/dist/cli/{keys-CxajkV_7.js → keys-DJTN2Avl.js} +1 -1
- package/dist/cli/{live-CV9mn-xC.js → live-CuMpyRjF.js} +2 -2
- package/dist/cli/{mcp-CnaxcLWa.js → mcp-C7d4j5cq.js} +4 -4
- package/dist/cli/{metadata-CFQGBR5E.js → metadata-D2YvkY2D.js} +3 -3
- package/dist/cli/{migrate-z5oHDGNs.js → migrate-BCXxyTKt.js} +2 -2
- package/dist/cli/{migration-safety-BtAPMEZa.js → migration-safety-DfwTOBQ4.js} +1 -1
- package/dist/cli/{migrations-CNa62JSi.js → migrations-nomh4TBo.js} +2 -2
- package/dist/cli/{module-migration-CKJ8kRm1.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-BgoAWeRT.js → powersync-DB9WZsIv.js} +4 -4
- package/dist/cli/powersync-IBM_v_eJ.js +1 -0
- package/dist/cli/{print-CoqKHoy0.js → print-S6IF5rZm.js} +2 -2
- package/dist/cli/{providers-CfbFxUOQ.js → providers-BDTcal71.js} +1 -1
- package/dist/cli/{prune-workflows-BigCoXLw.js → prune-workflows-Zr2DjByi.js} +3 -3
- package/dist/cli/{remove-C9zwn-Kk.js → remove-CPX5Tg5s.js} +6 -6
- package/dist/cli/{render-DQCU_kBW.js → render-Bp7a7XQ9.js} +18 -4
- package/dist/cli/{run-DOD00FFl.js → run-BclCFEyP.js} +13 -41
- package/dist/cli/{run-dY9uOC3W.js → run-BlVaLnt_.js} +2 -2
- package/dist/cli/{run-CVaBuT18.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-COtj7l3r.js → shared-D60W9NS-.js} +1 -1
- package/dist/cli/{skills-jZThjL3B.js → skills-DH-yPDny.js} +1 -1
- package/dist/cli/{snapshot-BvlEmTB0.js → snapshot-C3_eQUgY.js} +2 -2
- package/dist/cli/{source-BhZRCitG.js → source-Bk6XwIAK.js} +1 -1
- package/dist/cli/{spec-Bo2wIViH.js → spec-BDTpcBns.js} +1 -1
- package/dist/cli/{spec-DsMWuJLv.js → spec-C8ydQwZC.js} +3 -3
- package/dist/cli/{sql-layout-CA7xgRjR.js → sql-layout-DVQ20UMi.js} +3 -3
- package/dist/cli/{stack-147NqctC.js → stack-CmhSfY5V.js} +3 -2
- package/dist/cli/{sync-D9xSGdzO.js → sync-D-WO4Yvl.js} +4 -4
- package/dist/cli/{table-D9FbJS8h.js → table-k5OABwy3.js} +1 -1
- package/dist/cli/{upgrade-Ykf0LLEB.js → upgrade-DGe5Pv6v.js} +5 -5
- package/dist/cli/{upgrade-XK_CQKVJ.js → upgrade-XdhMuHAu.js} +3 -3
- package/dist/cli/{version-Dfdz7KSh.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-Bu6pwqcO.js → config-BKxjItQ-.js} +3 -3
- package/dist/{config-MDRA2sre.js → config-BrRlSxhx.js} +1 -1
- package/dist/{connectors-Cf2LeAuZ.d.ts → connectors-CrLRW4Ol.d.ts} +4 -4
- package/dist/{context-BGC0J3t9.d.ts → context-yfOlyAqb.d.ts} +3 -3
- package/dist/contract/index.d.ts +9 -9
- package/dist/{controller-CQrkLoRX.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-BOWTZaRf.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-DxPZYw2m.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-CJB50jzQ.d.ts → index-6H-8Ib1w.d.ts} +6 -6
- package/dist/{index-M1izbwbN.d.ts → index-Ag-T51Jl.d.ts} +1 -1
- package/dist/{index-DNAkWDXc.d.ts → index-BUluRi0b.d.ts} +6 -6
- package/dist/{index-QTZIopQj.d.ts → index-C78VPlXW.d.ts} +1 -1
- package/dist/{index-D18su_r5.d.ts → index-CY612vAg.d.ts} +10 -5
- package/dist/{index-BfU0KR0X.d.ts → index-CnzGRpeH.d.ts} +5 -5
- package/dist/{index-BIAtapnD.d.ts → index-Dbd1E5Au.d.ts} +5 -5
- package/dist/{index-Bhkag9ZE.d.ts → index-Dv6lfL5p.d.ts} +14 -14
- package/dist/{index-8w4OB5En.d.ts → index-F6lsRlsr.d.ts} +1 -1
- package/dist/{index-CeUwyJ3Z.d.ts → index-kkZwp5M1.d.ts} +6 -6
- package/dist/{index-Bz0WLuh_.d.ts → index-lMApFSAd.d.ts} +5 -5
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/{instances-D31jrmKh.js → instances-xQ2lupVE.js} +246 -12
- 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-BG6prEnh.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-DjFbIRgV.js → options-DjdxZgHi.js} +2 -1
- package/dist/{options-CgMiQGOF.js → options-DqmTs2nv.js} +4 -1
- package/dist/{options-C-NFS6e3.js → options-DxgZ8tVc.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-Sq4bYbf5.js → options-X61tvckX.js} +4 -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-CoHsUtZS.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-XvgCe7ey.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-om2rbdYw.js → preset-BvHNleCo.js} +2 -2
- package/dist/{project-B7nqCzn5.js → project-CBvowdKY.js} +5 -5
- package/dist/{provider-BI0KC4u5.d.ts → provider-bIAzxVMB.d.ts} +1 -1
- package/dist/{push-token-kcc04ZaS.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-DYYyh35i.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-DdtukoIm.js → sql-BChN3Hxv.js} +7594 -2269
- 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-DkKbvK5T.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-B6zuexk7.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-BvHw2cCS.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-YYSVJGDY.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 +162 -0
- package/schemas/doctor-report-v1.json +4 -0
- package/skills/better-supabase-auth/SKILL.md +45 -11
- package/dist/cli/add-C13ZqJ_N.js +0 -1
- package/dist/cli/env-UN6PJFX6.js +0 -1
- package/dist/cli/powersync-DoCruiOt.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
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
|
+
import { et as RecordRef } from "./types-BzIYSSWK.js";
|
|
3
4
|
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 { n as Embedder } from "./knowledge-
|
|
8
|
-
type MemoryScope = "user" | "agent" | "chat" | "project" | "organization";
|
|
5
|
+
import { r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
|
|
6
|
+
import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
|
|
7
|
+
import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
|
|
8
|
+
import { n as Embedder } from "./knowledge-DWXAxvkN.js";
|
|
9
|
+
type MemoryScope = "user" | "agent" | "chat" | "project" | "organization" | "record";
|
|
9
10
|
type MemoryKind = "core" | "archival";
|
|
10
11
|
/**
|
|
11
12
|
* Whose memory a call reads or changes. The default is the caller's own memory;
|
|
12
|
-
* `organization` memory
|
|
13
|
-
* scope takes a `projectId` (an ai-chat project) and
|
|
13
|
+
* `organization` and `record` memory are shared and only admins change them.
|
|
14
|
+
* The `project` scope takes a `projectId` (an ai-chat project) and the `record`
|
|
15
|
+
* scope a `subject` (any registered record); no other scope takes either. The
|
|
14
16
|
* service role names the user in `ownerId`.
|
|
15
17
|
*/
|
|
16
18
|
interface MemoryNamespace {
|
|
@@ -18,8 +20,19 @@ interface MemoryNamespace {
|
|
|
18
20
|
readonly agentId?: string;
|
|
19
21
|
readonly chatId?: string;
|
|
20
22
|
readonly projectId?: string;
|
|
23
|
+
readonly subject?: RecordRef;
|
|
21
24
|
readonly ownerId?: string;
|
|
22
25
|
}
|
|
26
|
+
/** What `archival.upsert` and `saveExtracted` store next to a fact. */
|
|
27
|
+
interface MemorySaveOptions {
|
|
28
|
+
readonly sourceMessageId?: string;
|
|
29
|
+
/** A lowercase slug, such as `preference` or `fact`. */
|
|
30
|
+
readonly category?: string;
|
|
31
|
+
/** From 0 to 1; a search weighs each fact's score by it. Default 1. */
|
|
32
|
+
readonly confidence?: number;
|
|
33
|
+
/** When the fact stops showing up in lists and searches. */
|
|
34
|
+
readonly expiresAt?: Temporal.Instant;
|
|
35
|
+
}
|
|
23
36
|
interface MemoryRecord {
|
|
24
37
|
readonly id: string;
|
|
25
38
|
readonly organizationId: string;
|
|
@@ -28,6 +41,8 @@ interface MemoryRecord {
|
|
|
28
41
|
readonly agentId: string | undefined;
|
|
29
42
|
readonly chatId: string | undefined;
|
|
30
43
|
readonly projectId: string | undefined;
|
|
44
|
+
/** The record of `record` memory. */
|
|
45
|
+
readonly subject: RecordRef | undefined;
|
|
31
46
|
readonly kind: MemoryKind;
|
|
32
47
|
/** A path under `/memories`, for core memory. */
|
|
33
48
|
readonly path: string | undefined;
|
|
@@ -35,6 +50,12 @@ interface MemoryRecord {
|
|
|
35
50
|
readonly version: number;
|
|
36
51
|
readonly embeddingModel: string | undefined;
|
|
37
52
|
readonly sourceMessageId: string | undefined;
|
|
53
|
+
readonly category: string | undefined;
|
|
54
|
+
readonly confidence: number | undefined;
|
|
55
|
+
readonly expiresAt: Temporal.Instant | undefined;
|
|
56
|
+
/** How many searches returned the fact. */
|
|
57
|
+
readonly useCount: number;
|
|
58
|
+
readonly lastUsedAt: Temporal.Instant | undefined;
|
|
38
59
|
readonly createdAt: Temporal.Instant;
|
|
39
60
|
readonly updatedAt: Temporal.Instant;
|
|
40
61
|
}
|
|
@@ -140,9 +161,7 @@ interface Memory {
|
|
|
140
161
|
/** Runs a memory tool command and returns the text for the model. */
|
|
141
162
|
run(organizationId: string, command: MemoryCommand, ns?: MemoryNamespace): AsyncResult<string>;
|
|
142
163
|
readonly archival: {
|
|
143
|
-
upsert(organizationId: string, content: string, ns?: MemoryNamespace, options?:
|
|
144
|
-
readonly sourceMessageId?: string;
|
|
145
|
-
}): AsyncResult<MemoryRecord>;
|
|
164
|
+
upsert(organizationId: string, content: string, ns?: MemoryNamespace, options?: MemorySaveOptions): AsyncResult<MemoryRecord>;
|
|
146
165
|
search(organizationId: string, query: string, ns?: MemoryNamespace, options?: {
|
|
147
166
|
readonly k?: number;
|
|
148
167
|
readonly signal?: AbortSignal;
|
|
@@ -150,10 +169,23 @@ interface Memory {
|
|
|
150
169
|
list(organizationId: string, ns?: MemoryNamespace, options?: {
|
|
151
170
|
readonly limit?: number;
|
|
152
171
|
}): AsyncResult<readonly MemoryRecord[]>;
|
|
153
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* Deletes a memory, or marks it replaced by `supersededBy`. A deleted
|
|
174
|
+
* memory stays restorable until `purge` removes it.
|
|
175
|
+
*/
|
|
154
176
|
forget(memoryId: string, options?: {
|
|
155
177
|
readonly supersededBy?: string;
|
|
156
178
|
}): AsyncResult<boolean>;
|
|
179
|
+
/** Restores a deleted memory. False when there is none to restore. */
|
|
180
|
+
restore(memoryId: string): AsyncResult<boolean>;
|
|
181
|
+
/**
|
|
182
|
+
* Removes memories deleted more than `retentionDays` ago (default 30) and
|
|
183
|
+
* expired ones, at most `batch` (service role). Returns how many.
|
|
184
|
+
*/
|
|
185
|
+
purge(options?: {
|
|
186
|
+
readonly retentionDays?: number;
|
|
187
|
+
readonly batch?: number;
|
|
188
|
+
}): AsyncResult<number>;
|
|
157
189
|
};
|
|
158
190
|
readonly recall: {
|
|
159
191
|
/** Embeds a message so later chats can recall it (service role). */
|
|
@@ -179,9 +211,7 @@ interface Memory {
|
|
|
179
211
|
*/
|
|
180
212
|
render(organizationId: string, ns?: MemoryNamespace): AsyncResult<string>;
|
|
181
213
|
/** Saves facts that aren't already remembered. Returns the new ones. */
|
|
182
|
-
saveExtracted(organizationId: string, facts: readonly string[], ns?: MemoryNamespace, options?:
|
|
183
|
-
readonly sourceMessageId?: string;
|
|
184
|
-
}): AsyncResult<readonly MemoryRecord[]>;
|
|
214
|
+
saveExtracted(organizationId: string, facts: readonly string[], ns?: MemoryNamespace, options?: MemorySaveOptions): AsyncResult<readonly MemoryRecord[]>;
|
|
185
215
|
/**
|
|
186
216
|
* Embeds memories edited since their last embedding (service role). Returns
|
|
187
217
|
* how many.
|
|
@@ -212,4 +242,4 @@ interface MemoryDocument {
|
|
|
212
242
|
/** Opaque; pass it back as `expectedVersion`. */
|
|
213
243
|
readonly version: string;
|
|
214
244
|
}
|
|
215
|
-
export { MemoryHooks as a, MemoryOptions as c,
|
|
245
|
+
export { MemoryHooks as a, MemoryOptions as c, MemoryScope as d, MemoryView as f, MemoryHit as i, MemoryRecord as l, MemoryCommand as n, MemoryKind as o, RecalledMessage as p, MemoryDocument as r, MemoryNamespace as s, Memory as t, MemorySaveOptions as u };
|
|
@@ -3,14 +3,31 @@ 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
5
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
6
|
-
import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-
|
|
7
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
8
|
-
import { t as BlockTransport } from "./block-transport-
|
|
9
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
10
|
-
import { h as FilterQuery, l as FilterFieldType } from "./filter-query-
|
|
11
|
-
import { f as WorkflowStarter, g as Workflows, p as WorkflowSubject, r as WorkflowRunMode, s as WorkflowSchedule } from "./workflows-
|
|
12
|
-
import { i as AuthorizationHooks } from "./authorization-hooks-
|
|
13
|
-
|
|
6
|
+
import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-bIAzxVMB.js";
|
|
7
|
+
import { 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
|
+
import { h as FilterQuery, l as FilterFieldType } from "./filter-query-Xj40B5KT.js";
|
|
11
|
+
import { f as WorkflowStarter, g as Workflows, p as WorkflowSubject, r as WorkflowRunMode, s as WorkflowSchedule } from "./workflows-BI4yKqFh.js";
|
|
12
|
+
import { i as AuthorizationHooks } from "./authorization-hooks-C0GfMvFm.js";
|
|
13
|
+
/** The node kinds every graph may use. */
|
|
14
|
+
type WorkflowBuiltinNodeKind = "trigger" | "step" | "sleep" | "approval" | "condition";
|
|
15
|
+
/** A built-in kind, or the app's own kind from `defineNodeKind`. */
|
|
16
|
+
type WorkflowNodeKind = WorkflowBuiltinNodeKind | (string & {});
|
|
17
|
+
declare const WORKFLOW_BUILTIN_NODE_KINDS: readonly WorkflowBuiltinNodeKind[];
|
|
18
|
+
/** Whether `kind` is one of the built-in node kinds. */
|
|
19
|
+
declare const isBuiltinNodeKind: (kind: string) => kind is WorkflowBuiltinNodeKind;
|
|
20
|
+
/**
|
|
21
|
+
* What validation needs to know about an app's own node kind: `defineNodeKind`
|
|
22
|
+
* returns it.
|
|
23
|
+
*/
|
|
24
|
+
interface WorkflowNodeKindInfo {
|
|
25
|
+
readonly kind: string;
|
|
26
|
+
/** Whether its edges take a `true` or `false` branch on its output. */
|
|
27
|
+
readonly branches?: boolean;
|
|
28
|
+
/** Problems with a node of this kind, as messages; empty when it may run. */
|
|
29
|
+
readonly validate?: (node: WorkflowGraphNode) => readonly string[];
|
|
30
|
+
}
|
|
14
31
|
type WorkflowConditionOperator = "equals" | "notEquals" | "exists" | "truthy" | "greaterThan" | "lessThan" | "contains";
|
|
15
32
|
/**
|
|
16
33
|
* A test on the run's data. `path` starts at `input` (the trigger's input),
|
|
@@ -108,12 +125,24 @@ declare const approved: (payload: unknown) => boolean;
|
|
|
108
125
|
* graph's order among independent nodes; `undefined` when edges form a cycle.
|
|
109
126
|
*/
|
|
110
127
|
declare function topologicalOrder(graph: WorkflowGraph): readonly WorkflowGraphNode[] | undefined;
|
|
128
|
+
interface ValidateGraphOptions {
|
|
129
|
+
/**
|
|
130
|
+
* The step library's names: every step node must use one (`publish` checks it
|
|
131
|
+
* again in SQL).
|
|
132
|
+
*/
|
|
133
|
+
readonly steps?: Iterable<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The app's own node kinds (`defineNodeKind`); a node of a kind that is
|
|
136
|
+
* neither built in nor here is an error.
|
|
137
|
+
*/
|
|
138
|
+
readonly nodes?: Iterable<WorkflowNodeKindInfo>;
|
|
139
|
+
}
|
|
111
140
|
/**
|
|
112
|
-
* Problems that keep `graph` from running, as messages; empty when it can.
|
|
113
|
-
*
|
|
114
|
-
*
|
|
141
|
+
* Problems that keep `graph` from running, as messages; empty when it can.
|
|
142
|
+
* `options.steps` checks step nodes against the library and `options.nodes`
|
|
143
|
+
* lists the app's own node kinds.
|
|
115
144
|
*/
|
|
116
|
-
declare function validateGraph(graph: unknown,
|
|
145
|
+
declare function validateGraph(graph: unknown, options?: ValidateGraphOptions): readonly string[];
|
|
117
146
|
interface WorkflowGraphDiff {
|
|
118
147
|
readonly nodes: {
|
|
119
148
|
readonly added: readonly string[];
|
|
@@ -131,6 +160,46 @@ interface WorkflowGraphDiff {
|
|
|
131
160
|
}
|
|
132
161
|
/** What changed from `before` to `after`, by node id and by edge ends. */
|
|
133
162
|
declare function diffGraphs(before: WorkflowGraph, after: WorkflowGraph): WorkflowGraphDiff;
|
|
163
|
+
/**
|
|
164
|
+
* An app's own node kind. The graph stores its nodes as `{ kind, config }`; the
|
|
165
|
+
* engine runs each one as a step (`GraphRuntime.node`, or graphStarter's
|
|
166
|
+
* `nodes`), and `nodeKinds.sync()` writes it to `workflow_node_kinds` so
|
|
167
|
+
* `publish` accepts it.
|
|
168
|
+
*/
|
|
169
|
+
interface WorkflowNodeKindDefinition<Kind extends string = string> extends WorkflowNodeKindInfo {
|
|
170
|
+
readonly apiVersion: 1;
|
|
171
|
+
readonly kind: Kind;
|
|
172
|
+
readonly title: string;
|
|
173
|
+
readonly description?: string;
|
|
174
|
+
/** The JSON Schema of the node's `config`, for the editor's inspector. */
|
|
175
|
+
readonly configSchema?: Readonly<Record<string, unknown>>;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Defines an app's own node kind. `kind` is 1 to 63 lowercase letters, digits,
|
|
179
|
+
* `_`, `.` or `-`, starting with a letter, and never a built-in kind. Throws
|
|
180
|
+
* when it isn't.
|
|
181
|
+
*
|
|
182
|
+
* ```ts
|
|
183
|
+
* export const notify = defineNodeKind({
|
|
184
|
+
* apiVersion: 1,
|
|
185
|
+
* kind: "notify",
|
|
186
|
+
* title: "Notify",
|
|
187
|
+
* validate: (node) =>
|
|
188
|
+
* typeof node.config?.["channel"] === "string"
|
|
189
|
+
* ? []
|
|
190
|
+
* : [`Node ${node.id} names no channel`],
|
|
191
|
+
* });
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
declare function defineNodeKind<const Kind extends string>(definition: WorkflowNodeKindDefinition<Kind>): WorkflowNodeKindDefinition<Kind>;
|
|
195
|
+
/** A node kind as `workflow_node_kinds_list` returns it. */
|
|
196
|
+
interface WorkflowNodeKindRow {
|
|
197
|
+
readonly kind: string;
|
|
198
|
+
readonly title: string;
|
|
199
|
+
readonly description: string | undefined;
|
|
200
|
+
readonly branches: boolean;
|
|
201
|
+
readonly configSchema: Readonly<Record<string, unknown>>;
|
|
202
|
+
}
|
|
134
203
|
type WorkflowVersionStatus = "draft" | "published" | "archived";
|
|
135
204
|
type WorkflowVersionOwner = "user" | "organization";
|
|
136
205
|
type WorkflowTriggerKind = "manual" | "webhook" | "schedule" | "form" | "chat";
|
|
@@ -139,6 +208,11 @@ type WorkflowTriggerKind = "manual" | "webhook" | "schedule" | "form" | "chat";
|
|
|
139
208
|
* every organization can run it, fork it or opt out of it.
|
|
140
209
|
*/
|
|
141
210
|
type WorkflowDefinitionScope = "tenant" | "system";
|
|
211
|
+
/**
|
|
212
|
+
* What a definition is for: `lifecycle` owns a record's status path, one per
|
|
213
|
+
* record; `automation` reacts to events.
|
|
214
|
+
*/
|
|
215
|
+
type WorkflowPurpose = "automation" | "lifecycle";
|
|
142
216
|
/** Who a definition grant is for: a user id, a team id or an organization role. */
|
|
143
217
|
type WorkflowGrantPrincipal = "user" | "team" | "role";
|
|
144
218
|
/** `edit` implies `run`. */
|
|
@@ -169,6 +243,12 @@ interface WorkflowDefinition<F extends object = Record<never, never>> {
|
|
|
169
243
|
* workflows still sees it.
|
|
170
244
|
*/
|
|
171
245
|
readonly restricted: boolean;
|
|
246
|
+
readonly purpose: WorkflowPurpose;
|
|
247
|
+
/**
|
|
248
|
+
* The tenant's default lifecycle for its subject types; a system default
|
|
249
|
+
* applies to every tenant that didn't opt out.
|
|
250
|
+
*/
|
|
251
|
+
readonly isDefault: boolean;
|
|
172
252
|
/** The published version's number (lists only). */
|
|
173
253
|
readonly published?: number | undefined;
|
|
174
254
|
/** Whether a draft is open (lists only). */
|
|
@@ -185,6 +265,14 @@ interface WorkflowDefinition<F extends object = Record<never, never>> {
|
|
|
185
265
|
/** The extra columns, keyed by database name. */
|
|
186
266
|
readonly fields: ExtraFields<F>;
|
|
187
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* The default definition `definitions.resolve` picked, with its published
|
|
270
|
+
* version.
|
|
271
|
+
*/
|
|
272
|
+
interface WorkflowResolved<F extends object = Record<never, never>> {
|
|
273
|
+
readonly definition: WorkflowDefinition<F>;
|
|
274
|
+
readonly version: WorkflowVersion;
|
|
275
|
+
}
|
|
188
276
|
interface WorkflowDefinitionGrant {
|
|
189
277
|
readonly id: string;
|
|
190
278
|
readonly definition: string;
|
|
@@ -361,6 +449,8 @@ interface BuilderOptions<S extends StandardSchemaV1 | undefined = undefined> ext
|
|
|
361
449
|
readonly mappers?: readonly ErrorMapper[];
|
|
362
450
|
/** The steps `steps.sync()` writes to the library. */
|
|
363
451
|
readonly steps?: readonly WorkflowStepInfo[];
|
|
452
|
+
/** The app's own node kinds `nodeKinds.sync()` writes to the registry. */
|
|
453
|
+
readonly nodes?: readonly WorkflowNodeKindDefinition[];
|
|
364
454
|
/**
|
|
365
455
|
* Runs on publish and fails it when it throws; the result is stored through
|
|
366
456
|
* `service`. `better-supabase/workflow-sdk/builder` exports `compileGraph`.
|
|
@@ -514,6 +604,7 @@ type WorkflowBuilderHooks<F extends object = Record<never, never>> = BlockHooks<
|
|
|
514
604
|
readonly triggers?: BlockHooks<WorkflowEditor<F>["triggers"]>;
|
|
515
605
|
readonly credentials?: BlockHooks<WorkflowEditor<F>["credentials"]>;
|
|
516
606
|
readonly steps?: BlockHooks<WorkflowEditor<F>["steps"]>;
|
|
607
|
+
readonly nodeKinds?: BlockHooks<WorkflowEditor<F>["nodeKinds"]>;
|
|
517
608
|
readonly nodeRuns?: BlockHooks<WorkflowEditor<F>["nodeRuns"]>;
|
|
518
609
|
readonly alerts?: BlockHooks<WorkflowEditor<F>["alerts"]>;
|
|
519
610
|
};
|
|
@@ -549,6 +640,24 @@ interface WorkflowEditor<F extends object = Record<never, never>> {
|
|
|
549
640
|
readonly definition: string;
|
|
550
641
|
readonly optedOut?: boolean;
|
|
551
642
|
}): AsyncResult<boolean>;
|
|
643
|
+
/**
|
|
644
|
+
* Sets what the definition is for and whether it is its tenant's default
|
|
645
|
+
* (`workflow.admin`; the service role for a system one). Only a lifecycle
|
|
646
|
+
* definition, which names its subject types, is a default; marking one
|
|
647
|
+
* clears the tenant's other default for those subject types.
|
|
648
|
+
*/
|
|
649
|
+
setPurpose(id: string, purpose: WorkflowPurpose, options?: {
|
|
650
|
+
readonly isDefault?: boolean;
|
|
651
|
+
}): AsyncResult<WorkflowDefinition<F>>;
|
|
652
|
+
/**
|
|
653
|
+
* The default definition for `purpose` (default `lifecycle`) in `tenant`,
|
|
654
|
+
* with its published version: the tenant's own first, then a system one it
|
|
655
|
+
* didn't opt out of. `subjectType` picks a default that names it.
|
|
656
|
+
*/
|
|
657
|
+
resolve(tenant: string, options?: {
|
|
658
|
+
readonly purpose?: WorkflowPurpose;
|
|
659
|
+
readonly subjectType?: string;
|
|
660
|
+
}): AsyncResult<WorkflowResolved<F> | undefined>;
|
|
552
661
|
readonly grants: {
|
|
553
662
|
/** Grants run or edit on a restricted definition (`workflow.admin`). */
|
|
554
663
|
add(input: GrantInput): AsyncResult<boolean>;
|
|
@@ -639,6 +748,12 @@ interface WorkflowEditor<F extends object = Record<never, never>> {
|
|
|
639
748
|
sync(steps?: readonly WorkflowStepInfo[]): AsyncResult<number>;
|
|
640
749
|
list(): AsyncResult<readonly WorkflowStepInfo[]>;
|
|
641
750
|
};
|
|
751
|
+
/** The registry of the app's own node kinds (`defineNodeKind`). */
|
|
752
|
+
readonly nodeKinds: {
|
|
753
|
+
/** Replaces the registry with `kinds` (service role). */
|
|
754
|
+
sync(kinds?: readonly WorkflowNodeKindDefinition[]): AsyncResult<number>;
|
|
755
|
+
list(): AsyncResult<readonly WorkflowNodeKindRow[]>;
|
|
756
|
+
};
|
|
642
757
|
readonly nodeRuns: {
|
|
643
758
|
/** Records a node's status and pings `workflow-run:<id>` (service role). */
|
|
644
759
|
record(input: NodeRunRecord): AsyncResult<boolean>;
|
|
@@ -657,4 +772,4 @@ interface WorkflowEditor<F extends object = Record<never, never>> {
|
|
|
657
772
|
}): AsyncResult<number>;
|
|
658
773
|
};
|
|
659
774
|
}
|
|
660
|
-
export {
|
|
775
|
+
export { diffGraphs as $, WorkflowTriggerKind as A, WorkflowBuiltinNodeKind as B, WorkflowGrantPrincipal as C, WorkflowResolved as D, WorkflowPurpose as E, WorkflowNodeKindRow as F, WorkflowGraph as G, WorkflowConditionOperator as H, defineNodeKind as I, WorkflowGraphNode as J, WorkflowGraphDiff as K, GraphScope as L, WorkflowVersionOwner as M, WorkflowVersionStatus as N, WorkflowStepInfo as O, WorkflowNodeKindDefinition as P, approved as Q, ValidateGraphOptions as R, WorkflowGrantAction as S, WorkflowNodeRunStatus as T, WorkflowFilterCondition as U, WorkflowCondition as V, WorkflowFilterField as W, WorkflowNodeKind as X, WorkflowNodeCondition as Y, WorkflowNodeKindInfo as Z, WorkflowCredential as _, CredentialInput as a, topologicalOrder as at, WorkflowDefinitionScope as b, GraphCompiler as c, RunInput as d, durationMs as et, TestRunInput as f, WorkflowBuilderHooks as g, WorkflowAlert as h, BuilderStarter as i, matchesFilter as it, WorkflowVersion as j, WorkflowTrigger as k, NodeRunRecord as l, VersionSaveOptions as m, BuilderOptions as n, filterConditionOf as nt, DefinitionInput as o, validateGraph as ot, TriggerInput as p, WorkflowGraphEdge as q, BuilderStartCall as r, isBuiltinNodeKind as rt, GrantInput as s, AlertInput as t, evaluateCondition as tt, PublishOptions as u, WorkflowDefinition as v, WorkflowNodeRun as w, WorkflowEditor as x, WorkflowDefinitionGrant as y, WORKFLOW_BUILTIN_NODE_KINDS as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _r as AppColumnFormat, br as AppOnDeleteAction, hr as AppColumnAccess, kr as AppTableVersions, vr as AppColumnType, xi as Preset } from "./context-
|
|
2
|
-
import { k as DesignErrorCode } from "./index-
|
|
1
|
+
import { _r as AppColumnFormat, br as AppOnDeleteAction, hr as AppColumnAccess, kr as AppTableVersions, vr as AppColumnType, xi as Preset } from "./context-yfOlyAqb.js";
|
|
2
|
+
import { k as DesignErrorCode } from "./index-C78VPlXW.js";
|
|
3
3
|
/** Where in the project pipeline an issue came from. */
|
|
4
4
|
type IssueSource = "design" | "rules" | "sql" | "verifier" | "plan";
|
|
5
5
|
type IssueSeverity = "error" | "warning" | "info";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { o as Message } from "./messaging-
|
|
2
|
+
import { o as Message } from "./messaging-Bfe4p9Pm.js";
|
|
3
3
|
/** The channels an inbox can sit on. */
|
|
4
4
|
type InboxChannel = "in_app" | "email" | "slack" | "teams" | "discord" | "telegram" | "whatsapp" | "messenger" | "instagram" | "sms" | "github" | "linear" | "other";
|
|
5
5
|
/** `bot`: the bot answers; `human`: staff answer; `paused`: nobody answers. */
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { i as CredentialRef, r as CredentialProvider } from "./provider-
|
|
5
|
-
import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-
|
|
6
|
-
import { t as BlockTransport } from "./block-transport-
|
|
7
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
4
|
+
import { i as CredentialRef, r as CredentialProvider } from "./provider-bIAzxVMB.js";
|
|
5
|
+
import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-BNtM1tqy.js";
|
|
6
|
+
import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
|
|
7
|
+
import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
|
|
8
8
|
/**
|
|
9
9
|
* A tenant's own key for a provider. The key itself stays in the credential
|
|
10
10
|
* provider.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
2
2
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
3
|
-
import { t as BlockTransport } from "./block-transport-
|
|
4
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
3
|
+
import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
|
|
4
|
+
import { n as BlockHooks } from "./block-hooks-CtMsgLQr.js";
|
|
5
5
|
/** One call that reverses part of a change. */
|
|
6
6
|
interface UndoCall {
|
|
7
7
|
readonly fn: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
3
3
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
4
|
-
import { i as CursorPageOptions, n as BlockOptions } from "./block-helpers-
|
|
5
|
-
import { t as BlockTransport } from "./block-transport-
|
|
6
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
7
|
-
import { _ as JobHandler } from "./types-
|
|
4
|
+
import { i as CursorPageOptions, n as BlockOptions } 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 { _ as JobHandler } from "./types-BdhE7I8Z.js";
|
|
8
8
|
import { n as StripeSource } from "./stripe-Bl-sjnl6.js";
|
|
9
9
|
interface UsageOptions extends BlockOptions {
|
|
10
10
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as ErrorMapper, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { c as SetCredentialOptions, i as CredentialRef, r as CredentialProvider } from "./provider-
|
|
3
|
-
import { t as BlockTransport } from "./block-transport-
|
|
2
|
+
import { c as SetCredentialOptions, i as CredentialRef, r as CredentialProvider } from "./provider-bIAzxVMB.js";
|
|
3
|
+
import { t as BlockTransport } from "./block-transport-CDmOUuLZ.js";
|
|
4
4
|
/** How a request the third party sends is signed with the stored secret. */
|
|
5
5
|
type VaultInboundScheme = "standard-webhooks" | "hmac-sha256" | "shared-secret";
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as Result, t as AsyncResult } from "../result-DTOQRyGY.js";
|
|
2
|
-
import { a as CredentialSubject, i as CredentialRef, o as CredentialToken, r as CredentialProvider, s as GetTokenOptions } from "../provider-
|
|
2
|
+
import { a as CredentialSubject, i as CredentialRef, o as CredentialToken, r as CredentialProvider, s as GetTokenOptions } from "../provider-bIAzxVMB.js";
|
|
3
3
|
/** An RFC 9396 authorization detail; `type` names its kind. */
|
|
4
4
|
interface VercelConnectAuthorizationDetail {
|
|
5
5
|
type: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError, t as AsyncResult } from "../result-DTOQRyGY.js";
|
|
3
|
-
import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-
|
|
4
|
-
import { i as AiSandboxes, t as AiSandbox } from "../sandboxes-
|
|
3
|
+
import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-bIAzxVMB.js";
|
|
4
|
+
import { i as AiSandboxes, t as AiSandbox } from "../sandboxes-BF9RxxCU.js";
|
|
5
5
|
import { Experimental_SandboxSession } from "ai";
|
|
6
6
|
/** The `provider` an adapter's rows carry in `ai_sandboxes`. */
|
|
7
7
|
export declare const VERCEL_SANDBOX_PROVIDER = "vercel";
|
|
@@ -4,7 +4,7 @@ import { n as temporalMissing } from "./temporal-required-w_2u4EDp.js";
|
|
|
4
4
|
import { a as ok, r as err } from "./result-8xza7w5W.js";
|
|
5
5
|
import { t as toApp } from "./casing-DQzG9ANZ.js";
|
|
6
6
|
import { n as hmacHex, r as timingSafeEqual } from "./hmac-DNcfpmI9.js";
|
|
7
|
-
import { a as unauthorized, n as header, r as replayed, s as verifyWebhook } from "./signatures-
|
|
7
|
+
import { a as unauthorized, n as header, r as replayed, s as verifyWebhook } from "./signatures-DK01D2S7.js";
|
|
8
8
|
// src/blocks/webhooks/verify.ts
|
|
9
9
|
/** Stripe signs with the endpoint secret's UTF-8 bytes, not its base64 decoding. */
|
|
10
10
|
const stripeSignature = hmacHex;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { f as Result } from "./result-DTOQRyGY.js";
|
|
3
|
-
import { O as AnyFunctions,
|
|
4
|
-
import { t as BetterSupabase } from "./define-
|
|
3
|
+
import { O as AnyFunctions, at as Row, dt as TableKey, k as AnyModels } from "./types-BzIYSSWK.js";
|
|
4
|
+
import { t as BetterSupabase } from "./define-BvkaC3Oh.js";
|
|
5
5
|
import { n as VerifyOptions, r as WebhookInput, t as VerifiedWebhook } from "./signatures-jPr9JXyw.js";
|
|
6
6
|
/** The `Stripe-Signature` header for `body`, for tests and local replays. */
|
|
7
7
|
declare function signStripeWebhook(secret: string, body: string, timestamp?: Temporal.Instant): Promise<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as dbError } from "./errors-B7tCfCvX.js";
|
|
2
2
|
import { a as invalidActorError, i as delegationOf, n as actorOf } from "./actor-B5b0i1Fs.js";
|
|
3
3
|
import { r as impersonatorOf } from "./impersonation-D-quM36V.js";
|
|
4
|
-
import { i as issuedAtOf, n as authzVersionOf } from "./snapshot-
|
|
4
|
+
import { i as issuedAtOf, n as authzVersionOf } from "./snapshot-BOA7lkRg.js";
|
|
5
5
|
// src/auth/mfa.ts
|
|
6
6
|
/**
|
|
7
7
|
* The session's assurance level from its claims; anything but `aal2` reads as
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as DbError } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { i as InvalidReason, r as AuthState } from "./resolve
|
|
2
|
+
import { i as InvalidReason, r as AuthState } from "./resolve-BIpQRhvF.js";
|
|
3
3
|
import { a as SessionActor, o as SessionDelegation } from "./actor-DseNR02I.js";
|
|
4
4
|
import { n as Impersonator } from "./impersonation-BOCJcsmS.js";
|
|
5
5
|
import { n as AmrEntry, t as Aal } from "./mfa-CM5r904M.js";
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { b as DbError } from "../result-DTOQRyGY.js";
|
|
2
|
-
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-
|
|
3
|
-
import { mt as QuerySpec } from "../define-
|
|
4
|
-
import { tt as TemplateValues } from "../bucket-
|
|
5
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
7
|
-
import { n as AuthSession } from "../view-
|
|
8
|
-
import { n as Controller } from "../controller-
|
|
9
|
-
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-
|
|
10
|
-
import { n as BlockOptions } from "../block-env-
|
|
2
|
+
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DCw3c6pj.js";
|
|
3
|
+
import { mt as QuerySpec } from "../define-BvkaC3Oh.js";
|
|
4
|
+
import { tt as TemplateValues } from "../bucket-CrsJNHzi.js";
|
|
5
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-x-mrN_Ff.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-C2XvMlfg.js";
|
|
7
|
+
import { n as AuthSession } from "../view-DdDY88SC.js";
|
|
8
|
+
import { n as Controller } from "../controller-CAcLEndc.js";
|
|
9
|
+
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DXZk9Qjt.js";
|
|
10
|
+
import { n as BlockOptions } from "../block-env-BQrtLPyc.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-QSaPsL2P.js";
|
|
12
|
-
import { t as SupportView } from "../support-view-
|
|
12
|
+
import { t as SupportView } from "../support-view-GykHOIQ2.js";
|
|
13
13
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
14
14
|
import { QueryClient } from "@tanstack/query-core";
|
|
15
15
|
import { App, ComputedRef, MaybeRefOrGetter, Ref, ShallowRef } from "vue";
|
package/dist/vue/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clearOnUserChange } from "../user-change-Ngy8z1fZ.js";
|
|
2
|
-
import { a as createActionRunner, c as liveKey, d as shownCount, f as startBroadcast, i as countSource, l as notJoined, m as startLiveQuery, n as assertInvalidateClient, o as joinPresence, p as startLiveCount, r as callerOf, s as keyed, t as NO_COUNT, u as plainCaller } from "../client-
|
|
2
|
+
import { a as createActionRunner, c as liveKey, d as shownCount, f as startBroadcast, i as countSource, l as notJoined, m as startLiveQuery, n as assertInvalidateClient, o as joinPresence, p as startLiveCount, r as callerOf, s as keyed, t as NO_COUNT, u as plainCaller } from "../client-DrejIxsu.js";
|
|
3
3
|
import { t as supportOf } from "../support-view-CvDEgyGY.js";
|
|
4
4
|
import { c as listenToBlockEvents, d as fieldErrorsOf, i as dataTarget, l as blockEnv, n as createDataOne, o as createBlockMutation, s as createBlockQuery, t as createDataList, u as withEnv } from "../data-hooks-BToeAcQ_.js";
|
|
5
5
|
import { computed, getCurrentInstance, getCurrentScope, inject, onMounted, onScopeDispose, provide, readonly, shallowRef, toValue, watch } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-
|
|
1
|
+
import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-x-mrN_Ff.js";
|
|
2
2
|
interface TopicWatch {
|
|
3
3
|
readonly onMessage: (event: string, payload: unknown) => void;
|
|
4
4
|
readonly onRejoin: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { c as WorkflowFn } from "../../workflow-sdk-
|
|
1
|
+
import { G as WorkflowGraph, Z as WorkflowNodeKindInfo, i as BuilderStarter, l as NodeRunRecord } from "../../types-C9XfFGmA.js";
|
|
2
|
+
import { a as GraphStepCall, i as GraphRuntime, n as GraphNodeCall, o as GraphSubject, s as executeGraph, t as GraphApprovalCall } from "../../executor-B-o7QMPp.js";
|
|
3
|
+
import { c as WorkflowFn } from "../../workflow-sdk-D3H10W5h.js";
|
|
4
4
|
import { World } from "@workflow/world";
|
|
5
5
|
/** The env flag the Workflow SDK reads before it starts or runs dynamic source. */
|
|
6
6
|
export declare const DYNAMIC_WORKFLOWS_ENV = "WORKFLOW_EXPERIMENTAL_DYNAMIC_WORKFLOWS";
|
|
@@ -22,6 +22,16 @@ interface CompiledGraph {
|
|
|
22
22
|
* node).
|
|
23
23
|
*/
|
|
24
24
|
readonly aliases: Readonly<Record<string, string>>;
|
|
25
|
+
/**
|
|
26
|
+
* The app's own node kind each `steps.<alias>` call runs, by alias (one alias
|
|
27
|
+
* per node of such a kind).
|
|
28
|
+
*/
|
|
29
|
+
readonly nodeAliases?: Readonly<Record<string, string>>;
|
|
30
|
+
}
|
|
31
|
+
/** What `compileGraph` needs besides the graph. */
|
|
32
|
+
interface CompileGraphOptions {
|
|
33
|
+
/** The app's own node kinds (`defineNodeKind`) the graph may use. */
|
|
34
|
+
readonly nodes?: readonly WorkflowNodeKindInfo[];
|
|
25
35
|
}
|
|
26
36
|
/** The second argument of a compiled or static run. */
|
|
27
37
|
interface GraphRunMeta {
|
|
@@ -54,16 +64,30 @@ interface GraphRunMeta {
|
|
|
54
64
|
* `executeGraph` does. Throws when the graph is invalid or the source is over
|
|
55
65
|
* 128 KiB. Pass it as `compile` to `createWorkflowEditor`.
|
|
56
66
|
*/
|
|
57
|
-
export declare function compileGraph(graph: WorkflowGraph): CompiledGraph;
|
|
67
|
+
export declare function compileGraph(graph: WorkflowGraph, options?: CompileGraphOptions): CompiledGraph;
|
|
58
68
|
/** `value` as a compiled graph, or `undefined` when it isn't one. */
|
|
59
69
|
export declare function compiledGraphOf(value: unknown): CompiledGraph | undefined;
|
|
60
70
|
/** A step a graph can call: a `"use step"` function, or `{ stepId }`. */
|
|
61
71
|
type GraphStep = ((call: GraphStepCall) => Promise<unknown>) | {
|
|
62
72
|
readonly stepId: string;
|
|
63
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* The step that runs nodes of an app's own kind: a `"use step"` function, or `{
|
|
76
|
+
* stepId }`.
|
|
77
|
+
*/
|
|
78
|
+
type GraphNodeStep = ((call: GraphNodeCall) => Promise<unknown>) | {
|
|
79
|
+
readonly stepId: string;
|
|
80
|
+
};
|
|
64
81
|
interface GraphStarterOptions {
|
|
65
82
|
/** The library's step functions by step name; each takes a `GraphStepCall`. */
|
|
66
83
|
readonly steps: Readonly<Record<string, GraphStep>>;
|
|
84
|
+
/** The app's own node kinds (`defineNodeKind`) graphs may use. */
|
|
85
|
+
readonly nodeKinds?: readonly WorkflowNodeKindInfo[];
|
|
86
|
+
/**
|
|
87
|
+
* The steps that run nodes of the app's own kinds, by kind; each takes a
|
|
88
|
+
* `GraphNodeCall`. The static executor passes them as `runtime.node` itself.
|
|
89
|
+
*/
|
|
90
|
+
readonly nodes?: Readonly<Record<string, GraphNodeStep>>;
|
|
67
91
|
/**
|
|
68
92
|
* The static executor: a `"use workflow"` function that calls
|
|
69
93
|
* `executeGraph(graph, input, { ...graphRunFields(meta), step, sleep,
|
|
@@ -125,4 +149,4 @@ interface NodeRunSink {
|
|
|
125
149
|
* ```
|
|
126
150
|
*/
|
|
127
151
|
export declare function nodeRunReporter(sink: NodeRunSink): <T>(call: GraphStepCall, run: () => Promise<T>) => Promise<T>;
|
|
128
|
-
export { type CompiledGraph, type GraphApprovalCall, type GraphRunMeta, type GraphRuntime, type GraphStarterOptions, type GraphStep, type GraphStepCall, type NodeRunSink, executeGraph };
|
|
152
|
+
export { type CompileGraphOptions, type CompiledGraph, type GraphApprovalCall, type GraphNodeCall, type GraphNodeStep, type GraphRunMeta, type GraphRuntime, type GraphStarterOptions, type GraphStep, type GraphStepCall, type NodeRunSink, executeGraph };
|