better-supabase 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{access-sql-DUSSMaC3.js → access-sql-CTJPHjCL.js} +1 -1
- package/dist/{actor-KHDOKGb1.js → actor-CAL8mMih.js} +1 -1
- package/dist/{adapter-rmWaLNe3.js → adapter-B2WRsRIg.js} +29 -15
- package/dist/{agents-ByYUSZxT.d.ts → agents-CbUIrH-w.d.ts} +7 -7
- package/dist/{ai-cache-CkxtAt4P.d.ts → ai-cache-BdeJKlrV.d.ts} +5 -5
- package/dist/{ai-cache-DPiuJ-zJ.js → ai-cache-CLninP-F.js} +2 -2
- package/dist/{ai-chat-al8b3spK.d.ts → ai-chat-D-2MH1sU.d.ts} +7 -7
- package/dist/{ai-files-BXtV3ygd.js → ai-files-DXbgWA5M.js} +6 -6
- package/dist/ai-sdk/agents/index.d.ts +6 -6
- package/dist/ai-sdk/agents/index.js +2 -2
- package/dist/ai-sdk/batches/index.d.ts +4 -4
- package/dist/ai-sdk/batches/index.js +4 -4
- package/dist/ai-sdk/cache/index.d.ts +2 -2
- package/dist/ai-sdk/cache/index.js +1 -1
- package/dist/ai-sdk/chat/index.d.ts +1 -1
- package/dist/ai-sdk/chat/index.js +5 -5
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.js +4 -4
- package/dist/ai-sdk/index.d.ts +6 -6
- package/dist/ai-sdk/index.js +2 -2
- package/dist/ai-sdk/mcp/index.d.ts +4 -4
- package/dist/ai-sdk/mcp/index.js +4 -4
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/workflow/index.d.ts +4 -4
- package/dist/ai-sdk/workflow/index.js +6 -6
- package/dist/{ai-tasks-Di0gmJOX.d.ts → ai-tasks-BJJChl-D.d.ts} +8 -8
- package/dist/{announcements-HF7LuFw5.js → announcements-BNxTW5HJ.js} +4 -4
- package/dist/{api-CFjuYKFY.js → api-C43_FYDp.js} +1 -1
- package/dist/{api-XJcQON_7.d.ts → api-DoWK3dTw.d.ts} +6 -6
- package/dist/{api-keys-C1IZF7p8.js → api-keys-BSXwI2jF.js} +6 -6
- package/dist/{api-keys-EdSNjGIZ.d.ts → api-keys-qnM63qjS.d.ts} +7 -7
- package/dist/{app-tables-DVidEHOI.d.ts → app-tables-BrMBjyuq.d.ts} +1 -1
- package/dist/{approvals-DqlPHBHI.d.ts → approvals-CRZtzxNt.d.ts} +7 -7
- package/dist/arazzo/index.d.ts +2 -2
- package/dist/arazzo/index.js +2 -2
- package/dist/{assistant-BZyhQ8bd.d.ts → assistant-DZsHsYIx.d.ts} +4 -4
- package/dist/astro/index.d.ts +12 -12
- package/dist/astro/index.js +5 -5
- package/dist/asyncapi/index.d.ts +1 -1
- package/dist/asyncapi/index.js +2 -2
- package/dist/{attachments-C8FEBBKE.js → attachments-Bk3tyeUF.js} +6 -6
- package/dist/{audit-log-CRgiHlRh.js → audit-log-ovUlF4Mk.js} +7 -7
- package/dist/auth-module-DbZv2WrR.js +10 -0
- package/dist/{auth-reply-B_dW4jHJ.js → auth-reply-Daq72lY4.js} +2 -2
- package/dist/{authorization-CdJRoZgV.d.ts → authorization-ClWBcXJi.d.ts} +23 -2
- package/dist/{authorization-hooks-Do5djkpz.d.ts → authorization-hooks-mLi894KH.d.ts} +2 -2
- package/dist/{authorizer-dVVN05Un.js → authorizer-B3yyCVUF.js} +2 -2
- package/dist/{base64-BmeCBgGo.js → base64-D4aqdnDR.js} +4 -4
- package/dist/better-result/index.d.ts +5 -5
- package/dist/better-result/index.js +1 -1
- package/dist/{bind-DkaP_0iS.d.ts → bind-CTNKpBM6.d.ts} +4 -4
- package/dist/{block-fields-BANwJ9Y_.js → block-fields-Bv1hV855.js} +3 -3
- package/dist/{block-fields-5UA84ZUg.d.ts → block-fields-DnaDbgZS.d.ts} +2 -2
- package/dist/{block-helpers-7pMBVsE6.d.ts → block-helpers-CjcQM1yA.d.ts} +2 -2
- package/dist/{block-helpers-BfVCR5Fc.js → block-helpers-DkVZNDrj.js} +4 -4
- package/dist/{block-hooks-ByKlh8Qy.js → block-hooks-C22vuIUd.js} +3 -3
- package/dist/{block-hooks-C_WaodoA.d.ts → block-hooks-DcPJHztl.d.ts} +3 -3
- package/dist/{block-transport-NbUJygA7.d.ts → block-transport-DezJPPA0.d.ts} +2 -2
- package/dist/{block-transport-G4t1umrR.js → block-transport-J7ZepTq2.js} +1 -1
- package/dist/blocks/access-requests/index.d.ts +8 -8
- package/dist/blocks/access-requests/index.js +6 -6
- package/dist/blocks/agents/index.d.ts +4 -4
- package/dist/blocks/agents/index.js +5 -5
- package/dist/blocks/ai-cache/index.d.ts +3 -3
- package/dist/blocks/ai-cache/index.js +2 -2
- package/dist/blocks/ai-chat/index.d.ts +5 -5
- package/dist/blocks/ai-chat/index.js +2 -2
- package/dist/blocks/ai-chat/react/index.d.ts +2 -2
- package/dist/blocks/ai-chat/react/index.js +2 -2
- package/dist/blocks/ai-chat/solid/index.d.ts +2 -2
- package/dist/blocks/ai-chat/solid/index.js +1 -1
- package/dist/blocks/ai-chat/svelte/index.d.ts +2 -2
- package/dist/blocks/ai-chat/svelte/index.js +1 -1
- package/dist/blocks/ai-chat/vue/index.d.ts +2 -2
- package/dist/blocks/ai-chat/vue/index.js +1 -1
- package/dist/blocks/ai-files/index.d.ts +5 -5
- package/dist/blocks/ai-files/index.js +2 -2
- package/dist/blocks/ai-providers/index.d.ts +4 -4
- package/dist/blocks/ai-providers/index.js +7 -7
- package/dist/blocks/ai-tasks/index.d.ts +3 -3
- package/dist/blocks/ai-tasks/index.js +7 -7
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/announcements/index.js +2 -2
- package/dist/blocks/announcements/react/index.d.ts +1 -1
- package/dist/blocks/announcements/react/index.js +2 -2
- package/dist/blocks/announcements/solid/index.d.ts +2 -2
- package/dist/blocks/announcements/svelte/index.d.ts +2 -2
- package/dist/blocks/announcements/vue/index.d.ts +2 -2
- package/dist/blocks/api-keys/index.d.ts +7 -7
- package/dist/blocks/api-keys/index.js +5 -5
- package/dist/blocks/api-keys/react/index.d.ts +1 -1
- package/dist/blocks/api-keys/react/index.js +3 -3
- package/dist/blocks/api-keys/react/server.d.ts +1 -1
- package/dist/blocks/api-keys/solid/index.d.ts +2 -2
- package/dist/blocks/api-keys/solid/index.js +1 -1
- package/dist/blocks/api-keys/svelte/index.d.ts +2 -2
- package/dist/blocks/api-keys/svelte/index.js +1 -1
- package/dist/blocks/api-keys/vue/index.d.ts +2 -2
- package/dist/blocks/api-keys/vue/index.js +1 -1
- package/dist/blocks/approvals/index.d.ts +4 -4
- package/dist/blocks/approvals/index.js +6 -6
- package/dist/blocks/attachments/index.d.ts +4 -4
- package/dist/blocks/attachments/index.js +2 -2
- package/dist/blocks/audit/index.d.ts +6 -6
- package/dist/blocks/audit/index.js +6 -6
- package/dist/blocks/audit/react/index.d.ts +1 -1
- package/dist/blocks/audit/react/index.js +2 -2
- package/dist/blocks/audit/react/server.d.ts +1 -1
- package/dist/blocks/audit/solid/index.d.ts +2 -2
- package/dist/blocks/audit/svelte/index.d.ts +2 -2
- package/dist/blocks/audit/vue/index.d.ts +2 -2
- package/dist/blocks/billing/index.d.ts +26 -10
- package/dist/blocks/billing/index.js +43 -10
- package/dist/blocks/billing/react/index.d.ts +2 -2
- package/dist/blocks/billing/react/index.js +1 -1
- package/dist/blocks/billing/react/server.d.ts +1 -1
- package/dist/blocks/billing/solid/index.d.ts +2 -2
- package/dist/blocks/billing/solid/index.js +1 -1
- package/dist/blocks/billing/svelte/index.d.ts +2 -2
- package/dist/blocks/billing/svelte/index.js +1 -1
- package/dist/blocks/billing/vue/index.d.ts +2 -2
- package/dist/blocks/billing/vue/index.js +1 -1
- package/dist/blocks/bookings/index.d.ts +3 -3
- package/dist/blocks/bookings/index.js +2 -2
- package/dist/blocks/bookings/react/index.d.ts +1 -1
- package/dist/blocks/bookings/react/index.js +3 -3
- package/dist/blocks/bookings/solid/index.d.ts +2 -2
- package/dist/blocks/bookings/solid/index.js +1 -1
- package/dist/blocks/bookings/svelte/index.d.ts +2 -2
- package/dist/blocks/bookings/svelte/index.js +1 -1
- package/dist/blocks/bookings/vue/index.d.ts +2 -2
- package/dist/blocks/bookings/vue/index.js +1 -1
- package/dist/blocks/bulk/index.d.ts +5 -5
- package/dist/blocks/bulk/index.js +3 -3
- package/dist/blocks/calendar/index.d.ts +3 -3
- package/dist/blocks/calendar/index.js +2 -2
- package/dist/blocks/calendar/react/index.d.ts +1 -1
- package/dist/blocks/calendar/react/index.js +3 -3
- package/dist/blocks/calendar/solid/index.d.ts +2 -2
- package/dist/blocks/calendar/solid/index.js +1 -1
- package/dist/blocks/calendar/svelte/index.d.ts +2 -2
- package/dist/blocks/calendar/svelte/index.js +1 -1
- package/dist/blocks/calendar/vue/index.d.ts +2 -2
- package/dist/blocks/calendar/vue/index.js +1 -1
- package/dist/blocks/catalog/index.d.ts +10 -10
- package/dist/blocks/catalog/index.js +8 -8
- package/dist/blocks/collections/index.d.ts +10 -10
- package/dist/blocks/collections/index.js +6 -6
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/comments/index.js +3 -3
- package/dist/blocks/comments/react/index.d.ts +1 -1
- package/dist/blocks/comments/react/index.js +3 -3
- package/dist/blocks/comments/react/server.d.ts +1 -1
- package/dist/blocks/comments/solid/index.d.ts +2 -2
- package/dist/blocks/comments/solid/index.js +1 -1
- package/dist/blocks/comments/svelte/index.d.ts +2 -2
- package/dist/blocks/comments/svelte/index.js +1 -1
- package/dist/blocks/comments/vue/index.d.ts +2 -2
- package/dist/blocks/comments/vue/index.js +1 -1
- package/dist/blocks/connectors/index.d.ts +4 -4
- package/dist/blocks/connectors/index.js +7 -7
- package/dist/blocks/custom-fields/index.d.ts +6 -6
- package/dist/blocks/custom-fields/index.js +4 -4
- package/dist/blocks/data-lifecycle/index.d.ts +9 -9
- package/dist/blocks/data-lifecycle/index.js +7 -7
- package/dist/blocks/deals/index.d.ts +9 -9
- package/dist/blocks/deals/index.js +9 -9
- package/dist/blocks/documents/index.d.ts +4 -4
- package/dist/blocks/documents/index.js +4 -4
- package/dist/blocks/domains/index.d.ts +7 -7
- package/dist/blocks/domains/index.js +6 -6
- package/dist/blocks/drive/index.d.ts +9 -9
- package/dist/blocks/drive/index.js +7 -7
- package/dist/blocks/employees/index.d.ts +9 -9
- package/dist/blocks/employees/index.js +8 -8
- package/dist/blocks/engagements/index.d.ts +9 -9
- package/dist/blocks/engagements/index.js +5 -5
- package/dist/blocks/entitlements/index.d.ts +7 -7
- package/dist/blocks/entitlements/index.js +2 -2
- package/dist/blocks/entitlements/react/index.d.ts +2 -2
- package/dist/blocks/entitlements/solid/index.d.ts +2 -2
- package/dist/blocks/entitlements/svelte/index.d.ts +2 -2
- package/dist/blocks/entitlements/vue/index.d.ts +2 -2
- package/dist/blocks/flags/index.d.ts +8 -8
- package/dist/blocks/flags/index.js +6 -6
- package/dist/blocks/forms/index.d.ts +9 -9
- package/dist/blocks/forms/index.js +5 -5
- package/dist/blocks/forms/react/index.d.ts +1 -1
- package/dist/blocks/forms/solid/index.d.ts +2 -2
- package/dist/blocks/forms/svelte/index.d.ts +2 -2
- package/dist/blocks/forms/vue/index.d.ts +2 -2
- package/dist/blocks/hiring/index.d.ts +9 -9
- package/dist/blocks/hiring/index.js +6 -6
- package/dist/blocks/identities/index.d.ts +6 -6
- package/dist/blocks/identities/index.js +3 -3
- package/dist/blocks/imports/index.d.ts +6 -6
- package/dist/blocks/imports/index.js +3 -3
- package/dist/blocks/inbox/index.d.ts +5 -5
- package/dist/blocks/inbox/index.js +3 -3
- package/dist/blocks/inbox/react/index.d.ts +2 -2
- package/dist/blocks/inbox/react/server.d.ts +2 -2
- package/dist/blocks/inbox/solid/index.d.ts +2 -2
- package/dist/blocks/inbox/svelte/index.d.ts +2 -2
- package/dist/blocks/inbox/vue/index.d.ts +2 -2
- package/dist/blocks/index.d.ts +8 -8
- package/dist/blocks/index.js +3 -3
- package/dist/blocks/inventory/index.d.ts +9 -9
- package/dist/blocks/inventory/index.js +6 -6
- package/dist/blocks/invoices/index.d.ts +9 -9
- package/dist/blocks/invoices/index.js +8 -8
- package/dist/blocks/jobs/index.d.ts +61 -11
- package/dist/blocks/jobs/index.js +126 -13
- package/dist/blocks/knowledge/index.d.ts +3 -3
- package/dist/blocks/knowledge/index.js +2 -2
- package/dist/blocks/leave/index.d.ts +8 -8
- package/dist/blocks/leave/index.js +5 -5
- package/dist/blocks/memory/index.d.ts +4 -4
- package/dist/blocks/memory/index.js +6 -6
- package/dist/blocks/metrics/index.d.ts +7 -7
- package/dist/blocks/metrics/index.js +5 -5
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/mfa/index.js +1 -1
- package/dist/blocks/mfa/react/index.d.ts +1 -1
- package/dist/blocks/mfa/react/index.js +1 -1
- package/dist/blocks/mfa/react/server.d.ts +1 -1
- package/dist/blocks/mfa/react/server.js +1 -1
- package/dist/blocks/mfa/solid/index.d.ts +2 -2
- package/dist/blocks/mfa/solid/index.js +1 -1
- package/dist/blocks/mfa/svelte/index.d.ts +2 -2
- package/dist/blocks/mfa/svelte/index.js +1 -1
- package/dist/blocks/mfa/vue/index.d.ts +2 -2
- package/dist/blocks/mfa/vue/index.js +1 -1
- package/dist/blocks/notifications/index.d.ts +13 -13
- package/dist/blocks/notifications/index.js +11 -11
- package/dist/blocks/notifications/react/index.d.ts +1 -1
- package/dist/blocks/notifications/react/server.d.ts +1 -1
- package/dist/blocks/notifications/solid/index.d.ts +2 -2
- package/dist/blocks/notifications/svelte/index.d.ts +2 -2
- package/dist/blocks/notifications/vue/index.d.ts +2 -2
- package/dist/blocks/number-sequences/index.d.ts +5 -5
- package/dist/blocks/number-sequences/index.js +2 -2
- package/dist/blocks/oauth-server/index.d.ts +28 -8
- package/dist/blocks/oauth-server/index.js +24 -15
- package/dist/blocks/onboarding/index.d.ts +3 -3
- package/dist/blocks/onboarding/index.js +2 -2
- package/dist/blocks/onboarding/react/index.d.ts +1 -1
- package/dist/blocks/onboarding/react/index.js +2 -2
- package/dist/blocks/onboarding/react/server.d.ts +1 -1
- package/dist/blocks/onboarding/solid/index.d.ts +2 -2
- package/dist/blocks/onboarding/svelte/index.d.ts +2 -2
- package/dist/blocks/onboarding/vue/index.d.ts +2 -2
- package/dist/blocks/orders/index.d.ts +12 -12
- package/dist/blocks/orders/index.js +10 -10
- package/dist/blocks/organizations/index.d.ts +5 -5
- package/dist/blocks/organizations/index.js +4 -4
- package/dist/blocks/organizations/react/index.d.ts +1 -1
- package/dist/blocks/organizations/react/index.js +3 -3
- package/dist/blocks/organizations/react/server.d.ts +1 -1
- package/dist/blocks/organizations/solid/index.d.ts +2 -2
- package/dist/blocks/organizations/solid/index.js +1 -1
- package/dist/blocks/organizations/svelte/index.d.ts +2 -2
- package/dist/blocks/organizations/svelte/index.js +1 -1
- package/dist/blocks/organizations/vue/index.d.ts +2 -2
- package/dist/blocks/organizations/vue/index.js +1 -1
- package/dist/blocks/outbox/index.d.ts +4 -4
- package/dist/blocks/outbox/index.js +5 -5
- package/dist/blocks/parties/index.d.ts +9 -9
- package/dist/blocks/parties/index.js +4 -4
- package/dist/blocks/pipelines/index.d.ts +10 -10
- package/dist/blocks/pipelines/index.js +7 -7
- package/dist/blocks/profiles/index.d.ts +7 -7
- package/dist/blocks/profiles/index.js +5 -5
- package/dist/blocks/promotions/index.d.ts +9 -9
- package/dist/blocks/promotions/index.js +7 -7
- package/dist/blocks/push/index.d.ts +9 -9
- package/dist/blocks/push/index.js +4 -4
- package/dist/blocks/quotes/index.d.ts +9 -9
- package/dist/blocks/quotes/index.js +8 -8
- package/dist/blocks/rank/index.d.ts +6 -6
- package/dist/blocks/rank/index.js +3 -3
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/reactions/index.js +2 -2
- package/dist/blocks/reactions/react/index.d.ts +1 -1
- package/dist/blocks/reactions/react/index.js +2 -2
- package/dist/blocks/reactions/solid/index.d.ts +2 -2
- package/dist/blocks/reactions/solid/index.js +1 -1
- package/dist/blocks/reactions/svelte/index.d.ts +2 -2
- package/dist/blocks/reactions/svelte/index.js +1 -1
- package/dist/blocks/reactions/vue/index.d.ts +2 -2
- package/dist/blocks/reactions/vue/index.js +1 -1
- package/dist/blocks/relations/index.d.ts +8 -8
- package/dist/blocks/relations/index.js +4 -4
- package/dist/blocks/reminders/index.d.ts +10 -10
- package/dist/blocks/reminders/index.js +8 -8
- package/dist/blocks/reviews/index.d.ts +8 -8
- package/dist/blocks/reviews/index.js +5 -5
- package/dist/blocks/rules/index.d.ts +9 -9
- package/dist/blocks/rules/index.js +5 -5
- package/dist/blocks/rules/react/index.d.ts +2 -2
- package/dist/blocks/rules/react/index.js +2 -2
- package/dist/blocks/rules/solid/index.d.ts +2 -2
- package/dist/blocks/rules/svelte/index.d.ts +2 -2
- package/dist/blocks/rules/vue/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.js +1 -1
- package/dist/blocks/saved-views/react/index.d.ts +1 -1
- package/dist/blocks/saved-views/react/index.js +1 -1
- package/dist/blocks/saved-views/react/server.d.ts +1 -1
- package/dist/blocks/saved-views/solid/index.d.ts +2 -2
- package/dist/blocks/saved-views/solid/index.js +1 -1
- package/dist/blocks/saved-views/svelte/index.d.ts +2 -2
- package/dist/blocks/saved-views/svelte/index.js +1 -1
- package/dist/blocks/saved-views/vue/index.d.ts +2 -2
- package/dist/blocks/saved-views/vue/index.js +1 -1
- package/dist/blocks/search/index.d.ts +4 -4
- package/dist/blocks/search/index.js +3 -3
- package/dist/blocks/search/react/index.d.ts +1 -1
- package/dist/blocks/search/react/index.js +2 -2
- package/dist/blocks/search/react/server.d.ts +1 -1
- package/dist/blocks/search/solid/index.d.ts +2 -2
- package/dist/blocks/search/svelte/index.d.ts +2 -2
- package/dist/blocks/search/vue/index.d.ts +2 -2
- package/dist/blocks/service-principals/index.d.ts +8 -8
- package/dist/blocks/service-principals/index.js +6 -6
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +1 -1
- package/dist/blocks/sessions/react/index.d.ts +1 -1
- package/dist/blocks/sessions/react/index.js +1 -1
- package/dist/blocks/sessions/react/server.d.ts +1 -1
- package/dist/blocks/sessions/solid/index.d.ts +2 -2
- package/dist/blocks/sessions/solid/index.js +1 -1
- package/dist/blocks/sessions/svelte/index.d.ts +2 -2
- package/dist/blocks/sessions/svelte/index.js +1 -1
- package/dist/blocks/sessions/vue/index.d.ts +2 -2
- package/dist/blocks/sessions/vue/index.js +1 -1
- package/dist/blocks/settings/index.d.ts +4 -4
- package/dist/blocks/settings/index.js +3 -3
- package/dist/blocks/settings/react/index.d.ts +1 -1
- package/dist/blocks/settings/react/index.js +3 -3
- package/dist/blocks/settings/react/server.d.ts +1 -1
- package/dist/blocks/settings/solid/index.d.ts +2 -2
- package/dist/blocks/settings/solid/index.js +1 -1
- package/dist/blocks/settings/svelte/index.d.ts +2 -2
- package/dist/blocks/settings/svelte/index.js +1 -1
- package/dist/blocks/settings/vue/index.d.ts +2 -2
- package/dist/blocks/settings/vue/index.js +1 -1
- package/dist/blocks/share-links/index.d.ts +7 -7
- package/dist/blocks/share-links/index.js +3 -3
- package/dist/blocks/shared-signals/index.d.ts +8 -8
- package/dist/blocks/shared-signals/index.js +7 -7
- package/dist/blocks/signing-keys/index.d.ts +5 -5
- package/dist/blocks/signing-keys/index.js +47 -21
- package/dist/blocks/sla/index.d.ts +9 -9
- package/dist/blocks/sla/index.js +5 -5
- package/dist/blocks/sso/index.d.ts +7 -7
- package/dist/blocks/sso/index.js +4 -4
- package/dist/blocks/state-machine/index.d.ts +5 -5
- package/dist/blocks/state-machine/index.js +2 -2
- package/dist/blocks/tags/index.d.ts +3 -3
- package/dist/blocks/tags/index.js +2 -2
- package/dist/blocks/tags/react/index.d.ts +1 -1
- package/dist/blocks/tags/react/index.js +3 -3
- package/dist/blocks/tags/react/server.d.ts +1 -1
- package/dist/blocks/tags/solid/index.d.ts +2 -2
- package/dist/blocks/tags/solid/index.js +1 -1
- package/dist/blocks/tags/svelte/index.d.ts +2 -2
- package/dist/blocks/tags/svelte/index.js +1 -1
- package/dist/blocks/tags/vue/index.d.ts +2 -2
- package/dist/blocks/tags/vue/index.js +1 -1
- package/dist/blocks/targets/index.d.ts +7 -7
- package/dist/blocks/targets/index.js +5 -5
- package/dist/blocks/teams/index.d.ts +7 -7
- package/dist/blocks/teams/index.js +3 -3
- package/dist/blocks/templates/index.d.ts +10 -10
- package/dist/blocks/templates/index.js +7 -7
- package/dist/blocks/time-tracking/index.d.ts +9 -9
- package/dist/blocks/time-tracking/index.js +7 -7
- package/dist/blocks/trash/index.d.ts +8 -8
- package/dist/blocks/trash/index.js +4 -4
- package/dist/blocks/undo/index.d.ts +4 -4
- package/dist/blocks/undo/index.js +2 -2
- package/dist/blocks/undo/react/index.d.ts +1 -1
- package/dist/blocks/undo/react/server.d.ts +1 -1
- package/dist/blocks/undo/solid/index.d.ts +2 -2
- package/dist/blocks/undo/svelte/index.d.ts +2 -2
- package/dist/blocks/undo/vue/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +4 -4
- package/dist/blocks/usage/index.js +2 -2
- package/dist/blocks/usage/react/index.d.ts +1 -1
- package/dist/blocks/usage/react/index.js +2 -2
- package/dist/blocks/usage/react/server.d.ts +1 -1
- package/dist/blocks/usage/solid/index.d.ts +2 -2
- package/dist/blocks/usage/svelte/index.d.ts +2 -2
- package/dist/blocks/usage/vue/index.d.ts +2 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +193 -0
- package/dist/blocks/vercel-marketplace/index.js +300 -0
- package/dist/blocks/versions/index.d.ts +8 -8
- package/dist/blocks/versions/index.js +4 -4
- package/dist/blocks/waitlist/index.d.ts +9 -9
- package/dist/blocks/waitlist/index.js +5 -5
- package/dist/blocks/webhooks/index.d.ts +16 -16
- package/dist/blocks/webhooks/index.js +15 -15
- package/dist/blocks/work-items/index.d.ts +9 -9
- package/dist/blocks/work-items/index.js +6 -6
- package/dist/blocks/workflow-builder/index.d.ts +8 -8
- package/dist/blocks/workflow-builder/index.js +2 -2
- package/dist/blocks/workflow-builder/react/index.d.ts +2 -2
- package/dist/blocks/workflow-builder/react/index.js +3 -3
- package/dist/blocks/workflow-builder/solid/index.d.ts +2 -2
- package/dist/blocks/workflow-builder/svelte/index.d.ts +2 -2
- package/dist/blocks/workflow-builder/vue/index.d.ts +2 -2
- package/dist/blocks/workflows/index.d.ts +5 -5
- package/dist/blocks/workflows/index.js +2 -2
- package/dist/blocks/workflows/react/index.d.ts +2 -2
- package/dist/blocks/workflows/react/index.js +2 -2
- package/dist/blocks/workflows/solid/index.d.ts +2 -2
- package/dist/blocks/workflows/svelte/index.d.ts +2 -2
- package/dist/blocks/workflows/vue/index.d.ts +2 -2
- package/dist/{bookings-EJAVAuVz.js → bookings-DQ7P888X.js} +5 -5
- package/dist/{storage-api-B4Ib2Zpo.d.ts → bucket-BBSNDFNH.d.ts} +219 -219
- package/dist/{build-6jmaPAgx.js → build-C-D_vn0U.js} +7 -2
- package/dist/{build-Cm0T5MVG.js → build-CT6SPZkI.js} +1 -1
- package/dist/{calendar-1J1E5dLq.js → calendar-eqyuQAoy.js} +7 -7
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/chat-sdk/index.js +3 -3
- package/dist/chat-sdk/react/index.d.ts +2 -2
- package/dist/chat-sdk/react/server.d.ts +2 -2
- package/dist/cli/{add-CUS0AiBh.js → add-B5V6uokQ.js} +5 -5
- package/dist/cli/{add-BhI_nXAo.js → add-BcOHumvq.js} +2 -2
- package/dist/cli/add-DzRJEHzD.js +1 -0
- package/dist/cli/adopt-DDy50yz9.js +1 -0
- package/dist/cli/{adopt-DwcU6CJd.js → adopt-Ht34C3QD.js} +6 -6
- package/dist/cli/{apply-DBXC0Z5I.js → apply-4BmTvj2A.js} +6 -6
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-BXeqIzWN.js → blocks-bBI050w6.js} +1 -1
- package/dist/cli/{blocks-B15ltTFn.js → blocks-jIvPqPtw.js} +1 -1
- package/dist/cli/{cache-CPBYJAkb.js → cache-CVJmPGpd.js} +8 -3
- package/dist/cli/{catalog-Di15TkM2.js → catalog-Cm6BtquM.js} +2 -1
- package/dist/cli/{codemod-CrI33UR2.js → codemod-vsknM1Ue.js} +2 -2
- package/dist/cli/{command-D_HI1mp1.js → command-DLCZeHdo.js} +23 -0
- package/dist/cli/{completion-DzYo025z.js → completion-BAm8SwGQ.js} +2 -2
- package/dist/cli/{completion-Vry-Wjw8.js → completion-CEZ-c3ja.js} +1 -1
- package/dist/cli/{completion-En43UcyJ.js → completion-D2BObVth.js} +2 -2
- package/dist/cli/{config-Bi_UBxXl.js → config-C4e_RrmL.js} +17 -5
- package/dist/cli/{config-DyJgo2d9.js → config-CC5DXgKX.js} +1 -1
- package/dist/cli/{config-DsqQr5z3.js → config-CynctXbc.js} +1 -1
- package/dist/cli/db-BxMRcHrY.js +90 -0
- package/dist/cli/{detect-BeLVeNpA.js → detect-DQsVeBHg.js} +1 -1
- package/dist/cli/{doctor-wACp5w6N.js → doctor-D47sFjh9.js} +222 -47
- package/dist/cli/{emit-j0zZ6NE_.js → emit-56LAG_Px.js} +11 -5
- package/dist/cli/{env-2v9JrxSr.js → env--JFvv45k.js} +3 -3
- package/dist/cli/{env-Ch99nTQw.js → env-B7TWPEt0.js} +1 -1
- package/dist/cli/{env-Cf5OTqbK.js → env-C8R7Nf0a.js} +2 -1
- package/dist/cli/env-D-O91RK1.js +1 -0
- package/dist/cli/{gen-BhquLu7l.js → gen-D2E8osBE.js} +11 -11
- package/dist/cli/index.d.ts +3 -1
- package/dist/cli/index.js +10 -9
- package/dist/cli/{init-BwLTO6XG.js → init-Cx7DDAdQ.js} +7 -7
- package/dist/cli/{introspect-B-gXAIqs.js → introspect-Ck7aa6v0.js} +3 -3
- package/dist/cli/{keys-hwtdwdkT.js → keys-6ufnWeZl.js} +2 -2
- package/dist/cli/{live-BFfYoE0_.js → live-CLxJNC0r.js} +2 -2
- package/dist/cli/{mcp-Bdm2oGmL.js → mcp-BVWvEoKo.js} +4 -4
- package/dist/cli/{metadata-DikbSOE0.js → metadata-BRywyPvv.js} +2 -2
- package/dist/cli/{migration-safety-LaGVPPuD.js → migration-safety-DjVpz2D6.js} +1 -1
- package/dist/cli/{module-migration-CLkZ8jpw.js → module-migration-CPhuiY8C.js} +1 -1
- package/dist/cli/{moved-B7UFO_OM.js → moved-BmtFuMK3.js} +1 -1
- package/dist/cli/{parse-CwV5a6dA.js → parse-ksnw4phM.js} +1 -1
- package/dist/cli/{preset-DQ1DxMtI.js → preset-B1o6KbFp.js} +1 -1
- package/dist/cli/{run-DliGNdjI.js → run-Bb8Nn8Ax.js} +26 -5
- package/dist/cli/{run-BLJj7SuM.js → run-nX5ffQM_.js} +42 -41
- package/dist/cli/{scaffold-6bv24GSP.js → scaffold-DcXr4z7M.js} +3 -3
- package/dist/cli/{scaffold-DUz5fa-k.js → scaffold-fO-FJGoO.js} +1 -1
- package/dist/cli/{seed-CIJaL1Ao.js → seed-BmOC6_iz.js} +6 -5
- package/dist/cli/seed-C_BmN498.js +1 -0
- package/dist/cli/{shared-CNcvDOLt.js → shared-DKLuA1Tp.js} +2 -2
- package/dist/cli/{skills-CaxIQhzW.js → skills-CUx7S0bk.js} +1 -1
- package/dist/cli/{snapshot-Dvcx0BSl.js → snapshot-ClgWGd-b.js} +4 -4
- package/dist/cli/{source-args-BNhagtpw.js → source-args-BDiUhsH8.js} +8 -2
- package/dist/cli/{spec-BewE6r6J.js → spec-CM7iyRnE.js} +3 -3
- package/dist/cli/{spec-DRDaIq8f.js → spec-DjHpWZJM.js} +1 -1
- package/dist/cli/{sql-BCQt5TDs.js → sql-C4ymac2h.js} +2 -2
- package/dist/cli/{sql-BBkchli4.js → sql-ybcjbz20.js} +5 -5
- package/dist/cli/{stack-status-LeEoCtV1.js → stack-status-Cb_D79ZR.js} +2 -2
- package/dist/cli/{supabase-toml-DjLgBYEo.js → supabase-toml-BC5sNVKU.js} +1 -1
- package/dist/cli/{sync-CJ-ft-tl.js → sync-DBvknfOK.js} +2 -2
- package/dist/cli/{version-D1wM9DNb.js → version-CUKjFbNd.js} +1 -1
- package/dist/cli/{write-Dp1XlAVM.js → write-VZljwoTB.js} +2 -2
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +4 -4
- package/dist/client/native/index.d.ts +6 -6
- package/dist/client/native/index.js +4 -4
- package/dist/{client-CsRpAyIv.d.ts → client-5YAtJjyT.d.ts} +2 -2
- package/dist/{client-C3dLIsJv.d.ts → client-9ZOirdtr.d.ts} +9 -9
- package/dist/{client-C597NIlL.d.ts → client-B4a7f5ma.d.ts} +8 -8
- package/dist/{client-Dk8gY9hi.d.ts → client-B9_8yzct.d.ts} +2 -2
- package/dist/{client-fpvgtQKE.js → client-BDO6i2Oe.js} +2 -2
- package/dist/{client-B_r4denm.d.ts → client-BNy-K6XT.d.ts} +3 -3
- package/dist/{client-WXJwUhr1.d.ts → client-BXv09wO1.d.ts} +5 -5
- package/dist/{client-B9H4BZJh.d.ts → client-B_vHBwB6.d.ts} +12 -12
- package/dist/{client-BtBkVSk2.d.ts → client-Bovn6-M9.d.ts} +7 -7
- package/dist/{client-9zIKhf5D.d.ts → client-BqoYuTK3.d.ts} +3 -3
- package/dist/{client-B7LCXnnY.d.ts → client-C3rmP3b0.d.ts} +6 -6
- package/dist/{client-Diu2lPbg.d.ts → client-CBQ2TV0r.d.ts} +7 -7
- package/dist/{client-CpMv4-v5.d.ts → client-CCGSn7m5.d.ts} +4 -4
- package/dist/{client-D0502FgY.js → client-CFKONrrU.js} +4 -4
- package/dist/{client-CvITjt-9.js → client-CHR8IBNG.js} +10 -2
- package/dist/{client-D9zBl9PT.d.ts → client-CJT3xiuI.d.ts} +7 -7
- package/dist/{client-LVa6yC9u.d.ts → client-CNh-pjkT.d.ts} +5 -5
- package/dist/{client-BLKpcAs0.d.ts → client-CXTDJCIs.d.ts} +3 -3
- package/dist/{client-CWs3X4g1.js → client-C_-NZRrg.js} +1 -1
- package/dist/{client-kI6vCKVI.js → client-CcPxbHeT.js} +2 -2
- package/dist/{client-B5nnqDmz.d.ts → client-CeH7vd-g.d.ts} +2 -2
- package/dist/{client-AxwF58Eo.js → client-CosiUrUb.js} +1 -1
- package/dist/{client-BO9fQgBB.d.ts → client-CrZKZVbb.d.ts} +4 -4
- package/dist/{client-D727oIVC.js → client-D7T7OLiw.js} +4 -4
- package/dist/{client-DR_YEGnc.d.ts → client-DLz68Qga.d.ts} +2 -2
- package/dist/{client-Cgxj38RS.d.ts → client-DarDYaQj.d.ts} +9 -9
- package/dist/{client-kKdkLGPB.d.ts → client-DbxvLC9Y.d.ts} +2 -2
- package/dist/{client-BaynD5V-.d.ts → client-Dft5Vq6m.d.ts} +7 -7
- package/dist/{client-13Ii0c0P.js → client-DyfWYU8S.js} +2 -2
- package/dist/{client-iB5axfa0.js → client-Dz1jWDA2.js} +3 -3
- package/dist/{client-jvtwGFy4.js → client-DzTtOVRR.js} +2 -2
- package/dist/{client-ByGlM0YF.d.ts → client-GdJH4XJM.d.ts} +4 -4
- package/dist/{client-Fi8CoJcs.d.ts → client-QvuCfO4b.d.ts} +13 -13
- package/dist/{client-CFeWXNXy.js → client-UnM3e32l.js} +2 -2
- package/dist/{client-DG7FwgZD.js → client-arq4daO_.js} +1 -1
- package/dist/{client-DZXFDaQE.d.ts → client-cWUWrgis.d.ts} +6 -6
- package/dist/{client-CmHsfDHU.js → client-eCDPjOMo.js} +6 -6
- package/dist/{client-CjyTNdt1.d.ts → client-eCtwzCbQ.d.ts} +5 -5
- package/dist/{client-B0rvMvA8.d.ts → client-ehjQ2tIT.d.ts} +3 -3
- package/dist/{client-rp7YfOg1.js → client-iaFm0aVf.js} +1 -1
- package/dist/{cloud-event-bwsBwVNG.d.ts → cloud-event-DXkNoI6v.d.ts} +1 -1
- package/dist/{codecs-C7E_OoiC.js → codecs-D-rpDifG.js} +3 -3
- package/dist/{codecs-Bm46sVxr.d.ts → codecs-RwFNK8Jh.d.ts} +2 -2
- package/dist/{codegen-2m4SKVdi.d.ts → codegen-C64C0NZG.d.ts} +13 -2
- package/dist/{comments-N7Bi-oTW.js → comments-CV5O8q50.js} +5 -5
- package/dist/commerce/index.d.ts +2 -2
- package/dist/commerce/index.js +6 -6
- package/dist/{compiler-C6E3WwIi.d.ts → compiler-D_Gjpw_O.d.ts} +2 -2
- package/dist/{compose-CO_cljl3.js → compose-CP0ss-cQ.js} +3 -3
- package/dist/{composite-DMMA_Whg.d.ts → composite-B1Mmo4TU.d.ts} +13 -13
- package/dist/{composite-CPV0thLs.js → composite-BFatHqOU.js} +3 -3
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.js +2 -2
- package/dist/{config-C4RQDF6t.js → config-DHhQmmuD.js} +22 -1
- package/dist/{config-CkyahUjo.js → config-NQmw_wsk.js} +1 -1
- package/dist/{connector-Cp8CqssJ.d.ts → connector-D9NMNkv0.d.ts} +1 -1
- package/dist/{connectors-CZdfZcIg.d.ts → connectors-CR9FJGzV.d.ts} +7 -7
- package/dist/{context-BDDgjoxz.js → context-BiwgsycK.js} +1 -1
- package/dist/{context-CCfX2szU.d.ts → context-Cv3KlxWY.d.ts} +2 -2
- package/dist/{controller-CCb9tHw_.d.ts → controller-BBXX1RMw.d.ts} +1 -1
- package/dist/cors-h_v7TPxl.js +24 -0
- package/dist/cors-kLq6VM06.d.ts +15 -0
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +4 -4
- package/dist/create/supabase/index.d.ts +1 -1
- package/dist/credentials/index.d.ts +5 -5
- package/dist/credentials/index.js +8 -8
- package/dist/{cron-CUaKTjWC.js → cron-BHdXZFsJ.js} +1 -1
- package/dist/{cron-route-BsgbJ-g4.js → cron-route-mTvWhork.js} +3 -3
- package/dist/{define-CMcokcZz.js → define-Bu1v781m.js} +82 -16
- package/dist/{define-DXTC706J.d.ts → define-M_r1d2AT.d.ts} +96 -43
- package/dist/{define-block-BlHQxDIQ.d.ts → define-block-CPyJ95rq.d.ts} +7 -7
- package/dist/{delegation-Dt8hMJWu.js → delegation-B7uNnz6z.js} +2 -2
- package/dist/{documents-BYM2viS0.d.ts → documents-CqtVr2fg.d.ts} +4 -4
- package/dist/edge/index.d.ts +27 -38
- package/dist/edge/index.js +12 -32
- package/dist/elysia/index.d.ts +1 -1
- package/dist/elysia/index.js +1 -1
- package/dist/{embeddings-Da0w4A_0.d.ts → embeddings-lTUwzvW4.d.ts} +1 -1
- package/dist/{ended-EcTtzzQJ.d.ts → ended-DQmwYosO.d.ts} +2 -2
- package/dist/{entitlements-AmYp2KHX.js → entitlements-C8UvF1Rz.js} +3 -3
- package/dist/{entitlements-Bn7BTnbg.d.ts → entitlements-DgkeStXd.d.ts} +2 -2
- package/dist/{envelope--7d0Q3Se.js → envelope-C4Z55LKW.js} +4 -4
- package/dist/{errors-8i6tSICm.js → errors-BV1SKTVs.js} +15 -1
- package/dist/{errors-7MqM7bbV.js → errors-D3BR8iUk.js} +2 -2
- package/dist/{escape-like-AUEPn-C5.d.ts → escape-like-B339PlP-.d.ts} +1 -1
- package/dist/eve/index.d.ts +5 -5
- package/dist/eve/index.js +2 -2
- package/dist/{eve-BcEr_hPo.d.ts → eve-C_Onyk_j.d.ts} +2 -2
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-CtAHxPal.d.ts → events-P3raDX2E.d.ts} +3 -3
- package/dist/{executor-Cex-1PFp.js → executor-BiB0wMBA.js} +4 -4
- package/dist/{executor-BicyP8Nl.d.ts → executor-BnMC0lj3.d.ts} +2 -2
- package/dist/{executor-CIxyatuB.d.ts → executor-CvsNcQsa.d.ts} +3 -3
- package/dist/{executor-aKUo_Xyb.js → executor-CxGQiQN_.js} +3 -3
- package/dist/{executor-DzJQVTE2.d.ts → executor-D1hECPGG.d.ts} +1 -1
- package/dist/{executor-CHRwEYqt.d.ts → executor-DfdC00xr.d.ts} +1 -1
- package/dist/expo/index.d.ts +11 -9
- package/dist/expo/index.js +42 -7
- package/dist/expo-sqlite/index.d.ts +3 -3
- package/dist/expo-sqlite/index.js +2 -2
- package/dist/{field-errors-nFnYWvB0.d.ts → field-errors-DmJICh93.d.ts} +7 -7
- package/dist/{filter-evaluate-CEm52E5s.d.ts → filter-evaluate-BJcaL3o1.d.ts} +1 -1
- package/dist/{filter-query-D3wOD1P_.d.ts → filter-query-Bc_Qa8V_.d.ts} +1 -1
- package/dist/{flags-Dz5PIzFU.d.ts → flags-6KK6Vqkr.d.ts} +3 -3
- package/dist/{flags-CtSrkVuW.js → flags-aUR7Rod6.js} +1 -1
- package/dist/flags-sdk/index.d.ts +1 -1
- package/dist/flags-sdk/index.js +2 -2
- package/dist/{framework-Cfm0IspZ.js → framework-Ch8bMmQY.js} +2 -2
- package/dist/{framework-C2oL4OaO.d.ts → framework-D6IFkuAg.d.ts} +7 -7
- package/dist/{function-contract-B4c0XuTU.d.ts → function-contract-DWqFl_QO.d.ts} +1 -1
- package/dist/{gateway-CJL6ZG17.d.ts → gateway-Bq_tWwxE.d.ts} +4 -4
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/index.js +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/h3/v1/index.js +1 -1
- package/dist/{hmac-DCud0myt.js → hmac-BgpThYQW.js} +2 -1
- package/dist/hono/index.d.ts +34 -25
- package/dist/hono/index.js +18 -12
- package/dist/{http-BF-V0CUF.js → http-C7trc6uN.js} +2 -2
- package/dist/{impersonation-CDeCzZP6.js → impersonation-DxU6yHJV.js} +1 -1
- package/dist/{inbox-BaUJgHOF.d.ts → inbox-Du5aPwKB.d.ts} +4 -4
- package/dist/{index-DL8z_oDo.d.ts → index-BpyBH5O2.d.ts} +4 -4
- package/dist/{index-gXy3R1Uq.d.ts → index-Bq409YZn.d.ts} +1 -1
- package/dist/{index-MCXVzkXs.d.ts → index-CEcDqDhc.d.ts} +5 -5
- package/dist/{index-Ck4oK5vV.d.ts → index-CK0Sxx57.d.ts} +8 -8
- package/dist/{index-Cckxs8IE.d.ts → index-Csi8jD-m.d.ts} +3 -3
- package/dist/{index-8xwnaWHY.d.ts → index-D8yhOz_4.d.ts} +4 -4
- package/dist/{index-D1kMyNc7.d.ts → index-DHReeV74.d.ts} +2 -2
- package/dist/{index-DTQbC3CW.d.ts → index-DgobXyil.d.ts} +1 -1
- package/dist/{index-BurdFUXr.d.ts → index-F6XTTkC9.d.ts} +7 -7
- package/dist/{index-DMONTkSf.d.ts → index-k-rrfG1g.d.ts} +2 -2
- package/dist/{index-DcijDfh1.d.ts → index-qCG78-Rf.d.ts} +4 -4
- package/dist/{index-Co0YsJTk.d.ts → index-wTnPJUhv.d.ts} +2 -2
- package/dist/index.d.ts +13 -13
- package/dist/index.js +10 -10
- package/dist/jwks-cache-C4rA69hD.js +49 -0
- package/dist/{jws-milwSg7E.js → jws-CwBB5QAT.js} +5 -3
- package/dist/{kit-BlcEFQql.d.ts → kit-BeZX2pR_.d.ts} +4 -4
- package/dist/{kit-gqwkVhGU.js → kit-LTbHrWWD.js} +6 -6
- package/dist/{knowledge-CSNKLX-s.js → knowledge-BbdXOJvY.js} +4 -4
- package/dist/{knowledge-BYtgA52P.d.ts → knowledge-CRk1jOAJ.d.ts} +6 -6
- package/dist/lint/index.d.ts +1 -1
- package/dist/lint/index.js +47 -2
- package/dist/list/index.d.ts +3 -3
- package/dist/{list-query-DWJIiVz_.d.ts → list-query-FhFXzObg.d.ts} +5 -5
- package/dist/mcp/index.d.ts +21 -21
- package/dist/mcp/index.js +10 -10
- package/dist/mcp/sdk/index.d.ts +17 -17
- package/dist/mcp/sdk/index.js +5 -5
- package/dist/{messages-Cx4ttLJJ.js → messages-D5nIfCCf.js} +2 -2
- package/dist/{mfa-DtflCXEt.d.ts → mfa-YzkRjNad.d.ts} +1 -1
- package/dist/{model-messages-CTu-6kBu.js → model-messages-CIdqdUtk.js} +1 -1
- package/dist/{money-codec-DCGgzO26.js → money-codec-C21MWw50.js} +2 -2
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/nestjs/index.js +1 -1
- package/dist/next/index.d.ts +34 -29
- package/dist/next/index.js +14 -14
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +1 -1
- package/dist/{onboarding-viTTNWUp.js → onboarding-Du6kCmhF.js} +2 -2
- package/dist/openapi/index.d.ts +2 -2
- package/dist/openapi/index.js +2 -2
- package/dist/{operations-BtuQRwTJ.d.ts → operations-DQCWqkt3.d.ts} +1 -1
- package/dist/{options-CZk_fbbg.js → options-BCrqe3HH.js} +2 -1
- package/dist/options-CEMawFrr.js +5 -0
- package/dist/options-RKYdmIdV.js +5 -0
- package/dist/{options-CbSOj53r.d.ts → options-ZQzNKKBS.d.ts} +1 -1
- package/dist/{organizations-Bxrm32IG.js → organizations-CO2qg44D.js} +6 -6
- package/dist/orpc/index.d.ts +18 -18
- package/dist/orpc/index.js +7 -7
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +5 -5
- package/dist/{outbox-BCGHl9X6.d.ts → outbox-njgoVzFA.d.ts} +6 -6
- package/dist/{payments-h45bswA-.js → payments-CzjCdIcz.js} +1 -1
- package/dist/{plugin-D5OIaP93.d.ts → plugin-D-95Q0w0.d.ts} +3 -3
- package/dist/plugins/actor/index.d.ts +1 -1
- package/dist/plugins/actor/index.js +1 -1
- package/dist/plugins/rules/index.d.ts +2 -2
- package/dist/plugins/rules/index.js +1 -1
- package/dist/plugins/soft-delete/index.d.ts +3 -3
- package/dist/plugins/soft-delete/index.js +2 -2
- package/dist/plugins/tenant/index.d.ts +2 -2
- package/dist/plugins/tenant/index.js +2 -2
- package/dist/plugins/timestamps/index.d.ts +1 -1
- package/dist/plugins/timestamps/index.js +1 -1
- package/dist/plugins/validation/index.d.ts +2 -2
- package/dist/plugins/validation/index.js +3 -3
- package/dist/{pool-BBi4mot3.d.ts → pool-cM3rpOQr.d.ts} +3 -3
- package/dist/{pool-errors-C94tPR_G.js → pool-errors-CGqvTQOC.js} +2 -2
- package/dist/{ports-Dcnuo3HT.d.ts → ports-DCAcG26M.d.ts} +2 -2
- package/dist/{ports-B53rB7zg.d.ts → ports-DGe1vzF2.d.ts} +10 -10
- package/dist/{ports-Bcdppx0G.js → ports-aALjot-D.js} +11 -7
- package/dist/postgres/index.d.ts +5 -5
- package/dist/postgres/index.js +3 -3
- package/dist/{postgrest-D6fEMsp4.d.ts → postgrest-CjnO1hbr.d.ts} +1 -1
- package/dist/powersync/index.d.ts +4 -4
- package/dist/powersync/index.js +4 -4
- package/dist/powersync/react/index.d.ts +3 -3
- package/dist/powersync/react/index.js +1 -1
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +2 -2
- package/dist/{preset-BBrL6_Ln.js → preset-Cqwlwx6G.js} +1 -1
- package/dist/{problem-CEjyhV5T.d.ts → problem-DCDIQiTA.d.ts} +1 -1
- package/dist/{problem-pIiL3WbE.js → problem-JRCohp1j.js} +1 -1
- package/dist/{provider-DKh2xFZb.js → provider-C-Ti38J6.js} +1 -1
- package/dist/{provider-CQ1SrhLa.d.ts → provider-CNs0Jx0I.d.ts} +2 -2
- package/dist/{push-token-CDMgWT13.d.ts → push-token-D2sDxSNN.d.ts} +1 -1
- package/dist/query/index.d.ts +2 -2
- package/dist/{rank-result-Dngpt2n5.d.ts → rank-result-BcYfDA0x.d.ts} +1 -1
- package/dist/{rank-result-oUF1DYBm.js → rank-result-DtQuIvob.js} +2 -2
- package/dist/{rate-limit-BtbddDnE.js → rate-limit-DVZ7qIzW.js} +1 -1
- package/dist/{rate-limit-ByfWNX9N.js → rate-limit-I3AncmM8.js} +8 -8
- package/dist/{rate-limit-C88MEAOm.d.ts → rate-limit-c6c1mB6R.d.ts} +2 -2
- package/dist/react/index.d.ts +8 -8
- package/dist/react/index.js +2 -2
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/native/index.js +1 -1
- package/dist/react/server.d.ts +9 -9
- package/dist/react/server.js +2 -2
- package/dist/react/session.d.ts +2 -2
- package/dist/{react-BcKACxsj.js → react-DzukE6Wp.js} +3 -3
- package/dist/react-router/index.d.ts +11 -11
- package/dist/react-router/index.js +6 -6
- package/dist/{read-set-PWiJfv6S.js → read-set-DeesfeL_.js} +2 -2
- package/dist/realtime/index.d.ts +6 -6
- package/dist/realtime/index.js +2 -2
- package/dist/{refusal-Ch-u9dVd.js → refusal-CFpfmjcS.js} +4 -4
- package/dist/{refusal-Bdr1k47u.d.ts → refusal-CufncwaN.d.ts} +1 -1
- package/dist/{resolve-7atr-wWr.d.ts → resolve-Bqb8TMTt.d.ts} +3 -3
- package/dist/{resolve-CAR9oaKW.js → resolve-f8QNuYI3.js} +5 -4
- package/dist/{resource-CHGOmg1O.js → resource-Bdkqi8jo.js} +6 -6
- package/dist/{resource-DxcgtHq6.d.ts → resource-DYEtc-KN.d.ts} +1 -1
- package/dist/{resource-execute-C45ICrN9.d.ts → resource-execute-ruP2L1op.d.ts} +2 -2
- package/dist/{resource-types-CC59gMHE.d.ts → resource-types-CGr0BbL-.d.ts} +6 -6
- package/dist/{resources-B71O7EVQ.d.ts → resources-BiQpsM6O.d.ts} +2 -2
- package/dist/{resources-B7htXQeg.js → resources-Ck7itNeX.js} +3 -3
- package/dist/{respond-Dpx48ATq.js → respond-Bhp3G__q.js} +5 -5
- package/dist/{respond-Cdg5ibH5.d.ts → respond-CEBC6KUX.d.ts} +3 -3
- package/dist/{result-Cj3yWhjH.d.ts → result-BREt7qOh.d.ts} +15 -1
- package/dist/{result-COkvI9t5.js → result-DIeYscA3.js} +1 -1
- package/dist/{rrule-zBh3CA1r.js → rrule-Cw4x4Pf_.js} +1 -1
- package/dist/{rules-4of_Fq-6.js → rules-BiQgmZ_U.js} +4 -4
- package/dist/{sales-lines-CymdiwYd.js → sales-lines-CQ1iC6QM.js} +3 -3
- package/dist/{sales-shared-DjCuN8xG.js → sales-shared-CDSytDEn.js} +2 -2
- package/dist/{search-LbjCylX5.js → search-ZP13UTT4.js} +3 -3
- package/dist/server/index.d.ts +26 -26
- package/dist/server/index.js +19 -64
- package/dist/{server-types-fXwJoFjt.d.ts → server-types-BKN_R4Ws.d.ts} +44 -26
- package/dist/{session-Djo5t4KQ.d.ts → session-CwpfitmI.d.ts} +11 -11
- package/dist/{settings-DxXfDUmh.js → settings-BiHDFglz.js} +5 -5
- package/dist/{shared-9B02lczf.js → shared-C9zvURqC.js} +1 -1
- package/dist/{shared-as0EG51f.js → shared-D5Djh43x.js} +1 -1
- package/dist/{sign-in-D0xN6E_l.js → sign-in-z2BaBdps.js} +10 -3
- package/dist/{signatures-BMdJ7neI.d.ts → signatures-BXlDXV3D.d.ts} +1 -1
- package/dist/{signatures-C9CGYZS1.js → signatures-CeIoAelK.js} +5 -5
- package/dist/{signers-BjSgNAXP.d.ts → signers-BwKV-9S6.d.ts} +6 -6
- package/dist/{signing-keys-Ccr86Y2C.d.ts → signing-keys-v2MRYkDF.d.ts} +20 -5
- package/dist/solid/index.d.ts +8 -8
- package/dist/solid/index.js +1 -1
- package/dist/{solid-controller-CZrt1Tg6.d.ts → solid-controller-Uqi5ef6z.d.ts} +1 -1
- package/dist/solid-start/index.d.ts +11 -11
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +3 -3
- package/dist/spec/index.js +3 -3
- package/dist/sql/index.d.ts +4 -4
- package/dist/sql/index.js +2 -2
- package/dist/{sql-BQshMgmB.js → sql-BPKRNutj.js} +3 -3
- package/dist/{sql-CgTZOQZ7.js → sql-DCfCbS2j.js} +1919 -698
- package/dist/{sso-CwAnve68.js → sso-BaU_6ePE.js} +4 -4
- package/dist/{sso-B5ZoEsXE.d.ts → sso-Bu0mVh0V.d.ts} +4 -4
- package/dist/ssr/index.d.ts +4 -4
- package/dist/ssr/index.js +3 -3
- package/dist/{standard-DZmwmIhV.js → standard-B1BigegP.js} +2 -2
- package/dist/{standard-C3_AAF3g.d.ts → standard-BcUQuUgu.d.ts} +1 -1
- package/dist/{stats-CUhqw6Ev.js → stats-Di5VAsYU.js} +4 -4
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +6 -6
- package/dist/{store-B5qYKsTh.d.ts → store-B18bIvKc.d.ts} +1 -1
- package/dist/streams/index.d.ts +3 -3
- package/dist/streams/index.js +3 -3
- package/dist/streams/redis/index.d.ts +1 -1
- package/dist/streams/redis/index.js +2 -2
- package/dist/{subject-readers-81xiWh4M.d.ts → subject-readers-BNQzBDN9.d.ts} +2 -2
- package/dist/{subject-readers-DDyPTIOr.js → subject-readers-BpwUFJtp.js} +1 -1
- package/dist/{support-BsqhV6jP.js → support-BAhTqI7y.js} +8 -8
- package/dist/{support-view-CznLe4jq.d.ts → support-view-IRnDLuGN.d.ts} +1 -1
- package/dist/svelte/index.d.ts +7 -7
- package/dist/svelte/index.js +1 -1
- package/dist/{svelte-controller-DDbju9CW.d.ts → svelte-controller-BQOIXWEw.d.ts} +1 -1
- package/dist/sveltekit/index.d.ts +13 -13
- package/dist/sveltekit/index.js +7 -7
- package/dist/{tags-7NHyD1P8.d.ts → tags-AUpl4Ob9.d.ts} +1 -1
- package/dist/{tags-DGldvcA4.js → tags-BqgaxCnv.js} +5 -5
- package/dist/tanstack-db/index.d.ts +2 -2
- package/dist/tanstack-db/supabase/index.d.ts +2 -2
- package/dist/tanstack-start/index.d.ts +11 -11
- package/dist/tanstack-start/index.js +5 -5
- package/dist/{tax-DDZUB_oc.d.ts → tax-DMWDUzKt.d.ts} +2 -2
- package/dist/{tax-DZDpMMRw.js → tax-wm9g2mD2.js} +2 -2
- package/dist/{tee-CdRV1tcj.js → tee-Cw-iJAWL.js} +1 -1
- package/dist/{template-DdgYjIZ5.js → template-Dw3dTmKe.js} +1 -1
- package/dist/{temporal-required-DqRzr7i0.js → temporal-required-nfZ87U-0.js} +1 -1
- package/dist/{tenant-DW_GmsW4.d.ts → tenant-BNp3kBAG.d.ts} +2 -2
- package/dist/testing/index.d.ts +132 -56
- package/dist/testing/index.js +251 -120
- package/dist/{topic-Dgs-eSYQ.d.ts → topic-1WTkDnPd.d.ts} +20 -6
- package/dist/{topic-DB-1YTMj.js → topic-mee21pux.js} +85 -17
- package/dist/{types-DOaUIJxW.d.ts → types-B4zhT6dq.d.ts} +5 -5
- package/dist/{types-P1S1cj6N.d.ts → types-BEEFkNFY.d.ts} +7 -7
- package/dist/{types-DZj8CZMH.d.ts → types-Bq64h5nY.d.ts} +10 -10
- package/dist/{types-BO8lVTun.d.ts → types-BrpW5ixT.d.ts} +8 -1
- package/dist/{types-C_GN-4ed.d.ts → types-DDQ-Rsep.d.ts} +5 -5
- package/dist/{types-DM8q3IOr.d.ts → types-DO9xWsGC.d.ts} +6 -6
- package/dist/{undo-0qM13zul.js → undo-B5LgpGLy.js} +4 -4
- package/dist/{undo-D42sPjCf.d.ts → undo-BsdYRox7.d.ts} +3 -3
- package/dist/{usage-CnQHSM_r.d.ts → usage-C504GF55.d.ts} +23 -5
- package/dist/{usage-BrJGPvCq.js → usage-DdqT13_X.js} +14 -3
- package/dist/{vault-EnOQJWjn.d.ts → vault-DR2-zOjz.d.ts} +3 -3
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/vercel-connect/index.js +2 -2
- package/dist/{verify-3NLjUIER.d.ts → verify-BucYsoKq.d.ts} +4 -4
- package/dist/{verify-C9D_jjsQ.js → verify-DnU-uWU2.js} +5 -5
- package/dist/{version-Bxj_xcUY.js → version-TXpQEfh1.js} +1 -1
- package/dist/{view-SuASaomx.d.ts → view-Bf7e07rQ.d.ts} +3 -3
- package/dist/{view-DZ63nqwt.js → view-CYX1wsgp.js} +3 -3
- package/dist/vue/index.d.ts +8 -8
- package/dist/vue/index.js +1 -1
- package/dist/{vue-controller-D_ohttBZ.d.ts → vue-controller-Cav6Wt_r.d.ts} +1 -1
- package/dist/{watch-Blj1mQ9n.js → watch-BAuIzC2r.js} +1 -1
- package/dist/{watch-D1wwzZ04.d.ts → watch-ry70AEm6.d.ts} +6 -6
- package/dist/{watch-topic-D-rpUg5n.d.ts → watch-topic-DWHy63ZJ.d.ts} +1 -1
- package/dist/{wire-DEY0ajW9.js → wire-BCJxCtHS.js} +2 -2
- package/dist/{workflow-builder-C5DBN7yq.js → workflow-builder-CynLqc6H.js} +7 -7
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/builder/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/index.js +1 -1
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +6 -6
- package/dist/{workflow-sdk-Di5pmCAu.d.ts → workflow-sdk-DM7T3sF4.d.ts} +3 -3
- package/dist/{workflow-sdk-vjDWlnfX.js → workflow-sdk-QnnzIQRc.js} +2 -2
- package/dist/{workflow-sdk-world-DPMdBfzn.js → workflow-sdk-world-QzcxaaCD.js} +1 -1
- package/dist/{workflows-DJXoxDZH.d.ts → workflows-DQBCzrHC.d.ts} +4 -4
- package/dist/{workflows-DzdX28KN.js → workflows-H9qJge3f.js} +5 -5
- package/dist/yjs/index.d.ts +3 -3
- package/dist/yjs/index.js +3 -3
- package/package.json +10 -1
- package/schemas/config-v1.json +46 -2
- package/schemas/doctor-report-v1.json +3 -0
- package/schemas/snapshot-v2.json +4 -0
- package/dist/cli/add-ojbcMxyp.js +0 -1
- package/dist/cli/adopt-D0ASVx2G.js +0 -1
- package/dist/cli/env-DkBe35Rv.js +0 -1
- package/dist/cli/seed-ClGWseBT.js +0 -1
|
@@ -2,7 +2,7 @@ import { n as CliError } from "./errors-Caiz_0so.js";
|
|
|
2
2
|
import { t as byCodePoint } from "./compare-BmIWVEui.js";
|
|
3
3
|
import { s as restrictSchemas, u as tsTypeOf } from "./typegen--TfvOPLh.js";
|
|
4
4
|
import { t as isRecord } from "./guards-CUlDNYZs.js";
|
|
5
|
-
import { t as toCatalog } from "./catalog-
|
|
5
|
+
import { t as toCatalog } from "./catalog-Cm6BtquM.js";
|
|
6
6
|
import { resolveProviderSql } from "better-supabase/sql";
|
|
7
7
|
import { DEFAULT_CLAIMS, tenantClaimPaths } from "better-supabase/config";
|
|
8
8
|
import { toCamel } from "better-supabase";
|
|
@@ -856,9 +856,13 @@ function updateEntries(columns, name) {
|
|
|
856
856
|
return `${prop(column[name])}?: ${nullable(column.tsType, column.nullable)};`;
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
|
-
/**
|
|
859
|
+
/**
|
|
860
|
+
* Postgres passes `null` to any argument, so every argument accepts it. An
|
|
861
|
+
* optional argument also accepts `undefined`, which `rpc()` leaves out, so
|
|
862
|
+
* `exactOptionalPropertyTypes` apps can pass a maybe-missing value.
|
|
863
|
+
*/
|
|
860
864
|
function argEntries(fn) {
|
|
861
|
-
return fn.args.map((arg) => `${prop(arg.name)}${arg.optional ? "?" : ""}: ${nullable(arg.tsType, true)};`);
|
|
865
|
+
return fn.args.map((arg) => `${prop(arg.name)}${arg.optional ? "?" : ""}: ${nullable(arg.tsType, true)}${arg.optional ? " | undefined" : ""};`);
|
|
862
866
|
}
|
|
863
867
|
function enrichedDatabase(model) {
|
|
864
868
|
const schemas = model.config.schemas.flatMap((schema) => {
|
|
@@ -1004,6 +1008,8 @@ const RESERVED_EXPORTS = [
|
|
|
1004
1008
|
"WhereOf",
|
|
1005
1009
|
"OrderByOf",
|
|
1006
1010
|
"OrderTermOf",
|
|
1011
|
+
"WritableColumnOf",
|
|
1012
|
+
"GeneratedColumnOf",
|
|
1007
1013
|
"buckets",
|
|
1008
1014
|
"topics",
|
|
1009
1015
|
"subjectTypes",
|
|
@@ -1022,7 +1028,7 @@ function emitModule(model, options) {
|
|
|
1022
1028
|
`import { defineSchema, type Schema${options.inlineMeta ? ", type SchemaMeta" : ""} } from ${q(runtime)};`
|
|
1023
1029
|
];
|
|
1024
1030
|
const storagePaths = model.tables.some((table) => table.columns.some((column) => column.storage !== void 0));
|
|
1025
|
-
lines.push(`import type { EnrichDatabase, MutableWhere, OrderByArg, OrderByInput${storagePaths ? ", StoragePath" : ""} } from ${q(runtime)};`, `import type { Database as SupabaseDatabase } from ${q(options.databaseTypesImport ?? "./database.types.ts")};`);
|
|
1031
|
+
lines.push(`import type { EnrichDatabase, GeneratedColumns, MutableWhere, OrderByArg, OrderByInput${storagePaths ? ", StoragePath" : ""}, WritableColumns } from ${q(runtime)};`, `import type { Database as SupabaseDatabase } from ${q(options.databaseTypesImport ?? "./database.types.ts")};`);
|
|
1026
1032
|
const byFile = /* @__PURE__ */ new Map();
|
|
1027
1033
|
for (const entry of model.jsonImports) {
|
|
1028
1034
|
const list = byFile.get(entry.from) ?? [];
|
|
@@ -1049,7 +1055,7 @@ function emitModule(model, options) {
|
|
|
1049
1055
|
lines.push(`export const ${claim(constant, source)} = [${column.values.map(q).join(", ")}] as const;`, `export type ${claim(typeName, source)} = (typeof ${constant})[number];`);
|
|
1050
1056
|
}
|
|
1051
1057
|
if (model.enums.length > 0) lines.push("");
|
|
1052
|
-
lines.push(...modelsType(model), "", ...functionsType(model), "", "export type TableName = keyof Models;", "/** Constraint names for `isConflict`, `isCheck` and `isForeignKey`. */", "export type UniqueConstraint = { [T in TableName]: Extract<keyof Models[T]['UniqueKeys'], string> }[TableName];", "export type CheckConstraint = Models[TableName]['Checks'];", "export type ForeignKeyConstraint = Models[TableName]['ForeignKeys'];", "export type RowOf<T extends TableName> = Models[T]['Row'];", "export type InsertOf<T extends TableName> = Models[T]['Insert'];", "export type UpdateOf<T extends TableName> = Models[T]['Update'];", "/** A `where` for `T` you can assign to one key at a time. */", "export type WhereOf<T extends TableName> = MutableWhere<Models, T>;", "/** An `orderBy` for `T`: one sort or a list, by column or to-one relation. */", "export type OrderByOf<T extends TableName> = OrderByArg<Models, T>;", "/** One sort term of `T`'s `orderBy`, by column or to-one relation. */", "export type OrderTermOf<T extends TableName> = OrderByInput<Models, T>;", "");
|
|
1058
|
+
lines.push(...modelsType(model), "", ...functionsType(model), "", "export type TableName = keyof Models;", "/** Constraint names for `isConflict`, `isCheck` and `isForeignKey`. */", "export type UniqueConstraint = { [T in TableName]: Extract<keyof Models[T]['UniqueKeys'], string> }[TableName];", "export type CheckConstraint = Models[TableName]['Checks'];", "export type ForeignKeyConstraint = Models[TableName]['ForeignKeys'];", "export type RowOf<T extends TableName> = Models[T]['Row'];", "export type InsertOf<T extends TableName> = Models[T]['Insert'];", "export type UpdateOf<T extends TableName> = Models[T]['Update'];", "/** A `where` for `T` you can assign to one key at a time. */", "export type WhereOf<T extends TableName> = MutableWhere<Models, T>;", "/** An `orderBy` for `T`: one sort or a list, by column or to-one relation. */", "export type OrderByOf<T extends TableName> = OrderByArg<Models, T>;", "/** One sort term of `T`'s `orderBy`, by column or to-one relation. */", "export type OrderTermOf<T extends TableName> = OrderByInput<Models, T>;", "/** Columns of `T` that `Insert` and `Update` accept. */", "export type WritableColumnOf<T extends TableName> = WritableColumns<Models, T>;", "/** Columns of `T` the database fills (generated columns): in `Row`, never writable. */", "export type GeneratedColumnOf<T extends TableName> = GeneratedColumns<Models, T>;", "");
|
|
1053
1059
|
if (model.meta.buckets) lines.push("/** Bucket configs for `defineBucket` from `better-supabase/storage`. */", `export const buckets = ${JSON.stringify(model.meta.buckets, null, 2)} as const;`, "");
|
|
1054
1060
|
if (model.meta.topics) lines.push("/** Topic templates for `defineTopic` from `better-supabase/realtime`. */", `export const topics = ${JSON.stringify(model.meta.topics, null, 2)} as const;`, "");
|
|
1055
1061
|
const subjects = Object.keys(model.config.subjects);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
2
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
3
3
|
import { r as readIfExists, t as display } from "./io-BiPX-_J1.js";
|
|
4
|
-
import { n as readStackStatus, t as parseStackStatus } from "./stack-status-
|
|
4
|
+
import { n as readStackStatus, t as parseStackStatus } from "./stack-status-Cb_D79ZR.js";
|
|
5
5
|
import { n as applyPlan, o as insideRoot, r as changeLines, s as planResult, t as PLAN_ARGS } from "./files-DDvAwTko.js";
|
|
6
|
-
import { r as publicPrefix, t as detectProject } from "./detect-
|
|
6
|
+
import { r as publicPrefix, t as detectProject } from "./detect-DQsVeBHg.js";
|
|
7
7
|
import { existsSync } from "node:fs";
|
|
8
8
|
import { resolve } from "node:path";
|
|
9
9
|
import { readFile } from "node:fs/promises";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as PROCESS_ENV, n as configEnvironment, r as isCi, i as parseEnv } from "./env-
|
|
1
|
+
export { t as PROCESS_ENV, n as configEnvironment, r as isCi, i as parseEnv } from "./env-C8R7Nf0a.js";
|
|
@@ -1070,7 +1070,8 @@ function parseEnv(env) {
|
|
|
1070
1070
|
HOME: optionalString,
|
|
1071
1071
|
CI: optionalString,
|
|
1072
1072
|
BETTER_SUPABASE_ENV: optionalString,
|
|
1073
|
-
BETTER_SUPABASE_AGENT: optionalString
|
|
1073
|
+
BETTER_SUPABASE_AGENT: optionalString,
|
|
1074
|
+
BSB_STACK: optionalString
|
|
1074
1075
|
},
|
|
1075
1076
|
runtimeEnv: env,
|
|
1076
1077
|
isServer: true,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as envCommand } from "./env--JFvv45k.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
2
|
import { i as plain } from "./style-2JfIPVMQ.js";
|
|
3
3
|
import { a as parseNames, i as failedResult, n as CliError } from "./errors-Caiz_0so.js";
|
|
4
|
-
import { a as catalogFingerprint } from "./cache-
|
|
5
|
-
import { n as runGen } from "./run-
|
|
4
|
+
import { a as catalogFingerprint } from "./cache-CVJmPGpd.js";
|
|
5
|
+
import { n as runGen } from "./run-Bb8Nn8Ax.js";
|
|
6
6
|
import { r as isGenTask, t as GEN_TASKS } from "./names-D6LrQnOv.js";
|
|
7
|
-
import { o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-
|
|
8
|
-
import {
|
|
9
|
-
import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-
|
|
10
|
-
import { r as runEnv } from "./env
|
|
11
|
-
import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-
|
|
12
|
-
import { t as runScaffoldApi } from "./scaffold-
|
|
13
|
-
import { t as runSeed } from "./seed-
|
|
14
|
-
import { t as runSql } from "./sql-
|
|
7
|
+
import { o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-ClgWGd-b.js";
|
|
8
|
+
import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-BDiUhsH8.js";
|
|
9
|
+
import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-BRywyPvv.js";
|
|
10
|
+
import { r as runEnv } from "./env--JFvv45k.js";
|
|
11
|
+
import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-CM7iyRnE.js";
|
|
12
|
+
import { t as runScaffoldApi } from "./scaffold-DcXr4z7M.js";
|
|
13
|
+
import { t as runSeed } from "./seed-BmOC6_iz.js";
|
|
14
|
+
import { t as runSql } from "./sql-ybcjbz20.js";
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
16
16
|
import { resolve } from "node:path";
|
|
17
17
|
//#region src/cli/commands/gen-pipeline.ts
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -227,6 +227,8 @@ interface CliEnv {
|
|
|
227
227
|
readonly BETTER_SUPABASE_ENV?: string | undefined;
|
|
228
228
|
/** Agent mode when `--agent` is not passed: auto, yes or no. `run()` reads it before parsing. */
|
|
229
229
|
readonly BETTER_SUPABASE_AGENT?: string | undefined;
|
|
230
|
+
/** The named local stack `db query` and `seed` use when `--stack` is not passed. */
|
|
231
|
+
readonly BSB_STACK?: string | undefined;
|
|
230
232
|
/** Every variable of the run, for the processes the CLI starts. */
|
|
231
233
|
readonly [PROCESS_ENV]?: Readonly<Record<string, string | undefined>>;
|
|
232
234
|
}
|
|
@@ -686,6 +688,6 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
|
|
|
686
688
|
export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined): Promise<ResolvedConfig>;
|
|
687
689
|
//#endregion
|
|
688
690
|
//#region src/cli/version.d.ts
|
|
689
|
-
export declare const VERSION = "0.
|
|
691
|
+
export declare const VERSION = "0.11.0";
|
|
690
692
|
//#endregion
|
|
691
693
|
export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliArgs, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, CommandResult, CreateCliOptions, ExitCode, ExtrasFunction, ExtrasHook, ExtrasHookFunction, ExtrasTable, ForeignKeyAction, Format, GeneratorMetadata, IntrospectionSource, ManagementSourceOptions, NextStep, Paint, Prompter, Queryable, RunOptions, RunResult, Snapshot, SnapshotBucket, SnapshotExtras };
|
package/dist/cli/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as list, r as defineCliCommand } from "./command-
|
|
2
|
-
import { i as run, n as createCli, r as help, t as commandNames } from "./run-
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { a as list, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
|
+
import { i as run, n as createCli, r as help, t as commandNames } from "./run-nX5ffQM_.js";
|
|
3
|
+
import { t as VERSION } from "./version-CUKjFbNd.js";
|
|
4
4
|
import { n as CliError, t as CLI_ERRORS_URL } from "./errors-Caiz_0so.js";
|
|
5
|
-
import { t as toCatalog } from "./catalog-
|
|
6
|
-
import { a as buildModel, r as emitModule, t as GENERATED_HEADER } from "./emit-
|
|
7
|
-
import { S as emitBlockConfig, n as runGen, x as renderFiles } from "./run-
|
|
8
|
-
import { s as loadConfig } from "./config-
|
|
9
|
-
import { a as serializeSnapshot, d as managementSource, f as pgSource, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-
|
|
5
|
+
import { t as toCatalog } from "./catalog-Cm6BtquM.js";
|
|
6
|
+
import { a as buildModel, r as emitModule, t as GENERATED_HEADER } from "./emit-56LAG_Px.js";
|
|
7
|
+
import { S as emitBlockConfig, n as runGen, x as renderFiles } from "./run-Bb8Nn8Ax.js";
|
|
8
|
+
import { s as loadConfig } from "./config-C4e_RrmL.js";
|
|
9
|
+
import { a as serializeSnapshot, d as managementSource, f as pgSource, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-ClgWGd-b.js";
|
|
10
10
|
//#region src/cli/introspect/from-catalog.ts
|
|
11
11
|
/**
|
|
12
12
|
* Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests
|
|
@@ -177,7 +177,8 @@ function fromCatalog(catalog) {
|
|
|
177
177
|
policies: table.policies,
|
|
178
178
|
triggers: table.triggers,
|
|
179
179
|
grants: table.grants,
|
|
180
|
-
...table.columnGrants ? { columnGrants: table.columnGrants } : {}
|
|
180
|
+
...table.columnGrants ? { columnGrants: table.columnGrants } : {},
|
|
181
|
+
...table.partitionOf ? { partitionOf: table.partitionOf } : {}
|
|
181
182
|
})),
|
|
182
183
|
buckets: catalog.buckets,
|
|
183
184
|
realtime: catalog.realtime,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
2
|
import { i as plain } from "./style-2JfIPVMQ.js";
|
|
3
3
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
4
4
|
import { t as TYPEGEN_VERSION } from "./typegen-version-BNBPI4Eu.js";
|
|
5
|
-
import { a as findConfig, s as loadConfig } from "./config-
|
|
5
|
+
import { a as findConfig, s as loadConfig } from "./config-C4e_RrmL.js";
|
|
6
6
|
import { n as applyPlan, r as changeLines, s as planResult, t as PLAN_ARGS } from "./files-DDvAwTko.js";
|
|
7
|
-
import { _ as suggestedIntegrations, a as CANCELLED, c as overwrite, d as templateContextFor, f as templatePlan, g as resolveIntegrations, h as needsLib, l as packagesFor, m as baseFiles, n as blockConfigImport, o as chooseIntegrations, p as TEMPLATES, r as blocksWiringPath, s as integrationFiles, u as parseIntegrations } from "./add-
|
|
8
|
-
import { n as installCommand, t as detectProject } from "./detect-
|
|
9
|
-
import { s as enablePgDelta } from "./write-
|
|
10
|
-
import { n as latestMigrationVersion } from "./migration-safety-
|
|
7
|
+
import { _ as suggestedIntegrations, a as CANCELLED, c as overwrite, d as templateContextFor, f as templatePlan, g as resolveIntegrations, h as needsLib, l as packagesFor, m as baseFiles, n as blockConfigImport, o as chooseIntegrations, p as TEMPLATES, r as blocksWiringPath, s as integrationFiles, u as parseIntegrations } from "./add-B5V6uokQ.js";
|
|
8
|
+
import { n as installCommand, t as detectProject } from "./detect-DQsVeBHg.js";
|
|
9
|
+
import { s as enablePgDelta } from "./write-VZljwoTB.js";
|
|
10
|
+
import { n as latestMigrationVersion } from "./migration-safety-DjVpz2D6.js";
|
|
11
11
|
import { a as CONVENTION_COMPLETIONS, c as hasConventionFlags, i as CONVENTION_ARGS, l as promptConventions, n as AUTHZ_NOTE, o as conventionFlags, r as createUrlParam, s as defaultConventions, t as writeDesign, u as withConventions } from "./design-edit-B-WsnhUF.js";
|
|
12
|
-
import { t as syncModules } from "./sync-
|
|
12
|
+
import { t as syncModules } from "./sync-DBvknfOK.js";
|
|
13
13
|
import { existsSync } from "node:fs";
|
|
14
14
|
import { join, posix, resolve } from "node:path";
|
|
15
15
|
import { glob, readFile } from "node:fs/promises";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
2
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
3
3
|
import { c as serializeGenerator, s as restrictSchemas } from "./typegen--TfvOPLh.js";
|
|
4
|
-
import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-
|
|
4
|
+
import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-ClgWGd-b.js";
|
|
5
5
|
import { n as applyPlan, o as insideRoot, s as planResult, t as PLAN_ARGS } from "./files-DDvAwTko.js";
|
|
6
|
-
import {
|
|
6
|
+
import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-BDiUhsH8.js";
|
|
7
7
|
//#region src/cli/commands/introspect.ts
|
|
8
8
|
const ARGS = {
|
|
9
9
|
out: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
2
|
import { t as display } from "./io-BiPX-_J1.js";
|
|
3
|
-
import { m as supabaseDir } from "./supabase-toml-
|
|
3
|
+
import { m as supabaseDir } from "./supabase-toml-BC5sNVKU.js";
|
|
4
4
|
import { n as applyPlan, r as changeLines } from "./files-DDvAwTko.js";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
import { resolve } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorText } from "./errors-Caiz_0so.js";
|
|
2
|
-
import "./snapshot-
|
|
3
|
-
import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-
|
|
2
|
+
import "./snapshot-ClgWGd-b.js";
|
|
3
|
+
import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-DKLuA1Tp.js";
|
|
4
4
|
//#region src/cli/doctor/reserved-roles.ts
|
|
5
5
|
/**
|
|
6
6
|
* supautils' `reserved_roles` on Supabase. Nobody but a superuser may alter,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as commandMeta, r as defineCliCommand } from "./command-
|
|
2
|
-
import { a as envelope, i as run } from "./run-
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
|
+
import { a as envelope, i as run } from "./run-nX5ffQM_.js";
|
|
3
|
+
import { t as VERSION } from "./version-CUKjFbNd.js";
|
|
4
4
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
5
5
|
import { n as consentToken } from "./agent-CCrTYK3W.js";
|
|
6
|
-
import { A as string$1, E as record, M as unknown, O as safeParse, S as optional, a as array, b as object, d as is, o as boolean, t as PROCESS_ENV } from "./env-
|
|
6
|
+
import { A as string$1, E as record, M as unknown, O as safeParse, S as optional, a as array, b as object, d as is, o as boolean, t as PROCESS_ENV } from "./env-C8R7Nf0a.js";
|
|
7
7
|
import { createInterface } from "node:readline";
|
|
8
8
|
import { answerLine } from "better-supabase/mcp";
|
|
9
9
|
//#region src/cli/mcp/server.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-Caiz_0so.js";
|
|
2
2
|
import { i as readStdin } from "./io-BiPX-_J1.js";
|
|
3
3
|
import { a as parseMetadataDocument, t as MetadataRejectedError } from "./typegen--TfvOPLh.js";
|
|
4
|
-
import { i as metaPaths } from "./emit-
|
|
5
|
-
import { b as render, i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-
|
|
4
|
+
import { i as metaPaths } from "./emit-56LAG_Px.js";
|
|
5
|
+
import { b as render, i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-Bb8Nn8Ax.js";
|
|
6
6
|
import { basename, join, relative, resolve, sep } from "node:path";
|
|
7
7
|
import { readFile } from "node:fs/promises";
|
|
8
8
|
import { jsonSchema, standardSchema, valibot, zod } from "better-supabase/config";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
2
|
+
import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-BC5sNVKU.js";
|
|
2
3
|
import { t as importFresh } from "./fresh-import-BeYf9I3x.js";
|
|
3
|
-
import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-DjLgBYEo.js";
|
|
4
4
|
import { n as applyPlan, r as changeLines } from "./files-DDvAwTko.js";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
2
|
-
import { s as positionalIndex } from "./parse-
|
|
2
|
+
import { s as positionalIndex } from "./parse-ksnw4phM.js";
|
|
3
3
|
//#region src/cli/core/moved.ts
|
|
4
4
|
/** Commands renamed in 0.9, longest prefix first. */
|
|
5
5
|
const MOVED_COMMANDS = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime-kJ_i4yPo.js";
|
|
2
|
-
import { t as GLOBAL_ARGS } from "./command-
|
|
2
|
+
import { t as GLOBAL_ARGS } from "./command-DLCZeHdo.js";
|
|
3
3
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
4
4
|
//#region src/cli/core/parse.ts
|
|
5
5
|
/** Global options that take a value, so a command name is never the token after them. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
2
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
3
3
|
import { PRESET_FIELDS, decodePreset, encodePreset, isPresetCode, listNames, presetConfig, presetOf, resolvePreset } from "better-supabase/preset";
|
|
4
4
|
//#region src/cli/commands/preset.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-Caiz_0so.js";
|
|
2
2
|
import { a as sameText, n as importPath, t as display } from "./io-BiPX-_J1.js";
|
|
3
|
-
import { i as writeAtomic, n as cachedDatabaseTypes, t as CACHE_DIR } from "./cache-
|
|
3
|
+
import { i as writeAtomic, n as cachedDatabaseTypes, t as CACHE_DIR } from "./cache-CVJmPGpd.js";
|
|
4
4
|
import { t as byCodePoint } from "./compare-BmIWVEui.js";
|
|
5
5
|
import { d as typegenVersion, f as typegenVersionNotice, i as oxfmtInstalled, l as stabilizeMetadata, r as generateDatabaseTypes } from "./typegen--TfvOPLh.js";
|
|
6
|
-
import { a as buildModel, i as metaPaths, l as prop, n as emitMeta, o as generatorModel, r as emitModule, t as GENERATED_HEADER, u as q } from "./emit-
|
|
7
|
-
import { C as accessRequirements, D as providerLabel, E as moduleKeyProblems, O as unsafeKey, S as accessProviderMode, T as entitlementsMode, c as writeLatestMigration, l as writesMigrations, n as READ_SETS_SUFFIX, r as latestMigration, s as sameModuleMigration, v as migrationsDir, w as entitlementRequirements, x as compiledReadSets } from "./module-migration-
|
|
8
|
-
import { t as loadSnapshot } from "./snapshot-
|
|
6
|
+
import { a as buildModel, i as metaPaths, l as prop, n as emitMeta, o as generatorModel, r as emitModule, t as GENERATED_HEADER, u as q } from "./emit-56LAG_Px.js";
|
|
7
|
+
import { C as accessRequirements, D as providerLabel, E as moduleKeyProblems, O as unsafeKey, S as accessProviderMode, T as entitlementsMode, c as writeLatestMigration, l as writesMigrations, n as READ_SETS_SUFFIX, r as latestMigration, s as sameModuleMigration, v as migrationsDir, w as entitlementRequirements, x as compiledReadSets } from "./module-migration-CPhuiY8C.js";
|
|
8
|
+
import { t as loadSnapshot } from "./snapshot-ClgWGd-b.js";
|
|
9
9
|
import { a as hasConflicts, c as fileDiff, i as changedFiles, n as applyPlan, r as changeLines } from "./files-DDvAwTko.js";
|
|
10
|
-
import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-
|
|
10
|
+
import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-DKLuA1Tp.js";
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
12
12
|
import { basename, dirname, isAbsolute, posix, relative, resolve, sep } from "node:path";
|
|
13
13
|
import { readFile } from "node:fs/promises";
|
|
@@ -594,7 +594,28 @@ const TIMEOUT_ROLES = [
|
|
|
594
594
|
"authenticated",
|
|
595
595
|
"authenticator"
|
|
596
596
|
];
|
|
597
|
+
/** Partitions of an RLS table that have RLS off: queried by name, they skip the parent's policies. */
|
|
598
|
+
function partitionsWithoutRls(context) {
|
|
599
|
+
const tables = catalogOf(context).tables;
|
|
600
|
+
const byName = new Map(tables.map((table) => [qualified(table), table]));
|
|
601
|
+
return tables.flatMap((table) => {
|
|
602
|
+
if (table.partitionOf === void 0 || table.rls || !context.config.schemas.includes(table.schema)) return [];
|
|
603
|
+
if (!byName.get(table.partitionOf)?.rls) return [];
|
|
604
|
+
return [{
|
|
605
|
+
message: `${qualified(table)} is a partition of ${table.partitionOf}, which has RLS on, but RLS is off on the partition. A query that names the partition skips the parent's policies, and Data API roles with a grant on it read every row. Run \`alter table ${qualified(table)} enable row level security;\`, and add the same enable to the code that creates new partitions.`,
|
|
606
|
+
target: qualified(table),
|
|
607
|
+
object: tableObject(table)
|
|
608
|
+
}];
|
|
609
|
+
});
|
|
610
|
+
}
|
|
597
611
|
const RLS_RULES = [
|
|
612
|
+
{
|
|
613
|
+
code: "BS343",
|
|
614
|
+
severity: "error",
|
|
615
|
+
title: "Partition without row level security",
|
|
616
|
+
description: "A table in `schemas` is a partition of a table with RLS on, but has RLS off itself. Policies belong to the parent, so a query that names the partition (`select * from events_default`) never applies them. This includes the default partition. Enable RLS on every partition when you create it; the partition functions of the SQL modules (`ensure_partitions`, ADR 0038) already do.",
|
|
617
|
+
check: partitionsWithoutRls
|
|
618
|
+
},
|
|
598
619
|
{
|
|
599
620
|
code: "BS205",
|
|
600
621
|
severity: "warning",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as COMMANDS, d as GROUPS, f as RESERVED_NAMES, h as runCommand, i as joinRepeated, m as parseArgs$2, o as listArgs, s as runsWithInvalidConfig, t as GLOBAL_ARGS, u as DOCS_ORIGIN } from "./command-
|
|
1
|
+
import { c as COMMANDS, d as GROUPS, f as RESERVED_NAMES, h as runCommand, i as joinRepeated, m as parseArgs$2, o as listArgs, s as runsWithInvalidConfig, t as GLOBAL_ARGS, u as DOCS_ORIGIN } from "./command-DLCZeHdo.js";
|
|
2
2
|
import { n as highlight, r as painter } from "./style-2JfIPVMQ.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-CUKjFbNd.js";
|
|
4
4
|
import { n as CliError, o as toCliError } from "./errors-Caiz_0so.js";
|
|
5
5
|
import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-CCrTYK3W.js";
|
|
6
|
-
import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-
|
|
7
|
-
import { n as movedCommand, r as movedFlag } from "./moved-
|
|
6
|
+
import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-ksnw4phM.js";
|
|
7
|
+
import { n as movedCommand, r as movedFlag } from "./moved-BmtFuMK3.js";
|
|
8
8
|
import { n as HTTP_CHANNEL, t as EXEC_CHANNEL } from "./trace-VbdO6bcN.js";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
10
|
import { subscribe, unsubscribe } from "node:diagnostics_channel";
|
|
@@ -16,40 +16,41 @@ import { resolve } from "node:path";
|
|
|
16
16
|
* Each loads on demand, so `--version` and `--help` import no command.
|
|
17
17
|
*/
|
|
18
18
|
const LOADERS = [
|
|
19
|
-
["init", () => import("./init-
|
|
20
|
-
["add", () => import("./add-
|
|
21
|
-
["apply", () => import("./apply-
|
|
22
|
-
["adopt", () => import("./adopt-
|
|
23
|
-
["preset decode", () => import("./preset-
|
|
24
|
-
["preset info", () => import("./preset-
|
|
25
|
-
["blocks list", () => import("./blocks-
|
|
26
|
-
["blocks view", () => import("./blocks-
|
|
27
|
-
["blocks search", () => import("./blocks-
|
|
28
|
-
["skills list", () => import("./skills-
|
|
29
|
-
["skills install", () => import("./skills-
|
|
30
|
-
["completion", () => import("./completion-
|
|
31
|
-
["env", () => import("./env-
|
|
32
|
-
["keys", () => import("./keys-
|
|
33
|
-
["gen", () => import("./gen-
|
|
34
|
-
["introspect", () => import("./introspect-
|
|
35
|
-
["spec emit", () => import("./spec-
|
|
36
|
-
["spec validate", () => import("./spec-
|
|
37
|
-
["scaffold api", () => import("./scaffold-
|
|
38
|
-
["scaffold screens", () => import("./scaffold-
|
|
39
|
-
["seed", () => import("./seed-
|
|
40
|
-
["
|
|
41
|
-
["
|
|
42
|
-
["
|
|
43
|
-
["
|
|
44
|
-
["sql
|
|
45
|
-
["sql
|
|
46
|
-
["sql
|
|
47
|
-
["sql
|
|
48
|
-
["sql
|
|
49
|
-
["
|
|
50
|
-
["codemod 0.
|
|
51
|
-
["codemod 0.
|
|
52
|
-
["codemod 0.
|
|
19
|
+
["init", () => import("./init-Cx7DDAdQ.js").then((m) => m.initCommand)],
|
|
20
|
+
["add", () => import("./add-DzRJEHzD.js").then((m) => m.addCommand)],
|
|
21
|
+
["apply", () => import("./apply-4BmTvj2A.js").then((m) => m.applyCommand)],
|
|
22
|
+
["adopt", () => import("./adopt-DDy50yz9.js").then((m) => m.adoptCommand)],
|
|
23
|
+
["preset decode", () => import("./preset-B1o6KbFp.js").then((m) => m.presetDecodeCommand)],
|
|
24
|
+
["preset info", () => import("./preset-B1o6KbFp.js").then((m) => m.presetInfoCommand)],
|
|
25
|
+
["blocks list", () => import("./blocks-bBI050w6.js").then((m) => m.blocksListCommand)],
|
|
26
|
+
["blocks view", () => import("./blocks-bBI050w6.js").then((m) => m.blocksViewCommand)],
|
|
27
|
+
["blocks search", () => import("./blocks-bBI050w6.js").then((m) => m.blocksSearchCommand)],
|
|
28
|
+
["skills list", () => import("./skills-CUx7S0bk.js").then((m) => m.skillsListCommand)],
|
|
29
|
+
["skills install", () => import("./skills-CUx7S0bk.js").then((m) => m.skillsInstallCommand)],
|
|
30
|
+
["completion", () => import("./completion-D2BObVth.js").then((m) => m.completionCommand)],
|
|
31
|
+
["env", () => import("./env-D-O91RK1.js").then((m) => m.envCommand)],
|
|
32
|
+
["keys", () => import("./keys-6ufnWeZl.js").then((m) => m.keysCommand)],
|
|
33
|
+
["gen", () => import("./gen-D2E8osBE.js").then((m) => m.genCommand)],
|
|
34
|
+
["introspect", () => import("./introspect-Ck7aa6v0.js").then((m) => m.introspectCommand)],
|
|
35
|
+
["spec emit", () => import("./spec-DjHpWZJM.js").then((m) => m.specEmitCommand)],
|
|
36
|
+
["spec validate", () => import("./spec-DjHpWZJM.js").then((m) => m.specValidateCommand)],
|
|
37
|
+
["scaffold api", () => import("./scaffold-fO-FJGoO.js").then((m) => m.scaffoldApiCommand)],
|
|
38
|
+
["scaffold screens", () => import("./scaffold-fO-FJGoO.js").then((m) => m.scaffoldScreensCommand)],
|
|
39
|
+
["seed", () => import("./seed-C_BmN498.js").then((m) => m.seedCommand)],
|
|
40
|
+
["db query", () => import("./db-BxMRcHrY.js").then((m) => m.dbQueryCommand)],
|
|
41
|
+
["doctor", () => import("./doctor-D47sFjh9.js").then((m) => m.doctorCommand)],
|
|
42
|
+
["config", () => import("./config-CC5DXgKX.js").then((m) => m.configCommand)],
|
|
43
|
+
["mcp", () => import("./mcp-BVWvEoKo.js").then((m) => m.mcpCommand)],
|
|
44
|
+
["sql list", () => import("./sql-C4ymac2h.js").then((m) => m.sqlListCommand)],
|
|
45
|
+
["sql add", () => import("./sql-C4ymac2h.js").then((m) => m.sqlAddCommand)],
|
|
46
|
+
["sql sync", () => import("./sql-C4ymac2h.js").then((m) => m.sqlSyncCommand)],
|
|
47
|
+
["sql upgrade", () => import("./sql-C4ymac2h.js").then((m) => m.sqlUpgradeCommand)],
|
|
48
|
+
["sql data", () => import("./sql-C4ymac2h.js").then((m) => m.sqlDataCommand)],
|
|
49
|
+
["sql print", () => import("./sql-C4ymac2h.js").then((m) => m.sqlPrintCommand)],
|
|
50
|
+
["codemod 0.4", () => import("./codemod-vsknM1Ue.js").then((m) => m.codemodCommand("0.4"))],
|
|
51
|
+
["codemod 0.5", () => import("./codemod-vsknM1Ue.js").then((m) => m.codemodCommand("0.5"))],
|
|
52
|
+
["codemod 0.6", () => import("./codemod-vsknM1Ue.js").then((m) => m.codemodCommand("0.6"))],
|
|
53
|
+
["codemod 0.9", () => import("./codemod-vsknM1Ue.js").then((m) => m.codemodCommand("0.9"))]
|
|
53
54
|
];
|
|
54
55
|
/** The built-in commands, for `createCli`. */
|
|
55
56
|
function builtinCommands() {
|
|
@@ -448,7 +449,7 @@ function cliFromTree(init, extra = {}) {
|
|
|
448
449
|
};
|
|
449
450
|
if (argv[0] === "__complete") {
|
|
450
451
|
const words = argv[1] === "--" ? argv.slice(2) : argv.slice(1);
|
|
451
|
-
const lines = await import("./completion-
|
|
452
|
+
const lines = await import("./completion-CEZ-c3ja.js").then(async ({ complete, completionLines }) => completionLines(await complete(tree, words))).catch(() => "");
|
|
452
453
|
if (lines !== "") out(lines);
|
|
453
454
|
return {
|
|
454
455
|
code: 0,
|
|
@@ -577,8 +578,8 @@ function cliFromTree(init, extra = {}) {
|
|
|
577
578
|
try {
|
|
578
579
|
const [loaded, { defaultConfig, discoverConfig, loadConfig }, { configEnvironment, isCi, parseEnv }] = await Promise.all([
|
|
579
580
|
node.load(),
|
|
580
|
-
import("./config-
|
|
581
|
-
import("./env-
|
|
581
|
+
import("./config-CynctXbc.js"),
|
|
582
|
+
import("./env-B7TWPEt0.js")
|
|
582
583
|
]);
|
|
583
584
|
command = loaded;
|
|
584
585
|
rawArgs = joinRepeated(rest, listArgs(command));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
2
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
3
3
|
import { t as display } from "./io-BiPX-_J1.js";
|
|
4
4
|
import { t as isRecord } from "./guards-CUlDNYZs.js";
|
|
5
|
-
import { d as applyCasing, i as metaPaths } from "./emit-
|
|
5
|
+
import { d as applyCasing, i as metaPaths } from "./emit-56LAG_Px.js";
|
|
6
6
|
import { t as importFresh } from "./fresh-import-BeYf9I3x.js";
|
|
7
7
|
import { a as hasConflicts, n as applyPlan, r as changeLines, s as planResult, t as PLAN_ARGS } from "./files-DDvAwTko.js";
|
|
8
|
-
import { t as detectProject } from "./detect-
|
|
8
|
+
import { t as detectProject } from "./detect-DQsVeBHg.js";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { posix, resolve } from "node:path";
|
|
11
11
|
import { FIELD_FORMATS } from "better-supabase/config";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as scaffoldApiCommand, i as scaffoldScreensCommand } from "./scaffold-
|
|
1
|
+
export { r as scaffoldApiCommand, i as scaffoldScreensCommand } from "./scaffold-DcXr4z7M.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
2
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CCrTYK3W.js";
|
|
3
3
|
import { t as display } from "./io-BiPX-_J1.js";
|
|
4
|
-
import { l as stdinDatabaseUrl, n as databaseUrl, o as importExport } from "./config-
|
|
5
|
-
import { m as supabaseDir } from "./supabase-toml-
|
|
4
|
+
import { l as stdinDatabaseUrl, n as databaseUrl, o as importExport } from "./config-C4e_RrmL.js";
|
|
5
|
+
import { m as supabaseDir } from "./supabase-toml-BC5sNVKU.js";
|
|
6
6
|
import { t as connect } from "./db-DT1bGB02.js";
|
|
7
7
|
import { a as hasConflicts, n as applyPlan, o as insideRoot, r as changeLines, s as planResult, t as PLAN_ARGS } from "./files-DDvAwTko.js";
|
|
8
|
-
import { t as DB_URL_STDIN_ARG } from "./source-args-
|
|
8
|
+
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-BDiUhsH8.js";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { resolve } from "node:path";
|
|
11
11
|
import { readFile } from "node:fs/promises";
|
|
@@ -49,7 +49,7 @@ async function runSeed(config, args, env, open = connect, dbUrl, requireConsent
|
|
|
49
49
|
note: `${statements.length} table${statements.length === 1 ? "" : "s"}`
|
|
50
50
|
}]
|
|
51
51
|
};
|
|
52
|
-
const url = args.apply === true && args["dry-run"] !== true && args.check !== true ? await databaseUrl(config, env, dbUrl) : void 0;
|
|
52
|
+
const url = args.apply === true && args["dry-run"] !== true && args.check !== true ? await databaseUrl(config, env, dbUrl, args.stack ?? env.BSB_STACK) : void 0;
|
|
53
53
|
if (url !== void 0 && !isLocalDatabaseUrl(url)) requireConsent({
|
|
54
54
|
effect: "database-write",
|
|
55
55
|
detail: `seed --apply inserts rows into ${databaseHost(url)}`
|
|
@@ -101,6 +101,7 @@ const seedCommand = defineCliCommand({
|
|
|
101
101
|
args: {
|
|
102
102
|
...ARGS,
|
|
103
103
|
...DB_URL_STDIN_ARG,
|
|
104
|
+
...STACK_ARG,
|
|
104
105
|
...PLAN_ARGS
|
|
105
106
|
},
|
|
106
107
|
run: async (args, { config, env, io, log, requireConsent }) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as seedCommand } from "./seed-BmOC6_iz.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as toCatalog } from "./catalog-
|
|
2
|
-
import { h as tomlGet, p as sqlWorkflow, r as detectWorkflow } from "./supabase-toml-
|
|
1
|
+
import { t as toCatalog } from "./catalog-Cm6BtquM.js";
|
|
2
|
+
import { h as tomlGet, p as sqlWorkflow, r as detectWorkflow } from "./supabase-toml-BC5sNVKU.js";
|
|
3
3
|
//#region src/cli/doctor/shared.ts
|
|
4
4
|
const catalogs = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
/** The project's SQL workflow: `sql.workflow`, or the one `config.toml` and the schema files imply. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
2
2
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
3
3
|
import { t as byCodePoint } from "./compare-BmIWVEui.js";
|
|
4
4
|
import { n as applyPlan, s as planResult, t as PLAN_ARGS } from "./files-DDvAwTko.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { t as VERSION } from "./version-CUKjFbNd.js";
|
|
2
2
|
import { n as CliError, r as errorText } from "./errors-Caiz_0so.js";
|
|
3
3
|
import { r as redactUrl } from "./redact-PjNswZOs.js";
|
|
4
4
|
import { n as HTTP_CHANNEL } from "./trace-VbdO6bcN.js";
|
|
5
|
-
import { o as readExtras, r as cachedIntrospect } from "./cache-
|
|
5
|
+
import { o as readExtras, r as cachedIntrospect } from "./cache-CVJmPGpd.js";
|
|
6
6
|
import { l as stabilizeMetadata, n as TypegenMissingError, o as readGeneratorMetadata, p as validateGeneratorMetadata } from "./typegen--TfvOPLh.js";
|
|
7
|
-
import { n as databaseUrl, u as accessToken } from "./config-
|
|
8
|
-
import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, u as pgFunctionHooks } from "./supabase-toml-
|
|
7
|
+
import { n as databaseUrl, u as accessToken } from "./config-C4e_RrmL.js";
|
|
8
|
+
import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, u as pgFunctionHooks } from "./supabase-toml-BC5sNVKU.js";
|
|
9
9
|
import { t as connect } from "./db-DT1bGB02.js";
|
|
10
10
|
import { channel } from "node:diagnostics_channel";
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
2
|
-
import { l as stdinDatabaseUrl } from "./config-
|
|
2
|
+
import { l as stdinDatabaseUrl } from "./config-C4e_RrmL.js";
|
|
3
3
|
//#region src/cli/commands/source-args.ts
|
|
4
4
|
/** The connection string from stdin, for commands that connect but read no schema. */
|
|
5
5
|
const DB_URL_STDIN_ARG = { "db-url-stdin": {
|
|
6
6
|
type: "boolean",
|
|
7
7
|
description: "Read the connection string from stdin instead of the config, $DATABASE_URL or $SUPABASE_DB_URL"
|
|
8
8
|
} };
|
|
9
|
+
/** The named local stack, for commands that connect to one. */
|
|
10
|
+
const STACK_ARG = { stack: {
|
|
11
|
+
type: "string",
|
|
12
|
+
description: "Use the stack in supabase/stacks/<name>/config.toml (default $BSB_STACK) instead of the default local stack",
|
|
13
|
+
valueHint: "name"
|
|
14
|
+
} };
|
|
9
15
|
/** Where to read the schema from, shared by gen, introspect, doctor, adopt and apply. */
|
|
10
16
|
const SOURCE_ARGS = {
|
|
11
17
|
snapshot: {
|
|
@@ -44,4 +50,4 @@ async function sourceArgs(args, io) {
|
|
|
44
50
|
};
|
|
45
51
|
}
|
|
46
52
|
//#endregion
|
|
47
|
-
export { sourceFlags as i, SOURCE_ARGS as n,
|
|
53
|
+
export { sourceFlags as a, sourceArgs as i, SOURCE_ARGS as n, STACK_ARG as r, DB_URL_STDIN_ARG as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require, t as __commonJSMin } from "./rolldown-runtime-kJ_i4yPo.js";
|
|
2
|
-
import { p as commandMeta, r as defineCliCommand } from "./command-
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
2
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-DLCZeHdo.js";
|
|
3
|
+
import { t as VERSION } from "./version-CUKjFbNd.js";
|
|
4
4
|
import { i as failedResult, n as CliError, r as errorText } from "./errors-Caiz_0so.js";
|
|
5
5
|
import { t as display } from "./io-BiPX-_J1.js";
|
|
6
|
-
import { i as writeAtomic, t as CACHE_DIR } from "./cache-
|
|
6
|
+
import { i as writeAtomic, t as CACHE_DIR } from "./cache-CVJmPGpd.js";
|
|
7
7
|
import { t as isRecord } from "./guards-CUlDNYZs.js";
|
|
8
8
|
import { t as importFresh } from "./fresh-import-BeYf9I3x.js";
|
|
9
9
|
import { i as changedFiles, n as applyPlan, r as changeLines } from "./files-DDvAwTko.js";
|