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
package/dist/config/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as Casing } from "../types-D5UNIbOQ.js";
|
|
2
|
-
import { Ct as SubjectPermission, Et as SubjectsConfig, St as SubjectConfig, Tt as SubjectTeam, _ as OwnTablePolicies, c as BlockScope, d as DisabledRow, f as EntitiesConfig, i as BlockConfig, l as BlocksConfig, n as ActiveTenantSource, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, t as AccessBlockConfig, u as DEFAULT_ACTIVE_TENANT, wt as SubjectSearch, x as tenantNameOf } from "../blocks-
|
|
3
|
-
import { $r as
|
|
4
|
-
import { $ as ClaimPaths, $r as APP_COLUMN_TYPES, $t as ApiConfig, Ai as CatalogPolicy, Ar as ResolvedSeedConfig, At as GeneratorBlockEntity, B as zod, Bi as Snapshot, Br as TopicTriggerLookupConfig, Bt as GeneratorNoun, Ci as CatalogColumnGrant, Ct as RoleNames, Di as CatalogFunctionArg, Dt as GeneratedFile, Ei as CatalogFunction, Et as CodecsConfig, Fi as ExtrasFunction, Fr as SeedSampleSize, Ft as GeneratorFunctionArg, G as NuqsGeneratorOptions, Gi as PostgresFunction, Gr as VectorSearchConfig, Gt as SourceConfig, H as valibot, Hi as SnapshotExtras, Hr as TopicTriggerTopicConfig, Ht as JsonSchemaSource, Ii as ExtrasHook, Ir as SqlBlockDefaults, It as GeneratorInput, J as factories, Ji as RpcFunctionArg, Jt as DataHooksFramework, K as nuqs, Ki as PostgresFunctionArg, Kr as CONFIG_DEFAULTS, Kt as TableConfig, Li as ExtrasHookFunction, Lr as SqlConfig, Lt as GeneratorInputSchema, Mi as CatalogTrigger, Mr as SeedConfig, Mt as GeneratorEntitySchemas, Ni as CatalogUnique, Nr as SeedDefaultsConfig, Nt as GeneratorField, Oi as CatalogGrant, Or as BucketConfig, Ot as Generator, Pi as ExtrasDomain, Pr as SeedSampleConfig, Pt as GeneratorFunction, Q as JsonSchemaTarget, Qi as RpcTypeReference, Qr as APP_COLUMN_FORMATS, Qt as ResolvedExtensions, R as ZodFlavor, Ri as ExtrasTable, Rr as SqlWorkflow, Rt as GeneratorJsonSchema, Si as CatalogColumn, St as ConfigReferences, Ti as CatalogForeignKey, Tt as ClaimsConfig, U as StandardSchemaGeneratorOptions, Ui as GeneratorMetadata, Ur as TopicTriggerValueConfig, Ut as JsonTypeConfig, V as ValibotGeneratorOptions, Vi as SnapshotBucket, Vr as TopicTriggerPayloadValueConfig, Vt as GeneratorTable, W as standardSchema, Wi as PostgresColumn, Wr as VectorDistance, Wt as RelationsConfig, X as buildJsonSchema, Xi as RpcFunctionReturns, Xt as FlatConfig, Y as JsonSchemaGeneratorOptions, Yi as RpcFunctionOverload, Yt as DataHooksSelect, Z as jsonSchema, Zi as RpcReturnColumn, Zr as APP_COLUMN_ACCESS, Zt as ResolvedConfig, _i as AppTableSubject, _n as ExposeRole, _t as ResolveInput, ai as AppColumnFormat, an as BlocksInput, at as blockEntityRenames, bi as Catalog, bt as BlockTableReference, ci as AppOnDeleteAction, cn as GenGroupConfig, cr as ExpandedConfig, ct as blockSubjectTypes, di as AppRollupAggregate, dn as ToolingConfig, dt as RENAMED_CONFIG_KEYS, ei as APP_ON_DELETE_ACTIONS, en as AppTableInput, et as DEFAULT_CLAIMS, fi as AppRollupConfig, fn as EntitlementPlansSource, ft as blockEntrySource, gi as AppTableEvents, gn as ExposePrivilege, gt as CONFIG_SCHEMA_URL, hi as AppTableEventKind, hn as ExposeConfig, ht as groupEntries, ii as AppColumnConfig, in as BlockInput, it as blockEntities, ji as CatalogTable, jr as ResolvedSqlConfig, jt as GeneratorColumn, ki as CatalogIndex, kr as RealtimeConfig, kt as GeneratorBlock, li as AppReference, ln as SqlInput, lt as CONFIG_GROUPS, mi as AppTableEmbedding, mn as ColumnPrivilege, mt as groupConfig, ni as APP_TABLE_EVENT_KINDS, nn as AuthConfig, nt as tenantClaimPaths, oi as AppColumnType, on as DatabaseConfig, ot as blockEventRenames, pi as AppTableConfig, pn as EntitlementsConfig, pt as flattenConfig, q as FactoriesGeneratorOptions, qi as RpcFunction, qt as DataHooksConfig, ri as AppColumnAccess, rn as BetterSupabaseConfig, rt as BlockEntity, si as AppLookupConfig, sn as EnvironmentConfig, st as blockFormerFunctions, ti as APP_ROLLUP_AGGREGATES, tn as AppTablesInput, tt as claimPaths, ui as AppReferenceTarget, un as TenantConfig, ut as RENAMED_BLOCK_KEYS, vi as AppTableVersions, vn as Privilege, vt as defineConfig, wi as CatalogEnum, wt as resolveJsonSchema, xi as CatalogCheck, xt as BucketName, yi as AppTablesConfig, yn as ResolvedExpose, yt as resolveConfig, z as ZodGeneratorOptions, zi as ForeignKeyAction, zr as TopicTriggerConfig, zt as GeneratorModel } from "../context-
|
|
5
|
-
import { a as
|
|
6
|
-
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEmbedding, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type AuthorizationVersions, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksConfig, type DataHooksFramework, type DataHooksSelect, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSeedConfig, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SeedDefaultsConfig, type SeedSampleConfig, type SeedSampleSize, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlBlockDefaults, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectTeam, type SubjectsConfig, type TableConfig, type TenantConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockEventRenames, blockFormerFunctions, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
|
2
|
+
import { Ct as SubjectPermission, Et as SubjectsConfig, St as SubjectConfig, Tt as SubjectTeam, _ as OwnTablePolicies, c as BlockScope, d as DisabledRow, f as EntitiesConfig, i as BlockConfig, l as BlocksConfig, n as ActiveTenantSource, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, t as AccessBlockConfig, u as DEFAULT_ACTIVE_TENANT, wt as SubjectSearch, x as tenantNameOf } from "../blocks-EFj0duwB.js";
|
|
3
|
+
import { $r as SkillsConfig, Gr as GenConfig, Jr as KeysConfig, Kr as GenTask, Qr as SkillsAgent, Ur as DoctorConfig, Wr as EnvFileConfig, Xr as OpenApiConfig, Yr as MigrationSafetyConfig, Zr as PowerSyncGenConfig, ai as IntegrationInfo, ii as INTEGRATION_NAMES, ln as FieldFormat, ni as GEN_TASKS, oi as SKILLS_AGENTS, qr as IntegrationName, ri as INTEGRATION_INFO, sn as FIELD_FORMATS, un as FieldFormatInput } from "../define-block-B2um61Uj.js";
|
|
4
|
+
import { $ as ClaimPaths, $r as APP_COLUMN_TYPES, $t as ApiConfig, Ai as CatalogPolicy, Ar as ResolvedSeedConfig, At as GeneratorBlockEntity, B as zod, Bi as Snapshot, Br as TopicTriggerLookupConfig, Bt as GeneratorNoun, Ci as CatalogColumnGrant, Ct as RoleNames, Di as CatalogFunctionArg, Dt as GeneratedFile, Ei as CatalogFunction, Et as CodecsConfig, Fi as ExtrasFunction, Fr as SeedSampleSize, Ft as GeneratorFunctionArg, G as NuqsGeneratorOptions, Gi as PostgresFunction, Gr as VectorSearchConfig, Gt as SourceConfig, H as valibot, Hi as SnapshotExtras, Hr as TopicTriggerTopicConfig, Ht as JsonSchemaSource, Ii as ExtrasHook, Ir as SqlBlockDefaults, It as GeneratorInput, J as factories, Ji as RpcFunctionArg, Jt as DataHooksFramework, K as nuqs, Ki as PostgresFunctionArg, Kr as CONFIG_DEFAULTS, Kt as TableConfig, Li as ExtrasHookFunction, Lr as SqlConfig, Lt as GeneratorInputSchema, Mi as CatalogTrigger, Mr as SeedConfig, Mt as GeneratorEntitySchemas, Ni as CatalogUnique, Nr as SeedDefaultsConfig, Nt as GeneratorField, Oi as CatalogGrant, Or as BucketConfig, Ot as Generator, Pi as ExtrasDomain, Pr as SeedSampleConfig, Pt as GeneratorFunction, Q as JsonSchemaTarget, Qi as RpcTypeReference, Qr as APP_COLUMN_FORMATS, Qt as ResolvedExtensions, R as ZodFlavor, Ri as ExtrasTable, Rr as SqlWorkflow, Rt as GeneratorJsonSchema, Si as CatalogColumn, St as ConfigReferences, Ti as CatalogForeignKey, Tt as ClaimsConfig, U as StandardSchemaGeneratorOptions, Ui as GeneratorMetadata, Ur as TopicTriggerValueConfig, Ut as JsonTypeConfig, V as ValibotGeneratorOptions, Vi as SnapshotBucket, Vr as TopicTriggerPayloadValueConfig, Vt as GeneratorTable, W as standardSchema, Wi as PostgresColumn, Wr as VectorDistance, Wt as RelationsConfig, X as buildJsonSchema, Xi as RpcFunctionReturns, Xt as FlatConfig, Y as JsonSchemaGeneratorOptions, Yi as RpcFunctionOverload, Yt as DataHooksSelect, Z as jsonSchema, Zi as RpcReturnColumn, Zr as APP_COLUMN_ACCESS, Zt as ResolvedConfig, _i as AppTableSubject, _n as ExposeRole, _t as ResolveInput, ai as AppColumnFormat, an as BlocksInput, at as blockEntityRenames, bi as Catalog, bt as BlockTableReference, ci as AppOnDeleteAction, cn as GenGroupConfig, cr as ExpandedConfig, ct as blockSubjectTypes, di as AppRollupAggregate, dn as ToolingConfig, dt as RENAMED_CONFIG_KEYS, ei as APP_ON_DELETE_ACTIONS, en as AppTableInput, et as DEFAULT_CLAIMS, fi as AppRollupConfig, fn as EntitlementPlansSource, ft as blockEntrySource, gi as AppTableEvents, gn as ExposePrivilege, gt as CONFIG_SCHEMA_URL, hi as AppTableEventKind, hn as ExposeConfig, ht as groupEntries, ii as AppColumnConfig, in as BlockInput, it as blockEntities, ji as CatalogTable, jr as ResolvedSqlConfig, jt as GeneratorColumn, ki as CatalogIndex, kr as RealtimeConfig, kt as GeneratorBlock, li as AppReference, ln as SqlInput, lt as CONFIG_GROUPS, mi as AppTableEmbedding, mn as ColumnPrivilege, mt as groupConfig, ni as APP_TABLE_EVENT_KINDS, nn as AuthConfig, nt as tenantClaimPaths, oi as AppColumnType, on as DatabaseConfig, ot as blockEventRenames, pi as AppTableConfig, pn as EntitlementsConfig, pt as flattenConfig, q as FactoriesGeneratorOptions, qi as RpcFunction, qt as DataHooksConfig, ri as AppColumnAccess, rn as BetterSupabaseConfig, rt as BlockEntity, si as AppLookupConfig, sn as EnvironmentConfig, st as blockFormerFunctions, ti as APP_ROLLUP_AGGREGATES, tn as AppTablesInput, tt as claimPaths, ui as AppReferenceTarget, un as TenantConfig, ut as RENAMED_BLOCK_KEYS, vi as AppTableVersions, vn as Privilege, vt as defineConfig, wi as CatalogEnum, wt as resolveJsonSchema, xi as CatalogCheck, xt as BucketName, yi as AppTablesConfig, yn as ResolvedExpose, yt as resolveConfig, z as ZodGeneratorOptions, zi as ForeignKeyAction, zr as TopicTriggerConfig, zt as GeneratorModel } from "../context-DcHcHc2b.js";
|
|
5
|
+
import { a as AuthorizationPersona, c as AuthorizationRequirement, d as AuthorizationTokenHook, f as AuthorizationVersions, i as AuthorizationPermission, l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, p as providerApiProblem, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions, u as AuthorizationScope } from "../authorization-UYejwQsk.js";
|
|
6
|
+
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEmbedding, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationPersona, type AuthorizationPlatformRoles, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type AuthorizationVersions, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksConfig, type DataHooksFramework, type DataHooksSelect, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSeedConfig, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SeedDefaultsConfig, type SeedSampleConfig, type SeedSampleSize, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlBlockDefaults, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectTeam, type SubjectsConfig, type TableConfig, type TenantConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockEventRenames, blockFormerFunctions, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
package/dist/config/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as resolveJsonSchema, i as blockFormerFunctions, n as blockEntityRenames, o as blockSubjectTypes, r as blockEventRenames, t as blockEntities, v as CONFIG_DEFAULTS } from "../block-subjects-
|
|
2
|
-
import { A as blockEntrySource, D as CONFIG_GROUPS, F as INTEGRATION_INFO, I as INTEGRATION_NAMES, L as SKILLS_AGENTS, M as groupConfig, N as groupEntries, O as RENAMED_BLOCK_KEYS, P as GEN_TASKS, j as flattenConfig, k as RENAMED_CONFIG_KEYS } from "../config-
|
|
1
|
+
import { _ as resolveJsonSchema, i as blockFormerFunctions, n as blockEntityRenames, o as blockSubjectTypes, r as blockEventRenames, t as blockEntities, v as CONFIG_DEFAULTS } from "../block-subjects-Cvd-RaMY.js";
|
|
2
|
+
import { A as blockEntrySource, D as CONFIG_GROUPS, F as INTEGRATION_INFO, I as INTEGRATION_NAMES, L as SKILLS_AGENTS, M as groupConfig, N as groupEntries, O as RENAMED_BLOCK_KEYS, P as GEN_TASKS, j as flattenConfig, k as RENAMED_CONFIG_KEYS } from "../config-B1m2PpjB.js";
|
|
3
3
|
import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-CqTr_N1n.js";
|
|
4
|
-
import { A as APP_ON_DELETE_ACTIONS, D as APP_COLUMN_ACCESS, M as APP_TABLE_EVENT_KINDS, O as APP_COLUMN_FORMATS, R as DEFAULT_ACTIVE_TENANT, V as tenantNameOf, j as APP_ROLLUP_AGGREGATES, k as APP_COLUMN_TYPES } from "../instances-
|
|
4
|
+
import { A as APP_ON_DELETE_ACTIONS, D as APP_COLUMN_ACCESS, M as APP_TABLE_EVENT_KINDS, O as APP_COLUMN_FORMATS, R as DEFAULT_ACTIVE_TENANT, V as tenantNameOf, j as APP_ROLLUP_AGGREGATES, k as APP_COLUMN_TYPES } from "../instances-CFXFHQMK.js";
|
|
5
5
|
import { i as FIELD_FORMATS } from "../field-formats-sLYMh1ZK.js";
|
|
6
|
-
import { a as factories, c as resolveConfig, i as nuqs, l as providerApiProblem, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod } from "../config-
|
|
6
|
+
import { a as factories, c as resolveConfig, i as nuqs, l as providerApiProblem, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod } from "../config-BWYT86yp.js";
|
|
7
7
|
import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-COU-5CpW.js";
|
|
8
8
|
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockEventRenames, blockFormerFunctions, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as linkNeedsRelations, I as PRESET_CATALOG, z as asBlocksConfig } from "./instances-
|
|
1
|
+
import { F as linkNeedsRelations, I as PRESET_CATALOG, z as asBlocksConfig } from "./instances-CFXFHQMK.js";
|
|
2
2
|
import { t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.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
|
import { t as canonicalJson } from "./canonical-json-CTT9fC4F.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as withBlockSubjects, v as CONFIG_DEFAULTS } from "./block-subjects-
|
|
2
|
-
import { j as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-
|
|
1
|
+
import { c as withBlockSubjects, v as CONFIG_DEFAULTS } from "./block-subjects-Cvd-RaMY.js";
|
|
2
|
+
import { j as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-B1m2PpjB.js";
|
|
3
3
|
import { t as DEFAULT_CLAIMS } from "./claims-CqTr_N1n.js";
|
|
4
4
|
import { o as tenantNames } from "./entity-naming-BES3pkQI.js";
|
|
5
|
-
import { V as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-
|
|
5
|
+
import { V as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-CFXFHQMK.js";
|
|
6
6
|
import { C as variantsFor, S as variantTitle, _ as schemaName, a as extraSchemas, b as tableEntries, c as resultType, d as fieldSpec, f as fieldsFor, g as rowType, h as propertyKey, i as extraKinds, l as HEADER, m as parseImport, o as fieldMetaLines, p as optionalLine, s as objectType, u as fieldDocs, v as siblingPath, x as temporalGuardImport, y as tableDocs } from "./json-schema-COU-5CpW.js";
|
|
7
7
|
// src/config/authorization.ts
|
|
8
8
|
/**
|
|
@@ -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-D5UNIbOQ.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 {
|
|
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-EFj0duwB.js";
|
|
4
|
+
import { $r as SkillsConfig, C as BlockWorker, Dr as Preset, Gr as GenConfig, Ir as PresetScope, Jr as KeysConfig, Or as PresetAccess, Pr as PresetInstance, Rr as PresetTenantName, Ur as DoctorConfig, Wr as EnvFileConfig, Xr as OpenApiConfig, b as BlockEnvKey, br as EntityNoun, cn as FIELD_FORMAT_NAMES, dn as FieldFormatName, ei as SpecOutputConfig, g as PartDefaults, i as BlockCategory, jr as PresetFieldKey, kr as PresetConventions, pt as PortName, qr as IntegrationName, ti as SpecsConfig, ui as ActionDescriptor, vi as BlockSchedule, x as BlockProvider, xr as EntityRename, yi as DefaultAutomation, yr as EntityNames } from "./define-block-B2um61Uj.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 {
|
|
9
|
+
import { l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions } from "./authorization-UYejwQsk.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
|
|
@@ -3213,6 +3213,31 @@ type InstanceReferences<C> = {
|
|
|
3213
3213
|
readonly uses?: Readonly<Record<string, InstanceNames<C>>>;
|
|
3214
3214
|
}; };
|
|
3215
3215
|
};
|
|
3216
|
+
type ProviderOf<C> = C extends {
|
|
3217
|
+
readonly auth: {
|
|
3218
|
+
readonly authorization: infer P;
|
|
3219
|
+
};
|
|
3220
|
+
} ? P : never;
|
|
3221
|
+
/**
|
|
3222
|
+
* The permission keys a typed provider (`AuthorizationProvider<Key>`) declares,
|
|
3223
|
+
* or `string` when the config has no provider or an untyped one.
|
|
3224
|
+
*/
|
|
3225
|
+
type ProviderKeys<C> = [ProviderOf<C>] extends [never] ? string : ProviderOf<C> extends AuthorizationProvider<infer K> ? K : string;
|
|
3226
|
+
type PermissionReferences<C> = string extends ProviderKeys<C> ? unknown : {
|
|
3227
|
+
readonly blocks?: { readonly [K in keyof BlocksOf<C>]?: {
|
|
3228
|
+
readonly [field: string]: unknown;
|
|
3229
|
+
readonly permissions?: Readonly<Record<string, ProviderKeys<C>>>;
|
|
3230
|
+
readonly roles?: Readonly<Record<string, readonly ("*" | ProviderKeys<C>)[]>>;
|
|
3231
|
+
readonly scopes?: Readonly<Record<string, readonly ProviderKeys<C>[]>>;
|
|
3232
|
+
}; };
|
|
3233
|
+
readonly subjects?: Readonly<Record<string, {
|
|
3234
|
+
readonly [field: string]: unknown;
|
|
3235
|
+
readonly permissions?: Readonly<Record<string, ProviderKeys<C> | {
|
|
3236
|
+
readonly key?: ProviderKeys<C>;
|
|
3237
|
+
readonly also?: ProviderKeys<C>;
|
|
3238
|
+
}>>;
|
|
3239
|
+
}>>;
|
|
3240
|
+
};
|
|
3216
3241
|
/**
|
|
3217
3242
|
* What `defineConfig` checks a literal config against: bucket names in
|
|
3218
3243
|
* `gen.storagePaths`, the role names other blocks take from
|
|
@@ -3222,7 +3247,7 @@ type ConfigReferences<C> = {
|
|
|
3222
3247
|
readonly gen?: {
|
|
3223
3248
|
readonly storagePaths?: Readonly<Record<string, BucketName<C>>>;
|
|
3224
3249
|
};
|
|
3225
|
-
} & RoleReferences<C> & InstanceReferences<C>;
|
|
3250
|
+
} & RoleReferences<C> & PermissionReferences<C> & InstanceReferences<C>;
|
|
3226
3251
|
declare const CONFIG_SCHEMA_URL = "https://unpkg.com/better-supabase/schemas/config-v1.json";
|
|
3227
3252
|
/**
|
|
3228
3253
|
* Types `better-supabase.config.ts` and returns it with its literal types. With
|
|
@@ -4058,6 +4083,11 @@ interface BlockSqlLayout {
|
|
|
4058
4083
|
* writes a pgTAP file per table.
|
|
4059
4084
|
*/
|
|
4060
4085
|
readonly auditedTables?: readonly AuditedTable[];
|
|
4086
|
+
/**
|
|
4087
|
+
* The Postgres function config.toml names as `auth.hook.custom_access_token`
|
|
4088
|
+
* (`schema.name`); `tests.authenticate_as_issued` calls it by default.
|
|
4089
|
+
*/
|
|
4090
|
+
readonly customAccessTokenHook?: string;
|
|
4061
4091
|
/**
|
|
4062
4092
|
* Ignored: the header names only the module, so a release doesn't rewrite
|
|
4063
4093
|
* every file. The `@bsb-block name@N` marker carries the module version.
|
|
@@ -4231,6 +4261,10 @@ interface BlockSqlAccessProvider {
|
|
|
4231
4261
|
* way.
|
|
4232
4262
|
*/
|
|
4233
4263
|
readonly roleSources?: readonly AuthorizationRoleSource[];
|
|
4264
|
+
/** The provider's membership tables, for their `disabledAt` column. */
|
|
4265
|
+
readonly memberships?: readonly AuthorizationMembership[];
|
|
4266
|
+
/** `blocks.invitations.options.platformRoles` defaults to this. */
|
|
4267
|
+
readonly platformRoles?: AuthorizationPlatformRoles;
|
|
4234
4268
|
/** How `ai-chat` applies `functions.canApprove`. */
|
|
4235
4269
|
readonly approvals?: {
|
|
4236
4270
|
readonly distinctApprover?: boolean;
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as AuthorizationPersona, c as AuthorizationRequirement, d as AuthorizationTokenHook, f as AuthorizationVersions, i as AuthorizationPermission, l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions, u as AuthorizationScope } from "../authorization-UYejwQsk.js";
|
|
2
2
|
import { r as AuthzVersionSource } from "../authz-topic-C7n3kIm_.js";
|
|
3
3
|
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, an as RequestMemo, en as Authorizer, in as PermissionRef, qt as AuthorizationIntent, rn as AuthzVersionCache, tn as AuthorizerRuntime } from "../types-D5UNIbOQ.js";
|
|
4
4
|
import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-BiMwxiZN.js";
|
|
5
|
-
import { s as ApiKeyResolverOptions } from "../api-keys-
|
|
5
|
+
import { s as ApiKeyResolverOptions } from "../api-keys-COJAXdGF.js";
|
|
6
6
|
import { r as CredentialProvider } from "../provider-AZZ755Eb.js";
|
|
7
|
-
import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-
|
|
7
|
+
import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-DaClvzRy.js";
|
|
8
8
|
import { m as SessionSnapshot } from "../resolve-NeMeUVtf.js";
|
|
9
|
-
import { n as ApprovalOptions } from "../server-types-
|
|
10
|
-
import { n as BlockTables, t as BlockTable } from "../block-tables-
|
|
9
|
+
import { n as ApprovalOptions } from "../server-types-Bpxk5UWh.js";
|
|
10
|
+
import { n as BlockTables, t as BlockTable } from "../block-tables-BkgafSZd.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
|
|
14
14
|
* one needs a new `apiVersion`.
|
|
15
15
|
*/
|
|
16
16
|
export type ContractApiVersion = 1;
|
|
17
|
-
export type { AccessBucketPolicy, AccessPolicySql, AccessTopicPolicy, AnyAuthorizer, ApiKeyResolverOptions, ApprovalOptions, AuthorizationCallKind, AuthorizationChange, AuthorizationContext, AuthorizationFunctions, AuthorizationHooks, AuthorizationIntent, AuthorizationMembership, AuthorizationOperation, AuthorizationOutcome, AuthorizationPermission, AuthorizationProvider, AuthorizationPurpose, AuthorizationRequest, AuthorizationRequirement, AuthorizationResource, AuthorizationResourceSource, AuthorizationRoleSource, AuthorizationScope, AuthorizationSubject, AuthorizationTokenHook, AuthorizationVersions, Authorizer, AuthorizerRuntime, AuthzVersionCache, AuthzVersionSource, BlockTable, BlockTables, CredentialProvider, McpOptions, PermissionRef, RequestMemo, SessionSnapshot, SubscriberPolicy, SupportAuthorize, SupportAuthorizeInput, ToolDecision, ToolRef };
|
|
17
|
+
export type { AccessBucketPolicy, AccessPolicySql, AccessTopicPolicy, AnyAuthorizer, ApiKeyResolverOptions, ApprovalOptions, AuthorizationCallKind, AuthorizationChange, AuthorizationContext, AuthorizationFunctions, AuthorizationHooks, AuthorizationIntent, AuthorizationMembership, AuthorizationOperation, AuthorizationOutcome, AuthorizationPermission, AuthorizationPersona, AuthorizationPlatformRoles, AuthorizationProvider, AuthorizationPurpose, AuthorizationRequest, AuthorizationRequirement, AuthorizationResource, AuthorizationResourceSource, AuthorizationRoleSource, AuthorizationScope, AuthorizationSubject, AuthorizationTokenHook, AuthorizationVersions, Authorizer, AuthorizerRuntime, AuthzVersionCache, AuthzVersionSource, BlockTable, BlockTables, CredentialProvider, McpOptions, PermissionRef, RequestMemo, SessionSnapshot, SubscriberPolicy, SupportAuthorize, SupportAuthorizeInput, ToolDecision, ToolRef };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ClientAuth } from "./bind-
|
|
1
|
+
import { a as ClientAuth } from "./bind-D4qLTlY4.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,6 +1,6 @@
|
|
|
1
1
|
import { n as whileSignedIn, t as defineController } from "./controller-BJmh7gFm.js";
|
|
2
2
|
import { r as recordEventMatches } from "./record-bindings-jTZw-GVe.js";
|
|
3
|
-
import { f as findBinding, p as loadBindings } from "./record-type-
|
|
3
|
+
import { f as findBinding, p as loadBindings } from "./record-type-BPUobukL.js";
|
|
4
4
|
// src/records/controller.ts
|
|
5
5
|
/**
|
|
6
6
|
* One record page's bindings for the signed-in user over one realtime
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ci as ActionCall, li as ActionContext, si as Action } from "./define-block-B2um61Uj.js";
|
|
2
2
|
import { f as Result } from "./result-CMqlHv82.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
/** A record a conversion reads from or creates: its subject type and id. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as dbError } from "./errors-CXPerGIl.js";
|
|
2
2
|
import { a as ok, r as err } from "./result-DrBaeIVt.js";
|
|
3
|
-
import { f as findBinding, p as loadBindings } from "./record-type-
|
|
3
|
+
import { f as findBinding, p as loadBindings } from "./record-type-BPUobukL.js";
|
|
4
4
|
// src/records/timeline.ts
|
|
5
5
|
/** The binding names of `blocks` whose bindings map rows to timeline entries. */
|
|
6
6
|
function timelineBindings(blocks) {
|
package/dist/create/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
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-
|
|
3
|
-
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-
|
|
4
|
-
import {
|
|
2
|
+
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-DcHcHc2b.js";
|
|
3
|
+
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-Cwai2qe4.js";
|
|
4
|
+
import { Dr as Preset } from "../define-block-B2um61Uj.js";
|
|
5
5
|
import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
|
|
6
|
-
import { b as DesignChange } from "../index-
|
|
6
|
+
import { b as DesignChange } from "../index-Bdd-8C1P.js";
|
|
7
7
|
/** What `checkDesign` returns. */
|
|
8
8
|
export type DesignCheck = {
|
|
9
9
|
readonly ok: true;
|
package/dist/create/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as APP_ON_DELETE_ACTIONS } from "../instances-
|
|
2
|
-
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-
|
|
3
|
-
import { m as diffDesigns } from "../preset
|
|
1
|
+
import { A as APP_ON_DELETE_ACTIONS } from "../instances-CFXFHQMK.js";
|
|
2
|
+
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-BhE6_64F.js";
|
|
3
|
+
import { m as diffDesigns } from "../preset--1OMwypM.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,7 +1,8 @@
|
|
|
1
|
-
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-
|
|
2
|
-
import { jn as CreateDesign, lr as PresetInput } from "../../context-
|
|
1
|
+
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-Cwai2qe4.js";
|
|
2
|
+
import { jn as CreateDesign, lr as PresetInput } from "../../context-DcHcHc2b.js";
|
|
3
3
|
import { st as SchemaMeta } from "../../types-D5UNIbOQ.js";
|
|
4
4
|
import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
|
|
5
|
+
import { s as AuthorizationProvider } from "../../authorization-UYejwQsk.js";
|
|
5
6
|
/**
|
|
6
7
|
* The parts of `@supabase/lite` that `liteStack()` uses, typed structurally so
|
|
7
8
|
* the optional peer stays out of the published types.
|
|
@@ -424,6 +425,22 @@ export interface MatrixTestOptions {
|
|
|
424
425
|
* persona's rows and claims come from `options.setup`.
|
|
425
426
|
*/
|
|
426
427
|
export declare function accessMatrixTests(matrix: readonly MatrixCell[], options?: MatrixTestOptions): readonly PresetMigrationFile[];
|
|
428
|
+
export interface ProviderPersonaOptions {
|
|
429
|
+
/** The tenant id (a uuid) the personas' memberships are created in. */
|
|
430
|
+
readonly tenant: string;
|
|
431
|
+
/** The user id of each persona by name; a fixed default otherwise. */
|
|
432
|
+
readonly subs?: Readonly<Record<string, string>>;
|
|
433
|
+
/** The folder of the files; `supabase/tests/database` by default. */
|
|
434
|
+
readonly directory?: string;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* One pgTAP file per `provider.personas` entry. Each file runs the persona's
|
|
438
|
+
* setup, signs in as that user and asks the provider's own `idsWith` function
|
|
439
|
+
* about every permission it marks `sqlComplete` (the functions decide no
|
|
440
|
+
* other): the keys the persona holds must reach the tenant and every other key
|
|
441
|
+
* must not.
|
|
442
|
+
*/
|
|
443
|
+
export declare function providerPersonaTests(provider: AuthorizationProvider, options: ProviderPersonaOptions): readonly PresetMigrationFile[];
|
|
427
444
|
export interface DesignValidation {
|
|
428
445
|
/** `true` when every file that could run applied cleanly. */
|
|
429
446
|
readonly ok: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { n as loadLite, t as LITE_INSTALL } from "../../runtime-qslVrC9l.js";
|
|
2
|
-
import { b as appDefaultError } from "../../instances-
|
|
2
|
+
import { b as appDefaultError } from "../../instances-CFXFHQMK.js";
|
|
3
3
|
import { t as defineApi } from "../../api-CSUt1Mfm.js";
|
|
4
|
-
import { n as loadProject } from "../../project-
|
|
4
|
+
import { n as loadProject } from "../../project-BhE6_64F.js";
|
|
5
|
+
import { i as fillTemplate } from "../../access-sql-DH2LbcQe.js";
|
|
5
6
|
// src/create/lite/apply.ts
|
|
6
7
|
const MISSING_EXTENSION = /extension "([^"]+)" is not available/u;
|
|
7
8
|
function messageOf$1(error) {
|
|
@@ -1415,6 +1416,57 @@ function accessMatrixTests(matrix, options = {}) {
|
|
|
1415
1416
|
const cells = matrix.filter((cell) => known.has(cell.command));
|
|
1416
1417
|
return personas.map((persona) => fileOf(persona, cells, options));
|
|
1417
1418
|
}
|
|
1419
|
+
const PERSONA_SUB_PREFIX = "00000000-0000-4000-8000-0000000001";
|
|
1420
|
+
/**
|
|
1421
|
+
* One pgTAP file per `provider.personas` entry. Each file runs the persona's
|
|
1422
|
+
* setup, signs in as that user and asks the provider's own `idsWith` function
|
|
1423
|
+
* about every permission it marks `sqlComplete` (the functions decide no
|
|
1424
|
+
* other): the keys the persona holds must reach the tenant and every other key
|
|
1425
|
+
* must not.
|
|
1426
|
+
*/
|
|
1427
|
+
function providerPersonaTests(provider, options) {
|
|
1428
|
+
const directory = options.directory ?? "supabase/tests/database";
|
|
1429
|
+
const scope = provider.tenantScope;
|
|
1430
|
+
return (provider.personas ?? []).map((persona, index) => {
|
|
1431
|
+
const sub = options.subs?.[persona.name] ?? `${PERSONA_SUB_PREFIX}${String(index).padStart(2, "0")}`;
|
|
1432
|
+
const held = new Set(persona.permissions);
|
|
1433
|
+
const fill = (template) => template.replaceAll("{user}", `${quoteLiteral(sub)}::uuid`).replaceAll("{tenant}", `${quoteLiteral(options.tenant)}::uuid`);
|
|
1434
|
+
const assertions = (provider.permissions ?? []).filter((permission) => permission.sqlComplete === true).map(({ key }) => {
|
|
1435
|
+
const ids = fillTemplate(`personas.${persona.name}`, provider.functions.idsWith, {
|
|
1436
|
+
permission: quoteLiteral(key),
|
|
1437
|
+
scope: quoteLiteral(scope)
|
|
1438
|
+
});
|
|
1439
|
+
return `select extensions.is(${`(select ${quoteLiteral(options.tenant)} in (select t.id::text from ${ids} as t(id)))`}, ${held.has(key) ? "true" : "false"}, ${quoteLiteral(`${persona.name} ${held.has(key) ? "holds" : "lacks"} ${key}`)});`;
|
|
1440
|
+
});
|
|
1441
|
+
const claims = JSON.stringify({
|
|
1442
|
+
sub,
|
|
1443
|
+
role: "authenticated",
|
|
1444
|
+
aud: "authenticated",
|
|
1445
|
+
...persona.claims
|
|
1446
|
+
});
|
|
1447
|
+
return {
|
|
1448
|
+
path: `${directory}/access_matrix_provider_${persona.name}.test.sql`,
|
|
1449
|
+
module: "access-matrix",
|
|
1450
|
+
contents: [
|
|
1451
|
+
`-- Generated access matrix for the provider persona ${persona.name} (ADR 0105).`,
|
|
1452
|
+
"begin;",
|
|
1453
|
+
"create extension if not exists pgtap with schema extensions;",
|
|
1454
|
+
`select extensions.plan(${Math.max(assertions.length, 1)});`,
|
|
1455
|
+
"",
|
|
1456
|
+
fill(persona.setup),
|
|
1457
|
+
"",
|
|
1458
|
+
`select set_config('request.jwt.claims', ${quoteLiteral(claims)}, true);`,
|
|
1459
|
+
"set local role authenticated;",
|
|
1460
|
+
"",
|
|
1461
|
+
...assertions.length === 0 ? ["select extensions.pass('nothing to check');"] : assertions,
|
|
1462
|
+
"",
|
|
1463
|
+
"select * from extensions.finish();",
|
|
1464
|
+
"rollback;",
|
|
1465
|
+
""
|
|
1466
|
+
].join("\n")
|
|
1467
|
+
};
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1418
1470
|
// src/create/lite/index.ts
|
|
1419
1471
|
/**
|
|
1420
1472
|
* Applies the files `previewFiles` returns to an in-memory PGlite database and
|
|
@@ -1451,4 +1503,4 @@ async function validateDesign(files, options = {}) {
|
|
|
1451
1503
|
async function sqlIssues(files) {
|
|
1452
1504
|
return (await validateDesign(files)).issues;
|
|
1453
1505
|
}
|
|
1454
|
-
export { MATRIX_COMMANDS, MATRIX_PERSONAS, SUPABASE_PRELUDE, accessMatrix, accessMatrixTests, catalogQuery, designDataApi, designFromCatalog, importFilesOf, importProject, openSandbox, readCatalog, readSecurityCatalog, schemaMetaFromCatalog, sqlIssues, validateDesign, verifyCatalog, verifyFiles, verifyQuery };
|
|
1506
|
+
export { MATRIX_COMMANDS, MATRIX_PERSONAS, SUPABASE_PRELUDE, accessMatrix, accessMatrixTests, catalogQuery, designDataApi, designFromCatalog, importFilesOf, importProject, openSandbox, providerPersonaTests, readCatalog, readSecurityCatalog, schemaMetaFromCatalog, sqlIssues, validateDesign, verifyCatalog, verifyFiles, verifyQuery };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { t as onBlockEvent } from "./block-event-listener-iD8R2IRl.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as wrapTransport, r as withBlockHooks, t as defineTransportMiddleware } from "./block-hooks-BIRJauOk.js";
|
|
2
|
+
import { K as rpcTransport, W as dbTransport, o as blockCall } from "./block-helpers-BR1V7DN1.js";
|
|
3
|
+
import { i as wrapTransport, r as withBlockHooks, t as defineTransportMiddleware } from "./block-hooks-Bd5bRM9B.js";
|
|
5
4
|
import { i as entityNames, o as tenantNames, r as composeNames } from "./entity-naming-BES3pkQI.js";
|
|
6
5
|
import { n as dbError } from "./errors-CXPerGIl.js";
|
|
6
|
+
import { t as instanceProperty } from "./instance-property-BlH7QSDl.js";
|
|
7
7
|
import { t as AsyncResult } from "./result-DrBaeIVt.js";
|
|
8
8
|
import { a as forwardBlockEvents } from "./cloud-event-IBXVjn84.js";
|
|
9
|
+
import { n as isRecord } from "./guards-CsRa6v57.js";
|
|
9
10
|
// src/core/block-names.ts
|
|
10
11
|
const TENANT_COLUMNS = ["organization_id", "active_organization_id"];
|
|
11
12
|
const OPAQUE_KEYS = /* @__PURE__ */ new Set(["fields", "metadata"]);
|
|
@@ -74,6 +75,95 @@ function blockNames(naming) {
|
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
77
|
}
|
|
78
|
+
// src/core/columns-schema.ts
|
|
79
|
+
const TEXTUAL = /* @__PURE__ */ new Set([
|
|
80
|
+
"text",
|
|
81
|
+
"varchar",
|
|
82
|
+
"char",
|
|
83
|
+
"citext",
|
|
84
|
+
"uuid",
|
|
85
|
+
"date",
|
|
86
|
+
"timestamptz",
|
|
87
|
+
"timestamp",
|
|
88
|
+
"time",
|
|
89
|
+
"timetz",
|
|
90
|
+
"interval",
|
|
91
|
+
"int8",
|
|
92
|
+
"bigint",
|
|
93
|
+
"numeric",
|
|
94
|
+
"decimal",
|
|
95
|
+
"money"
|
|
96
|
+
]);
|
|
97
|
+
const NUMERIC = /* @__PURE__ */ new Set([
|
|
98
|
+
"int2",
|
|
99
|
+
"int4",
|
|
100
|
+
"integer",
|
|
101
|
+
"smallint",
|
|
102
|
+
"float4",
|
|
103
|
+
"float8",
|
|
104
|
+
"real",
|
|
105
|
+
"double precision"
|
|
106
|
+
]);
|
|
107
|
+
const isString = (value) => typeof value === "string";
|
|
108
|
+
const isNumber = (value) => typeof value === "number" && Number.isFinite(value);
|
|
109
|
+
const isBoolean = (value) => typeof value === "boolean";
|
|
110
|
+
const anything = () => true;
|
|
111
|
+
/** The type name before `not null`, `default` or a size such as `(10, 2)`. */
|
|
112
|
+
function typeName(sql) {
|
|
113
|
+
return sql.toLowerCase().trim().replace(/\s+(not null|null|default|check|references|generated)\b.*$/u, "").replaceAll(/\(.*?\)/gu, "").replaceAll("[]", "").trim();
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The check for a column's SQL type. `int8` and `numeric` are strings, as every
|
|
117
|
+
* amount is (ADR 0037); an array is checked element by element.
|
|
118
|
+
*/
|
|
119
|
+
function checkOf(sql) {
|
|
120
|
+
const name = typeName(sql);
|
|
121
|
+
const base = TEXTUAL.has(name) ? isString : NUMERIC.has(name) ? isNumber : name === "boolean" || name === "bool" ? isBoolean : anything;
|
|
122
|
+
return /\[\]/u.test(sql) ? (value) => Array.isArray(value) && value.every((item) => base(item)) : base;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* A Standard Schema for the extra columns of a block table
|
|
126
|
+
* (`blocks.<module>.options.extraColumns`), with no schema library. `gen`
|
|
127
|
+
* writes it into `blocks.generated.ts`, so a block's `fields` type and check
|
|
128
|
+
* the columns the config adds. Text, dates, `int8` and `numeric` are strings,
|
|
129
|
+
* `int2`, `int4` and the floats are numbers, a column with `not null` is a
|
|
130
|
+
* required key and the others may be missing or `null`. Keys the config doesn't
|
|
131
|
+
* list pass through.
|
|
132
|
+
*/
|
|
133
|
+
function columnsSchema(columns) {
|
|
134
|
+
const specs = Object.entries(columns).map(([key, type]) => [key, {
|
|
135
|
+
check: checkOf(type),
|
|
136
|
+
required: /\bnot\s+null\b/iu.test(type),
|
|
137
|
+
type
|
|
138
|
+
}]);
|
|
139
|
+
return { "~standard": {
|
|
140
|
+
version: 1,
|
|
141
|
+
vendor: "better-supabase",
|
|
142
|
+
validate: (value) => {
|
|
143
|
+
if (!isRecord(value)) return { issues: [{ message: "Expected an object" }] };
|
|
144
|
+
const issues = [];
|
|
145
|
+
for (const [key, column] of specs) {
|
|
146
|
+
const present = value[key];
|
|
147
|
+
if (present === void 0 || present === null) {
|
|
148
|
+
if (present === void 0 && column.required) issues.push({
|
|
149
|
+
message: `${key} is required`,
|
|
150
|
+
path: [key]
|
|
151
|
+
});
|
|
152
|
+
else if (present === null && column.required) issues.push({
|
|
153
|
+
message: `${key} can't be null`,
|
|
154
|
+
path: [key]
|
|
155
|
+
});
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
if (!column.check(present)) issues.push({
|
|
159
|
+
message: `${key} doesn't match its column type ${column.type}`,
|
|
160
|
+
path: [key]
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
return issues.length > 0 ? { issues } : { value };
|
|
164
|
+
}
|
|
165
|
+
} };
|
|
166
|
+
}
|
|
77
167
|
// src/blocks/block-config.ts
|
|
78
168
|
/**
|
|
79
169
|
* The options a block's creator gets from its generated entry: the schema it
|
|
@@ -85,7 +175,8 @@ function blockNames(naming) {
|
|
|
85
175
|
function generatedOptions(entry) {
|
|
86
176
|
return {
|
|
87
177
|
...entry.options,
|
|
88
|
-
schema: entry.api ?? entry.schema
|
|
178
|
+
schema: entry.api ?? entry.schema,
|
|
179
|
+
...entry.columns === void 0 ? {} : { fields: columnsSchema(entry.columns) }
|
|
89
180
|
};
|
|
90
181
|
}
|
|
91
182
|
/**
|
|
@@ -110,6 +201,7 @@ const BLOCK_EVENT_SOURCE = "/better-supabase/blocks";
|
|
|
110
201
|
* `on` and `events` type each one's data without `declare module` (invariant
|
|
111
202
|
* 2).
|
|
112
203
|
*/
|
|
204
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
113
205
|
function defineBlocks(config, blocks, ...appEvents) {
|
|
114
206
|
const events = { types: [.../* @__PURE__ */ new Set([...Object.values(blocks).flatMap((block) => block.events.types), ...appEvents.flatMap((each) => each.types)])] };
|
|
115
207
|
const created = (key) => blocks[key]?.create !== void 0;
|
|
@@ -126,6 +218,26 @@ function defineBlocks(config, blocks, ...appEvents) {
|
|
|
126
218
|
}, blocks),
|
|
127
219
|
api,
|
|
128
220
|
call: (db, fn, args) => api === void 0 ? AsyncResult.err(dbError("unsupported", "No block has an API schema (`sql.api`) to call")) : blockCall(dbTransport(db), api)(fn, args, (value) => value),
|
|
221
|
+
serviceBlocks: (admin, options = {}) => {
|
|
222
|
+
const builder = blockBuilder({
|
|
223
|
+
tenant: () => void 0,
|
|
224
|
+
...options,
|
|
225
|
+
config,
|
|
226
|
+
transport: rpcTransport(admin)
|
|
227
|
+
}, blocks);
|
|
228
|
+
const clients = {};
|
|
229
|
+
for (const key of Object.keys(blocks).filter(created)) {
|
|
230
|
+
let built;
|
|
231
|
+
Object.defineProperty(clients, instanceProperty(key), {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: () => {
|
|
234
|
+
built ??= { value: builder.build(key) };
|
|
235
|
+
return built.value;
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
return clients;
|
|
240
|
+
},
|
|
129
241
|
client: (db, key, options = {}) => blockBuilder(clientContext(db, {
|
|
130
242
|
config,
|
|
131
243
|
...options
|
|
@@ -380,4 +492,4 @@ function buildBlocks(options, blocks) {
|
|
|
380
492
|
result["close"] = () => stop?.();
|
|
381
493
|
return result;
|
|
382
494
|
}
|
|
383
|
-
export { fillTopic as a,
|
|
495
|
+
export { fillTopic as a, blockNames as c, defineBlocks as i, renameKeys as l, createBlockClient as n, generatedOptions as o, createBlocks as r, columnsSchema as s, BLOCK_EVENT_SOURCE as t };
|
|
@@ -5,7 +5,7 @@ import { n as dbError } from "../errors-CXPerGIl.js";
|
|
|
5
5
|
import { a as ok, r as err, t as AsyncResult } from "../result-DrBaeIVt.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-CvUUhhxl.js";
|
|
8
|
-
import { n as event, t as defineEvents } from "../event-map-
|
|
8
|
+
import { n as event, t as defineEvents } from "../event-map-DLajpFiJ.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" }));
|
|
@@ -159,8 +159,8 @@ function vaultCredentials(options) {
|
|
|
159
159
|
}
|
|
160
160
|
// src/blocks/credentials/events.ts
|
|
161
161
|
/** The `credentials` block's event types, for its manifest and `onBlockEvent`. */
|
|
162
|
-
const credentialsEvents = defineEvents({
|
|
163
|
-
"credential.updated": event(),
|
|
164
|
-
"credential.deleted": event()
|
|
162
|
+
const credentialsEvents = /* @__PURE__ */ defineEvents({
|
|
163
|
+
"credential.updated": /* @__PURE__ */ event(),
|
|
164
|
+
"credential.deleted": /* @__PURE__ */ event()
|
|
165
165
|
});
|
|
166
166
|
export { credentialRefInTenant, credentialRouter, credentialsEvents, dbTransport, foreignCredentialRef, revokeIfConfigured, rpcTransport, sqlTransport, subjectFor, tenantCredentialRef, vaultCredentials };
|
|
@@ -534,6 +534,17 @@ type Payload<M extends AnyModels, T extends keyof M, A> = A extends {
|
|
|
534
534
|
} ? Simplify<SelectPart<M, T, A> & IncludePart<M, T, A>> : A extends {
|
|
535
535
|
readonly select: readonly unknown[];
|
|
536
536
|
} ? Simplify<SelectPart<M, T, A>> : Row<M, T>;
|
|
537
|
+
/**
|
|
538
|
+
* `db.$decode(table)`: reads rows that did not come from the repository, such
|
|
539
|
+
* as `$client` or `queryRaw` results with database names, into the table's
|
|
540
|
+
* shape.
|
|
541
|
+
*/
|
|
542
|
+
interface DbDecoder<T> {
|
|
543
|
+
/** One row, or a `validation` error when `value` is not an object. */
|
|
544
|
+
row(value: unknown): Result<T>;
|
|
545
|
+
/** Every row, or the first error. */
|
|
546
|
+
rows(value: unknown): Result<T[]>;
|
|
547
|
+
}
|
|
537
548
|
type ReadMethod = "list" | "page" | "get" | "count" | "aggregate";
|
|
538
549
|
declare const resultType: unique symbol;
|
|
539
550
|
declare const gatedMarker: unique symbol;
|
|
@@ -1110,6 +1121,13 @@ interface DbHelpers<M extends AnyModels, F extends AnyFunctions, E, C, B = unkno
|
|
|
1110
1121
|
$withoutPlugins(options?: {
|
|
1111
1122
|
readonly keep?: readonly string[];
|
|
1112
1123
|
}): Db<M, F, unknown, C, B>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Reads rows that did not come from the repository (`$client` or `queryRaw`
|
|
1126
|
+
* results, which use database names) into the table's shape: the configured
|
|
1127
|
+
* casing, the column codecs and a shape check. A malformed value is a
|
|
1128
|
+
* `Result` error, not an exception.
|
|
1129
|
+
*/
|
|
1130
|
+
$decode<T extends TableKey<M>>(table: T): DbDecoder<Row<M, T>>;
|
|
1113
1131
|
/**
|
|
1114
1132
|
* The repository for a table named at runtime (MCP tools, admin screens).
|
|
1115
1133
|
* Throws a `TypeError` for unknown names.
|