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
package/dist/ssr/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as readSession, D as writeSession, E as sessionEncoding, S as pruneSessionChunks, T as sessionCookieName, _ as StoredSession, a as ResolveAuthOptions, b as clearSessionAtScopes, d as CookieOptions, f as CookieRecord, g as SessionEncoding, h as DEFAULT_SESSION_ENCODING, l as resolveAuth, m as CookieWrite, n as AuthResolver, p as CookieScope, r as AuthState, t as AuthResolution, u as AUTH_CACHE_HEADERS, v as WriteSessionOptions, w as serializeCookie, x as parseCookies, y as applyCookieWrites } from "../resolve-CtX6T0c0.js";
|
|
2
2
|
import { n as toSession, t as AuthSession } from "../view-C8_xvD-j.js";
|
|
3
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
3
|
+
import { r as MembershipClaim } from "../entitlements-CBjm2lvD.js";
|
|
4
4
|
import { n as RefreshOutcome, r as refreshSession, t as RefreshOptions } from "../refresh-D02Pbf5B.js";
|
|
5
5
|
import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-EZzN9QTM.js";
|
|
6
6
|
export { AUTH_CACHE_HEADERS, type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type ClearSessionCookiesOptions, type CookieOptions, type CookieRecord, type CookieScope, type CookieWrite, DEFAULT_SESSION_ENCODING, type MembershipClaim, type RefreshOptions, type RefreshOutcome, type ResolveAuthOptions, type SessionEncoding, type SessionStatus, type SessionStatusOptions, type StoredSession, type WriteSessionOptions, applyCookieWrites, authContext, clearSessionAtScopes, clearSessionCookies, parseCookies, pruneSessionChunks, readSession, refreshSession, resolveAuth, serializeCookie, sessionCookieName, sessionEncoding, sessionStatus, toSession, writeSession };
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DZeA5KS6.js";
|
|
|
2
2
|
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-B2qbZps6.js";
|
|
3
3
|
import { mt as QuerySpec } from "../define-D8_9X5fZ.js";
|
|
4
4
|
import { tt as TemplateValues } from "../bucket-SvRQwYS4.js";
|
|
5
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
5
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-BaUElNw2.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-DAx0bMSi.js";
|
|
7
7
|
import { t as AuthSession } from "../view-C8_xvD-j.js";
|
|
8
|
-
import { n as Controller } from "../controller-
|
|
9
|
-
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-
|
|
10
|
-
import { n as BlockOptions } from "../block-env-
|
|
8
|
+
import { n as Controller } from "../controller-Br9dGKGe.js";
|
|
9
|
+
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-CEjsMAgd.js";
|
|
10
|
+
import { n as BlockOptions } from "../block-env-Dz7Caxk0.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
|
|
12
12
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
13
13
|
import { QueryClient } from "@tanstack/query-core";
|
package/dist/sveltekit/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as DbException } from "../db-exception-Lngc1W49.js";
|
|
2
2
|
import { r as dbErrorOf } from "../errors-BVFgt8BZ.js";
|
|
3
3
|
import { c as toProblem } from "../problem-Bf0cJ7tk.js";
|
|
4
|
-
import { c as extendServer, o as withFlush, s as createServer } from "../adapter-
|
|
4
|
+
import { c as extendServer, o as withFlush, s as createServer } from "../adapter-BTbj5N9C.js";
|
|
5
5
|
import { n as defaultExpose } from "../respond-CZMWbUs3.js";
|
|
6
6
|
import { r as tagFor } from "../tags-CIZTqtlY.js";
|
|
7
7
|
import { i as requireCaller, o as runAction } from "../kit-Bcd9wYCV.js";
|
|
8
8
|
import { n as bufferInPlace, t as around } from "../shared-Bf-I13Ht.js";
|
|
9
|
-
import { a as platformWaitUntil, i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-
|
|
9
|
+
import { a as platformWaitUntil, i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-CqiZk89W.js";
|
|
10
10
|
import { i as refusalTarget } from "../refusal-DDlInPff.js";
|
|
11
11
|
//#region src/bridges/sveltekit.ts
|
|
12
12
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as extendServer, o as withFlush, s as createServer } from "../adapter-
|
|
1
|
+
import { c as extendServer, o as withFlush, s as createServer } from "../adapter-BTbj5N9C.js";
|
|
2
2
|
import { n as defaultExpose } from "../respond-CZMWbUs3.js";
|
|
3
3
|
import { i as requireCaller, o as runAction } from "../kit-Bcd9wYCV.js";
|
|
4
4
|
import { n as bufferInPlace, t as around } from "../shared-Bf-I13Ht.js";
|
|
5
|
-
import { i as localsOf, r as frameworkEntry } from "../framework-
|
|
5
|
+
import { i as localsOf, r as frameworkEntry } from "../framework-CqiZk89W.js";
|
|
6
6
|
import { r as refusalResponse } from "../refusal-DDlInPff.js";
|
|
7
7
|
//#region src/bridges/tanstack-start.ts
|
|
8
8
|
/**
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { a as BlockTransportMiddleware } from "../block-hooks-B8itxzEE.js";
|
|
|
9
9
|
import { a as SessionActor, o as SessionDelegation } from "../actor-CoveJgya.js";
|
|
10
10
|
import { P as QueueProvider } from "../types-CK2X2wCB.js";
|
|
11
11
|
import { n as Embedder } from "../knowledge-CsLPACGJ.js";
|
|
12
|
-
import { a as AuthorizationProvider } from "../authorization-
|
|
12
|
+
import { a as AuthorizationProvider } from "../authorization-DfEkyFt_.js";
|
|
13
13
|
import { o as StreamStore } from "../store-CpheI-lN.js";
|
|
14
14
|
import { o as Authorizer } from "../authorizer-B6X09otb.js";
|
|
15
15
|
import { Qt as CacheAdapter, Y as DbStats, t as BetterSupabase, y as Db } from "../define-D8_9X5fZ.js";
|
|
@@ -24,9 +24,9 @@ import { s as SqlClaims, t as BetterPostgres } from "../pool-DDR1ndk7.js";
|
|
|
24
24
|
import { C as SupportSessionStore } from "../support-BxyPOFk4.js";
|
|
25
25
|
import { r as GuardOptions } from "../respond-Dzu_-EPH.js";
|
|
26
26
|
import { l as Transcriber, s as NoteTaker, u as TranscriberInput } from "../recordings-DeZYx-Kv.js";
|
|
27
|
-
import { n as Controller } from "../controller-
|
|
27
|
+
import { n as Controller } from "../controller-Br9dGKGe.js";
|
|
28
28
|
import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-CZEfo-_M.js";
|
|
29
|
-
import { Qt as GeneratorModel, Vt as Generator, Yt as GeneratorInput, cn as ResolvedConfig } from "../context-
|
|
29
|
+
import { Qt as GeneratorModel, Vt as Generator, Yt as GeneratorInput, cn as ResolvedConfig } from "../context-DWWoP1wK.js";
|
|
30
30
|
import { r as WebhookInput } from "../signatures-Dkx9OE8j.js";
|
|
31
31
|
import { n as Payment, o as PaymentProvider } from "../payments-BYcN34Fp.js";
|
|
32
32
|
import { t as NotificationChannel } from "../channel-JcMd5lNP.js";
|
|
@@ -350,6 +350,10 @@ interface InstantLocator {
|
|
|
350
350
|
timeout?: number;
|
|
351
351
|
}): Promise<void>;
|
|
352
352
|
count(): Promise<number>;
|
|
353
|
+
/** Playwright's `Locator.filter`; absent when a custom locator lacks it. */
|
|
354
|
+
filter?(options: {
|
|
355
|
+
visible?: boolean;
|
|
356
|
+
}): InstantLocator;
|
|
353
357
|
}
|
|
354
358
|
interface InstantExpectation {
|
|
355
359
|
/** The navigation to hold, such as a click on a `<Link>`. */
|
|
@@ -485,12 +489,17 @@ interface ScopedSeed<M extends AnyModels, S> {
|
|
|
485
489
|
* It creates a new tenant id, inserts the fixtures that `build` returns through
|
|
486
490
|
* the service role (RLS and plugins don't apply), and hands back the inserted
|
|
487
491
|
* rows. Call `cleanup()` in `afterEach` (or `await using`) to delete them. A
|
|
488
|
-
* user from `asUser` then reads them over PostgREST like any other.
|
|
492
|
+
* user from `asUser` then reads them over PostgREST like any other. The access
|
|
493
|
+
* contract trusts a tenant claim only for a member, so seed the user's
|
|
494
|
+
* membership too (under the catalog model, `role` is the role's id).
|
|
489
495
|
*
|
|
490
496
|
* ```ts
|
|
491
497
|
* const scope = await scopedSeed(
|
|
492
498
|
* betterSupabase,
|
|
493
499
|
* ({ tenant, id }) => ({
|
|
500
|
+
* memberships: {
|
|
501
|
+
* alice: { organizationId: tenant, userId: aliceId, role: "member" },
|
|
502
|
+
* },
|
|
494
503
|
* customers: {
|
|
495
504
|
* first: { organizationId: tenant, name: `first-${id()}` },
|
|
496
505
|
* },
|
package/dist/testing/index.js
CHANGED
|
@@ -6,17 +6,18 @@ import { t as temporal } from "../temporal-required-DcLhnDhQ.js";
|
|
|
6
6
|
import { a as ok } from "../result-ntFBW2p2.js";
|
|
7
7
|
import { t as BetterSupabase } from "../define-D-dLADd5.js";
|
|
8
8
|
import { a as toBase64Url, r as fromBase64, t as base64ToText } from "../base64-B9Wlsdj7.js";
|
|
9
|
-
import { c as resolveConfig } from "../config-
|
|
9
|
+
import { c as resolveConfig } from "../config-B7g-HDis.js";
|
|
10
10
|
import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-CTDNuxRv.js";
|
|
11
11
|
import { r as TRACKING_STATUSES, t as LABEL_FORMATS } from "../statuses-zRcc2TeZ.js";
|
|
12
|
-
import {
|
|
12
|
+
import { t as importOptionalPeer } from "../optional-peer-C1NbBRJm.js";
|
|
13
|
+
import { i as seedLite, n as loadLite, r as migrateLite, t as LITE_INSTALL } from "../runtime-LRJM7UqY.js";
|
|
13
14
|
import { t as buildApiModel } from "../build-CH2N3Yf0.js";
|
|
14
15
|
import { t as onBlockEvent } from "../block-event-listener-Bu6G0TFH.js";
|
|
15
16
|
import { toCloudEvents } from "../events/index.js";
|
|
16
17
|
import { ENV_VARIABLES } from "../env/index.js";
|
|
17
18
|
import { t as defineController } from "../controller-BEliOBOv.js";
|
|
18
19
|
import { H as rawError } from "../block-helpers-B0f0ZVb5.js";
|
|
19
|
-
import "../
|
|
20
|
+
import { t as isPrefetch } from "../refresh-DLBgnxjL.js";
|
|
20
21
|
import { i as defineAuthorizer, r as checkPermission, s as requestOf } from "../authorizer-BGhXaDmo.js";
|
|
21
22
|
import { a as tenantCredentialRef } from "../provider-B6g7rBZX.js";
|
|
22
23
|
import { t as postgresExecutor } from "../executor-C2Ne-Scm.js";
|
|
@@ -379,9 +380,10 @@ async function liteStack(options = {}) {
|
|
|
379
380
|
}
|
|
380
381
|
//#endregion
|
|
381
382
|
//#region src/testing/budget.ts
|
|
382
|
-
function
|
|
383
|
-
const
|
|
384
|
-
|
|
383
|
+
function isPrefetchResponse(response) {
|
|
384
|
+
const request = response.request();
|
|
385
|
+
const headers = new Headers(request.headers());
|
|
386
|
+
return isPrefetch(new Request("http://budget.local/", { headers }));
|
|
385
387
|
}
|
|
386
388
|
function sleep$1(ms) {
|
|
387
389
|
return new Promise((done) => {
|
|
@@ -414,7 +416,7 @@ async function expectPageBudget(page, expectation) {
|
|
|
414
416
|
const headers = response.headers();
|
|
415
417
|
const id = headers["x-bsb-request-id"];
|
|
416
418
|
const stats = headers["x-bsb-stats"];
|
|
417
|
-
if (!id || !stats || !expectation.prefetches &&
|
|
419
|
+
if (!id || !stats || !expectation.prefetches && isPrefetchResponse(response)) return;
|
|
418
420
|
lastSeen = Date.now();
|
|
419
421
|
seen.push({
|
|
420
422
|
response,
|
|
@@ -489,12 +491,7 @@ async function expectPageBudget(page, expectation) {
|
|
|
489
491
|
* `undefined` so the caller can say how to add it.
|
|
490
492
|
*/
|
|
491
493
|
async function loadInstant() {
|
|
492
|
-
|
|
493
|
-
try {
|
|
494
|
-
return (await import(specifier)).instant;
|
|
495
|
-
} catch {
|
|
496
|
-
return;
|
|
497
|
-
}
|
|
494
|
+
return (await importOptionalPeer("@next/playwright"))?.instant;
|
|
498
495
|
}
|
|
499
496
|
async function assertUnderLock(expectation) {
|
|
500
497
|
const timeout = expectation.timeoutMs ?? 5e3;
|
|
@@ -507,7 +504,7 @@ async function assertUnderLock(expectation) {
|
|
|
507
504
|
throw new Error(`expectInstant: ${String(locator)} was not visible under the instant() lock. It is not in the prefetched UI.`, { cause: error });
|
|
508
505
|
}
|
|
509
506
|
for (const locator of expectation.absent ?? []) {
|
|
510
|
-
const count = await locator.count();
|
|
507
|
+
const count = await (locator.filter?.({ visible: true }) ?? locator).count();
|
|
511
508
|
if (count > 0) throw new Error(`expectInstant: ${String(locator)} matched ${count} elements under the instant() lock. It should stream in after the navigation.`);
|
|
512
509
|
}
|
|
513
510
|
}
|
|
@@ -677,12 +674,17 @@ function env$1(names) {
|
|
|
677
674
|
* It creates a new tenant id, inserts the fixtures that `build` returns through
|
|
678
675
|
* the service role (RLS and plugins don't apply), and hands back the inserted
|
|
679
676
|
* rows. Call `cleanup()` in `afterEach` (or `await using`) to delete them. A
|
|
680
|
-
* user from `asUser` then reads them over PostgREST like any other.
|
|
677
|
+
* user from `asUser` then reads them over PostgREST like any other. The access
|
|
678
|
+
* contract trusts a tenant claim only for a member, so seed the user's
|
|
679
|
+
* membership too (under the catalog model, `role` is the role's id).
|
|
681
680
|
*
|
|
682
681
|
* ```ts
|
|
683
682
|
* const scope = await scopedSeed(
|
|
684
683
|
* betterSupabase,
|
|
685
684
|
* ({ tenant, id }) => ({
|
|
685
|
+
* memberships: {
|
|
686
|
+
* alice: { organizationId: tenant, userId: aliceId, role: "member" },
|
|
687
|
+
* },
|
|
686
688
|
* customers: {
|
|
687
689
|
* first: { organizationId: tenant, name: `first-${id()}` },
|
|
688
690
|
* },
|
|
@@ -2,7 +2,7 @@ import { D as ValidationIssue, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
|
2
2
|
import { $ as RecordRef } from "./types-CPl9uJ0G.js";
|
|
3
3
|
import { o as FilterField } from "./filter-query-DBt7OKuH.js";
|
|
4
4
|
import { cn as RecordBindingResult, hn as TimelineItem, in as RecordBindingData } from "./define-block-DWVZSZv1.js";
|
|
5
|
-
import { A as BindingBlocks, F as LoadBindingsOptions, M as BindingName, N as BindingOf, P as BindingSource, V as PermissionSet, _ as RecordTypeBlocks, g as RecordType, h as RecordCan } from "./index-
|
|
5
|
+
import { A as BindingBlocks, F as LoadBindingsOptions, M as BindingName, N as BindingOf, P as BindingSource, V as PermissionSet, _ as RecordTypeBlocks, g as RecordType, h as RecordCan } from "./index-uIU65iEn.js";
|
|
6
6
|
import { c as ListParseOptions, m as ListSearchParams } from "./list-query-BcU8NnNL.js";
|
|
7
7
|
//#region src/records/list.d.ts
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as findBinding, p as loadBindings } from "./record-type-
|
|
1
|
+
import { f as findBinding, p as loadBindings } from "./record-type-BEUyEsFx.js";
|
|
2
2
|
//#region src/records/timeline.ts
|
|
3
3
|
/** The binding names of `blocks` whose bindings map rows to timeline entries. */
|
|
4
4
|
function timelineBindings(blocks) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as ValidationIssue, b as DbError, t as AsyncResult } from "./result-DZeA5KS6.js";
|
|
2
2
|
import { D as AccessTopicPolicy, O as AnyFunctions, it as Row, k as AnyModels, ut as TableKey } from "./types-CPl9uJ0G.js";
|
|
3
|
-
import { t as AuthorizationFunctions } from "./authorization-
|
|
3
|
+
import { t as AuthorizationFunctions } from "./authorization-DfEkyFt_.js";
|
|
4
4
|
import { t as BetterSupabase } from "./define-D8_9X5fZ.js";
|
|
5
5
|
import { et as TemplateParams, tt as TemplateValues } from "./bucket-SvRQwYS4.js";
|
|
6
6
|
import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-BWhkMZfH.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _r as AppColumnFormat, br as AppOnDeleteAction, hr as AppColumnAccess, kr as AppTableVersions, vr as AppColumnType, xi as Preset } from "./context-
|
|
2
|
-
import { k as DesignErrorCode } from "./index-
|
|
1
|
+
import { _r as AppColumnFormat, br as AppOnDeleteAction, hr as AppColumnAccess, kr as AppTableVersions, vr as AppColumnType, xi as Preset } from "./context-DWWoP1wK.js";
|
|
2
|
+
import { k as DesignErrorCode } from "./index-Clyd2Goi.js";
|
|
3
3
|
//#region src/create/issue.d.ts
|
|
4
4
|
/** Where in the project pipeline an issue came from. */
|
|
5
5
|
type IssueSource = "design" | "rules" | "sql" | "verifier" | "plan";
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DZeA5KS6.js";
|
|
|
2
2
|
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-B2qbZps6.js";
|
|
3
3
|
import { mt as QuerySpec } from "../define-D8_9X5fZ.js";
|
|
4
4
|
import { tt as TemplateValues } from "../bucket-SvRQwYS4.js";
|
|
5
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
5
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-BaUElNw2.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-DAx0bMSi.js";
|
|
7
7
|
import { t as AuthSession } from "../view-C8_xvD-j.js";
|
|
8
|
-
import { n as Controller } from "../controller-
|
|
9
|
-
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-
|
|
10
|
-
import { n as BlockOptions } from "../block-env-
|
|
8
|
+
import { n as Controller } from "../controller-Br9dGKGe.js";
|
|
9
|
+
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-CEjsMAgd.js";
|
|
10
|
+
import { n as BlockOptions } from "../block-env-Dz7Caxk0.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
|
|
12
12
|
import { t as SupportView } from "../support-view-nqUWKHEs.js";
|
|
13
13
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-
|
|
1
|
+
import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-BaUElNw2.js";
|
|
2
2
|
//#region src/realtime/watch-topic.d.ts
|
|
3
3
|
interface TopicWatch {
|
|
4
4
|
readonly onMessage: (event: string, payload: unknown) => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
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 sqlIdent } from "../../template-Drgg3v2J.js";
|
|
4
|
-
import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-
|
|
4
|
+
import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-DJJkP0dT.js";
|
|
5
|
+
import { n as memoized } from "../../optional-peer-C1NbBRJm.js";
|
|
5
6
|
import { n as hmacHex, r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
|
|
6
7
|
import { t as watchPoolErrors } from "../../pool-errors-JUBcGrre.js";
|
|
7
|
-
import { n as memoized } from "../../optional-peer-C1NbBRJm.js";
|
|
8
8
|
import { Pool } from "pg";
|
|
9
9
|
import { reenqueueActiveRuns } from "@workflow/world";
|
|
10
10
|
import { createWorld as createWorld$1 } from "@workflow/world-postgres";
|
|
@@ -64,7 +64,7 @@ const CONSTRAINT_WORD = /^(?:not\s+null|null|check|references|unique|primary\s+k
|
|
|
64
64
|
*/
|
|
65
65
|
const insertExtraColumns = (table, extras, source) => {
|
|
66
66
|
const value = (extra) => {
|
|
67
|
-
const read = `(jsonb_populate_record(null::${table},
|
|
67
|
+
const read = `(jsonb_populate_record(null::${table}, jsonb_build_object(${sqlString(extra.name)}, ${source} -> ${sqlString(extra.name)}))).${extra.ident}`;
|
|
68
68
|
const fallback = extraColumnDefault(extra.type);
|
|
69
69
|
return fallback === void 0 ? read : `case when ${source} ? ${sqlString(extra.name)} then ${read} else ${fallback} end`;
|
|
70
70
|
};
|
|
@@ -1081,6 +1081,11 @@ const OPTIONAL_MODULE_PERMISSIONS = {
|
|
|
1081
1081
|
create: "tenant",
|
|
1082
1082
|
delete: "tenant"
|
|
1083
1083
|
},
|
|
1084
|
+
calendar: {
|
|
1085
|
+
create: "tenant",
|
|
1086
|
+
update: "tenant",
|
|
1087
|
+
delete: "tenant"
|
|
1088
|
+
},
|
|
1084
1089
|
employees: {
|
|
1085
1090
|
create: "tenant",
|
|
1086
1091
|
contractsRead: "tenant",
|
|
@@ -1200,6 +1205,8 @@ const OPERATIONS = {
|
|
|
1200
1205
|
"numbering.assign": "number_sequences.assign",
|
|
1201
1206
|
"teams.manage": "teams.manage",
|
|
1202
1207
|
"teams.read": "teams.read",
|
|
1208
|
+
"permissions.listRoles": "members.read",
|
|
1209
|
+
"permissions.setOverride": "roles.manage",
|
|
1203
1210
|
"tags.manage": "tags.manage",
|
|
1204
1211
|
"tags.read": "tags.read",
|
|
1205
1212
|
"tags.apply": "tags.apply",
|
|
@@ -1568,6 +1575,10 @@ const MODULE_PERMISSION_SCOPES = {
|
|
|
1568
1575
|
manage: "tenant",
|
|
1569
1576
|
read: "tenant"
|
|
1570
1577
|
},
|
|
1578
|
+
permissions: {
|
|
1579
|
+
listRoles: "tenant",
|
|
1580
|
+
setOverride: "tenant"
|
|
1581
|
+
},
|
|
1571
1582
|
tags: {
|
|
1572
1583
|
manage: "tenant",
|
|
1573
1584
|
read: "tenant",
|
package/dist/yjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../result-DZeA5KS6.js";
|
|
2
|
-
import { c as RealtimeClient, r as PresenceMember } from "../topic-
|
|
2
|
+
import { c as RealtimeClient, r as PresenceMember } from "../topic-BaUElNw2.js";
|
|
3
3
|
import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-BbwYyynk.js";
|
|
4
4
|
//#region src/yjs/yjs.d.ts
|
|
5
5
|
type PresenceState = Readonly<Record<string, unknown>>;
|
package/package.json
CHANGED
package/schemas/config-v1.json
CHANGED
|
@@ -3996,7 +3996,8 @@
|
|
|
3996
3996
|
"type": "boolean",
|
|
3997
3997
|
"default": false
|
|
3998
3998
|
},
|
|
3999
|
-
"ruleDialect": {}
|
|
3999
|
+
"ruleDialect": {},
|
|
4000
|
+
"readOnly": {}
|
|
4000
4001
|
}
|
|
4001
4002
|
}
|
|
4002
4003
|
}
|
|
@@ -6326,6 +6327,13 @@
|
|
|
6326
6327
|
"authorCanDelete": {
|
|
6327
6328
|
"type": "boolean",
|
|
6328
6329
|
"default": true
|
|
6330
|
+
},
|
|
6331
|
+
"notify": {
|
|
6332
|
+
"type": "boolean",
|
|
6333
|
+
"default": true
|
|
6334
|
+
},
|
|
6335
|
+
"actionPath": {
|
|
6336
|
+
"type": "string"
|
|
6329
6337
|
}
|
|
6330
6338
|
}
|
|
6331
6339
|
}
|