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
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
1
|
+
import { r as withBlockHooks } from "./block-hooks-Bd5bRM9B.js";
|
|
2
2
|
import { t as AsyncResult } from "./result-DrBaeIVt.js";
|
|
3
|
-
import { t as contactsBlock } from "./manifest-
|
|
4
|
-
import { t as dealsBlock } from "./manifest-
|
|
5
|
-
import { t as invoicesBlock } from "./manifest-
|
|
6
|
-
import { t as ordersBlock } from "./manifest-
|
|
7
|
-
import { t as pipelinesBlock } from "./manifest-
|
|
8
|
-
import { t as quotesBlock } from "./manifest-
|
|
9
|
-
import { n as defineBlock } from "./define-block-
|
|
3
|
+
import { t as contactsBlock } from "./manifest-D46SY8Og.js";
|
|
4
|
+
import { t as dealsBlock } from "./manifest-jLh9Rwsh.js";
|
|
5
|
+
import { t as invoicesBlock } from "./manifest-BRFen7mE.js";
|
|
6
|
+
import { t as ordersBlock } from "./manifest-DxPMUjhY.js";
|
|
7
|
+
import { t as pipelinesBlock } from "./manifest-CScOn17C.js";
|
|
8
|
+
import { t as quotesBlock } from "./manifest-H65OlXiB.js";
|
|
9
|
+
import { n as defineBlock } from "./define-block-D3uNVp2k.js";
|
|
10
10
|
// src/blocks/sales/sales.ts
|
|
11
11
|
/**
|
|
12
12
|
* `closeWon` and `closeLost` over the clients of `deals` and `quotes`, which
|
|
@@ -118,7 +118,7 @@ const salesParts = {
|
|
|
118
118
|
* The `sales` composite (ADR 0196): contacts, pipelines, deals, quotes, orders
|
|
119
119
|
* and invoices, with the helpers that carry a deal to cash.
|
|
120
120
|
*/
|
|
121
|
-
const salesBlock = defineBlock({
|
|
121
|
+
const salesBlock = /* @__PURE__ */ defineBlock({
|
|
122
122
|
name: "sales",
|
|
123
123
|
composes: salesParts,
|
|
124
124
|
create: createSales,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
1
|
+
import { r as withBlockHooks } from "./block-hooks-Bd5bRM9B.js";
|
|
2
2
|
import { t as requireTenant } from "./block-tenant-DHvDBWgF.js";
|
|
3
3
|
import { t as AsyncResult } from "./result-DrBaeIVt.js";
|
|
4
4
|
import { B as textOf, N as recordsOf, P as requiredInstant, T as optionalText, j as recordOf, n as applyTemporal, o as blockCall, v as notFoundError } from "./block-helpers-BR1V7DN1.js";
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { i as toCsv, n as csvColumns, t as CsvOptions } from "../csv-Dd1iKsk-.js";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as Bootstrap, C as ReplicaState, D as deleteAccount, E as DeleteAccountResult, O as Access, S as PRIMARY_COOKIE, T as DeleteAccountOptions, _ as SuspendAccountResult, a as ForContextOptions, b as suspendAccount, c as ServerDbOptions, f as TENANT_HEADER, g as SuspendAccountOptions, h as LastSignIn, i as ContextOptions, j as BootstrapCallOptions, k as AccessForOptions, l as ServerKeys, m as EndSessionsResult, n as ApprovalOptions, o as ResolveRequestOptions, p as AccountTransport, r as BetterServer, s as ServerContext, t as AdminDb, u as ServerOptions, v as endSessions, w as LiteDriver, x as RequestIdOptions, y as lastSignIns } from "../server-types-Bpxk5UWh.js";
|
|
3
3
|
import { $t as AuthorizationSubject, Gt as AuthorizationChange, It as RequestContext, Jt as AuthorizationOutcome, Kt as AuthorizationContext, O as AnyFunctions, Qt as AuthorizationResourceSource, Ut as AnyAuthorizer, Wt as AuthorizationCallKind, Xt as AuthorizationRequest, Yt as AuthorizationPurpose, Zt as AuthorizationResource, an as RequestMemo, cn as requestMemo, dt as TableKey, en as Authorizer, in as PermissionRef, k as AnyModels, nn as AuthzSubjectSeed, on as bindAuthorizer, qt as AuthorizationIntent, rn as AuthzVersionCache, sn as defineAuthorizer, tn as AuthorizerRuntime } from "../types-D5UNIbOQ.js";
|
|
4
|
-
import { $t as DbStats, f as Db, s as BetterSupabase } from "../db-blocks-
|
|
4
|
+
import { $t as DbStats, f as Db, s as BetterSupabase } from "../db-blocks-Dp-4qbYN.js";
|
|
5
5
|
import { E as StoredSession, S as CookieRecord, _ as issuedAtOf, a as ResolveAuthOptions, b as snapshotOf, c as SessionRejection, d as SessionMemo, f as SessionMemoOptions, g as isSessionSnapshot, h as authzVersionOf, i as InvalidReason, j as sessionCookieName, k as readSession, l as clientIp, m as SessionSnapshot, n as AuthResolver, p as SessionMemoStats, r as AuthState, s as ResolvedState, t as AuthResolution, u as resolveAuth, v as sessionCacheKey, w as CookieWrite, x as CookieOptions, y as sessionMemo } from "../resolve-NeMeUVtf.js";
|
|
6
6
|
import { a as RespondOptions, c as isResult, d as RefreshPolicy, f as isDocumentLoad, i as MiddlewareOptions, l as respond, m as refreshFor, n as AuthKind, o as Settled, p as isPrefetch, r as GuardOptions, s as guard, u as settle } from "../respond--w7kF-Ym.js";
|
|
7
|
-
import { C as
|
|
7
|
+
import { C as SupportSession, D as supportClaims, E as sqlSupportStore, S as SupportRequestInput, T as SupportStartInput, _ as SupportApprover, a as SupportOptions, b as SupportListFilter, c as SupportStartRequest, d as SupportCookieOptions, f as clearSupportCookie, g as SupportApprovalQuery, h as SqlSupportStoreOptions, i as SupportExpireRouteOptions, l as supportSessions, m as supportCookieValue, n as SupportApi, o as SupportPolicy, p as supportCookie, r as SupportCaller, s as SupportSessions, t as ActiveSupport, u as SUPPORT_COOKIE, v as SupportCallerClaims, w as SupportSessionStore, x as SupportRequest, y as SupportEndedBy } from "../support-tDhEwXbu.js";
|
|
8
8
|
import { Dt as Events, pt as SupportEventData } from "../events-X-Dhu495.js";
|
|
9
9
|
import { _ as SupportAuthorize, a as AutomationHooks, b as TicketSubject, c as ChatActionHook, d as IdentityRef, f as IdentityTarget, g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, l as DelegationPermissions, m as Subscriber, n as Approver, o as AutomationRef, p as PrincipalByIdentity, r as ApproverOf, s as ChatAction, t as ApprovalRequestRef, u as DelegationRef, v as SupportAuthorizeInput, x as defineAuthorizationHooks, y as SupportDecision } from "../authorization-hooks-BiMwxiZN.js";
|
|
10
10
|
import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../index-IKfbX_39.js";
|
|
11
|
-
import { i as decodeEntitlementClaim, o as ClaimsRecord, s as ClaimsSource } from "../entitlements-
|
|
11
|
+
import { i as decodeEntitlementClaim, o as ClaimsRecord, s as ClaimsSource } from "../entitlements-DuNBTDsH.js";
|
|
12
12
|
import { a as isUserSession, c as Impersonator, i as isApiKeySession, l as impersonatorOf, n as AuthSession, o as toSession, r as UserSession, s as ImpersonationOptions, t as ApiKeySession } from "../view-B44a2jfA.js";
|
|
13
|
-
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-
|
|
13
|
+
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-u_qqedin.js";
|
|
14
14
|
import { K as permissionCapOf } from "../types-CmlZw_7N.js";
|
|
15
15
|
import { n as subjectReaders, t as SubjectReadersOptions } from "../subject-readers-VaaoTxbd.js";
|
|
16
16
|
import { n as SqlClient } from "../executor-sziduCKN.js";
|
|
17
17
|
import { j as StorageApi } from "../bucket-CUw0p3qM.js";
|
|
18
|
-
import { a as claimsFingerprint, i as SessionWatchStatus, n as SessionStatusRouteOptions, o as sessionStatusRoute, r as SessionStatusServer, t as SessionStatusBody } from "../session-status-
|
|
18
|
+
import { a as claimsFingerprint, i as SessionWatchStatus, n as SessionStatusRouteOptions, o as sessionStatusRoute, r as SessionStatusServer, t as SessionStatusBody } from "../session-status-DDPrDS36.js";
|
|
19
19
|
import { a as ProblemFormat, c as fromProblem, d as toProblem, i as ProblemDetails, l as isProblem, n as PROBLEM_CONTENT_TYPE, o as ProblemOptions, r as PROBLEM_TYPE_BASE, s as ProblemResponseOptions, u as problemResponse } from "../problem-BkuOcWRv.js";
|
|
20
|
-
import { c as RealtimeClient } from "../topic-
|
|
20
|
+
import { c as RealtimeClient } from "../topic-fwPlelNI.js";
|
|
21
21
|
import { n as supportOf, t as SupportView } from "../support-view-XeoLPB7S.js";
|
|
22
|
-
import { a as GuardEntryConfig, i as withBetterSupabase, n as BetterSupabaseContributions, o as withGuard, r as BetterSupabaseEntry, t as BetterSupabaseConfig } from "../composite-
|
|
23
|
-
import { a as serverCore, i as ServerCore, n as SessionEntryConfig, r as withSession, t as AuthOutageHook } from "../session-
|
|
22
|
+
import { a as GuardEntryConfig, i as withBetterSupabase, n as BetterSupabaseContributions, o as withGuard, r as BetterSupabaseEntry, t as BetterSupabaseConfig } from "../composite-CvlcYj8Y.js";
|
|
23
|
+
import { a as serverCore, i as ServerCore, n as SessionEntryConfig, r as withSession, t as AuthOutageHook } from "../session-DQ5huqEw.js";
|
|
24
24
|
import { a as checkAal, i as amrOf, n as AmrEntry, r as aalOf, t as Aal } from "../mfa-BbzlzjEV.js";
|
|
25
25
|
import { a as SessionActor, c as agentClaims, i as IDENTITY_SCOPES, l as delegationOf, n as ActorOutcome, o as SessionDelegation, r as AgentActOptions, s as actorOf, t as ActClaim } from "../actor-DseNR02I.js";
|
|
26
26
|
import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-U8XnT2Ta.js";
|
|
27
27
|
import { b as DbError, f as Result } from "../result-CMqlHv82.js";
|
|
28
28
|
import { i as JwsAlgorithm, n as Jwks, r as JwksOfOptions } from "../jws-CxgTsbgG.js";
|
|
29
|
-
import { c as PasswordGrantOptions, d as safeRedirectPath, n as sessionTag, r as tableTags, t as sessionIdTag, u as passwordGrant } from "../cache-tags-
|
|
29
|
+
import { c as PasswordGrantOptions, d as safeRedirectPath, n as sessionTag, r as tableTags, t as sessionIdTag, u as passwordGrant } from "../cache-tags-TT8h2zMg.js";
|
|
30
30
|
import { i as authzUserTopic, n as AUTHZ_TOPIC, t as AUTHZ_EVENT } from "../authz-topic-C7n3kIm_.js";
|
|
31
|
-
import { a as ResourceHandler, c as ResourceList, l as ResourceRouteOptions, s as ResourceInput } from "../resource-types-
|
|
31
|
+
import { a as ResourceHandler, c as ResourceList, l as ResourceRouteOptions, s as ResourceInput } from "../resource-types-Cs1zWvrn.js";
|
|
32
32
|
import { i as ResourcePagination } from "../resource-gebaumjo.js";
|
|
33
|
-
import { i as tagFor, n as cacheTagsOf, r as tagCache, t as TagOptions } from "../tags-
|
|
33
|
+
import { i as tagFor, n as cacheTagsOf, r as tagCache, t as TagOptions } from "../tags-CBASI98_.js";
|
|
34
34
|
import { a as AuthorizedContext, c as ResourceLoaderContext, d as rolesAt, i as AuthorizeOptions, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions, u as hasRole } from "../kit-CjmzrlVW.js";
|
|
35
35
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
36
36
|
import { Middleware, SingleKeyEntry } from "@supabase/middleware";
|
|
@@ -654,4 +654,4 @@ export declare function withDbStats(options?: {
|
|
|
654
654
|
stats(): DbStats;
|
|
655
655
|
};
|
|
656
656
|
}, () => DbStats>;
|
|
657
|
-
export { AUTHZ_EVENT, AUTHZ_TOPIC, AUTHZ_VERSION_CLAIM, type Aal, type Access, type AccessForOptions, type AccessTokenResolverOptions, type AccessTokenRevocation, type AccountEventType, type ActClaim, type ActionResult, type ActiveSupport, type ActorOutcome, type AdminDb, type AgentActOptions, type AmrEntry, type AnyAuthorizer, type ApiKeySession, type ApprovalOptions, type ApprovalRequestRef, type Approver, type ApproverOf, type AuthKind, type AuthOutageHook, type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type AuthorizationCallKind, type AuthorizationChange, type AuthorizationContext, type AuthorizationHooks, type AuthorizationIntent, type AuthorizationOutcome, type AuthorizationPurpose, type AuthorizationRequest, type AuthorizationResource, type AuthorizationResourceSource, type AuthorizationSubject, type AuthorizeOptions, type AuthorizedContext, type Authorizer, type AuthorizerRuntime, type AuthzSubjectSeed, type AuthzVersionCache, type AuthzVersionChannel, type AuthzVersionClient, type AuthzVersionSubscription, type AutomationHooks, type AutomationRef, type BetterServer, type BetterSupabaseConfig, type BetterSupabaseContributions, type BetterSupabaseEntry, type BlockActionOptions, type BlockRequireOptions, type Bootstrap, type BootstrapCallOptions, type ChatAction, type ChatActionHook, type ClaimsRecord, type ClaimsSource, type ClearSessionCookiesOptions, type ContextOptions, type CookieOptions, type CookieRecord, type CookieWrite, type CreateVersionCacheOptions, type CsvOptions, type CsvResponseOptions, type DelegationPermissions, type DelegationRef, type DeleteAccountOptions, type DeleteAccountResult, type EndSessionsResult, FEATURES_CLAIM, type ForContextOptions, type GuardEntryConfig, type GuardOptions, type HandleOptions, IDENTITY_SCOPES, type IdentityRef, type IdentityTarget, type ImpersonationEvents, type ImpersonationOptions, type Impersonator, type InvalidReason, type LastSignIn, type LiteDriver, MEMBERSHIPS_CLAIM, type MiddlewareOptions, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, PRIMARY_COOKIE, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PasswordGrantOptions, type PermissionRef, type PermissionsOfOptions, type PrincipalByIdentity, type ProblemDetails, type ProblemOptions, type ProblemResponseOptions, type RateLimitPolicy, type RateLimitState, type RealtimeRelayOptions, type RefreshPolicy, type RelayAccessInput, type RelayAuthorize, type RelayEndReason, type RelayPostgres, type RelayServer, type RelayTopic, type ReplicaState, type RequestIdOptions, type RequestMemo, type ResolveAuthOptions, type ResolveRequestOptions, type ResolvedState, type ResourceHandler, type ResourceInput, type ResourceList, type ResourceLoaderContext, type ResourcePagination, type ResourceRouteOptions, type RespondOptions, SUPPORT_COOKIE, type ServerContext, type ServerCore, type ServerDbOptions, type ServerOptions, type ServerTiming, type SessionActor, type SessionDelegation, type SessionEntryConfig, type SessionLookup, type SessionMemo, type SessionMemoOptions, type SessionMemoStats, type SessionRejection, type SessionSnapshot, type SessionStatus, type SessionStatusBody, type SessionStatusOptions, type SessionStatusRouteOptions, type SessionStatusServer, type SessionWatchStatus, type Settled, type SqlSupportStoreOptions, type StoredSession, type SubjectReadersOptions, type SubscribeAuthzVersionsOptions, type Subscriber, type SubscriberEvent, type SubscriberPolicy, type SupabaseAuthContext, type SupportApi, type SupportApprovalQuery, type SupportApprover, type SupportAuthorize, type SupportAuthorizeInput, type SupportCallerClaims, type SupportCookieOptions, type SupportDecision, type SupportEndedBy, type SupportExpireRouteOptions, type SupportListFilter, type SupportOptions, type SupportPolicy, type SupportRequest, type SupportRequestInput, type SupportSession, type SupportSessionStore, type SupportSessions, type SupportStartInput, type SupportStartRequest, type SupportStorageOptions, type SupportView, type SuspendAccountOptions, type SuspendAccountResult, TENANT_HEADER, type TagOptions, type TicketSubject, type UserSession, type VersionCache, type VersionStore, aalOf, actorOf, agentClaims, amrOf, authContext, authzUserTopic, authzVersionOf, bindAuthorizer, cacheTagsOf, checkAal, claimsFingerprint, clearSessionCookies, clearSupportCookie, clientIp, csvColumns, decodeEntitlementClaim, defineAuthorizationHooks, defineAuthorizer, delegationOf, deleteAccount, endSessions, fromProblem, guard, hasRole, impersonatorOf, isApiKeySession, isDocumentLoad, isPrefetch, isProblem, isResult, isSessionSnapshot, isTruncated, isUserSession, issuedAtOf, lastSignIns, passwordGrant, permissionCapOf, permissionsOf, problemResponse, readSession, refreshFor, requestMemo, resolveAuth, respond, rolesAt, safeRedirectPath, serverCore, sessionCacheKey, sessionCookieName, sessionIdTag, sessionMemo, sessionStatus, sessionStatusRoute, sessionTag, settle, snapshotOf, sqlSupportStore, subjectReaders, supportClaims, supportCookie, supportCookieValue, supportOf, supportSessions, suspendAccount, tableTags, tagCache, tagFor, toCsv, toProblem, toSession, withBetterSupabase, withGuard, withSession };
|
|
657
|
+
export { AUTHZ_EVENT, AUTHZ_TOPIC, AUTHZ_VERSION_CLAIM, type Aal, type Access, type AccessForOptions, type AccessTokenResolverOptions, type AccessTokenRevocation, type AccountEventType, type AccountTransport, type ActClaim, type ActionResult, type ActiveSupport, type ActorOutcome, type AdminDb, type AgentActOptions, type AmrEntry, type AnyAuthorizer, type ApiKeySession, type ApprovalOptions, type ApprovalRequestRef, type Approver, type ApproverOf, type AuthKind, type AuthOutageHook, type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type AuthorizationCallKind, type AuthorizationChange, type AuthorizationContext, type AuthorizationHooks, type AuthorizationIntent, type AuthorizationOutcome, type AuthorizationPurpose, type AuthorizationRequest, type AuthorizationResource, type AuthorizationResourceSource, type AuthorizationSubject, type AuthorizeOptions, type AuthorizedContext, type Authorizer, type AuthorizerRuntime, type AuthzSubjectSeed, type AuthzVersionCache, type AuthzVersionChannel, type AuthzVersionClient, type AuthzVersionSubscription, type AutomationHooks, type AutomationRef, type BetterServer, type BetterSupabaseConfig, type BetterSupabaseContributions, type BetterSupabaseEntry, type BlockActionOptions, type BlockRequireOptions, type Bootstrap, type BootstrapCallOptions, type ChatAction, type ChatActionHook, type ClaimsRecord, type ClaimsSource, type ClearSessionCookiesOptions, type ContextOptions, type CookieOptions, type CookieRecord, type CookieWrite, type CreateVersionCacheOptions, type CsvOptions, type CsvResponseOptions, type DelegationPermissions, type DelegationRef, type DeleteAccountOptions, type DeleteAccountResult, type EndSessionsResult, FEATURES_CLAIM, type ForContextOptions, type GuardEntryConfig, type GuardOptions, type HandleOptions, IDENTITY_SCOPES, type IdentityRef, type IdentityTarget, type ImpersonationEvents, type ImpersonationOptions, type Impersonator, type InvalidReason, type LastSignIn, type LiteDriver, MEMBERSHIPS_CLAIM, type MiddlewareOptions, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, PRIMARY_COOKIE, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PasswordGrantOptions, type PermissionRef, type PermissionsOfOptions, type PrincipalByIdentity, type ProblemDetails, type ProblemOptions, type ProblemResponseOptions, type RateLimitPolicy, type RateLimitState, type RealtimeRelayOptions, type RefreshPolicy, type RelayAccessInput, type RelayAuthorize, type RelayEndReason, type RelayPostgres, type RelayServer, type RelayTopic, type ReplicaState, type RequestIdOptions, type RequestMemo, type ResolveAuthOptions, type ResolveRequestOptions, type ResolvedState, type ResourceHandler, type ResourceInput, type ResourceList, type ResourceLoaderContext, type ResourcePagination, type ResourceRouteOptions, type RespondOptions, SUPPORT_COOKIE, type ServerContext, type ServerCore, type ServerDbOptions, type ServerOptions, type ServerTiming, type SessionActor, type SessionDelegation, type SessionEntryConfig, type SessionLookup, type SessionMemo, type SessionMemoOptions, type SessionMemoStats, type SessionRejection, type SessionSnapshot, type SessionStatus, type SessionStatusBody, type SessionStatusOptions, type SessionStatusRouteOptions, type SessionStatusServer, type SessionWatchStatus, type Settled, type SqlSupportStoreOptions, type StoredSession, type SubjectReadersOptions, type SubscribeAuthzVersionsOptions, type Subscriber, type SubscriberEvent, type SubscriberPolicy, type SupabaseAuthContext, type SupportApi, type SupportApprovalQuery, type SupportApprover, type SupportAuthorize, type SupportAuthorizeInput, type SupportCaller, type SupportCallerClaims, type SupportCookieOptions, type SupportDecision, type SupportEndedBy, type SupportExpireRouteOptions, type SupportListFilter, type SupportOptions, type SupportPolicy, type SupportRequest, type SupportRequestInput, type SupportSession, type SupportSessionStore, type SupportSessions, type SupportStartInput, type SupportStartRequest, type SupportStorageOptions, type SupportView, type SuspendAccountOptions, type SuspendAccountResult, TENANT_HEADER, type TagOptions, type TicketSubject, type UserSession, type VersionCache, type VersionStore, aalOf, actorOf, agentClaims, amrOf, authContext, authzUserTopic, authzVersionOf, bindAuthorizer, cacheTagsOf, checkAal, claimsFingerprint, clearSessionCookies, clearSupportCookie, clientIp, csvColumns, decodeEntitlementClaim, defineAuthorizationHooks, defineAuthorizer, delegationOf, deleteAccount, endSessions, fromProblem, guard, hasRole, impersonatorOf, isApiKeySession, isDocumentLoad, isPrefetch, isProblem, isResult, isSessionSnapshot, isTruncated, isUserSession, issuedAtOf, lastSignIns, passwordGrant, permissionCapOf, permissionsOf, problemResponse, readSession, refreshFor, requestMemo, resolveAuth, respond, rolesAt, safeRedirectPath, serverCore, sessionCacheKey, sessionCookieName, sessionIdTag, sessionMemo, sessionStatus, sessionStatusRoute, sessionTag, settle, snapshotOf, sqlSupportStore, subjectReaders, supportClaims, supportCookie, supportCookieValue, supportOf, supportSessions, suspendAccount, tableTags, tagCache, tagFor, toCsv, toProblem, toSession, withBetterSupabase, withGuard, withSession };
|
package/dist/server/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as toCsv, t as csvColumns } from "../csv-Bwn9insJ.js";
|
|
2
|
-
import { A as suspendAccount, D as SERVER_EVENT_SOURCE, E as defineAuthorizationHooks, O as endSessions, a as unexpectedResponse, c as extendServer, d as clearSupportCookie, f as supportCookie, h as TENANT_HEADER, i as resolveToken, j as deleteAccount, k as lastSignIns, l as supportStorage, m as supportCookieValue, n as flushEvents, o as withFlush, r as handle, s as createServer, u as SUPPORT_COOKIE, x as serverCore, y as withSession } from "../adapter-
|
|
2
|
+
import { A as suspendAccount, D as SERVER_EVENT_SOURCE, E as defineAuthorizationHooks, O as endSessions, a as unexpectedResponse, c as extendServer, d as clearSupportCookie, f as supportCookie, h as TENANT_HEADER, i as resolveToken, j as deleteAccount, k as lastSignIns, l as supportStorage, m as supportCookieValue, n as flushEvents, o as withFlush, r as handle, s as createServer, u as SUPPORT_COOKIE, x as serverCore, y as withSession } from "../adapter-CJa5ys5O.js";
|
|
3
3
|
import { a as PRIMARY_COOKIE, n as isPrefetch, r as refreshFor, t as isDocumentLoad } from "../request-kind-tNDM5Z_o.js";
|
|
4
|
-
import { d as safeRedirectPath, f as supportSessions, m as supportClaims, p as sqlSupportStore, s as passwordGrant } from "../sign-in-
|
|
5
|
-
import { n as event, t as defineEvents } from "../event-map-
|
|
4
|
+
import { d as safeRedirectPath, f as supportSessions, m as supportClaims, p as sqlSupportStore, s as passwordGrant } from "../sign-in-03gtm616.js";
|
|
5
|
+
import { n as event, t as defineEvents } from "../event-map-DLajpFiJ.js";
|
|
6
6
|
import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../claim-names-BKig1LOk.js";
|
|
7
7
|
import { t as decodeEntitlementClaim } from "../entitlements-Dydkg-TV.js";
|
|
8
8
|
import { a as aalOf, i as toSession, n as isApiKeySession, o as amrOf, r as isUserSession, s as checkAal } from "../view-B8vDPZSf.js";
|
|
@@ -17,8 +17,8 @@ import { t as joinTopic } from "../channels-BxeTTtCY.js";
|
|
|
17
17
|
import { t as supportOf } from "../support-view-CvDEgyGY.js";
|
|
18
18
|
import "../claims/index.js";
|
|
19
19
|
import { i as userContext, r as impersonatorOf } from "../impersonation-D06fv2aF.js";
|
|
20
|
-
import { t as postgresExecutor } from "../executor-
|
|
21
|
-
import { n as withGuard, t as withBetterSupabase } from "../composite-
|
|
20
|
+
import { t as postgresExecutor } from "../executor-DhQDDIqq.js";
|
|
21
|
+
import { n as withGuard, t as withBetterSupabase } from "../composite-CgxTMZTK.js";
|
|
22
22
|
import { n as jwtClaimsOf, r as userClaimsOf, t as authModeOf } from "../claims-DouHL7ZL.js";
|
|
23
23
|
import { i as delegationOf, n as actorOf, r as agentClaims, t as IDENTITY_SCOPES } from "../actor-BY7JnimK.js";
|
|
24
24
|
import { t as authContext } from "../context-Btw88VG1.js";
|
|
@@ -59,10 +59,10 @@ function csvResponse(rows, options) {
|
|
|
59
59
|
}
|
|
60
60
|
// src/blocks/impersonation/events.ts
|
|
61
61
|
/** The `impersonation` block's event types, for its manifest and `onBlockEvent`. */
|
|
62
|
-
const impersonationEvents = defineEvents({
|
|
63
|
-
"support_session.started": event(),
|
|
64
|
-
"support_session.ended": event(),
|
|
65
|
-
"support_session.denied": event()
|
|
62
|
+
const impersonationEvents = /* @__PURE__ */ defineEvents({
|
|
63
|
+
"support_session.started": /* @__PURE__ */ event(),
|
|
64
|
+
"support_session.ended": /* @__PURE__ */ event(),
|
|
65
|
+
"support_session.denied": /* @__PURE__ */ event()
|
|
66
66
|
});
|
|
67
67
|
// src/server/session-status.ts
|
|
68
68
|
const VOLATILE_CLAIMS = [
|
|
@@ -4,7 +4,7 @@ import { a as ResolveAuthOptions, c as SessionRejection, f as SessionMemoOptions
|
|
|
4
4
|
import { It as RequestContext, O as AnyFunctions, Ut as AnyAuthorizer, an as RequestMemo, k as AnyModels, rn as AuthzVersionCache } from "./types-D5UNIbOQ.js";
|
|
5
5
|
import { b as TicketSubject, i as AuthorizationHooks } from "./authorization-hooks-BiMwxiZN.js";
|
|
6
6
|
import { o as EventHub } from "./events-X-Dhu495.js";
|
|
7
|
-
import { $t as DbStats, G as ReadSet, Q as ReadSetResult, W as InferReadSetParams, f as Db, s as BetterSupabase, tn as StatsRecorder } from "./db-blocks-
|
|
7
|
+
import { $t as DbStats, G as ReadSet, Q as ReadSetResult, W as InferReadSetParams, f as Db, s as BetterSupabase, tn as StatsRecorder } from "./db-blocks-Dp-4qbYN.js";
|
|
8
8
|
import { t as AsyncResult } from "./result-CMqlHv82.js";
|
|
9
9
|
import { r as CredentialProvider } from "./provider-AZZ755Eb.js";
|
|
10
10
|
import { o as EnvSource, t as BetterSupabaseEnv } from "./index-F6lsRlsr.js";
|
|
@@ -12,7 +12,8 @@ import { i as EventSink } from "./cloud-event-SAA1PEvA.js";
|
|
|
12
12
|
import { s as SqlClaims, t as BetterPostgres } from "./pool-DX5nqbLb.js";
|
|
13
13
|
import { j as StorageApi, n as Bucket } from "./bucket-CUw0p3qM.js";
|
|
14
14
|
import { n as SqlClient } from "./executor-sziduCKN.js";
|
|
15
|
-
import { n as SupportApi,
|
|
15
|
+
import { n as SupportApi, s as SupportSessions, t as ActiveSupport } from "./support-tDhEwXbu.js";
|
|
16
|
+
import { t as BlockTransport } from "./block-transport-DBteddOY.js";
|
|
16
17
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
17
18
|
/** One `bootstrap_<rpc>` call: the parts every adapter takes. */
|
|
18
19
|
interface BootstrapCallOptions<S extends ReadSet = ReadSet> {
|
|
@@ -63,9 +64,9 @@ interface Bootstrap<C = unknown, P = unknown, T = unknown, R = Readonly<Record<s
|
|
|
63
64
|
/**
|
|
64
65
|
* Why `sessionActive` is false: `user_banned` or `session_not_found`. Null
|
|
65
66
|
* while the session is active or signed out. A wrapper generated before 0.44
|
|
66
|
-
*
|
|
67
|
+
* returns no reason and is refused: run `bsb sql upgrade`.
|
|
67
68
|
*/
|
|
68
|
-
readonly endReason
|
|
69
|
+
readonly endReason: SessionRejection | null;
|
|
69
70
|
readonly data: T | null;
|
|
70
71
|
/**
|
|
71
72
|
* The read set's result, decoded like `db.$many(readSet, params)`; null
|
|
@@ -182,7 +183,18 @@ interface SuspendAccountResult {
|
|
|
182
183
|
*/
|
|
183
184
|
readonly ended: number;
|
|
184
185
|
}
|
|
185
|
-
|
|
186
|
+
/**
|
|
187
|
+
* What the account helpers call the database through: direct Postgres, or a
|
|
188
|
+
* `BlockTransport` such as `rpcTransport(admin, { schema })` over the Data API.
|
|
189
|
+
* The transport form needs the `sessions` SQL module.
|
|
190
|
+
*/
|
|
191
|
+
type AccountTransport = SqlClient | BlockTransport;
|
|
192
|
+
/**
|
|
193
|
+
* Deletes a user's sessions and refresh tokens. Pass `postgres.admin` (raw SQL,
|
|
194
|
+
* no module needed) or a service-role `BlockTransport` (the `sessions` module's
|
|
195
|
+
* `end_sessions`).
|
|
196
|
+
*/
|
|
197
|
+
declare function endSessions(sql: AccountTransport, userId: string): AsyncResult<EndSessionsResult>;
|
|
186
198
|
interface LastSignIn {
|
|
187
199
|
readonly userId: string;
|
|
188
200
|
/** `null` for a user who never signed in. */
|
|
@@ -193,8 +205,8 @@ interface LastSignIn {
|
|
|
193
205
|
* from the `sessions` module, which only the service role may call). Users that
|
|
194
206
|
* don't exist are missing from the map.
|
|
195
207
|
*/
|
|
196
|
-
declare function lastSignIns(sql:
|
|
197
|
-
declare function suspendAccount(service: SupabaseClient | (() => SupabaseClient), sql:
|
|
208
|
+
declare function lastSignIns(sql: AccountTransport, userIds: readonly string[]): AsyncResult<ReadonlyMap<string, LastSignIn>>;
|
|
209
|
+
declare function suspendAccount(service: SupabaseClient | (() => SupabaseClient), sql: AccountTransport, userId: string, options: SuspendAccountOptions): AsyncResult<SuspendAccountResult>;
|
|
198
210
|
/**
|
|
199
211
|
* PostgREST request settings for the caller's repositories and the shared
|
|
200
212
|
* service and anon clients, the `db` options supabase-js takes.
|
|
@@ -388,14 +400,14 @@ interface ForContextOptions {
|
|
|
388
400
|
}
|
|
389
401
|
/** The header `current_tenant_id()` reads over the Data API. */
|
|
390
402
|
declare const TENANT_HEADER = "x-bsb-tenant";
|
|
391
|
-
interface ServerContext<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, B = unknown> {
|
|
403
|
+
interface ServerContext<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, B = unknown, D = any> {
|
|
392
404
|
readonly auth: AuthState<C, P>;
|
|
393
405
|
readonly resolution: AuthResolution<C, P>;
|
|
394
406
|
/**
|
|
395
407
|
* Supabase-js client scoped to the caller (RLS applies). Throws in a support
|
|
396
408
|
* session: Realtime, Storage and Auth would act as the admin.
|
|
397
409
|
*/
|
|
398
|
-
readonly supabase: SupabaseClient
|
|
410
|
+
readonly supabase: SupabaseClient<D>;
|
|
399
411
|
/** Repositories over PostgREST as the caller. */
|
|
400
412
|
readonly db: Db<M, F, E, SupabaseClient, B>;
|
|
401
413
|
/**
|
|
@@ -556,7 +568,17 @@ interface BetterServer<M extends AnyModels, F extends AnyFunctions, E, C = unkno
|
|
|
556
568
|
* already issued stay valid until they expire.
|
|
557
569
|
*/
|
|
558
570
|
deleteAccount(userId: string, options?: DeleteAccountOptions): AsyncResult<DeleteAccountResult>;
|
|
571
|
+
/**
|
|
572
|
+
* Deletes the user's sessions. Without `postgres`, it calls `end_sessions` in
|
|
573
|
+
* the sessions block's API schema as the service role.
|
|
574
|
+
*/
|
|
559
575
|
endSessions(userId: string): AsyncResult<EndSessionsResult>;
|
|
576
|
+
/**
|
|
577
|
+
* The last sign-in of each user in one call (`better_supabase.last_sign_ins`
|
|
578
|
+
* from the `sessions` module), over `postgres` or the service role's Data
|
|
579
|
+
* API. Users that don't exist are missing from the map.
|
|
580
|
+
*/
|
|
581
|
+
lastSignIns(userIds: readonly string[]): AsyncResult<ReadonlyMap<string, LastSignIn>>;
|
|
560
582
|
/**
|
|
561
583
|
* Bans the user in Auth and keeps their sessions, so Auth answers with
|
|
562
584
|
* `user_banned` (`endSessions: true` deletes them too). Lifting the ban ends
|
|
@@ -627,4 +649,4 @@ interface BetterServer<M extends AnyModels, F extends AnyFunctions, E, C = unkno
|
|
|
627
649
|
evictSession(userId: string): Promise<void>;
|
|
628
650
|
}
|
|
629
651
|
type ServerKeys = keyof BetterServer<AnyModels, AnyFunctions, unknown>;
|
|
630
|
-
export {
|
|
652
|
+
export { Bootstrap as A, ReplicaState as C, deleteAccount as D, DeleteAccountResult as E, Access as O, PRIMARY_COOKIE as S, DeleteAccountOptions as T, SuspendAccountResult as _, ForContextOptions as a, suspendAccount as b, ServerDbOptions as c, SharedServer as d, TENANT_HEADER as f, SuspendAccountOptions as g, LastSignIn as h, ContextOptions as i, BootstrapCallOptions as j, AccessForOptions as k, ServerKeys as l, EndSessionsResult as m, ApprovalOptions as n, ResolveRequestOptions as o, AccountTransport as p, BetterServer as r, ServerContext as s, AdminDb as t, ServerOptions as u, endSessions as v, LiteDriver as w, RequestIdOptions as x, lastSignIns as y };
|
|
@@ -2,8 +2,8 @@ import { C as CookieScope, T as SessionEncoding, o as ResolvePhase, r as AuthSta
|
|
|
2
2
|
import { n as AuthOutageEvent, o as EventHub } from "./events-X-Dhu495.js";
|
|
3
3
|
import { O as AnyFunctions, k as AnyModels } from "./types-D5UNIbOQ.js";
|
|
4
4
|
import { d as RefreshPolicy } from "./respond--w7kF-Ym.js";
|
|
5
|
-
import { i as ContextOptions, s as ServerContext } from "./server-types-
|
|
6
|
-
import { t as ActiveSupport } from "./support-
|
|
5
|
+
import { i as ContextOptions, s as ServerContext } from "./server-types-Bpxk5UWh.js";
|
|
6
|
+
import { t as ActiveSupport } from "./support-tDhEwXbu.js";
|
|
7
7
|
import { SingleKeyEntry } from "@supabase/middleware";
|
|
8
8
|
/**
|
|
9
9
|
* What the entries need from a `createServer` server: its resolver, its
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as AuthState, t as AuthResolution } from "./resolve-NeMeUVtf.js";
|
|
2
|
-
import { t as ActiveSupport } from "./support-
|
|
2
|
+
import { t as ActiveSupport } from "./support-tDhEwXbu.js";
|
|
3
3
|
/**
|
|
4
4
|
* `active`: the session is valid. `expired`: the cookie's token expired and the
|
|
5
5
|
* route may not refresh it; the next navigation through the proxy does. `ended`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
1
|
+
import { r as withBlockHooks } from "./block-hooks-Bd5bRM9B.js";
|
|
2
2
|
import { n as dbError } from "./errors-CXPerGIl.js";
|
|
3
3
|
import { r as err, t as AsyncResult } from "./result-DrBaeIVt.js";
|
|
4
4
|
import { n as validate } from "./standard-BEYqhwCE.js";
|
|
@@ -7,7 +7,7 @@ import { o as problemResponse } from "./problem-gZxWhEP2.js";
|
|
|
7
7
|
import { i as sqlIdent } from "./template-1e2akYYK.js";
|
|
8
8
|
import { a as emitBlockEvent } from "./block-events-Bp6GPIBN.js";
|
|
9
9
|
import { t as fromPgError } from "./pg-error-D92B6jlF.js";
|
|
10
|
-
import { d as clearSupportCookie, f as supportCookie, m as supportCookieValue } from "./adapter-
|
|
10
|
+
import { d as clearSupportCookie, f as supportCookie, m as supportCookieValue } from "./adapter-CJa5ys5O.js";
|
|
11
11
|
import { t as cronRoute } from "./cron-route-Cbj53cAW.js";
|
|
12
12
|
import { t as boundedTtlCache } from "./ttl-cache-C5S0L2wx.js";
|
|
13
13
|
// src/auth/support.ts
|
|
@@ -164,6 +164,25 @@ function supportClaims(session, target) {
|
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
// src/server/support.ts
|
|
167
|
+
function toAuthState(caller) {
|
|
168
|
+
if ("kind" in caller) return caller;
|
|
169
|
+
const { claims } = caller;
|
|
170
|
+
const text = (key) => typeof claims[key] === "string" ? claims[key] : void 0;
|
|
171
|
+
const email = text("email");
|
|
172
|
+
const exp = claims["exp"];
|
|
173
|
+
return {
|
|
174
|
+
kind: "user",
|
|
175
|
+
token: caller.token,
|
|
176
|
+
claims,
|
|
177
|
+
user: {
|
|
178
|
+
id: text("sub") ?? "",
|
|
179
|
+
role: text("role") ?? "authenticated",
|
|
180
|
+
...email === void 0 ? {} : { email }
|
|
181
|
+
},
|
|
182
|
+
source: "bearer",
|
|
183
|
+
expiresAt: typeof exp === "number" ? exp : null
|
|
184
|
+
};
|
|
185
|
+
}
|
|
167
186
|
/**
|
|
168
187
|
* The `kind` an `approverOf` hook sees for a support request; the SQL
|
|
169
188
|
* `isApprover` sees the same.
|
|
@@ -360,8 +379,9 @@ function createSupport(options, events, claimsSchema, temporal, authorization) {
|
|
|
360
379
|
format: routeOptions.problem
|
|
361
380
|
});
|
|
362
381
|
}),
|
|
363
|
-
start(
|
|
382
|
+
start(adminCaller, request) {
|
|
364
383
|
return AsyncResult.from(async () => {
|
|
384
|
+
const admin = toAuthState(adminCaller);
|
|
365
385
|
if (admin.kind !== "user") return err(dbError("unauthorized", "Sign in to start a support session"));
|
|
366
386
|
const reason = request.reason?.trim() ?? "";
|
|
367
387
|
const seconds = request.ttl ?? ttl;
|
|
@@ -433,8 +453,9 @@ function createSupport(options, events, claimsSchema, temporal, authorization) {
|
|
|
433
453
|
});
|
|
434
454
|
});
|
|
435
455
|
},
|
|
436
|
-
request(
|
|
456
|
+
request(adminCaller, request) {
|
|
437
457
|
return AsyncResult.from(async () => {
|
|
458
|
+
const admin = toAuthState(adminCaller);
|
|
438
459
|
if (admin.kind !== "user") return err(dbError("unauthorized", "Sign in to ask for a support session"));
|
|
439
460
|
const reason = request.reason?.trim() ?? "";
|
|
440
461
|
const violation = checkPolicy(admin, request, reason, request.ttl ?? ttl);
|
|
@@ -455,8 +476,9 @@ function createSupport(options, events, claimsSchema, temporal, authorization) {
|
|
|
455
476
|
}
|
|
456
477
|
});
|
|
457
478
|
},
|
|
458
|
-
approve(
|
|
479
|
+
approve(approverCaller, requestId) {
|
|
459
480
|
return AsyncResult.from(async () => {
|
|
481
|
+
const approver = toAuthState(approverCaller);
|
|
460
482
|
if (approver.kind !== "user") return err(dbError("unauthorized", "Sign in to approve a support session"));
|
|
461
483
|
if (approver.claims["act"] !== void 0) return err(denied("An impersonated session cannot approve a support session", "SUPPORT_NESTED"));
|
|
462
484
|
if (!store.approve || !store.getRequest) return err(noApprovals());
|
|
@@ -475,8 +497,9 @@ function createSupport(options, events, claimsSchema, temporal, authorization) {
|
|
|
475
497
|
}
|
|
476
498
|
});
|
|
477
499
|
},
|
|
478
|
-
stop(
|
|
500
|
+
stop(adminCaller, sessionId) {
|
|
479
501
|
return AsyncResult.from(async () => {
|
|
502
|
+
const admin = toAuthState(adminCaller);
|
|
480
503
|
const cookie = clearSupportCookie(options.cookie);
|
|
481
504
|
if (admin.kind !== "user") return err(dbError("unauthorized", "Sign in to stop a support session"));
|
|
482
505
|
try {
|
|
@@ -501,8 +524,9 @@ function createSupport(options, events, claimsSchema, temporal, authorization) {
|
|
|
501
524
|
}
|
|
502
525
|
});
|
|
503
526
|
},
|
|
504
|
-
revoke(
|
|
527
|
+
revoke(callerCaller, sessionId) {
|
|
505
528
|
return AsyncResult.from(async () => {
|
|
529
|
+
const caller = toAuthState(callerCaller);
|
|
506
530
|
if (caller.kind !== "user") return err(dbError("unauthorized", "Sign in to revoke a support session"));
|
|
507
531
|
try {
|
|
508
532
|
return ok(await store.end(sessionId, "revoked", caller.claims));
|
|
@@ -513,11 +537,12 @@ function createSupport(options, events, claimsSchema, temporal, authorization) {
|
|
|
513
537
|
},
|
|
514
538
|
async current(request, auth) {
|
|
515
539
|
const id = sessionIdOf(request);
|
|
516
|
-
return id ? resolve(id, auth) : void 0;
|
|
540
|
+
return id ? resolve(id, toAuthState(auth)) : void 0;
|
|
517
541
|
},
|
|
518
|
-
resolve,
|
|
519
|
-
list(
|
|
542
|
+
resolve: (id, auth) => resolve(id, toAuthState(auth)),
|
|
543
|
+
list(callerCaller, filter) {
|
|
520
544
|
return AsyncResult.from(async () => {
|
|
545
|
+
const caller = toAuthState(callerCaller);
|
|
521
546
|
if (caller.kind !== "user") return err(dbError("unauthorized", "Sign in to list support sessions"));
|
|
522
547
|
try {
|
|
523
548
|
return ok(await store.list(filter, caller.claims));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
1
|
+
import { r as withBlockHooks } from "./block-hooks-Bd5bRM9B.js";
|
|
2
2
|
import { n as dbError } from "./errors-CXPerGIl.js";
|
|
3
3
|
import { c as signBytes, l as signCompact, n as generateSigningKey, o as jwksOf, r as importSigningKey } from "./jws-D5t4Ylus.js";
|
|
4
4
|
import { t as AsyncResult } from "./result-DrBaeIVt.js";
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as SupportView } from "../support-view-XeoLPB7S.js";
|
|
2
2
|
import { n as AuthSession } from "../view-B44a2jfA.js";
|
|
3
|
-
import { C as LiveCountHookOptions, D as PresenceTopic, E as PresenceHookOptions, O as ProfileOf, S as ClientLike, T as LiveQueryHookOptions, _ as ActionInputOf, a as DataRows, b as BroadcastOptions, c as DataWrites, d as BlockMutationActions, f as BlockMutationState, g as BlockRefetchOn, h as BlockQueryState, i as DataRow, k as UseActionOptions, l as BlockEngineOptions, m as BlockQueryOptions, n as DataId, o as DataSource, p as BlockQueryActions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockEventSource, v as ActionResultOf, w as LiveCountSource, x as ClaimsOf, y as ActionState } from "../field-errors-
|
|
4
|
-
import { t as AuthSnapshot } from "../bind-
|
|
3
|
+
import { C as LiveCountHookOptions, D as PresenceTopic, E as PresenceHookOptions, O as ProfileOf, S as ClientLike, T as LiveQueryHookOptions, _ as ActionInputOf, a as DataRows, b as BroadcastOptions, c as DataWrites, d as BlockMutationActions, f as BlockMutationState, g as BlockRefetchOn, h as BlockQueryState, i as DataRow, k as UseActionOptions, l as BlockEngineOptions, m as BlockQueryOptions, n as DataId, o as DataSource, p as BlockQueryActions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockEventSource, v as ActionResultOf, w as LiveCountSource, x as ClaimsOf, y as ActionState } from "../field-errors-Mo8dzoyA.js";
|
|
4
|
+
import { t as AuthSnapshot } from "../bind-D4qLTlY4.js";
|
|
5
5
|
import { b as DbError } from "../result-CMqlHv82.js";
|
|
6
|
-
import { st as QuerySpec } from "../db-blocks-
|
|
7
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
+
import { st as QuerySpec } from "../db-blocks-Dp-4qbYN.js";
|
|
7
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-fwPlelNI.js";
|
|
8
8
|
import { tt as TemplateValues } from "../bucket-CUw0p3qM.js";
|
|
9
|
-
import { n as Controller } from "../controller-
|
|
9
|
+
import { n as Controller } from "../controller-BrTPi8Po.js";
|
|
10
10
|
import { D as BlockEventPattern, Dt as Events, T as BlockEvent, k as BlockEventsMatching, wt as EventMap } from "../events-X-Dhu495.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-BgPAdisB.js";
|
|
12
|
-
import { n as BlockOptions } from "../block-env-
|
|
12
|
+
import { n as BlockOptions } from "../block-env-BLBr90is.js";
|
|
13
13
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
14
14
|
import { QueryClient } from "@tanstack/query-core";
|
|
15
15
|
import { Accessor, JSX } from "solid-js";
|
|
@@ -47,6 +47,13 @@ interface DataHooks<S extends DataSource> {
|
|
|
47
47
|
/** `source.get(id)`, kept fresh after every write. */
|
|
48
48
|
readonly useOne: (id: DataId<S>) => DataView<S, DataRow<S>>;
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* The list reader for one table or block instance, for a module that wants to
|
|
52
|
+
* tree-shake each one on its own. `defineDataHooks` makes both.
|
|
53
|
+
*/
|
|
54
|
+
export declare const defineListHook: <D, S extends DataSource>(name: string, select: (db: D) => S) => DataHooks<S>["useList"];
|
|
55
|
+
/** The record reader for one table or block instance (see `defineListHook`). */
|
|
56
|
+
export declare const defineOneHook: <D, S extends DataSource>(name: string, select: (db: D) => S) => DataHooks<S>["useOne"];
|
|
50
57
|
/**
|
|
51
58
|
* The list and record primitives for one table or block instance. The generated
|
|
52
59
|
* `hooks.ts` calls it once per table; `select` picks the source from the
|
package/dist/solid/index.js
CHANGED
|
@@ -71,14 +71,21 @@ function useBlockController(create, options, usesEnv = true) {
|
|
|
71
71
|
}
|
|
72
72
|
// src/solid/data-hooks.ts
|
|
73
73
|
/**
|
|
74
|
+
* The list reader for one table or block instance, for a module that wants to
|
|
75
|
+
* tree-shake each one on its own. `defineDataHooks` makes both.
|
|
76
|
+
*/
|
|
77
|
+
const defineListHook = /*#__NO_SIDE_EFFECTS__*/ (name, select) => (args) => bindSolidController(createDataList(dataTarget(useContext$1().client, name, select), args));
|
|
78
|
+
/** The record reader for one table or block instance (see `defineListHook`). */
|
|
79
|
+
const defineOneHook = /*#__NO_SIDE_EFFECTS__*/ (name, select) => (id) => bindSolidController(createDataOne(dataTarget(useContext$1().client, name, select), id));
|
|
80
|
+
/**
|
|
74
81
|
* The list and record primitives for one table or block instance. The generated
|
|
75
82
|
* `hooks.ts` calls it once per table; `select` picks the source from the
|
|
76
83
|
* provider's `db`.
|
|
77
84
|
*/
|
|
78
85
|
function defineDataHooks(name, select) {
|
|
79
86
|
return {
|
|
80
|
-
useList:
|
|
81
|
-
useOne:
|
|
87
|
+
useList: /* @__PURE__ */ defineListHook(name, select),
|
|
88
|
+
useOne: /* @__PURE__ */ defineOneHook(name, select)
|
|
82
89
|
};
|
|
83
90
|
}
|
|
84
91
|
// src/solid/index.ts
|
|
@@ -433,4 +440,4 @@ function useAction(action, options = {}) {
|
|
|
433
440
|
}
|
|
434
441
|
};
|
|
435
442
|
}
|
|
436
|
-
export { BetterSupabaseProvider, createBindings, defineDataHooks, fieldErrorsOf, useAction, useAuth, useBlockController, useBlockEvent, useBlockMutation, useBlockQuery, useBroadcast, useLiveCount, useLiveQuery, usePresence, useSession, useSupabase, useSupportSession };
|
|
443
|
+
export { BetterSupabaseProvider, createBindings, defineDataHooks, defineListHook, defineOneHook, fieldErrorsOf, useAction, useAuth, useBlockController, useBlockEvent, useBlockMutation, useBlockQuery, useBroadcast, useLiveCount, useLiveQuery, usePresence, useSession, useSupabase, useSupportSession };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { O as AnyFunctions, Ut as AnyAuthorizer, in as PermissionRef, k as AnyModels } from "../types-D5UNIbOQ.js";
|
|
2
|
-
import { s as BetterSupabase } from "../db-blocks-
|
|
3
|
-
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-
|
|
2
|
+
import { s as BetterSupabase } from "../db-blocks-Dp-4qbYN.js";
|
|
3
|
+
import { n as FrameworkOptions, r as LocalsResource, t as FrameworkLocals } from "../framework-BoDTo47q.js";
|
|
4
4
|
import { a as AuthorizedContext, l as Unwrapped, n as ActionParsed, o as BlockActionOptions, r as ActionResult, s as BlockRequireOptions } from "../kit-CjmzrlVW.js";
|
|
5
|
-
import { r as BetterServer } from "../server-types-
|
|
5
|
+
import { r as BetterServer } from "../server-types-Bpxk5UWh.js";
|
|
6
6
|
import { t as RefusalRedirects } from "../refusal-Dsn4WGbg.js";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
/** The part of a SolidStart `FetchEvent` the integration reads and writes. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as beforeRoute } from "../before-route-Ra3OhI2x.js";
|
|
2
2
|
import { i as nitroCloudflareEnv } from "../shared-Ci1g9nl4.js";
|
|
3
|
-
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
4
|
-
import { i as localsOf, r as frameworkEntry } from "../framework-
|
|
3
|
+
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-CJa5ys5O.js";
|
|
4
|
+
import { i as localsOf, r as frameworkEntry } from "../framework-BfP8NwDY.js";
|
|
5
5
|
import { c as defaultExpose, i as requireCaller, o as runAction } from "../kit-CBdolcQN.js";
|
|
6
6
|
import { r as refusalResponse } from "../refusal-Pue3-a0A.js";
|
|
7
7
|
// src/solid-start/index.ts
|
package/dist/spec/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AnyOpenApiDocument, B as OpenApiSecurityRequirement, C as TopicInput, D as DEFAULT_ERRORS, E as CustomSecurity, F as OpenApi33PreviewDocument, H as RenderedOpenApi, I as OpenApiComponents, L as OpenApiDocument, M as OpenApi30Document, N as OpenApi31Document, O as PROBLEM_SCHEMA, P as OpenApi32Document, R as OpenApiDocuments, S as EventsOptions, T as DataApiOptions, V as OpenApiVersion, _ as WorkflowSource, a as OverlayEngine, b as CLOUD_EVENT_TRAIT, c as defineApi, d as BuiltModel, f as ComponentNameContext, g as RouteSpec, h as ResourceInput, i as OpenApiRenderResult, j as OPENAPI_33_PREVIEW_VERSION, k as SecurityPreset, l as ApiOptions, m as OperationIdContext, n as DefineApiOptions, o as RenderOptions, p as EnrichHooks, r as OpenApiRenderOptions, s as RenderResult, t as Api, u as ApiSource, v as BlockEventSchema, w as topicsFrom, x as CloudEventsInput, y as BlockEventSchemas, z as OpenApiInfo } from "../api-
|
|
1
|
+
import { A as AnyOpenApiDocument, B as OpenApiSecurityRequirement, C as TopicInput, D as DEFAULT_ERRORS, E as CustomSecurity, F as OpenApi33PreviewDocument, H as RenderedOpenApi, I as OpenApiComponents, L as OpenApiDocument, M as OpenApi30Document, N as OpenApi31Document, O as PROBLEM_SCHEMA, P as OpenApi32Document, R as OpenApiDocuments, S as EventsOptions, T as DataApiOptions, V as OpenApiVersion, _ as WorkflowSource, a as OverlayEngine, b as CLOUD_EVENT_TRAIT, c as defineApi, d as BuiltModel, f as ComponentNameContext, g as RouteSpec, h as ResourceInput, i as OpenApiRenderResult, j as OPENAPI_33_PREVIEW_VERSION, k as SecurityPreset, l as ApiOptions, m as OperationIdContext, n as DefineApiOptions, o as RenderOptions, p as EnrichHooks, r as OpenApiRenderOptions, s as RenderResult, t as Api, u as ApiSource, v as BlockEventSchema, w as topicsFrom, x as CloudEventsInput, y as BlockEventSchemas, z as OpenApiInfo } from "../api-CGYctFBt.js";
|
|
2
2
|
import { a as FormatVersion, c as SpecDiagnostic, d as defineDocumentFormat, i as DocumentOf, l as VersionOf, n as DiagnosticSeverity, o as LowerContext, r as DocumentFormat, s as RenderedOf, t as AnyDocumentFormat, u as VersionStatus } from "../format-BT0Z3V54.js";
|
|
3
3
|
import { t as DescribedFunction } from "../function-contract-CMJR3nYl.js";
|
|
4
4
|
import { C as ModelWebhook, D as ResourceOperation, E as OperationSource, O as SecurityRequirement, S as ModelTag, T as OAuthFlow, _ as ModelResponseOrRef, a as JsonSchema, b as ModelServer, c as ModelChannelOperation, d as ModelInfo, f as ModelMessage, g as ModelResponse, h as ModelParameter, i as JsonObject, k as TableVerb, l as ModelContent, m as ModelOperation, n as DataApiOperation, o as ModelBody, p as ModelMessageTrait, r as HttpMethod, s as ModelChannel, t as ApiModel, u as ModelExample, v as ModelSecurityProfileRequirement, w as ModelWorkflow, x as ModelStep, y as ModelSecurityScheme } from "../model-Lxa_mOzB.js";
|
package/dist/sql/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as BlockOptionsRegistry, S as BLOCK_OPTION_SCHEMAS, b as resolveBlock } from "../blocks-
|
|
2
|
-
import { A as declaredTableColumns, C as notNullCheckName, D as addedColumnTypes, E as PolicyGrant, F as policyGrants, I as rlsTables, Jr as sameTenantLayout, M as declaredUpdatedAtTriggers, N as declaredViews, O as declaredColumnTypes, P as extensionSchema, S as blockSqlVersion, T as OwnIndex, Xr as auditRegistrations, Yr as AuditedTable, _ as BlockSqlFile, a as BlockSqlTableSpec, b as BlockSqlUpgrade, c as moduleIdType, ca as BlockSqlRead, d as appValues, da as declareRead, f as checkedValueMaps, fa as readArgSource, g as BlockSqlEntitlementsProvider, h as BlockSqlDeprecation, i as BlockSqlNames, j as declaredTables, k as declaredIndexes, l as ValueMap, la as BlockSqlReadArg, m as BlockSqlAccessProvider, n as BlockSqlContractFunction, o as MODULE_ID_TYPES, p as BlockSql, pa as readArgSqlType, qr as DeclaredForeignKey, r as BlockSqlIdType, s as isBlockSqlIdType, t as BlockSqlContext, u as ValueMaps, ua as BlockSqlReadArgType, v as BlockSqlLayout, w as DeclaredView, x as OwnView, y as BlockSqlTestFile } from "../context-
|
|
1
|
+
import { C as BlockOptionsRegistry, S as BLOCK_OPTION_SCHEMAS, b as resolveBlock } from "../blocks-EFj0duwB.js";
|
|
2
|
+
import { A as declaredTableColumns, C as notNullCheckName, D as addedColumnTypes, E as PolicyGrant, F as policyGrants, I as rlsTables, Jr as sameTenantLayout, M as declaredUpdatedAtTriggers, N as declaredViews, O as declaredColumnTypes, P as extensionSchema, S as blockSqlVersion, T as OwnIndex, Xr as auditRegistrations, Yr as AuditedTable, _ as BlockSqlFile, a as BlockSqlTableSpec, b as BlockSqlUpgrade, c as moduleIdType, ca as BlockSqlRead, d as appValues, da as declareRead, f as checkedValueMaps, fa as readArgSource, g as BlockSqlEntitlementsProvider, h as BlockSqlDeprecation, i as BlockSqlNames, j as declaredTables, k as declaredIndexes, l as ValueMap, la as BlockSqlReadArg, m as BlockSqlAccessProvider, n as BlockSqlContractFunction, o as MODULE_ID_TYPES, p as BlockSql, pa as readArgSqlType, qr as DeclaredForeignKey, r as BlockSqlIdType, s as isBlockSqlIdType, t as BlockSqlContext, u as ValueMaps, ua as BlockSqlReadArgType, v as BlockSqlLayout, w as DeclaredView, x as OwnView, y as BlockSqlTestFile } from "../context-DcHcHc2b.js";
|
|
3
3
|
import { a as BlockSqlEmit, i as BlockSqlAudit, n as AuditCategory, r as BlockSqlAction, t as AUDIT_CATEGORIES } from "../audit-actions-Dni5Y4wV.js";
|
|
4
|
-
import { $ as compileReadSet, $t as sameBlockFile, A as renderRulePolicy, At as adoptedColumnProblems, B as PolicyInput, Bt as seedDefaultsFunctions, C as RulePolicyInput, Ct as DataExportPlan, D as policyFunctionsSql, Dt as resolveExposeColumns, E as isRule, Et as excludedColumns, F as TENANT_SCOPE_NAMES, Ft as APP_TABLES_MODULE, G as policy, Gt as BlockSqlPermissionKey, H as RenderPolicyOptions, Ht as moduleSource, I as TENANT_SCOPE_POLICY, It as appTablesFiles, J as readPolicy, Jt as modulePermissionKeys, K as readGrants, Kt as moduleEventTriggers, L as Grant, Lt as DEFAULT_ROLES, M as appTablePolicyNotes, Mt as adoptedViews, N as declaredPolicies, Nt as moduleWritesText, O as readRulePolicies, Ot as AdoptedTable, P as widenedCommands, Pt as APP_TABLES_MARKER, Q as CompiledReadSet, Qt as moduleFileVersion, R as Policy, Rt as instanceFunctions, S as RulePolicy, St as sameTenantTrigger, T as disallowedPolicyCalls, Tt as dataExportPlan, U as catalogPolicy, Ut as resolveBlocks, V as ReadPolicy, Vt as SQL_MODULES, W as maskSql, Wt as BlockSqlExtension, X as scopePolicyName, Xt as blockFileState, Y as renderPolicy, Yt as moduleSchemaExtensions, Z as hasColumnAccess, Zt as isModuleDataFile, _ as POLICY_FUNCTIONS, _n as renderBlocks, _t as subjectColumns, a as createsTable, an as BLOCK_RENAMES, at as SCOPE_ID_TYPES, b as Rule, bt as expiredFlagsQuery, c as setTableFeature, cn as renamedBlock, ct as scopeProblems, d as BsbComment, dn as moduleDeprecations, dt as CheckValues, en as moduleDataDir, et as compileReadSets, f as BsbTag, fn as upgradePlan, ft as TableCheckValues, g as setBsbTag, gn as moduleTopics, gt as blockReadRoles, h as parseBsbComment, hn as moduleBody, ht as ReadRolesModule, i as TableFeature, in as entityRenamePlan, it as moduleLayout, j as rulePolicy, jt as adoptedTables, k as renderRule, kt as AdoptedView, l as tableFeatures, ln as BlockSqlUpgradePlan, lt as templateFunctions, m as formatBsbComment, mn as customContracts, mt as declaredCheckValues, n as renderAutoEmbedding, nn as EntityRenamePlan, nt as MigrationOptionUse, o as isTableFeature, on as currentBlockName, ot as resolveProviderSql, p as commentOnTableSql, pn as BlockSqlTopic, pt as checkValues, q as readPolicies, qt as moduleHidingColumns, r as TABLE_FEATURES, rn as EntityRenameStep, rt as migrationOptionUses, s as setFeatureStatement, sn as formerBlockName, st as sameTemplateFunction, t as AutoEmbeddingConfig, tn as moduleFilePaths, tt as sharedRolesProblems, u as tableTagComments, un as InstalledBlock, ut as writtenValues, v as PolicyFunctionsOptions, vn as contractSignature, vt as TenantQuery, w as RuleValue, wt as SECRET_COLUMNS, x as RuleOperator, xt as sameTenantColumn, y as ReadRulePolicy, yt as tenantsQuery, z as PolicyCommand, zt as SeedDefaultsFunction } from "../index-
|
|
5
|
-
import { n as BlockTables, r as blockTables, t as BlockTable } from "../block-tables-
|
|
6
|
-
import { a as appTableEventTypes } from "../app-tables-
|
|
4
|
+
import { $ as compileReadSet, $t as sameBlockFile, A as renderRulePolicy, At as adoptedColumnProblems, B as PolicyInput, Bt as seedDefaultsFunctions, C as RulePolicyInput, Ct as DataExportPlan, D as policyFunctionsSql, Dt as resolveExposeColumns, E as isRule, Et as excludedColumns, F as TENANT_SCOPE_NAMES, Ft as APP_TABLES_MODULE, G as policy, Gt as BlockSqlPermissionKey, H as RenderPolicyOptions, Ht as moduleSource, I as TENANT_SCOPE_POLICY, It as appTablesFiles, J as readPolicy, Jt as modulePermissionKeys, K as readGrants, Kt as moduleEventTriggers, L as Grant, Lt as DEFAULT_ROLES, M as appTablePolicyNotes, Mt as adoptedViews, N as declaredPolicies, Nt as moduleWritesText, O as readRulePolicies, Ot as AdoptedTable, P as widenedCommands, Pt as APP_TABLES_MARKER, Q as CompiledReadSet, Qt as moduleFileVersion, R as Policy, Rt as instanceFunctions, S as RulePolicy, St as sameTenantTrigger, T as disallowedPolicyCalls, Tt as dataExportPlan, U as catalogPolicy, Ut as resolveBlocks, V as ReadPolicy, Vt as SQL_MODULES, W as maskSql, Wt as BlockSqlExtension, X as scopePolicyName, Xt as blockFileState, Y as renderPolicy, Yt as moduleSchemaExtensions, Z as hasColumnAccess, Zt as isModuleDataFile, _ as POLICY_FUNCTIONS, _n as renderBlocks, _t as subjectColumns, a as createsTable, an as BLOCK_RENAMES, at as SCOPE_ID_TYPES, b as Rule, bt as expiredFlagsQuery, c as setTableFeature, cn as renamedBlock, ct as scopeProblems, d as BsbComment, dn as moduleDeprecations, dt as CheckValues, en as moduleDataDir, et as compileReadSets, f as BsbTag, fn as upgradePlan, ft as TableCheckValues, g as setBsbTag, gn as moduleTopics, gt as blockReadRoles, h as parseBsbComment, hn as moduleBody, ht as ReadRolesModule, i as TableFeature, in as entityRenamePlan, it as moduleLayout, j as rulePolicy, jt as adoptedTables, k as renderRule, kt as AdoptedView, l as tableFeatures, ln as BlockSqlUpgradePlan, lt as templateFunctions, m as formatBsbComment, mn as customContracts, mt as declaredCheckValues, n as renderAutoEmbedding, nn as EntityRenamePlan, nt as MigrationOptionUse, o as isTableFeature, on as currentBlockName, ot as resolveProviderSql, p as commentOnTableSql, pn as BlockSqlTopic, pt as checkValues, q as readPolicies, qt as moduleHidingColumns, r as TABLE_FEATURES, rn as EntityRenameStep, rt as migrationOptionUses, s as setFeatureStatement, sn as formerBlockName, st as sameTemplateFunction, t as AutoEmbeddingConfig, tn as moduleFilePaths, tt as sharedRolesProblems, u as tableTagComments, un as InstalledBlock, ut as writtenValues, v as PolicyFunctionsOptions, vn as contractSignature, vt as TenantQuery, w as RuleValue, wt as SECRET_COLUMNS, x as RuleOperator, xt as sameTenantColumn, y as ReadRulePolicy, yt as tenantsQuery, z as PolicyCommand, zt as SeedDefaultsFunction } from "../index-xA8WHuDE.js";
|
|
5
|
+
import { n as BlockTables, r as blockTables, t as BlockTable } from "../block-tables-BkgafSZd.js";
|
|
6
|
+
import { a as appTableEventTypes } from "../app-tables-CZLNOXeA.js";
|
|
7
7
|
export { APP_TABLES_MARKER, APP_TABLES_MODULE, AUDIT_CATEGORIES, type AdoptedTable, type AdoptedView, type AuditCategory, type AuditedTable, type AutoEmbeddingConfig, BLOCK_OPTION_SCHEMAS, BLOCK_RENAMES, type BlockOptionsRegistry, type BlockSql, type BlockSqlAccessProvider, type BlockSqlAction, type BlockSqlAudit, type BlockSqlContext, type BlockSqlContractFunction, type BlockSqlDeprecation, type BlockSqlEmit, type BlockSqlEntitlementsProvider, type BlockSqlExtension, type BlockSqlFile, type BlockSqlIdType, type BlockSqlLayout, type BlockSqlNames, type BlockSqlPermissionKey, type BlockSqlRead, type BlockSqlReadArg, type BlockSqlReadArgType, type BlockSqlTableSpec, type BlockSqlTestFile, type BlockSqlTopic, type BlockSqlUpgrade, type BlockSqlUpgradePlan, type BlockTable, type BlockTables, type BsbComment, type BsbTag, type CheckValues, type CompiledReadSet, DEFAULT_ROLES, type DataExportPlan, type DeclaredForeignKey, type DeclaredView, type EntityRenamePlan, type EntityRenameStep, type Grant, type InstalledBlock, MODULE_ID_TYPES, type MigrationOptionUse, type OwnIndex, type OwnView, POLICY_FUNCTIONS, type Policy, type PolicyCommand, type PolicyFunctionsOptions, type PolicyGrant, type PolicyInput, type ReadPolicy, type ReadRolesModule, type ReadRulePolicy, type RenderPolicyOptions, type Rule, type RuleOperator, type RulePolicy, type RulePolicyInput, type RuleValue, SCOPE_ID_TYPES, SECRET_COLUMNS, SQL_MODULES, type SeedDefaultsFunction, TABLE_FEATURES, TENANT_SCOPE_NAMES, TENANT_SCOPE_POLICY, type TableCheckValues, type TableFeature, type TenantQuery, type ValueMap, type ValueMaps, addedColumnTypes, adoptedColumnProblems, adoptedTables, adoptedViews, appTableEventTypes, appTablePolicyNotes, appTablesFiles, appValues, auditRegistrations, blockFileState, blockReadRoles, blockSqlVersion, blockTables, catalogPolicy, checkValues, checkedValueMaps, commentOnTableSql, compileReadSet, compileReadSets, contractSignature, createsTable, currentBlockName, customContracts, dataExportPlan, declareRead, declaredCheckValues, declaredColumnTypes, declaredIndexes, declaredPolicies, declaredTableColumns, declaredTables, declaredUpdatedAtTriggers, declaredViews, disallowedPolicyCalls, entityRenamePlan, excludedColumns, expiredFlagsQuery, extensionSchema, formatBsbComment, formerBlockName, hasColumnAccess, instanceFunctions, isBlockSqlIdType, isModuleDataFile, isRule, isTableFeature, maskSql, migrationOptionUses, moduleBody, moduleDataDir, moduleDeprecations, moduleEventTriggers, moduleFilePaths, moduleFileVersion, moduleHidingColumns, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, moduleSource, moduleTopics, moduleWritesText, notNullCheckName, parseBsbComment, policy, policyFunctionsSql, policyGrants, readArgSource, readArgSqlType, readGrants, readPolicies, readPolicy, readRulePolicies, renamedBlock, renderAutoEmbedding, renderBlocks, renderPolicy, renderRule, renderRulePolicy, resolveBlock, resolveBlocks, resolveExposeColumns, resolveProviderSql, rlsTables, rulePolicy, sameBlockFile, sameTemplateFunction, sameTenantColumn, sameTenantLayout, sameTenantTrigger, scopePolicyName, scopeProblems, seedDefaultsFunctions, setBsbTag, setFeatureStatement, setTableFeature, sharedRolesProblems, subjectColumns, tableFeatures, tableTagComments, templateFunctions, tenantsQuery, upgradePlan, widenedCommands, writtenValues };
|
package/dist/sql/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as resolveBlock, T as hasColumnAccess, h as appTableEventTypes } from "../instances-
|
|
2
|
-
import { c as scopeProblems, l as templateFunctions, o as resolveProviderSql, s as sameTemplateFunction, t as SCOPE_ID_TYPES } from "../access-sql-
|
|
1
|
+
import { B as resolveBlock, T as hasColumnAccess, h as appTableEventTypes } from "../instances-CFXFHQMK.js";
|
|
2
|
+
import { c as scopeProblems, l as templateFunctions, o as resolveProviderSql, s as sameTemplateFunction, t as SCOPE_ID_TYPES } from "../access-sql-DH2LbcQe.js";
|
|
3
3
|
import { a as readGrants, c as renderPolicy, i as policy, o as readPolicies, r as maskSql, s as readPolicy, t as catalogPolicy } from "../policy-B9UWDXMF.js";
|
|
4
4
|
import { M as notNullCheckName } from "../shared-DwShIqeQ.js";
|
|
5
|
-
import { $ as appTablesFiles, A as sameTenantLayout, At as contractSignature, B as customContracts, Bt as declaredViews, C as AUDIT_CATEGORIES, Ct as BLOCK_RENAMES, D as blockReadRoles, Dt as MODULE_ID_TYPES, E as declaredCheckValues, Et as renamedBlock, F as instanceFunctions, Ft as declaredColumnTypes, G as upgradePlan, H as moduleTopics, Ht as policyGrants, I as blockTables, It as declaredIndexes, J as widenedCommands, K as appTablePolicyNotes, L as seedDefaultsFunctions, Lt as declaredTableColumns, M as adoptedTables, Mt as checkedValueMaps, N as adoptedViews, Nt as BLOCK_OPTION_SCHEMAS, O as tenantsQuery, Ot as isBlockSqlIdType, P as moduleWritesText, Pt as addedColumnTypes, Q as APP_TABLES_MODULE, R as moduleLayout, Rt as declaredTables, S as sharedRolesProblems, St as migrationOptionUses, T as checkValues, Tt as formerBlockName, U as renderBlocks, Ut as rlsTables, V as moduleBody, Vt as extensionSchema, W as moduleDeprecations, Wt as auditRegistrations, X as moduleFilePaths, Y as moduleDataDir, Z as APP_TABLES_MARKER, _ as renderRule, _t as resolveExposeColumns, a as setTableFeature, at as moduleFileVersion, b as compileReadSet, bt as sameTenantColumn, c as commentOnTableSql, ct as moduleHidingColumns, d as setBsbTag, dt as SQL_MODULES, et as scopePolicyName, f as POLICY_FUNCTIONS, ft as moduleSource, g as readRulePolicies, gt as excludedColumns, h as policyFunctionsSql, ht as TENANT_SCOPE_POLICY, i as setFeatureStatement, it as isModuleDataFile, j as adoptedColumnProblems, jt as appValues, k as expiredFlagsQuery, kt as moduleIdType, l as formatBsbComment, lt as modulePermissionKeys, m as isRule, mt as TENANT_SCOPE_NAMES, n as createsTable, nt as blockSqlVersion, o as tableFeatures, ot as sameBlockFile, p as disallowedPolicyCalls, pt as resolveBlocks, q as declaredPolicies, r as isTableFeature, rt as blockFileState, s as tableTagComments, st as moduleEventTriggers, t as TABLE_FEATURES, tt as renderAutoEmbedding, u as parseBsbComment, ut as moduleSchemaExtensions, v as renderRulePolicy, vt as SECRET_COLUMNS, w as writtenValues, wt as currentBlockName, x as compileReadSets, xt as sameTenantTrigger, y as rulePolicy, yt as dataExportPlan, z as entityRenamePlan, zt as declaredUpdatedAtTriggers } from "../sql-
|
|
5
|
+
import { $ as appTablesFiles, A as sameTenantLayout, At as contractSignature, B as customContracts, Bt as declaredViews, C as AUDIT_CATEGORIES, Ct as BLOCK_RENAMES, D as blockReadRoles, Dt as MODULE_ID_TYPES, E as declaredCheckValues, Et as renamedBlock, F as instanceFunctions, Ft as declaredColumnTypes, G as upgradePlan, H as moduleTopics, Ht as policyGrants, I as blockTables, It as declaredIndexes, J as widenedCommands, K as appTablePolicyNotes, L as seedDefaultsFunctions, Lt as declaredTableColumns, M as adoptedTables, Mt as checkedValueMaps, N as adoptedViews, Nt as BLOCK_OPTION_SCHEMAS, O as tenantsQuery, Ot as isBlockSqlIdType, P as moduleWritesText, Pt as addedColumnTypes, Q as APP_TABLES_MODULE, R as moduleLayout, Rt as declaredTables, S as sharedRolesProblems, St as migrationOptionUses, T as checkValues, Tt as formerBlockName, U as renderBlocks, Ut as rlsTables, V as moduleBody, Vt as extensionSchema, W as moduleDeprecations, Wt as auditRegistrations, X as moduleFilePaths, Y as moduleDataDir, Z as APP_TABLES_MARKER, _ as renderRule, _t as resolveExposeColumns, a as setTableFeature, at as moduleFileVersion, b as compileReadSet, bt as sameTenantColumn, c as commentOnTableSql, ct as moduleHidingColumns, d as setBsbTag, dt as SQL_MODULES, et as scopePolicyName, f as POLICY_FUNCTIONS, ft as moduleSource, g as readRulePolicies, gt as excludedColumns, h as policyFunctionsSql, ht as TENANT_SCOPE_POLICY, i as setFeatureStatement, it as isModuleDataFile, j as adoptedColumnProblems, jt as appValues, k as expiredFlagsQuery, kt as moduleIdType, l as formatBsbComment, lt as modulePermissionKeys, m as isRule, mt as TENANT_SCOPE_NAMES, n as createsTable, nt as blockSqlVersion, o as tableFeatures, ot as sameBlockFile, p as disallowedPolicyCalls, pt as resolveBlocks, q as declaredPolicies, r as isTableFeature, rt as blockFileState, s as tableTagComments, st as moduleEventTriggers, t as TABLE_FEATURES, tt as renderAutoEmbedding, u as parseBsbComment, ut as moduleSchemaExtensions, v as renderRulePolicy, vt as SECRET_COLUMNS, w as writtenValues, wt as currentBlockName, x as compileReadSets, xt as sameTenantTrigger, y as rulePolicy, yt as dataExportPlan, z as entityRenamePlan, zt as declaredUpdatedAtTriggers } from "../sql-BVUbNexh.js";
|
|
6
6
|
import { s as subjectColumns } from "../contributions-DPjEWWpE.js";
|
|
7
7
|
import { t as DEFAULT_ROLES } from "../permissions-model-COgjsFbE.js";
|
|
8
8
|
import { n as readArgSource, r as readArgSqlType, t as declareRead } from "../reads-CWVqw2JB.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as MAX_AFFECTED_MARKER } from "./errors-CXPerGIl.js";
|
|
2
|
-
import { n as invalidRequest } from "./build-
|
|
2
|
+
import { n as invalidRequest } from "./build-OCuu29wd.js";
|
|
3
3
|
import { n as simplifyOrFalse } from "./simplify-BzThKn5b.js";
|
|
4
4
|
import { t as lookupOf } from "./lookup-upE-e1zw.js";
|
|
5
|
-
import { n as whereClause, t as integer } from "./shared-
|
|
5
|
+
import { n as whereClause, t as integer } from "./shared-BTf7Qrnk.js";
|
|
6
6
|
// src/compile/sql.ts
|
|
7
7
|
/** Supabase's default `max_rows`, which PostgREST uses for `count=estimated`. */
|
|
8
8
|
const DEFAULT_ESTIMATED_COUNT_THRESHOLD = 1e3;
|