better-supabase 0.10.0 → 0.12.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-CRNH2aX_.js} +390 -267
- package/dist/{agents-ByYUSZxT.d.ts → agents-CGP2AQge.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-ChFDkMLN.js} +18 -10
- 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-ZvPnNudQ.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-EdSNjGIZ.d.ts → api-keys-AgDXbcql.d.ts} +7 -7
- package/dist/{api-keys-C1IZF7p8.js → api-keys-BSXwI2jF.js} +6 -6
- package/dist/{app-tables-DVidEHOI.d.ts → app-tables-BrMBjyuq.d.ts} +1 -1
- package/dist/{approvals-DqlPHBHI.d.ts → approvals-CyX709B-.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-CK8D8bIV.js} +14 -8
- 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-WDQMKIsc.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-Bfo40o63.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 -10
- package/dist/blocks/drive/index.js +20 -11
- 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-BbePDVwc.d.ts} +235 -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-BhI_nXAo.js → add-BcOHumvq.js} +2 -2
- package/dist/cli/add-DnAyR9w_.js +1 -0
- package/dist/cli/{add-CUS0AiBh.js → add-TT72pQk6.js} +5 -5
- package/dist/cli/adopt-BuS-DC7_.js +1 -0
- package/dist/cli/{adopt-DwcU6CJd.js → adopt-mbB1bcIG.js} +6 -6
- package/dist/cli/{apply-DBXC0Z5I.js → apply-CiBFOFGw.js} +16 -22
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-B15ltTFn.js → blocks-5-JGzwXX.js} +1 -1
- package/dist/cli/{blocks-BXeqIzWN.js → blocks-DeLQOlUK.js} +1 -1
- package/dist/cli/{cache-CPBYJAkb.js → cache-DQwgb3rg.js} +8 -3
- package/dist/cli/{catalog-Di15TkM2.js → catalog-Cm6BtquM.js} +2 -1
- package/dist/cli/{codemod-CrI33UR2.js → codemod-BzAMX4el.js} +2 -2
- package/dist/cli/{command-D_HI1mp1.js → command-dfdVhU_2.js} +39 -1
- package/dist/cli/{completion-Vry-Wjw8.js → completion-4lLjtI49.js} +1 -1
- package/dist/cli/{completion-En43UcyJ.js → completion-D4InNrxw.js} +2 -2
- package/dist/cli/{completion-DzYo025z.js → completion-zsp5s0zI.js} +2 -2
- package/dist/cli/{config-DsqQr5z3.js → config-CCyweX7Y.js} +1 -1
- package/dist/cli/{config-DyJgo2d9.js → config-DI6ielsx.js} +1 -1
- package/dist/cli/{config-Bi_UBxXl.js → config-yZ55rsKZ.js} +17 -5
- package/dist/cli/db-TRymMyAW.js +90 -0
- package/dist/cli/{design-edit-B-WsnhUF.js → design-edit-0U9iCTiS.js} +29 -2
- package/dist/cli/{detect-BeLVeNpA.js → detect-DQsVeBHg.js} +1 -1
- package/dist/cli/{doctor-wACp5w6N.js → doctor-DOfy6kjt.js} +332 -108
- package/dist/cli/{emit-j0zZ6NE_.js → emit-56LAG_Px.js} +11 -5
- 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-Cmu99uKR.js +1 -0
- package/dist/cli/{env-2v9JrxSr.js → env-Dh5K5t2U.js} +33 -32
- package/dist/cli/{gen-BhquLu7l.js → gen-D3sC5jDn.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-DNomoycJ.js} +16 -22
- package/dist/cli/{introspect-B-gXAIqs.js → introspect-kYX06Q2g.js} +3 -3
- package/dist/cli/{keys-hwtdwdkT.js → keys-B8dIJwwi.js} +2 -2
- package/dist/cli/{live-BFfYoE0_.js → live-CkV3d3yp.js} +2 -2
- package/dist/cli/{mcp-Bdm2oGmL.js → mcp-DrxB2Wuw.js} +4 -4
- package/dist/cli/{metadata-DikbSOE0.js → metadata-BGkle6WM.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-BMQu1YNY.js} +1 -1
- package/dist/cli/{parse-CwV5a6dA.js → parse-QzDvMpXH.js} +1 -1
- package/dist/cli/{preset-DQ1DxMtI.js → preset-CfIs24cc.js} +1 -1
- package/dist/cli/run-Bck-p0MI.js +63 -0
- package/dist/cli/{run-DliGNdjI.js → run-BhJKAanr.js} +26 -5
- package/dist/cli/{run-BLJj7SuM.js → run-DRZ10srj.js} +52 -43
- package/dist/cli/{scaffold-6bv24GSP.js → scaffold-DoURlDEI.js} +3 -3
- package/dist/cli/{scaffold-DUz5fa-k.js → scaffold-mzy3OsN5.js} +1 -1
- package/dist/cli/seed-C5q4UUIL.js +1 -0
- package/dist/cli/{seed-CIJaL1Ao.js → seed-CIdg6s7m.js} +6 -5
- package/dist/cli/{shared-CNcvDOLt.js → shared-DKLuA1Tp.js} +2 -2
- package/dist/cli/{skills-CaxIQhzW.js → skills-D3zwIlGA.js} +1 -1
- package/dist/cli/{snapshot-Dvcx0BSl.js → snapshot-BBKFojqM.js} +4 -4
- package/dist/cli/{source-args-BNhagtpw.js → source-args-Cwo7zwvq.js} +8 -2
- package/dist/cli/{spec-DRDaIq8f.js → spec-DOgQUZwM.js} +1 -1
- package/dist/cli/{spec-BewE6r6J.js → spec-DZeIP9ta.js} +3 -3
- package/dist/cli/{sql-BCQt5TDs.js → sql-CL_Lbhwl.js} +2 -2
- package/dist/cli/{sql-BBkchli4.js → sql-DLOvvnBV.js} +5 -5
- package/dist/cli/stack-env-_uWWNHWq.js +87 -0
- package/dist/cli/{stack-status-LeEoCtV1.js → stack-status-_NUgd-g5.js} +43 -3
- 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-B7akdvDv.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-ByGlM0YF.d.ts → client-BAOZuBhz.d.ts} +4 -4
- package/dist/{client-fpvgtQKE.js → client-BDO6i2Oe.js} +2 -2
- package/dist/{client-Dk8gY9hi.d.ts → client-BJN0IMEp.d.ts} +2 -2
- package/dist/{client-Fi8CoJcs.d.ts → client-BMcjLG0V.d.ts} +13 -13
- package/dist/{client-B5nnqDmz.d.ts → client-BN_fXOs7.d.ts} +2 -2
- package/dist/{client-CpMv4-v5.d.ts → client-BONsuFYf.d.ts} +4 -4
- package/dist/{client-Diu2lPbg.d.ts → client-BPn9XhAM.d.ts} +7 -7
- package/dist/{client-B0rvMvA8.d.ts → client-BtC-r4hE.d.ts} +3 -3
- package/dist/{client-Cgxj38RS.d.ts → client-BuneNd-C.d.ts} +9 -9
- package/dist/{client-D0502FgY.js → client-CFKONrrU.js} +4 -4
- package/dist/{client-CvITjt-9.js → client-CHR8IBNG.js} +10 -2
- package/dist/{client-B9H4BZJh.d.ts → client-CHwNV8Kz.d.ts} +12 -12
- package/dist/{client-kKdkLGPB.d.ts → client-CLQHsa-2.d.ts} +2 -2
- package/dist/{client-C3dLIsJv.d.ts → client-CMxxwT3N.d.ts} +9 -9
- package/dist/{client-C597NIlL.d.ts → client-CU7aNN_B.d.ts} +8 -8
- package/dist/{client-DZXFDaQE.d.ts → client-CYEdJKjk.d.ts} +6 -6
- package/dist/{client-LVa6yC9u.d.ts → client-CYhSGlCN.d.ts} +5 -5
- package/dist/{client-CWs3X4g1.js → client-C_-NZRrg.js} +1 -1
- package/dist/{client-kI6vCKVI.js → client-CcPxbHeT.js} +2 -2
- package/dist/{client-AxwF58Eo.js → client-CosiUrUb.js} +1 -1
- package/dist/{client-CsRpAyIv.d.ts → client-D3gRTNSi.d.ts} +2 -2
- package/dist/{client-D727oIVC.js → client-D7T7OLiw.js} +4 -4
- package/dist/{client-9zIKhf5D.d.ts → client-DB34f_7i.d.ts} +3 -3
- package/dist/{client-CjyTNdt1.d.ts → client-DCawyopp.d.ts} +5 -5
- package/dist/{client-BtBkVSk2.d.ts → client-Dqa4XyJ5.d.ts} +7 -7
- package/dist/{client-BLKpcAs0.d.ts → client-Dr5h2r9r.d.ts} +3 -3
- package/dist/{client-BO9fQgBB.d.ts → client-DrTqKgvy.d.ts} +4 -4
- 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-B_r4denm.d.ts → client-GCCRI9ge.d.ts} +3 -3
- package/dist/{client-DR_YEGnc.d.ts → client-P6v3h7vh.d.ts} +2 -2
- package/dist/{client-D9zBl9PT.d.ts → client-P8l8ncxV.d.ts} +7 -7
- package/dist/{client-CFeWXNXy.js → client-UnM3e32l.js} +2 -2
- package/dist/{client-DG7FwgZD.js → client-arq4daO_.js} +1 -1
- package/dist/{client-CmHsfDHU.js → client-eCDPjOMo.js} +6 -6
- package/dist/{client-rp7YfOg1.js → client-iaFm0aVf.js} +1 -1
- package/dist/{client-WXJwUhr1.d.ts → client-kWg4OqIr.d.ts} +5 -5
- package/dist/{client-B7LCXnnY.d.ts → client-tvG258_1.d.ts} +6 -6
- package/dist/{client-BaynD5V-.d.ts → client-wKmX-f3r.d.ts} +7 -7
- 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-CPV0thLs.js → composite-1kPAxXto.js} +3 -3
- package/dist/{composite-DMMA_Whg.d.ts → composite-DzvBL5nb.d.ts} +13 -13
- 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-BwPNt-ZG.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-BZhiIb-N.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 +25 -3
- package/dist/create/index.js +1002 -915
- 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-DYZnvAbs.d.ts} +96 -43
- package/dist/{define-block-BlHQxDIQ.d.ts → define-block-BHxLHLys.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-CKhygw4C.d.ts} +1 -1
- package/dist/{ended-EcTtzzQJ.d.ts → ended-De6H52nX.d.ts} +2 -2
- package/dist/{entitlements-AmYp2KHX.js → entitlements-C8UvF1Rz.js} +3 -3
- package/dist/{entitlements-Bn7BTnbg.d.ts → entitlements-CtBGXb3B.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-B6ru2Bt4.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-CHRwEYqt.d.ts → executor-BWgJNbGh.d.ts} +1 -1
- 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/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-Z-sgsdoN.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-C2oL4OaO.d.ts → framework-BQhTsLX-.d.ts} +7 -7
- package/dist/{framework-Cfm0IspZ.js → framework-C6PKBgme.js} +2 -2
- 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-DTQbC3CW.d.ts → index-1Vsg-7YV.d.ts} +1 -1
- package/dist/{index-8xwnaWHY.d.ts → index-BJLPQr2s.d.ts} +38 -5
- package/dist/{index-DL8z_oDo.d.ts → index-BpyBH5O2.d.ts} +4 -4
- package/dist/{index-Ck4oK5vV.d.ts → index-C-_fs7EI.d.ts} +8 -8
- package/dist/{index-BurdFUXr.d.ts → index-CXFf-c-j.d.ts} +7 -7
- package/dist/{index-MCXVzkXs.d.ts → index-Cm2-g_4H.d.ts} +5 -5
- package/dist/{index-DcijDfh1.d.ts → index-DTQSeHx2.d.ts} +4 -4
- package/dist/{index-D1kMyNc7.d.ts → index-Hc4tetmB.d.ts} +2 -2
- package/dist/{index-gXy3R1Uq.d.ts → index-QWTq2o31.d.ts} +1 -1
- package/dist/{index-Cckxs8IE.d.ts → index-XcTBR4Gb.d.ts} +3 -3
- package/dist/{index-DMONTkSf.d.ts → index-k-rrfG1g.d.ts} +2 -2
- 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-De-EVRhw.d.ts} +4 -4
- package/dist/{kit-gqwkVhGU.js → kit-LTbHrWWD.js} +6 -6
- package/dist/{knowledge-BYtgA52P.d.ts → knowledge-B5zdpDD-.d.ts} +6 -6
- package/dist/{knowledge-CSNKLX-s.js → knowledge-BbdXOJvY.js} +4 -4
- 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-aXr2WkGA.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-B1hZ7PPY.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-BCDIbC_U.d.ts} +2 -2
- package/dist/{ports-B53rB7zg.d.ts → ports-P0A5wo_-.d.ts} +11 -11
- 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 +4 -4
- package/dist/preset/index.js +3 -3
- package/dist/{preset-BBrL6_Ln.js → preset-Cf0T9GRt.js} +49 -6
- 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-DXgx5oSA.d.ts} +2 -2
- package/dist/{push-token-CDMgWT13.d.ts → push-token-y1Gnz5bQ.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-Bdr1k47u.d.ts → refusal-C7geIBRl.d.ts} +1 -1
- package/dist/{refusal-Ch-u9dVd.js → refusal-CFpfmjcS.js} +4 -4
- package/dist/{resolve-CAR9oaKW.js → resolve-AtncaPTU.js} +17 -9
- package/dist/{resolve-7atr-wWr.d.ts → resolve-Ceft-18-.d.ts} +9 -5
- 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-Bxvgmx-n.d.ts} +2 -2
- package/dist/{resource-types-CC59gMHE.d.ts → resource-types-LW1i5-h3.d.ts} +6 -6
- package/dist/{resources-B7htXQeg.js → resources-Ck7itNeX.js} +3 -3
- package/dist/{resources-B71O7EVQ.d.ts → resources-D3_FAz_H.d.ts} +2 -2
- package/dist/{respond-Cdg5ibH5.d.ts → respond-BSL36dQp.d.ts} +3 -3
- package/dist/{respond-Dpx48ATq.js → respond-Bhp3G__q.js} +5 -5
- 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 +38 -30
- package/dist/server/index.js +19 -64
- package/dist/{server-types-fXwJoFjt.d.ts → server-types-fLdep4gb.d.ts} +50 -30
- package/dist/{session-Djo5t4KQ.d.ts → session-DObioXpX.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-CWotGxcG.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-CT1Jnwp8.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 +17 -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-BUChuOxL.d.ts} +2 -2
- package/dist/{subject-readers-DDyPTIOr.js → subject-readers-BpwUFJtp.js} +1 -1
- package/dist/{support-BsqhV6jP.js → support-C2wPYwD7.js} +8 -8
- package/dist/{support-view-CznLe4jq.d.ts → support-view-Bj_lZ8Wr.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-sS4X66yL.d.ts} +1 -1
- package/dist/sveltekit/index.d.ts +13 -13
- package/dist/sveltekit/index.js +7 -7
- package/dist/{tags-DGldvcA4.js → tags-BqgaxCnv.js} +5 -5
- package/dist/{tags-7NHyD1P8.d.ts → tags-BrGopDVG.d.ts} +1 -1
- 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-DZMLVuyQ.d.ts} +2 -2
- package/dist/testing/index.d.ts +134 -60
- package/dist/testing/index.js +251 -120
- package/dist/{topic-Dgs-eSYQ.d.ts → topic-DAY_HOX2.d.ts} +20 -6
- package/dist/{topic-DB-1YTMj.js → topic-mee21pux.js} +85 -17
- package/dist/{types-C_GN-4ed.d.ts → types-BA1eTvy4.d.ts} +5 -5
- package/dist/{types-P1S1cj6N.d.ts → types-BEEFkNFY.d.ts} +7 -7
- package/dist/{types-DZj8CZMH.d.ts → types-Bels39_u.d.ts} +10 -10
- package/dist/{types-BO8lVTun.d.ts → types-BrpW5ixT.d.ts} +8 -1
- package/dist/{types-DM8q3IOr.d.ts → types-DOC7wnh6.d.ts} +17 -8
- package/dist/{types-DOaUIJxW.d.ts → types-D_2rClz-.d.ts} +5 -5
- package/dist/{undo-0qM13zul.js → undo-B5LgpGLy.js} +4 -4
- package/dist/{undo-D42sPjCf.d.ts → undo-BsdYRox7.d.ts} +3 -3
- package/dist/upload-claim-BBFCZbBF.js +33 -0
- 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-ClkzMGTP.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-DU4p9-Ve.d.ts} +4 -4
- package/dist/{verify-C9D_jjsQ.js → verify-DnU-uWU2.js} +5 -5
- package/dist/{version-Bxj_xcUY.js → version-DSWxci83.js} +1 -1
- package/dist/{view-DZ63nqwt.js → view-CYX1wsgp.js} +3 -3
- package/dist/{view-SuASaomx.d.ts → view-KQhe6eNc.d.ts} +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-BUo1oove.d.ts} +1 -1
- package/dist/{watch-D1wwzZ04.d.ts → watch-5btote1y.d.ts} +6 -6
- package/dist/{watch-Blj1mQ9n.js → watch-BAuIzC2r.js} +1 -1
- package/dist/{watch-topic-D-rpUg5n.d.ts → watch-topic-C79ZW5-R.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-CWdCWj7M.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/cli-commands-v1.json +15 -0
- package/schemas/config-v1.json +47 -3
- package/schemas/doctor-report-v1.json +4 -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
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { n as DbException, t as escapeLike } from "./escape-like-
|
|
3
|
-
import { A as
|
|
4
|
-
import { A as
|
|
5
|
-
import { C as Selection, D as not, E as column, O as or, S as SelectOp, T as and, _ as MutationOp, a as AggregateFn, b as Quantifier, c as Condition, d as FunctionSource, f as Include, g as MutationKind, h as MutationIntent, i as RpcContext, l as CountMode, m as Measure, n as ExecuteResult, o as Aggregation, p as InsertOp, r as Executor, s as ColumnOp, t as ExecuteContext, u as DeleteOp, v as Operation, w as UpdateOp, x as SelectColumn, y as OrderTerm } from "./executor-
|
|
6
|
-
import { O as BlockEventType, T as BlockEvent, a as EventHandler, c as MutationNotice, d as RpcNotice, i as ErrorEvent, l as QueryEvent, n as AuthOutageEvent, o as EventHub, r as BetterSupabaseEvents, s as EventName, t as AuthEvent, u as RefreshEvent, wt as Events, xt as EventMap } from "./events-
|
|
7
|
-
import { a as ExtensionOf, c as MutationEvent, d as Plugin, f as RepositoryApi, g as definePlugin, h as WithExtension, i as CallOptions, l as NoExtension, m as RequestContext, n as AnyPlugin, o as HasFlag, p as RepositoryExtension, r as ApplyExtension, s as HookArgs, t as Actor, u as PLUGIN_API_VERSION } from "./plugin-
|
|
2
|
+
import { n as DbException, t as escapeLike } from "./escape-like-B339PlP-.js";
|
|
3
|
+
import { A as isConflict, C as DbErrorMatchers, D as ValidationIssue, E as RawDbError, F as statusOf, M as isForeignKey, N as mapDbError, O as dbError, P as matchDbError, S as DbErrorKinds, T as ErrorMapper, _ as ok, a as BetterResultOk, b as DbError, c as DbErrorClasses, d as Ok, f as Result, g as fromBetterResult, h as err, i as BetterResultErrors, j as isDbError, k as isCheck, l as Err, m as defineBetterResultErrors, n as BetterResultApi, o as BetterResultValue, r as BetterResultErr, s as DbErrorClass, t as AsyncResult, u as MappedDbError, v as toBetterResult, w as DbErrorOf, x as DbErrorKind, y as toDbError } from "./result-BREt7qOh.js";
|
|
4
|
+
import { A as RelationTypes, B as TableKey, C as ModelFlags, D as PrimaryKeyValue, E as PrimaryKeyColumn, F as SchemaMeta, G as Update, H as UniqueConstraint, I as Simplify, K as WritableColumns, L as SubjectRef, M as ResultColumn, N as Row, O as RealtimeTableMeta, P as Schema, R as SubjectTypeOf, S as Insert, T as ModelsOf, U as UniqueKeyName, V as TableMeta, W as UniqueWhere, _ as FunctionResult, a as AnyModels, b as FunctionsOf, c as Casing, d as Codec, f as ColumnMeta, g as FunctionMeta, h as ForeignKeyConstraint, i as AnyFunctions, j as Relations, k as RelationMeta, l as CheckConstraint, m as Flags, n as AccessPolicySql, o as BucketMeta, p as DatabaseOf, r as AccessTopicPolicy, s as BucketPolicyName, t as AccessBucketPolicy, u as ClaimsMeta, v as FunctionSignature, w as ModelTypes, x as GeneratedColumns, y as FunctionTypes, z as TableFlags } from "./types-BrpW5ixT.js";
|
|
5
|
+
import { C as Selection, D as not, E as column, O as or, S as SelectOp, T as and, _ as MutationOp, a as AggregateFn, b as Quantifier, c as Condition, d as FunctionSource, f as Include, g as MutationKind, h as MutationIntent, i as RpcContext, l as CountMode, m as Measure, n as ExecuteResult, o as Aggregation, p as InsertOp, r as Executor, s as ColumnOp, t as ExecuteContext, u as DeleteOp, v as Operation, w as UpdateOp, x as SelectColumn, y as OrderTerm } from "./executor-BnMC0lj3.js";
|
|
6
|
+
import { O as BlockEventType, T as BlockEvent, a as EventHandler, c as MutationNotice, d as RpcNotice, i as ErrorEvent, l as QueryEvent, n as AuthOutageEvent, o as EventHub, r as BetterSupabaseEvents, s as EventName, t as AuthEvent, u as RefreshEvent, wt as Events, xt as EventMap } from "./events-P3raDX2E.js";
|
|
7
|
+
import { a as ExtensionOf, c as MutationEvent, d as Plugin, f as RepositoryApi, g as definePlugin, h as WithExtension, i as CallOptions, l as NoExtension, m as RequestContext, n as AnyPlugin, o as HasFlag, p as RepositoryExtension, r as ApplyExtension, s as HookArgs, t as Actor, u as PLUGIN_API_VERSION } from "./plugin-D-95Q0w0.js";
|
|
8
8
|
import { i as silentLogger, n as Logger, r as consoleLogger, t as LogFields } from "./logger-DWVYUmwi.js";
|
|
9
|
-
import { n as validate, t as StandardSchemaV1 } from "./standard-
|
|
10
|
-
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, t as BlockProblemOptions, u as problemResponse } from "./problem-
|
|
9
|
+
import { n as validate, t as StandardSchemaV1 } from "./standard-BcUQuUgu.js";
|
|
10
|
+
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, t as BlockProblemOptions, u as problemResponse } from "./problem-DCDIQiTA.js";
|
|
11
11
|
import { t as SPEC_PINS } from "./spec-pins-Dqpml2dZ.js";
|
|
12
|
-
import { Q as StoragePath } from "./
|
|
13
|
-
import { $ as ReadSetParams, At as NumericMeasureArg, B as UpsertArgs, Bt as WhereInput, C as ManyReturningArgs, Ct as FindOnlyArgs, D as OffsetRangeArgs, Dt as MeasureArg, E as OffsetPageArgs, Et as JsonPathOps, F as RepositoryOf, Ft as RelationMeasureArg, Gt as EMPTY_STATS, H as WriteArgs, Ht as RpcDefinition, I as Returned, It as RequestArgs, J as ReadSetAuth, K as InferReadSetParams, Kt as StatsRecorder, Lt as SelectArg, Mt as OrderByInput, Nt as Payload, Ot as MeasureKey, P as Repository, Pt as ReadArgs, Q as ReadSetParamValue, R as RpcOptions, Rt as SortDirection, S as ManyResult, St as FindManyArgs, T as OffsetPage, Tt as IncludeArgs, U as WriteManyArgs, Ut as SupabaseOptions, V as UpsertManyArgs, Vt as ConnectOptions, W as SearchArgs, Wt as DbStats, X as ReadSetParamType, Y as ReadSetOptions, Z as ReadSetParamTypes, _ as Db, _t as ColumnOrderByArg, a as explainPostgrest, at as QuerySpec, b as DeleteExt, bt as FieldFilter, c as CacheTarget, ct as TableSpecs, d as memoryCache, dt as AggregateArgs, et as ReadSetResult, f as rowKey, ft as AggregateOrderBy, g as CursorPageArgs, gt as ColumnOrderBy, h as CursorPage, ht as AggregateRow, i as PostgrestExecutorOptions, it as InferResult, j as PageOf, jt as OrderByArg, kt as MutableWhere, l as MemoryCache, lt as isQuerySpec, m as ConflictTarget, mt as AggregateResult, n as defineSupabase, nt as isReadSet, o as postgrestExecutor, ot as ReadMethod, p as rpcCacheTargets, pt as AggregateOrderByArg, q as ReadSet, qt as recordStats, r as PostgrestClientLike, rt as readSetTables, s as CacheAdapter, st as Specs, t as BetterSupabase, tt as defineReadSet, u as cacheTargetOf, ut as specTables, v as DbHelpers, vt as CountArg, wt as IncludeArg, x as FindExt, xt as FindFirstArgs, y as DeleteArgs, yt as CountArgs, z as UpdateArgs, zt as SortSpec } from "./define-
|
|
14
|
-
import { a as PostgrestPlan, n as PlanLimit, o as compilePostgrest, r as PlanOrder, t as PlanFilter } from "./postgrest-
|
|
15
|
-
import { n as postgrestCompiler, t as Compiler } from "./compiler-
|
|
12
|
+
import { Q as StoragePath } from "./bucket-BbePDVwc.js";
|
|
13
|
+
import { $ as ReadSetParams, At as NumericMeasureArg, B as UpsertArgs, Bt as WhereInput, C as ManyReturningArgs, Ct as FindOnlyArgs, D as OffsetRangeArgs, Dt as MeasureArg, E as OffsetPageArgs, Et as JsonPathOps, F as RepositoryOf, Ft as RelationMeasureArg, Gt as EMPTY_STATS, H as WriteArgs, Ht as RpcDefinition, I as Returned, It as RequestArgs, J as ReadSetAuth, Jt as BucketRegistry, K as InferReadSetParams, Kt as StatsRecorder, Lt as SelectArg, Mt as OrderByInput, Nt as Payload, Ot as MeasureKey, P as Repository, Pt as ReadArgs, Q as ReadSetParamValue, R as RpcOptions, Rt as SortDirection, S as ManyResult, St as FindManyArgs, T as OffsetPage, Tt as IncludeArgs, U as WriteManyArgs, Ut as SupabaseOptions, V as UpsertManyArgs, Vt as ConnectOptions, W as SearchArgs, Wt as DbStats, X as ReadSetParamType, Y as ReadSetOptions, Yt as BucketsHelper, Z as ReadSetParamTypes, _ as Db, _t as ColumnOrderByArg, a as explainPostgrest, at as QuerySpec, b as DeleteExt, bt as FieldFilter, c as CacheTarget, ct as TableSpecs, d as memoryCache, dt as AggregateArgs, et as ReadSetResult, f as rowKey, ft as AggregateOrderBy, g as CursorPageArgs, gt as ColumnOrderBy, h as CursorPage, ht as AggregateRow, i as PostgrestExecutorOptions, it as InferResult, j as PageOf, jt as OrderByArg, kt as MutableWhere, l as MemoryCache, lt as isQuerySpec, m as ConflictTarget, mt as AggregateResult, n as defineSupabase, nt as isReadSet, o as postgrestExecutor, ot as ReadMethod, p as rpcCacheTargets, pt as AggregateOrderByArg, q as ReadSet, qt as recordStats, r as PostgrestClientLike, rt as readSetTables, s as CacheAdapter, st as Specs, t as BetterSupabase, tt as defineReadSet, u as cacheTargetOf, ut as specTables, v as DbHelpers, vt as CountArg, wt as IncludeArg, x as FindExt, xt as FindFirstArgs, y as DeleteArgs, yt as CountArgs, z as UpdateArgs, zt as SortSpec } from "./define-DYZnvAbs.js";
|
|
14
|
+
import { a as PostgrestPlan, n as PlanLimit, o as compilePostgrest, r as PlanOrder, t as PlanFilter } from "./postgrest-CjnO1hbr.js";
|
|
15
|
+
import { n as postgrestCompiler, t as Compiler } from "./compiler-D_Gjpw_O.js";
|
|
16
16
|
import { StandardJSONSchemaV1, StandardSchemaV1 as StandardSchemaV1$1 } from "@standard-schema/spec";
|
|
17
17
|
//#region src/core/table-json-schema.d.ts
|
|
18
18
|
/** Validator for one scalar, independent of the target library. */
|
|
@@ -246,4 +246,4 @@ export declare function toCamel(name: string): string;
|
|
|
246
246
|
/** `firstName` to `first_name`. */
|
|
247
247
|
export declare function toSnake(name: string): string;
|
|
248
248
|
//#endregion
|
|
249
|
-
export { type AccessBucketPolicy, type AccessPolicySql, type AccessTopicPolicy, type Actor, type AggregateArgs, type AggregateFn, type AggregateOrderBy, type AggregateOrderByArg, type AggregateResult, type AggregateRow, type Aggregation, type AnyFunctions, type AnyModels, type AnyPlugin, type ApplyExtension, AsyncResult, type AuthEvent, type AuthOutageEvent, type BetterResultApi, type BetterResultErr, type BetterResultErrors, type BetterResultOk, type BetterResultValue, BetterSupabase, type BetterSupabaseEvents, type BlockEvent, type BlockEventType, type BlockProblemOptions, type BucketMeta, type BucketPolicyName, type CacheAdapter, type CacheTarget, type CallOptions, type Casing, type CheckConstraint, type ClaimsMeta, type Codec, type ColumnMeta, type ColumnOp, type ColumnOrderBy, type ColumnOrderByArg, type Compiler, type Condition, type ConflictTarget, type ConnectOptions, type CountArg, type CountArgs, type CountMode, type CursorPage, type CursorPageArgs, type DatabaseOf, type Db, type DbError, type DbErrorClass, type DbErrorClasses, type DbErrorKind, type DbErrorKinds, type DbErrorOf, DbException, type DbHelpers, type DbStats, type DeleteArgs, type DeleteExt, type DeleteOp, EMPTY_STATS, type EnrichDatabase, type Err, type ErrorEvent, type ErrorMapper, type ErrorMessages, type EventHandler, EventHub, type EventMap, type EventName, type Events, type ExecuteContext, type ExecuteResult, type Executor, type ExtensionOf, type FieldFilter, type FieldSpec, type FindExt, type FindFirstArgs, type FindManyArgs, type FindOnlyArgs, type Flags, type ForeignKeyConstraint, type FunctionMeta, type FunctionResult, type FunctionSignature, type FunctionSource, type FunctionTypes, type FunctionsOf, type HasFlag, type HookArgs, type Include, type IncludeArg, type IncludeArgs, type InferReadSetParams, type InferResult, type Insert, type InsertOp, type JsonPathOps, type LogFields, type Logger, type ManyResult, type ManyReturningArgs, type MappedDbError, type Measure, type MeasureArg, type MeasureKey, type MemoryCache, type ModelFlags, type ModelTypes, type ModelsOf, type MutableWhere, type MutationEvent, type MutationIntent, type MutationKind, type MutationNotice, type MutationOp, type NoExtension, type NumericMeasureArg, type OffsetPage, type OffsetPageArgs, type OffsetRangeArgs, type Ok, type Operation, type OrderByArg, type OrderByInput, type OrderTerm, PLUGIN_API_VERSION, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PageOf, type Payload, type PlanFilter, type PlanLimit, type PlanOrder, type Plugin, type Policy, type PolicyDecision, type PostgrestClientLike, type PostgrestExecutorOptions, type PostgrestPlan, type PrimaryKeyColumn, type PrimaryKeyValue, type ProblemDetails, type ProblemFormat, type ProblemOptions, type ProblemResponseOptions, type Quantifier, type QueryEvent, type QuerySpec, type RawDbError, type ReadArgs, type ReadMethod, type ReadSet, type ReadSetAuth, type ReadSetOptions, type ReadSetParamType, type ReadSetParamTypes, type ReadSetParamValue, type ReadSetParams, type ReadSetResult, type RealtimeTableMeta, type RefreshEvent, type RelationMeasureArg, type RelationMeta, type RelationTypes, type Relations, type Repository, type RepositoryApi, type RepositoryExtension, type RepositoryOf, type RequestArgs, type RequestContext, type Result, type ResultColumn, type Returned, type Row, type RpcContext, type RpcDefinition, type RpcNotice, type RpcOptions, SPEC_PINS, type Schema, type SchemaMeta, type ScopeFor, type SearchArgs, type SelectArg, type SelectColumn, type SelectOp, type Selection, type Simplify, type SortDirection, type SortSpec, type Specs, type StandardJSONSchemaV1, type StandardSchemaV1, StatsRecorder, type StoragePath, type SubjectRef, type SubjectTypeOf, type SupabaseOptions, type TableFlags, type TableKey, type TableMeta, type TableRepositoryExtension, type TableSchema, type TableSchemaSpec, type TableSpecs, type UniqueConstraint, type UniqueKeyName, type UniqueWhere, type Update, type UpdateArgs, type UpdateOp, type UpsertArgs, type UpsertManyArgs, type ValidationIssue, type WhereInput, type WithExtension, type WriteArgs, type WriteManyArgs, and, cacheTargetOf, column, compilePostgrest, consoleLogger, dbError, defineBetterResultErrors, definePlugin, defineReadSet, defineSupabase, err, escapeLike, explainPostgrest, fromBetterResult, fromProblem, isCheck, isConflict, isDbError, isForeignKey, isProblem, isQuerySpec, isReadSet, mapDbError, memoryCache, not, ok, or, postgrestCompiler, postgrestExecutor, problemResponse, readSetTables, recordStats, rowKey, rpcCacheTargets, silentLogger, specTables, statusOf, toBetterResult, toDbError, toProblem, validate };
|
|
249
|
+
export { type AccessBucketPolicy, type AccessPolicySql, type AccessTopicPolicy, type Actor, type AggregateArgs, type AggregateFn, type AggregateOrderBy, type AggregateOrderByArg, type AggregateResult, type AggregateRow, type Aggregation, type AnyFunctions, type AnyModels, type AnyPlugin, type ApplyExtension, AsyncResult, type AuthEvent, type AuthOutageEvent, type BetterResultApi, type BetterResultErr, type BetterResultErrors, type BetterResultOk, type BetterResultValue, BetterSupabase, type BetterSupabaseEvents, type BlockEvent, type BlockEventType, type BlockProblemOptions, type BucketMeta, type BucketPolicyName, type BucketRegistry, type BucketsHelper, type CacheAdapter, type CacheTarget, type CallOptions, type Casing, type CheckConstraint, type ClaimsMeta, type Codec, type ColumnMeta, type ColumnOp, type ColumnOrderBy, type ColumnOrderByArg, type Compiler, type Condition, type ConflictTarget, type ConnectOptions, type CountArg, type CountArgs, type CountMode, type CursorPage, type CursorPageArgs, type DatabaseOf, type Db, type DbError, type DbErrorClass, type DbErrorClasses, type DbErrorKind, type DbErrorKinds, type DbErrorMatchers, type DbErrorOf, DbException, type DbHelpers, type DbStats, type DeleteArgs, type DeleteExt, type DeleteOp, EMPTY_STATS, type EnrichDatabase, type Err, type ErrorEvent, type ErrorMapper, type ErrorMessages, type EventHandler, EventHub, type EventMap, type EventName, type Events, type ExecuteContext, type ExecuteResult, type Executor, type ExtensionOf, type FieldFilter, type FieldSpec, type FindExt, type FindFirstArgs, type FindManyArgs, type FindOnlyArgs, type Flags, type ForeignKeyConstraint, type FunctionMeta, type FunctionResult, type FunctionSignature, type FunctionSource, type FunctionTypes, type FunctionsOf, type GeneratedColumns, type HasFlag, type HookArgs, type Include, type IncludeArg, type IncludeArgs, type InferReadSetParams, type InferResult, type Insert, type InsertOp, type JsonPathOps, type LogFields, type Logger, type ManyResult, type ManyReturningArgs, type MappedDbError, type Measure, type MeasureArg, type MeasureKey, type MemoryCache, type ModelFlags, type ModelTypes, type ModelsOf, type MutableWhere, type MutationEvent, type MutationIntent, type MutationKind, type MutationNotice, type MutationOp, type NoExtension, type NumericMeasureArg, type OffsetPage, type OffsetPageArgs, type OffsetRangeArgs, type Ok, type Operation, type OrderByArg, type OrderByInput, type OrderTerm, PLUGIN_API_VERSION, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, type PageOf, type Payload, type PlanFilter, type PlanLimit, type PlanOrder, type Plugin, type Policy, type PolicyDecision, type PostgrestClientLike, type PostgrestExecutorOptions, type PostgrestPlan, type PrimaryKeyColumn, type PrimaryKeyValue, type ProblemDetails, type ProblemFormat, type ProblemOptions, type ProblemResponseOptions, type Quantifier, type QueryEvent, type QuerySpec, type RawDbError, type ReadArgs, type ReadMethod, type ReadSet, type ReadSetAuth, type ReadSetOptions, type ReadSetParamType, type ReadSetParamTypes, type ReadSetParamValue, type ReadSetParams, type ReadSetResult, type RealtimeTableMeta, type RefreshEvent, type RelationMeasureArg, type RelationMeta, type RelationTypes, type Relations, type Repository, type RepositoryApi, type RepositoryExtension, type RepositoryOf, type RequestArgs, type RequestContext, type Result, type ResultColumn, type Returned, type Row, type RpcContext, type RpcDefinition, type RpcNotice, type RpcOptions, SPEC_PINS, type Schema, type SchemaMeta, type ScopeFor, type SearchArgs, type SelectArg, type SelectColumn, type SelectOp, type Selection, type Simplify, type SortDirection, type SortSpec, type Specs, type StandardJSONSchemaV1, type StandardSchemaV1, StatsRecorder, type StoragePath, type SubjectRef, type SubjectTypeOf, type SupabaseOptions, type TableFlags, type TableKey, type TableMeta, type TableRepositoryExtension, type TableSchema, type TableSchemaSpec, type TableSpecs, type UniqueConstraint, type UniqueKeyName, type UniqueWhere, type Update, type UpdateArgs, type UpdateOp, type UpsertArgs, type UpsertManyArgs, type ValidationIssue, type WhereInput, type WithExtension, type WritableColumns, type WriteArgs, type WriteManyArgs, and, cacheTargetOf, column, compilePostgrest, consoleLogger, dbError, defineBetterResultErrors, definePlugin, defineReadSet, defineSupabase, err, escapeLike, explainPostgrest, fromBetterResult, fromProblem, isCheck, isConflict, isDbError, isForeignKey, isProblem, isQuerySpec, isReadSet, mapDbError, matchDbError, memoryCache, not, ok, or, postgrestCompiler, postgrestExecutor, problemResponse, readSetTables, recordStats, rowKey, rpcCacheTargets, silentLogger, specTables, statusOf, toBetterResult, toDbError, toProblem, validate };
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as DbException } from "./db-exception-CnWcYPxL.js";
|
|
2
|
-
import { a as isConflict, c as mapDbError, i as isCheck, l as
|
|
3
|
-
import { i as tableMeta, r as defineSchema } from "./build-
|
|
2
|
+
import { a as isConflict, c as mapDbError, i as isCheck, l as matchDbError, n as dbError, o as isDbError, s as isForeignKey, u as statusOf } from "./errors-BV1SKTVs.js";
|
|
3
|
+
import { i as tableMeta, r as defineSchema } from "./build-C-D_vn0U.js";
|
|
4
4
|
import { t as escapeLike } from "./escape-like-DHfx6jRr.js";
|
|
5
5
|
import { i as or, n as column, r as not, t as and } from "./types-R6syp1el.js";
|
|
6
6
|
import { a as isPlainTime, i as isPlainDateTime, l as provideTemporal, n as isInstant, o as isZonedDateTime, r as isPlainDate } from "./temporal-CB5Fpo5d.js";
|
|
7
|
-
import { i as encodeValue } from "./wire-
|
|
8
|
-
import { a as ok, i as fromBetterResult, n as defineBetterResultErrors, o as toBetterResult, r as err, s as toDbError, t as AsyncResult } from "./result-
|
|
9
|
-
import { a as decodeRows, c as rowKey, i as encodeCursor, l as rpcCacheTargets, n as defineSupabase, o as cacheTargetOf, r as decodeCursor, s as memoryCache, t as BetterSupabase } from "./define-
|
|
7
|
+
import { i as encodeValue } from "./wire-BCJxCtHS.js";
|
|
8
|
+
import { a as ok, i as fromBetterResult, n as defineBetterResultErrors, o as toBetterResult, r as err, s as toDbError, t as AsyncResult } from "./result-DIeYscA3.js";
|
|
9
|
+
import { a as decodeRows, c as rowKey, i as encodeCursor, l as rpcCacheTargets, n as defineSupabase, o as cacheTargetOf, r as decodeCursor, s as memoryCache, t as BetterSupabase } from "./define-Bu1v781m.js";
|
|
10
10
|
import { n as touchedTables, t as invalidationTargets } from "./tables-Cb-3_VWc.js";
|
|
11
11
|
import { n as silentLogger, t as consoleLogger } from "./logger-glM28NVN.js";
|
|
12
12
|
import { t as EventHub } from "./events-xbpHkcK9.js";
|
|
13
13
|
import { r as definePlugin, t as PLUGIN_API_VERSION } from "./plugin-tfXW1-qO.js";
|
|
14
14
|
import { t as simplify } from "./simplify-DDO0j0LI.js";
|
|
15
|
-
import { a as postgrestExecutor, i as explainPostgrest, n as StatsRecorder, r as recordStats, t as EMPTY_STATS, u as compilePostgrest } from "./stats-
|
|
16
|
-
import { c as readSetTables, d as isQuerySpec, f as specTables, i as defineReadSet, o as isReadSet } from "./read-set-
|
|
17
|
-
import { n as validate } from "./standard-
|
|
18
|
-
import { c as toProblem, i as isProblem, n as PROBLEM_TYPE_BASE, o as problemResponse, r as fromProblem, t as PROBLEM_CONTENT_TYPE } from "./problem-
|
|
15
|
+
import { a as postgrestExecutor, i as explainPostgrest, n as StatsRecorder, r as recordStats, t as EMPTY_STATS, u as compilePostgrest } from "./stats-Di5VAsYU.js";
|
|
16
|
+
import { c as readSetTables, d as isQuerySpec, f as specTables, i as defineReadSet, o as isReadSet } from "./read-set-DeesfeL_.js";
|
|
17
|
+
import { n as validate } from "./standard-B1BigegP.js";
|
|
18
|
+
import { c as toProblem, i as isProblem, n as PROBLEM_TYPE_BASE, o as problemResponse, r as fromProblem, t as PROBLEM_CONTENT_TYPE } from "./problem-JRCohp1j.js";
|
|
19
19
|
import { n as tableSchema } from "./table-schema-pQlER3jj.js";
|
|
20
20
|
import { t as SPEC_PINS } from "./spec-pins-S4PymRxp.js";
|
|
21
21
|
import { n as scopeOperation, r as scopeSelection, t as scopeCondition } from "./scope-DgWjuXUw.js";
|
|
@@ -80,4 +80,4 @@ function toSnake(name) {
|
|
|
80
80
|
return name.replaceAll(/([a-z0-9])([A-Z])/g, "$1_$2").replaceAll(/([A-Z])([A-Z][a-z])/g, "$1_$2").toLowerCase();
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
|
-
export { AsyncResult, BetterSupabase, DbException, EMPTY_STATS, EventHub, PLUGIN_API_VERSION, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, SPEC_PINS, StatsRecorder, and, cacheTargetOf, column, compilePostgrest, consoleLogger, createErrorMessages, dbError, decodeCursor, decodeRows, defineBetterResultErrors, definePlugin, defineReadSet, defineRepository, defineSchema, defineSupabase, encodeCursor, encodeValue, err, escapeLike, explainPostgrest, fromBetterResult, fromProblem, invalidationTargets, isCheck, isConflict, isDbError, isForeignKey, isInstant, isPlainDate, isPlainDateTime, isPlainTime, isProblem, isQuerySpec, isReadSet, isZonedDateTime, mapDbError, memoryCache, not, ok, or, postgrestCompiler, postgrestExecutor, problemResponse, provideTemporal, readSetTables, recordStats, rowKey, rpcCacheTargets, scopeCondition, scopeOperation, scopeSelection, silentLogger, simplify, specTables, statusOf, tableMeta, tableSchema, toBetterResult, toCamel, toDbError, toProblem, toSnake, touchedTables, validate };
|
|
83
|
+
export { AsyncResult, BetterSupabase, DbException, EMPTY_STATS, EventHub, PLUGIN_API_VERSION, PROBLEM_CONTENT_TYPE, PROBLEM_TYPE_BASE, SPEC_PINS, StatsRecorder, and, cacheTargetOf, column, compilePostgrest, consoleLogger, createErrorMessages, dbError, decodeCursor, decodeRows, defineBetterResultErrors, definePlugin, defineReadSet, defineRepository, defineSchema, defineSupabase, encodeCursor, encodeValue, err, escapeLike, explainPostgrest, fromBetterResult, fromProblem, invalidationTargets, isCheck, isConflict, isDbError, isForeignKey, isInstant, isPlainDate, isPlainDateTime, isPlainTime, isProblem, isQuerySpec, isReadSet, isZonedDateTime, mapDbError, matchDbError, memoryCache, not, ok, or, postgrestCompiler, postgrestExecutor, problemResponse, provideTemporal, readSetTables, recordStats, rowKey, rpcCacheTargets, scopeCondition, scopeOperation, scopeSelection, silentLogger, simplify, specTables, statusOf, tableMeta, tableSchema, toBetterResult, toCamel, toDbError, toProblem, toSnake, touchedTables, validate };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { n as dbError } from "./errors-BV1SKTVs.js";
|
|
2
|
+
import { a as ok, r as err } from "./result-DIeYscA3.js";
|
|
3
|
+
import { a as jwksOf } from "./jws-CwBB5QAT.js";
|
|
4
|
+
//#region src/core/jwks-cache.ts
|
|
5
|
+
/** The most bytes read from a JWKS response. */
|
|
6
|
+
const MAX_JWKS_BYTES = 262144;
|
|
7
|
+
/**
|
|
8
|
+
* A cached key set. A URL is fetched on first use and again after
|
|
9
|
+
* `cacheSeconds`; a refresh for an unknown `kid` refetches at most once per
|
|
10
|
+
* `refetchSeconds`, so a stream of forged `kid`s can't hammer the issuer.
|
|
11
|
+
* Concurrent callers share one fetch.
|
|
12
|
+
*/
|
|
13
|
+
function jwksSource(input, options = {}) {
|
|
14
|
+
const parse = (value) => jwksOf(value, options.rsa === void 0 ? {} : { rsa: options.rsa });
|
|
15
|
+
if (!(input instanceof URL) && typeof input !== "function") {
|
|
16
|
+
const keys = parse(input);
|
|
17
|
+
return () => Promise.resolve(ok(keys));
|
|
18
|
+
}
|
|
19
|
+
const now = options.now ?? Date.now;
|
|
20
|
+
const cacheMs = (options.cacheSeconds ?? 300) * 1e3;
|
|
21
|
+
const refetchMs = (options.refetchSeconds ?? 30) * 1e3;
|
|
22
|
+
let cached;
|
|
23
|
+
let pending;
|
|
24
|
+
const load = async () => {
|
|
25
|
+
if (typeof input === "function") return ok(parse(await input()));
|
|
26
|
+
const response = await (options.fetch ?? fetch)(input, { headers: { accept: "application/jwk-set+json, application/json" } });
|
|
27
|
+
if (!response.ok) return err(dbError("network", `The JWKS answered ${response.status}`, { code: "JWKS_FETCH_FAILED" }));
|
|
28
|
+
const text = await response.text();
|
|
29
|
+
if (text.length > MAX_JWKS_BYTES) return err(dbError("network", "The JWKS response is too large", { code: "JWKS_FETCH_FAILED" }));
|
|
30
|
+
return ok(parse(JSON.parse(text)));
|
|
31
|
+
};
|
|
32
|
+
return async (refresh) => {
|
|
33
|
+
const age = cached ? now() - cached.at : Number.POSITIVE_INFINITY;
|
|
34
|
+
if (cached && age < (refresh ? refetchMs : cacheMs)) return ok(cached.keys);
|
|
35
|
+
pending ??= load().catch((cause) => err(dbError("network", `The JWKS could not be loaded: ${cause instanceof Error ? cause.message : String(cause)}`, { code: "JWKS_FETCH_FAILED" }))).then((result) => {
|
|
36
|
+
if (result.ok) cached = {
|
|
37
|
+
keys: result.data,
|
|
38
|
+
at: now()
|
|
39
|
+
};
|
|
40
|
+
return result;
|
|
41
|
+
}).finally(() => {
|
|
42
|
+
pending = void 0;
|
|
43
|
+
});
|
|
44
|
+
const result = await pending;
|
|
45
|
+
return !result.ok && cached ? ok(cached.keys) : result;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { jwksSource as t };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
2
|
-
import { a as toBase64Url, r as fromBase64 } from "./base64-
|
|
2
|
+
import { a as toBase64Url, r as fromBase64 } from "./base64-D4aqdnDR.js";
|
|
3
3
|
//#region src/core/jws.ts
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
let encoderInstance;
|
|
5
|
+
let decoderInstance;
|
|
6
|
+
const encoder = { encode: (text) => (encoderInstance ??= new TextEncoder()).encode(text) };
|
|
7
|
+
const decoder = { decode: (bytes) => (decoderInstance ??= new TextDecoder()).decode(bytes) };
|
|
6
8
|
const EC = {
|
|
7
9
|
name: "ECDSA",
|
|
8
10
|
namedCurve: "P-256"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as DbError } from "./result-
|
|
2
|
-
import { r as AuthState } from "./resolve-
|
|
3
|
-
import { t as AuthSession } from "./view-
|
|
4
|
-
import { r as GuardOptions } from "./respond-
|
|
1
|
+
import { b as DbError } from "./result-BREt7qOh.js";
|
|
2
|
+
import { r as AuthState } from "./resolve-Ceft-18-.js";
|
|
3
|
+
import { t as AuthSession } from "./view-KQhe6eNc.js";
|
|
4
|
+
import { r as GuardOptions } from "./respond-BSL36dQp.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/server/kit.d.ts
|
|
7
7
|
/** What a server action returns: plain data, safe across any serialization boundary. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as dbError } from "./errors-
|
|
2
|
-
import { n as validate } from "./standard-
|
|
1
|
+
import { n as dbError } from "./errors-BV1SKTVs.js";
|
|
2
|
+
import { n as validate } from "./standard-B1BigegP.js";
|
|
3
3
|
import { n as claimAt } from "./claims-PqzCxaTD.js";
|
|
4
|
-
import { t as authContext } from "./context-
|
|
5
|
-
import { n as toSession } from "./view-
|
|
6
|
-
import { o as settle, r as guard } from "./respond-
|
|
7
|
-
import { n as checkPermission } from "./authorizer-
|
|
4
|
+
import { t as authContext } from "./context-BiwgsycK.js";
|
|
5
|
+
import { n as toSession } from "./view-CYX1wsgp.js";
|
|
6
|
+
import { o as settle, r as guard } from "./respond-Bhp3G__q.js";
|
|
7
|
+
import { n as checkPermission } from "./authorizer-B3yyCVUF.js";
|
|
8
8
|
//#region src/server/kit.ts
|
|
9
9
|
/** `FormData` as a plain object; repeated keys become arrays. */
|
|
10
10
|
function formDataObject(form) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import {
|
|
2
|
+
import { T as ErrorMapper, t as AsyncResult } from "./result-BREt7qOh.js";
|
|
3
3
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
4
|
-
import { t as BlockTransport } from "./block-transport-
|
|
5
|
-
import { r as BlockTemporalOptions } from "./block-helpers-
|
|
6
|
-
import { n as BlockHooks } from "./block-hooks-
|
|
7
|
-
import { f as AiFiles, o as AiFile } from "./types-
|
|
8
|
-
import { g as JobHandler } from "./types-
|
|
4
|
+
import { t as BlockTransport } from "./block-transport-DezJPPA0.js";
|
|
5
|
+
import { r as BlockTemporalOptions } from "./block-helpers-CjcQM1yA.js";
|
|
6
|
+
import { n as BlockHooks } from "./block-hooks-DcPJHztl.js";
|
|
7
|
+
import { f as AiFiles, o as AiFile } from "./types-DOC7wnh6.js";
|
|
8
|
+
import { g as JobHandler } from "./types-BEEFkNFY.js";
|
|
9
9
|
//#region src/blocks/knowledge/knowledge.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* Turns texts into vectors. `model` is stored with each document, so a
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as DbException } from "./db-exception-CnWcYPxL.js";
|
|
2
|
-
import { n as dbError } from "./errors-
|
|
3
|
-
import { a as ok, r as err, t as AsyncResult } from "./result-
|
|
2
|
+
import { n as dbError } from "./errors-BV1SKTVs.js";
|
|
3
|
+
import { a as ok, r as err, t as AsyncResult } from "./result-DIeYscA3.js";
|
|
4
4
|
import { t as vectorLiteral } from "./search-BtoWY6n_.js";
|
|
5
5
|
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
6
|
-
import { C as optionalText, D as recordOf, I as textOf, O as recordOrEmpty, f as errorText, h as instantOf, j as run, k as recordsOf, n as applyTemporal, o as blockCall, p as injectableOf } from "./block-helpers-
|
|
7
|
-
import { r as withBlockHooks } from "./block-hooks-
|
|
6
|
+
import { C as optionalText, D as recordOf, I as textOf, O as recordOrEmpty, f as errorText, h as instantOf, j as run, k as recordsOf, n as applyTemporal, o as blockCall, p as injectableOf } from "./block-helpers-DkVZNDrj.js";
|
|
7
|
+
import { r as withBlockHooks } from "./block-hooks-C22vuIUd.js";
|
|
8
8
|
//#region src/blocks/knowledge/knowledge.ts
|
|
9
9
|
const SCOPES = /* @__PURE__ */ new Set([
|
|
10
10
|
"organization",
|
package/dist/lint/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export interface RuleModule {
|
|
|
42
42
|
CallExpression(node: CallExpression): void;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
export type RuleId = "no-unbounded-find-many" | "no-delete-many-without-where" | "max-limit" | "require-order-by" | "unbounded-read" | "require-max-affected";
|
|
45
|
+
export type RuleId = "no-unbounded-find-many" | "no-delete-many-without-where" | "max-limit" | "require-order-by" | "unbounded-read" | "require-max-affected" | "require-escape-like";
|
|
46
46
|
/** The part of `supabase/snapshot.json` that `largeTables` reads. */
|
|
47
47
|
export interface LintSnapshot {
|
|
48
48
|
readonly extras: {
|
package/dist/lint/index.js
CHANGED
|
@@ -66,6 +66,42 @@ const FIND_METHODS = /* @__PURE__ */ new Set([
|
|
|
66
66
|
"findFirst",
|
|
67
67
|
"paginate"
|
|
68
68
|
]);
|
|
69
|
+
/** Whether `node` calls `escapeLike(...)`, imported bare or through a namespace. */
|
|
70
|
+
function isEscapeLike(node) {
|
|
71
|
+
if (node.type !== "CallExpression") return false;
|
|
72
|
+
const { callee } = node;
|
|
73
|
+
if (callee.type === "Identifier") return callee.name === "escapeLike";
|
|
74
|
+
return methodName(node) === "escapeLike";
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Whether a `like` or `ilike` value may carry a caller's `%` and `_`
|
|
78
|
+
* unescaped: a variable, a property, or a template or `+` concatenation
|
|
79
|
+
* with one that isn't wrapped in `escapeLike(...)`. Literals pass.
|
|
80
|
+
*/
|
|
81
|
+
function unescapedPattern(node) {
|
|
82
|
+
const part = (child) => !isEscapeLike(child) && unescapedPattern(child);
|
|
83
|
+
switch (node.type) {
|
|
84
|
+
case "Identifier":
|
|
85
|
+
case "MemberExpression": return true;
|
|
86
|
+
case "TemplateLiteral": return node.expressions.some(part);
|
|
87
|
+
case "BinaryExpression": {
|
|
88
|
+
const { operator, left, right } = node;
|
|
89
|
+
return operator === "+" && (part(left) || part(right));
|
|
90
|
+
}
|
|
91
|
+
default: return false;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/** Every `like` and `ilike` value in a `where` object, through `AND`, `OR`, `NOT` and relations. */
|
|
95
|
+
function likeValues(node) {
|
|
96
|
+
if (node.type === "ArrayExpression") return node.elements.flatMap((element) => element ? likeValues(element) : []);
|
|
97
|
+
if (node.type !== "ObjectExpression") return [];
|
|
98
|
+
return node.properties.flatMap((property) => {
|
|
99
|
+
if (property.type !== "Property") return [];
|
|
100
|
+
const entry = property;
|
|
101
|
+
const name = keyName(entry);
|
|
102
|
+
return name === "like" || name === "ilike" ? [entry.value] : likeValues(entry.value);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
69
105
|
/**
|
|
70
106
|
* The tables `gen` marked as large (an estimated 10,000 rows or more), as
|
|
71
107
|
* `schema.name`, for the `unbounded-read` rule's `tables` option.
|
|
@@ -183,7 +219,15 @@ const rules = {
|
|
|
183
219
|
minimum: 0
|
|
184
220
|
} },
|
|
185
221
|
additionalProperties: false
|
|
186
|
-
}])
|
|
222
|
+
}]),
|
|
223
|
+
"require-escape-like": rule("Escape values passed to like and ilike", "require-escape-like", { unescaped: "This like pattern takes a value whose % and _ act as wildcards. Use ieq, contains or startsWith, or wrap the value in escapeLike()." }, (context) => ({ CallExpression(node) {
|
|
224
|
+
const where = argsOf(node)?.get("where");
|
|
225
|
+
if (where === void 0) return;
|
|
226
|
+
for (const value of likeValues(where)) if (unescapedPattern(value)) context.report({
|
|
227
|
+
node: value,
|
|
228
|
+
messageId: "unescaped"
|
|
229
|
+
});
|
|
230
|
+
} }))
|
|
187
231
|
};
|
|
188
232
|
const plugin = {
|
|
189
233
|
meta: { name: "better-supabase" },
|
|
@@ -195,7 +239,8 @@ const plugin = {
|
|
|
195
239
|
"better-supabase/no-unbounded-find-many": "warn",
|
|
196
240
|
"better-supabase/max-limit": "warn",
|
|
197
241
|
"better-supabase/require-order-by": "warn",
|
|
198
|
-
"better-supabase/unbounded-read": "warn"
|
|
242
|
+
"better-supabase/unbounded-read": "warn",
|
|
243
|
+
"better-supabase/require-escape-like": "warn"
|
|
199
244
|
}
|
|
200
245
|
} }
|
|
201
246
|
};
|
package/dist/list/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as FilterRule, a as FilterDateValue, b as encodeFilterQuery, c as FilterFieldLabels, f as FilterNode, g as FilterRelativeDate, h as FilterQuery, i as FilterCombinator, l as FilterFieldType, m as FilterOperatorSpec, n as FILTER_OPERATOR_LABELS, o as FilterField, p as FilterOperatorArity, r as FilterClock, s as FilterFieldInfo, t as FILTER_OPERATORS, u as FilterGroupNode, v as ListFilterConfig, y as decodeFilterQuery } from "../filter-query-
|
|
2
|
-
import { _ as UNSET, a as ListExtra, c as ListParseOptions, d as ListQuery, f as ListQueryConfig, g as ParserSpec, h as OpenApiParameter, i as ListDefinition, l as ListParseResult, m as ListSearchParams, n as FacetCounts, o as ListPage, p as ListQueryInput, r as FacetInfo, s as ListPagination, t as FacetCountFields, u as ListParsers, v as defineListQuery } from "../list-query-
|
|
3
|
-
import { n as FilterRecordField, r as evaluateFilterQuery, t as FilterEvaluation } from "../filter-evaluate-
|
|
1
|
+
import { _ as FilterRule, a as FilterDateValue, b as encodeFilterQuery, c as FilterFieldLabels, f as FilterNode, g as FilterRelativeDate, h as FilterQuery, i as FilterCombinator, l as FilterFieldType, m as FilterOperatorSpec, n as FILTER_OPERATOR_LABELS, o as FilterField, p as FilterOperatorArity, r as FilterClock, s as FilterFieldInfo, t as FILTER_OPERATORS, u as FilterGroupNode, v as ListFilterConfig, y as decodeFilterQuery } from "../filter-query-Bc_Qa8V_.js";
|
|
2
|
+
import { _ as UNSET, a as ListExtra, c as ListParseOptions, d as ListQuery, f as ListQueryConfig, g as ParserSpec, h as OpenApiParameter, i as ListDefinition, l as ListParseResult, m as ListSearchParams, n as FacetCounts, o as ListPage, p as ListQueryInput, r as FacetInfo, s as ListPagination, t as FacetCountFields, u as ListParsers, v as defineListQuery } from "../list-query-aXr2WkGA.js";
|
|
3
|
+
import { n as FilterRecordField, r as evaluateFilterQuery, t as FilterEvaluation } from "../filter-evaluate-BJcaL3o1.js";
|
|
4
4
|
export { FILTER_OPERATORS, FILTER_OPERATOR_LABELS, type FacetCountFields, type FacetCounts, type FacetInfo, type FilterClock, type FilterCombinator, type FilterDateValue, type FilterEvaluation, type FilterField, type FilterFieldInfo, type FilterFieldLabels, type FilterFieldType, type FilterGroupNode, type FilterNode, type FilterOperatorArity, type FilterOperatorSpec, type FilterQuery, type FilterRecordField, type FilterRelativeDate, type FilterRule, type ListDefinition, type ListExtra, type ListFilterConfig, type ListPage, type ListPagination, type ListParseOptions, type ListParseResult, type ListParsers, type ListQuery, type ListQueryConfig, type ListQueryInput, type ListSearchParams, type OpenApiParameter, type ParserSpec, UNSET, decodeFilterQuery, defineListQuery, encodeFilterQuery, evaluateFilterQuery };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { l as CountMode } from "./executor-
|
|
4
|
-
import { Bt as WhereInput, E as OffsetPageArgs, F as RepositoryOf, Lt as SelectArg, Nt as Payload, T as OffsetPage, g as CursorPageArgs, h as CursorPage, jt as OrderByArg, t as BetterSupabase, wt as IncludeArg, x as FindExt } from "./define-
|
|
5
|
-
import { c as FilterFieldLabels, h as FilterQuery, o as FilterField, r as FilterClock, s as FilterFieldInfo, v as ListFilterConfig } from "./filter-query-
|
|
1
|
+
import { D as ValidationIssue, t as AsyncResult } from "./result-BREt7qOh.js";
|
|
2
|
+
import { B as TableKey, N as Row, a as AnyModels, i as AnyFunctions } from "./types-BrpW5ixT.js";
|
|
3
|
+
import { l as CountMode } from "./executor-BnMC0lj3.js";
|
|
4
|
+
import { Bt as WhereInput, E as OffsetPageArgs, F as RepositoryOf, Lt as SelectArg, Nt as Payload, T as OffsetPage, g as CursorPageArgs, h as CursorPage, jt as OrderByArg, t as BetterSupabase, wt as IncludeArg, x as FindExt } from "./define-DYZnvAbs.js";
|
|
5
|
+
import { c as FilterFieldLabels, h as FilterQuery, o as FilterField, r as FilterClock, s as FilterFieldInfo, v as ListFilterConfig } from "./filter-query-Bc_Qa8V_.js";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
7
|
//#region src/list/list-query.d.ts
|
|
8
8
|
/** Facet value meaning "not set": filters with `is null`. */
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as OperationTable } from "../operations-
|
|
1
|
+
import { B as TableKey, a as AnyModels, i as AnyFunctions } from "../types-BrpW5ixT.js";
|
|
2
|
+
import { t as OperationTable } from "../operations-DQCWqkt3.js";
|
|
3
3
|
import { D as ResourceOperation } from "../model-lUafmeBQ.js";
|
|
4
4
|
import { s as PermissionRef, t as AnyAuthorizer } from "../authorizer-eiOjo-3l.js";
|
|
5
|
-
import { t as BetterSupabase } from "../define-
|
|
6
|
-
import {
|
|
7
|
-
import { r as GuardOptions } from "../respond-
|
|
8
|
-
import { l as ResourceRouteOptions } from "../resource-types-
|
|
5
|
+
import { t as BetterSupabase } from "../define-DYZnvAbs.js";
|
|
6
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-fLdep4gb.js";
|
|
7
|
+
import { r as GuardOptions } from "../respond-BSL36dQp.js";
|
|
8
|
+
import { l as ResourceRouteOptions } from "../resource-types-LW1i5-h3.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/mcp/json-rpc.d.ts
|
|
11
11
|
/** A JSON object. */
|
|
@@ -74,11 +74,11 @@ export declare function answerMessage(message: unknown, server: ProtocolServer):
|
|
|
74
74
|
export declare function answerLine(line: string, server: ProtocolServer): Promise<Json | undefined>;
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region src/mcp/mcp.d.ts
|
|
77
|
-
interface ToolContext<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown> extends ServerContext<M, F, E, C, P> {
|
|
77
|
+
interface ToolContext<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, B = unknown> extends ServerContext<M, F, E, C, P, B> {
|
|
78
78
|
readonly request: Request;
|
|
79
79
|
readonly signal: AbortSignal;
|
|
80
80
|
}
|
|
81
|
-
interface McpTool<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown> {
|
|
81
|
+
interface McpTool<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, B = unknown> {
|
|
82
82
|
readonly info: ToolInfo;
|
|
83
83
|
/**
|
|
84
84
|
* The input schema in another dialect, for clients on an older protocol
|
|
@@ -93,7 +93,7 @@ interface McpTool<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P
|
|
|
93
93
|
readonly permission?: unknown;
|
|
94
94
|
/** The provider operation the tool checks, in place of `mcp.tool.<name>`. */
|
|
95
95
|
readonly operation?: string;
|
|
96
|
-
run(args: never, ctx: ToolContext<M, F, E, C, P>): unknown;
|
|
96
|
+
run(args: never, ctx: ToolContext<M, F, E, C, P, B>): unknown;
|
|
97
97
|
}
|
|
98
98
|
/** What the `authorize` and `visible` hooks see of a tool. */
|
|
99
99
|
interface ToolRef {
|
|
@@ -110,7 +110,7 @@ type ToolDecision = {
|
|
|
110
110
|
/** OAuth scopes the call needs, sent in an `insufficient_scope` challenge. */
|
|
111
111
|
readonly scopes?: readonly string[];
|
|
112
112
|
};
|
|
113
|
-
interface ToolDefinition<M extends AnyModels, F extends AnyFunctions, E, I, C = unknown, P = unknown, Ref = unknown> {
|
|
113
|
+
interface ToolDefinition<M extends AnyModels, F extends AnyFunctions, E, I, C = unknown, P = unknown, Ref = unknown, B = unknown> {
|
|
114
114
|
readonly name: string;
|
|
115
115
|
readonly title?: string;
|
|
116
116
|
readonly description: string;
|
|
@@ -141,7 +141,7 @@ interface ToolDefinition<M extends AnyModels, F extends AnyFunctions, E, I, C =
|
|
|
141
141
|
* `mcp.tool.<name>` (`invoices.void`).
|
|
142
142
|
*/
|
|
143
143
|
readonly operation?: string;
|
|
144
|
-
run(args: I, ctx: ToolContext<M, F, E, C, P>): unknown;
|
|
144
|
+
run(args: I, ctx: ToolContext<M, F, E, C, P, B>): unknown;
|
|
145
145
|
}
|
|
146
146
|
/** A table's tools: the REST resource options, plus `meta` per operation for `authorize` and `visible`. */
|
|
147
147
|
type ToolResourceOptions<M extends AnyModels, T extends TableKey<M>, Ref = string> = ResourceRouteOptions<M, T, Ref> & {
|
|
@@ -153,7 +153,7 @@ type ToolResourceOptions<M extends AnyModels, T extends TableKey<M>, Ref = strin
|
|
|
153
153
|
readonly meta?: { readonly [K in ResourceOperation]?: unknown; };
|
|
154
154
|
};
|
|
155
155
|
type ToolResources<M extends AnyModels, Ref = string> = { readonly [T in TableKey<M>]?: ToolResourceOptions<M, T, Ref> | true; };
|
|
156
|
-
interface McpOptions<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, Ref = string> extends ServerOptions, Omit<GuardOptions, "scopes"> {
|
|
156
|
+
interface McpOptions<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, Ref = string, B = unknown> extends ServerOptions, Omit<GuardOptions, "scopes"> {
|
|
157
157
|
readonly name: string;
|
|
158
158
|
readonly version: string;
|
|
159
159
|
readonly title?: string;
|
|
@@ -161,7 +161,7 @@ interface McpOptions<M extends AnyModels, F extends AnyFunctions, E, C = unknown
|
|
|
161
161
|
readonly instructions?: string;
|
|
162
162
|
/** Tables exposed as tools: `<table>_list`, `_get`, `_create`, `_update`, `_delete`. */
|
|
163
163
|
readonly resources?: ToolResources<M, Ref>;
|
|
164
|
-
readonly tools?: readonly McpTool<M, F, E, C, P>[];
|
|
164
|
+
readonly tools?: readonly McpTool<M, F, E, C, P, B>[];
|
|
165
165
|
/**
|
|
166
166
|
* The authorization provider's operations (`authorization.operations` in
|
|
167
167
|
* the config). A tool's `mcp.tool.<name>` entry replaces its `permission`,
|
|
@@ -230,14 +230,14 @@ interface McpOptions<M extends AnyModels, F extends AnyFunctions, E, C = unknown
|
|
|
230
230
|
* validate in the repository). A refusal is a tool error; a refusal with
|
|
231
231
|
* `scopes` is a 403 `insufficient_scope` challenge naming them.
|
|
232
232
|
*/
|
|
233
|
-
readonly authorize?: (ctx: ToolContext<M, F, E, C, P>, tool: ToolRef, args: unknown) => ToolDecision | Promise<ToolDecision>;
|
|
233
|
+
readonly authorize?: (ctx: ToolContext<M, F, E, C, P, B>, tool: ToolRef, args: unknown) => ToolDecision | Promise<ToolDecision>;
|
|
234
234
|
/**
|
|
235
235
|
* Whether the caller sees a tool in `tools/list`. A hidden tool is called
|
|
236
236
|
* like an unknown one. Lists are cached per token (`cacheScope: 'private'`).
|
|
237
237
|
*/
|
|
238
|
-
readonly visible?: (ctx: ToolContext<M, F, E, C, P>, tool: ToolRef) => boolean | Promise<boolean>;
|
|
238
|
+
readonly visible?: (ctx: ToolContext<M, F, E, C, P, B>, tool: ToolRef) => boolean | Promise<boolean>;
|
|
239
239
|
}
|
|
240
|
-
interface BetterMcp<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, Ref = string> extends BetterServer<M, F, E, C, P> {
|
|
240
|
+
interface BetterMcp<M extends AnyModels, F extends AnyFunctions, E, C = unknown, P = unknown, Ref = string, B = unknown> extends BetterServer<M, F, E, C, P, B> {
|
|
241
241
|
/** Everything in one handler: the MCP endpoint and `/.well-known/oauth-protected-resource`. */
|
|
242
242
|
readonly fetch: (request: Request) => Promise<Response>;
|
|
243
243
|
/** The Streamable HTTP endpoint (POST JSON-RPC). */
|
|
@@ -246,20 +246,20 @@ interface BetterMcp<M extends AnyModels, F extends AnyFunctions, E, C = unknown,
|
|
|
246
246
|
metadata(request: Request): Response;
|
|
247
247
|
readonly tools: readonly ToolInfo[];
|
|
248
248
|
/** Adds a tool typed against this app's repositories. */
|
|
249
|
-
tool<I = Record<string, unknown>>(definition: ToolDefinition<M, F, E, I, C, P, Ref>): this;
|
|
249
|
+
tool<I = Record<string, unknown>>(definition: ToolDefinition<M, F, E, I, C, P, Ref, B>): this;
|
|
250
250
|
/** Calls a tool directly, e.g. from tests or another transport. */
|
|
251
|
-
call(name: string, args: unknown, ctx: ToolContext<M, F, E, C, P>): Promise<ToolResult>;
|
|
251
|
+
call(name: string, args: unknown, ctx: ToolContext<M, F, E, C, P, B>): Promise<ToolResult>;
|
|
252
252
|
}
|
|
253
253
|
/** A custom tool. Pass it in `createMcp({ tools: [...] })`. */
|
|
254
|
-
export declare function defineTool<M extends AnyModels, F extends AnyFunctions, E, I = Record<string, unknown>, C = unknown, P = unknown, Ref = unknown>(definition: ToolDefinition<M, F, E, I, C, P, Ref>): McpTool<M, F, E, C, P>;
|
|
254
|
+
export declare function defineTool<M extends AnyModels, F extends AnyFunctions, E, I = Record<string, unknown>, C = unknown, P = unknown, Ref = unknown, B = unknown>(definition: ToolDefinition<M, F, E, I, C, P, Ref, B>): McpTool<M, F, E, C, P, B>;
|
|
255
255
|
/**
|
|
256
256
|
* An MCP server (Streamable HTTP, stateless) whose tools run as the caller:
|
|
257
257
|
* the Bearer token from the MCP client is verified and every query goes
|
|
258
258
|
* through RLS. Answers 401 with RFC 9728 metadata so clients can sign in with
|
|
259
259
|
* Supabase Auth's OAuth server.
|
|
260
260
|
*/
|
|
261
|
-
export declare function createMcp<M extends AnyModels, D, F extends AnyFunctions, E, C = unknown, P = unknown, A extends AnyAuthorizer | undefined = undefined>(betterSupabase: BetterSupabase<M, D, F, E, C, P>, options: McpOptions<M, F, E, C, P, PermissionRef<A
|
|
261
|
+
export declare function createMcp<M extends AnyModels, D, F extends AnyFunctions, E, C = unknown, P = unknown, A extends AnyAuthorizer | undefined = undefined, B = unknown>(betterSupabase: BetterSupabase<M, D, F, E, C, P, B>, options: McpOptions<M, F, E, C, P, PermissionRef<A>, B> & {
|
|
262
262
|
readonly authorizer?: A;
|
|
263
|
-
}): BetterMcp<M, F, E, C, P, PermissionRef<A
|
|
263
|
+
}): BetterMcp<M, F, E, C, P, PermissionRef<A>, B>;
|
|
264
264
|
//#endregion
|
|
265
265
|
export type { BetterMcp, GuardOptions, McpOptions, McpTool, ProtocolServer, ResourceRouteOptions, ServerDescription, ToolAnnotations, ToolContext, ToolDecision, ToolDefinition, ToolInfo, ToolRef, ToolResourceOptions, ToolResources, ToolResult };
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { n as dbError } from "../errors-
|
|
2
|
-
import { a as ok } from "../result-
|
|
3
|
-
import { t as base64ToText } from "../base64-
|
|
4
|
-
import { n as validate } from "../standard-
|
|
5
|
-
import { a as methodNotAllowed, c as toProblem, o as problemResponse } from "../problem-
|
|
1
|
+
import { n as dbError } from "../errors-BV1SKTVs.js";
|
|
2
|
+
import { a as ok } from "../result-DIeYscA3.js";
|
|
3
|
+
import { t as base64ToText } from "../base64-D4aqdnDR.js";
|
|
4
|
+
import { n as validate } from "../standard-B1BigegP.js";
|
|
5
|
+
import { a as methodNotAllowed, c as toProblem, o as problemResponse } from "../problem-JRCohp1j.js";
|
|
6
6
|
import { t as SPEC_PINS } from "../spec-pins-S4PymRxp.js";
|
|
7
7
|
import { t as buildJsonSchema, v as toDraft07 } from "../json-schema-CpYINXG8.js";
|
|
8
8
|
import { r as operationPermission, t as OPERATION_PREFIXES } from "../operations-CsIfMED7.js";
|
|
9
|
-
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
9
|
+
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-CRNH2aX_.js";
|
|
10
10
|
import { n as jsonResponse, t as jsonReplacer } from "../json-CEnpTHlZ.js";
|
|
11
|
-
import { o as settle, r as guard, t as defaultExpose } from "../respond-
|
|
11
|
+
import { o as settle, r as guard, t as defaultExpose } from "../respond-Bhp3G__q.js";
|
|
12
12
|
import { t as boundedTtlCache } from "../ttl-cache-XzZ-Q2eX.js";
|
|
13
|
-
import { n as checkPermission, t as checkEach } from "../authorizer-
|
|
14
|
-
import { t as defineResource } from "../resource-
|
|
15
|
-
import { r as hasRole } from "../kit-
|
|
13
|
+
import { n as checkPermission, t as checkEach } from "../authorizer-B3yyCVUF.js";
|
|
14
|
+
import { t as defineResource } from "../resource-Bdkqi8jo.js";
|
|
15
|
+
import { r as hasRole } from "../kit-LTbHrWWD.js";
|
|
16
16
|
import { t as withExtra } from "../extra-CGQ2_q3S.js";
|
|
17
17
|
import { r as pageSchema, t as pageInputSchema } from "../resource-schemas-BJ518zFH.js";
|
|
18
18
|
import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../http-DdYadv-o.js";
|
package/dist/mcp/sdk/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as AnyModels, i as AnyFunctions } from "../../types-
|
|
2
|
-
import { r as AuthState } from "../../resolve-
|
|
3
|
-
import { i as CredentialRef, r as CredentialProvider } from "../../provider-
|
|
1
|
+
import { a as AnyModels, i as AnyFunctions } from "../../types-BrpW5ixT.js";
|
|
2
|
+
import { r as AuthState } from "../../resolve-Ceft-18-.js";
|
|
3
|
+
import { i as CredentialRef, r as CredentialProvider } from "../../provider-DXgx5oSA.js";
|
|
4
4
|
import { i as SupabaseMcpScope, n as SupabaseMcpModule, r as SupabaseMcpPlatformModule, t as SupabaseMcpFeature } from "../../supabase-mcp-C6tMoEjn.js";
|
|
5
|
-
import { t as BetterSupabase } from "../../define-
|
|
6
|
-
import {
|
|
7
|
-
import { r as GuardOptions, t as AllowedCaller } from "../../respond-
|
|
5
|
+
import { t as BetterSupabase } from "../../define-DYZnvAbs.js";
|
|
6
|
+
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-fLdep4gb.js";
|
|
7
|
+
import { r as GuardOptions, t as AllowedCaller } from "../../respond-BSL36dQp.js";
|
|
8
8
|
import { AuthInfo, CallToolResult, Icon, InputRequiredResult, OAuthTokenVerifier, RegisteredTool, ScopeChallengeHandler, ServerContext, StandardSchemaWithJSON, ToolAnnotations } from "@modelcontextprotocol/server";
|
|
9
9
|
//#region src/mcp/sdk/sdk.d.ts
|
|
10
10
|
interface McpAuthOptions extends ServerOptions, Omit<GuardOptions, "scopes"> {
|
|
@@ -43,7 +43,7 @@ interface McpFetchHandler {
|
|
|
43
43
|
readonly authInfo?: AuthInfo;
|
|
44
44
|
}): Promise<Response>;
|
|
45
45
|
}
|
|
46
|
-
interface BetterMcpAuth<M extends AnyModels = AnyModels, F extends AnyFunctions = AnyFunctions, E = unknown, C = unknown, P = unknown> extends BetterServer<M, F, E, C, P> {
|
|
46
|
+
interface BetterMcpAuth<M extends AnyModels = AnyModels, F extends AnyFunctions = AnyFunctions, E = unknown, C = unknown, P = unknown, B = unknown> extends BetterServer<M, F, E, C, P, B> {
|
|
47
47
|
/** An `OAuthTokenVerifier` for the SDK's bearer helpers; it verifies the token locally. */
|
|
48
48
|
readonly verifier: OAuthTokenVerifier;
|
|
49
49
|
/** The RFC 9728 Protected Resource Metadata document. */
|
|
@@ -57,17 +57,17 @@ interface BetterMcpAuth<M extends AnyModels = AnyModels, F extends AnyFunctions
|
|
|
57
57
|
*/
|
|
58
58
|
serve(handler: McpFetchHandler): (request: Request) => Promise<Response>;
|
|
59
59
|
/** The caller's context for a tool call, from `ctx.http.authInfo`. */
|
|
60
|
-
contextOf(ctx: ServerContext): Promise<ServerContext$1<M, F, E, C, P>>;
|
|
60
|
+
contextOf(ctx: ServerContext): Promise<ServerContext$1<M, F, E, C, P, B>>;
|
|
61
61
|
}
|
|
62
62
|
/** What `withBetterSupabaseMcp` adds to the SDK's tool context. */
|
|
63
|
-
interface BetterToolExtra<M extends AnyModels = AnyModels, F extends AnyFunctions = AnyFunctions, E = unknown, C = unknown, P = unknown> {
|
|
63
|
+
interface BetterToolExtra<M extends AnyModels = AnyModels, F extends AnyFunctions = AnyFunctions, E = unknown, C = unknown, P = unknown, B = unknown> {
|
|
64
64
|
/** Repositories bound to the verified caller, with RLS. */
|
|
65
|
-
readonly db: ServerContext$1<M, F, E, C, P>["db"];
|
|
65
|
+
readonly db: ServerContext$1<M, F, E, C, P, B>["db"];
|
|
66
66
|
readonly auth: AuthState<C, P>;
|
|
67
67
|
/** The full server context: `db`, `auth`, `supabase` and the rest. */
|
|
68
|
-
readonly bs: ServerContext$1<M, F, E, C, P>;
|
|
68
|
+
readonly bs: ServerContext$1<M, F, E, C, P, B>;
|
|
69
69
|
}
|
|
70
|
-
type BetterToolContext<M extends AnyModels = AnyModels, F extends AnyFunctions = AnyFunctions, E = unknown, C = unknown, P = unknown> = ServerContext & BetterToolExtra<M, F, E, C, P>;
|
|
70
|
+
type BetterToolContext<M extends AnyModels = AnyModels, F extends AnyFunctions = AnyFunctions, E = unknown, C = unknown, P = unknown, B = unknown> = ServerContext & BetterToolExtra<M, F, E, C, P, B>;
|
|
71
71
|
interface BetterToolConfig<InputArgs extends StandardSchemaWithJSON | undefined, OutputArgs extends StandardSchemaWithJSON | undefined> {
|
|
72
72
|
readonly title?: string;
|
|
73
73
|
readonly description?: string;
|
|
@@ -83,8 +83,8 @@ interface BetterToolConfig<InputArgs extends StandardSchemaWithJSON | undefined,
|
|
|
83
83
|
type ToolReturn = CallToolResult | InputRequiredResult | Promise<CallToolResult | InputRequiredResult>;
|
|
84
84
|
type BetterToolCallback<InputArgs extends StandardSchemaWithJSON | undefined, Ctx> = InputArgs extends StandardSchemaWithJSON ? (args: StandardSchemaWithJSON.InferOutput<InputArgs>, ctx: Ctx) => ToolReturn : (ctx: Ctx) => ToolReturn;
|
|
85
85
|
/** An SDK server whose tool callbacks also get `db`, `auth` and `bs`. */
|
|
86
|
-
type BetterMcpServer<S, M extends AnyModels = AnyModels, F extends AnyFunctions = AnyFunctions, E = unknown, C = unknown, P = unknown> = Omit<S, "registerTool"> & {
|
|
87
|
-
registerTool<OutputArgs extends StandardSchemaWithJSON | undefined = undefined, InputArgs extends StandardSchemaWithJSON | undefined = undefined>(name: string, config: BetterToolConfig<InputArgs, OutputArgs>, cb: BetterToolCallback<InputArgs, BetterToolContext<M, F, E, C, P>>): RegisteredTool;
|
|
86
|
+
type BetterMcpServer<S, M extends AnyModels = AnyModels, F extends AnyFunctions = AnyFunctions, E = unknown, C = unknown, P = unknown, B = unknown> = Omit<S, "registerTool"> & {
|
|
87
|
+
registerTool<OutputArgs extends StandardSchemaWithJSON | undefined = undefined, InputArgs extends StandardSchemaWithJSON | undefined = undefined>(name: string, config: BetterToolConfig<InputArgs, OutputArgs>, cb: BetterToolCallback<InputArgs, BetterToolContext<M, F, E, C, P, B>>): RegisteredTool;
|
|
88
88
|
};
|
|
89
89
|
/** The structural part of `McpServer` (or a wrapper of it) that `withBetterSupabaseMcp` needs. */
|
|
90
90
|
interface ToolRegistrar {
|
|
@@ -96,13 +96,13 @@ interface ToolRegistrar {
|
|
|
96
96
|
* tokens locally, serves the RFC 9728 metadata, and binds repositories to
|
|
97
97
|
* the caller. Pair it with `withBetterSupabaseMcp` and `createMcpHandler`.
|
|
98
98
|
*/
|
|
99
|
-
export declare function createMcpAuth<M extends AnyModels, D, F extends AnyFunctions, E, C = unknown, P = unknown>(betterSupabase: BetterSupabase<M, D, F, E, C, P>, options?: McpAuthOptions): BetterMcpAuth<M, F, E, C, P>;
|
|
99
|
+
export declare function createMcpAuth<M extends AnyModels, D, F extends AnyFunctions, E, C = unknown, P = unknown, B = unknown>(betterSupabase: BetterSupabase<M, D, F, E, C, P, B>, options?: McpAuthOptions): BetterMcpAuth<M, F, E, C, P, B>;
|
|
100
100
|
/**
|
|
101
101
|
* Wraps `server.registerTool` so every tool callback gets `db`, `auth` and
|
|
102
102
|
* `bs` for the caller on its context. Wrap after an authorization wrapper
|
|
103
103
|
* so permissions are checked before the context is built.
|
|
104
104
|
*/
|
|
105
|
-
export declare function withBetterSupabaseMcp<S extends ToolRegistrar, M extends AnyModels, F extends AnyFunctions, E, C, P>(server: S, auth: Pick<BetterMcpAuth<M, F, E, C, P>, "contextOf">): BetterMcpServer<S, M, F, E, C, P>;
|
|
105
|
+
export declare function withBetterSupabaseMcp<S extends ToolRegistrar, M extends AnyModels, F extends AnyFunctions, E, C, P, B>(server: S, auth: Pick<BetterMcpAuth<M, F, E, C, P, B>, "contextOf">): BetterMcpServer<S, M, F, E, C, P>;
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/mcp/sdk/supabase.d.ts
|
|
108
108
|
type UserAuth<C, P> = Extract<AuthState<C, P>, {
|
|
@@ -132,6 +132,6 @@ interface SupabaseMcpLoaders {
|
|
|
132
132
|
* `authorize`, then a server built for the request with the Management API
|
|
133
133
|
* token from `credentials`. The server closes when its response ends.
|
|
134
134
|
*/
|
|
135
|
-
export declare function supabaseMcpHandler<M extends AnyModels, F extends AnyFunctions, E, C, P>(auth: Pick<BetterMcpAuth<M, F, E, C, P>, "serve">, options: SupabaseMcpHandlerOptions<C, P>, loaders?: SupabaseMcpLoaders): (request: Request) => Promise<Response>;
|
|
135
|
+
export declare function supabaseMcpHandler<M extends AnyModels, F extends AnyFunctions, E, C, P, B>(auth: Pick<BetterMcpAuth<M, F, E, C, P, B>, "serve">, options: SupabaseMcpHandlerOptions<C, P>, loaders?: SupabaseMcpLoaders): (request: Request) => Promise<Response>;
|
|
136
136
|
//#endregion
|
|
137
137
|
export type { AllowedCaller, BetterMcpAuth, BetterMcpServer, BetterToolCallback, BetterToolConfig, BetterToolContext, BetterToolExtra, GuardOptions, McpAuthOptions, McpFetchHandler, SupabaseMcpFeature, SupabaseMcpHandlerOptions, SupabaseMcpLoaders, SupabaseMcpModule, SupabaseMcpPlatformModule, SupabaseMcpScope, ToolRegistrar };
|