better-supabase 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ai-schedules-B20M2SIi.d.ts → ai-schedules-Bp-U0cZG.d.ts} +1 -1
- package/dist/{api-BiOgjXn5.d.ts → api-BIw5g_4V.d.ts} +1 -1
- package/dist/{app-tables-Q29TR4W9.d.ts → app-tables-oYkgtcRM.d.ts} +1 -1
- package/dist/astro/index.d.ts +3 -3
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-wkfp7hgx.d.ts → bind-BwQGUqdQ.d.ts} +4 -4
- package/dist/{block-env-D-zK3_Ta.d.ts → block-env-Dh0Fe-fK.d.ts} +4 -4
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/activities/index.d.ts +1 -1
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.d.ts +4 -4
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/assets/index.d.ts +1 -1
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +2 -2
- package/dist/blocks/audit/index.d.ts +5 -5
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +3 -3
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +2 -2
- package/dist/blocks/catalog/index.d.ts +1 -1
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/contacts/index.d.ts +1 -1
- package/dist/blocks/content/index.d.ts +1 -1
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/courses/index.d.ts +1 -1
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/data-lifecycle/index.d.ts +1 -1
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/dispatch/index.d.ts +1 -1
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/drive/index.d.ts +1 -1
- package/dist/blocks/employees/index.d.ts +2 -2
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrollments/index.d.ts +1 -1
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forms/index.d.ts +2 -2
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/imports/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +5 -5
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/index.js +1 -1
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/invoices/index.d.ts +1 -1
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +1 -1
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/mail-sync/index.d.ts +1 -1
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/messaging/index.d.ts +4 -4
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +1 -1
- package/dist/blocks/notifications/index.d.ts +4 -4
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/orders/index.d.ts +2 -2
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/passes/index.d.ts +1 -1
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/posts/index.d.ts +1 -1
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/queue/index.d.ts +1 -1
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/saved-views/index.d.ts +3 -3
- package/dist/blocks/scores/index.d.ts +1 -1
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/segments/index.d.ts +1 -1
- package/dist/blocks/sequences/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/shipments/index.d.ts +1 -1
- package/dist/blocks/signatures/index.d.ts +1 -1
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/templates/index.d.ts +1 -1
- package/dist/blocks/time-tracking/index.d.ts +1 -1
- package/dist/blocks/timeline/index.d.ts +3 -3
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/webhooks/index.d.ts +2 -2
- package/dist/blocks/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/cli/{add-D5HxanFm.js → add-CH7dC6UR.js} +2 -2
- package/dist/cli/{add-Lr7uTZXQ.js → add-CtLjnwds.js} +9 -9
- package/dist/cli/add-DyCrVejx.js +1 -0
- package/dist/cli/{backfill-Cl1zEel7.js → backfill-DBJIMzcy.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-f0obMCxm.js → blocks-CS58-xnw.js} +1 -1
- package/dist/cli/{blocks-CsPua74J.js → blocks-i1w0EEvs.js} +1 -1
- package/dist/cli/{cache-tvTW5J9K.js → cache-Cn3crN0v.js} +1 -1
- package/dist/cli/{codemod-CVzRWS3j.js → codemod-D6wifOAH.js} +1 -1
- package/dist/cli/{content-mapper-C0LJDmVL.js → content-mapper-Q9We297z.js} +2 -2
- package/dist/cli/{doctor-q701Qif_.js → doctor-DmfdE5Ct.js} +14 -14
- package/dist/cli/{gen--vu_c2RF.js → gen-D68A0uN8.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-DGz5Hk9X.js → init-N7pkBbJn.js} +5 -5
- package/dist/cli/{live-sBPXy0VE.js → live-0xAAlTK_.js} +2 -2
- package/dist/cli/{mcp-DY_YK_WV.js → mcp-CbN3ulRF.js} +2 -2
- package/dist/cli/{metadata-CoPGFRMb.js → metadata-417ldpf4.js} +3 -3
- package/dist/cli/{migration-safety-Cn7OLHJm.js → migration-safety-BC_UI4jC.js} +1 -1
- package/dist/cli/{migrations-CUIEmdnS.js → migrations-DdBKwrvG.js} +1 -1
- package/dist/cli/{module-migration-bWK0xO2_.js → module-migration-DdxPdqMC.js} +2 -2
- package/dist/cli/{powersync-DAM5JAmz.js → powersync-CJTEz-uY.js} +2 -2
- package/dist/cli/powersync-CYQ4Ljcz.js +1 -0
- package/dist/cli/{print-Dnbk8J2y.js → print-DyFm91R-.js} +2 -2
- package/dist/cli/{remove-DAVVPbWw.js → remove-CPY0xsVm.js} +5 -5
- package/dist/cli/{render-PJdiRcqF.js → render-DE3O1OFq.js} +3 -3
- package/dist/cli/{run-6F72J0AQ.js → run-CcrNGX9C.js} +21 -21
- package/dist/cli/{run-D7-FuY6e.js → run-WtIEFGvP.js} +8 -8
- package/dist/cli/{shared-9O58FYPm.js → shared-SlukBuKn.js} +1 -1
- package/dist/cli/{snapshot-rTRe56PH.js → snapshot-pyIsJjUV.js} +2 -2
- package/dist/cli/{source-EHhEoKBD.js → source-Bclt9D0Y.js} +1 -1
- package/dist/cli/{spec-DqSbbTzD.js → spec-BsdLx7tZ.js} +1 -1
- package/dist/cli/{spec-CR4Y9kn8.js → spec-D7zsEVj_.js} +2 -2
- package/dist/cli/{sql-layout-BijeFLWv.js → sql-layout-C6baAM5t.js} +2 -2
- package/dist/cli/{sync-BAmWXRDR.js → sync-Cse8VXAU.js} +3 -3
- package/dist/cli/{upgrade-oaUd22Il.js → upgrade-28ENjIJU.js} +2 -2
- package/dist/cli/{upgrade-BKN6eSx-.js → upgrade-Cwc1RiAE.js} +4 -4
- package/dist/cli/{version-BkEOr4WS.js → version-yWIaLG04.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{composite-COQJBDmG.d.ts → composite-DbRuu6Jb.d.ts} +3 -3
- package/dist/config/index.d.ts +1 -1
- package/dist/{context-BI1PPPkw.d.ts → context-CjHXhCck.d.ts} +1 -1
- package/dist/{controller-DhT57SGq.d.ts → controller-BeqcjERs.d.ts} +1 -1
- package/dist/{conversion-DAV0hOJQ.d.ts → conversion-BqDvi8ty.d.ts} +1 -1
- package/dist/create/index.d.ts +2 -2
- package/dist/{create-blocks-B-9HVf7m.js → create-blocks-0pWKQ6x4.js} +14 -2
- package/dist/{define-B_pxEy7d.d.ts → define-BqaUwrIC.d.ts} +2 -2
- package/dist/{define-Dt9DRqV_.js → define-Djgn3HQQ.js} +1 -1
- package/dist/{define-block-D4hZSb2G.d.ts → define-block-CRwHsxZO.d.ts} +19 -6
- package/dist/edge/index.d.ts +5 -5
- package/dist/{entitlements-BhNzAcJR.d.ts → entitlements-mDz7GfA_.d.ts} +1 -1
- package/dist/{executor-D1UUQEGL.d.ts → executor-_O-CqCPl.d.ts} +2 -2
- package/dist/expo/index.d.ts +2 -2
- package/dist/{field-errors-D7mzrKjR.d.ts → field-errors-Cfvcg-C3.d.ts} +6 -6
- package/dist/{framework-BghlRbea.d.ts → framework-B-1Ka0GW.d.ts} +3 -3
- package/dist/hono/index.d.ts +4 -4
- package/dist/{index-B8iW3y2w.d.ts → index-BdzfjFnd.d.ts} +9 -9
- package/dist/{index-DsB7dy9R.d.ts → index-BzW1T3oI.d.ts} +3 -3
- package/dist/{index-Bc-EhTb-.d.ts → index-CYzckGOz.d.ts} +2 -2
- package/dist/{index-DZ5VbYvy.d.ts → index-CjnDGAJr.d.ts} +1 -1
- package/dist/{index-BJBwUM9l.d.ts → index-DfgP-9eC.d.ts} +3 -3
- package/dist/{index-BSXQlJt2.d.ts → index-EieRHooI.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-BIZBVEoF.d.ts → list-query-6vTI1VN6.d.ts} +1 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/sdk/index.d.ts +2 -2
- package/dist/next/index.d.ts +14 -14
- package/dist/next/index.js +3 -2
- package/dist/orpc/index.d.ts +4 -4
- package/dist/otel/index.js +4 -4
- package/dist/{ports-Dwe0JqBI.d.ts → ports-DO3tgLTo.d.ts} +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/preset/index.d.ts +3 -3
- package/dist/{push-token-C0dwbMZF.d.ts → push-token-IFGi8jvd.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +1 -1
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +6 -6
- package/dist/react/server.js +1 -1
- package/dist/{react-GgLZ66FU.js → react-D-p70_wL.js} +1 -1
- package/dist/react-router/index.d.ts +3 -3
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-form-eiqGbx9J.d.ts → record-form-yMVvkPiQ.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{resource-execute-CWfzJmUd.d.ts → resource-execute-LR71zWej.d.ts} +1 -1
- package/dist/{resource-types-BdGAUbKw.d.ts → resource-types-eXuFxVt7.d.ts} +1 -1
- package/dist/{resources-EeQWFMR8.d.ts → resources-Dpz3h8Fe.d.ts} +1 -1
- package/dist/server/index.d.ts +7 -7
- package/dist/{server-types-rmq2QzsD.d.ts → server-types-BTBzrzOH.d.ts} +1 -1
- package/dist/{session-CpwxyojG.d.ts → session-BgYGk_FS.d.ts} +1 -1
- package/dist/solid/index.d.ts +6 -6
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/spec/index.d.ts +1 -1
- package/dist/sql/index.d.ts +3 -3
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/ssr/index.d.ts +1 -1
- package/dist/storage/index.js +1 -6
- package/dist/storage-api-Dg78Wqsg.js +10 -0
- package/dist/svelte/index.d.ts +6 -6
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/{tags-CkO2erRP.d.ts → tags-CXeJu332.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/{tenant-BXNF10H5.d.ts → tenant-DzymQ9sv.d.ts} +1 -1
- package/dist/testing/index.d.ts +6 -6
- package/dist/testing/index.js +1 -1
- package/dist/{timeline-CHtoY7NO.d.ts → timeline-BMVOKokJ.d.ts} +3 -3
- package/dist/{topic-BNkdk7qe.d.ts → topic-0uK4db_2.d.ts} +1 -1
- package/dist/{verify-CJxqZQdd.d.ts → verify-DexkIx4t.d.ts} +1 -1
- package/dist/vue/index.d.ts +6 -6
- package/dist/{watch-topic-wl74gws-.d.ts → watch-topic-CG3kOX-D.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cli/add-Bcw12jts.js +0 -1
- package/dist/cli/powersync-CG3Bp6FD.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as Result } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-
|
|
2
|
+
import { Bt as Action, Ht as ActionContext, Vt as ActionCall } from "./define-block-CRwHsxZO.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
//#region src/blocks/automations/conversion.d.ts
|
|
5
5
|
/** A record a conversion reads from or creates: its subject type and id. */
|
package/dist/create/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { Pn as PresetSpec, Wn as PresetName, ar as AppColumnAccess, ci as Preset, cr as AppColumnType, g as BlockSqlAccessProvider, ht as PresetInput, nr as APP_ON_DELETE_ACTIONS, sr as AppColumnFormat, ur as AppOnDeleteAction, yr as AppTableVersions } from "../context-
|
|
3
|
-
import { a as DesignChange, p as DesignErrorCode, u as CreateDesign } from "../index-
|
|
2
|
+
import { Pn as PresetSpec, Wn as PresetName, ar as AppColumnAccess, ci as Preset, cr as AppColumnType, g as BlockSqlAccessProvider, ht as PresetInput, nr as APP_ON_DELETE_ACTIONS, sr as AppColumnFormat, ur as AppOnDeleteAction, yr as AppTableVersions } from "../context-CjHXhCck.js";
|
|
3
|
+
import { a as DesignChange, p as DesignErrorCode, u as CreateDesign } from "../index-CjnDGAJr.js";
|
|
4
4
|
import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-wtecfrNf.js";
|
|
5
5
|
import { t as PresetMigrationFile } from "../types-DGHfTW8_.js";
|
|
6
6
|
//#region src/create/design-computed.d.ts
|
|
@@ -189,8 +189,10 @@ function createBlocks(options, blocks) {
|
|
|
189
189
|
/**
|
|
190
190
|
* One block's client over a `Db`: its calls run through `dbTransport(db)` and
|
|
191
191
|
* act in the `Db`'s tenant (`db.$context.tenant`) unless `options.tenant` names
|
|
192
|
-
* one
|
|
193
|
-
* `
|
|
192
|
+
* one, and it uses `db.$storage` when the `Db` has Storage unless
|
|
193
|
+
* `options.storage` names another. Pass `config: blockConfig` so it calls the
|
|
194
|
+
* schema and function names `gen` wrote; `BlockSet.client(db, key)` does that
|
|
195
|
+
* for you.
|
|
194
196
|
*
|
|
195
197
|
* ```ts
|
|
196
198
|
* const comments = createBlockClient(ctx.db, commentsBlock, {
|
|
@@ -208,13 +210,23 @@ function createBlockClient(db, block, options = {}) {
|
|
|
208
210
|
}
|
|
209
211
|
function clientContext(db, options) {
|
|
210
212
|
const { hooks, instance: _instance, ...rest } = options;
|
|
213
|
+
const storage = rest.storage ?? storageOf(db);
|
|
211
214
|
return {
|
|
212
215
|
tenant: () => db.$context?.tenant,
|
|
213
216
|
...rest,
|
|
214
217
|
transport: rest.transport ?? dbTransport(db),
|
|
218
|
+
...storage === void 0 ? {} : { storage },
|
|
215
219
|
...hooks === void 0 ? {} : { hooks }
|
|
216
220
|
};
|
|
217
221
|
}
|
|
222
|
+
/** `db.$storage`, or `undefined` when the `Db` was connected without Storage. */
|
|
223
|
+
function storageOf(db) {
|
|
224
|
+
try {
|
|
225
|
+
return db.$storage;
|
|
226
|
+
} catch {
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
218
230
|
const UNIQUE_PORTS = [
|
|
219
231
|
"notifier",
|
|
220
232
|
"files",
|
|
@@ -877,8 +877,8 @@ interface DbBlockSource {
|
|
|
877
877
|
/** The keys in `blocks.generated.ts` of the instances that have a client. */
|
|
878
878
|
readonly instances: readonly string[];
|
|
879
879
|
/**
|
|
880
|
-
* One instance's client over `db`: its calls run through `db`'s executor
|
|
881
|
-
*
|
|
880
|
+
* One instance's client over `db`: its calls run through `db`'s executor, act
|
|
881
|
+
* in `db.$context.tenant` and use `db.$storage` when `db` has Storage.
|
|
882
882
|
*/
|
|
883
883
|
client(db: object, key: string, options: {
|
|
884
884
|
readonly events: EventHub;
|
|
@@ -6,6 +6,7 @@ import { c as optionalTemporal, l as provideTemporal, s as nowInstant, u as prov
|
|
|
6
6
|
import { a as decodeValue, i as decodeScalar, n as invalidRequest, o as encodeValue, t as builderFor } from "./build-BFC8nFiL.js";
|
|
7
7
|
import { t as lookupOf } from "./lookup-BaP5bI27.js";
|
|
8
8
|
import { i as or, n as column, r as not, t as and } from "./types-R6syp1el.js";
|
|
9
|
+
import { t as isStorageApi } from "./storage-api-Dg78Wqsg.js";
|
|
9
10
|
import { a as ok, c as withErrorMapper, r as err, s as toDbError, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
10
11
|
import { t as invalidationTargets } from "./tables-Cb-3_VWc.js";
|
|
11
12
|
import { n as rawError } from "./block-transport-PNea4lfQ.js";
|
|
@@ -1496,7 +1497,6 @@ function decodeRpcResult(meta, fn, data) {
|
|
|
1496
1497
|
}
|
|
1497
1498
|
//#endregion
|
|
1498
1499
|
//#region src/core/define.ts
|
|
1499
|
-
const isStorageApi = (value) => isRecord(value) && typeof value["from"] === "function";
|
|
1500
1500
|
/**
|
|
1501
1501
|
* A supabase-js client builds a new storage client on each read of `storage`,
|
|
1502
1502
|
* so it is read once per connection.
|
|
@@ -13,8 +13,8 @@ import { f as AiFiles, y as UploadClaimStorage } from "./types-Dr9wZgNy.js";
|
|
|
13
13
|
import { g as JobHandler } from "./types-Czq9Xtpa.js";
|
|
14
14
|
import { t as BlockOptionsSchema } from "./options-BTmaRzx2.js";
|
|
15
15
|
import { t as Author } from "./block-authors-DzXLUiIq.js";
|
|
16
|
-
import { u as BlockInstanceSurface } from "./define-
|
|
17
|
-
import { A as TtlPreset, C as TransformOptions, l as ImageTransform } from "./bucket-vc-QRrva.js";
|
|
16
|
+
import { u as BlockInstanceSurface } from "./define-BqaUwrIC.js";
|
|
17
|
+
import { A as TtlPreset, C as TransformOptions, j as StorageApi, l as ImageTransform } from "./bucket-vc-QRrva.js";
|
|
18
18
|
import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec } from "./table-schema-BlF6k62Q.js";
|
|
19
19
|
import { i as EventSink } from "./cloud-event-CzZTJkXv.js";
|
|
20
20
|
import { g as Workflows } from "./workflows-B0ZPAQu0.js";
|
|
@@ -1261,6 +1261,12 @@ interface BlockContext extends BlockOptions {
|
|
|
1261
1261
|
readonly credentials?: CredentialProvider;
|
|
1262
1262
|
/** `betterSupabase.events`, for the block events of the blocks that emit them. */
|
|
1263
1263
|
readonly events?: EventHub;
|
|
1264
|
+
/**
|
|
1265
|
+
* The caller's Storage, so the bucket policies apply: `db.$storage` for a
|
|
1266
|
+
* client built from a `Db` that has one. Attachments, ai-files, drive and
|
|
1267
|
+
* data-lifecycle read and write files through it.
|
|
1268
|
+
*/
|
|
1269
|
+
readonly storage?: StorageApi;
|
|
1264
1270
|
}
|
|
1265
1271
|
interface CreateBlocksOptions extends Omit<BlockContext, "schema"> {
|
|
1266
1272
|
/**
|
|
@@ -1290,11 +1296,14 @@ interface BlockClientSource extends DbTransportSource {
|
|
|
1290
1296
|
readonly $context?: {
|
|
1291
1297
|
readonly tenant?: string | undefined;
|
|
1292
1298
|
};
|
|
1299
|
+
readonly $storage?: StorageApi;
|
|
1293
1300
|
}
|
|
1294
1301
|
/** Options for `createBlockClient` and `BlockSet.client`. */
|
|
1295
1302
|
interface BlockClientOptions extends Omit<CreateBlocksOptions, "transport" | "audit" | "config"> {
|
|
1296
1303
|
/** Default `dbTransport(db)`. */
|
|
1297
1304
|
readonly transport?: BlockContext["transport"];
|
|
1305
|
+
/** Default `db.$storage`, when the `Db` has Storage. */
|
|
1306
|
+
readonly storage?: StorageApi;
|
|
1298
1307
|
/** `blockConfig` from `blocks.generated.ts`; `BlockSet.client` passes it. */
|
|
1299
1308
|
readonly config?: GeneratedBlocks;
|
|
1300
1309
|
/**
|
|
@@ -1352,8 +1361,10 @@ interface BlockSet<B extends BlockMap, M extends EventMap> {
|
|
|
1352
1361
|
/**
|
|
1353
1362
|
* One block's client over a `Db`, built with the generated config: its calls
|
|
1354
1363
|
* run through `dbTransport(db)` and act in the `Db`'s tenant
|
|
1355
|
-
* (`db.$context.tenant`) unless `options.tenant` names one
|
|
1356
|
-
*
|
|
1364
|
+
* (`db.$context.tenant`) unless `options.tenant` names one, and it reads
|
|
1365
|
+
* files through `db.$storage` when the `Db` has Storage unless
|
|
1366
|
+
* `options.storage` names another. The blocks it consumes ports from are
|
|
1367
|
+
* built on demand.
|
|
1357
1368
|
*
|
|
1358
1369
|
* ```ts
|
|
1359
1370
|
* const comments = blockSet.client(ctx.db, "comments");
|
|
@@ -1405,8 +1416,10 @@ declare function createBlocks<const B extends BlockMap>(options: CreateBlocksOpt
|
|
|
1405
1416
|
/**
|
|
1406
1417
|
* One block's client over a `Db`: its calls run through `dbTransport(db)` and
|
|
1407
1418
|
* act in the `Db`'s tenant (`db.$context.tenant`) unless `options.tenant` names
|
|
1408
|
-
* one
|
|
1409
|
-
* `
|
|
1419
|
+
* one, and it uses `db.$storage` when the `Db` has Storage unless
|
|
1420
|
+
* `options.storage` names another. Pass `config: blockConfig` so it calls the
|
|
1421
|
+
* schema and function names `gen` wrote; `BlockSet.client(db, key)` does that
|
|
1422
|
+
* for you.
|
|
1410
1423
|
*
|
|
1411
1424
|
* ```ts
|
|
1412
1425
|
* const comments = createBlockClient(ctx.db, commentsBlock, {
|
package/dist/edge/index.d.ts
CHANGED
|
@@ -2,17 +2,17 @@ import { f as Result } from "../result-DZeA5KS6.js";
|
|
|
2
2
|
import { t as StandardSchemaV1 } from "../standard-DBV730sF.js";
|
|
3
3
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
4
4
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
5
|
-
import { t as BetterSupabase } from "../define-
|
|
6
|
-
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-
|
|
5
|
+
import { t as BetterSupabase } from "../define-BqaUwrIC.js";
|
|
6
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BTBzrzOH.js";
|
|
7
7
|
import { t as AuthSession } from "../view-DyFdMCqg.js";
|
|
8
8
|
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
9
9
|
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
|
|
10
10
|
import { n as FunctionContract, t as DescribedFunction } from "../function-contract-DxFNOmsm.js";
|
|
11
11
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
12
12
|
import { n as SUPABASE_CORS_HEADERS, r as corsConfig, t as CorsOptions } from "../cors-kLq6VM06.js";
|
|
13
|
-
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-
|
|
14
|
-
import { t as ResourceMap } from "../resources-
|
|
15
|
-
import { t as defineAction } from "../resource-execute-
|
|
13
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-eXuFxVt7.js";
|
|
14
|
+
import { t as ResourceMap } from "../resources-Dpz3h8Fe.js";
|
|
15
|
+
import { t as defineAction } from "../resource-execute-LR71zWej.js";
|
|
16
16
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
17
17
|
//#region src/bridges/edge.d.ts
|
|
18
18
|
/** The platform context Workers pass as the third `fetch` argument. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as RawDbError, b as DbError, f as Result } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { Bt as Executor, O as AnyFunctions, dt as TableMeta, k as AnyModels, m as Operation, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
3
|
-
import { pt as QuerySpec, t as BetterSupabase } from "./define-
|
|
4
|
-
import { i as ListDefinition } from "./list-query-
|
|
3
|
+
import { pt as QuerySpec, t as BetterSupabase } from "./define-BqaUwrIC.js";
|
|
4
|
+
import { i as ListDefinition } from "./list-query-6vTI1VN6.js";
|
|
5
5
|
import { t as Compiler } from "./compiler-D3UmE7ao.js";
|
|
6
6
|
//#region src/compile/sqlite.d.ts
|
|
7
7
|
/** A value SQLite binds: booleans become `0`/`1`, objects JSON text. */
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
2
|
-
import { t as BetterSupabase } from "../define-
|
|
3
|
-
import { a as ServerContext, c as ServerOptions, n as BetterServer, r as ContextOptions } from "../server-types-
|
|
2
|
+
import { t as BetterSupabase } from "../define-BqaUwrIC.js";
|
|
3
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer, r as ContextOptions } from "../server-types-BTBzrzOH.js";
|
|
4
4
|
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
5
5
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
6
6
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { o as EventHub } from "./events-vcqenSYU.js";
|
|
3
3
|
import { o as BlockTenant } from "./block-helpers-CRpAHrp_.js";
|
|
4
|
-
import { pt as QuerySpec } from "./define-
|
|
4
|
+
import { pt as QuerySpec } from "./define-BqaUwrIC.js";
|
|
5
5
|
import { tt as TemplateValues } from "./bucket-vc-QRrva.js";
|
|
6
6
|
import { n as DataEngine } from "./data-engine-BWoz9lED.js";
|
|
7
|
-
import { Dn as GeneratedBlocks } from "./define-block-
|
|
8
|
-
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-
|
|
9
|
-
import { t as ClientPorts } from "./ports-
|
|
10
|
-
import { a as ClientAuth } from "./bind-
|
|
11
|
-
import { a as LiveSource, r as LiveCountSeed } from "./index-
|
|
7
|
+
import { Dn as GeneratedBlocks } from "./define-block-CRwHsxZO.js";
|
|
8
|
+
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-0uK4db_2.js";
|
|
9
|
+
import { t as ClientPorts } from "./ports-DO3tgLTo.js";
|
|
10
|
+
import { a as ClientAuth } from "./bind-BwQGUqdQ.js";
|
|
11
|
+
import { a as LiveSource, r as LiveCountSeed } from "./index-BzW1T3oI.js";
|
|
12
12
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
13
13
|
import { QueryClient } from "@tanstack/query-core";
|
|
14
14
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
|
|
2
|
-
import { O as SessionSnapshot, c as ServerOptions } from "./server-types-
|
|
2
|
+
import { O as SessionSnapshot, c as ServerOptions } from "./server-types-BTBzrzOH.js";
|
|
3
3
|
import { t as AuthSession } from "./view-DyFdMCqg.js";
|
|
4
|
-
import { n as SessionEntryConfig } from "./session-
|
|
5
|
-
import { n as BetterSupabaseContributions } from "./composite-
|
|
4
|
+
import { n as SessionEntryConfig } from "./session-BgYGk_FS.js";
|
|
5
|
+
import { n as BetterSupabaseContributions } from "./composite-DbRuu6Jb.js";
|
|
6
6
|
import { c as ResourceLoaderContext } from "./kit-CVgQCIBO.js";
|
|
7
7
|
import { t as RefusalRedirects } from "./refusal-OrlI3g4H.js";
|
|
8
8
|
//#region src/server/framework.d.ts
|
package/dist/hono/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
|
|
2
2
|
import { r as AuthState } from "../resolve-CXX6DHv3.js";
|
|
3
3
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
4
|
-
import { t as BetterSupabase } from "../define-
|
|
5
|
-
import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-
|
|
4
|
+
import { t as BetterSupabase } from "../define-BqaUwrIC.js";
|
|
5
|
+
import { O as SessionSnapshot, a as ServerContext, c as ServerOptions, l as SharedServer, n as BetterServer } from "../server-types-BTBzrzOH.js";
|
|
6
6
|
import { t as AuthSession } from "../view-DyFdMCqg.js";
|
|
7
7
|
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
8
8
|
import { c as ResourceLoaderContext, s as BlockRequireOptions } from "../kit-CVgQCIBO.js";
|
|
9
9
|
import { t as CorsOptions } from "../cors-kLq6VM06.js";
|
|
10
|
-
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-
|
|
11
|
-
import { t as defineAction } from "../resource-execute-
|
|
10
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-eXuFxVt7.js";
|
|
11
|
+
import { t as defineAction } from "../resource-execute-LR71zWej.js";
|
|
12
12
|
import { i as RouteRateLimitRule, n as RateLimitVerdict, r as RateLimiter, t as RateLimitRouteOptions } from "../rate-limit-Bztf32cl.js";
|
|
13
13
|
import { AnyEntry, Contributions, ValidateEntries } from "@supabase/middleware";
|
|
14
14
|
import { Context, ErrorHandler, Hono, MiddlewareHandler } from "hono";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { b as DbError, f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { $ as RecordRef } from "./types-DFdg_4yN.js";
|
|
3
3
|
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "./events-vcqenSYU.js";
|
|
4
|
-
import { pt as QuerySpec } from "./define-
|
|
4
|
+
import { pt as QuerySpec } from "./define-BqaUwrIC.js";
|
|
5
5
|
import { A as TtlPreset, C as TransformOptions, E as UrlOptions, T as UploadOptions, l as ImageTransform, tt as TemplateValues, w as UploadBody } from "./bucket-vc-QRrva.js";
|
|
6
6
|
import { m as RejectedChange, o as DataSyncState } from "./data-engine-BWoz9lED.js";
|
|
7
|
-
import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-
|
|
8
|
-
import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-
|
|
9
|
-
import { t as AuthSnapshot } from "./bind-
|
|
7
|
+
import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-EieRHooI.js";
|
|
8
|
+
import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-0uK4db_2.js";
|
|
9
|
+
import { t as AuthSnapshot } from "./bind-BwQGUqdQ.js";
|
|
10
10
|
import { t as AuthSession } from "./view-DyFdMCqg.js";
|
|
11
|
-
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-
|
|
12
|
-
import { n as Controller } from "./controller-
|
|
13
|
-
import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-
|
|
14
|
-
import { t as BlockEnv } from "./block-env-
|
|
11
|
+
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-BzW1T3oI.js";
|
|
12
|
+
import { n as Controller } from "./controller-BeqcjERs.js";
|
|
13
|
+
import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-Cfvcg-C3.js";
|
|
14
|
+
import { t as BlockEnv } from "./block-env-Dh0Fe-fK.js";
|
|
15
15
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "./block-method-CiVa2G-J.js";
|
|
16
|
-
import { s as RecordFormValues, t as RecordForm } from "./record-form-
|
|
16
|
+
import { s as RecordFormValues, t as RecordForm } from "./record-form-yMVvkPiQ.js";
|
|
17
17
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
18
18
|
import { DependencyList, ReactNode, SubmitEvent } from "react";
|
|
19
19
|
import { QueryClient } from "@tanstack/query-core";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { $ as RecordRef, ot as SchemaMeta } from "./types-DFdg_4yN.js";
|
|
3
|
-
import { pt as QuerySpec } from "./define-
|
|
3
|
+
import { pt as QuerySpec } from "./define-BqaUwrIC.js";
|
|
4
4
|
import { t as DataChanges } from "./data-engine-BWoz9lED.js";
|
|
5
|
-
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-
|
|
6
|
-
import { n as TopicPort } from "./watch-topic-
|
|
5
|
+
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-0uK4db_2.js";
|
|
6
|
+
import { n as TopicPort } from "./watch-topic-CG3kOX-D.js";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
//#region src/realtime/relay.d.ts
|
|
9
9
|
/** The `EventSource` the relay client reads with; the browser's fits. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as AccessPolicySql } from "./types-DFdg_4yN.js";
|
|
2
2
|
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-08F77H2w.js";
|
|
3
|
-
import { tt as ReadSet } from "./define-
|
|
4
|
-
import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-
|
|
3
|
+
import { tt as ReadSet } from "./define-BqaUwrIC.js";
|
|
4
|
+
import { E as TableGrant, Qt as ResolvedConfig, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, g as BlockSqlAccessProvider, h as BlockSql, hr as AppTableConfig, jr as CatalogPolicy, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-CjHXhCck.js";
|
|
5
5
|
import { t as SubjectConfig } from "./subjects-DvmQeF_F.js";
|
|
6
6
|
//#region src/sql/render.d.ts
|
|
7
7
|
/** A module's SQL for `layout`, without header; `undefined` in custom mode. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, ci as Preset, cr as AppColumnType, ei as PresetCatalog, hr as AppTableConfig, or as AppColumnConfig, ri as PresetGlueItem, vt as presetConfig } from "./context-
|
|
1
|
+
import { Pn as PresetSpec, St as ResolvedPreset, Wn as PresetName, br as AppTablesConfig, ci as Preset, cr as AppColumnType, ei as PresetCatalog, hr as AppTableConfig, or as AppColumnConfig, ri as PresetGlueItem, vt as presetConfig } from "./context-CjHXhCck.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
//#region src/preset/catalog.generated.d.ts
|
|
4
4
|
declare const PRESET_CATALOG: PresetCatalog;
|
|
@@ -2,9 +2,9 @@ import { t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
|
2
2
|
import { O as AnyFunctions, k as AnyModels } from "./types-DFdg_4yN.js";
|
|
3
3
|
import { l as PublicEnv } from "./index-NRMMhhEi.js";
|
|
4
4
|
import { g as SessionEncoding } from "./resolve-CXX6DHv3.js";
|
|
5
|
-
import { t as BetterSupabase } from "./define-
|
|
6
|
-
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-
|
|
7
|
-
import { i as BindClientOptions, r as BetterClient } from "./bind-
|
|
5
|
+
import { t as BetterSupabase } from "./define-BqaUwrIC.js";
|
|
6
|
+
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-DO3tgLTo.js";
|
|
7
|
+
import { i as BindClientOptions, r as BetterClient } from "./bind-BwQGUqdQ.js";
|
|
8
8
|
import { n as FunctionContract } from "./function-contract-DxFNOmsm.js";
|
|
9
9
|
import { FunctionInvokeOptions, SupabaseClient, SupabaseClientOptions } from "@supabase/supabase-js";
|
|
10
10
|
//#region src/client/functions.d.ts
|
|
@@ -3,9 +3,9 @@ import { n as DbException } from "./escape-like-PReMbEEU.js";
|
|
|
3
3
|
import { f as Result, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
4
4
|
import { $ as RecordRef, K as Insert, O as AnyFunctions, Z as PrimaryKeyValue, ht as Update, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
5
5
|
import { o as EventHub } from "./events-vcqenSYU.js";
|
|
6
|
-
import { A as OffsetRangeArgs, Bt as Payload, C as GetKey, Dt as CountArgs, K as WriteArgs, Nt as ListArgs, O as OffsetPage, S as FindExt, St as AggregateResult, U as UpdateArgs, W as UpsertArgs, Zt as CacheAdapter, _ as CursorPageArgs, b as DeleteArgs, ft as InferResult, g as CursorPage, k as OffsetPageArgs, kt as GetArgs, pt as QuerySpec, t as BetterSupabase, v as Db, x as DeleteExt, yt as AggregateArgs, z as Returned } from "./define-
|
|
6
|
+
import { A as OffsetRangeArgs, Bt as Payload, C as GetKey, Dt as CountArgs, K as WriteArgs, Nt as ListArgs, O as OffsetPage, S as FindExt, St as AggregateResult, U as UpdateArgs, W as UpsertArgs, Zt as CacheAdapter, _ as CursorPageArgs, b as DeleteArgs, ft as InferResult, g as CursorPage, k as OffsetPageArgs, kt as GetArgs, pt as QuerySpec, t as BetterSupabase, v as Db, x as DeleteExt, yt as AggregateArgs, z as Returned } from "./define-BqaUwrIC.js";
|
|
7
7
|
import { n as DataEngine, r as DataEngineOptions } from "./data-engine-BWoz9lED.js";
|
|
8
|
-
import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-
|
|
8
|
+
import { Dn as GeneratedBlocks, cn as RecordBindingResult, dn as RecordBindingWriteName, fn as RecordBindingWriteOutput, in as RecordBindingData, nn as AnyRecordBindingWrite, on as RecordBindingOptions, t as AnyBlock, tn as AnyRecordBinding, un as RecordBindingWriteInput } from "./define-block-CRwHsxZO.js";
|
|
9
9
|
import { t as BetterQueryMeta } from "./invalidate-DMp4eqfF.js";
|
|
10
10
|
import { DataTag, InfiniteData, QueryClient, SkipToken } from "@tanstack/query-core";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { $ as RecordRef, A as BucketMeta, At as NoExtension, B as FunctionMeta,
|
|
|
6
6
|
import { Ct as Events, O as BlockEventType, T as BlockEvent, a as EventHandler, bt as EventMap, 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 } from "./events-vcqenSYU.js";
|
|
7
7
|
import { i as silentLogger, n as Logger, r as consoleLogger, t as LogFields } from "./logger-DWVYUmwi.js";
|
|
8
8
|
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-DNwN8iGz.js";
|
|
9
|
-
import { $t as MemoryCache, A as OffsetRangeArgs, At as IncludeArg, B as RowFilter, Bt as Payload, C as GetKey, Ct as AggregateRow, Dt as CountArgs, E as ManyWriteArgs, Et as CountArg, Ft as MeasureKey, G as UpsertManyArgs, Gt as SortDirection, H as RpcOptions, Ht as RelationMeasureArg, It as MutableWhere, J as DbStats, Jt as WhereInput, K as WriteArgs, Kt as SortSpec, L as Repository, Lt as NumericMeasureArg, Mt as JsonPathOps, Nt as ListArgs, O as OffsetPage, Ot as FieldFilter, P as PageOf, Pt as MeasureArg, Q as SearchArgs, Qt as CacheTarget, R as RepositoryOf, Rt as OrderByArg, S as FindExt, St as AggregateResult, T as ManyResult, Tt as ColumnOrderByArg, U as UpdateArgs, Ut as RequestArgs, Vt as ReadArgs, W as UpsertArgs, Wt as SelectArg, X as StatsRecorder, Xt as BucketsHelper, Y as EMPTY_STATS, Yt as BucketRegistry, Z as recordStats, Zt as CacheAdapter, _ as CursorPageArgs, _t as isQuerySpec, a as explainPostgrest, at as ReadSetParamTypes, b as DeleteArgs, bt as AggregateOrderBy, c as RpcDefinition, ct as ReadSetResult, d as BlocksHelper, dt as readSetTables, en as cacheTargetOf, et as InferReadSetParams, f as DbBlockSource, ft as InferResult, g as CursorPage, gt as TableSpecs, h as ConflictTarget, ht as Specs, i as PostgrestExecutorOptions, it as ReadSetParamType, jt as IncludeArgs, k as OffsetPageArgs, kt as GetArgs, l as SupabaseOptions, lt as defineReadSet, m as DbOf, mt as ReadMethod, n as defineSupabase, nn as rowKey, nt as ReadSetAuth, o as postgrestExecutor, ot as ReadSetParamValue, p as DbExtras, pt as QuerySpec, q as WriteManyArgs, qt as WhereArg, r as PostgrestClientLike, rn as rpcCacheTargets, rt as ReadSetOptions, s as ConnectOptions, st as ReadSetParams, t as BetterSupabase, tn as memoryCache, tt as ReadSet, ut as isReadSet, v as Db, vt as specTables, wt as ColumnOrderBy, x as DeleteExt, xt as AggregateOrderByArg, y as DbHelpers, yt as AggregateArgs, z as Returned, zt as OrderByInput } from "./define-
|
|
9
|
+
import { $t as MemoryCache, A as OffsetRangeArgs, At as IncludeArg, B as RowFilter, Bt as Payload, C as GetKey, Ct as AggregateRow, Dt as CountArgs, E as ManyWriteArgs, Et as CountArg, Ft as MeasureKey, G as UpsertManyArgs, Gt as SortDirection, H as RpcOptions, Ht as RelationMeasureArg, It as MutableWhere, J as DbStats, Jt as WhereInput, K as WriteArgs, Kt as SortSpec, L as Repository, Lt as NumericMeasureArg, Mt as JsonPathOps, Nt as ListArgs, O as OffsetPage, Ot as FieldFilter, P as PageOf, Pt as MeasureArg, Q as SearchArgs, Qt as CacheTarget, R as RepositoryOf, Rt as OrderByArg, S as FindExt, St as AggregateResult, T as ManyResult, Tt as ColumnOrderByArg, U as UpdateArgs, Ut as RequestArgs, Vt as ReadArgs, W as UpsertArgs, Wt as SelectArg, X as StatsRecorder, Xt as BucketsHelper, Y as EMPTY_STATS, Yt as BucketRegistry, Z as recordStats, Zt as CacheAdapter, _ as CursorPageArgs, _t as isQuerySpec, a as explainPostgrest, at as ReadSetParamTypes, b as DeleteArgs, bt as AggregateOrderBy, c as RpcDefinition, ct as ReadSetResult, d as BlocksHelper, dt as readSetTables, en as cacheTargetOf, et as InferReadSetParams, f as DbBlockSource, ft as InferResult, g as CursorPage, gt as TableSpecs, h as ConflictTarget, ht as Specs, i as PostgrestExecutorOptions, it as ReadSetParamType, jt as IncludeArgs, k as OffsetPageArgs, kt as GetArgs, l as SupabaseOptions, lt as defineReadSet, m as DbOf, mt as ReadMethod, n as defineSupabase, nn as rowKey, nt as ReadSetAuth, o as postgrestExecutor, ot as ReadSetParamValue, p as DbExtras, pt as QuerySpec, q as WriteManyArgs, qt as WhereArg, r as PostgrestClientLike, rn as rpcCacheTargets, rt as ReadSetOptions, s as ConnectOptions, st as ReadSetParams, t as BetterSupabase, tn as memoryCache, tt as ReadSet, ut as isReadSet, v as Db, vt as specTables, wt as ColumnOrderBy, x as DeleteExt, xt as AggregateOrderByArg, y as DbHelpers, yt as AggregateArgs, z as Returned, zt as OrderByInput } from "./define-BqaUwrIC.js";
|
|
10
10
|
import { Q as StoragePath } from "./bucket-vc-QRrva.js";
|
|
11
11
|
import { a as PostgrestPlan, n as PlanLimit, o as compilePostgrest, r as PlanOrder, t as PlanFilter } from "./postgrest-z-T0l23T.js";
|
|
12
12
|
import { i as FieldSpec, n as TableSchema, o as TableSchemaSpec, r as tableSchema, t as StandardJSONSchemaV1 } from "./table-schema-BlF6k62Q.js";
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { t as escapeLike } from "./escape-like-DHfx6jRr.js";
|
|
|
5
5
|
import { a as decodeValue, c as tableMeta, o as encodeValue, s as defineSchema } from "./build-BFC8nFiL.js";
|
|
6
6
|
import { i as or, n as column, r as not, t as and } from "./types-R6syp1el.js";
|
|
7
7
|
import { a as ok, i as fromBetterResult, n as defineBetterResultErrors, o as toBetterResult, r as err, s as toDbError, t as AsyncResult } from "./result-ntFBW2p2.js";
|
|
8
|
-
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-
|
|
8
|
+
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-Djgn3HQQ.js";
|
|
9
9
|
import { n as touchedTables, t as invalidationTargets } from "./tables-Cb-3_VWc.js";
|
|
10
10
|
import { n as silentLogger, t as consoleLogger } from "./logger-glM28NVN.js";
|
|
11
11
|
import { t as EventHub } from "./events-D6IZ5CE8.js";
|
package/dist/list/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { _ as FilterRule, a as FilterDateValue, b as encodeFilterQuery, c as FilterFieldLabels, d as FilterLimits, 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-BXLs72G9.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-
|
|
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-6vTI1VN6.js";
|
|
3
3
|
import { n as FilterRecordField, r as evaluateFilterQuery, t as FilterEvaluation } from "../filter-evaluate-CPxeae5X.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 FilterLimits, 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,6 +1,6 @@
|
|
|
1
1
|
import { D as ValidationIssue, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { O as AnyFunctions, a as CountMode, it as Row, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
|
|
3
|
-
import { At as IncludeArg, Bt as Payload, Jt as WhereInput, O as OffsetPage, R as RepositoryOf, Rt as OrderByArg, S as FindExt, Wt as SelectArg, _ as CursorPageArgs, g as CursorPage, k as OffsetPageArgs, t as BetterSupabase } from "./define-
|
|
3
|
+
import { At as IncludeArg, Bt as Payload, Jt as WhereInput, O as OffsetPage, R as RepositoryOf, Rt as OrderByArg, S as FindExt, Wt as SelectArg, _ as CursorPageArgs, g as CursorPage, k as OffsetPageArgs, t as BetterSupabase } from "./define-BqaUwrIC.js";
|
|
4
4
|
import { c as FilterFieldLabels, h as FilterQuery, o as FilterField, r as FilterClock, s as FilterFieldInfo, v as ListFilterConfig } from "./filter-query-BXLs72G9.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/list/list-query.d.ts
|
package/dist/mapper/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as VERSION } from "../cli/version-
|
|
2
|
-
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-
|
|
3
|
-
import { t as loadSnapshot } from "../cli/snapshot-
|
|
4
|
-
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-
|
|
1
|
+
import { t as VERSION } from "../cli/version-yWIaLG04.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-Cn3crN0v.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-pyIsJjUV.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-DE3O1OFq.js";
|
|
5
5
|
import { i as discoverConfig, s as loadConfig } from "../cli/config-BH0goim0.js";
|
|
6
6
|
import { i as parseEnv, n as configEnvironment } from "../cli/env-DMgjB_4y.js";
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-Q9We297z.js";
|
|
8
8
|
import { existsSync, realpathSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, join, resolve } from "node:path";
|
|
10
10
|
import { createHash } from "node:crypto";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-DFdg_4yN.js";
|
|
2
2
|
import { t as OperationTable } from "../operations-DbNAgo7E.js";
|
|
3
3
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
4
|
-
import { t as BetterSupabase } from "../define-
|
|
5
|
-
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-
|
|
4
|
+
import { t as BetterSupabase } from "../define-BqaUwrIC.js";
|
|
5
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BTBzrzOH.js";
|
|
6
6
|
import { r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
7
7
|
import { D as ResourceOperation } from "../model-hwpvole9.js";
|
|
8
|
-
import { l as ResourceRouteOptions } from "../resource-types-
|
|
8
|
+
import { l as ResourceRouteOptions } from "../resource-types-eXuFxVt7.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/mcp/dialect.d.ts
|
|
11
11
|
/**
|
package/dist/mcp/sdk/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { O as AnyFunctions, k as AnyModels } from "../../types-DFdg_4yN.js";
|
|
|
2
2
|
import { r as AuthState } from "../../resolve-CXX6DHv3.js";
|
|
3
3
|
import { i as CredentialRef, r as CredentialProvider } from "../../provider-CqwEOLCA.js";
|
|
4
4
|
import { i as SupabaseMcpScope, n as SupabaseMcpModule, r as SupabaseMcpPlatformModule, t as SupabaseMcpFeature } from "../../supabase-mcp-Z4vtsuoO.js";
|
|
5
|
-
import { t as BetterSupabase } from "../../define-
|
|
6
|
-
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-
|
|
5
|
+
import { t as BetterSupabase } from "../../define-BqaUwrIC.js";
|
|
6
|
+
import { a as ServerContext$1, c as ServerOptions, n as BetterServer } from "../../server-types-BTBzrzOH.js";
|
|
7
7
|
import { r as GuardOptions, t as AllowedCaller } from "../../respond-oZeJ342J.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
|
package/dist/next/index.d.ts
CHANGED
|
@@ -2,27 +2,27 @@ import { b as DbError, f as Result } from "../result-DZeA5KS6.js";
|
|
|
2
2
|
import { $ as RecordRef, O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
3
3
|
import { r as AuthState } from "../resolve-CXX6DHv3.js";
|
|
4
4
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
5
|
-
import { J as DbStats, Zt as CacheAdapter, pt as QuerySpec, t as BetterSupabase, tt as ReadSet } from "../define-
|
|
6
|
-
import { A as isSessionSnapshot, M as sessionCacheKey, O as SessionSnapshot, a as ServerContext, c as ServerOptions, j as issuedAtOf, k as authzVersionOf, l as SharedServer, n as BetterServer, r as ContextOptions } from "../server-types-
|
|
5
|
+
import { J as DbStats, Zt as CacheAdapter, pt as QuerySpec, t as BetterSupabase, tt as ReadSet } from "../define-BqaUwrIC.js";
|
|
6
|
+
import { A as isSessionSnapshot, M as sessionCacheKey, O as SessionSnapshot, a as ServerContext, c as ServerOptions, j as issuedAtOf, k as authzVersionOf, l as SharedServer, n as BetterServer, r as ContextOptions } from "../server-types-BTBzrzOH.js";
|
|
7
7
|
import { n as Impersonator } from "../impersonation-YTa9dZUv.js";
|
|
8
8
|
import { n as AmrEntry, t as Aal } from "../mfa-oIOYTpvc.js";
|
|
9
|
-
import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-
|
|
10
|
-
import { M as BindingName, N as BindingOf, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "../index-
|
|
11
|
-
import { t as tenantOf } from "../tenant-
|
|
9
|
+
import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-CRwHsxZO.js";
|
|
10
|
+
import { M as BindingName, N as BindingOf, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "../index-EieRHooI.js";
|
|
11
|
+
import { t as tenantOf } from "../tenant-DzymQ9sv.js";
|
|
12
12
|
import { n as toSession, t as AuthSession } from "../view-DyFdMCqg.js";
|
|
13
13
|
import { a as SupportPolicy, c as supportSessions, i as SupportOptions, o as SupportSessions, s as SupportStartRequest, t as ActiveSupport } from "../support-B4ZBVxt3.js";
|
|
14
|
-
import { t as AuthOutageHook } from "../session-
|
|
14
|
+
import { t as AuthOutageHook } from "../session-BgYGk_FS.js";
|
|
15
15
|
import { n as AuthKind, r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
16
16
|
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, r as ActionResult, t as ActionInput } from "../kit-CVgQCIBO.js";
|
|
17
|
-
import { c as ListParseOptions, m as ListSearchParams } from "../list-query-
|
|
18
|
-
import { r as LiveCountSeed, t as CountRunner } from "../index-
|
|
19
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
20
|
-
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-
|
|
21
|
-
import { t as ResourceMap } from "../resources-
|
|
22
|
-
import { t as defineAction } from "../resource-execute-
|
|
17
|
+
import { c as ListParseOptions, m as ListSearchParams } from "../list-query-6vTI1VN6.js";
|
|
18
|
+
import { r as LiveCountSeed, t as CountRunner } from "../index-BzW1T3oI.js";
|
|
19
|
+
import { r as MembershipClaim } from "../entitlements-mDz7GfA_.js";
|
|
20
|
+
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-eXuFxVt7.js";
|
|
21
|
+
import { t as ResourceMap } from "../resources-Dpz3h8Fe.js";
|
|
22
|
+
import { t as defineAction } from "../resource-execute-LR71zWej.js";
|
|
23
23
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
|
|
24
|
-
import { i as tagFor, t as TagOptions } from "../tags-
|
|
25
|
-
import { c as RecordListCells, n as Timeline, o as RecordList, u as RecordListPage } from "../timeline-
|
|
24
|
+
import { i as tagFor, t as TagOptions } from "../tags-CXeJu332.js";
|
|
25
|
+
import { c as RecordListCells, n as Timeline, o as RecordList, u as RecordListPage } from "../timeline-BMVOKokJ.js";
|
|
26
26
|
import { r as safeRedirectPath } from "../sign-in-BAjR49fq.js";
|
|
27
27
|
import { n as supportOf, t as SupportView } from "../support-view-BYOgwXsJ.js";
|
|
28
28
|
import { NextRequest } from "next/server.js";
|
package/dist/next/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as DbException } from "../db-exception-Lngc1W49.js";
|
|
2
2
|
import { n as dbError } from "../errors-BVFgt8BZ.js";
|
|
3
3
|
import { t as isList } from "../guards-6F2bCtQR.js";
|
|
4
|
+
import { t as isStorageApi } from "../storage-api-Dg78Wqsg.js";
|
|
4
5
|
import { r as err } from "../result-ntFBW2p2.js";
|
|
5
6
|
import { o as isReadSet } from "../read-set-BnKnofIj.js";
|
|
6
7
|
import { n as validate } from "../standard-BA3mLh6w.js";
|
|
@@ -8,7 +9,7 @@ import { n as StatsRecorder, t as EMPTY_STATS } from "../stats-BHl1-zj9.js";
|
|
|
8
9
|
import { o as problemResponse } from "../problem-Bf0cJ7tk.js";
|
|
9
10
|
import { i as claimsOf } from "../claims-Bp9My7XP.js";
|
|
10
11
|
import { t as supportOf } from "../support-view-g4YLBeqX.js";
|
|
11
|
-
import { n as createBlockClient } from "../create-blocks-
|
|
12
|
+
import { n as createBlockClient } from "../create-blocks-0pWKQ6x4.js";
|
|
12
13
|
import { a as recordCan, c as recordWriteInput, i as plainData, l as runBindingWrite, o as recordPermissionKeys, p as loadBindings, r as findBindingWrite, s as recordSubject, t as bindingWrites } from "../record-type-DRbnlj5q.js";
|
|
13
14
|
import { n as methodOf } from "../block-method-C9hWdHom.js";
|
|
14
15
|
import { t as tenantOf } from "../tenant-BgIiMQpo.js";
|
|
@@ -338,7 +339,7 @@ function clientOptions(feature, ctx) {
|
|
|
338
339
|
const storage = ctx.supabase?.storage;
|
|
339
340
|
return {
|
|
340
341
|
...feature.config === void 0 ? {} : { config: feature.config },
|
|
341
|
-
...storage
|
|
342
|
+
...isStorageApi(storage) ? { storage } : {}
|
|
342
343
|
};
|
|
343
344
|
}
|
|
344
345
|
function clientsOf(feature, ctx) {
|
package/dist/orpc/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { b as DbError, f as Result } from "../result-DZeA5KS6.js";
|
|
|
2
2
|
import { O as AnyFunctions, k as AnyModels } from "../types-DFdg_4yN.js";
|
|
3
3
|
import { r as AuthState } from "../resolve-CXX6DHv3.js";
|
|
4
4
|
import { i as ProblemDetails } from "../problem-DNwN8iGz.js";
|
|
5
|
-
import { t as BetterSupabase } from "../define-
|
|
6
|
-
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-
|
|
5
|
+
import { t as BetterSupabase } from "../define-BqaUwrIC.js";
|
|
6
|
+
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BTBzrzOH.js";
|
|
7
7
|
import { i as MiddlewareOptions, r as GuardOptions } from "../respond-oZeJ342J.js";
|
|
8
8
|
import { c as ResourceLoaderContext, i as AuthorizeOptions } from "../kit-CVgQCIBO.js";
|
|
9
9
|
import { t as Validated } from "../shared-CRRfQAKG.js";
|
|
10
|
-
import { a as ResourceHandler } from "../resource-types-
|
|
10
|
+
import { a as ResourceHandler } from "../resource-types-eXuFxVt7.js";
|
|
11
11
|
import { i as RouteRateLimitRule, n as RateLimitVerdict, r as RateLimiter, t as RateLimitRouteOptions } from "../rate-limit-Bztf32cl.js";
|
|
12
|
-
import { t as Api } from "../api-
|
|
12
|
+
import { t as Api } from "../api-BIw5g_4V.js";
|
|
13
13
|
import { AnyEntry, Contributions } from "@supabase/middleware";
|
|
14
14
|
import { AnySchema, BuilderWithMiddlewares, DecoratedMiddleware, DecoratedProcedure, MetaPlugin, ORPCError, Schema } from "@orpc/server";
|
|
15
15
|
//#region src/orpc/router.d.ts
|
package/dist/otel/index.js
CHANGED
|
@@ -40,9 +40,9 @@ function systemOf(executor) {
|
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
function otel(options = {}) {
|
|
43
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
43
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.20.0");
|
|
44
44
|
let histogram;
|
|
45
|
-
if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.
|
|
45
|
+
if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.20.0")).createHistogram("db.client.operation.duration", {
|
|
46
46
|
unit: "s",
|
|
47
47
|
description: "Duration of database client operations.",
|
|
48
48
|
advice: { explicitBucketBoundaries: [
|
|
@@ -219,7 +219,7 @@ function otel(options = {}) {
|
|
|
219
219
|
* `betterSupabase.events`. Returns a function that stops listening.
|
|
220
220
|
*/
|
|
221
221
|
function traceAuth(betterSupabase, options = {}) {
|
|
222
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
222
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.20.0");
|
|
223
223
|
const offAuth = betterSupabase.events.on("auth", (event) => {
|
|
224
224
|
const span = tracer.startSpan("auth.resolve", {
|
|
225
225
|
kind: SpanKind.INTERNAL,
|
|
@@ -257,7 +257,7 @@ function traceAuth(betterSupabase, options = {}) {
|
|
|
257
257
|
* an error status. Returns a function that stops listening.
|
|
258
258
|
*/
|
|
259
259
|
function traceBlockEvents(betterSupabase, options = {}) {
|
|
260
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
260
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.20.0");
|
|
261
261
|
return betterSupabase.events.on("block", (event) => {
|
|
262
262
|
const attributes = {
|
|
263
263
|
...options.attributes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
|
-
import { n as TopicPort } from "./watch-topic-
|
|
2
|
+
import { n as TopicPort } from "./watch-topic-CG3kOX-D.js";
|
|
3
3
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
4
4
|
//#region src/client/ports.d.ts
|
|
5
5
|
/**
|