better-supabase 0.30.0 → 0.31.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/{adapter-D4aNBxhm.js → adapter-BTbj5N9C.js} +2 -52
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/{app-tables-yyVncXEt.d.ts → app-tables-B2mKMNRQ.d.ts} +1 -1
- package/dist/astro/index.js +2 -2
- package/dist/{authorization-CDU9tYA_.d.ts → authorization-DfEkyFt_.d.ts} +10 -3
- package/dist/{bind-p7asfI6H.d.ts → bind-DAx0bMSi.d.ts} +2 -2
- package/dist/{block-env-B8wG3xeh.d.ts → block-env-Dz7Caxk0.d.ts} +3 -3
- package/dist/blocks/ai-chat/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +3 -3
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/automations/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +1 -1
- package/dist/blocks/bookings/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +7 -3
- package/dist/blocks/calendar/index.js +5 -1
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/employees/index.js +1 -4
- package/dist/blocks/entitlements/index.d.ts +2 -2
- package/dist/blocks/forms/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +4 -4
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/messaging/index.d.ts +4 -4
- package/dist/blocks/mfa/index.d.ts +1 -1
- package/dist/blocks/notifications/index.d.ts +3 -3
- package/dist/blocks/notifications/index.js +5 -43
- package/dist/blocks/onboarding/index.d.ts +1 -1
- package/dist/blocks/organizations/index.d.ts +34 -21
- package/dist/blocks/organizations/index.js +5 -1
- package/dist/blocks/permissions/index.d.ts +32 -3
- package/dist/blocks/permissions/index.js +23 -2
- package/dist/blocks/push/index.d.ts +10 -2
- package/dist/blocks/push/index.js +23 -7
- package/dist/blocks/reactions/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.d.ts +1 -1
- package/dist/blocks/search/index.d.ts +2 -2
- package/dist/blocks/sessions/index.d.ts +1 -1
- package/dist/blocks/settings/index.d.ts +1 -1
- package/dist/blocks/subjects/index.d.ts +1 -1
- package/dist/blocks/tags/index.d.ts +1 -1
- package/dist/blocks/tasks/index.js +1 -1
- package/dist/blocks/teams/index.d.ts +7 -1
- package/dist/blocks/teams/index.js +8 -7
- package/dist/blocks/undo/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +3 -3
- package/dist/blocks/workflows/index.d.ts +3 -3
- package/dist/cli/{add-Dggyehsy.js → add-B9wP0YGU.js} +2 -2
- package/dist/cli/{add-D4w-Axib.js → add-DjZXKd7X.js} +10 -10
- package/dist/cli/add-ZcEOEK23.js +1 -0
- package/dist/cli/{app-table-files-CiGuwLkO.js → app-table-files-mtvjHa48.js} +2 -2
- package/dist/cli/{backfill-DjVjXW_P.js → backfill-Coshdvh_.js} +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-jRL9K1R8.js → blocks-BWCuA0nq.js} +2 -2
- package/dist/cli/{blocks-Bbmb6W_F.js → blocks-hiSazThw.js} +1 -1
- package/dist/cli/{cache-BuoIFlUJ.js → cache-x2wWAy0h.js} +1 -1
- package/dist/cli/{codemod-DRavXBCb.js → codemod-BnjV7BpC.js} +210 -11
- package/dist/cli/{command-DIPmo0wh.js → command-CCAwhiOh.js} +6 -0
- package/dist/cli/{completion-DxPxMtyP.js → completion-BJaB84Pe.js} +2 -2
- package/dist/cli/{completion-DyLMSjOD.js → completion-BkUhs1ms.js} +1 -1
- package/dist/cli/{completion-FUgqm2-N.js → completion-DmUVsUVQ.js} +2 -2
- package/dist/cli/{config-BfapErxs.js → config-zId1jkLx.js} +1 -1
- package/dist/cli/{content-mapper-BCtyfKXl.js → content-mapper-DvOSOdTE.js} +2 -2
- package/dist/cli/{db-CWvH1_46.js → db-DXKyVEDF.js} +1 -1
- package/dist/cli/{doctor-Di2ZekfN.js → doctor-Ywy8oJEU.js} +41 -16
- package/dist/cli/env-CNjT_uOV.js +1 -0
- package/dist/cli/{env-B2CbnbzD.js → env-XMiKvhtV.js} +1 -1
- package/dist/cli/{gen-STKC9vkK.js → gen-B-FbQmG1.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-DW6_nIwj.js → init-fb9e1BKX.js} +9 -9
- package/dist/cli/{keys-V-HcO-21.js → keys-ORiPz1sM.js} +1 -1
- package/dist/cli/{live-0G4Plw3K.js → live-DIt7TP-N.js} +2 -2
- package/dist/cli/{mcp-flKS8iU5.js → mcp-CVWwraga.js} +3 -3
- package/dist/cli/{metadata-VARUbXEe.js → metadata-CannIjel.js} +3 -3
- package/dist/cli/{migrate-Bkq07XcT.js → migrate-Ht2TzIQF.js} +2 -2
- package/dist/cli/{migration-safety-BfVeza5j.js → migration-safety-nNyB05I-.js} +1 -1
- package/dist/cli/{migrations-BCq7Zs2E.js → migrations-bAd7dpk1.js} +2 -2
- package/dist/cli/{module-migration-lbeUrsYv.js → module-migration-CkNux8dr.js} +2 -2
- package/dist/cli/{moved-DNOtp9LA.js → moved-C3WyRHkA.js} +1 -1
- package/dist/cli/{parse-BPf3kGnc.js → parse-DjHbTaFI.js} +1 -1
- package/dist/cli/{powersync-B15CfH5Y.js → powersync-B2v0tDwp.js} +100 -7
- package/dist/cli/powersync-D3mAQ6QE.js +1 -0
- package/dist/cli/{print-DjxpBRnv.js → print-CxQ0rBKT.js} +2 -2
- package/dist/cli/{providers-dyxcHQY3.js → providers-DtI90lSw.js} +1 -1
- package/dist/cli/{remove-BLq5gbal.js → remove-DYtE4IZ4.js} +6 -6
- package/dist/cli/{render-CizUf3RW.js → render-QGWfEoiB.js} +3 -3
- package/dist/cli/{run-ChEjR7yw.js → run-B5aMwErM.js} +2 -2
- package/dist/cli/{run-MwM__teL.js → run-BNoJKf5I.js} +40 -39
- package/dist/cli/{run-ChOY6s4o.js → run-DiYX1XEa.js} +8 -8
- package/dist/cli/{seed-CDnL4Tnc.js → seed-C-Hu2n_E.js} +1 -1
- package/dist/cli/seed-Cm-c0BDd.js +1 -0
- package/dist/cli/{shared-DV5wIv-7.js → shared-D_CFi5di.js} +1 -1
- package/dist/cli/{skills-DM3oeIxY.js → skills-D98y0bSB.js} +1 -1
- package/dist/cli/{snapshot-B5LXkVMC.js → snapshot-BlQ4DDcJ.js} +9 -4
- package/dist/cli/{source-BoLNG_2A.js → source-CelMBQMj.js} +1 -1
- package/dist/cli/{spec-D6QeE2Zx.js → spec-BxcoGE0h.js} +1 -1
- package/dist/cli/{spec-Dz-PGCaM.js → spec-iBx1LcYO.js} +3 -3
- package/dist/cli/{sql-layout-zo02f3Dm.js → sql-layout-Dp4Rottt.js} +2 -2
- package/dist/cli/{stack-ClESAZYf.js → stack-B2slzrYH.js} +1 -1
- package/dist/cli/{sync-m-oZ_SyI.js → sync-BnORI43S.js} +4 -4
- package/dist/cli/{table-dyKddjwo.js → table-D6HUECKI.js} +1 -1
- package/dist/cli/{upgrade-C9sgVZ5z.js → upgrade-CR6-WmIc.js} +5 -5
- package/dist/cli/{upgrade-WwEJaX3i.js → upgrade-fz92aCnh.js} +3 -3
- package/dist/cli/{version-D2BQuqta.js → version-Dz8ZlOuh.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{composite-CBRbvn5j.js → composite-B4qB6k31.js} +2 -2
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +4 -4
- package/dist/{config-r7njjNgh.js → config-B7g-HDis.js} +3 -3
- package/dist/{config-bqKaPjst.js → config-R0m0fBiD.js} +1 -1
- package/dist/{context-nbYYjv7U.d.ts → context-DWWoP1wK.d.ts} +1 -1
- package/dist/{controller-TRocodqG.d.ts → controller-Br9dGKGe.d.ts} +1 -1
- package/dist/{controller-qG-B1eDn.js → controller-W97g2WGG.js} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +3 -3
- package/dist/delivery-events-DbL8IHIY.js +53 -0
- package/dist/edge/index.js +3 -3
- package/dist/{entitlements-B1i1-wfe.d.ts → entitlements-CBjm2lvD.d.ts} +1 -1
- package/dist/eve/index.js +1 -1
- package/dist/expo/index.js +3 -2
- package/dist/{field-errors-tJvehEFc.d.ts → field-errors-CEjsMAgd.d.ts} +4 -4
- package/dist/{framework-DYEUraqt.js → framework-CqiZk89W.js} +1 -1
- package/dist/hono/index.js +2 -2
- package/dist/{index-BkzXwuIN.d.ts → index-Clyd2Goi.d.ts} +1 -1
- package/dist/{index-zsgNmE8m.d.ts → index-D98bQs8a.d.ts} +7 -7
- package/dist/{index-BKrxynq9.d.ts → index-DIdPoQtO.d.ts} +2 -2
- package/dist/{index-CWAQRWY8.d.ts → index-I8YLxKq8.d.ts} +2 -2
- package/dist/{index-8US7qlvW.d.ts → index-eRBuKtMt.d.ts} +2 -2
- package/dist/{index-BM6NmKSc.d.ts → index-uIU65iEn.d.ts} +6 -6
- package/dist/{instances-C7qUTjhJ.js → instances-DY_ORk5g.js} +2 -0
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/sdk/index.js +1 -1
- package/dist/next/index.d.ts +73 -6
- package/dist/next/index.js +88 -35
- package/dist/{operations-CB9atU2e.d.ts → operations-hm1Isvvs.d.ts} +1 -1
- package/dist/{options-BKBy5wM_.js → options-CF6EVF_G.js} +2 -1
- package/dist/{options-COo7_3MX.js → options-DSCW40_5.js} +3 -1
- package/dist/orpc/index.js +2 -1
- package/dist/otel/index.js +4 -4
- package/dist/{ports-hpbyMySO.d.ts → ports-DOrPTJzl.d.ts} +1 -1
- package/dist/powersync/index.d.ts +204 -4
- package/dist/powersync/index.js +361 -4
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-DCdEnJj9.js → preset-CXhpPmPV.js} +2 -2
- package/dist/{project-B32wb5J6.js → project-DJ9Uo0sT.js} +5 -5
- package/dist/{push-token-DQ1ycFPU.d.ts → push-token-B4vcIU4s.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/index.js +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 +5 -5
- package/dist/react/server.js +1 -1
- package/dist/{react-CcrQQl0_.js → react-mdVjpewL.js} +2 -2
- package/dist/react-router/index.js +2 -2
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-type-DRbnlj5q.js → record-type-BEUyEsFx.js} +2 -2
- package/dist/records/index.d.ts +5 -5
- package/dist/records/index.js +3 -3
- package/dist/{replicas-Dyoh3CEg.js → refresh-DLBgnxjL.js} +51 -1
- package/dist/{resolved-names-iLBOUaib.js → resolved-names-kMRjmSIy.js} +1 -1
- package/dist/{runtime-CoKxZibd.js → runtime-LRJM7UqY.js} +19 -20
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +4 -4
- package/dist/{sign-in-Cyj3ZlFX.js → sign-in-CuZ1Ag7O.js} +17 -2
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid-start/index.js +2 -2
- package/dist/spec/index.js +1 -1
- package/dist/sql/index.d.ts +4 -4
- package/dist/sql/index.js +3 -3
- package/dist/{sql-CyeDg3Yh.js → sql-DHp0L7zK.js} +404 -165
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/sveltekit/index.js +2 -2
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tenant-C9YE_kqK.d.ts → tenant-FfgNhd5x.d.ts} +1 -1
- package/dist/testing/index.d.ts +13 -4
- package/dist/testing/index.js +17 -15
- package/dist/{timeline-DvXtXq5q.d.ts → timeline-DqEoD8bb.d.ts} +1 -1
- package/dist/{timeline--VU3A1e4.js → timeline-Dz3hO2I6.js} +1 -1
- package/dist/{topic-breZqx_4.d.ts → topic-BaUElNw2.d.ts} +1 -1
- package/dist/{types-C3I7S51U.d.ts → types-CMN0h_Ix.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-ItO3dz8m.d.ts → watch-topic-BabDTZ-L.d.ts} +1 -1
- package/dist/workflow-sdk/world/index.js +2 -2
- package/dist/{workflow-sdk-BWPsdzVK.js → workflow-sdk-DJJkP0dT.js} +12 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +9 -1
- package/schemas/doctor-report-v1.json +1 -0
- package/skills/better-supabase/references/ui-recipes.md +524 -295
- package/skills/better-supabase-api/references/powersync.md +16 -0
- package/skills/better-supabase-auth/SKILL.md +4 -1
- package/dist/cli/add-BdhGOwkB.js +0 -1
- package/dist/cli/env-CynGCICL.js +0 -1
- package/dist/cli/powersync-DnBsDchT.js +0 -1
- package/dist/cli/seed-BOun22-k.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-CCAwhiOh.js";
|
|
2
2
|
import { i as plain } from "./style-Bm2X5JrN.js";
|
|
3
3
|
import { n as CliError } from "./errors-BTe6A15O.js";
|
|
4
4
|
import { t as display } from "./io-DH1kcmmP.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as display } from "./io-DH1kcmmP.js";
|
|
2
|
-
import { r as layoutFor } from "./providers-
|
|
2
|
+
import { r as layoutFor } from "./providers-DtI90lSw.js";
|
|
3
3
|
import { d as fileDiff, i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
|
|
4
|
-
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-
|
|
5
|
-
import { r as migrationStamp } from "./migrations-
|
|
6
|
-
import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-
|
|
7
|
-
import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-
|
|
4
|
+
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-Dp4Rottt.js";
|
|
5
|
+
import { r as migrationStamp } from "./migrations-bAd7dpk1.js";
|
|
6
|
+
import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-CkNux8dr.js";
|
|
7
|
+
import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-BnORI43S.js";
|
|
8
8
|
import { a as legacyPrefixSql, i as legacyPrefixNames, r as legacyBlocksTableSql } from "./legacy-prefix-R7UChFFl.js";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-CCAwhiOh.js";
|
|
2
2
|
import { i as plain } from "./style-Bm2X5JrN.js";
|
|
3
|
-
import { t as syncModules } from "./sync-
|
|
3
|
+
import { t as syncModules } from "./sync-BnORI43S.js";
|
|
4
4
|
import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
|
|
5
|
-
import { t as upgrade } from "./upgrade-
|
|
5
|
+
import { t as upgrade } from "./upgrade-CR6-WmIc.js";
|
|
6
6
|
//#region src/cli/commands/upgrade.ts
|
|
7
7
|
const UPGRADE_ARGS = {
|
|
8
8
|
check: {
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-rvbR2C4F.js";
|
|
2
|
-
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-
|
|
3
|
-
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-
|
|
4
|
-
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-
|
|
5
|
-
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-
|
|
2
|
+
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-BabDTZ-L.js";
|
|
3
|
+
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-DOrPTJzl.js";
|
|
4
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-DAx0bMSi.js";
|
|
5
|
+
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-Br9dGKGe.js";
|
|
6
6
|
import { n as FunctionContract } from "../function-contract-DxFNOmsm.js";
|
|
7
|
-
import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-
|
|
7
|
+
import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-eRBuKtMt.js";
|
|
8
8
|
export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
2
2
|
import { T as UploadOptions, w as UploadBody } from "../../bucket-SvRQwYS4.js";
|
|
3
|
-
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-
|
|
4
|
-
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-
|
|
5
|
-
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-
|
|
6
|
-
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-
|
|
3
|
+
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-BabDTZ-L.js";
|
|
4
|
+
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-DOrPTJzl.js";
|
|
5
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-DAx0bMSi.js";
|
|
6
|
+
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-B4vcIU4s.js";
|
|
7
7
|
import { a as OAuthSignInOptions, c as linkParams, i as OAuthClient, l as signInWithOAuthBrowser, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, s as handleAuthDeepLink, t as AuthFailure } from "../../auth-link-B4NL84XU.js";
|
|
8
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
//#region src/client/native/auto-refresh.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as problemResponse } from "./problem-Bf0cJ7tk.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { _ as withSupport, b as withServerContext, g as withTenant, s as createServer, x as serverCore, y as withSession } from "./adapter-BTbj5N9C.js";
|
|
3
|
+
import { d as withPrimaryPin } from "./refresh-DLBgnxjL.js";
|
|
4
4
|
import { i as guard, n as defaultExpose } from "./respond-CZMWbUs3.js";
|
|
5
5
|
import { a as withAuthMode, i as withAuth, o as withJwtClaims, s as withUserClaims } from "./claims-DTy6R6my.js";
|
|
6
6
|
import { defineComposite, defineMiddleware } from "@supabase/middleware";
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as Casing } from "../types-CPl9uJ0G.js";
|
|
2
|
-
import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-
|
|
3
|
-
import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as OrganizationConfig, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as SqlInput, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-
|
|
2
|
+
import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-DfEkyFt_.js";
|
|
3
|
+
import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as OrganizationConfig, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as SqlInput, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-DWWoP1wK.js";
|
|
4
4
|
import { i as SubjectsConfig, n as SubjectPermission, r as SubjectSearch, t as SubjectConfig } from "../subjects-BYCL-6hA.js";
|
|
5
5
|
import { a as FieldFormat, o as FieldFormatInput, r as FIELD_FORMATS } from "../field-formats-CAFNkKSN.js";
|
|
6
6
|
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksFramework, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OrganizationConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectsConfig, type TableConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
package/dist/config/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-
|
|
2
|
-
import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-
|
|
1
|
+
import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-kMRjmSIy.js";
|
|
2
|
+
import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-R0m0fBiD.js";
|
|
3
3
|
import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-Bp9My7XP.js";
|
|
4
|
-
import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-
|
|
4
|
+
import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-DY_ORk5g.js";
|
|
5
5
|
import { r as FIELD_FORMATS } from "../field-formats-C6QKA3UR.js";
|
|
6
|
-
import { a as factories, c as resolveConfig, d as blockSubjectTypes, f as providerApiProblem, i as nuqs, l as blockEntities, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod, u as blockEntityRenames } from "../config-
|
|
6
|
+
import { a as factories, c as resolveConfig, d as blockSubjectTypes, f as providerApiProblem, i as nuqs, l as blockEntities, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod, u as blockEntityRenames } from "../config-B7g-HDis.js";
|
|
7
7
|
import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-DHJxiizN.js";
|
|
8
8
|
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-
|
|
2
|
-
import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-
|
|
1
|
+
import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-kMRjmSIy.js";
|
|
2
|
+
import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-R0m0fBiD.js";
|
|
3
3
|
import { t as DEFAULT_CLAIMS } from "./claims-Bp9My7XP.js";
|
|
4
4
|
import { o as tenantNames } from "./entity-naming-Dtyq5sKE.js";
|
|
5
|
-
import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-
|
|
5
|
+
import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-DY_ORk5g.js";
|
|
6
6
|
import { C as variantsFor, S as variantTitle, _ as schemaName, a as extraSchemas, b as tableEntries, c as resultType, d as fieldSpec, f as fieldsFor, g as rowType, h as propertyKey, i as extraKinds, l as HEADER, m as parseImport, o as fieldMetaLines, p as optionalLine, s as objectType, u as fieldDocs, v as siblingPath, x as temporalGuardImport, y as tableDocs } from "./json-schema-DHJxiizN.js";
|
|
7
7
|
//#region src/config/authorization.ts
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DEFAULT_TENANT } from "./entity-naming-Dtyq5sKE.js";
|
|
2
|
-
import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-
|
|
2
|
+
import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-DY_ORk5g.js";
|
|
3
3
|
//#region src/config/names.ts
|
|
4
4
|
/** The steps `better-supabase gen` runs, in the order it runs them. */
|
|
5
5
|
const GEN_TASKS = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { M as Casing, P as ClaimsMeta, T as AccessBucketPolicy, _t as BucketLifecycle, j as BucketPolicyName, ot as SchemaMeta } from "./types-CPl9uJ0G.js";
|
|
3
|
-
import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-
|
|
3
|
+
import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-DfEkyFt_.js";
|
|
4
4
|
import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-DWVZSZv1.js";
|
|
5
5
|
import { a as ScalarKind, i as FieldSpec } from "./table-schema-BlF6k62Q.js";
|
|
6
6
|
import { i as SubjectsConfig } from "./subjects-BYCL-6hA.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as whileSignedIn, t as defineController } from "./controller-BEliOBOv.js";
|
|
2
2
|
import { r as recordEventMatches } from "./record-bindings-Z51mGfhB.js";
|
|
3
|
-
import { f as findBinding, p as loadBindings } from "./record-type-
|
|
3
|
+
import { f as findBinding, p as loadBindings } from "./record-type-BEUyEsFx.js";
|
|
4
4
|
//#region src/records/controller.ts
|
|
5
5
|
/**
|
|
6
6
|
* One record page's bindings for the signed-in user over one realtime
|
package/dist/create/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-
|
|
3
|
-
import { E as CreateDesign, b as DesignChange } from "../index-
|
|
4
|
-
import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-
|
|
2
|
+
import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-DWWoP1wK.js";
|
|
3
|
+
import { E as CreateDesign, b as DesignChange } from "../index-Clyd2Goi.js";
|
|
4
|
+
import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-CMN0h_Ix.js";
|
|
5
5
|
import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-wtecfrNf.js";
|
|
6
6
|
//#region src/create/check.d.ts
|
|
7
7
|
/** What `checkDesign` returns. */
|
package/dist/create/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as APP_ON_DELETE_ACTIONS } from "../instances-
|
|
2
|
-
import { m as diffDesigns } from "../preset-
|
|
3
|
-
import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-
|
|
1
|
+
import { k as APP_ON_DELETE_ACTIONS } from "../instances-DY_ORk5g.js";
|
|
2
|
+
import { m as diffDesigns } from "../preset-CXhpPmPV.js";
|
|
3
|
+
import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-DJ9Uo0sT.js";
|
|
4
4
|
//#region src/create/column-kinds.ts
|
|
5
5
|
/** The groups of the column type picker, in the order it shows them. */
|
|
6
6
|
const KIND_GROUPS = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ot as SchemaMeta } from "../../types-CPl9uJ0G.js";
|
|
2
|
-
import { Tt as PresetInput } from "../../context-
|
|
3
|
-
import { E as CreateDesign } from "../../index-
|
|
4
|
-
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-
|
|
2
|
+
import { Tt as PresetInput } from "../../context-DWWoP1wK.js";
|
|
3
|
+
import { E as CreateDesign } from "../../index-Clyd2Goi.js";
|
|
4
|
+
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-CMN0h_Ix.js";
|
|
5
5
|
import { c as SpecDiagnostic } from "../../format-u-65igKI.js";
|
|
6
6
|
//#region src/lite/runtime.d.ts
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { y as appDefaultError } from "../../instances-
|
|
2
|
-
import { n as loadProject } from "../../project-
|
|
3
|
-
import { n as loadLite, t as LITE_INSTALL } from "../../runtime-
|
|
1
|
+
import { y as appDefaultError } from "../../instances-DY_ORk5g.js";
|
|
2
|
+
import { n as loadProject } from "../../project-DJ9Uo0sT.js";
|
|
3
|
+
import { n as loadLite, t as LITE_INSTALL } from "../../runtime-LRJM7UqY.js";
|
|
4
4
|
import { t as defineApi } from "../../api-3C0AWFeP.js";
|
|
5
5
|
//#region src/create/lite/apply.ts
|
|
6
6
|
const MISSING_EXTENSION = /extension "([^"]+)" is not available/u;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { n as isRecord } from "./guards-6F2bCtQR.js";
|
|
2
|
+
import { b as nullableText } from "./block-helpers-B0f0ZVb5.js";
|
|
3
|
+
//#region src/blocks/notifications/delivery-events.ts
|
|
4
|
+
const DELIVERY_EVENT_KINDS = [
|
|
5
|
+
"delivered",
|
|
6
|
+
"opened",
|
|
7
|
+
"clicked",
|
|
8
|
+
"bounced",
|
|
9
|
+
"complained",
|
|
10
|
+
"delayed"
|
|
11
|
+
];
|
|
12
|
+
const deliveryEventKindOf = (value) => DELIVERY_EVENT_KINDS.find((kind) => kind === value) ?? null;
|
|
13
|
+
/** One `record_delivery_event` result, or `null` for an unknown shape. */
|
|
14
|
+
function recordedDeliveryEventOf(value) {
|
|
15
|
+
if (!isRecord(value)) return null;
|
|
16
|
+
const kind = deliveryEventKindOf(value["kind"]);
|
|
17
|
+
if (kind === null) return null;
|
|
18
|
+
return {
|
|
19
|
+
deliveryId: String(value["delivery_id"]),
|
|
20
|
+
notificationId: String(value["notification_id"]),
|
|
21
|
+
tenant: nullableText(value["tenant"]),
|
|
22
|
+
type: String(value["type"]),
|
|
23
|
+
channel: String(value["channel"]),
|
|
24
|
+
userId: nullableText(value["user_id"]),
|
|
25
|
+
subject: {
|
|
26
|
+
type: String(value["subject_type"]),
|
|
27
|
+
id: String(value["subject_id"])
|
|
28
|
+
},
|
|
29
|
+
kind,
|
|
30
|
+
providerStatus: deliveryEventKindOf(value["provider_status"]),
|
|
31
|
+
recorded: value["recorded"] === true
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Emits `notification.<kind>` for a provider event `record_delivery_event`
|
|
36
|
+
* stored, and nothing for one it had already stored.
|
|
37
|
+
*/
|
|
38
|
+
function emitDeliveryEvent(emit, recorded, provider, providerEventId) {
|
|
39
|
+
if (!recorded.recorded) return;
|
|
40
|
+
emit(`notification.${recorded.kind}`, {
|
|
41
|
+
notificationId: recorded.notificationId,
|
|
42
|
+
organizationId: recorded.tenant,
|
|
43
|
+
type: recorded.type,
|
|
44
|
+
channel: recorded.channel,
|
|
45
|
+
deliveryId: recorded.deliveryId,
|
|
46
|
+
provider,
|
|
47
|
+
providerEventId,
|
|
48
|
+
subjectType: recorded.subject.type,
|
|
49
|
+
subjectId: recorded.subject.id
|
|
50
|
+
}, `notifications/${recorded.notificationId}`, recorded.tenant);
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { emitDeliveryEvent as n, recordedDeliveryEventOf as r, deliveryEventKindOf as t };
|
package/dist/edge/index.js
CHANGED
|
@@ -2,15 +2,15 @@ import { n as dbError } from "../errors-BVFgt8BZ.js";
|
|
|
2
2
|
import { a as ok, r as err } from "../result-ntFBW2p2.js";
|
|
3
3
|
import { n as validate } from "../standard-BA3mLh6w.js";
|
|
4
4
|
import { o as problemResponse } from "../problem-Bf0cJ7tk.js";
|
|
5
|
-
import { a as unexpectedResponse, c as extendServer, o as withFlush, s as createServer } from "../adapter-
|
|
5
|
+
import { a as unexpectedResponse, c as extendServer, o as withFlush, s as createServer } from "../adapter-BTbj5N9C.js";
|
|
6
6
|
import { n as defaultExpose, o as respond, s as settle } from "../respond-CZMWbUs3.js";
|
|
7
|
-
import { t as withBetterSupabase } from "../composite-
|
|
7
|
+
import { t as withBetterSupabase } from "../composite-B4qB6k31.js";
|
|
8
8
|
import { i as defineAction } from "../resource-BUJcZKiW.js";
|
|
9
9
|
import { i as requireCaller } from "../kit-Bcd9wYCV.js";
|
|
10
10
|
import { t as withExtra } from "../extra-CGQ2_q3S.js";
|
|
11
11
|
import { n as resourceRouter } from "../resources-jb3R6rEa.js";
|
|
12
12
|
import { n as corsConfig, t as SUPABASE_CORS_HEADERS } from "../cors-h_v7TPxl.js";
|
|
13
|
-
import { t as EVERY_CALLER } from "../framework-
|
|
13
|
+
import { t as EVERY_CALLER } from "../framework-CqiZk89W.js";
|
|
14
14
|
import { t as FUNCTION_DESCRIPTOR } from "../function-contract-pEmsaUIf.js";
|
|
15
15
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
16
16
|
import { withCors } from "@supabase/middleware/cors";
|
package/dist/eve/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as DbException } from "../db-exception-Lngc1W49.js";
|
|
2
2
|
import { n as isRecord } from "../guards-6F2bCtQR.js";
|
|
3
3
|
import { a as tenantClaimPaths, n as claimAt, t as DEFAULT_CLAIMS } from "../claims-Bp9My7XP.js";
|
|
4
|
+
import { t as importOptionalPeer } from "../optional-peer-C1NbBRJm.js";
|
|
4
5
|
import { i as resolveAuth } from "../resolve-B0mW2m7f.js";
|
|
5
6
|
import { t as isAnonymousUser } from "../view-C8Ve14ja.js";
|
|
6
|
-
import { t as importOptionalPeer } from "../optional-peer-C1NbBRJm.js";
|
|
7
7
|
//#region src/eve/ids.ts
|
|
8
8
|
/**
|
|
9
9
|
* A UUID (version 8) from the SHA-256 of `input`, so the same input always gets
|
package/dist/expo/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { t as DbException } from "../db-exception-Lngc1W49.js";
|
|
2
2
|
import { c as toProblem } from "../problem-Bf0cJ7tk.js";
|
|
3
|
-
import { a as unexpectedResponse,
|
|
3
|
+
import { a as unexpectedResponse, c as extendServer, s as createServer } from "../adapter-BTbj5N9C.js";
|
|
4
|
+
import { n as refreshFor, t as isPrefetch } from "../refresh-DLBgnxjL.js";
|
|
4
5
|
import { h as serializeCookie } from "../resolve-B0mW2m7f.js";
|
|
5
6
|
import { i as guard, n as defaultExpose, o as respond } from "../respond-CZMWbUs3.js";
|
|
6
|
-
import { t as withBetterSupabase } from "../composite-
|
|
7
|
+
import { t as withBetterSupabase } from "../composite-B4qB6k31.js";
|
|
7
8
|
import { r as handoffOf } from "../shared-Bf-I13Ht.js";
|
|
8
9
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
9
10
|
import { StatusError, setResponseHeaders } from "expo-server";
|
|
@@ -5,10 +5,10 @@ import { mt as QuerySpec } from "./define-D8_9X5fZ.js";
|
|
|
5
5
|
import { tt as TemplateValues } from "./bucket-SvRQwYS4.js";
|
|
6
6
|
import { n as DataEngine } from "./data-engine-rvbR2C4F.js";
|
|
7
7
|
import { Dn as GeneratedBlocks } from "./define-block-DWVZSZv1.js";
|
|
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-
|
|
8
|
+
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-BaUElNw2.js";
|
|
9
|
+
import { t as ClientPorts } from "./ports-DOrPTJzl.js";
|
|
10
|
+
import { a as ClientAuth } from "./bind-DAx0bMSi.js";
|
|
11
|
+
import { a as LiveSource, r as LiveCountSeed } from "./index-DIdPoQtO.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,5 +1,5 @@
|
|
|
1
1
|
import { l as snapshotOf, n as toSession } from "./view-C8Ve14ja.js";
|
|
2
|
-
import { t as withBetterSupabase } from "./composite-
|
|
2
|
+
import { t as withBetterSupabase } from "./composite-B4qB6k31.js";
|
|
3
3
|
//#region src/server/framework.ts
|
|
4
4
|
/**
|
|
5
5
|
* Every caller: the framework factories guard per loader, action or route
|
package/dist/hono/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as dbErrorOf } from "../errors-BVFgt8BZ.js";
|
|
2
2
|
import { o as problemResponse } from "../problem-Bf0cJ7tk.js";
|
|
3
|
-
import { a as unexpectedResponse, c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
3
|
+
import { a as unexpectedResponse, c as extendServer, n as flushEvents, s as createServer } from "../adapter-BTbj5N9C.js";
|
|
4
4
|
import { l as snapshotOf, n as toSession } from "../view-C8Ve14ja.js";
|
|
5
5
|
import { n as defaultExpose, o as respond, t as assertCookieRefresh } from "../respond-CZMWbUs3.js";
|
|
6
|
-
import { t as withBetterSupabase } from "../composite-
|
|
6
|
+
import { t as withBetterSupabase } from "../composite-B4qB6k31.js";
|
|
7
7
|
import { i as defineAction, t as defineResource } from "../resource-BUJcZKiW.js";
|
|
8
8
|
import { i as requireCaller } from "../kit-Bcd9wYCV.js";
|
|
9
9
|
import { t as matchResource } from "../resources-jb3R6rEa.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-
|
|
1
|
+
import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-DWWoP1wK.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;
|
|
@@ -4,14 +4,14 @@ import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap,
|
|
|
4
4
|
import { mt as QuerySpec } from "./define-D8_9X5fZ.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-SvRQwYS4.js";
|
|
6
6
|
import { m as RejectedChange, o as DataSyncState } from "./data-engine-rvbR2C4F.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-uIU65iEn.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-BaUElNw2.js";
|
|
9
|
+
import { t as AuthSnapshot } from "./bind-DAx0bMSi.js";
|
|
10
10
|
import { t as AuthSession } from "./view-C8_xvD-j.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-DIdPoQtO.js";
|
|
12
|
+
import { n as Controller } from "./controller-Br9dGKGe.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-CEjsMAgd.js";
|
|
14
|
+
import { t as BlockEnv } from "./block-env-Dz7Caxk0.js";
|
|
15
15
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "./block-method-CiVa2G-J.js";
|
|
16
16
|
import { s as RecordFormValues, t as RecordForm } from "./record-form-CubgBrtI.js";
|
|
17
17
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
@@ -2,8 +2,8 @@ import { b as DbError, f as Result } from "./result-DZeA5KS6.js";
|
|
|
2
2
|
import { $ as RecordRef, ot as SchemaMeta } from "./types-CPl9uJ0G.js";
|
|
3
3
|
import { mt as QuerySpec } from "./define-D8_9X5fZ.js";
|
|
4
4
|
import { t as DataChanges } from "./data-engine-rvbR2C4F.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-BaUElNw2.js";
|
|
6
|
+
import { n as TopicPort } from "./watch-topic-BabDTZ-L.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-CPl9uJ0G.js";
|
|
2
|
-
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-
|
|
2
|
+
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-DfEkyFt_.js";
|
|
3
3
|
import { nt as ReadSet } from "./define-D8_9X5fZ.js";
|
|
4
|
-
import { R as TableGrant, Tr as AppTableConfig, Vr as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, cn as ResolvedConfig, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-
|
|
4
|
+
import { R as TableGrant, Tr as AppTableConfig, Vr as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, cn as ResolvedConfig, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-DWWoP1wK.js";
|
|
5
5
|
import { t as SubjectConfig } from "./subjects-BYCL-6hA.js";
|
|
6
6
|
//#region src/sql/render.d.ts
|
|
7
7
|
/** A module's SQL for `layout`, without header; `undefined` in custom mode. */
|
|
@@ -3,8 +3,8 @@ import { O as AnyFunctions, k as AnyModels } from "./types-CPl9uJ0G.js";
|
|
|
3
3
|
import { l as PublicEnv } from "./index-NRMMhhEi.js";
|
|
4
4
|
import { g as SessionEncoding } from "./resolve-CtX6T0c0.js";
|
|
5
5
|
import { t as BetterSupabase } from "./define-D8_9X5fZ.js";
|
|
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-
|
|
6
|
+
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-DOrPTJzl.js";
|
|
7
|
+
import { i as BindClientOptions, r as BetterClient } from "./bind-DAx0bMSi.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
|
|
@@ -366,7 +366,7 @@ declare function countBinding<B extends BindingBlocks>(source: BindingSource<B>,
|
|
|
366
366
|
type RecordTypeBlocks = Readonly<Record<string, AnyBlock>>;
|
|
367
367
|
/** The `permissions` constant of `blocks.generated.ts`. */
|
|
368
368
|
type RecordTypePermissions = Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
369
|
-
/** A block whose client loads the caller's keys, such as the
|
|
369
|
+
/** A block whose client loads the caller's keys, such as the permissions block. */
|
|
370
370
|
interface PermissionsBlock extends AnyBlock {
|
|
371
371
|
readonly create: ((options: never) => {
|
|
372
372
|
permissions(keys: readonly string[]): AsyncResult<PermissionSet>;
|
|
@@ -386,7 +386,7 @@ interface RecordTypeSpec<T extends string, B extends RecordTypeBlocks> {
|
|
|
386
386
|
*/
|
|
387
387
|
readonly permissions?: RecordTypePermissions;
|
|
388
388
|
/**
|
|
389
|
-
* The
|
|
389
|
+
* The permissions block, which loads the caller's keys for the `can` flags.
|
|
390
390
|
* Without it every flag is `true` and RLS decides.
|
|
391
391
|
*/
|
|
392
392
|
readonly access?: PermissionsBlock;
|
|
@@ -431,8 +431,8 @@ declare function recordPermissionKeys(feature: Pick<RecordType, "blocks" | "perm
|
|
|
431
431
|
/**
|
|
432
432
|
* What the caller may do on each of a record type's bindings, from its
|
|
433
433
|
* `PermissionSet`. A binding action with no key in `permissions` is allowed,
|
|
434
|
-
* and so is everything when `set` is `undefined` (no
|
|
435
|
-
* each function's checks decide.
|
|
434
|
+
* and so is everything when `set` is `undefined` (no permissions block): RLS
|
|
435
|
+
* and each function's checks decide.
|
|
436
436
|
*/
|
|
437
437
|
declare function recordCan<B extends RecordTypeBlocks, N extends BindingName<B>>(feature: Pick<RecordType<string, B>, "blocks" | "permissions"> & {
|
|
438
438
|
readonly bindings: readonly N[];
|
|
@@ -495,8 +495,8 @@ interface RecordQueries<T extends string, B extends RecordTypeBlocks, N extends
|
|
|
495
495
|
}
|
|
496
496
|
interface RecordQueriesOptions extends QueriesOptions {
|
|
497
497
|
/**
|
|
498
|
-
* The
|
|
499
|
-
* it every flag is `true` and RLS decides.
|
|
498
|
+
* The permissions block's client, which loads the caller's keys for `can`.
|
|
499
|
+
* Without it every flag is `true` and RLS decides.
|
|
500
500
|
*/
|
|
501
501
|
readonly access?: {
|
|
502
502
|
permissions(keys: readonly string[]): AsyncResult<PermissionSet>;
|
|
@@ -6633,6 +6633,7 @@ const PRESET_CATALOG = {
|
|
|
6633
6633
|
{ "name": "CalendarImport" },
|
|
6634
6634
|
{ "name": "CalendarInfo" },
|
|
6635
6635
|
{ "name": "CalendarOccurrence" },
|
|
6636
|
+
{ "name": "CalendarOccurrenceRef" },
|
|
6636
6637
|
{ "name": "CalendarOptions" },
|
|
6637
6638
|
{ "name": "CalendarSnapshot" },
|
|
6638
6639
|
{ "name": "CalendarTransparency" },
|
|
@@ -14231,6 +14232,7 @@ const PRESET_CATALOG = {
|
|
|
14231
14232
|
},
|
|
14232
14233
|
{ "name": "TeamsEvents" },
|
|
14233
14234
|
{ "name": "TeamsOptions" },
|
|
14235
|
+
{ "name": "TeamStatus" },
|
|
14234
14236
|
{ "name": "UpdateTeamOptions" }
|
|
14235
14237
|
],
|
|
14236
14238
|
"events": {
|
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-Dz8ZlOuh.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-x2wWAy0h.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-BlQ4DDcJ.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-QGWfEoiB.js";
|
|
5
5
|
import { i as discoverConfig, s as loadConfig } from "../cli/config-Cskysxp-.js";
|
|
6
6
|
import { i as parseEnv, n as configEnvironment } from "../cli/env-BK0xKMeU.js";
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-DvOSOdTE.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,5 +1,5 @@
|
|
|
1
1
|
import { O as AnyFunctions, k as AnyModels, ut as TableKey } from "../types-CPl9uJ0G.js";
|
|
2
|
-
import { t as OperationTable } from "../operations-
|
|
2
|
+
import { t as OperationTable } from "../operations-hm1Isvvs.js";
|
|
3
3
|
import { l as PermissionRef, t as AnyAuthorizer } from "../authorizer-B6X09otb.js";
|
|
4
4
|
import { t as BetterSupabase } from "../define-D8_9X5fZ.js";
|
|
5
5
|
import { a as ServerContext, c as ServerOptions, n as BetterServer } from "../server-types-BkTIxW_H.js";
|
package/dist/mcp/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { r as toDraft07, t as buildJsonSchema } from "../json-schema-DHJxiizN.js
|
|
|
8
8
|
import { r as operationPermission, t as OPERATION_PREFIXES } from "../operations-DVHRHvv6.js";
|
|
9
9
|
import { r as pageSchema, t as pageInputSchema } from "../resource-schemas-up6bKOUi.js";
|
|
10
10
|
import { n as jsonResponse, t as jsonReplacer } from "../json-DaByVJpw.js";
|
|
11
|
-
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-
|
|
11
|
+
import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-BTbj5N9C.js";
|
|
12
12
|
import { n as checkEach, r as checkPermission } from "../authorizer-BGhXaDmo.js";
|
|
13
13
|
import { i as guard, n as defaultExpose, s as settle } from "../respond-CZMWbUs3.js";
|
|
14
14
|
import { t as boundedTtlCache } from "../ttl-cache-Bhr9swjT.js";
|
package/dist/mcp/sdk/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
2
2
|
import { o as problemResponse } from "../../problem-Bf0cJ7tk.js";
|
|
3
3
|
import { i as delegationOf } from "../../actor-go7p9-CJ.js";
|
|
4
|
-
import { c as extendServer, i as resolveToken, n as flushEvents, s as createServer } from "../../adapter-
|
|
4
|
+
import { c as extendServer, i as resolveToken, n as flushEvents, s as createServer } from "../../adapter-BTbj5N9C.js";
|
|
5
5
|
import { i as guard } from "../../respond-CZMWbUs3.js";
|
|
6
6
|
import { t as withExtra } from "../../extra-CGQ2_q3S.js";
|
|
7
7
|
import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../../http-DzbloBR-.js";
|