better-supabase 0.52.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{access-sql-DVntbgJf.js → access-sql-DH2LbcQe.js} +2 -1
- package/dist/{adapter-iCMh_XnC.js → adapter-CJa5ys5O.js} +46 -11
- package/dist/{agents-C_VAKJ_s.d.ts → agents-BrLBg0gC.d.ts} +2 -2
- package/dist/{agents-CkRsaxAr.js → agents-CEna9P0O.js} +1 -1
- package/dist/{ai-cache-DV8O7Kav.js → ai-cache-CqNHapwf.js} +1 -1
- package/dist/{ai-files-BD6YE9TZ.js → ai-files-C8n2QKlX.js} +1 -1
- package/dist/{ai-schedules-BMM-ZHOC.d.ts → ai-schedules-Dfbcor59.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +1 -1
- package/dist/ai-sdk/agents/index.js +1 -1
- package/dist/ai-sdk/cache/index.js +1 -1
- package/dist/ai-sdk/embeddings/index.js +1 -1
- package/dist/ai-sdk/files/index.js +1 -1
- package/dist/ai-sdk/workflow/index.d.ts +1 -1
- package/dist/ai-sdk/workflow/index.js +1 -1
- package/dist/{api-YjQpioTT.d.ts → api-CGYctFBt.d.ts} +1 -1
- package/dist/{api-keys-mfwDRWHv.d.ts → api-keys-COJAXdGF.d.ts} +1 -1
- package/dist/{app-tables-D2uN1feV.d.ts → app-tables-CZLNOXeA.d.ts} +1 -1
- package/dist/{approvals-BSweHvij.js → approvals-DCLl96Xf.js} +1 -1
- package/dist/astro/index.d.ts +3 -3
- package/dist/astro/index.js +2 -2
- package/dist/{attachments-DqQ61LfS.js → attachments-Djs8uyat.js} +1 -1
- package/dist/{auth-reply-CgXF76sz.js → auth-reply-CimDH13K.js} +4 -1
- package/dist/{authorization-hk0TAA6-.d.ts → authorization-UYejwQsk.d.ts} +70 -9
- package/dist/{automations-CrdULEET.js → automations-DChuvKPy.js} +1 -1
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-CEN9Us3B.d.ts → bind-D4qLTlY4.d.ts} +11 -7
- package/dist/{block-env-CvQj4rbD.d.ts → block-env-BLBr90is.d.ts} +4 -4
- package/dist/{block-hooks-BIRJauOk.js → block-hooks-Bd5bRM9B.js} +1 -0
- package/dist/{block-subjects-SKkp3d_Q.js → block-subjects-Cvd-RaMY.js} +2 -2
- package/dist/{block-tables-BR6Ckm_1.d.ts → block-tables-BkgafSZd.d.ts} +1 -1
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/access-requests/index.js +10 -10
- package/dist/blocks/accounting/index.d.ts +1 -1
- package/dist/blocks/accounting/index.js +2 -2
- package/dist/blocks/acknowledgements/index.d.ts +1 -1
- package/dist/blocks/acknowledgements/index.js +1 -1
- package/dist/blocks/activities/index.d.ts +2 -2
- package/dist/blocks/activities/index.js +2 -2
- package/dist/blocks/advisories/index.d.ts +1 -1
- package/dist/blocks/advisories/index.js +16 -16
- package/dist/blocks/agent-checkout/index.d.ts +1 -1
- package/dist/blocks/agent-checkout/index.js +11 -11
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/agents/index.js +11 -11
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.js +3 -3
- package/dist/blocks/ai-chat/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.js +10 -10
- package/dist/blocks/ai-evals/index.d.ts +1 -1
- package/dist/blocks/ai-evals/index.js +3 -3
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-files/index.js +3 -3
- package/dist/blocks/ai-guardrails/index.d.ts +1 -1
- package/dist/blocks/ai-guardrails/index.js +5 -5
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.js +8 -8
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.js +3 -3
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/announcements/index.js +8 -8
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/api-keys/index.js +1 -1
- package/dist/blocks/appraisals/index.d.ts +1 -1
- package/dist/blocks/appraisals/index.js +12 -12
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/approvals/index.js +2 -2
- package/dist/blocks/assets/index.d.ts +2 -2
- package/dist/blocks/assets/index.js +2 -2
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/assignment/index.js +2 -2
- package/dist/blocks/attachments/index.d.ts +5 -5
- package/dist/blocks/attachments/index.js +2 -2
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/audit/index.js +1 -1
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/automations/index.js +12 -12
- package/dist/blocks/banking/index.d.ts +1 -1
- package/dist/blocks/banking/index.js +2 -2
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billable-time/index.js +2 -2
- package/dist/blocks/billing/index.d.ts +3 -3
- package/dist/blocks/billing/index.js +1 -1
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bookings/index.js +1 -1
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/bulk/index.js +5 -5
- 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 +37 -46
- package/dist/blocks/care-plans/index.d.ts +3 -3
- package/dist/blocks/care-plans/index.js +2 -2
- package/dist/blocks/cases/index.d.ts +3 -3
- package/dist/blocks/cases/index.js +2 -2
- package/dist/blocks/catalog/index.d.ts +2 -2
- package/dist/blocks/catalog/index.js +2 -2
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/channels/index.js +7 -7
- package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
- package/dist/blocks/clinical-decision-support/index.js +11 -11
- package/dist/blocks/cms/index.d.ts +5 -5
- package/dist/blocks/cms/index.js +7 -7
- package/dist/blocks/collaboration/index.d.ts +6 -6
- package/dist/blocks/collaboration/index.js +8 -8
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/collections/index.js +10 -10
- package/dist/blocks/comments/index.d.ts +2 -2
- package/dist/blocks/comments/index.js +1 -1
- package/dist/blocks/commerce/index.d.ts +5 -5
- package/dist/blocks/commerce/index.js +7 -7
- package/dist/blocks/commissions/index.d.ts +1 -1
- package/dist/blocks/commissions/index.js +11 -11
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/compliance/index.js +11 -11
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/connectors/index.js +11 -11
- package/dist/blocks/consents/index.d.ts +2 -2
- package/dist/blocks/consents/index.js +2 -2
- package/dist/blocks/contacts/index.d.ts +2 -2
- package/dist/blocks/contacts/index.js +2 -2
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/content/index.js +2 -2
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/contracts/index.js +12 -12
- package/dist/blocks/courses/index.d.ts +3 -3
- package/dist/blocks/courses/index.js +2 -2
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/created-by/index.js +2 -2
- package/dist/blocks/crm/index.d.ts +17 -17
- package/dist/blocks/crm/index.js +19 -19
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.js +11 -11
- package/dist/blocks/dam/index.d.ts +2 -2
- package/dist/blocks/dam/index.js +11 -11
- package/dist/blocks/data-lifecycle/index.d.ts +2 -2
- package/dist/blocks/data-lifecycle/index.js +1 -1
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/deals/index.js +2 -2
- package/dist/blocks/dispatch/index.d.ts +2 -2
- package/dist/blocks/dispatch/index.js +2 -2
- package/dist/blocks/document-templates/index.d.ts +1 -1
- package/dist/blocks/document-templates/index.js +10 -10
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/documents/index.js +9 -9
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/domains/index.js +10 -10
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/donations/index.js +12 -12
- package/dist/blocks/drive/index.d.ts +5 -5
- package/dist/blocks/drive/index.js +4 -4
- package/dist/blocks/e-prescribing/index.d.ts +1 -1
- package/dist/blocks/e-prescribing/index.js +11 -11
- package/dist/blocks/employees/index.d.ts +1 -1
- package/dist/blocks/employees/index.js +2 -2
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrichment/index.js +2 -2
- package/dist/blocks/enrollments/index.d.ts +2 -2
- package/dist/blocks/enrollments/index.js +2 -2
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/entitlements/index.js +2 -2
- package/dist/blocks/events/index.d.ts +3 -3
- package/dist/blocks/events/index.js +5 -5
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/expenses/index.js +18 -18
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/field-history/index.js +2 -2
- package/dist/blocks/filespace/index.d.ts +8 -8
- package/dist/blocks/filespace/index.js +9 -9
- package/dist/blocks/finance/index.d.ts +5 -5
- package/dist/blocks/finance/index.js +7 -7
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/flags/index.js +9 -9
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.js +2 -2
- package/dist/blocks/forms/index.d.ts +3 -3
- package/dist/blocks/forms/index.js +1 -1
- package/dist/blocks/funding/index.d.ts +2 -2
- package/dist/blocks/funding/index.js +2 -2
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/goals/index.js +2 -2
- package/dist/blocks/governance/index.d.ts +4 -4
- package/dist/blocks/governance/index.js +6 -6
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/guests/index.js +2 -2
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/hiring/index.js +2 -2
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/identities/index.js +3 -3
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/imports/index.js +8 -8
- package/dist/blocks/inbox/index.d.ts +6 -6
- package/dist/blocks/inbox/index.js +1 -1
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/incidents/index.js +12 -12
- package/dist/blocks/index.d.ts +6 -6
- package/dist/blocks/index.js +8 -7
- package/dist/blocks/inspections/index.d.ts +2 -2
- package/dist/blocks/inspections/index.js +19 -19
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/inventory/index.js +2 -2
- package/dist/blocks/invoices/index.d.ts +1 -1
- package/dist/blocks/invoices/index.js +2 -2
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/knowledge/index.js +2 -2
- package/dist/blocks/lead-scoring/index.d.ts +2 -2
- package/dist/blocks/lead-scoring/index.js +2 -2
- package/dist/blocks/learning/index.d.ts +3 -3
- package/dist/blocks/learning/index.js +5 -5
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leases/index.js +11 -11
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/leave/index.js +2 -2
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/ledger/index.js +12 -12
- package/dist/blocks/legal-entities/index.d.ts +2 -2
- package/dist/blocks/legal-entities/index.js +7 -7
- package/dist/blocks/lims/index.d.ts +2 -2
- package/dist/blocks/lims/index.js +14 -14
- package/dist/blocks/mail-sync/index.d.ts +3 -3
- package/dist/blocks/mail-sync/index.js +2 -2
- package/dist/blocks/maintenance/index.d.ts +2 -2
- package/dist/blocks/maintenance/index.js +2 -2
- package/dist/blocks/manufacturing/index.d.ts +2 -2
- package/dist/blocks/manufacturing/index.js +9 -9
- package/dist/blocks/medications/index.d.ts +1 -1
- package/dist/blocks/medications/index.js +2 -2
- package/dist/blocks/meetings/index.d.ts +3 -3
- package/dist/blocks/meetings/index.js +2 -2
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memberships/index.js +2 -2
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/memory/index.js +4 -4
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/messaging/index.js +14 -14
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/metrics/index.js +3 -3
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/mfa/index.js +3 -3
- package/dist/blocks/moderation/index.d.ts +2 -2
- package/dist/blocks/moderation/index.js +14 -14
- package/dist/blocks/notifications/index.d.ts +5 -5
- package/dist/blocks/notifications/index.js +2 -2
- 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 +9 -9
- package/dist/blocks/observations/index.d.ts +2 -2
- package/dist/blocks/observations/index.js +2 -2
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.js +1 -1
- package/dist/blocks/orders/index.d.ts +1 -1
- package/dist/blocks/orders/index.js +2 -2
- 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 +1 -1
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/passes/index.js +2 -2
- package/dist/blocks/payroll-export/index.d.ts +2 -2
- package/dist/blocks/payroll-export/index.js +2 -2
- package/dist/blocks/people/index.d.ts +7 -7
- package/dist/blocks/people/index.js +9 -9
- package/dist/blocks/periods/index.d.ts +1 -1
- package/dist/blocks/periods/index.js +9 -9
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/permissions/index.js +3 -3
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.js +2 -2
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/posts/index.js +13 -13
- package/dist/blocks/procurement/index.d.ts +5 -5
- package/dist/blocks/procurement/index.js +7 -7
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/profiles/index.js +2 -2
- package/dist/blocks/projects/index.d.ts +7 -7
- package/dist/blocks/projects/index.js +9 -9
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/promotions/index.js +2 -2
- package/dist/blocks/prompts/index.d.ts +1 -1
- package/dist/blocks/prompts/index.js +3 -3
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/push/index.js +7 -7
- package/dist/blocks/qualifications/index.d.ts +2 -2
- package/dist/blocks/qualifications/index.js +2 -2
- package/dist/blocks/queue/index.d.ts +2 -2
- package/dist/blocks/queue/index.js +2 -2
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/quotes/index.js +2 -2
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/rank/index.js +3 -3
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/reactions/index.js +1 -1
- package/dist/blocks/recruiting/index.d.ts +4 -4
- package/dist/blocks/recruiting/index.js +6 -6
- package/dist/blocks/referrals/index.d.ts +1 -1
- package/dist/blocks/referrals/index.js +10 -10
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/relations/index.js +8 -8
- 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 +10 -10
- package/dist/blocks/rfqs/index.d.ts +2 -2
- package/dist/blocks/rfqs/index.js +2 -2
- package/dist/blocks/risks/index.d.ts +2 -2
- package/dist/blocks/risks/index.js +14 -14
- package/dist/blocks/saas/index.d.ts +13 -13
- package/dist/blocks/saas/index.js +14 -14
- 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 +3 -3
- package/dist/blocks/saved-views/index.js +8 -8
- package/dist/blocks/scheduling/index.d.ts +4 -4
- package/dist/blocks/scheduling/index.js +6 -6
- package/dist/blocks/scores/index.d.ts +2 -2
- package/dist/blocks/scores/index.js +10 -10
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/search/index.js +1 -1
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/security-events/index.js +8 -8
- package/dist/blocks/segments/index.d.ts +2 -2
- package/dist/blocks/segments/index.js +2 -2
- package/dist/blocks/sequences/index.d.ts +3 -3
- package/dist/blocks/sequences/index.js +2 -2
- package/dist/blocks/service/index.d.ts +7 -7
- package/dist/blocks/service/index.js +9 -9
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.js +8 -8
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +4 -4
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/settings/index.js +2 -2
- 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 +2 -2
- package/dist/blocks/shipments/index.d.ts +2 -2
- package/dist/blocks/shipments/index.js +10 -10
- package/dist/blocks/signatures/index.d.ts +2 -2
- package/dist/blocks/signatures/index.js +1 -1
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/signing-keys/index.js +7 -7
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sla/index.js +2 -2
- package/dist/blocks/sso/index.d.ts +2 -2
- package/dist/blocks/sso/index.js +20 -20
- 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 +1 -1
- package/dist/blocks/support/index.d.ts +5 -5
- package/dist/blocks/support/index.js +7 -7
- 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 +2 -2
- package/dist/blocks/tax/index.d.ts +2 -2
- package/dist/blocks/tax/index.js +2 -2
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/teams/index.js +1 -1
- package/dist/blocks/templates/index.d.ts +1 -1
- package/dist/blocks/templates/index.js +7 -7
- package/dist/blocks/tills/index.d.ts +1 -1
- package/dist/blocks/tills/index.js +12 -12
- package/dist/blocks/time-tracking/index.d.ts +2 -2
- package/dist/blocks/time-tracking/index.js +1 -1
- package/dist/blocks/timeline/index.d.ts +1 -1
- package/dist/blocks/timeline/index.js +1 -1
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/trash/index.js +1 -1
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/undo/index.js +3 -3
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.js +2 -2
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/usage/index.js +3 -3
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/vercel-marketplace/index.js +9 -9
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/versions/index.js +1 -1
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.js +10 -10
- package/dist/blocks/warehouse/index.d.ts +1 -1
- package/dist/blocks/warehouse/index.js +12 -12
- package/dist/blocks/webhooks/index.d.ts +2 -2
- package/dist/blocks/webhooks/index.js +19 -19
- package/dist/blocks/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflow-editor/index.js +7 -7
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/blocks/workflows/index.js +8 -8
- package/dist/{blocks-C_ArClZU.d.ts → blocks-EFj0duwB.d.ts} +18 -5
- package/dist/{build-k56UjnbK.js → build-OCuu29wd.js} +1 -0
- package/dist/{cache-tags-JJWT0mkn.d.ts → cache-tags-TT8h2zMg.d.ts} +1 -1
- package/dist/claims/index.d.ts +3 -3
- package/dist/cli/{account-CBDO_E5S.js → account-C1vKOJOX.js} +1 -1
- package/dist/cli/{account-D7bjOpRN.js → account-MSvhufSp.js} +1 -1
- package/dist/cli/{add-7mEozwbY.js → add-C3yGPSQS.js} +14 -14
- package/dist/cli/add-C4B2wdfz.js +1 -0
- package/dist/cli/{add-Cn03PJzF.js → add-DlucpPCL.js} +4 -4
- package/dist/cli/{app-table-files-C50U5rM-.js → app-table-files-CC5n8Si8.js} +4 -4
- package/dist/cli/{app-tables-CvY1qzV7.js → app-tables-C-Rk_GnI.js} +3 -3
- package/dist/cli/{authorization-DJkkOjjG.js → authorization-DAYgx04b.js} +3 -1
- package/dist/cli/{automations-Mx4gbtJf.js → automations-0G37FqXw.js} +1 -1
- package/dist/cli/{backfill-D8xu2ME9.js → backfill-DbqA8coR.js} +4 -4
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-C-bZ2mX9.js → blocks-BBBpNbQD.js} +1 -1
- package/dist/cli/{blocks-CFYBoQVe.js → blocks-BFlOktiM.js} +3 -3
- package/dist/cli/{cache-vvJW9h-r.js → cache-BgNWPD9a.js} +1 -1
- package/dist/cli/{codemod-CR3I3yN9.js → codemod-B4DpCiqX.js} +34 -4
- package/dist/cli/{command-CJomeJg-.js → command-CLvgELKk.js} +6 -0
- package/dist/cli/{completion-BbBXWoj-.js → completion-BrARDcFB.js} +1 -1
- package/dist/cli/{completion-CxG9ycKP.js → completion-CifzoO8f.js} +2 -2
- package/dist/cli/{completion-CN2g0Fy_.js → completion-Q1M-cdP-.js} +2 -2
- package/dist/cli/{config-CP9zs7sG.js → config-COfXd-G3.js} +1 -1
- package/dist/cli/{config-C0aclGpw.js → config-FN5Cp861.js} +30 -5
- package/dist/cli/{config-BxiYiAN6.js → config-U32Vo0h6.js} +1 -1
- package/dist/cli/{content-mapper-BPtXLD3N.js → content-mapper-BaJhpTQA.js} +2 -2
- package/dist/cli/{db-kIWj4SJu.js → db-T8u160uM.js} +3 -3
- package/dist/cli/{doctor-0vyTC81z.js → doctor-Dnq5J_p_.js} +293 -103
- package/dist/cli/env-BMQqBhS_.js +1 -0
- package/dist/cli/{env-D8ndoCoC.js → env-G6fCEgJi.js} +1 -1
- package/dist/cli/{gen-CxJYiySd.js → gen-Bf9cVgpR.js} +16 -16
- package/dist/cli/index.d.ts +18 -1
- package/dist/cli/index.js +9 -9
- package/dist/cli/{init-CHBWJGSc.js → init-_IFg5fe6.js} +11 -11
- package/dist/cli/{keys-DjNcartA.js → keys-BnVLA3NK.js} +1 -1
- package/dist/cli/{live-De6AKObd.js → live-pq1yvvsl.js} +2 -2
- package/dist/cli/{mcp-Bw7PKU4b.js → mcp-YD0Ap6ok.js} +3 -3
- package/dist/cli/{metadata-BRrfdS8c.js → metadata-CfauXPW0.js} +3 -3
- package/dist/cli/{migrate-CR7e0qjQ.js → migrate-DWCu2Nny.js} +2 -2
- package/dist/cli/{migration-safety-Cy-T3xws.js → migration-safety-rjlsDMDU.js} +3 -3
- package/dist/cli/{migrations-C6DXXH2j.js → migrations-BRCqeu8k.js} +2 -2
- package/dist/cli/{module-migration-B-VqMxE-.js → module-migration-BpptcXiB.js} +2 -2
- package/dist/cli/{moved-CC2yanOJ.js → moved-B_XzRpRE.js} +1 -1
- package/dist/cli/{parse-BaW3_Itq.js → parse-BwGYCpEv.js} +1 -1
- package/dist/cli/powersync-BejxIowk.js +1 -0
- package/dist/cli/{powersync-CK8AR-WC.js → powersync-DsbJBuTR.js} +4 -4
- package/dist/cli/{print-DnZdC-oy.js → print-A9UGTj_t.js} +2 -2
- package/dist/cli/{providers-WCZgGeBy.js → providers-MlTm8nMs.js} +2 -2
- package/dist/cli/{prune-workflows-B69exaiW.js → prune-workflows-B6sqjrR0.js} +4 -4
- package/dist/cli/{remove-8f3luaAm.js → remove-BpY-E_l4.js} +8 -8
- package/dist/cli/{render-CZw4nKPe.js → render-8qD7j0se.js} +173 -64
- package/dist/cli/{run-BEKT_kd3.js → run-CAvLtfJG.js} +2 -2
- package/dist/cli/{run-R1XanA6K.js → run-DHRA46qf.js} +53 -52
- package/dist/cli/{run-C7VeseCS.js → run-Dl1TZGsM.js} +45 -11
- package/dist/cli/{seed-Q0D1Vr2S.js → seed-BgpovbwF.js} +4 -4
- package/dist/cli/seed-CRD1tYPA.js +1 -0
- package/dist/cli/{shared-B4Lw35PY.js → shared-B77Q9x0E.js} +1 -1
- package/dist/cli/{skills-BGn6lqa3.js → skills-aC7X7bhq.js} +1 -1
- package/dist/cli/{snapshot-Cj8BlMTz.js → snapshot-_roTbSZM.js} +26 -5
- package/dist/cli/{source-D1s75o6g.js → source-BseR3sy9.js} +1 -1
- package/dist/cli/{source-args-B3Po6qsn.js → source-args-DC8snM7e.js} +1 -1
- package/dist/cli/{spec-L6nabkxl.js → spec-Ct3i4drt.js} +3 -3
- package/dist/cli/{spec-CvKK1F-_.js → spec-n6QRlBOJ.js} +1 -1
- package/dist/cli/{sql-layout-D2H2DL4t.js → sql-layout-D_fJsw3B.js} +11 -4
- package/dist/cli/{stack-DzA4tS9O.js → stack-DINh7KWu.js} +1 -1
- package/dist/cli/{sync-6b06cM1c.js → sync-DqBQi0QQ.js} +6 -6
- package/dist/cli/{table-CSiri9RG.js → table-Cup45iWj.js} +1 -1
- package/dist/cli/{upgrade-C91Jw5xZ.js → upgrade-MRqrFaO1.js} +3 -3
- package/dist/cli/{upgrade-c7oPXvNG.js → upgrade-y3Iv4wl8.js} +5 -5
- package/dist/cli/{version-_XjqP_ML.js → version-CiE6Pt0K.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.d.ts +4 -4
- package/dist/client/native/index.js +1 -1
- package/dist/{composite-DuN-BnSc.js → composite-CgxTMZTK.js} +1 -1
- package/dist/{composite-B3L12SH4.d.ts → composite-CvlcYj8Y.d.ts} +4 -4
- package/dist/{composite-reads-MV2aCxBz.js → composite-reads-B99Cfmcf.js} +1 -1
- package/dist/{composite-reads-BIUJE_Rs.d.ts → composite-reads-CEI-IJ5A.d.ts} +1 -1
- package/dist/config/index.d.ts +5 -5
- package/dist/config/index.js +4 -4
- package/dist/{config-BOc24DLJ.js → config-B1m2PpjB.js} +1 -1
- package/dist/{config-7TP5XUaX.js → config-BWYT86yp.js} +3 -3
- package/dist/{context-DyXTQUb_.d.ts → context-DcHcHc2b.d.ts} +38 -4
- package/dist/contract/index.d.ts +6 -6
- package/dist/{controller-BHEUaOKo.d.ts → controller-BrTPi8Po.d.ts} +1 -1
- package/dist/{controller-o6DleXLi.js → controller-DvihM19C.js} +1 -1
- package/dist/{conversion-BBIeUsfd.d.ts → conversion-t1F0y--Y.d.ts} +1 -1
- package/dist/{copy-DurB738g.js → copy-DJBlRqH6.js} +1 -1
- package/dist/create/index.d.ts +4 -4
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +19 -2
- package/dist/create/lite/index.js +55 -3
- package/dist/{create-blocks-C6Ty49vp.js → create-blocks-CkhSm4iX.js} +117 -5
- package/dist/credentials/index.js +4 -4
- package/dist/{db-blocks-CFqt-e4_.d.ts → db-blocks-Dp-4qbYN.d.ts} +18 -0
- package/dist/{define-C2OUEXIf.js → define-UhyrfLYX.js} +147 -100
- package/dist/{define-block-DHOCtKKS.d.ts → define-block-B2um61Uj.d.ts} +65 -6
- package/dist/{define-block-DyZiZQrx.js → define-block-D3uNVp2k.js} +1 -0
- package/dist/{drive-C2o3Xx_i.d.ts → drive-BSp7gloI.d.ts} +1 -1
- package/dist/edge/index.d.ts +5 -5
- package/dist/edge/index.js +3 -3
- package/dist/{embeddings-yvAeg_C7.js → embeddings-BamT6vln.js} +1 -1
- package/dist/{entitlements-Ckadglcj.js → entitlements-B2rEDiKh.js} +1 -1
- package/dist/{entitlements-DIVgwFPk.d.ts → entitlements-DuNBTDsH.d.ts} +1 -1
- package/dist/error-kind-Bkmljt19.js +40 -0
- package/dist/eve/index.js +1 -1
- package/dist/{event-map-DxfsFgQT.js → event-map-DLajpFiJ.js} +2 -0
- package/dist/events/index.js +1 -1
- package/dist/events-CCw0FE_F.js +25 -0
- package/dist/{executor-BN24zqcr.js → executor-Bed-RLhP.js} +3 -3
- package/dist/{executor-CTiacxbx.js → executor-DhQDDIqq.js} +1 -1
- package/dist/{executor-ClpWppJK.d.ts → executor-RNhfR91D.d.ts} +2 -2
- package/dist/expo/index.d.ts +2 -2
- package/dist/expo/index.js +2 -2
- package/dist/{extract-CrOX8i1t.d.ts → extract-DvU_lPRQ.d.ts} +1 -1
- package/dist/{field-errors-B9cPS36j.d.ts → field-errors-Mo8dzoyA.d.ts} +6 -6
- package/dist/{framework-GAR2no7D.js → framework-BfP8NwDY.js} +1 -1
- package/dist/{framework-G-kFZ_Zu.d.ts → framework-BoDTo47q.d.ts} +3 -3
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +2 -2
- package/dist/{index-OXEh0xet.d.ts → index-46Mwoxp8.d.ts} +4 -4
- package/dist/{index-70sHeLK0.d.ts → index-B2zDRJMB.d.ts} +1 -1
- package/dist/{index-Cq91CC2i.d.ts → index-BDEwjrNn.d.ts} +1 -1
- package/dist/{index-Bh-mcFvM.d.ts → index-BFw-iTQT.d.ts} +1 -1
- package/dist/{index-DS1cREWV.d.ts → index-BGje-MeF.d.ts} +1 -1
- package/dist/{index-C9rUCq13.d.ts → index-BLRLF6iG.d.ts} +1 -1
- package/dist/{index-WdVPDjby.d.ts → index-BLpP1czF.d.ts} +1 -1
- package/dist/{index-CekZhXD2.d.ts → index-BMt0EVnl.d.ts} +1 -1
- package/dist/{index-DX0AQN4S.d.ts → index-BPz1IGUB.d.ts} +1 -1
- package/dist/{index-Cu7TSSiT.d.ts → index-Bdd-8C1P.d.ts} +2 -2
- package/dist/{index-xaSPPgB7.d.ts → index-BpCBGOVF.d.ts} +3 -3
- package/dist/{index-Bl44eUq9.d.ts → index-Bxu7m8vw.d.ts} +1 -1
- package/dist/{index--qIecGmt.d.ts → index-C2ilfaOF.d.ts} +1 -1
- package/dist/{index-A9U5y90N.d.ts → index-C3pOr989.d.ts} +1 -1
- package/dist/{index-Rj_9oAEO.d.ts → index-C8-8-t1s.d.ts} +2 -2
- package/dist/{index-Dfm7cQdw.d.ts → index-CNNGDSxy.d.ts} +2 -2
- package/dist/{index--qWRLdDu.d.ts → index-CV7Ibpek.d.ts} +1 -1
- package/dist/{index-Bo_5VFCD.d.ts → index-C_Ilif3i.d.ts} +1 -1
- package/dist/{index-DOPaoauk.d.ts → index-CaMHCzBp.d.ts} +1 -1
- package/dist/{index-XhmH0QFF.d.ts → index-CnQ27iFg.d.ts} +2 -2
- package/dist/{index-DGPYJUsm.d.ts → index-DLKMzlbR.d.ts} +1 -1
- package/dist/{index-Csx1g10j.d.ts → index-DNdYTori.d.ts} +2 -2
- package/dist/{index-DXlGFVDA.d.ts → index-DTqpt8XQ.d.ts} +1 -1
- package/dist/{index-C0MuI4v1.d.ts → index-DaClvzRy.d.ts} +4 -4
- package/dist/{index-CVOgOU3Z.d.ts → index-DfuF_8Ph.d.ts} +1 -1
- package/dist/{index-DL-X_e7F.d.ts → index-Dndo_is2.d.ts} +6 -5
- package/dist/{index-DxRrnBQR.d.ts → index-ISihFGu9.d.ts} +7 -7
- package/dist/{index-Cq6sRJPI.d.ts → index-OHQg8Sdx.d.ts} +3 -3
- package/dist/{index-BU5ifSPf.d.ts → index-PeaYXjhx.d.ts} +1 -1
- package/dist/{index-AAC2eWs-.d.ts → index-TNNEpcgG.d.ts} +4 -4
- package/dist/{index-Bksw5AoY.d.ts → index-Xsu3egx_.d.ts} +20 -9
- package/dist/{index-CUS-3XG1.d.ts → index-YgUHItkp.d.ts} +1 -1
- package/dist/{index-DERMRibg.d.ts → index-Zf3t4MuL.d.ts} +17 -10
- package/dist/{index-BKsK1OFh.d.ts → index-bOWESOEm.d.ts} +2 -2
- package/dist/{index-CqtV72-L.d.ts → index-kKkGf0_-.d.ts} +3 -3
- package/dist/{index-BFCUcLda.d.ts → index-s1IQy8sK.d.ts} +2 -2
- package/dist/{index-3QwzddR3.d.ts → index-xA8WHuDE.d.ts} +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/{instances-B3gBKh8G.js → instances-CFXFHQMK.js} +2 -1
- package/dist/{knowledge-CJhz_QTb.js → knowledge-5Qz_NTXw.js} +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-yg-W4BlQ.d.ts → list-query-CREBmVkm.d.ts} +1 -1
- package/dist/{manifest-BoOhT_Sh.d.ts → manifest-09aHVu5Q.d.ts} +1 -1
- package/dist/{manifest-CnyT7c1s.d.ts → manifest-0PeNUYcv.d.ts} +1 -1
- package/dist/{manifest-Q9_hEoaz.js → manifest-0UcJEkVv.js} +10 -10
- package/dist/{manifest-C6Tpng5m.js → manifest-5f_9qQnw.js} +9 -9
- package/dist/{manifest-CVL8uWZM.js → manifest-8oyDNj1x.js} +10 -10
- package/dist/{manifest-BGfX8wev.js → manifest-B-GhBRkt.js} +10 -10
- package/dist/{manifest-Dy1YssHm.js → manifest-B-LuM8VG.js} +7 -7
- package/dist/{manifest-Btbo698t.js → manifest-B-wRV_0N.js} +13 -13
- package/dist/{manifest-DGWojJC1.js → manifest-B1CzCbIE.js} +13 -13
- package/dist/{manifest-DDd8ppp7.d.ts → manifest-B3RgCccj.d.ts} +1 -1
- package/dist/{manifest-vUGVlXLh.d.ts → manifest-B3YkuXKR.d.ts} +1 -1
- package/dist/{manifest-H9u744d9.js → manifest-B3b2Y84h.js} +3 -3
- package/dist/{manifest-3bD3TaDt.d.ts → manifest-B3xj3-ew.d.ts} +1 -1
- package/dist/{manifest-BO4rlrML.d.ts → manifest-B4HXWUh8.d.ts} +1 -1
- package/dist/{manifest-CAwbcrJO.d.ts → manifest-B5vPAt-u.d.ts} +1 -1
- package/dist/{manifest-xoePLm1M.js → manifest-B7-Numjr.js} +13 -13
- package/dist/{manifest-Cc3wO1KI.js → manifest-BEeu_r4Y.js} +3 -3
- package/dist/{manifest-urrijhoM.d.ts → manifest-BFXybbMn.d.ts} +1 -1
- package/dist/{manifest-BY60j47w.js → manifest-BHAaE8V8.js} +5 -5
- package/dist/{manifest-D-Cq1TTO.js → manifest-BKJXc9sY.js} +3 -3
- package/dist/{manifest-D3sWX05O.d.ts → manifest-BLOufikB.d.ts} +1 -1
- package/dist/{manifest-D_wDGSVQ.js → manifest-BNT_WDkt.js} +5 -5
- package/dist/{manifest-N4AW74PT.js → manifest-BQhSqR4D.js} +14 -14
- package/dist/{manifest-Bc10Mthq.js → manifest-BRFen7mE.js} +31 -31
- package/dist/{manifest-CS9W2n9y.js → manifest-BSaRwzEH.js} +12 -12
- package/dist/{manifest-BvTS58t8.js → manifest-BUktyXMR.js} +22 -22
- package/dist/{manifest-BHthvzO5.d.ts → manifest-BUrKk2Ww.d.ts} +1 -1
- package/dist/{manifest-BhL35Pr2.js → manifest-BVAHowRk.js} +12 -12
- package/dist/{manifest-gA_niypr.js → manifest-BWh9leJI.js} +8 -8
- package/dist/{manifest-DKZEyfK6.js → manifest-BXN6WKgs.js} +3 -3
- package/dist/{manifest-Cds0y0r4.d.ts → manifest-BYUIgwGb.d.ts} +1 -1
- package/dist/{manifest-B4E33DXF.d.ts → manifest-Bc_2t9mY.d.ts} +1 -1
- package/dist/{manifest-CQOdY5Cc.d.ts → manifest-BdcBkznK.d.ts} +1 -1
- package/dist/{manifest-CkeHPwD_.d.ts → manifest-Bg1swpdk.d.ts} +1 -1
- package/dist/{manifest-DgsbIFLv.js → manifest-BhKkBdlV.js} +11 -11
- package/dist/{manifest-D25mxZdE.js → manifest-BnFuyvL7.js} +8 -8
- package/dist/{manifest-eUnjSmkX.js → manifest-BnJqvwXA.js} +14 -14
- package/dist/{manifest-Cw3Ak4ac.js → manifest-BnmxgXet.js} +4 -4
- package/dist/{manifest-S2EhG5Gw.js → manifest-BpAI3Me7.js} +34 -34
- package/dist/{manifest-D-D1xDw2.d.ts → manifest-BpiZFLbl.d.ts} +1 -1
- package/dist/{manifest-C4oqpEqj.js → manifest-BrkF61-W.js} +8 -8
- package/dist/{manifest-Cl13wY3u.d.ts → manifest-BwYOds2o.d.ts} +1 -1
- package/dist/{manifest-B2HCw2CH.js → manifest-BwZjGHRu.js} +14 -14
- package/dist/{manifest-CiSSfthq.d.ts → manifest-Bwv273Tb.d.ts} +1 -1
- package/dist/{manifest-D6jxUviz.js → manifest-C-QxTuzM.js} +3 -3
- package/dist/{manifest-CNNWN9Rr.js → manifest-C15_YXQV.js} +3 -3
- package/dist/{manifest-C9kzPc3l.d.ts → manifest-C4CIOVkt.d.ts} +2 -2
- package/dist/{manifest-cLGmrzgW.js → manifest-C692l8af.js} +12 -12
- package/dist/{manifest-C8AENKFu.js → manifest-C8_k9anI.js} +8 -8
- package/dist/{manifest-dOdQx0hy.d.ts → manifest-C9Kn7gwK.d.ts} +1 -1
- package/dist/{manifest-Dry8RIXq.js → manifest-C9fN2qRW.js} +12 -12
- package/dist/{manifest-CM5RhlxN.js → manifest-CBFQeKg6.js} +12 -12
- package/dist/{manifest-oZ1s2HoJ.d.ts → manifest-CDK8R8Ze.d.ts} +1 -1
- package/dist/{manifest-Dsi1aOKw.d.ts → manifest-CF-LsgEw.d.ts} +1 -1
- package/dist/{manifest-CWnpnTcL.js → manifest-CF92Kiog.js} +3 -3
- package/dist/{manifest-B3VjTLRv.d.ts → manifest-CFFaunME.d.ts} +1 -1
- package/dist/{manifest-Bgx1ETpN.js → manifest-CMnr9qpi.js} +10 -10
- package/dist/{manifest-C3fDS3NG.d.ts → manifest-CNcJxi93.d.ts} +1 -1
- package/dist/{manifest-CaKD48WX.d.ts → manifest-COoFT2vY.d.ts} +1 -1
- package/dist/{manifest-CMjAfphZ.js → manifest-CQ9I_8q2.js} +8 -8
- package/dist/{manifest-Bq11rIm6.js → manifest-CScOn17C.js} +12 -12
- package/dist/{manifest-CyMaBCGq.d.ts → manifest-CW47rgqj.d.ts} +1 -1
- package/dist/{manifest-DKqcq-LB.d.ts → manifest-C_ZDkBv4.d.ts} +1 -1
- package/dist/{manifest-Cg6iafYQ.js → manifest-C__pecuF.js} +14 -14
- package/dist/{manifest-DlRpMwfK.d.ts → manifest-CaKVpJZM.d.ts} +1 -1
- package/dist/{manifest-Dv8Hfpym.d.ts → manifest-CazVMbdf.d.ts} +1 -1
- package/dist/{manifest-DpUGCrdL.d.ts → manifest-Ccn2k0vb.d.ts} +1 -1
- package/dist/{manifest-oSaeMiYm.js → manifest-Cg25x0rD.js} +11 -11
- package/dist/{manifest-D5AuRrMx.d.ts → manifest-CgCpK4Wm.d.ts} +1 -1
- package/dist/{manifest-DqVGGnLa.d.ts → manifest-CgP-MDb3.d.ts} +1 -1
- package/dist/{manifest-CBzq9IhS.d.ts → manifest-CiOcPFFy.d.ts} +1 -1
- package/dist/{manifest-DsLlJTUa.js → manifest-CmSVpPBS.js} +7 -7
- package/dist/{manifest-BQzebb6B.js → manifest-CmquAtQC.js} +8 -8
- package/dist/{manifest-BbrSRrrB.js → manifest-CnSZ16xc.js} +3 -3
- package/dist/{manifest-BDEAP2_6.d.ts → manifest-Cnb5QGMK.d.ts} +1 -1
- package/dist/{manifest-eIWKtbU-.d.ts → manifest-CnkVWwAg.d.ts} +1 -1
- package/dist/{manifest-B5JVSm7q.js → manifest-CnlgJJDS.js} +10 -10
- package/dist/{manifest-qO6Dn0Rf.js → manifest-D0DK7Gdu.js} +12 -12
- package/dist/{manifest-BYIGiQA0.d.ts → manifest-D0KUPw4L.d.ts} +1 -1
- package/dist/{manifest-D5bH3Mec.d.ts → manifest-D1-lCZro.d.ts} +1 -1
- package/dist/{manifest-BeMK5Uir.js → manifest-D1VrUJOA.js} +5 -5
- package/dist/{manifest-C0BV1Dqr.js → manifest-D3LeYpRm.js} +13 -13
- package/dist/{manifest-CTjhS3_I.js → manifest-D3To2MLR.js} +6 -6
- package/dist/{manifest-3ImEz2CE.js → manifest-D46SY8Og.js} +17 -17
- package/dist/{manifest-57rK1ngY.d.ts → manifest-D6ZukDGm.d.ts} +1 -1
- package/dist/{manifest-CoGArkb4.js → manifest-D8teMyal.js} +11 -11
- package/dist/{manifest-DA8v7QwQ.js → manifest-DAZuHpm2.js} +14 -14
- package/dist/{manifest-DFDQCoIR.d.ts → manifest-DBSs1jJ_.d.ts} +1 -1
- package/dist/{manifest-DPQ1ECvV.js → manifest-DEx8OSZK.js} +8 -8
- package/dist/{manifest-Cs_BBJMk.d.ts → manifest-DF49Pt6Q.d.ts} +1 -1
- package/dist/{manifest-nghaYPXC.js → manifest-DFoZF4CI.js} +14 -14
- package/dist/{manifest-CTH_3PQ8.js → manifest-DHfYjJMJ.js} +12 -12
- package/dist/{manifest-_5YD_7qt.js → manifest-DIC1MsM0.js} +15 -15
- package/dist/{manifest-DFhs8tTZ.js → manifest-DKthWXiw.js} +9 -9
- package/dist/{manifest-DisFKYTB.js → manifest-DLsq8M80.js} +5 -5
- package/dist/{manifest-D7zENukq.d.ts → manifest-DMTmTHBy.d.ts} +1 -1
- package/dist/{manifest-t0UobwxV.d.ts → manifest-DQwFCQkG.d.ts} +1 -1
- package/dist/{manifest-CXRuupEQ.js → manifest-DWGEzte4.js} +18 -18
- package/dist/{manifest-CMwKGDuJ.js → manifest-DWLGd0FS.js} +8 -8
- package/dist/{manifest-D9ldgISN.js → manifest-DYpXtqzm.js} +8 -8
- package/dist/{manifest-CRrS1eXB.js → manifest-DcI69zyP.js} +12 -12
- package/dist/{manifest-DpUU_GQF.d.ts → manifest-Dh3kIEzu.d.ts} +1 -1
- package/dist/{manifest-CPGq3poM.js → manifest-DiPqog2j.js} +3 -3
- package/dist/{manifest-B0PJg-oT.js → manifest-Dj7bGfoy.js} +11 -11
- package/dist/{manifest-BpCVzhPX.js → manifest-DkI--7fx.js} +14 -14
- package/dist/{manifest-B2nCtBhS.js → manifest-Dm822kx0.js} +9 -9
- package/dist/{manifest-BWuJw7AI.js → manifest-DnSvthaM.js} +10 -10
- package/dist/{manifest-CehK0epY.d.ts → manifest-DpoO491p.d.ts} +1 -1
- package/dist/{manifest-CVQW9Vcl.js → manifest-DsJukV9d.js} +18 -18
- package/dist/{manifest-BYiCfDfW.d.ts → manifest-Du_-0ruw.d.ts} +1 -1
- package/dist/{manifest-CcErLbUW.d.ts → manifest-Dvhqz3qo.d.ts} +1 -1
- package/dist/{manifest-BEE8kXlc.js → manifest-DxPMUjhY.js} +17 -17
- package/dist/{manifest-CFEY-PSe.d.ts → manifest-Dy5_Rc0q.d.ts} +1 -1
- package/dist/{manifest-BdWn7BTX.d.ts → manifest-DyZcERh_.d.ts} +1 -1
- package/dist/{manifest-DqbXAQwZ.d.ts → manifest-ETlyMx6o.d.ts} +1 -1
- package/dist/{manifest-Cu1zCdXg.js → manifest-EcWk4ytT.js} +9 -9
- package/dist/{manifest-CPecIPI5.js → manifest-EwHcMCiW.js} +4 -4
- package/dist/{manifest-amQk8j7Y.js → manifest-FXQp4dob.js} +13 -13
- package/dist/{manifest-Y1Z5L2T3.js → manifest-Gi6V1g3E.js} +12 -12
- package/dist/{manifest-e7ZbaKYF.js → manifest-H65OlXiB.js} +15 -15
- package/dist/{manifest-DyjQZh7Z.js → manifest-IZ9GQI7f.js} +13 -13
- package/dist/{manifest-Hm1-O138.d.ts → manifest-JdAQqp5w.d.ts} +3 -3
- package/dist/{manifest-D8iIf1Kb.js → manifest-Lasq6DPg.js} +10 -10
- package/dist/{manifest-0F7lof-8.d.ts → manifest-Lsz6rH3B.d.ts} +1 -1
- package/dist/{manifest-DSGLUrYq.js → manifest-MTW4mY5N.js} +10 -10
- package/dist/{manifest-B_6NoKFg.d.ts → manifest-RAijfop2.d.ts} +1 -1
- package/dist/{manifest-DAxxMf9a.js → manifest-X24lr5XH.js} +3 -3
- package/dist/{manifest-Hr6MyREb.d.ts → manifest-XZV2sKgk.d.ts} +1 -1
- package/dist/{manifest-BLnVv55R.js → manifest-YB3ZtXEb.js} +11 -11
- package/dist/{manifest-gSko__Wn.d.ts → manifest-a0YxYgo0.d.ts} +1 -1
- package/dist/{manifest-CgMNtyTZ.d.ts → manifest-aJOA6D9w.d.ts} +1 -1
- package/dist/{manifest-CwJZGhJ8.d.ts → manifest-c8mlNzOv.d.ts} +1 -1
- package/dist/{manifest-KUbi4IKj.d.ts → manifest-dLThrKqV.d.ts} +1 -1
- package/dist/{manifest-Bde5xCaP.d.ts → manifest-dlqXYOfB.d.ts} +1 -1
- package/dist/{manifest-BUFE6Vda.js → manifest-jLh9Rwsh.js} +11 -11
- package/dist/{manifest-iKyF53SI.d.ts → manifest-jb384ocG.d.ts} +1 -1
- package/dist/{manifest-DBu84LST.d.ts → manifest-jiaWr0x4.d.ts} +1 -1
- package/dist/{manifest-t-8upuXv.js → manifest-kZCtkWqj.js} +9 -9
- package/dist/{manifest-BGhS_IRb.js → manifest-kbSJq3sR.js} +17 -17
- package/dist/{manifest-oVRDNj7t.d.ts → manifest-pLJIrNwi.d.ts} +1 -1
- package/dist/{manifest-DlK0gus-.js → manifest-rHukkAIC.js} +16 -16
- package/dist/{manifest-NSNQGS0I.js → manifest-wlx1-yvJ.js} +5 -5
- package/dist/{manifest-BUvqSThC.d.ts → manifest-xAeOKTub.d.ts} +3 -3
- package/dist/{manifest-CbXBkXqf.d.ts → manifest-y2y5xPQC.d.ts} +1 -1
- package/dist/{manifest-MleiBHu4.js → manifest-yLshQDXw.js} +6 -6
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/sdk/index.d.ts +2 -2
- package/dist/mcp/sdk/index.js +1 -1
- package/dist/{mcp-DAJ7WsQb.js → mcp-Cu-bD9KQ.js} +1 -1
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +92 -35
- package/dist/next/index.js +123 -44
- package/dist/{operations-Cqx3ghVP.d.ts → operations-_3oh-CEO.d.ts} +1 -1
- package/dist/{options-PM7IaIFP.js → options-B1rQBo1M.js} +4 -1
- package/dist/orpc/index.d.ts +4 -4
- package/dist/orpc/index.js +1 -1
- package/dist/otel/index.js +4 -4
- package/dist/{parse-B1g9TF99.js → parse-BRW-aTQQ.js} +1 -1
- package/dist/{payroll-export-CrEznq6i.js → payroll-export-CNji28TX.js} +1 -1
- package/dist/{permissions-cKhOwOuj.d.ts → permissions-u_qqedin.d.ts} +1 -1
- package/dist/{ports-DEC5OfLy.js → ports-BhCn6uGk.js} +1 -1
- package/dist/{ports-zqXSEoFP.d.ts → ports-DT5zRdYx.d.ts} +1 -1
- package/dist/postgres/index.js +2 -2
- package/dist/{postgrest-executor-DaDNeFDr.js → postgrest-executor-BMNA_O9-.js} +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/powersync/index.js +1 -1
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +3 -3
- package/dist/{preset-BILsEo24.js → preset--1OMwypM.js} +4 -3
- package/dist/{preview-DN0JKESa.d.ts → preview-BBA-VaEZ.d.ts} +2 -2
- package/dist/{preview-DsrEvLWG.js → preview-Bd7ZBtf2.js} +2 -2
- package/dist/{project-C23WlGy4.js → project-BhE6_64F.js} +5 -5
- package/dist/{push-token-DZACGqYX.d.ts → push-token-hs6_Vt-I.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/index.js +1 -1
- package/dist/rate-limit/index.js +1 -1
- package/dist/{rate-limit-DSOwe_Re.js → rate-limit-ruAG2w45.js} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +2 -2
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +10 -6
- package/dist/react/server.js +6 -2
- package/dist/{react-oftUdRLD.js → react-olMpD8et.js} +31 -24
- package/dist/react-router/index.d.ts +3 -3
- package/dist/react-router/index.js +2 -2
- package/dist/{read-set-Vqn_XdqV.js → read-set-4EsAPjII.js} +2 -1
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +1 -1
- package/dist/{record-form-S1-QnCI_.d.ts → record-form-Cze5j1OB.d.ts} +1 -1
- package/dist/{record-type-uD8JMf0g.js → record-type-BPUobukL.js} +1 -0
- package/dist/records/index.d.ts +7 -7
- package/dist/records/index.js +3 -3
- package/dist/{resource-execute-y2wGRwTn.d.ts → resource-execute-D2cJfrKu.d.ts} +1 -1
- package/dist/{resource-types-B8ocsWgZ.d.ts → resource-types-Cs1zWvrn.d.ts} +1 -1
- package/dist/{resources-DS3fQtwv.d.ts → resources-DyP9cP9i.d.ts} +1 -1
- package/dist/{sales-DKOs8F12.js → sales-BCArDSEX.js} +9 -9
- package/dist/{scores-Dfes6BDr.js → scores-D3fvLQGX.js} +1 -1
- package/dist/server/index.d.ts +13 -13
- package/dist/server/index.js +9 -9
- package/dist/{server-types-CXNFIjFU.d.ts → server-types-Bpxk5UWh.d.ts} +32 -10
- package/dist/{session-CDkvmd52.d.ts → session-DQ5huqEw.d.ts} +2 -2
- package/dist/{session-status-PE2_AdYA.d.ts → session-status-DDPrDS36.d.ts} +1 -1
- package/dist/{settings-CqhQrT3a.js → settings-DhzIPgTN.js} +1 -1
- package/dist/{shared-B0clSLXG.js → shared-BTf7Qrnk.js} +1 -1
- package/dist/{sign-in-BRT-0QYF.js → sign-in-03gtm616.js} +34 -9
- package/dist/{signing-keys-hgspu0oB.js → signing-keys-sEdfxGbZ.js} +1 -1
- package/dist/solid/index.d.ts +13 -6
- package/dist/solid/index.js +10 -3
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/solid-start/index.js +2 -2
- package/dist/spec/index.d.ts +1 -1
- package/dist/{spec-CGD_BzCF.js → spec-BSc8n34a.js} +1 -1
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-DUonzxhb.js → sql-B0t41P1F.js} +2 -2
- package/dist/{sql-DWsHDJ3c.js → sql-BVUbNexh.js} +581 -242
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/sqlite/index.js +1 -1
- package/dist/{sso-CSfrymeX.js → sso-fXXdjhyz.js} +1 -1
- package/dist/ssr/index.d.ts +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/{support-DLms-JZd.d.ts → support-tDhEwXbu.d.ts} +18 -9
- package/dist/svelte/index.d.ts +13 -6
- package/dist/svelte/index.js +10 -3
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tags-BGwWAMVB.d.ts → tags-CBASI98_.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tenant-DNoe5dUa.d.ts → tenant-c_6qMyFI.d.ts} +1 -1
- package/dist/testing/index.d.ts +111 -10
- package/dist/testing/index.js +217 -7
- package/dist/{timeline-Dy099qKD.d.ts → timeline-DvZ7C5zf.d.ts} +3 -3
- package/dist/{topic-CqSqDnjb.js → topic-CW7sraaQ.js} +1 -1
- package/dist/{topic-EkhjfSPH.d.ts → topic-fwPlelNI.d.ts} +2 -2
- package/dist/{types-CkLE9lwr.d.ts → types-Cwai2qe4.d.ts} +2 -2
- package/dist/{undo-CnWDmntn.js → undo-DhLhQlyY.js} +1 -1
- package/dist/{verify-Dh2MQQze.d.ts → verify-CupKPoHW.d.ts} +1 -1
- package/dist/vue/index.d.ts +13 -6
- package/dist/vue/index.js +10 -3
- package/dist/{watch-topic-B4eLrVUl.d.ts → watch-topic-D4AzYs9E.d.ts} +1 -1
- package/dist/{webhook-inbox-_7ApdH2q.js → webhook-inbox-TA5H3ti3.js} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/webmcp/index.js +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +89 -0
- package/schemas/doctor-report-v1.json +12 -0
- package/skills/better-supabase/references/ui-recipes.md +13 -13
- package/dist/cli/add-TZa-GEt2.js +0 -1
- package/dist/cli/env-DWtI_scC.js +0 -1
- package/dist/cli/powersync-DfiIdCgd.js +0 -1
- package/dist/cli/seed-DsoWExFu.js +0 -1
- package/dist/events-BRKIxVQD.js +0 -25
- package/dist/cli/{orphans-CPcR85QN.js → orphans-ByB0gKOp.js} +1 -1
|
@@ -3,7 +3,7 @@ import { l as mapDbError, n as dbError, r as dbErrorOf, s as isDbError } from ".
|
|
|
3
3
|
import { n as isRecord } from "./guards-CsRa6v57.js";
|
|
4
4
|
import { t as temporal } from "./temporal-required-DK3ImZW6.js";
|
|
5
5
|
import { a as ok, r as err, s as toDbError, t as AsyncResult } from "./result-DrBaeIVt.js";
|
|
6
|
-
import { n as postgrestExecutor } from "./postgrest-executor-
|
|
6
|
+
import { n as postgrestExecutor } from "./postgrest-executor-BMNA_O9-.js";
|
|
7
7
|
import { n as StatsRecorder } from "./stats-D2TN2c3B.js";
|
|
8
8
|
import { o as problemResponse } from "./problem-gZxWhEP2.js";
|
|
9
9
|
import { i as claimsOf } from "./claims-CqTr_N1n.js";
|
|
@@ -13,8 +13,10 @@ import { a as forwardBlockEvents, t as DEFAULT_TYPE_PREFIX } from "./cloud-event
|
|
|
13
13
|
import { loadEnv } from "./env/index.js";
|
|
14
14
|
import { a as sessionCacheKey, o as sessionMemo, s as snapshotOf, t as authOfSnapshot } from "./snapshot-r7c6-qTr.js";
|
|
15
15
|
import { t as fromPgError } from "./pg-error-D92B6jlF.js";
|
|
16
|
+
import { K as rpcTransport } from "./block-helpers-BR1V7DN1.js";
|
|
16
17
|
import { t as tenantOf } from "./tenant-Beqd7TTq.js";
|
|
17
18
|
import { i as toSession } from "./view-B8vDPZSf.js";
|
|
19
|
+
import { t as authErrorKind } from "./error-kind-Bkmljt19.js";
|
|
18
20
|
import { c as replicaState, l as routedExecutor, o as pinnedUntil, r as refreshFor, s as primaryCookieWrite, t as isDocumentLoad, u as withPrimaryPin } from "./request-kind-tNDM5Z_o.js";
|
|
19
21
|
import { t as authContext } from "./context-Btw88VG1.js";
|
|
20
22
|
import { c as clearCookieSession, f as serializeCookie, n as prefetchJwks, p as sessionCookieName, r as resolveAuth, u as parseCookies } from "./resolve-DswJu89M.js";
|
|
@@ -42,7 +44,8 @@ function fromAuthError(raw) {
|
|
|
42
44
|
});
|
|
43
45
|
if (failure.status === 401) return dbError("unauthorized", message, base);
|
|
44
46
|
if (failure.status === 403) return dbError("forbidden", message, base);
|
|
45
|
-
|
|
47
|
+
if (authErrorKind(raw) === "rate-limited") return dbError("rate_limited", message, base);
|
|
48
|
+
return authErrorKind(raw) === "retryable" ? dbError("network", message, base) : dbError("unexpected", message, base);
|
|
46
49
|
}
|
|
47
50
|
const UUID$2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
48
51
|
const PROBE = "better_supabase.delete_account_probe";
|
|
@@ -149,6 +152,16 @@ const END_SESSIONS = `with ended as (
|
|
|
149
152
|
delete from auth.refresh_tokens where user_id = $1::text
|
|
150
153
|
)
|
|
151
154
|
select count(*)::int as ended from ended`;
|
|
155
|
+
const isTransport = (client) => "call" in client && typeof client.call === "function";
|
|
156
|
+
/**
|
|
157
|
+
* Direct Postgres when configured, else the service role over the Data API
|
|
158
|
+
* through the sessions block's API `schema`.
|
|
159
|
+
*/
|
|
160
|
+
function accountClient(postgres, service, schema) {
|
|
161
|
+
return postgres ?? rpcTransport(service(), { schema });
|
|
162
|
+
}
|
|
163
|
+
/** The schema `better_supabase.end_sessions` lives in, for a transport call. */
|
|
164
|
+
const SESSIONS_SCHEMA = "better_supabase";
|
|
152
165
|
function invalidUser(userId) {
|
|
153
166
|
return dbError("invalid_request", `"${userId}" is not a user id`, { table: "auth.users" });
|
|
154
167
|
}
|
|
@@ -162,10 +175,19 @@ function fromSqlError(cause) {
|
|
|
162
175
|
};
|
|
163
176
|
return dbError("unexpected", cause instanceof Error ? cause.message : "Ending the sessions failed", { table: "auth.sessions" });
|
|
164
177
|
}
|
|
165
|
-
async function deleteSessions(
|
|
166
|
-
|
|
178
|
+
async function deleteSessions(client, userId) {
|
|
179
|
+
if (isTransport(client)) {
|
|
180
|
+
const value = await client.call(SESSIONS_SCHEMA, "end_sessions", { p_user: userId });
|
|
181
|
+
return typeof value === "number" ? value : 0;
|
|
182
|
+
}
|
|
183
|
+
const [row] = await client.queryRaw(END_SESSIONS, [userId]);
|
|
167
184
|
return row?.ended ?? 0;
|
|
168
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Deletes a user's sessions and refresh tokens. Pass `postgres.admin` (raw SQL,
|
|
188
|
+
* no module needed) or a service-role `BlockTransport` (the `sessions` module's
|
|
189
|
+
* `end_sessions`).
|
|
190
|
+
*/
|
|
169
191
|
function endSessions(sql, userId) {
|
|
170
192
|
return AsyncResult.from(async () => {
|
|
171
193
|
if (!UUID$1.test(userId)) return err(invalidUser(userId));
|
|
@@ -181,6 +203,14 @@ function endSessions(sql, userId) {
|
|
|
181
203
|
}
|
|
182
204
|
const LAST_SIGN_INS = `select user_id, last_sign_in_at
|
|
183
205
|
from better_supabase.last_sign_ins($1::uuid[])`;
|
|
206
|
+
const isRow = (value) => isRecord(value) && typeof value["user_id"] === "string";
|
|
207
|
+
async function lastSignInRows(client, userIds) {
|
|
208
|
+
if (isTransport(client)) {
|
|
209
|
+
const value = await client.call(SESSIONS_SCHEMA, "last_sign_ins", { p_users: userIds });
|
|
210
|
+
return Array.isArray(value) ? value.filter(isRow) : [];
|
|
211
|
+
}
|
|
212
|
+
return client.queryRaw(LAST_SIGN_INS, [userIds]);
|
|
213
|
+
}
|
|
184
214
|
/**
|
|
185
215
|
* The last sign-in of each user, in one query (`better_supabase.last_sign_ins`
|
|
186
216
|
* from the `sessions` module, which only the service role may call). Users that
|
|
@@ -192,7 +222,7 @@ function lastSignIns(sql, userIds) {
|
|
|
192
222
|
if (invalid !== void 0) return err(invalidUser(invalid));
|
|
193
223
|
if (userIds.length === 0) return ok(/* @__PURE__ */ new Map());
|
|
194
224
|
try {
|
|
195
|
-
const rows = await sql
|
|
225
|
+
const rows = await lastSignInRows(sql, [...new Set(userIds)]);
|
|
196
226
|
return ok(new Map(rows.map((row) => [row.user_id, {
|
|
197
227
|
userId: row.user_id,
|
|
198
228
|
lastSignInAt: row.last_sign_in_at === null ? null : temporal().Instant.from(row.last_sign_in_at instanceof Date ? row.last_sign_in_at.toISOString() : row.last_sign_in_at)
|
|
@@ -333,9 +363,12 @@ function bootstrapRow(value) {
|
|
|
333
363
|
const tenant = value["tenant"];
|
|
334
364
|
const authzVersion = versionOf(value["authz_version"]);
|
|
335
365
|
const sessionActive = value["session_active"];
|
|
366
|
+
const reason = value["end_reason"];
|
|
367
|
+
const ended = reason === "user_banned" || reason === "session_not_found" ? reason : null;
|
|
368
|
+
if (!sessionActive && ended === null) throw new DbException(dbError("unexpected", "The bootstrap wrapper returned no end_reason; it was generated before 0.44. Run `bsb sql upgrade` and apply the migration."));
|
|
336
369
|
return {
|
|
337
370
|
sessionActive,
|
|
338
|
-
endReason: sessionActive ? null :
|
|
371
|
+
endReason: sessionActive ? null : ended,
|
|
339
372
|
authzVersion,
|
|
340
373
|
tokenAuthzVersion: "token_authz_version" in value ? versionOf(value["token_authz_version"]) : authzVersion,
|
|
341
374
|
tenant: typeof tenant === "string" ? tenant : null,
|
|
@@ -1876,7 +1909,6 @@ function envOf(env) {
|
|
|
1876
1909
|
function isLoadedEnv(env) {
|
|
1877
1910
|
return env.jwksUrl instanceof URL;
|
|
1878
1911
|
}
|
|
1879
|
-
const needsPostgres = (method) => dbError("invalid_request", `${method} needs createServer(betterSupabase, { postgres: createPostgres() })`);
|
|
1880
1912
|
/**
|
|
1881
1913
|
* A framework adapter's server: `server` plus the adapter's own methods,
|
|
1882
1914
|
* without reading the lazy `env` getter. `extra` can't replace a `BetterServer`
|
|
@@ -1911,6 +1943,8 @@ function createServer(betterSupabase, options = {}) {
|
|
|
1911
1943
|
definitionExecutor: betterSupabase.executorOptions(),
|
|
1912
1944
|
lite
|
|
1913
1945
|
});
|
|
1946
|
+
const schema = bootstrapSchema({}, options, betterSupabase);
|
|
1947
|
+
const accountTransport = () => accountClient(options.postgres?.admin, serviceClient, schema);
|
|
1914
1948
|
const tuned = (rest) => tunedExecutor ? { executor: postgrestExecutor(rest, executorOptions) } : {};
|
|
1915
1949
|
/** `$client` stays the full Supabase client, built when first read. */
|
|
1916
1950
|
const withLazyClient = (db, client) => Object.defineProperty(db, "$client", {
|
|
@@ -2339,17 +2373,18 @@ function createServer(betterSupabase, options = {}) {
|
|
|
2339
2373
|
audit.account("account.deleted", userId, { removed: deleted.removed });
|
|
2340
2374
|
return deleted;
|
|
2341
2375
|
}),
|
|
2342
|
-
endSessions: (userId) =>
|
|
2376
|
+
endSessions: (userId) => endSessions(accountTransport(), userId).map((ended) => {
|
|
2343
2377
|
audit.account("account.sessions_ended", userId, { ended: ended.ended });
|
|
2344
2378
|
return ended;
|
|
2345
|
-
})
|
|
2346
|
-
|
|
2379
|
+
}),
|
|
2380
|
+
lastSignIns: (userIds) => lastSignIns(accountTransport(), userIds),
|
|
2381
|
+
suspendAccount: (userId, suspendOptions) => suspendAccount(serviceClient, accountTransport(), userId, suspendOptions).map((suspended) => {
|
|
2347
2382
|
audit.account(suspended.suspended ? "account.suspended" : "account.unsuspended", userId, {
|
|
2348
2383
|
ended: suspended.ended,
|
|
2349
2384
|
...suspendOptions.duration === void 0 ? {} : { duration: suspendOptions.duration }
|
|
2350
2385
|
});
|
|
2351
2386
|
return suspended;
|
|
2352
|
-
})
|
|
2387
|
+
}),
|
|
2353
2388
|
actingAs: (userId, claims = {}, impersonation) => {
|
|
2354
2389
|
const full = {
|
|
2355
2390
|
role: "authenticated",
|
|
@@ -2,10 +2,10 @@ import { a as SessionActor, r as AgentActOptions } from "./actor-DseNR02I.js";
|
|
|
2
2
|
import { t as Agent } from "./agents-D_EOJyJM.js";
|
|
3
3
|
import { A as AiModerationStage, D as AiModerationAction, W as AiToolPolicy, t as AiChat } from "./ai-chat-B1tvHB75.js";
|
|
4
4
|
import { l as KnowledgeHit, m as KnowledgeSearchOptions, o as Knowledge } from "./knowledge-CNG6Arug.js";
|
|
5
|
-
import { t as OperationTable } from "./operations-
|
|
5
|
+
import { t as OperationTable } from "./operations-_3oh-CEO.js";
|
|
6
6
|
import { a as SearchToolOptions, i as ResultsFilter } from "./embeddings-BXTzKGvc.js";
|
|
7
7
|
import { n as GatewayOptions } from "./gateway-options-Mut8jih_.js";
|
|
8
|
-
import { r as AuthorizationOperation } from "./authorization-
|
|
8
|
+
import { r as AuthorizationOperation } from "./authorization-UYejwQsk.js";
|
|
9
9
|
import { LanguageModel, LanguageModelMiddleware, StopCondition, ToolLoopAgent, ToolLoopAgentSettings, ToolSet, pruneMessages } from "ai";
|
|
10
10
|
/**
|
|
11
11
|
* Who runs an agent: the user from the verified session, never a model or tool
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DbException } from "./db-exception-Dv18UZ-I.js";
|
|
2
|
-
import { o as searchTool } from "./embeddings-
|
|
2
|
+
import { o as searchTool } from "./embeddings-BamT6vln.js";
|
|
3
3
|
import { t as gatewayOptions } from "./gateway-options-DQGQzdkD.js";
|
|
4
4
|
import { n as dbError } from "./errors-CXPerGIl.js";
|
|
5
5
|
import { n as operationMeta, r as operationPermission, t as OPERATION_PREFIXES } from "./operations-BNFbWv1t.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
1
|
+
import { r as withBlockHooks } from "./block-hooks-Bd5bRM9B.js";
|
|
2
2
|
import { B as textOf, C as optionalInstant, L as sha256Hex, T as optionalText, h as instantOf, j as recordOf, n as applyTemporal, o as blockCall } from "./block-helpers-BR1V7DN1.js";
|
|
3
3
|
import { n as isRecord } from "./guards-CsRa6v57.js";
|
|
4
4
|
// src/blocks/ai-cache/ai-cache.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as withFields, n as blockFields, r as extraFieldsArg, t as allWithFields } from "./block-fields-BKx78iez.js";
|
|
2
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
2
|
+
import { r as withBlockHooks } from "./block-hooks-Bd5bRM9B.js";
|
|
3
3
|
import { n as dbError } from "./errors-CXPerGIl.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "./result-DrBaeIVt.js";
|
|
5
5
|
import { t as fromStorageError } from "./errors-BM8XbFrW.js";
|
|
@@ -6,7 +6,7 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-CMqlHv82.js";
|
|
|
6
6
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
7
7
|
import { r as RunState } from "./run-state-D0Tbl-nM.js";
|
|
8
8
|
import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
|
|
9
|
-
import { dt as Notifier } from "./define-block-
|
|
9
|
+
import { dt as Notifier } from "./define-block-B2um61Uj.js";
|
|
10
10
|
import { _ as JobHandler } from "./types-CmlZw_7N.js";
|
|
11
11
|
import { r as BlockTemporalOptions } from "./block-helpers-YOdaCxWE.js";
|
|
12
12
|
/** A task run's state, in the words ai-chat and workflow runs share. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as AgentSkill, l as Agents, s as AgentSkillProviderRef, t as Agent } from "../../agents-D_EOJyJM.js";
|
|
2
|
-
import { A as toolDelegated, C as AgentToolOperation, D as agentRunContext, E as ToolDelegation, O as agentToolOperation, S as AgentToolCallContext, T as AgentToolPermissions, _ as AgentCaller, a as AgentToolApprovalFunction, b as AgentRunContext, c as ModerationVerdict, d as agentToolApproval, f as agentTools, g as AgentActor, h as moderationMiddleware, i as AgentRuntimeParts, k as assertToolDelegated, l as agentRuntimeParts, m as mergeGatewayOptions, n as AgentPassthroughSettings, o as ModerationBlockedError, p as createAgentRuntime, r as AgentRuntimeOptions, s as ModerationMiddlewareOptions, t as AgentCompactOptions, u as agentScopes, v as AgentModelAuthorizer, w as AgentToolOperations, x as AgentToolAuthorizer, y as AgentResultsContext } from "../../agents-
|
|
2
|
+
import { A as toolDelegated, C as AgentToolOperation, D as agentRunContext, E as ToolDelegation, O as agentToolOperation, S as AgentToolCallContext, T as AgentToolPermissions, _ as AgentCaller, a as AgentToolApprovalFunction, b as AgentRunContext, c as ModerationVerdict, d as agentToolApproval, f as agentTools, g as AgentActor, h as moderationMiddleware, i as AgentRuntimeParts, k as assertToolDelegated, l as agentRuntimeParts, m as mergeGatewayOptions, n as AgentPassthroughSettings, o as ModerationBlockedError, p as createAgentRuntime, r as AgentRuntimeOptions, s as ModerationMiddlewareOptions, t as AgentCompactOptions, u as agentScopes, v as AgentModelAuthorizer, w as AgentToolOperations, x as AgentToolAuthorizer, y as AgentResultsContext } from "../../agents-BrLBg0gC.js";
|
|
3
3
|
import { c as agentClaims, r as AgentActOptions } from "../../actor-DseNR02I.js";
|
|
4
4
|
import { t as AsyncResult } from "../../result-CMqlHv82.js";
|
|
5
5
|
import { ProviderReference, uploadSkill } from "ai";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as agentTools, c as moderationMiddleware, d as assertToolDelegated, f as toolDelegated, i as agentToolApproval, l as agentRunContext, n as agentRuntimeParts, o as createAgentRuntime, r as agentScopes, s as mergeGatewayOptions, t as ModerationBlockedError, u as agentToolOperation } from "../../agents-
|
|
1
|
+
import { a as agentTools, c as moderationMiddleware, d as assertToolDelegated, f as toolDelegated, i as agentToolApproval, l as agentRunContext, n as agentRuntimeParts, o as createAgentRuntime, r as agentScopes, s as mergeGatewayOptions, t as ModerationBlockedError, u as agentToolOperation } from "../../agents-CEna9P0O.js";
|
|
2
2
|
import { r as agentClaims } from "../../actor-BY7JnimK.js";
|
|
3
3
|
import { n as dbError } from "../../errors-CXPerGIl.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "../../result-DrBaeIVt.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as rerankWith, c as toSourceParts, i as rerankHits, n as embeddingCacheMiddleware, o as searchTool, r as modelName, s as supabaseEmbed, t as embedWith } from "../../embeddings-
|
|
1
|
+
import { a as rerankWith, c as toSourceParts, i as rerankHits, n as embeddingCacheMiddleware, o as searchTool, r as modelName, s as supabaseEmbed, t as embedWith } from "../../embeddings-BamT6vln.js";
|
|
2
2
|
// src/ai-sdk/embeddings/worker.ts
|
|
3
3
|
const DEFAULT_MAX_READS = 5;
|
|
4
4
|
const isJob = (value) => typeof value === "object" && value !== null && "msgId" in value && typeof value.msgId === "number" && "id" in value && typeof value.id === "string" && "content" in value && typeof value.content === "string" && "hash" in value && typeof value.hash === "string";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as parseAiFileUrl, t as aiFileUrl } from "../../ai-files-
|
|
1
|
+
import { r as parseAiFileUrl, t as aiFileUrl } from "../../ai-files-C8n2QKlX.js";
|
|
2
2
|
import { f as errorText } from "../../block-helpers-BR1V7DN1.js";
|
|
3
3
|
import { n as dbError } from "../../errors-CXPerGIl.js";
|
|
4
4
|
import { a as ok, r as err, t as AsyncResult } from "../../result-DrBaeIVt.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as AgentRunContext, r as AgentRuntimeOptions } from "../../agents-
|
|
1
|
+
import { b as AgentRunContext, r as AgentRuntimeOptions } from "../../agents-BrLBg0gC.js";
|
|
2
2
|
import { o as StreamStore } from "../../store-CGXNwUwi.js";
|
|
3
3
|
import { n as GatewayOptions } from "../../gateway-options-Mut8jih_.js";
|
|
4
4
|
import { d as AssistantTurn, n as AssistantContext, t as Assistant } from "../../assistant-DLKGA2nm.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as agentRuntimeParts } from "../../agents-
|
|
1
|
+
import { n as agentRuntimeParts } from "../../agents-CEna9P0O.js";
|
|
2
2
|
import { n as isRecord } from "../../guards-CsRa6v57.js";
|
|
3
3
|
import { n as dbError } from "../../errors-CXPerGIl.js";
|
|
4
4
|
import { o as problemResponse } from "../../problem-gZxWhEP2.js";
|
|
@@ -2,7 +2,7 @@ import { t as SPEC_PINS } from "./spec-pins-Bb6V8nR2.js";
|
|
|
2
2
|
import { c as SpecDiagnostic, i as DocumentOf, l as VersionOf, s as RenderedOf, t as AnyDocumentFormat } from "./format-BT0Z3V54.js";
|
|
3
3
|
import { C as ModelWebhook, E as OperationSource, O as SecurityRequirement, S as ModelTag, a as JsonSchema, b as ModelServer, d as ModelInfo, f as ModelMessage, i as JsonObject, m as ModelOperation, n as DataApiOperation, p as ModelMessageTrait, r as HttpMethod, s as ModelChannel, t as ApiModel, v as ModelSecurityProfileRequirement, w as ModelWorkflow, y as ModelSecurityScheme } from "./model-Lxa_mOzB.js";
|
|
4
4
|
import { Ct as AnyPlugin, d as MutationIntent, en as Authorizer, st as SchemaMeta } from "./types-D5UNIbOQ.js";
|
|
5
|
-
import { i as DbBlockSource } from "./db-blocks-
|
|
5
|
+
import { i as DbBlockSource } from "./db-blocks-Dp-4qbYN.js";
|
|
6
6
|
import { wt as EventMap } from "./events-X-Dhu495.js";
|
|
7
7
|
import { t as RealtimeStatus } from "./realtime-status-D3oUx3o4.js";
|
|
8
8
|
import { n as CloudEventOptions } from "./cloud-event-SAA1PEvA.js";
|
|
@@ -106,7 +106,7 @@ interface ApiKeysOptions<S extends StandardSchemaV1 | undefined = undefined> ext
|
|
|
106
106
|
readonly logger?: Logger;
|
|
107
107
|
readonly transport: BlockTransport;
|
|
108
108
|
readonly schema?: string;
|
|
109
|
-
/** The token's first segment, lowercase letters and digits. Defaults to `
|
|
109
|
+
/** The token's first segment, lowercase letters and digits. Defaults to `bs`. */
|
|
110
110
|
readonly prefix?: string;
|
|
111
111
|
}
|
|
112
112
|
interface ParsedApiKey {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as withFields, n as blockFields, r as extraFieldsArg, t as allWithFields } from "./block-fields-BKx78iez.js";
|
|
2
2
|
import { B as textOf, L as sha256Hex, N as recordsOf, P as requiredInstant, R as sleep, T as optionalText, j as recordOf, n as applyTemporal, o as blockCall } from "./block-helpers-BR1V7DN1.js";
|
|
3
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
3
|
+
import { r as withBlockHooks } from "./block-hooks-Bd5bRM9B.js";
|
|
4
4
|
import { i as subjectRefOf } from "./block-subjects-DgWgoNtn.js";
|
|
5
5
|
import { t as requireTenant } from "./block-tenant-DHvDBWgF.js";
|
|
6
6
|
import { n as dbError } from "./errors-CXPerGIl.js";
|
package/dist/astro/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { O as AnyFunctions, Ut as AnyAuthorizer, in as PermissionRef, k as AnyModels } from "../types-D5UNIbOQ.js";
|
|
2
|
-
import { s as BetterSupabase } from "../db-blocks-
|
|
3
|
-
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-
|
|
2
|
+
import { s as BetterSupabase } from "../db-blocks-Dp-4qbYN.js";
|
|
3
|
+
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-BoDTo47q.js";
|
|
4
4
|
import { a as AuthorizedContext, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-CjmzrlVW.js";
|
|
5
|
-
import { r as BetterServer } from "../server-types-
|
|
5
|
+
import { r as BetterServer } from "../server-types-Bpxk5UWh.js";
|
|
6
6
|
import { P as StorageImageOptions } from "../index-cPzs5TsD.js";
|
|
7
7
|
import { t as RefusalRedirects } from "../refusal-Dsn4WGbg.js";
|
|
8
8
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
package/dist/astro/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as around } from "../shared-Ci1g9nl4.js";
|
|
2
|
-
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
3
|
-
import { i as localsOf, r as frameworkEntry } from "../framework-
|
|
2
|
+
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-CJa5ys5O.js";
|
|
3
|
+
import { i as localsOf, r as frameworkEntry } from "../framework-BfP8NwDY.js";
|
|
4
4
|
import { c as defaultExpose, i as requireCaller, o as runAction } from "../kit-CBdolcQN.js";
|
|
5
5
|
import { r as refusalResponse } from "../refusal-Pue3-a0A.js";
|
|
6
6
|
import { i as storageImageUrl } from "../image-url-bsGeybeg.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as authorOf } from "./block-authors-BUczGqr5.js";
|
|
2
2
|
import { c as withFields, i as extraOf, n as blockFields, r as extraFieldsArg, t as allWithFields } from "./block-fields-BKx78iez.js";
|
|
3
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
3
|
+
import { r as withBlockHooks } from "./block-hooks-Bd5bRM9B.js";
|
|
4
4
|
import { n as optionalRecordRefOf } from "./block-subjects-DgWgoNtn.js";
|
|
5
5
|
import { t as requireTenant } from "./block-tenant-DHvDBWgF.js";
|
|
6
6
|
import { n as dbError } from "./errors-CXPerGIl.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as authErrorKind } from "./error-kind-Bkmljt19.js";
|
|
1
2
|
import { i as dbErrorOfStatus, n as dbError } from "./errors-CXPerGIl.js";
|
|
2
3
|
import { a as ok, r as err, s as toDbError } from "./result-DrBaeIVt.js";
|
|
3
4
|
// src/blocks/auth-reply.ts
|
|
@@ -7,7 +8,9 @@ function authFailure(error) {
|
|
|
7
8
|
const message = typeof failure.message === "string" && failure.message !== "" ? failure.message : "Auth request failed";
|
|
8
9
|
const status = typeof failure.status === "number" ? failure.status : 0;
|
|
9
10
|
const base = typeof failure.code === "string" ? { code: failure.code } : {};
|
|
10
|
-
|
|
11
|
+
const kind = authErrorKind(error);
|
|
12
|
+
if (kind === "retryable") return dbError("network", message, base);
|
|
13
|
+
if (kind === "rate-limited") return dbError("rate_limited", message, base);
|
|
11
14
|
return dbErrorOfStatus(status, message, base);
|
|
12
15
|
}
|
|
13
16
|
/** Awaits an Auth call as a `Result`; a throw becomes its `DbError` too. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as DisabledRow, n as ActiveTenantSource } from "./blocks-
|
|
1
|
+
import { d as DisabledRow, n as ActiveTenantSource } from "./blocks-EFj0duwB.js";
|
|
2
2
|
/**
|
|
3
3
|
* SQL expression templates the SQL modules and the access policies call.
|
|
4
4
|
* `{permission}` is a text expression (a literal or a parameter), `{user}` a
|
|
@@ -123,6 +123,13 @@ interface AuthorizationFunctions {
|
|
|
123
123
|
* calls it for portal reads such as a customer's own invoices.
|
|
124
124
|
*/
|
|
125
125
|
readonly portalParties?: string;
|
|
126
|
+
/**
|
|
127
|
+
* A no-argument function whose jsonb result is the signed-in user's
|
|
128
|
+
* authorizer subject. `blocks.sessions.options.bootstrap` entries that set no
|
|
129
|
+
* `subject` call it, so the bootstrap payload carries the subject and the
|
|
130
|
+
* server seeds its authorizer from it. Write it as `schema.function`.
|
|
131
|
+
*/
|
|
132
|
+
readonly subject?: string;
|
|
126
133
|
}
|
|
127
134
|
/** One scope the provider decides permissions in, such as `organization`. */
|
|
128
135
|
interface AuthorizationScope {
|
|
@@ -145,8 +152,8 @@ interface AuthorizationRequirement {
|
|
|
145
152
|
readonly role: string;
|
|
146
153
|
}
|
|
147
154
|
/** A permission key the provider defines. */
|
|
148
|
-
interface AuthorizationPermission {
|
|
149
|
-
readonly key:
|
|
155
|
+
interface AuthorizationPermission<Key extends string = string> {
|
|
156
|
+
readonly key: Key;
|
|
150
157
|
/**
|
|
151
158
|
* `true` when the SQL functions answer for the key completely. A key with row
|
|
152
159
|
* conditions they don't check is `false`, and policies refuse it. Unset means
|
|
@@ -161,9 +168,9 @@ interface AuthorizationPermission {
|
|
|
161
168
|
* inbox commands with that name need. The provider supplies the table;
|
|
162
169
|
* `blocks.<module>.permissions` still renames a module's own keys.
|
|
163
170
|
*/
|
|
164
|
-
interface AuthorizationOperation {
|
|
171
|
+
interface AuthorizationOperation<Key extends string = string> {
|
|
165
172
|
/** The permission key the operation needs. */
|
|
166
|
-
readonly permission:
|
|
173
|
+
readonly permission: Key;
|
|
167
174
|
readonly meta?: {
|
|
168
175
|
/** `low`, `medium` or `high`; a `high` operation can ask for approval. */
|
|
169
176
|
readonly risk?: "low" | "medium" | "high";
|
|
@@ -191,6 +198,12 @@ interface AuthorizationMembership {
|
|
|
191
198
|
* (`blocks.memberships.options.roles.many`).
|
|
192
199
|
*/
|
|
193
200
|
readonly rolesTable?: string;
|
|
201
|
+
/**
|
|
202
|
+
* The column that holds the time a member was disabled. A
|
|
203
|
+
* `blocks.memberships` mapping without `columns.memberships.disabledAt`
|
|
204
|
+
* defaults to it, so disabled members stop counting.
|
|
205
|
+
*/
|
|
206
|
+
readonly disabledAt?: string;
|
|
194
207
|
}
|
|
195
208
|
/** A membership table whose role column points into a roles table. */
|
|
196
209
|
interface AuthorizationRoleSource {
|
|
@@ -203,9 +216,53 @@ interface AuthorizationRoleSource {
|
|
|
203
216
|
readonly table: string;
|
|
204
217
|
readonly id: string;
|
|
205
218
|
readonly column: string;
|
|
219
|
+
/** The roles' tenant column, for tenant custom roles. */
|
|
220
|
+
readonly tenant?: string;
|
|
221
|
+
/** A condition on the roles row `{row}` that holds for these roles only. */
|
|
222
|
+
readonly where?: string;
|
|
206
223
|
};
|
|
207
224
|
};
|
|
208
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* The table of platform role assignments, with who may assign which role.
|
|
228
|
+
* `blocks.invitations.options.platformRoles` defaults to it.
|
|
229
|
+
*/
|
|
230
|
+
interface AuthorizationPlatformRoles {
|
|
231
|
+
/** `schema.table` of the assignments. */
|
|
232
|
+
readonly table: string;
|
|
233
|
+
/** The user column. */
|
|
234
|
+
readonly user: string;
|
|
235
|
+
/** The role column. */
|
|
236
|
+
readonly role: string;
|
|
237
|
+
/** The roles table the role column points into. */
|
|
238
|
+
readonly through?: {
|
|
239
|
+
readonly table: string;
|
|
240
|
+
readonly id: string;
|
|
241
|
+
readonly column: string;
|
|
242
|
+
/** A condition on `{row}` that holds for platform roles only. */
|
|
243
|
+
readonly where?: string;
|
|
244
|
+
};
|
|
245
|
+
/** `{user}` and `{role}`: whether the caller may assign the role. */
|
|
246
|
+
readonly canAssign?: string;
|
|
247
|
+
/** `canAssign` for `{user}`. */
|
|
248
|
+
readonly canAssignFor?: string;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* A user the access matrix signs in as, with the permission keys the provider
|
|
252
|
+
* says that user holds in the tenant.
|
|
253
|
+
*/
|
|
254
|
+
interface AuthorizationPersona<Key extends string = string> {
|
|
255
|
+
/** Lower case letters, digits and `_`; the matrix file is named after it. */
|
|
256
|
+
readonly name: string;
|
|
257
|
+
/**
|
|
258
|
+
* SQL that creates the persona's memberships and roles. `{user}` is its uuid
|
|
259
|
+
* and `{tenant}` the tenant id.
|
|
260
|
+
*/
|
|
261
|
+
readonly setup: string;
|
|
262
|
+
readonly claims?: Readonly<Record<string, unknown>>;
|
|
263
|
+
/** The keys the persona holds in the tenant; every other key is denied. */
|
|
264
|
+
readonly permissions: readonly Key[];
|
|
265
|
+
}
|
|
209
266
|
/** The access token hook the provider generates. */
|
|
210
267
|
interface AuthorizationTokenHook {
|
|
211
268
|
/** `schema.name`. */
|
|
@@ -277,7 +334,7 @@ interface AuthorizationVersions {
|
|
|
277
334
|
* An authorization system the SQL modules, the policies and doctor delegate to.
|
|
278
335
|
* It is plain data, usually built from the provider's own output files.
|
|
279
336
|
*/
|
|
280
|
-
interface AuthorizationProvider {
|
|
337
|
+
interface AuthorizationProvider<Key extends string = string> {
|
|
281
338
|
readonly apiVersion: 1;
|
|
282
339
|
/** The provider's name, for messages. */
|
|
283
340
|
readonly name: string;
|
|
@@ -286,13 +343,13 @@ interface AuthorizationProvider {
|
|
|
286
343
|
readonly tenantScope: string;
|
|
287
344
|
readonly functions: AuthorizationFunctions;
|
|
288
345
|
readonly requires?: readonly AuthorizationRequirement[];
|
|
289
|
-
readonly permissions?: readonly AuthorizationPermission[];
|
|
346
|
+
readonly permissions?: readonly AuthorizationPermission<Key>[];
|
|
290
347
|
/**
|
|
291
348
|
* Operations by name (`workflow.node.http`, `mcp.tool.search_posts`,
|
|
292
349
|
* `ai.tool.send_email`, `inbox.command.assign`). A module looks an operation
|
|
293
350
|
* up here first and uses its own default permission otherwise.
|
|
294
351
|
*/
|
|
295
|
-
readonly operations?: Readonly<Record<string, AuthorizationOperation
|
|
352
|
+
readonly operations?: Readonly<Record<string, AuthorizationOperation<Key>>>;
|
|
296
353
|
readonly memberships?: readonly AuthorizationMembership[];
|
|
297
354
|
/** Rows that say whether a user or a tenant is active. */
|
|
298
355
|
readonly suspension?: {
|
|
@@ -300,6 +357,10 @@ interface AuthorizationProvider {
|
|
|
300
357
|
readonly tenant?: DisabledRow;
|
|
301
358
|
};
|
|
302
359
|
readonly roleSources?: readonly AuthorizationRoleSource[];
|
|
360
|
+
/** Where platform roles are assigned, and who may assign them. */
|
|
361
|
+
readonly platformRoles?: AuthorizationPlatformRoles;
|
|
362
|
+
/** Users the access matrix signs in as, one pgTAP file each. */
|
|
363
|
+
readonly personas?: readonly AuthorizationPersona<Key>[];
|
|
303
364
|
/** `schema.table.column` of every column that decides access (BS213). */
|
|
304
365
|
readonly decidingColumns?: readonly string[];
|
|
305
366
|
readonly tokenHook?: AuthorizationTokenHook;
|
|
@@ -336,4 +397,4 @@ declare function providerApiProblem(provider: {
|
|
|
336
397
|
readonly name?: unknown;
|
|
337
398
|
readonly apiVersion?: unknown;
|
|
338
399
|
}): string | undefined;
|
|
339
|
-
export {
|
|
400
|
+
export { AuthorizationPersona as a, AuthorizationRequirement as c, AuthorizationTokenHook as d, AuthorizationVersions as f, AuthorizationPermission as i, AuthorizationRoleSource as l, AuthorizationMembership as n, AuthorizationPlatformRoles as o, providerApiProblem as p, AuthorizationOperation as r, AuthorizationProvider as s, AuthorizationFunctions as t, AuthorizationScope as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as actionKey } from "./automation-k4n-xRy9.js";
|
|
2
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
2
|
+
import { r as withBlockHooks } from "./block-hooks-Bd5bRM9B.js";
|
|
3
3
|
import { n as dbError } from "./errors-CXPerGIl.js";
|
|
4
4
|
import { _ as legacyEventType } from "./renames-PnqMkqit.js";
|
|
5
5
|
import { a as ok, r as err, t as AsyncResult } from "./result-DrBaeIVt.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as DbError, n as BetterResultApi, t as AsyncResult } from "../result-CMqlHv82.js";
|
|
2
2
|
import { O as AnyFunctions, Q as PrimaryKeyValue, dt as TableKey, ft as TableMeta, gt as Update, k as AnyModels, q as Insert, wt as ApplyExtension } from "../types-D5UNIbOQ.js";
|
|
3
|
-
import { A as RawRpcOptions, At as ListArgs, B as WriteArgs, C as OffsetPageArgs, D as OverloadedName, E as OverloadReturns, Et as GetArgs, F as RpcArgs, G as ReadSet, H as SearchArgs, I as RpcOptions, L as UpdateArgs, Lt as Payload, N as Returned, O as PageOf, P as RowFilter, Q as ReadSetResult, R as UpsertArgs, T as OverloadArgs, U as SearchScore, V as WriteManyArgs, W as InferReadSetParams, _ as GetKey, b as ManyWriteArgs, d as CursorPageArgs, f as Db, g as FindExt, gt as AggregateArgs, h as DeleteExt, k as PlainName, m as DeleteArgs, ot as InferResult, st as QuerySpec, v as ManyOutcome, w as OffsetRangeArgs, wt as CountArgs, x as NoArgName, y as ManyResult, yt as AggregateResult, z as UpsertManyArgs } from "../db-blocks-
|
|
4
|
-
import { a as ListExtra, d as ListQuery, i as ListDefinition, o as ListPage, s as ListPagination } from "../list-query-
|
|
3
|
+
import { A as RawRpcOptions, At as ListArgs, B as WriteArgs, C as OffsetPageArgs, D as OverloadedName, E as OverloadReturns, Et as GetArgs, F as RpcArgs, G as ReadSet, H as SearchArgs, I as RpcOptions, L as UpdateArgs, Lt as Payload, N as Returned, O as PageOf, P as RowFilter, Q as ReadSetResult, R as UpsertArgs, T as OverloadArgs, U as SearchScore, V as WriteManyArgs, W as InferReadSetParams, _ as GetKey, b as ManyWriteArgs, d as CursorPageArgs, f as Db, g as FindExt, gt as AggregateArgs, h as DeleteExt, k as PlainName, m as DeleteArgs, ot as InferResult, st as QuerySpec, v as ManyOutcome, w as OffsetRangeArgs, wt as CountArgs, x as NoArgName, y as ManyResult, yt as AggregateResult, z as UpsertManyArgs } from "../db-blocks-Dp-4qbYN.js";
|
|
4
|
+
import { a as ListExtra, d as ListQuery, i as ListDefinition, o as ListPage, s as ListPagination } from "../list-query-CREBmVkm.js";
|
|
5
5
|
import { Result } from "better-result";
|
|
6
6
|
/**
|
|
7
7
|
* Better-result's `Result` namespace with the function each `DbError` goes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as DataEngine } from "./data-engine-BcUcfW1q.js";
|
|
2
|
-
import { dr as GeneratedBlocks } from "./define-block-
|
|
3
|
-
import { f as Db, s as BetterSupabase } from "./db-blocks-
|
|
2
|
+
import { dr as GeneratedBlocks } from "./define-block-B2um61Uj.js";
|
|
3
|
+
import { f as Db, s as BetterSupabase } from "./db-blocks-Dp-4qbYN.js";
|
|
4
4
|
import { c as BlockTenant } from "./block-helpers-YOdaCxWE.js";
|
|
5
|
-
import { it as BetterQueries } from "./index-
|
|
5
|
+
import { it as BetterQueries } from "./index-CnQ27iFg.js";
|
|
6
6
|
import { O as AnyFunctions, k as AnyModels } from "./types-D5UNIbOQ.js";
|
|
7
|
-
import { t as ClientPorts } from "./ports-
|
|
7
|
+
import { t as ClientPorts } from "./ports-DT5zRdYx.js";
|
|
8
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
interface AuthUser {
|
|
10
10
|
readonly id: string;
|
|
@@ -51,7 +51,10 @@ interface BetterClient<M extends AnyModels, F extends AnyFunctions, E, C = unkno
|
|
|
51
51
|
* push, links.
|
|
52
52
|
*/
|
|
53
53
|
readonly ports: ClientPorts;
|
|
54
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* `blockConfig` from `blocks.config.ts` (plain data, so the browser doesn't
|
|
56
|
+
* bundle the blocks), when passed.
|
|
57
|
+
*/
|
|
55
58
|
readonly blocks?: GeneratedBlocks;
|
|
56
59
|
/**
|
|
57
60
|
* The organization block hooks act in: the `organization` option, or the
|
|
@@ -78,8 +81,9 @@ interface BindClientOptions {
|
|
|
78
81
|
*/
|
|
79
82
|
readonly ports?: ClientPorts;
|
|
80
83
|
/**
|
|
81
|
-
* `blockConfig` from `blocks.
|
|
82
|
-
* function names and
|
|
84
|
+
* `blockConfig` from `blocks.config.ts` (plain data, so the browser doesn't
|
|
85
|
+
* bundle the blocks): the block hooks call the schema, function names and
|
|
86
|
+
* topics `gen` wrote.
|
|
83
87
|
*/
|
|
84
88
|
readonly blocks?: GeneratedBlocks;
|
|
85
89
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as ClientPorts } from "./ports-
|
|
2
|
-
import { n as TopicPort } from "./watch-topic-
|
|
3
|
-
import { dr as GeneratedBlocks } from "./define-block-
|
|
4
|
-
import { t as AuthPort } from "./controller-
|
|
1
|
+
import { t as ClientPorts } from "./ports-DT5zRdYx.js";
|
|
2
|
+
import { n as TopicPort } from "./watch-topic-D4AzYs9E.js";
|
|
3
|
+
import { dr as GeneratedBlocks } from "./define-block-B2um61Uj.js";
|
|
4
|
+
import { t as AuthPort } from "./controller-BrTPi8Po.js";
|
|
5
5
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
6
6
|
/**
|
|
7
7
|
* What the block bindings hand their controllers: the provider's client,
|
|
@@ -96,6 +96,7 @@ function withBlockHooks(client, hooks, options = {}) {
|
|
|
96
96
|
* );
|
|
97
97
|
* ```
|
|
98
98
|
*/
|
|
99
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
99
100
|
function extendBlock(client, build, options = {}) {
|
|
100
101
|
const { transport } = options;
|
|
101
102
|
const additions = build(client, { call: transport ? blockCall(transport, options.schema ?? "better_supabase", options.mappers ?? []) : () => AsyncResult.err(dbError("unsupported", "extendBlock needs the transport option to call SQL functions")) });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as TABLE_RENAMES, n as ENTITY_RENAMES_CODEMOD, t as ENTITY_KEY_RENAMES, u as SUBJECT_TYPE_RENAMES } from "./renames-PnqMkqit.js";
|
|
2
2
|
import { a as entityNoun, i as entityNames, n as checkEntityName, s as tenantRename, t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
|
|
3
|
-
import { B as resolveBlock, I as PRESET_CATALOG, V as tenantNameOf } from "./instances-
|
|
3
|
+
import { B as resolveBlock, I as PRESET_CATALOG, V as tenantNameOf } from "./instances-CFXFHQMK.js";
|
|
4
4
|
// src/config/defaults.ts
|
|
5
5
|
/**
|
|
6
6
|
* Every default `resolveConfig` fills in. Other modules (the SQL module
|
|
@@ -206,7 +206,7 @@ const CLIENT_FUNCTIONS = {
|
|
|
206
206
|
segments: "list_segment_members refresh_due_segments refresh_segment remove_segment save_segment segment_get segments_list segments_of",
|
|
207
207
|
sequences: "change_sequence_enrollment delete_sequence enroll_in_sequence get_sequence list_sequence_enrollments list_sequences run_due_sequences save_sequence sequence_step_failed sequence_step_sent",
|
|
208
208
|
"service-accounts": "default_service_principal disable_service_principal register_service_principal service_principals_list set_service_principal_role",
|
|
209
|
-
sessions: "end_my_session list_my_sessions sessions_overview",
|
|
209
|
+
sessions: "end_my_session end_sessions last_sign_ins list_my_sessions sessions_overview",
|
|
210
210
|
settings: "get_organization_settings get_platform_settings get_user_settings reset_organization_setting reset_platform_setting reset_user_setting set_organization_setting set_platform_setting set_user_setting",
|
|
211
211
|
"share-links": "create_share_link list_share_links record_view resolve_share_link revoke_share_link set_user_state",
|
|
212
212
|
shifts: "archive_shift_template assign_shift cancel_shift decide_shift_request decide_shift_swap generate_shifts list_shift_availability list_shift_templates my_shifts publish_shifts request_open_shift request_shift_swap roster save_shift save_shift_template set_shift_availability shift_hours unassign_shift",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Zt as ResolvedConfig } from "./context-
|
|
1
|
+
import { Zt as ResolvedConfig } from "./context-DcHcHc2b.js";
|
|
2
2
|
/**
|
|
3
3
|
* One block table as the config names it: unquoted schema and table, and each
|
|
4
4
|
* logical column's written name, or `null` when an adopted table lacks it.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as AccessRequests, Qn as AccessRequestStatus, Xn as AccessRequestInput, Yn as AccessRequest, Zn as AccessRequestListOptions, ar as RecordAccessInput, c as BlockOf, cr as RoleAccessRequest, er as AccessRequestsOptions, ir as EmergencyReviewInput, lr as createAccessRequests, nr as EmergencyListOptions, or as RecordAccessRequest, rr as EmergencyReview, sr as RecordRequestListOptions, tr as EmergencyAccessInput } from "../../define-block-
|
|
1
|
+
import { $n as AccessRequests, Qn as AccessRequestStatus, Xn as AccessRequestInput, Yn as AccessRequest, Zn as AccessRequestListOptions, ar as RecordAccessInput, c as BlockOf, cr as RoleAccessRequest, er as AccessRequestsOptions, ir as EmergencyReviewInput, lr as createAccessRequests, nr as EmergencyListOptions, or as RecordAccessRequest, rr as EmergencyReview, sr as RecordRequestListOptions, tr as EmergencyAccessInput } from "../../define-block-B2um61Uj.js";
|
|
2
2
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DBteddOY.js";
|
|
3
3
|
import { Dt as Events, f as AccessRequestEventData, z as EmergencyAccessEventData } from "../../events-X-Dhu495.js";
|
|
4
4
|
/** The events of the `access-requests` block: type to data. */
|