better-supabase 0.49.0 → 0.51.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/README.md +14 -0
- package/dist/{activities-C2v_Sq4w.d.ts → activities-CL253DEv.d.ts} +2 -2
- package/dist/{adapter-BzeH7ffo.js → adapter-DBO28HF_.js} +1 -1
- package/dist/{agents-Cekdx8Bz.d.ts → agents-C3l31Csq.d.ts} +33 -2
- package/dist/agents-Cf59iYaF.d.ts +290 -0
- package/dist/agents-lkuM-m6i.js +380 -0
- package/dist/{ai-cache-Pchr6Y4y.js → ai-cache-CnmJIQZG.js} +2 -2
- package/dist/{ai-chat-D2o3jqZ5.d.ts → ai-chat-DwVklsNR.d.ts} +88 -7
- package/dist/{ai-files-B2BWwPoj.js → ai-files-CMDsogDg.js} +3 -2
- package/dist/ai-guardrails-Ckbf-cmW.d.ts +216 -0
- package/dist/{ai-schedules-BOiaFIva.d.ts → ai-schedules-D68hvDoZ.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +68 -212
- package/dist/ai-sdk/agents/index.js +103 -300
- package/dist/ai-sdk/batches/index.js +1 -1
- package/dist/ai-sdk/cache/index.js +1 -1
- package/dist/ai-sdk/chat/index.d.ts +2 -2
- package/dist/ai-sdk/chat/index.js +5 -2
- package/dist/ai-sdk/embeddings/index.d.ts +52 -3
- package/dist/ai-sdk/embeddings/index.js +69 -1
- package/dist/ai-sdk/files/index.d.ts +38 -4
- package/dist/ai-sdk/files/index.js +100 -4
- package/dist/ai-sdk/index.d.ts +166 -16
- package/dist/ai-sdk/index.js +394 -21
- package/dist/ai-sdk/mcp/index.d.ts +49 -2
- package/dist/ai-sdk/mcp/index.js +108 -6
- package/dist/ai-sdk/memory/index.d.ts +2 -2
- package/dist/ai-sdk/memory/index.js +7 -2
- package/dist/ai-sdk/react/index.js +2 -2
- package/dist/ai-sdk/react/server.js +1 -1
- package/dist/ai-sdk/workflow/index.d.ts +87 -23
- package/dist/ai-sdk/workflow/index.js +275 -28
- package/dist/ai-sdk/workflow/react/index.d.ts +25 -4
- package/dist/ai-sdk/workflow/react/index.js +71 -16
- package/dist/ai-sdk/workflow/react/server.d.ts +4 -4
- package/dist/{api-CWeCh_j2.d.ts → api-3I8ucZF2.d.ts} +1 -1
- package/dist/{api-DXZh-j0l.js → api-CZGUgEVr.js} +1 -1
- package/dist/{app-tables-D6Na4nwb.d.ts → app-tables-qa0wvhw0.d.ts} +1 -1
- package/dist/{approvals-B-WgN6Mf.d.ts → approvals-C7DjllLP.d.ts} +84 -1
- package/dist/{approvals-CMkvP9kT.js → approvals-CfQuk-lJ.js} +84 -8
- package/dist/{assistant-DcxV_seb.js → assistant-BBN9KJPi.js} +108 -26
- package/dist/{assistant-Dy9zwENt.d.ts → assistant-VF3vhPZo.d.ts} +68 -25
- package/dist/astro/index.js +2 -2
- package/dist/{attachments-gjSYzlsQ.js → attachments-Da24yVTB.js} +4 -4
- package/dist/audit-files/index.js +2 -2
- package/dist/{authorization-N4bh4KQS.d.ts → authorization-fXe0XyzB.d.ts} +1 -1
- package/dist/{automations-Ce0jNNIe.js → automations-BKxKPkhr.js} +2 -2
- package/dist/{automations-CCc5RUw-.js → automations-CkwKi84L.js} +2 -1
- package/dist/{bind-ChYzUApb.d.ts → bind-CimlbjXB.d.ts} +3 -3
- package/dist/{block-authors-CjI5VcQz.js → block-authors-Dt82LpCs.js} +1 -1
- package/dist/{block-env-buLS8m9m.d.ts → block-env-D0JCpFzh.d.ts} +4 -4
- package/dist/{block-helpers-CCl3V9ku.js → block-helpers-DApvw3n9.js} +5 -2
- package/dist/{block-hooks-C2_d17_b.js → block-hooks-mazaapv5.js} +1 -1
- package/dist/{block-subjects-ok-uZ1UU.js → block-subjects-CFDmtXvr.js} +1 -1
- package/dist/{block-subjects-rv7V0R6O.js → block-subjects-D3r2SfCb.js} +10 -10
- package/dist/{block-tables-Pd7nOPv3.d.ts → block-tables-CdXRHb2v.d.ts} +1 -1
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/access-requests/index.js +2 -2
- package/dist/blocks/accounting/index.d.ts +1 -1
- package/dist/blocks/accounting/index.js +3 -3
- package/dist/blocks/acknowledgements/index.d.ts +1 -1
- package/dist/blocks/acknowledgements/index.js +2 -2
- package/dist/blocks/activities/index.d.ts +5 -13
- package/dist/blocks/activities/index.js +3 -3
- package/dist/blocks/advisories/index.d.ts +1 -1
- package/dist/blocks/advisories/index.js +2 -2
- package/dist/blocks/agent-checkout/index.d.ts +1 -1
- package/dist/blocks/agent-checkout/index.js +2 -2
- package/dist/blocks/agents/index.d.ts +4 -4
- package/dist/blocks/agents/index.js +47 -8
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.js +2 -2
- package/dist/blocks/ai-chat/index.d.ts +4 -4
- package/dist/blocks/ai-chat/index.js +76 -8
- package/dist/blocks/ai-evals/index.d.ts +1 -1
- package/dist/blocks/ai-evals/index.js +2 -2
- package/dist/blocks/ai-files/index.d.ts +2 -2
- package/dist/blocks/ai-files/index.js +2 -2
- package/dist/blocks/ai-guardrails/index.d.ts +3 -216
- package/dist/blocks/ai-guardrails/index.js +4 -4
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.js +4 -4
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.js +2 -2
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/announcements/index.js +2 -2
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/api-keys/index.js +2 -2
- package/dist/blocks/appraisals/index.d.ts +1 -1
- package/dist/blocks/appraisals/index.js +2 -2
- package/dist/blocks/approvals/index.d.ts +2 -2
- package/dist/blocks/approvals/index.js +3 -3
- package/dist/blocks/assets/index.d.ts +2 -2
- package/dist/blocks/assets/index.js +3 -3
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/assignment/index.js +3 -3
- package/dist/blocks/attachments/index.d.ts +5 -5
- package/dist/blocks/attachments/index.js +3 -3
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/audit/index.js +2 -2
- package/dist/blocks/automations/index.d.ts +4 -4
- package/dist/blocks/automations/index.js +3 -3
- package/dist/blocks/banking/index.d.ts +1 -1
- package/dist/blocks/banking/index.js +3 -3
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billable-time/index.js +3 -3
- package/dist/blocks/billing/index.d.ts +2 -2
- package/dist/blocks/billing/index.js +2 -2
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bookings/index.js +2 -2
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/bulk/index.js +2 -2
- package/dist/blocks/calendar/index.d.ts +3 -3
- package/dist/blocks/calendar/index.js +1 -1
- package/dist/blocks/care/index.d.ts +27 -27
- package/dist/blocks/care/index.js +27 -27
- package/dist/blocks/care-plans/index.d.ts +3 -3
- package/dist/blocks/care-plans/index.js +3 -3
- package/dist/blocks/cases/index.d.ts +3 -3
- package/dist/blocks/cases/index.js +3 -3
- package/dist/blocks/catalog/index.d.ts +2 -2
- package/dist/blocks/catalog/index.js +3 -3
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/channels/index.js +2 -2
- package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
- package/dist/blocks/clinical-decision-support/index.js +2 -2
- package/dist/blocks/cms/index.d.ts +5 -5
- package/dist/blocks/cms/index.js +5 -5
- package/dist/blocks/collaboration/index.d.ts +6 -6
- package/dist/blocks/collaboration/index.js +6 -6
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/collections/index.js +2 -2
- package/dist/blocks/comments/index.d.ts +2 -2
- package/dist/blocks/comments/index.js +3 -3
- package/dist/blocks/commerce/index.d.ts +5 -5
- package/dist/blocks/commerce/index.js +5 -5
- package/dist/blocks/commissions/index.d.ts +1 -1
- package/dist/blocks/commissions/index.js +2 -2
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/compliance/index.js +2 -2
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/connectors/index.js +3 -3
- package/dist/blocks/consents/index.d.ts +2 -2
- package/dist/blocks/consents/index.js +3 -3
- package/dist/blocks/contacts/index.d.ts +3 -3
- package/dist/blocks/contacts/index.js +4 -4
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/content/index.js +3 -3
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/contracts/index.js +4 -4
- package/dist/blocks/courses/index.d.ts +3 -3
- package/dist/blocks/courses/index.js +3 -3
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/crm/index.d.ts +16 -16
- package/dist/blocks/crm/index.js +16 -16
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.js +2 -2
- package/dist/blocks/dam/index.d.ts +2 -2
- package/dist/blocks/dam/index.js +4 -4
- package/dist/blocks/data-lifecycle/index.d.ts +2 -2
- package/dist/blocks/data-lifecycle/index.js +3 -3
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/deals/index.js +3 -3
- package/dist/blocks/dispatch/index.d.ts +2 -2
- package/dist/blocks/dispatch/index.js +4 -4
- package/dist/blocks/document-templates/index.d.ts +1 -1
- package/dist/blocks/document-templates/index.js +2 -2
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/documents/index.js +2 -2
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/domains/index.js +3 -3
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/donations/index.js +4 -4
- package/dist/blocks/drive/index.d.ts +5 -5
- package/dist/blocks/drive/index.js +5 -5
- package/dist/blocks/e-prescribing/index.d.ts +1 -1
- package/dist/blocks/e-prescribing/index.js +2 -2
- package/dist/blocks/employees/index.d.ts +1 -1
- package/dist/blocks/employees/index.js +3 -3
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrichment/index.js +3 -3
- package/dist/blocks/enrollments/index.d.ts +2 -2
- package/dist/blocks/enrollments/index.js +3 -3
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/entitlements/index.js +3 -3
- package/dist/blocks/events/index.d.ts +3 -3
- package/dist/blocks/events/index.js +3 -3
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/expenses/index.js +3 -3
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/field-history/index.js +3 -3
- package/dist/blocks/filespace/index.d.ts +8 -8
- package/dist/blocks/filespace/index.js +7 -7
- package/dist/blocks/finance/index.d.ts +5 -5
- package/dist/blocks/finance/index.js +5 -5
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/flags/index.js +3 -3
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.js +3 -3
- package/dist/blocks/forms/index.d.ts +3 -3
- package/dist/blocks/forms/index.js +2 -2
- package/dist/blocks/funding/index.d.ts +2 -2
- package/dist/blocks/funding/index.js +3 -3
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/goals/index.js +3 -3
- package/dist/blocks/governance/index.d.ts +4 -4
- package/dist/blocks/governance/index.js +4 -4
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/guests/index.js +3 -3
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/hiring/index.js +3 -3
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/identities/index.js +2 -2
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/imports/index.js +2 -2
- package/dist/blocks/inbox/index.d.ts +8 -8
- package/dist/blocks/inbox/index.js +3 -3
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/incidents/index.js +2 -2
- package/dist/blocks/index.d.ts +8 -8
- package/dist/blocks/index.js +4 -4
- package/dist/blocks/inspections/index.d.ts +2 -2
- package/dist/blocks/inspections/index.js +2 -2
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/inventory/index.js +3 -3
- package/dist/blocks/invoices/index.d.ts +1 -1
- package/dist/blocks/invoices/index.js +3 -3
- package/dist/blocks/knowledge/index.d.ts +3 -3
- package/dist/blocks/knowledge/index.js +4 -4
- package/dist/blocks/lead-scoring/index.d.ts +2 -2
- package/dist/blocks/lead-scoring/index.js +3 -3
- package/dist/blocks/learning/index.d.ts +3 -3
- package/dist/blocks/learning/index.js +3 -3
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leases/index.js +3 -3
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/leave/index.js +3 -3
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/ledger/index.js +2 -2
- package/dist/blocks/legal-entities/index.d.ts +2 -2
- package/dist/blocks/legal-entities/index.js +2 -2
- package/dist/blocks/lims/index.d.ts +2 -2
- package/dist/blocks/lims/index.js +2 -2
- package/dist/blocks/mail-sync/index.d.ts +3 -3
- package/dist/blocks/mail-sync/index.js +3 -3
- package/dist/blocks/maintenance/index.d.ts +2 -2
- package/dist/blocks/maintenance/index.js +3 -3
- package/dist/blocks/manufacturing/index.d.ts +2 -2
- package/dist/blocks/manufacturing/index.js +3 -3
- package/dist/blocks/medications/index.d.ts +1 -1
- package/dist/blocks/medications/index.js +3 -3
- package/dist/blocks/meetings/index.d.ts +3 -3
- package/dist/blocks/meetings/index.js +3 -3
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memory/index.d.ts +3 -3
- package/dist/blocks/memory/index.js +7 -7
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/messaging/index.js +3 -3
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/metrics/index.js +2 -2
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +2 -2
- package/dist/blocks/moderation/index.js +2 -2
- package/dist/blocks/notifications/index.d.ts +5 -5
- package/dist/blocks/notifications/index.js +3 -3
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/numbering/index.js +1 -1
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.js +2 -2
- package/dist/blocks/observations/index.d.ts +2 -2
- package/dist/blocks/observations/index.js +3 -3
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.js +2 -2
- package/dist/blocks/orders/index.d.ts +1 -1
- package/dist/blocks/orders/index.js +4 -4
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/organizations/index.js +3 -3
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/outbox/index.js +2 -2
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/passes/index.js +3 -3
- package/dist/blocks/payroll-export/index.d.ts +2 -2
- package/dist/blocks/payroll-export/index.js +3 -3
- package/dist/blocks/people/index.d.ts +7 -7
- package/dist/blocks/people/index.js +7 -7
- package/dist/blocks/periods/index.d.ts +1 -1
- package/dist/blocks/periods/index.js +2 -2
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/permissions/index.js +2 -2
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.js +3 -3
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/posts/index.js +2 -2
- package/dist/blocks/procurement/index.d.ts +5 -5
- package/dist/blocks/procurement/index.js +5 -5
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/profiles/index.js +3 -3
- package/dist/blocks/projects/index.d.ts +7 -7
- package/dist/blocks/projects/index.js +7 -7
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/promotions/index.js +4 -4
- package/dist/blocks/prompts/index.d.ts +1 -1
- package/dist/blocks/prompts/index.js +2 -2
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/push/index.js +3 -3
- package/dist/blocks/qualifications/index.d.ts +2 -2
- package/dist/blocks/qualifications/index.js +3 -3
- package/dist/blocks/queue/index.d.ts +96 -3
- package/dist/blocks/queue/index.js +149 -7
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/quotes/index.js +3 -3
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/rank/index.js +2 -2
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/reactions/index.js +3 -3
- package/dist/blocks/recruiting/index.d.ts +4 -4
- package/dist/blocks/recruiting/index.js +4 -4
- package/dist/blocks/referrals/index.d.ts +1 -1
- package/dist/blocks/referrals/index.js +2 -2
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/relations/index.js +4 -4
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reminders/index.js +1 -1
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/reviews/index.js +2 -2
- package/dist/blocks/rfqs/index.d.ts +2 -2
- package/dist/blocks/rfqs/index.js +3 -3
- package/dist/blocks/risks/index.d.ts +2 -2
- package/dist/blocks/risks/index.js +2 -2
- package/dist/blocks/saas/index.d.ts +12 -12
- package/dist/blocks/saas/index.js +12 -12
- package/dist/blocks/sales/index.d.ts +1 -1
- package/dist/blocks/sales/index.js +1 -1
- package/dist/blocks/saved-views/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.js +2 -2
- package/dist/blocks/scheduling/index.d.ts +4 -4
- package/dist/blocks/scheduling/index.js +4 -4
- package/dist/blocks/scores/index.d.ts +2 -2
- package/dist/blocks/scores/index.js +3 -3
- package/dist/blocks/search/index.d.ts +4 -4
- package/dist/blocks/search/index.js +2 -2
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/security-events/index.js +2 -2
- package/dist/blocks/segments/index.d.ts +2 -2
- package/dist/blocks/segments/index.js +3 -3
- package/dist/blocks/sequences/index.d.ts +3 -3
- package/dist/blocks/sequences/index.js +3 -3
- package/dist/blocks/service/index.d.ts +7 -7
- package/dist/blocks/service/index.js +7 -7
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.js +2 -2
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +2 -2
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/settings/index.js +3 -3
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/share-links/index.js +1 -1
- package/dist/blocks/shifts/index.d.ts +2 -2
- package/dist/blocks/shifts/index.js +3 -3
- package/dist/blocks/shipments/index.d.ts +2 -2
- package/dist/blocks/shipments/index.js +4 -4
- package/dist/blocks/signatures/index.d.ts +2 -2
- package/dist/blocks/signatures/index.js +2 -2
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/signing-keys/index.js +2 -2
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sla/index.js +3 -3
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/sso/index.js +2 -2
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.js +1 -1
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/subjects/index.js +3 -3
- package/dist/blocks/support/index.d.ts +5 -5
- package/dist/blocks/support/index.js +5 -5
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tags/index.js +1 -1
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/tasks/index.js +3 -3
- package/dist/blocks/tax/index.d.ts +2 -2
- package/dist/blocks/tax/index.js +3 -3
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/teams/index.js +1 -1
- package/dist/blocks/templates/index.d.ts +3 -3
- package/dist/blocks/templates/index.js +2 -2
- package/dist/blocks/tills/index.d.ts +1 -1
- package/dist/blocks/tills/index.js +3 -3
- package/dist/blocks/time-tracking/index.d.ts +2 -2
- package/dist/blocks/time-tracking/index.js +2 -2
- package/dist/blocks/timeline/index.d.ts +1 -1
- package/dist/blocks/timeline/index.js +2 -2
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/trash/index.js +2 -2
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/undo/index.js +2 -2
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +3 -3
- package/dist/blocks/usage/index.js +15 -3
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/vercel-marketplace/index.js +2 -2
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/versions/index.js +2 -2
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.js +2 -2
- package/dist/blocks/warehouse/index.d.ts +1 -1
- package/dist/blocks/warehouse/index.js +3 -3
- package/dist/blocks/webhooks/index.d.ts +1 -1
- package/dist/blocks/webhooks/index.js +6 -6
- package/dist/blocks/workflow-editor/index.d.ts +7 -7
- package/dist/blocks/workflow-editor/index.js +3 -3
- package/dist/blocks/workflows/index.d.ts +5 -5
- package/dist/blocks/workflows/index.js +51 -12
- package/dist/{blocks-ERs7xZ7E.d.ts → blocks-DbarkJe1.d.ts} +43 -19
- package/dist/{channel-iJrqCvKh.js → channel-HoCqE6Xb.js} +1 -1
- package/dist/chat-sdk/index.d.ts +549 -131
- package/dist/chat-sdk/index.js +881 -245
- package/dist/claims/index.d.ts +3 -3
- package/dist/cli/{account-D7u3LvNN.js → account-CVomaGBV.js} +1 -1
- package/dist/cli/{account-BGMPSKJs.js → account-Co53476L.js} +1 -1
- package/dist/cli/add-CGR3mLgc.js +1 -0
- package/dist/cli/{add-BXfK7N0H.js → add-Cbuj3vBk.js} +2 -2
- package/dist/cli/{add-Ca3FNbhm.js → add-ymWkkPNw.js} +13 -13
- package/dist/cli/{app-table-files-BR0zwJ7T.js → app-table-files-DoPmytoG.js} +3 -3
- package/dist/cli/{app-tables-DAHcDTFh.js → app-tables-D1rjtFmq.js} +2 -2
- package/dist/cli/{automations-DKKuC8MW.js → automations-DAMWU5je.js} +1 -1
- package/dist/cli/{backfill-DHD9e6XO.js → backfill-DgHzYvi5.js} +162 -6
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-C4J4d_Jx.js → blocks-CzCYyx9N.js} +2 -2
- package/dist/cli/{blocks-DtEsw6CG.js → blocks-DmIQd43q.js} +1 -1
- package/dist/cli/{cache-DyhfGbUV.js → cache-dmC65uMm.js} +1 -1
- package/dist/cli/{codemod-B7EdR7Fu.js → codemod-CzRpopTy.js} +3 -3
- package/dist/cli/{command-bvbsvYpo.js → command-CLlRvLN9.js} +14 -7
- package/dist/cli/{completion-C8zJwfzA.js → completion-4Ta2j6uu.js} +2 -2
- package/dist/cli/{completion-CsGpvIuo.js → completion-BeyJYbyT.js} +2 -2
- package/dist/cli/{completion-GgZmb_t7.js → completion-DwUZqnou.js} +1 -1
- package/dist/cli/{config-C-DXllAX.js → config-DDzGKmmT.js} +32 -1
- package/dist/cli/{config-DyGupd-1.js → config-DPKOp4D5.js} +1 -1
- package/dist/cli/{config-CWQesy6K.js → config-lZB85ksj.js} +1 -1
- package/dist/cli/{content-mapper-BM9asZuL.js → content-mapper-B6JGZZ-x.js} +2 -2
- package/dist/cli/{db-CVoN3aLl.js → db-XUHrXei6.js} +3 -3
- package/dist/cli/{doctor-BuE0Ry7T.js → doctor-Be-y8dsz.js} +240 -20
- package/dist/cli/{env-Bco8UGR3.js → env-49B92Izr.js} +1 -1
- package/dist/cli/env-BNeYZxBV.js +1 -0
- package/dist/cli/{gen-DMAd__D1.js → gen-CMppeGNK.js} +16 -16
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +8 -8
- package/dist/cli/{init-BfpkhVgY.js → init-qbw1o0Dd.js} +10 -10
- package/dist/cli/{keys-CRf_wOFs.js → keys-DPHVpbjn.js} +1 -1
- package/dist/cli/{live-XBM0kzT3.js → live-RZhHZRFj.js} +2 -2
- package/dist/cli/{mcp-C9HqqPIV.js → mcp-DudhybBp.js} +3 -3
- package/dist/cli/{metadata-dYoVRApT.js → metadata-O2AJ-PDA.js} +3 -3
- package/dist/cli/{migrate-DLWnaHNN.js → migrate-CiGCX8KP.js} +2 -2
- package/dist/cli/{migration-safety-Bh7VzARh.js → migration-safety-Cn2z7UC-.js} +11 -2
- package/dist/cli/{migrations-Cq5hkJsa.js → migrations-6KOIDi_b.js} +2 -2
- package/dist/cli/{module-migration-BUd_MAbE.js → module-migration-XPQbFJib.js} +2 -2
- package/dist/cli/{moved-btVl2MAQ.js → moved-DV_Edueb.js} +1 -1
- package/dist/cli/{parse-ThNFQ1hP.js → parse-CX-x-r5L.js} +1 -1
- package/dist/cli/powersync-BNWYxuB0.js +1 -0
- package/dist/cli/{powersync-Cb8xtLDc.js → powersync-CFOmXWSv.js} +4 -4
- package/dist/cli/{print-BVeE5vr_.js → print-BgO62egM.js} +2 -2
- package/dist/cli/{providers-xmyaROnG.js → providers-Ciss4nHV.js} +1 -1
- package/dist/cli/{prune-workflows-DUOBOuHp.js → prune-workflows-eAi-3R9F.js} +4 -4
- package/dist/cli/{remove-BuasHmdF.js → remove-B-vjuw8U.js} +7 -7
- package/dist/cli/{render-Hvu_ZKtr.js → render-eYxq_mwL.js} +4 -4
- package/dist/cli/{run-1ZTOS-gb.js → run-CLLVkt9B.js} +2 -2
- package/dist/cli/{run-DMZQUy5b.js → run-Cn0Ay_l6.js} +51 -51
- package/dist/cli/{run-KdsUN7Qj.js → run-VHRy6vLi.js} +9 -9
- package/dist/cli/seed-BqsY5MlO.js +1 -0
- package/dist/cli/{seed-C7eiVpBy.js → seed-DNaRUG_M.js} +4 -4
- package/dist/cli/{shared-3cetvs_N.js → shared-CL-Gg-tZ.js} +1 -1
- package/dist/cli/{skills-wZ94Fa8G.js → skills-Bfx3HM5e.js} +1 -1
- package/dist/cli/{snapshot-D7h2oWfS.js → snapshot-BDeHrbby.js} +3 -3
- package/dist/cli/{source-ENOc1zZ9.js → source-BPCSkEGq.js} +1 -1
- package/dist/cli/{source-args-Deg53QHe.js → source-args-DowOyFq5.js} +1 -1
- package/dist/cli/{spec-DGaKqtfR.js → spec-BN7JlljA.js} +3 -3
- package/dist/cli/{spec-CfKQ2Xxd.js → spec-CEiZkG-g.js} +1 -1
- package/dist/cli/{sql-layout-CGlyhvQ1.js → sql-layout-oPEsvcMQ.js} +2 -2
- package/dist/cli/{stack-Dr_oEfmw.js → stack-CwBH6-o8.js} +1 -1
- package/dist/cli/{sync-DFJfT7dH.js → sync-CgpA7QSy.js} +4 -4
- package/dist/cli/{table-DJiZ_PJP.js → table-BEiSh604.js} +1 -1
- package/dist/cli/{upgrade-C2Kdvrj-.js → upgrade-CWx1Pdz2.js} +5 -5
- package/dist/cli/{upgrade-DSi7r0MG.js → upgrade-DPDYkDat.js} +3 -3
- package/dist/cli/{version-AGe2VWGm.js → version-XN1WDU-l.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{codecs-jdyv13IU.js → codecs-BSDJw_Fn.js} +2 -2
- package/dist/commerce/index.js +2 -2
- package/dist/{compose-DUitDAa_.js → compose-Be6lxp05.js} +1 -1
- package/dist/{composite-CQjoTPwv.js → composite-qffn948S.js} +1 -1
- package/dist/config/index.d.ts +5 -5
- package/dist/config/index.js +4 -4
- package/dist/{config-DYtSlwsi.js → config-DVRBLGIK.js} +3 -3
- package/dist/{config-gJ9FX0jc.js → config-DwPO3Dcs.js} +1 -1
- package/dist/{context-DNwBlpKo.d.ts → context-NgBzQFD8.d.ts} +61 -4
- package/dist/contract/index.d.ts +3 -3
- package/dist/{controller-DfgxFNFx.d.ts → controller-XiTA4O2z.d.ts} +1 -1
- package/dist/{conversion-BzVxeYqk.d.ts → conversion-BYSDK6_r.d.ts} +1 -1
- package/dist/create/index.d.ts +4 -4
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +2 -2
- package/dist/create/lite/index.js +3 -3
- package/dist/{create-blocks-DupJA8Lw.js → create-blocks-X59FRi6t.js} +2 -2
- package/dist/credentials/index.js +3 -3
- package/dist/{deal-forecast-CgzuxYtf.js → deal-forecast-DWwQ_ZL6.js} +2 -2
- package/dist/{define-block-DiW9g10_.d.ts → define-block-DLqYhrYF.d.ts} +3 -3
- package/dist/{delivery-events-DUiTctdo.js → delivery-events-BNBvla4y.js} +1 -1
- package/dist/{drive-CvgLTJA9.d.ts → drive-CnOz5P5H.d.ts} +2 -2
- package/dist/e-invoicing/index.js +1 -1
- package/dist/edge/index.js +3 -3
- package/dist/embeddings-CCPghrsU.js +249 -0
- package/dist/{embeddings-Dm-GSHAi.d.ts → embeddings-DoNwEveb.d.ts} +52 -4
- package/dist/{entitlements-5nbdIitJ.d.ts → entitlements-7iVfWIy8.d.ts} +1 -1
- package/dist/{entitlements-BxZpcgcb.js → entitlements-CE-fFbUR.js} +2 -2
- package/dist/{errors-DCJMVeY7.js → errors-B3EJToP_.js} +72 -19
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- package/dist/{eve-DRYPT58Y.d.ts → eve-UQ0RZX-K.d.ts} +2 -2
- package/dist/{executor-COn2O4fg.d.ts → executor-mRSXEFIB.d.ts} +1 -1
- package/dist/expo/index.js +2 -2
- package/dist/{extract-DpiLKlbp.d.ts → extract-4SajsgPj.d.ts} +2 -2
- package/dist/fhir/index.js +1 -1
- package/dist/{field-errors-BCX7RCEc.d.ts → field-errors-B6sHzfiG.d.ts} +5 -5
- package/dist/{flags-oS3Mbyfc.js → flags-CtmDvszx.js} +1 -1
- package/dist/flags-sdk/index.js +5 -3
- package/dist/{framework-D8eW-nTX.js → framework-CD0tHWLN.js} +1 -1
- package/dist/{gateway-DjJYyq6h.d.ts → gateway-BsE1qacd.d.ts} +2 -2
- package/dist/{history-6KiVNWdH.js → history-CoX8QoXr.js} +21 -6
- package/dist/hono/index.js +2 -2
- package/dist/{inbox-BnELyPRZ.d.ts → inbox-i3nEfNHG.d.ts} +21 -1
- package/dist/{index-B8Mjb-KA.d.ts → index---6uF_J0.d.ts} +1 -1
- package/dist/{index-CFT7e_HH.d.ts → index-7-mAsoAB.d.ts} +2 -2
- package/dist/{index-CakXRuAZ.d.ts → index-B2HOIiNe.d.ts} +2 -2
- package/dist/{index-DMlTXcWp.d.ts → index-B9sdIEmz.d.ts} +2 -2
- package/dist/{index-ZI4sMVPT.d.ts → index-BEyOO6xN.d.ts} +2 -2
- package/dist/{index-BB5n8R_s.d.ts → index-BHlGYVat.d.ts} +1 -1
- package/dist/{index-D48wVmDj.d.ts → index-BUGFN7Lu.d.ts} +1 -1
- package/dist/{index-DHwPGqLY.d.ts → index-BaI1DFjU.d.ts} +2 -2
- package/dist/{index-BMYIwvDA.d.ts → index-BjMlZ2la.d.ts} +1 -1
- package/dist/{index-D6y6ojUX.d.ts → index-BpW3Kn-H.d.ts} +2 -2
- package/dist/{index-CurH6bgW.d.ts → index-C35Mxkfj.d.ts} +1 -1
- package/dist/{index-Bn5v6soX.d.ts → index-CA5xzl6j.d.ts} +1 -1
- package/dist/{index-D5LnplxJ.d.ts → index-CBTA4Hus.d.ts} +6 -6
- package/dist/{index-EHczIYa7.d.ts → index-CFfFev2y.d.ts} +72 -5
- package/dist/{index-BolFrOMw.d.ts → index-CaUkbhw7.d.ts} +2 -2
- package/dist/{index-BGgGwWcn.d.ts → index-Cfft6iUs.d.ts} +1 -1
- package/dist/{index-BW0aDURc.d.ts → index-CsngKWje.d.ts} +1 -1
- package/dist/{index-BNBFiyOR.d.ts → index-D89tUktw.d.ts} +1 -1
- package/dist/{index-BK8zPigx.d.ts → index-DDIZwUK-.d.ts} +1 -1
- package/dist/{index-BZ1Akcrg.d.ts → index-D_JS5FYo.d.ts} +1 -1
- package/dist/{index-BLL45v55.d.ts → index-Dh-CE1YF.d.ts} +1 -1
- package/dist/{index-DkWXofPH.d.ts → index-Dk039ZLg.d.ts} +1 -1
- package/dist/{index-DZTavebO.d.ts → index-Do2iK7pF.d.ts} +1 -1
- package/dist/{index-IKK8zWTN.d.ts → index-DpQ1JuKa.d.ts} +2 -2
- package/dist/{index-S6axmDQL.d.ts → index-Drjrj8Y5.d.ts} +2 -2
- package/dist/{index-7UV0pNYj.d.ts → index-Dvu6MySL.d.ts} +2 -2
- package/dist/{index-B2C1NczA.d.ts → index-LnDm58TV.d.ts} +4 -4
- package/dist/{index-D25Ry5R9.d.ts → index-P5Xhtrzo.d.ts} +1 -1
- package/dist/{index-CRSNN2v9.d.ts → index-PV91A2_J.d.ts} +8 -8
- package/dist/{index-B1NcZsVD.d.ts → index-VaTlShTa.d.ts} +7 -7
- package/dist/{index-iaMOudmP.d.ts → index-aNW_fYBI.d.ts} +1 -1
- package/dist/{index-Bdg6ee4m.d.ts → index-b5FUPI-5.d.ts} +1 -1
- package/dist/{index-1001GtVL.d.ts → index-hkFhFgRv.d.ts} +1 -1
- package/dist/{index-kidoYhB8.d.ts → index-jaxdP0Qe.d.ts} +1 -1
- package/dist/index-nFxtUFQv.d.ts +11 -0
- package/dist/{index-Bopuqb8z.d.ts → index-oR-iOHLT.d.ts} +4 -4
- package/dist/{index-DplKvjCs.d.ts → index-qPP3ja-K.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{instances-ukDFg8oN.js → instances-CAzvtvlH.js} +119 -8
- package/dist/json-render/index.d.ts +91 -0
- package/dist/json-render/index.js +233 -0
- package/dist/{knowledge-DL1ZnEe7.d.ts → knowledge-CjrMiSnp.d.ts} +59 -9
- package/dist/{knowledge-CQl9LXaZ.js → knowledge-m3IJobAw.js} +22 -10
- package/dist/{manifest-DKY9HGin.js → manifest-12CvUHma.js} +3 -3
- package/dist/{manifest-DI_Vz152.d.ts → manifest-1CNHDf-P.d.ts} +2 -2
- package/dist/{manifest-D8JpSvuE.js → manifest-1X1rpQ-5.js} +3 -3
- package/dist/{manifest-BSQh5dw2.js → manifest-1qVuPpg1.js} +2 -2
- package/dist/{manifest-Cxz4_mWy.d.ts → manifest-279mgqK2.d.ts} +1 -1
- package/dist/{manifest-Cu_4X5Rm.js → manifest-3mRZEFbA.js} +2 -2
- package/dist/{manifest-ppItbSA5.d.ts → manifest-4-J2cBhl.d.ts} +1 -1
- package/dist/{manifest-BhBqFYV4.d.ts → manifest-4Ei8W6XJ.d.ts} +1 -1
- package/dist/{manifest-BEZ8HltH.js → manifest-638tYNw7.js} +2 -2
- package/dist/{manifest-BXNDl7bx.js → manifest-AFBjJxrJ.js} +2 -2
- package/dist/{manifest-B_3_99xa.js → manifest-AI6u-id7.js} +3 -3
- package/dist/{manifest-C95-cClh.js → manifest-B1Xj7ObD.js} +1 -1
- package/dist/{manifest-_qzN4kUG.js → manifest-B2G5B8ty.js} +2 -2
- package/dist/{manifest-CPYEEX6u.js → manifest-B3Fs0ZeU.js} +8 -3
- package/dist/{manifest-DJRHzb6v.js → manifest-B5c8gqof.js} +2 -2
- package/dist/{manifest-Dagm1cVO.d.ts → manifest-BAEYvNSN.d.ts} +1 -1
- package/dist/{manifest-CJByGKJ_.d.ts → manifest-BBCFaNss.d.ts} +1 -1
- package/dist/{manifest-CRXxYu5L.js → manifest-BEyhZ8sV.js} +3 -3
- package/dist/{manifest-ycsWja2O.d.ts → manifest-BFXftMd7.d.ts} +1 -1
- package/dist/{manifest--eIzr9Tj.js → manifest-BFbZ2mZA.js} +2 -2
- package/dist/{manifest-C0f5YJ7x.d.ts → manifest-BFi8-A1w.d.ts} +1 -1
- package/dist/{manifest-DeCjklgV.js → manifest-BHaR8iYx.js} +2 -2
- package/dist/{manifest-BKD8DbQT.js → manifest-BI65KPyR.js} +4 -4
- package/dist/{manifest-DHYr9yD1.js → manifest-BIOzNAsT.js} +2 -2
- package/dist/{manifest-CKxnGCVY.d.ts → manifest-BJ7XyLlV.d.ts} +1 -1
- package/dist/{manifest-DM2T_dN2.js → manifest-BKvawy3P.js} +3 -3
- package/dist/{manifest-C-_0WkGx.d.ts → manifest-BNR_72jF.d.ts} +4 -3
- package/dist/{manifest-BcdRITPc.d.ts → manifest-BOQOTepZ.d.ts} +1 -1
- package/dist/{manifest-DqwQmPZb.js → manifest-BP7YQERu.js} +3 -3
- package/dist/{manifest-C_hIU5kk.js → manifest-BPeoWfAO.js} +3 -3
- package/dist/{manifest-DHt1h5GN.js → manifest-BPpt2s0a.js} +3 -3
- package/dist/{manifest-6MuVEQnP.js → manifest-BQobHp4x.js} +5 -5
- package/dist/{manifest-BgMjraZw.js → manifest-BRgWZzVn.js} +3 -3
- package/dist/{manifest-CCXaDWdN.d.ts → manifest-BS1QA4mT.d.ts} +1 -1
- package/dist/{manifest-JvgqqKRq.js → manifest-BW6RRJXm.js} +2 -2
- package/dist/{manifest-K_42e50M.d.ts → manifest-BWIcNHVs.d.ts} +1 -1
- package/dist/{manifest-Hx3FBHKX.js → manifest-BXIL-A7I.js} +1 -1
- package/dist/{manifest-C3VB7-hM.d.ts → manifest-BaQ-A5Jy.d.ts} +2 -2
- package/dist/{manifest-D3HTgmR3.d.ts → manifest-BaR4cYwY.d.ts} +1 -1
- package/dist/{manifest-DjVqN_iK.d.ts → manifest-Bc1-GptG.d.ts} +1 -1
- package/dist/{manifest-C8Boo7Ps.js → manifest-Bea2AWYl.js} +4 -4
- package/dist/{manifest-1Xiu6zqs.js → manifest-BgKbxGVp.js} +2 -2
- package/dist/{manifest-Dbq6t-bI.d.ts → manifest-BhhX6xjo.d.ts} +1 -1
- package/dist/{manifest-Dm_5DTyx.js → manifest-BhpXYw_3.js} +2 -2
- package/dist/{manifest-BHNrIQ8X.d.ts → manifest-BieAORBI.d.ts} +1 -1
- package/dist/{manifest-D2qeEjrC.d.ts → manifest-Bk69YFI3.d.ts} +1 -1
- package/dist/{manifest-gCNbUW-X.js → manifest-BnJ_9tgk.js} +2 -2
- package/dist/{manifest-1lzhOO0z.d.ts → manifest-BqCQrbSP.d.ts} +2 -2
- package/dist/{manifest-DnZw4JWP.js → manifest-Brv_Pss2.js} +2 -2
- package/dist/{manifest-D7y9_k5i.d.ts → manifest-BuEIqayB.d.ts} +1 -1
- package/dist/{manifest-OS0pwPRn.d.ts → manifest-BxRL6XuJ.d.ts} +1 -1
- package/dist/{manifest-qb_YXiWK.js → manifest-BydKYd32.js} +2 -2
- package/dist/{manifest-FkY_rpfH.js → manifest-C-ROCYHF.js} +5 -5
- package/dist/{manifest-BfAXsd-X.d.ts → manifest-C1JGYvR-.d.ts} +1 -1
- package/dist/{manifest-gGOpzRmJ.d.ts → manifest-C3d7DJiE.d.ts} +1 -1
- package/dist/{manifest-D84UV5p6.js → manifest-C5NzuW_p.js} +2 -2
- package/dist/{manifest-A_VPz6fq.js → manifest-C75gu7oi.js} +2 -2
- package/dist/{manifest-BdmDmQtx.js → manifest-CBj4zlpo.js} +4 -4
- package/dist/{manifest-BKDSuS3x.d.ts → manifest-CFb---rO.d.ts} +2 -2
- package/dist/{manifest-BHhBqtFw.js → manifest-CFq6WJJO.js} +4 -4
- package/dist/{manifest-Bbtt8mb1.d.ts → manifest-CGJ2xLRu.d.ts} +1 -1
- package/dist/{manifest-DpwaOTir.js → manifest-CHheBZjl.js} +3 -3
- package/dist/{manifest-B83YpMlz.d.ts → manifest-CJzK3H3h.d.ts} +1 -1
- package/dist/{manifest-ClbUuESE.js → manifest-CKT1bZoZ.js} +2 -2
- package/dist/{manifest-Cj5IjsCB.js → manifest-CLFmOMSQ.js} +2 -2
- package/dist/{manifest-B9KmOzmT.d.ts → manifest-CMmfdgAG.d.ts} +1 -1
- package/dist/{manifest-Bx_0qkBP.js → manifest-COnvr04R.js} +2 -2
- package/dist/{manifest-mu_UflgB.d.ts → manifest-CR_RHsHu.d.ts} +1 -1
- package/dist/{manifest-BTC6dWdq.d.ts → manifest-CSLqw5qE.d.ts} +1 -1
- package/dist/{manifest-BDGVge5o.js → manifest-CWkdEugm.js} +2 -2
- package/dist/{manifest-DS2PjAgW.js → manifest-CXTVwg4s.js} +3 -3
- package/dist/{manifest-CX8DVTzn.js → manifest-CY-bInzt.js} +3 -3
- package/dist/{manifest-BZP0wKpE.js → manifest-CaZnTLGe.js} +3 -3
- package/dist/{manifest-B4CVN-Kx.js → manifest-CbdezcLS.js} +2 -2
- package/dist/{manifest-B3QwQDTx.js → manifest-Ccjdt-zG.js} +3 -3
- package/dist/{manifest-BW7wdKXA.js → manifest-CdDdPHbV.js} +4 -4
- package/dist/{manifest-cqfeLW8g.js → manifest-CeN-ohYP.js} +2 -2
- package/dist/{manifest-B7MpuCmz.d.ts → manifest-Cge4urPD.d.ts} +1 -1
- package/dist/{manifest-DsYIWD--.js → manifest-CiAp3lJg.js} +2 -2
- package/dist/{manifest-BFJvys4-.js → manifest-CmtXDmOP.js} +3 -3
- package/dist/{manifest-CJb0PtMj.d.ts → manifest-Cq3zIydP.d.ts} +1 -1
- package/dist/{manifest-DLv_WaSF.d.ts → manifest-Cs5-Vi9X.d.ts} +1 -1
- package/dist/{manifest-DwVl4YC4.d.ts → manifest-CsVTMa-G.d.ts} +1 -1
- package/dist/{manifest-DBsPHetA.js → manifest-Ct3CZB2E.js} +2 -2
- package/dist/{manifest--M7GmEPg.d.ts → manifest-CyKD7Hyx.d.ts} +1 -1
- package/dist/{manifest-DNaSpmZ3.js → manifest-Cytb-iJk.js} +2 -2
- package/dist/{manifest-Cj_ZnW6k.js → manifest-D-sJpAJB.js} +3 -3
- package/dist/{manifest-Bpzxyvxc.js → manifest-D0ceE9Zm.js} +3 -3
- package/dist/{manifest-CIJTIKo3.d.ts → manifest-D1FhVaUw.d.ts} +1 -1
- package/dist/{manifest-CLphqjtj.d.ts → manifest-D2URJ82u.d.ts} +1 -1
- package/dist/{manifest-Czv_oJ77.js → manifest-D2r45JYc.js} +2 -2
- package/dist/{manifest-DBJ5nBG9.d.ts → manifest-D3V8Ngw3.d.ts} +1 -1
- package/dist/{manifest-B709eXLx.js → manifest-D5UYH-l1.js} +2 -2
- package/dist/{manifest-DVnOUxy4.js → manifest-D5gmrL5j.js} +6 -6
- package/dist/{manifest-BQwqV6dQ.js → manifest-D6k-MFrE.js} +4 -4
- package/dist/{manifest-BoSzgLUl.js → manifest-D72opuEP.js} +3 -3
- package/dist/{manifest-DJ5nCW5K.js → manifest-D8ljY6Fz.js} +4 -4
- package/dist/{manifest-DemyeI_z.js → manifest-D96KwsqD.js} +4 -4
- package/dist/{manifest-Bz3xNPJL.d.ts → manifest-D9B8QIWz.d.ts} +1 -1
- package/dist/{manifest-BkS073Py.d.ts → manifest-DA0Q62es.d.ts} +1 -1
- package/dist/{manifest-CYNC6a1d.js → manifest-DAu2qpOy.js} +2 -2
- package/dist/{manifest-0vrTq9Uf.d.ts → manifest-DB6dSXpw.d.ts} +1 -1
- package/dist/{manifest-Db-GUsLH.d.ts → manifest-DKY1mHtE.d.ts} +1 -1
- package/dist/{manifest-CQFlAwfU.d.ts → manifest-DOIRQHB8.d.ts} +2 -2
- package/dist/{manifest-0PDfKdtc.js → manifest-DR8po1OZ.js} +4 -4
- package/dist/{manifest-ITF-BpEi.js → manifest-D_RCNlv9.js} +4 -4
- package/dist/{manifest-CR-6QDLZ.d.ts → manifest-D_gWI_Xp.d.ts} +1 -1
- package/dist/{manifest-BR_uGpTd.js → manifest-DaZ7LEOi.js} +2 -2
- package/dist/{manifest-Dz2IkqqY.d.ts → manifest-DfaKFvmO.d.ts} +1 -1
- package/dist/{manifest-DPFn2x18.d.ts → manifest-Dg4rFnjr.d.ts} +1 -1
- package/dist/{manifest-n9XQtQXA.d.ts → manifest-DhYiWMYQ.d.ts} +1 -1
- package/dist/{manifest-BfOHwSNK.js → manifest-DjIq3ZJf.js} +7 -7
- package/dist/{manifest-D7yeYU0f.d.ts → manifest-DnSrbZuv.d.ts} +1 -1
- package/dist/{manifest-D7slgR5H.d.ts → manifest-Do4TvdNR.d.ts} +1 -1
- package/dist/{manifest-DdFl3BYM.d.ts → manifest-Do7f1k9C.d.ts} +1 -1
- package/dist/{manifest--qnXa2lK.js → manifest-Dr-wuvfR.js} +4 -4
- package/dist/{manifest-yPcrAK5N.d.ts → manifest-Dr5yltSj.d.ts} +10 -3
- package/dist/{manifest-CbxMRPGY.js → manifest-DunhKI5K.js} +4 -4
- package/dist/{manifest-C3RDEoAr.d.ts → manifest-Duq5aCrY.d.ts} +1 -1
- package/dist/{manifest-J6kJX8YL.js → manifest-DuwJ7Ya_.js} +3 -3
- package/dist/{manifest-FJi1pYoB.js → manifest-Dxob7J6V.js} +6 -6
- package/dist/{manifest-Dj9AIgTy.d.ts → manifest-DzNmDhoS.d.ts} +1 -1
- package/dist/{manifest-CHsjS47_.d.ts → manifest-FqJtbN5n.d.ts} +1 -1
- package/dist/{manifest-roKO06Ko.d.ts → manifest-I7nR1vhO.d.ts} +1 -1
- package/dist/{manifest-o-EzlFwZ.js → manifest-N-vJi36T.js} +2 -2
- package/dist/{manifest-FAVN8Bg9.js → manifest-UHMLAfCl.js} +2 -2
- package/dist/{manifest-BKegpJgn.d.ts → manifest-VoN5Ae-i.d.ts} +1 -1
- package/dist/{manifest-DDkncgRB.d.ts → manifest-XRDA_p9P.d.ts} +1 -1
- package/dist/{manifest-Di0UrbTw.d.ts → manifest-ZQvywRBI.d.ts} +1 -1
- package/dist/{manifest-COZUTRxz.js → manifest-aWO0h4lZ.js} +3 -3
- package/dist/{manifest-D7R4sM8L.d.ts → manifest-hpPeciuH.d.ts} +1 -1
- package/dist/{manifest-CkYNs6PX.js → manifest-iNt_0t6h.js} +4 -4
- package/dist/{manifest-BAgqRR7p.js → manifest-j5YiEWqV.js} +2 -2
- package/dist/{manifest-D_iJU__f.d.ts → manifest-jRpt7muB.d.ts} +1 -1
- package/dist/{manifest-xD290bNh.js → manifest-jU8fwfLu.js} +3 -3
- package/dist/{manifest-DCC3phPq.js → manifest-nR_d-Ivi.js} +1 -1
- package/dist/{manifest-BRd1q660.d.ts → manifest-nyksTa_6.d.ts} +1 -1
- package/dist/{manifest-CWaCXYgf.js → manifest-p4Yvamix.js} +2 -2
- package/dist/{manifest-BQJV63RV.js → manifest-pKQ4z-dv.js} +1 -1
- package/dist/{manifest-DbjDYuCE.js → manifest-q62slcP6.js} +2 -2
- package/dist/{manifest-UbBXSkXn.d.ts → manifest-uDAAzAlQ.d.ts} +1 -1
- package/dist/{manifest-CtOwRTvP.js → manifest-upxzRaY-.js} +2 -2
- package/dist/{manifest-DW2_P6AT.js → manifest-vaCUz3Wa.js} +3 -3
- package/dist/{manifest-Dqgqm1Zo.js → manifest-vabt4x2a.js} +3 -3
- package/dist/{manifest-Cfvr-BhF.js → manifest-wSbIcOln.js} +19 -7
- package/dist/mapper/bin.js +7 -7
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/sdk/index.js +1 -1
- package/dist/{mcp-Bx9wzQw6.js → mcp-D1d_uDNE.js} +2 -2
- package/dist/{message-Cc4bkdNw.d.ts → message-Chvocrom.d.ts} +27 -4
- package/dist/{model-messages-OmbNNuN2.js → model-messages-BgSCTojd.js} +1 -1
- package/dist/{model-messages-CGSUU450.d.ts → model-messages-CK7L1_hV.d.ts} +1 -1
- package/dist/{money-codec-CvUy3_Ep.js → money-codec-lrXaOqi7.js} +1 -1
- package/dist/next/index.d.ts +7 -7
- package/dist/next/index.js +5 -5
- package/dist/{operations-Di203azT.d.ts → operations-BSsNQ81h.d.ts} +1 -1
- package/dist/{options-CyYZvdSy.js → options-BNtLQZrG.js} +2 -1
- package/dist/{options-SOjQVgfS.js → options-BYlcrVVf.js} +1 -0
- package/dist/options-BxOFSs-u.js +4 -0
- package/dist/orpc/index.d.ts +1 -1
- package/dist/orpc/index.js +1 -1
- package/dist/otel/index.d.ts +1 -1
- package/dist/otel/index.js +5 -5
- package/dist/{parse-H3g3kyZa.js → parse-Iz0DTVot.js} +2 -2
- package/dist/{payments-D89SVEgj.js → payments-DjrRAHBY.js} +1 -1
- package/dist/{permissions-C7GgjgTA.d.ts → permissions-CrPkD5Ik.d.ts} +1 -1
- package/dist/{ports-6EMtxwGE.d.ts → ports-Z6S_jGD7.d.ts} +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +3 -3
- package/dist/{preset-Be8m6-PH.js → preset-D2dg-EVp.js} +3 -2
- package/dist/{preview-DCndUjk9.js → preview-B7OjoABd.js} +3 -3
- package/dist/{preview-Dlc_7tMK.d.ts → preview-Bgwwuvc9.d.ts} +2 -2
- package/dist/{project-CwZtBezd.js → project-Dhm0C7OR.js} +5 -5
- package/dist/{provider-DRGTjcBY.js → provider-Bkh8zSHN.js} +1 -1
- package/dist/{push-token-CQnqTZrb.d.ts → push-token-hDDp188w.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/rate-limit/index.d.ts +1 -1
- package/dist/rate-limit/index.js +1 -1
- package/dist/{rate-limit-Bl_jNyAg.d.ts → rate-limit-A_ngDsV_.d.ts} +17 -0
- package/dist/{rate-limit-Df913_w3.js → rate-limit-Jl-5e7s8.js} +30 -10
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +1 -1
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/react/server.js +1 -1
- package/dist/{react-CsgcTKRk.js → react-DIfKgdfV.js} +2 -2
- package/dist/{react-CqOVutZj.js → react-DnOu9xsi.js} +3 -3
- package/dist/react-router/index.js +2 -2
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +2 -2
- package/dist/{record-form-DqGcUu0C.d.ts → record-form-Bye6v7Sg.d.ts} +1 -1
- package/dist/{recordings-CiYHdFPa.d.ts → recordings-16Flkx9W.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{route-optimizer-DqUyDP78.js → route-optimizer-Ds11cQyM.js} +1 -1
- package/dist/{rows-Ccg381fF.js → rows-DidUYmOx.js} +1 -1
- package/dist/{rows-CTzeKlaI.js → rows-kSV-CDYA.js} +2 -2
- package/dist/runs-CEm5AFQk.js +91 -0
- package/dist/{sales-C8o3E5U3.js → sales-DNuk5v36.js} +7 -7
- package/dist/{sales-lines-COFwijz1.js → sales-lines-mwRnIC9p.js} +3 -3
- package/dist/{sales-shared-DGSptcqA.js → sales-shared-Ca2ZDF6a.js} +1 -1
- package/dist/{sales-variants-D0oxdF-6.js → sales-variants-QTgChYXJ.js} +1 -1
- package/dist/{scores-CQt_G6T-.js → scores-Opsegupn.js} +2 -2
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +4 -4
- package/dist/{settings-B4NApcY7.js → settings-Bf5nmbl-.js} +2 -2
- package/dist/{sign-in-Dd5ljzNG.js → sign-in-BYJboUBW.js} +1 -1
- package/dist/{signing-keys-B2bpJ3eJ.js → signing-keys-sYy92dAx.js} +2 -2
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid-start/index.js +2 -2
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +2 -2
- package/dist/{spec-pins-D2Q41RiK.d.ts → spec-pins-Bb6V8nR2.d.ts} +1 -1
- package/dist/{spec-pins-BtVFN8wA.js → spec-pins-Dlz8OVqi.js} +1 -1
- package/dist/sql/index.d.ts +6 -6
- package/dist/sql/index.js +3 -3
- package/dist/{sql-BPU70zf9.js → sql-DrlapNYO.js} +3365 -788
- package/dist/{sso-gMj8CIpe.js → sso-RsAYRs9q.js} +2 -2
- package/dist/ssr/index.d.ts +1 -1
- package/dist/{store-DHoKrWYZ.d.ts → store-CGXNwUwi.d.ts} +6 -1
- package/dist/streams/index.d.ts +59 -2
- package/dist/streams/index.js +111 -22
- package/dist/streams/redis/index.d.ts +8 -1
- package/dist/streams/redis/index.js +12 -4
- package/dist/streams/resumable/index.d.ts +68 -0
- package/dist/streams/resumable/index.js +71 -0
- package/dist/{subject-readers-B5YcD7CO.js → subject-readers-DhXR7Tdk.js} +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/sveltekit/index.js +2 -2
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tax-D_M90sFh.js → tax-Deg3udmG.js} +1 -1
- package/dist/{tee-eneLXtYJ.js → tee-CHLXLuvg.js} +2 -1
- package/dist/{tenant-DHLx2ZkL.d.ts → tenant-DYOUVE8r.d.ts} +1 -1
- package/dist/testing/index.d.ts +13 -12
- package/dist/testing/index.js +60 -15
- package/dist/{timeline-9mP3m30L.d.ts → timeline-DTE4-6Hq.d.ts} +2 -2
- package/dist/{topic-DVr01uhB.js → topic-CLEQ3t6o.js} +25 -2
- package/dist/{topic-BKsRT4gu.d.ts → topic-DrN4Af8U.d.ts} +16 -1
- package/dist/{transport-CS4cVH4S.js → transport-CZBRg-9e.js} +7 -3
- package/dist/{types-Y1Oa950J.d.ts → types-BKtpHTHc.d.ts} +8 -0
- package/dist/{types-B2y4HmKY.d.ts → types-C941lZYk.d.ts} +1 -1
- package/dist/{types-D9r3axee.d.ts → types-DTNDqdyT.d.ts} +2 -2
- package/dist/{types-zYtQ5JDy.d.ts → types-D_o60OcA.d.ts} +1 -1
- package/dist/{types-DlG6Uj4P.d.ts → types-DeKSApwU.d.ts} +2 -2
- package/dist/{undo-DNRfstwk.js → undo-BXeYO6gy.js} +2 -2
- package/dist/{usage-CFVOHbUu.d.ts → usage-D7CYIk1m.d.ts} +22 -0
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-M1yL9NiW.d.ts → watch-topic-ClQWiVZ1.d.ts} +1 -1
- package/dist/{webhook-inbox-BamK2_Vw.js → webhook-inbox-B36XJ2eY.js} +25 -2
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/webmcp/index.js +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/builder/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +7 -3
- package/dist/workflow-sdk/index.js +16 -74
- package/dist/workflow-sdk/world/index.d.ts +48 -3
- package/dist/workflow-sdk/world/index.js +326 -31
- package/dist/{workflow-sdk-BCNusk7Y.d.ts → workflow-sdk-Bdp_VQ3Q.d.ts} +37 -3
- package/dist/{workflow-sdk-cHlpMyLV.js → workflow-sdk-ID8eoPMe.js} +108 -7
- package/dist/{workflow-sdk-CcoFSLFn.js → workflow-sdk-j7xorOLf.js} +230 -60
- package/dist/{workflows-DjVrHu22.d.ts → workflows-C6fR7YGm.d.ts} +56 -15
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +41 -11
- package/schemas/ai-message-v2.json +290 -0
- package/schemas/config-v1.json +29 -1
- package/schemas/design-v1.json +45 -0
- package/schemas/doctor-report-v1.json +5 -0
- package/skills/better-supabase/references/ui-recipes.md +77 -0
- package/skills/better-supabase-api/SKILL.md +2 -2
- package/skills/better-supabase-api/references/ai.md +56 -0
- package/skills/better-supabase-api/references/streams-credentials.md +5 -0
- package/dist/cli/add-4-omCrbh.js +0 -1
- package/dist/cli/env-C9HRYvnX.js +0 -1
- package/dist/cli/powersync-ZBM_emZL.js +0 -1
- package/dist/cli/seed-Ki7TgmY1.js +0 -1
- package/dist/embeddings-bZWDJ5yx.js +0 -129
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
|
|
2
|
-
import { F as linkNeedsRelations, I as PRESET_CATALOG, z as asBlocksConfig } from "./instances-
|
|
2
|
+
import { F as linkNeedsRelations, I as PRESET_CATALOG, z as asBlocksConfig } from "./instances-CAzvtvlH.js";
|
|
3
3
|
import { a as QUALITY, c as SAAS_LINKED, i as PUBLIC_MEDIA, l as TICKETS, n as CONTROLLED_DOCUMENTS, o as QUOTE_TO_ORDER, r as ERP, s as SAAS } from "./preset-blocks-C0y2C2k5.js";
|
|
4
4
|
// src/config/names.ts
|
|
5
5
|
/** The steps `better-supabase gen` runs, in the order it runs them. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { F as ClaimsMeta, M as BucketPolicyName, N as Casing, T as AccessBucketPolicy, st as SchemaMeta, vt as BucketLifecycle } from "./types-CaYa549m.js";
|
|
3
|
-
import { Et as SubjectsConfig, Ht as BlockNameRegistry, Vt as TablesOf, _ as OwnTablePolicies, a as BlockConfigOf, c as BlockScope, d as DisabledRow, g as NamedInstance, h as InstanceOn, i as BlockConfig, l as BlocksConfig, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, s as BlockName, t as AccessBlockConfig, v as ResolvedBlock, xt as RelationKindOptions, y as TenantScopeConfig } from "./blocks-
|
|
4
|
-
import { Br as DoctorConfig, C as BlockWorker, Er as PresetConventions, Fr as PresetTenantName, Gr as KeysConfig, Hr as GenConfig, Nr as PresetScope, Or as PresetFieldKey, Qr as SpecsConfig, Tr as PresetAccess, Vr as EnvFileConfig, Wr as IntegrationName, Xr as SkillsConfig, Zr as SpecOutputConfig, _r as EntityNoun, b as BlockEnvKey, cn as FIELD_FORMAT_NAMES, dn as FieldFormatName, g as PartDefaults, gi as DefaultAutomation, gr as EntityNames, hi as BlockSchedule, i as BlockCategory, jr as PresetInstance, pt as PortName, qr as OpenApiConfig, si as ActionDescriptor, vr as EntityRename, wr as Preset, x as BlockProvider } from "./define-block-
|
|
3
|
+
import { Et as SubjectsConfig, Ht as BlockNameRegistry, Vt as TablesOf, _ as OwnTablePolicies, a as BlockConfigOf, c as BlockScope, d as DisabledRow, g as NamedInstance, h as InstanceOn, i as BlockConfig, l as BlocksConfig, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, s as BlockName, t as AccessBlockConfig, v as ResolvedBlock, xt as RelationKindOptions, y as TenantScopeConfig } from "./blocks-DbarkJe1.js";
|
|
4
|
+
import { Br as DoctorConfig, C as BlockWorker, Er as PresetConventions, Fr as PresetTenantName, Gr as KeysConfig, Hr as GenConfig, Nr as PresetScope, Or as PresetFieldKey, Qr as SpecsConfig, Tr as PresetAccess, Vr as EnvFileConfig, Wr as IntegrationName, Xr as SkillsConfig, Zr as SpecOutputConfig, _r as EntityNoun, b as BlockEnvKey, cn as FIELD_FORMAT_NAMES, dn as FieldFormatName, g as PartDefaults, gi as DefaultAutomation, gr as EntityNames, hi as BlockSchedule, i as BlockCategory, jr as PresetInstance, pt as PortName, qr as OpenApiConfig, si as ActionDescriptor, vr as EntityRename, wr as Preset, x as BlockProvider } from "./define-block-DLqYhrYF.js";
|
|
5
5
|
import { a as ScalarKind, i as FieldSpec } from "./table-schema-CwXg7oBz.js";
|
|
6
6
|
import { n as ReadType } from "./read-type-BmF8GOkz.js";
|
|
7
7
|
import { a as BlockSqlEmit, r as BlockSqlAction } from "./audit-actions-Dni5Y4wV.js";
|
|
8
8
|
import { t as GuestAction } from "./guest-actions-DfHHp98H.js";
|
|
9
|
-
import { a as AuthorizationProvider, n as AuthorizationMembership, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "./authorization-
|
|
9
|
+
import { a as AuthorizationProvider, n as AuthorizationMembership, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "./authorization-fXe0XyzB.js";
|
|
10
10
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
11
11
|
/**
|
|
12
12
|
* One declared link from an entity of this module to an entity of another
|
|
@@ -1280,6 +1280,42 @@ interface AppTableConfig {
|
|
|
1280
1280
|
* per call. Needs an `encrypted` column and the `audit` block.
|
|
1281
1281
|
*/
|
|
1282
1282
|
readonly auditReads?: boolean;
|
|
1283
|
+
/**
|
|
1284
|
+
* Columns that only members with a permission may change, keyed by group name
|
|
1285
|
+
* (ADR 0216). A `before update` trigger raises `42501` when a listed column
|
|
1286
|
+
* changes and the caller, a signed-in user, lacks `update` in the row's
|
|
1287
|
+
* tenant. The service role and the table owner are not checked. Needs a table
|
|
1288
|
+
* scoped per tenant.
|
|
1289
|
+
*/
|
|
1290
|
+
readonly columnGroups?: Readonly<Record<string, AppColumnGroup>>;
|
|
1291
|
+
/**
|
|
1292
|
+
* Keeps a vector column current from the table's text columns (`@bsb
|
|
1293
|
+
* embedding`, ADR 0229): a trigger enqueues changed rows on pgmq, pg_cron
|
|
1294
|
+
* sends them to an embedding worker through pg_net, and the worker stores the
|
|
1295
|
+
* vector with `<table>_apply_embedding`. Needs the `vector`, `pgmq`, `pg_net`
|
|
1296
|
+
* and `pg_cron` extensions.
|
|
1297
|
+
*/
|
|
1298
|
+
readonly embedding?: AppTableEmbedding;
|
|
1299
|
+
}
|
|
1300
|
+
/** What `appTables.<name>.embedding` sets. */
|
|
1301
|
+
interface AppTableEmbedding {
|
|
1302
|
+
/** Own plain `text` columns, joined with a blank line, that are embedded. */
|
|
1303
|
+
readonly content: readonly string[];
|
|
1304
|
+
/** The vector size: up to 4000 for `halfvec`, 2000 for `vector`. */
|
|
1305
|
+
readonly dimensions: number;
|
|
1306
|
+
/** `halfvec` (the default) or `vector`. */
|
|
1307
|
+
readonly type?: "vector" | "halfvec";
|
|
1308
|
+
/** The pg_cron schedule of the drain job. Defaults to `10 seconds`. */
|
|
1309
|
+
readonly schedule?: string;
|
|
1310
|
+
/** Rows one drain sends to the worker, 1 to 200. Defaults to 20. */
|
|
1311
|
+
readonly batch?: number;
|
|
1312
|
+
}
|
|
1313
|
+
/** A set of columns of one table, and the permission that changes them. */
|
|
1314
|
+
interface AppColumnGroup {
|
|
1315
|
+
/** Own columns of the table. A column belongs to one group at most. */
|
|
1316
|
+
readonly columns: readonly string[];
|
|
1317
|
+
/** The permission key a signed-in user needs in the row's tenant. */
|
|
1318
|
+
readonly update: string;
|
|
1283
1319
|
}
|
|
1284
1320
|
declare const APP_TABLE_EVENT_KINDS: readonly ["created", "updated", "deleted"];
|
|
1285
1321
|
type AppTableEventKind = (typeof APP_TABLE_EVENT_KINDS)[number];
|
|
@@ -4337,6 +4373,27 @@ interface BlockSqlScope {
|
|
|
4337
4373
|
*/
|
|
4338
4374
|
guestParty(tenant: string, type: string, id: string): string;
|
|
4339
4375
|
}
|
|
4376
|
+
/**
|
|
4377
|
+
* One column's `blocks.<name>.values.<table>.<column>`: each label the block
|
|
4378
|
+
* writes or compares, mapped to the value the app's column stores, to several
|
|
4379
|
+
* values (the first is written, every one reads as the label), or to `null` for
|
|
4380
|
+
* a label the app does not support.
|
|
4381
|
+
*/
|
|
4382
|
+
type ValueMap = Readonly<Record<string, string | readonly string[] | null>>;
|
|
4383
|
+
/** `blocks.<name>.values`: logical table to logical column to its map. */
|
|
4384
|
+
type ValueMaps = Readonly<Record<string, Readonly<Record<string, ValueMap>>>>;
|
|
4385
|
+
/**
|
|
4386
|
+
* `values`, checked against the module's tables: every table and column is one
|
|
4387
|
+
* the module declares and lists in `typed`, and every label and value is a
|
|
4388
|
+
* short string.
|
|
4389
|
+
*/
|
|
4390
|
+
declare function checkedValueMaps(where: string, values: unknown, tables: Readonly<Record<string, {
|
|
4391
|
+
readonly columns: Readonly<Record<string, string>>;
|
|
4392
|
+
readonly typed?: readonly string[];
|
|
4393
|
+
readonly mappable?: readonly string[];
|
|
4394
|
+
}>>): ValueMaps;
|
|
4395
|
+
/** The app values `label` reads from, `[]` when the app does not support it. */
|
|
4396
|
+
declare function appValues(map: ValueMap | undefined, label: string): readonly string[];
|
|
4340
4397
|
/** The `BlockSqlContext` methods that cast and map a typed column's values. */
|
|
4341
4398
|
interface BlockSqlValueMethods {
|
|
4342
4399
|
/**
|
|
@@ -4826,4 +4883,4 @@ interface ExtraColumn {
|
|
|
4826
4883
|
/** Its SQL type, such as `text not null default 'en'`. */
|
|
4827
4884
|
readonly type: string;
|
|
4828
4885
|
}
|
|
4829
|
-
export {
|
|
4886
|
+
export { ClaimPaths as $, CORE_BLOCKS as $i, presetApplyCommand as $n, APP_COLUMN_TYPES as $r, ApiConfig as $t, declaredTableColumns as A, CatalogPolicy as Ai, CREATE_URL as An, ResolvedSeedConfig as Ar, GeneratorBlockEntity as At, zod as B, Snapshot as Bi, MAX_DESIGN_CODE_LENGTH as Bn, TopicTriggerLookupConfig as Br, GeneratorNoun as Bt, notNullCheckName as C, CatalogColumnGrant as Ci, PRESET_GROUPS as Cn, ResolvedPresetBlock as Cr, RoleNames as Ct, addedColumnTypes as D, CatalogFunctionArg as Di, defaultPreset as Dn, resolvePreset as Dr, GeneratedFile as Dt, PolicyGrant as E, CatalogFunction as Ei, PresetName as En, removeComposite as Er, CodecsConfig as Et, policyGrants as F, ExtrasFunction as Fi, DesignFile as Fn, SeedSampleSize as Fr, GeneratorFunctionArg as Ft, NuqsGeneratorOptions as G, PostgresFunction as Gi, designFileSource as Gn, VectorSearchConfig as Gr, SourceConfig as Gt, valibot as H, SnapshotExtras as Hi, createUrl as Hn, TopicTriggerTopicConfig as Hr, JsonSchemaSource as Ht, rlsTables as I, ExtrasHook as Ii, DesignParseError as In, SqlBlockDefaults as Ir, GeneratorInput as It, factories as J, RpcFunctionArg as Ji, designSchema as Jn, sameTenantLayout as Jr, DataHooksFramework as Jt, nuqs as K, PostgresFunctionArg as Ki, designFormat as Kn, CONFIG_DEFAULTS as Kr, TableConfig as Kt, TableGrant as L, ExtrasHookFunction as Li, DesignParseIssue as Ln, SqlConfig as Lr, GeneratorInputSchema as Lt, declaredUpdatedAtTriggers as M, CatalogTrigger as Mi, DESIGN_FILE as Mn, SeedConfig as Mr, GeneratorEntitySchemas as Mt, declaredViews as N, CatalogUnique as Ni, DESIGN_FORMAT as Nn, SeedDefaultsConfig as Nr, GeneratorField as Nt, declaredColumnTypes as O, CatalogGrant as Oi, isPresetName as On, BucketConfig as Or, Generator as Ot, extensionSchema as P, ExtrasDomain as Pi, DesignErrorCode as Pn, SeedSampleConfig as Pr, GeneratorFunction as Pt, JsonSchemaTarget as Q, RpcTypeReference as Qi, presetAndDesignOf as Qn, APP_COLUMN_FORMATS as Qr, ResolvedExtensions as Qt, ZodFlavor as R, ExtrasTable as Ri, DesignParseResult as Rn, SqlWorkflow as Rr, GeneratorJsonSchema as Rt, blockSqlVersion as S, CatalogColumn as Si, PRESETS as Sn, ResolvedPreset as Sr, ConfigReferences as St, OwnIndex as T, CatalogForeignKey as Ti, PresetGroup as Tn, presetBlockConflict as Tr, ClaimsConfig as Tt, StandardSchemaGeneratorOptions as U, GeneratorMetadata as Ui, decodeDesign as Un, TopicTriggerValueConfig as Ur, JsonTypeConfig as Ut, ValibotGeneratorOptions as V, SnapshotBucket as Vi, createQuery as Vn, TopicTriggerPayloadValueConfig as Vr, GeneratorTable as Vt, standardSchema as W, PostgresColumn as Wi, designConfig as Wn, VectorDistance as Wr, RelationsConfig as Wt, buildJsonSchema as X, RpcFunctionReturns as Xi, isDesignCode as Xn, auditRegistrations as Xr, FlatConfig as Xt, JsonSchemaGeneratorOptions as Y, RpcFunctionOverload as Yi, encodeDesign as Yn, AuditedTable as Yr, DataHooksSelect as Yt, jsonSchema as Z, RpcReturnColumn as Zi, parseDesign as Zn, APP_COLUMN_ACCESS as Zr, ResolvedConfig as Zt, BlockSqlFile as _, AppTableSubject as _i, ExposeRole as _n, presetSpec as _r, ResolveInput as _t, BlockSqlTableSpec as a, PresetCatalogBlock as aa, AppColumnFormat as ai, BlocksInput as an, safeDesignFileSource as ar, blockEntityRenames as at, BlockSqlUpgrade as b, Catalog as bi, DEFAULT_PRESET_NAME as bn, PresetIntegration as br, BlockTableReference as bt, moduleIdType as c, BlockSqlRead as ca, AppOnDeleteAction as ci, GenGroupConfig as cn, ExpandedConfig as cr, blockSubjectTypes as ct, appValues as d, declareRead as da, AppRollupAggregate as di, ToolingConfig as dn, expandPreset as dr, RENAMED_CONFIG_KEYS as dt, INSTANCE_NAME as ea, APP_ON_DELETE_ACTIONS as ei, AppTableInput as en, presetArgumentOf as er, DEFAULT_CLAIMS as et, checkedValueMaps as f, readArgSource as fa, AppRollupConfig as fi, EntitlementPlansSource as fn, presetConfig as fr, blockEntrySource as ft, BlockSqlEntitlementsProvider as g, AppTableEvents as gi, ExposePrivilege as gn, presetOfSpec as gr, CONFIG_SCHEMA_URL as gt, BlockSqlDeprecation as h, AppTableEventKind as hi, ExposeConfig as hn, presetFromSpec as hr, groupEntries as ht, BlockSqlNames as i, PresetCatalog as ia, AppColumnConfig as ii, BlockInput as in, readDesignFile as ir, blockEntities as it, declaredTables as j, CatalogTable as ji, CreateDesign as jn, ResolvedSqlConfig as jr, GeneratorColumn as jt, declaredIndexes as k, CatalogIndex as ki, namedPreset as kn, RealtimeConfig as kr, GeneratorBlock as kt, ValueMap as l, BlockSqlReadArg as la, AppReference as li, SqlInput as ln, PresetInput as lr, CONFIG_GROUPS as lt, BlockSqlAccessProvider as m, AppTableEmbedding as mi, ColumnPrivilege as mn, PresetSpec as mr, groupConfig as mt, BlockSqlContractFunction as n, BlockCatalog as na, APP_TABLE_EVENT_KINDS as ni, AuthConfig as nn, presetInstallCommand as nr, tenantClaimPaths as nt, MODULE_ID_TYPES as o, PresetCatalogManifest as oa, AppColumnType as oi, DatabaseConfig as on, safeParseDesign as or, blockEventRenames as ot, BlockSql as p, readArgSqlType as pa, AppTableConfig as pi, EntitlementsConfig as pn, presetOf as pr, flattenConfig as pt, FactoriesGeneratorOptions as q, RpcFunction as qi, designOf as qn, DeclaredForeignKey as qr, DataHooksConfig as qt, BlockSqlIdType as r, BlockCatalogEntry as ra, AppColumnAccess as ri, BetterSupabaseConfig as rn, presetKey as rr, BlockEntity as rt, isBlockSqlIdType as s, PresetGlueItem as sa, AppLookupConfig as si, EnvironmentConfig as sn, ConfigConventions as sr, blockFormerFunctions as st, BlockSqlContext as t, instancePrefix as ta, APP_ROLLUP_AGGREGATES as ti, AppTablesInput as tn, presetConfigSource as tr, claimPaths as tt, ValueMaps as u, BlockSqlReadArgType as ua, AppReferenceTarget as ui, TenantConfig as un, conventionConfig as ur, RENAMED_BLOCK_KEYS as ut, BlockSqlLayout as v, AppTableVersions as vi, Privilege as vn, CompositeRemoval as vr, defineConfig as vt, DeclaredView as w, CatalogEnum as wi, PRESET_NAMES as wn, listNames as wr, resolveJsonSchema as wt, OwnView as x, CatalogCheck as xi, NamedPreset as xn, ResolvedComposite as xr, BucketName as xt, BlockSqlTestFile as y, AppTablesConfig as yi, ResolvedExpose as yn, PresetConflict as yr, resolveConfig as yt, ZodGeneratorOptions as z, ForeignKeyAction as zi, DesignTooLongError as zn, TopicTriggerConfig as zr, GeneratorModel as zt };
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { $t as AuthorizationSubject, D as AccessTopicPolicy, E as AccessPolicySql, Gt as AuthorizationChange, Jt as AuthorizationOutcome, Kt as AuthorizationContext, Qt as AuthorizationResourceSource, T as AccessBucketPolicy, Ut as AnyAuthorizer, Wt as AuthorizationCallKind, Xt as AuthorizationRequest, Yt as AuthorizationPurpose, Zt as AuthorizationResource, en as Authorizer, in as RequestMemo, nn as AuthzVersionCache, qt as AuthorizationIntent, rn as PermissionRef, tn as AuthorizerRuntime } from "../types-CaYa549m.js";
|
|
2
2
|
import { m as SessionSnapshot } from "../resolve-DwpH61tV.js";
|
|
3
3
|
import { r as CredentialProvider } from "../provider-BYHu5txM.js";
|
|
4
|
-
import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as AuthorizationVersions } from "../authorization-
|
|
4
|
+
import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as AuthorizationVersions } from "../authorization-fXe0XyzB.js";
|
|
5
5
|
import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-DNjUgOrl.js";
|
|
6
6
|
import { n as ApprovalOptions } from "../server-types-CBa24huI.js";
|
|
7
7
|
import { s as ApiKeyResolverOptions } from "../api-keys-DAPc3sq_.js";
|
|
8
8
|
import { r as AuthzVersionSource } from "../authz-topic-C7n3kIm_.js";
|
|
9
|
-
import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-
|
|
10
|
-
import { n as BlockTables, t as BlockTable } from "../block-tables-
|
|
9
|
+
import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-aNW_fYBI.js";
|
|
10
|
+
import { n as BlockTables, t as BlockTable } from "../block-tables-CdXRHb2v.js";
|
|
11
11
|
/**
|
|
12
12
|
* The types an authorization library implements or reads, in one entry with no
|
|
13
13
|
* runtime code. Every slot is versioned `apiVersion: 1`; a breaking change to
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ClientAuth } from "./bind-
|
|
1
|
+
import { a as ClientAuth } from "./bind-CimlbjXB.js";
|
|
2
2
|
/**
|
|
3
3
|
* A block's client state, framework-agnostic. `subscribe` and `getSnapshot`
|
|
4
4
|
* follow the external-store contract, so React's `useSyncExternalStore`, a Vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as Result } from "./result-CMqlHv82.js";
|
|
2
|
-
import { ai as ActionCall, ii as Action, oi as ActionContext } from "./define-block-
|
|
2
|
+
import { ai as ActionCall, ii as Action, oi as ActionContext } from "./define-block-DLqYhrYF.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
/** A record a conversion reads from or creates: its subject type and id. */
|
|
5
5
|
interface ConversionRef {
|
package/dist/create/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { wr as Preset } from "../define-block-
|
|
3
|
-
import {
|
|
4
|
-
import { b as DesignChange } from "../index-
|
|
5
|
-
import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-
|
|
2
|
+
import { wr as Preset } from "../define-block-DLqYhrYF.js";
|
|
3
|
+
import { En as PresetName, ci as AppOnDeleteAction, ei as APP_ON_DELETE_ACTIONS, jn as CreateDesign, lr as PresetInput, m as BlockSqlAccessProvider, mr as PresetSpec, oi as AppColumnType, ri as AppColumnAccess } from "../context-NgBzQFD8.js";
|
|
4
|
+
import { b as DesignChange } from "../index-BpW3Kn-H.js";
|
|
5
|
+
import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-DTNDqdyT.js";
|
|
6
6
|
import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
|
|
7
7
|
/** What `checkDesign` returns. */
|
|
8
8
|
export type DesignCheck = {
|
package/dist/create/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as APP_ON_DELETE_ACTIONS } from "../instances-
|
|
2
|
-
import { m as diffDesigns } from "../preset-
|
|
3
|
-
import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-
|
|
1
|
+
import { A as APP_ON_DELETE_ACTIONS } from "../instances-CAzvtvlH.js";
|
|
2
|
+
import { m as diffDesigns } from "../preset-D2dg-EVp.js";
|
|
3
|
+
import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-Dhm0C7OR.js";
|
|
4
4
|
// src/create/column-kinds.ts
|
|
5
5
|
/** The groups of the column type picker, in the order it shows them. */
|
|
6
6
|
const KIND_GROUPS = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { st as SchemaMeta } from "../../types-CaYa549m.js";
|
|
2
|
-
import {
|
|
3
|
-
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-
|
|
2
|
+
import { jn as CreateDesign, lr as PresetInput } from "../../context-NgBzQFD8.js";
|
|
3
|
+
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-DTNDqdyT.js";
|
|
4
4
|
import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
|
|
5
5
|
/**
|
|
6
6
|
* The parts of `@supabase/lite` that `liteStack()` uses, typed structurally so
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as appDefaultError } from "../../instances-
|
|
2
|
-
import { n as loadProject } from "../../project-
|
|
1
|
+
import { b as appDefaultError } from "../../instances-CAzvtvlH.js";
|
|
2
|
+
import { n as loadProject } from "../../project-Dhm0C7OR.js";
|
|
3
3
|
import { n as loadLite, t as LITE_INSTALL } from "../../runtime-qslVrC9l.js";
|
|
4
|
-
import { t as defineApi } from "../../api-
|
|
4
|
+
import { t as defineApi } from "../../api-CZGUgEVr.js";
|
|
5
5
|
// src/create/lite/apply.ts
|
|
6
6
|
const MISSING_EXTENSION = /extension "([^"]+)" is not available/u;
|
|
7
7
|
function messageOf$1(error) {
|
|
@@ -4,8 +4,8 @@ import { t as AsyncResult } from "./result-DrBaeIVt.js";
|
|
|
4
4
|
import { i as entityNames, o as tenantNames, r as composeNames } from "./entity-naming-BES3pkQI.js";
|
|
5
5
|
import { a as forwardBlockEvents } from "./cloud-event-IBXVjn84.js";
|
|
6
6
|
import { t as onBlockEvent } from "./block-event-listener-iD8R2IRl.js";
|
|
7
|
-
import { W as dbTransport, o as blockCall } from "./block-helpers-
|
|
8
|
-
import { i as wrapTransport, r as withBlockHooks, t as defineTransportMiddleware } from "./block-hooks-
|
|
7
|
+
import { W as dbTransport, o as blockCall } from "./block-helpers-DApvw3n9.js";
|
|
8
|
+
import { i as wrapTransport, r as withBlockHooks, t as defineTransportMiddleware } from "./block-hooks-mazaapv5.js";
|
|
9
9
|
// src/core/block-names.ts
|
|
10
10
|
const TENANT_COLUMNS = ["organization_id", "active_organization_id"];
|
|
11
11
|
const OPAQUE_KEYS = /* @__PURE__ */ new Set(["fields", "metadata"]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as dbError } from "../errors-CXPerGIl.js";
|
|
2
2
|
import { a as ok, r as err, t as AsyncResult } from "../result-DrBaeIVt.js";
|
|
3
3
|
import { n as event, t as defineEvents } from "../event-map-DxfsFgQT.js";
|
|
4
|
-
import { K as rpcTransport, W as dbTransport, o as blockCall, q as sqlTransport } from "../block-helpers-
|
|
5
|
-
import { a as tenantCredentialRef, i as subjectFor, n as credentialRefInTenant, r as foreignCredentialRef } from "../provider-
|
|
4
|
+
import { K as rpcTransport, W as dbTransport, o as blockCall, q as sqlTransport } from "../block-helpers-DApvw3n9.js";
|
|
5
|
+
import { a as tenantCredentialRef, i as subjectFor, n as credentialRefInTenant, r as foreignCredentialRef } from "../provider-Bkh8zSHN.js";
|
|
6
6
|
import { n as hmacHex, r as timingSafeEqual } from "../hmac-DNcfpmI9.js";
|
|
7
7
|
import { o as verifySharedSecret, s as verifyWebhook } from "../signatures-CcPDTT7D.js";
|
|
8
|
-
import { n as revokeIfConfigured, t as credentialRouter } from "../compose-
|
|
8
|
+
import { n as revokeIfConfigured, t as credentialRouter } from "../compose-Be6lxp05.js";
|
|
9
9
|
// src/credentials/vault.ts
|
|
10
10
|
const MAX_CACHED = 256;
|
|
11
11
|
const invalidRef = (message) => err(dbError("invalid_input", message, { hint: "CREDENTIAL_REF_INVALID" }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as textOf, N as recordsOf, T as optionalText, j as recordOf } from "./block-helpers-
|
|
2
|
-
import { i as moneyOf, o as optionalMoneyOf } from "./money-codec-
|
|
1
|
+
import { B as textOf, N as recordsOf, T as optionalText, j as recordOf } from "./block-helpers-DApvw3n9.js";
|
|
2
|
+
import { i as moneyOf, o as optionalMoneyOf } from "./money-codec-lrXaOqi7.js";
|
|
3
3
|
// src/blocks/deal-forecast.ts
|
|
4
4
|
function sums(row, currency, fn) {
|
|
5
5
|
const at = (key) => moneyOf(row[key], currency, `${fn} ${key}`);
|
|
@@ -9,13 +9,13 @@ import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } fro
|
|
|
9
9
|
import { n as BlockOptions, r as BlockTemporalOptions, s as BlockTenantOptions } from "./block-helpers-gyK33E0Z.js";
|
|
10
10
|
import { r as DbTransportSource, t as BlockTransport } from "./block-transport-BO7p8KHh.js";
|
|
11
11
|
import { a as BlockTransportMiddleware, n as BlockHooks } from "./block-hooks-DOK9DyaZ.js";
|
|
12
|
-
import { f as AiFiles, y as UploadClaimStorage } from "./types-
|
|
13
|
-
import { At as BlockOptionsSchema, m as InstanceKeys, p as EntityConfig } from "./blocks-
|
|
12
|
+
import { f as AiFiles, y as UploadClaimStorage } from "./types-DeKSApwU.js";
|
|
13
|
+
import { At as BlockOptionsSchema, m as InstanceKeys, p as EntityConfig } from "./blocks-DbarkJe1.js";
|
|
14
14
|
import { A as TtlPreset, C as TransformOptions, j as StorageApi, l as ImageTransform } from "./bucket-BIYeIS6c.js";
|
|
15
15
|
import { n as BlockInstanceSurface } from "./db-blocks-BZLF1SQ6.js";
|
|
16
16
|
import { i as EventSink } from "./cloud-event-CQAnJsbp.js";
|
|
17
17
|
import { t as Author } from "./block-authors-C5z3tGVu.js";
|
|
18
|
-
import { g as Workflows } from "./workflows-
|
|
18
|
+
import { g as Workflows } from "./workflows-C6fR7YGm.js";
|
|
19
19
|
import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec } from "./table-schema-CwXg7oBz.js";
|
|
20
20
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
21
21
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as isRecord } from "./guards-CsRa6v57.js";
|
|
2
|
-
import { b as nullableText } from "./block-helpers-
|
|
2
|
+
import { b as nullableText } from "./block-helpers-DApvw3n9.js";
|
|
3
3
|
// src/blocks/notifications/delivery-events.ts
|
|
4
4
|
const DELIVERY_EVENT_KINDS = [
|
|
5
5
|
"delivered",
|
|
@@ -6,8 +6,8 @@ import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
|
6
6
|
import { r as BlockTemporalOptions } from "./block-helpers-gyK33E0Z.js";
|
|
7
7
|
import { t as BlockTransport } from "./block-transport-BO7p8KHh.js";
|
|
8
8
|
import { n as BlockHooks } from "./block-hooks-DOK9DyaZ.js";
|
|
9
|
-
import { $n as AccessRequests, Bn as Attachments, In as AttachmentStorage, jn as AttachmentDownload, kn as Attachment, or as RecordAccessRequest, sr as RecordRequestListOptions } from "./define-block-
|
|
10
|
-
import { p as ApprovalStatus } from "./approvals-
|
|
9
|
+
import { $n as AccessRequests, Bn as Attachments, In as AttachmentStorage, jn as AttachmentDownload, kn as Attachment, or as RecordAccessRequest, sr as RecordRequestListOptions } from "./define-block-DLqYhrYF.js";
|
|
10
|
+
import { p as ApprovalStatus } from "./approvals-C7DjllLP.js";
|
|
11
11
|
/**
|
|
12
12
|
* One entry of the changes feed: a node as it is now, or one that left the
|
|
13
13
|
* tree.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isRecord } from "../guards-CsRa6v57.js";
|
|
2
2
|
import { t as temporal } from "../temporal-required-DK3ImZW6.js";
|
|
3
3
|
import { b as toDecimal, d as money, g as parseMoney, r as allocateMoney, s as isCurrency } from "../money-hWAOR9jq.js";
|
|
4
|
-
import { n as eInvoiceFormatOf, t as eInvoiceChannelOf } from "../channel-
|
|
4
|
+
import { n as eInvoiceFormatOf, t as eInvoiceChannelOf } from "../channel-HoCqE6Xb.js";
|
|
5
5
|
import { r as loadXmlParser, t as el } from "../xml-DN_3DENt.js";
|
|
6
6
|
// src/core/round-div.ts
|
|
7
7
|
/**
|
package/dist/edge/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import { n as dbError } from "../errors-CXPerGIl.js";
|
|
|
2
2
|
import { a as ok, r as err } from "../result-DrBaeIVt.js";
|
|
3
3
|
import { n as validate } from "../standard-BEYqhwCE.js";
|
|
4
4
|
import { o as problemResponse } from "../problem-gZxWhEP2.js";
|
|
5
|
-
import { a as unexpectedResponse, c as extendServer, o as withFlush, s as createServer } from "../adapter-
|
|
5
|
+
import { a as unexpectedResponse, c as extendServer, o as withFlush, s as createServer } from "../adapter-DBO28HF_.js";
|
|
6
6
|
import { c as defaultExpose, f as respond, i as requireCaller, p as settle } from "../kit-Di_OULwH.js";
|
|
7
|
-
import { t as withBetterSupabase } from "../composite-
|
|
7
|
+
import { t as withBetterSupabase } from "../composite-qffn948S.js";
|
|
8
8
|
import { i as defineAction } from "../resource-BdBx2G_b.js";
|
|
9
9
|
import { t as withExtra } from "../extra-Dz9n5y1s.js";
|
|
10
10
|
import { n as resourceRouter } from "../resources-KFaKFjnz.js";
|
|
11
11
|
import { n as corsConfig, t as SUPABASE_CORS_HEADERS } from "../cors-DrDFLMNn.js";
|
|
12
|
-
import { t as EVERY_CALLER } from "../framework-
|
|
12
|
+
import { t as EVERY_CALLER } from "../framework-CD0tHWLN.js";
|
|
13
13
|
import { t as FUNCTION_DESCRIPTOR } from "../function-contract-Bf6llTkE.js";
|
|
14
14
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
15
15
|
import { withCors } from "@supabase/middleware/cors";
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { t as DbException } from "./db-exception-Dv18UZ-I.js";
|
|
2
|
+
import { t as cacheKey } from "./ai-cache-CnmJIQZG.js";
|
|
3
|
+
import { embed, embedMany, jsonSchema, rerank, tool } from "ai";
|
|
4
|
+
// src/ai-sdk/embeddings/embeddings.ts
|
|
5
|
+
/** The name of an SDK model: the string itself, or `provider/modelId`. */
|
|
6
|
+
function modelName(model) {
|
|
7
|
+
return typeof model === "string" ? model : `${model.provider}/${model.modelId}`;
|
|
8
|
+
}
|
|
9
|
+
/** An `Embedder` for the knowledge and memory blocks over `embedMany`. */
|
|
10
|
+
function embedWith(model, options = {}) {
|
|
11
|
+
return {
|
|
12
|
+
apiVersion: 2,
|
|
13
|
+
model: options.name ?? modelName(model),
|
|
14
|
+
embed: async (values, embedOptions) => {
|
|
15
|
+
if (values.length === 0) return { embeddings: [] };
|
|
16
|
+
const shared = {
|
|
17
|
+
model,
|
|
18
|
+
...options.providerOptions === void 0 ? {} : { providerOptions: options.providerOptions },
|
|
19
|
+
...options.dimensions === void 0 ? {} : { dimensions: options.dimensions },
|
|
20
|
+
...embedOptions?.signal === void 0 ? {} : { abortSignal: embedOptions.signal }
|
|
21
|
+
};
|
|
22
|
+
const [only] = values;
|
|
23
|
+
if (values.length === 1 && only !== void 0) {
|
|
24
|
+
const { embedding, usage } = await embed({
|
|
25
|
+
...shared,
|
|
26
|
+
value: only
|
|
27
|
+
});
|
|
28
|
+
return {
|
|
29
|
+
embeddings: [embedding],
|
|
30
|
+
usage: { tokens: usage.tokens }
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const { embeddings, usage } = await embedMany({
|
|
34
|
+
...shared,
|
|
35
|
+
values: [...values],
|
|
36
|
+
maxParallelCalls: options.maxParallelCalls ?? 4
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
embeddings,
|
|
40
|
+
usage: { tokens: usage.tokens }
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A `wrapEmbeddingModel` middleware that answers repeated values from the AI
|
|
47
|
+
* cache block (kind `embed`). Each value has its own entry, keyed by the
|
|
48
|
+
* tenant, provider, model, dimensions, provider options and the value's hash,
|
|
49
|
+
* so a call with some cached values only sends the others to the model. A cache
|
|
50
|
+
* that fails only costs the lookup.
|
|
51
|
+
*/
|
|
52
|
+
function embeddingCacheMiddleware(options) {
|
|
53
|
+
const keyOf = (call, value) => cacheKey({
|
|
54
|
+
type: "embed",
|
|
55
|
+
tenant: options.organizationId ?? null,
|
|
56
|
+
provider: call.model.provider,
|
|
57
|
+
model: call.model.modelId,
|
|
58
|
+
dimensions: call.params.dimensions ?? null,
|
|
59
|
+
providerOptions: call.params.providerOptions ?? null,
|
|
60
|
+
value
|
|
61
|
+
});
|
|
62
|
+
const isVector = (value) => Array.isArray(value) && value.every((x) => typeof x === "number");
|
|
63
|
+
return {
|
|
64
|
+
specificationVersion: "v4",
|
|
65
|
+
wrapEmbed: async (call) => {
|
|
66
|
+
const { values } = call.params;
|
|
67
|
+
const keys = await Promise.all(values.map((v) => keyOf(call, v)));
|
|
68
|
+
const found = await Promise.all(keys.map(async (key) => {
|
|
69
|
+
const entry = await options.cache.get(key);
|
|
70
|
+
if (!entry.ok) {
|
|
71
|
+
options.onError?.(entry.error);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
return isVector(entry.data?.value) ? entry.data.value : void 0;
|
|
75
|
+
}));
|
|
76
|
+
const missing = found.flatMap((vector, index) => vector === void 0 ? [index] : []);
|
|
77
|
+
if (missing.length === 0) return {
|
|
78
|
+
embeddings: found.filter(isVector),
|
|
79
|
+
warnings: []
|
|
80
|
+
};
|
|
81
|
+
const result = await call.model.doEmbed({
|
|
82
|
+
...call.params,
|
|
83
|
+
values: missing.map((index) => values[index] ?? "")
|
|
84
|
+
});
|
|
85
|
+
await Promise.all(missing.map(async (index, position) => {
|
|
86
|
+
const vector = result.embeddings[position];
|
|
87
|
+
const key = keys[index];
|
|
88
|
+
if (vector === void 0 || key === void 0) return;
|
|
89
|
+
found[index] = vector;
|
|
90
|
+
const saved = await options.cache.upsert({
|
|
91
|
+
key,
|
|
92
|
+
value: vector,
|
|
93
|
+
options: {
|
|
94
|
+
ttl: options.ttl,
|
|
95
|
+
kind: "embed",
|
|
96
|
+
model: `${call.model.provider}/${call.model.modelId}`,
|
|
97
|
+
...options.organizationId === void 0 ? {} : { organizationId: options.organizationId }
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
if (!saved.ok) options.onError?.(saved.error);
|
|
101
|
+
}));
|
|
102
|
+
return {
|
|
103
|
+
...result,
|
|
104
|
+
embeddings: found.filter(isVector)
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Reorders the hits of any search (the vector search of the search block, a
|
|
111
|
+
* memory lookup, a SQL function) with a reranking model. `text` reads the text
|
|
112
|
+
* to rank from a hit, and the hits keep their other fields.
|
|
113
|
+
*/
|
|
114
|
+
function rerankHits(model, options) {
|
|
115
|
+
return async (query, hits, rerankOptions) => {
|
|
116
|
+
if (hits.length <= 1) return hits;
|
|
117
|
+
const { ranking } = await rerank({
|
|
118
|
+
model,
|
|
119
|
+
query,
|
|
120
|
+
documents: hits.map(options.text),
|
|
121
|
+
...options.topN === void 0 ? {} : { topN: options.topN },
|
|
122
|
+
...rerankOptions?.signal === void 0 ? {} : { abortSignal: rerankOptions.signal }
|
|
123
|
+
});
|
|
124
|
+
return ranking.flatMap((entry) => {
|
|
125
|
+
const hit = hits[entry.originalIndex];
|
|
126
|
+
if (hit === void 0) return [];
|
|
127
|
+
return [options.withScore ? options.withScore(hit, entry.score) : hit];
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/** Reorders search hits with a reranking model, keeping the best `topN`. */
|
|
132
|
+
function rerankWith(model, options = {}) {
|
|
133
|
+
return async (query, hits, rerankOptions) => {
|
|
134
|
+
if (hits.length <= 1) return hits;
|
|
135
|
+
const { ranking } = await rerank({
|
|
136
|
+
model,
|
|
137
|
+
query,
|
|
138
|
+
documents: hits.map((hit) => hit.content),
|
|
139
|
+
...options.topN === void 0 ? {} : { topN: options.topN },
|
|
140
|
+
...rerankOptions?.signal === void 0 ? {} : { abortSignal: rerankOptions.signal },
|
|
141
|
+
...rerankOptions?.organizationId === void 0 ? {} : {
|
|
142
|
+
runtimeContext: { organizationId: rerankOptions.organizationId },
|
|
143
|
+
telemetry: { includeRuntimeContext: { organizationId: true } }
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
return ranking.flatMap((entry) => {
|
|
147
|
+
const hit = hits[entry.originalIndex];
|
|
148
|
+
return hit === void 0 ? [] : [{
|
|
149
|
+
...hit,
|
|
150
|
+
score: entry.score
|
|
151
|
+
}];
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* A tool that searches the knowledge base as the caller. Each result id is
|
|
157
|
+
* `documentId#index`, the `sourceId` that `toSourceParts` gives it.
|
|
158
|
+
*/
|
|
159
|
+
function searchTool(knowledge, organizationId, options = {}) {
|
|
160
|
+
const { description, results, rerank: reorder, onHits, modelOutput, ...search } = options;
|
|
161
|
+
return tool({
|
|
162
|
+
strict: true,
|
|
163
|
+
description: description ?? "Search the knowledge base for passages relevant to a query. Cite results by their id.",
|
|
164
|
+
inputSchema: jsonSchema({
|
|
165
|
+
type: "object",
|
|
166
|
+
properties: { query: {
|
|
167
|
+
type: "string",
|
|
168
|
+
description: "What to look for"
|
|
169
|
+
} },
|
|
170
|
+
required: ["query"],
|
|
171
|
+
additionalProperties: false
|
|
172
|
+
}),
|
|
173
|
+
...modelOutput === void 0 ? {} : { toModelOutput: ({ output }) => ({
|
|
174
|
+
type: "json",
|
|
175
|
+
value: { results: output.results.map((entry) => ({
|
|
176
|
+
id: entry.id,
|
|
177
|
+
content: entry.content.slice(0, modelOutput.maxCharacters)
|
|
178
|
+
})) }
|
|
179
|
+
}) },
|
|
180
|
+
execute: async ({ query }, { abortSignal }) => {
|
|
181
|
+
const found = await knowledge.search({
|
|
182
|
+
organizationId,
|
|
183
|
+
query,
|
|
184
|
+
...search,
|
|
185
|
+
...abortSignal === void 0 ? {} : { signal: abortSignal }
|
|
186
|
+
});
|
|
187
|
+
if (!found.ok) throw new DbException(found.error);
|
|
188
|
+
const readable = results ? await results(found.data, { query }) : found.data;
|
|
189
|
+
const hits = reorder ? await reorder(query, readable, {
|
|
190
|
+
organizationId,
|
|
191
|
+
...abortSignal === void 0 ? {} : { signal: abortSignal }
|
|
192
|
+
}) : readable;
|
|
193
|
+
onHits?.(hits);
|
|
194
|
+
return { results: hits.map((hit) => ({
|
|
195
|
+
id: sourceId(hit),
|
|
196
|
+
title: hit.title,
|
|
197
|
+
content: hit.content
|
|
198
|
+
})) };
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
const sourceId = (hit) => `${hit.documentId}#${String(hit.index)}`;
|
|
203
|
+
/** One `source-document` part per document among the hits, in hit order. */
|
|
204
|
+
function toSourceParts(hits) {
|
|
205
|
+
const seen = /* @__PURE__ */ new Set();
|
|
206
|
+
const parts = [];
|
|
207
|
+
for (const hit of hits) {
|
|
208
|
+
if (seen.has(hit.documentId)) continue;
|
|
209
|
+
seen.add(hit.documentId);
|
|
210
|
+
parts.push({
|
|
211
|
+
type: "source-document",
|
|
212
|
+
sourceId: sourceId(hit),
|
|
213
|
+
mediaType: "text/plain",
|
|
214
|
+
title: hit.title
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
return parts;
|
|
218
|
+
}
|
|
219
|
+
function supabaseSession(model) {
|
|
220
|
+
const Session = globalThis.Supabase?.ai?.Session;
|
|
221
|
+
if (typeof Session !== "function") throw new TypeError("supabaseEmbed runs in Supabase Edge Functions, where Supabase.ai.Session exists; pass session elsewhere");
|
|
222
|
+
return new Session(model);
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* An `Embedder` over the model built into Supabase Edge Functions. Set the
|
|
226
|
+
* module's `dimensions` option to the model's size (384 for `gte-small`).
|
|
227
|
+
*/
|
|
228
|
+
function supabaseEmbed(options = {}) {
|
|
229
|
+
const name = options.model ?? "gte-small";
|
|
230
|
+
let session = options.session;
|
|
231
|
+
return {
|
|
232
|
+
apiVersion: 1,
|
|
233
|
+
model: `supabase/${name}`,
|
|
234
|
+
embed: async (values) => {
|
|
235
|
+
session ??= supabaseSession(name);
|
|
236
|
+
const vectors = [];
|
|
237
|
+
for (const value of values) {
|
|
238
|
+
const output = await session.run(value, {
|
|
239
|
+
mean_pool: true,
|
|
240
|
+
normalize: true
|
|
241
|
+
});
|
|
242
|
+
if (!Array.isArray(output) || !output.every((x) => typeof x === "number")) throw new TypeError(`Supabase.ai.Session returned no vector for ${name}`);
|
|
243
|
+
vectors.push(output);
|
|
244
|
+
}
|
|
245
|
+
return vectors;
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
export { rerankWith as a, toSourceParts as c, rerankHits as i, embeddingCacheMiddleware as n, searchTool as o, modelName as r, supabaseEmbed as s, embedWith as t };
|