better-supabase 0.41.0 → 0.42.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.
Files changed (159) hide show
  1. package/dist/ai-sdk/agents/index.d.ts +2 -2
  2. package/dist/{app-tables-kHGNXFsd.d.ts → app-tables-DGgCgRwq.d.ts} +1 -1
  3. package/dist/{approvals-CTVaWq1O.d.ts → approvals-CYbTzQ7v.d.ts} +39 -1
  4. package/dist/{approvals-Qjn42OAZ.js → approvals-cyL5CmU7.js} +15 -3
  5. package/dist/{authorization-CS5Q1V7A.d.ts → authorization-CcvJbvr1.d.ts} +30 -2
  6. package/dist/{bind-XrFxNm5r.d.ts → bind-B71jMEGG.d.ts} +1 -1
  7. package/dist/{block-env-CHFHOjvz.d.ts → block-env-DzYTC9d1.d.ts} +3 -3
  8. package/dist/{block-subjects-Bz95_dqA.js → block-subjects-a_ECM9o0.js} +1 -1
  9. package/dist/{block-tables-EXcmuOJT.d.ts → block-tables-B92SBFqM.d.ts} +1 -1
  10. package/dist/blocks/ai-chat/index.d.ts +3 -3
  11. package/dist/blocks/announcements/index.d.ts +3 -3
  12. package/dist/blocks/api-keys/index.d.ts +1 -1
  13. package/dist/blocks/approvals/index.d.ts +2 -2
  14. package/dist/blocks/approvals/index.js +2 -2
  15. package/dist/blocks/attachments/index.d.ts +1 -1
  16. package/dist/blocks/audit/index.d.ts +2 -2
  17. package/dist/blocks/automations/index.d.ts +2 -2
  18. package/dist/blocks/billing/index.d.ts +1 -1
  19. package/dist/blocks/bookings/index.d.ts +1 -1
  20. package/dist/blocks/calendar/index.d.ts +1 -1
  21. package/dist/blocks/comments/index.d.ts +4 -4
  22. package/dist/blocks/drive/index.d.ts +1 -1
  23. package/dist/blocks/entitlements/index.d.ts +2 -2
  24. package/dist/blocks/expenses/index.js +1 -1
  25. package/dist/blocks/forms/index.d.ts +1 -1
  26. package/dist/blocks/inbox/index.d.ts +4 -4
  27. package/dist/blocks/index.d.ts +1 -1
  28. package/dist/blocks/invoices/index.d.ts +14 -5
  29. package/dist/blocks/invoices/index.js +16 -8
  30. package/dist/blocks/leave/index.js +1 -1
  31. package/dist/blocks/messaging/index.d.ts +4 -4
  32. package/dist/blocks/mfa/index.d.ts +1 -1
  33. package/dist/blocks/notifications/index.d.ts +3 -3
  34. package/dist/blocks/onboarding/index.d.ts +1 -1
  35. package/dist/blocks/organizations/index.d.ts +2 -2
  36. package/dist/blocks/permissions/index.d.ts +1 -1
  37. package/dist/blocks/push/index.d.ts +1 -1
  38. package/dist/blocks/reactions/index.d.ts +3 -3
  39. package/dist/blocks/saved-views/index.d.ts +1 -1
  40. package/dist/blocks/search/index.d.ts +2 -2
  41. package/dist/blocks/sessions/index.d.ts +1 -1
  42. package/dist/blocks/settings/index.d.ts +1 -1
  43. package/dist/blocks/subjects/index.d.ts +1 -1
  44. package/dist/blocks/tags/index.d.ts +1 -1
  45. package/dist/blocks/undo/index.d.ts +1 -1
  46. package/dist/blocks/usage/index.d.ts +1 -1
  47. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  48. package/dist/blocks/workflows/index.d.ts +3 -3
  49. package/dist/claims/index.d.ts +3 -3
  50. package/dist/cli/add-BbhRYaFe.js +1 -0
  51. package/dist/cli/{add-BGErz-yb.js → add-NosuEQn1.js} +10 -10
  52. package/dist/cli/{add-DU5HAq6w.js → add-U0pyhIyx.js} +2 -2
  53. package/dist/cli/{app-table-files-Drzpekpt.js → app-table-files-DUi898lB.js} +2 -2
  54. package/dist/cli/{app-tables-dZpH63--.js → app-tables-BINtREbx.js} +2 -2
  55. package/dist/cli/{backfill-B-p-19g6.js → backfill-VfqI5GqN.js} +1 -1
  56. package/dist/cli/bin.js +1 -1
  57. package/dist/cli/{blocks-iUjNl5yJ.js → blocks-Bo2Lw2UO.js} +1 -1
  58. package/dist/cli/{blocks-Ews-FZZO.js → blocks-DsEaPf6J.js} +1 -1
  59. package/dist/cli/{cache-JT4JhdmX.js → cache-CNJD8OdR.js} +1 -1
  60. package/dist/cli/{codemod-KIxYiazj.js → codemod-BWa3Bte6.js} +1 -1
  61. package/dist/cli/{content-mapper-DkXzxt6f.js → content-mapper-Dl50Ny6a.js} +2 -2
  62. package/dist/cli/{doctor-VWanOD74.js → doctor-B9GtOGSa.js} +15 -15
  63. package/dist/cli/{gen-_lBdTgaR.js → gen-CIUD1sgB.js} +11 -11
  64. package/dist/cli/index.d.ts +1 -1
  65. package/dist/cli/index.js +6 -6
  66. package/dist/cli/{init-Cm6n4u_3.js → init-wl5jk5vX.js} +8 -8
  67. package/dist/cli/{live-D4iSuTmS.js → live-B0f_X3rI.js} +2 -2
  68. package/dist/cli/{mcp-CHYX7utI.js → mcp-CZWaBkXY.js} +2 -2
  69. package/dist/cli/{metadata-DLba0VjH.js → metadata-Bi5eQP4w.js} +3 -3
  70. package/dist/cli/{migrate-nQhh0nEJ.js → migrate-DMITLPEu.js} +1 -1
  71. package/dist/cli/{migration-safety-C2d3BSTf.js → migration-safety-2n8e8njJ.js} +1 -1
  72. package/dist/cli/{migrations-BOmMcme9.js → migrations-C5k9hNOo.js} +2 -2
  73. package/dist/cli/{module-migration-DSDB473C.js → module-migration-BFchEhAJ.js} +2 -2
  74. package/dist/cli/{powersync-CAHvPkkb.js → powersync-DViexv6m.js} +3 -3
  75. package/dist/cli/powersync-i7KJcTtM.js +1 -0
  76. package/dist/cli/{print-CahE8HYK.js → print-ChX1vQhO.js} +2 -2
  77. package/dist/cli/{providers-CL5Z5Uj4.js → providers-lwK2lplZ.js} +1 -1
  78. package/dist/cli/{prune-workflows-C9xO0fRU.js → prune-workflows-DO3nRZFF.js} +1 -1
  79. package/dist/cli/{remove-DIy7gthm.js → remove-WB9dFyNn.js} +5 -5
  80. package/dist/cli/{render-CoCZr3Ru.js → render-B0MMWWZE.js} +3 -3
  81. package/dist/cli/{run-BBj137Fn.js → run-CMvwtBX9.js} +27 -27
  82. package/dist/cli/{run-CVw8hmLk.js → run-CmJbNG2-.js} +9 -9
  83. package/dist/cli/{shared-BdKeo7xp.js → shared-BL5kcRdz.js} +1 -1
  84. package/dist/cli/{snapshot-P2ww2xCt.js → snapshot-CVB9Ri2a.js} +2 -2
  85. package/dist/cli/{source-BCs4oBl2.js → source-COGgsYiV.js} +1 -1
  86. package/dist/cli/{spec-oPbt9sbZ.js → spec-002zD_9Z.js} +1 -1
  87. package/dist/cli/{spec-uCpXPLoF.js → spec-CH6Qd2LE.js} +2 -2
  88. package/dist/cli/{sql-layout-Bsnge2oW.js → sql-layout-jZOzCj-S.js} +2 -2
  89. package/dist/cli/{sync-Cv7iBRhe.js → sync-I4x-1aVx.js} +4 -4
  90. package/dist/cli/{upgrade-C6jWNxkc.js → upgrade-BRp5AxAY.js} +2 -2
  91. package/dist/cli/{upgrade-DV7jTRdh.js → upgrade-C60BZggI.js} +5 -5
  92. package/dist/cli/{version-Hza4Q2PB.js → version-CRCAxS2s.js} +1 -1
  93. package/dist/client/index.d.ts +5 -5
  94. package/dist/client/native/index.d.ts +4 -4
  95. package/dist/config/index.d.ts +2 -2
  96. package/dist/config/index.js +4 -4
  97. package/dist/{config-DwXYtmwt.js → config-2SwAe0Im.js} +3 -3
  98. package/dist/{config-B7hnJFxh.js → config-BND2PFGs.js} +1 -1
  99. package/dist/{context-tFoygone.d.ts → context-DXWyPNzr.d.ts} +3 -1
  100. package/dist/contract/index.d.ts +3 -3
  101. package/dist/{controller-phhsPHSz.d.ts → controller-D3MPVovD.d.ts} +1 -1
  102. package/dist/create/index.d.ts +3 -3
  103. package/dist/create/index.js +3 -3
  104. package/dist/create/lite/index.d.ts +3 -3
  105. package/dist/create/lite/index.js +2 -2
  106. package/dist/{entitlements-LfW6S2RW.d.ts → entitlements-CljrSoWD.d.ts} +1 -1
  107. package/dist/eve/index.d.ts +1 -1
  108. package/dist/eve/index.js +1 -1
  109. package/dist/{field-errors-CMWRPBmF.d.ts → field-errors-C4NOUBpu.d.ts} +4 -4
  110. package/dist/{index-BXkPvYzd.d.ts → index-Bjj-GNhd.d.ts} +1 -1
  111. package/dist/{index-X5igfnIi.d.ts → index-BrGOE0c2.d.ts} +2 -2
  112. package/dist/{index-RZqQdq1G.d.ts → index-CUxdZYSi.d.ts} +2 -2
  113. package/dist/{index-B21Pim3I.d.ts → index-D5qW2cRD.d.ts} +2 -2
  114. package/dist/{index-fmrLdtVT.d.ts → index-DWVDKVYA.d.ts} +1 -1
  115. package/dist/{index-D-uiT4Qz.d.ts → index-DhHtsi-q.d.ts} +1 -1
  116. package/dist/{index-B-HuxATL.d.ts → index-DmSDAFkF.d.ts} +6 -6
  117. package/dist/{instances-DJOknCJ0.js → instances-DwrdFwKq.js} +2 -0
  118. package/dist/mapper/bin.js +5 -5
  119. package/dist/mcp/index.d.ts +1 -1
  120. package/dist/next/index.d.ts +4 -4
  121. package/dist/{operations-Cm4mSrAX.d.ts → operations-DFmuxaxW.d.ts} +1 -1
  122. package/dist/{options-zsLpIqBA.js → options-B1oSaIZ4.js} +2 -1
  123. package/dist/{options-CYZH9uxU.js → options-BXiUftgG.js} +3 -1
  124. package/dist/{options-CzxG2Phg.js → options-DLJTiX29.js} +3 -1
  125. package/dist/otel/index.js +4 -4
  126. package/dist/{permissions-r0Cxhxos.d.ts → permissions-Bsd4mEEZ.d.ts} +1 -1
  127. package/dist/{ports-BJJJmfWK.d.ts → ports-BKdt_9Oe.d.ts} +1 -1
  128. package/dist/powersync/index.d.ts +2 -2
  129. package/dist/preset/index.d.ts +3 -3
  130. package/dist/preset/index.js +3 -3
  131. package/dist/{preset-U47pzJMK.js → preset-CenE7f1G.js} +2 -2
  132. package/dist/{project-Dng8tO8S.js → project-Ceh2yTSv.js} +5 -5
  133. package/dist/{push-token-CA31xmQr.d.ts → push-token-DRcEl9Ce.d.ts} +1 -1
  134. package/dist/react/index.d.ts +5 -5
  135. package/dist/react/native/index.d.ts +1 -1
  136. package/dist/react/server.d.ts +5 -5
  137. package/dist/realtime/index.d.ts +3 -3
  138. package/dist/records/index.d.ts +3 -3
  139. package/dist/server/index.d.ts +3 -3
  140. package/dist/solid/index.d.ts +5 -5
  141. package/dist/sql/index.d.ts +5 -5
  142. package/dist/sql/index.js +3 -3
  143. package/dist/{sql-BudVz33a.js → sql-BIniB45X.js} +481 -163
  144. package/dist/ssr/index.d.ts +1 -1
  145. package/dist/svelte/index.d.ts +5 -5
  146. package/dist/{tenant-C2vnB0wX.d.ts → tenant--Hm8mlPy.d.ts} +1 -1
  147. package/dist/testing/index.d.ts +3 -3
  148. package/dist/testing/index.js +1 -1
  149. package/dist/{topic-CKN3kmoi.d.ts → topic-BYF-GTW9.d.ts} +1 -1
  150. package/dist/{types-D8Tltfdq.d.ts → types-B8h0reJ4.d.ts} +2 -2
  151. package/dist/vue/index.d.ts +5 -5
  152. package/dist/{watch-topic-0dXuJMuE.d.ts → watch-topic-tfTxgEGc.d.ts} +1 -1
  153. package/dist/workflow-sdk/world/index.js +1 -1
  154. package/dist/{workflow-sdk-vXuxBSrk.js → workflow-sdk-Bps7tpOv.js} +7 -1
  155. package/dist/yjs/index.d.ts +1 -1
  156. package/package.json +1 -1
  157. package/schemas/config-v1.json +20 -1
  158. package/dist/cli/add-CoP8iie6.js +0 -1
  159. package/dist/cli/powersync-nH-NLDjy.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { A as serializeCookie, C as CookieScope, D as applyCookieWrites, E as StoredSession, O as parseCookies, S as CookieRecord, T as SessionEncoding, a as ResolveAuthOptions, j as sessionCookieName, k as readSession, n as AuthResolver, r as AuthState, t as AuthResolution, u as resolveAuth, w as CookieWrite, x as CookieOptions } from "../resolve-XlMQRUeG.js";
2
- import { r as MembershipClaim } from "../entitlements-LfW6S2RW.js";
2
+ import { r as MembershipClaim } from "../entitlements-CljrSoWD.js";
3
3
  import { n as AuthSession, o as toSession } from "../view-eHgOOyRS.js";
4
4
  import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-BwpmNC5k.js";
5
5
  export { type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type ClearSessionCookiesOptions, type CookieOptions, type CookieRecord, type CookieScope, type CookieWrite, type MembershipClaim, type ResolveAuthOptions, type SessionEncoding, type SessionStatus, type SessionStatusOptions, type StoredSession, applyCookieWrites, authContext, clearSessionCookies, parseCookies, readSession, resolveAuth, serializeCookie, sessionCookieName, sessionStatus, toSession };
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DTOQRyGY.js";
2
2
  import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DddDlibJ.js";
3
3
  import { mt as QuerySpec } from "../define-C_He1bQO.js";
4
4
  import { tt as TemplateValues } from "../bucket-CrsJNHzi.js";
5
- import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-CKN3kmoi.js";
6
- import { t as AuthSnapshot } from "../bind-XrFxNm5r.js";
5
+ import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-BYF-GTW9.js";
6
+ import { t as AuthSnapshot } from "../bind-B71jMEGG.js";
7
7
  import { n as AuthSession } from "../view-eHgOOyRS.js";
8
- import { n as Controller } from "../controller-phhsPHSz.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-CMWRPBmF.js";
10
- import { n as BlockOptions } from "../block-env-CHFHOjvz.js";
8
+ import { n as Controller } from "../controller-D3MPVovD.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-C4NOUBpu.js";
10
+ import { n as BlockOptions } from "../block-env-DzYTC9d1.js";
11
11
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-QSaPsL2P.js";
12
12
  import { SupabaseClient } from "@supabase/supabase-js";
13
13
  import { QueryClient } from "@tanstack/query-core";
@@ -1,4 +1,4 @@
1
- import { s as ClaimsSource } from "./entitlements-LfW6S2RW.js";
1
+ import { s as ClaimsSource } from "./entitlements-CljrSoWD.js";
2
2
  /**
3
3
  * The active tenant of a user session: the `claim` claim (`tenant_id` by
4
4
  * default, as `config.claims.tenant`) at the top level of the token, then in
@@ -9,7 +9,7 @@ import { a as BlockTransportMiddleware } from "../block-hooks-VW4knarE.js";
9
9
  import { a as SessionActor, o as SessionDelegation } from "../actor-DseNR02I.js";
10
10
  import { L as QueueProvider } from "../types-LLCyr-xs.js";
11
11
  import { n as Embedder } from "../knowledge-DtECa_QW.js";
12
- import { a as AuthorizationProvider } from "../authorization-CS5Q1V7A.js";
12
+ import { a as AuthorizationProvider } from "../authorization-CcvJbvr1.js";
13
13
  import { o as StreamStore } from "../store-c7QxUHX-.js";
14
14
  import { Qt as CacheAdapter, Y as DbStats, t as BetterSupabase, y as Db } from "../define-C_He1bQO.js";
15
15
  import { Q as StoragePath } from "../bucket-CrsJNHzi.js";
@@ -23,9 +23,9 @@ import { l as ServerOptions, o as ServerContext } from "../server-types-DpI82uNq
23
23
  import { C as SupportSessionStore } from "../support-Dj5V2WTs.js";
24
24
  import { r as GuardOptions } from "../respond-D7kUatjc.js";
25
25
  import { l as Transcriber, s as NoteTaker, u as TranscriberInput } from "../recordings-BVuri85k.js";
26
- import { n as Controller } from "../controller-phhsPHSz.js";
26
+ import { n as Controller } from "../controller-D3MPVovD.js";
27
27
  import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-DIiPmFgn.js";
28
- import { Qt as GeneratorModel, Vt as Generator, Yt as GeneratorInput, cn as ResolvedConfig } from "../context-tFoygone.js";
28
+ import { Qt as GeneratorModel, Vt as Generator, Yt as GeneratorInput, cn as ResolvedConfig } from "../context-DXWyPNzr.js";
29
29
  import { r as WebhookInput } from "../signatures-jPr9JXyw.js";
30
30
  import { n as Payment, o as PaymentProvider } from "../payments-BBGSGRQ7.js";
31
31
  import { y as FlagValue } from "../flags-BrXfCmGB.js";
@@ -7,7 +7,7 @@ import { a as ok } from "../result-8xza7w5W.js";
7
7
  import { t as BetterSupabase } from "../define-Duh2mMYk.js";
8
8
  import { i as fromBase64, o as toBase64Url, t as base64ToText } from "../base64-CEBz6-Jj.js";
9
9
  import "../claim-names-BKig1LOk.js";
10
- import { c as resolveConfig } from "../config-DwXYtmwt.js";
10
+ import { c as resolveConfig } from "../config-2SwAe0Im.js";
11
11
  import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-Dao1C0fz.js";
12
12
  import { a as TRACKING_STATUSES, t as LABEL_FORMATS } from "../statuses-Qqpzda35.js";
13
13
  import { t as importOptionalPeer } from "../optional-peer-5SOYr3lL.js";
@@ -1,6 +1,6 @@
1
1
  import { D as ValidationIssue, b as DbError, t as AsyncResult } from "./result-DTOQRyGY.js";
2
2
  import { D as AccessTopicPolicy, O as AnyFunctions, at as Row, dt as TableKey, k as AnyModels } from "./types-BzIYSSWK.js";
3
- import { t as AuthorizationFunctions } from "./authorization-CS5Q1V7A.js";
3
+ import { t as AuthorizationFunctions } from "./authorization-CcvJbvr1.js";
4
4
  import { t as BetterSupabase } from "./define-C_He1bQO.js";
5
5
  import { et as TemplateParams, tt as TemplateValues } from "./bucket-CrsJNHzi.js";
6
6
  import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-CR8TVvqo.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-tFoygone.js";
2
- import { k as DesignErrorCode } from "./index-BXkPvYzd.js";
1
+ import { _r as AppColumnFormat, br as AppOnDeleteAction, hr as AppColumnAccess, kr as AppTableVersions, vr as AppColumnType, xi as Preset } from "./context-DXWyPNzr.js";
2
+ import { k as DesignErrorCode } from "./index-Bjj-GNhd.js";
3
3
  /** Where in the project pipeline an issue came from. */
4
4
  type IssueSource = "design" | "rules" | "sql" | "verifier" | "plan";
5
5
  type IssueSeverity = "error" | "warning" | "info";
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DTOQRyGY.js";
2
2
  import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DddDlibJ.js";
3
3
  import { mt as QuerySpec } from "../define-C_He1bQO.js";
4
4
  import { tt as TemplateValues } from "../bucket-CrsJNHzi.js";
5
- import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-CKN3kmoi.js";
6
- import { t as AuthSnapshot } from "../bind-XrFxNm5r.js";
5
+ import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-BYF-GTW9.js";
6
+ import { t as AuthSnapshot } from "../bind-B71jMEGG.js";
7
7
  import { n as AuthSession } from "../view-eHgOOyRS.js";
8
- import { n as Controller } from "../controller-phhsPHSz.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-CMWRPBmF.js";
10
- import { n as BlockOptions } from "../block-env-CHFHOjvz.js";
8
+ import { n as Controller } from "../controller-D3MPVovD.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-C4NOUBpu.js";
10
+ import { n as BlockOptions } from "../block-env-DzYTC9d1.js";
11
11
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-QSaPsL2P.js";
12
12
  import { t as SupportView } from "../support-view-DKZkZeM5.js";
13
13
  import { SupabaseClient } from "@supabase/supabase-js";
@@ -1,4 +1,4 @@
1
- import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-CKN3kmoi.js";
1
+ import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-BYF-GTW9.js";
2
2
  interface TopicWatch {
3
3
  readonly onMessage: (event: string, payload: unknown) => void;
4
4
  readonly onRejoin: () => void;
@@ -2,7 +2,7 @@ import { n as dbError } from "../../errors-B7tCfCvX.js";
2
2
  import { c as optionalTemporal, t as TEMPORAL_MISSING } from "../../temporal-DKTdGK9i.js";
3
3
  import { o as problemResponse } from "../../problem-C0SVHhd3.js";
4
4
  import { i as sqlIdent } from "../../template-CNq9xcfx.js";
5
- import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-vXuxBSrk.js";
5
+ import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-Bps7tpOv.js";
6
6
  import { n as memoized } from "../../optional-peer-5SOYr3lL.js";
7
7
  import { n as hmacHex, r as timingSafeEqual } from "../../hmac-DNcfpmI9.js";
8
8
  import { t as watchPoolErrors } from "../../pool-errors-JrZie6u3.js";
@@ -853,6 +853,12 @@ create trigger ${trigger} after insert or update or delete on ${options.table}
853
853
  for each row execute function ${fn}();`;
854
854
  }
855
855
  /**
856
+ * PL/pgSQL that hands `reason` (a text SQL expression) to the state machine's
857
+ * history for the status changes that follow, or without one clears it, so
858
+ * later changes in the transaction don't inherit it.
859
+ */
860
+ const transitionReasonSql = (reason) => `perform set_config('better_supabase.transition_reason', ${reason === void 0 ? "''" : `coalesce(nullif(trim(${reason}), ''), '')`}, true);`;
861
+ /**
856
862
  * PL/pgSQL that hands `actor` (a jsonb SQL expression of `id`, `name`, `email`,
857
863
  * `ip` and `userAgent`) to the state machine's history trigger for the status
858
864
  * changes that follow in the transaction. `id` stands in for the acting user
@@ -2722,4 +2728,4 @@ const WORKFLOW_SDK_WORLD = {
2722
2728
  build,
2723
2729
  data
2724
2730
  };
2725
- export { pageSize as $, addNotNullCheck as A, extraFieldsArg as B, SCHEMA as C, addCheck as D, activeMembership as E, defaultPartitionName as F, jwtClaim as G, fail as H, disabledHelpers as I, membershipDisabledAt as J, lockTable as K, disabledHelpersNeedLaterTables as L, columnRef as M, columnsObject as N, addExtraColumns as O, defaultPartition as P, ownRowPolicies as Q, dropExpiredPartitions as R, PARTITION_VARIABLES as S, accessDefinesDisabledHelpers as T, insertExtraColumns as U, extraFieldsJson as V, jsonSchemaChecks as W, notNullCheckName as X, membershipSuspended as Y, organizationMissing as Z, rolesOf as _, userGrant as _t, DEFAULT_ROLES as a, replaceColumnCheck as at, MONTHLY_PARTITIONS as b, accessModel as c, serviceGrant as ct, moduleOperations as d, shortHash as dt, quotedTable as et, modulePermission as f, splitTable as ft, roleScopeIs as g, updatedAt as gt, roleNames as h, updateExtraColumns as ht, WORLD_POSTGRES_VERSION as i, renameSql as it, batchFunction as j, addForeignKey as k, hasPlatformRoles as l, serviceOnly as lt, providerPlatformRoles as m, triggerGrant as mt, WORKFLOW_SDK_WORLD as n, recordTrigger as nt, MODULE_PERMISSION_SCOPES as o, revokeTable as ot, modulePermissionKey as p, transitionActorSql as pt, memberAddedRecord as q, WORKFLOW_VAULT_SECRETS as r, registerPartitions as rt, OPERATIONS as s, schemaPreamble as st, WORKFLOW_DELIVERY_QUEUE as t, raise as tt, isOperationModule as u, sha256Hex as ut, tenantScope as v, withExtraFields as vt, SERVICE_CALLER as w, NOTHING as x, EQUIVALENT_TRIGGERS as y, writeExtraColumns as yt, ensureCheck as z };
2731
+ export { pageSize as $, addNotNullCheck as A, extraFieldsArg as B, SCHEMA as C, addCheck as D, activeMembership as E, defaultPartitionName as F, jwtClaim as G, fail as H, disabledHelpers as I, membershipDisabledAt as J, lockTable as K, disabledHelpersNeedLaterTables as L, columnRef as M, columnsObject as N, addExtraColumns as O, defaultPartition as P, ownRowPolicies as Q, dropExpiredPartitions as R, PARTITION_VARIABLES as S, accessDefinesDisabledHelpers as T, insertExtraColumns as U, extraFieldsJson as V, jsonSchemaChecks as W, notNullCheckName as X, membershipSuspended as Y, organizationMissing as Z, rolesOf as _, updatedAt as _t, DEFAULT_ROLES as a, replaceColumnCheck as at, MONTHLY_PARTITIONS as b, writeExtraColumns as bt, accessModel as c, serviceGrant as ct, moduleOperations as d, shortHash as dt, quotedTable as et, modulePermission as f, splitTable as ft, roleScopeIs as g, updateExtraColumns as gt, roleNames as h, triggerGrant as ht, WORLD_POSTGRES_VERSION as i, renameSql as it, batchFunction as j, addForeignKey as k, hasPlatformRoles as l, serviceOnly as lt, providerPlatformRoles as m, transitionReasonSql as mt, WORKFLOW_SDK_WORLD as n, recordTrigger as nt, MODULE_PERMISSION_SCOPES as o, revokeTable as ot, modulePermissionKey as p, transitionActorSql as pt, memberAddedRecord as q, WORKFLOW_VAULT_SECRETS as r, registerPartitions as rt, OPERATIONS as s, schemaPreamble as st, WORKFLOW_DELIVERY_QUEUE as t, raise as tt, isOperationModule as u, sha256Hex as ut, tenantScope as v, userGrant as vt, SERVICE_CALLER as w, NOTHING as x, EQUIVALENT_TRIGGERS as y, withExtraFields as yt, ensureCheck as z };
@@ -1,5 +1,5 @@
1
1
  import { t as AsyncResult } from "../result-DTOQRyGY.js";
2
- import { c as RealtimeClient, r as PresenceMember } from "../topic-CKN3kmoi.js";
2
+ import { c as RealtimeClient, r as PresenceMember } from "../topic-BYF-GTW9.js";
3
3
  import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-CNVPrE_0.js";
4
4
  type PresenceState = Readonly<Record<string, unknown>>;
5
5
  /** The part of a `Y.Doc` the provider uses. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-supabase",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "description": "Strongly typed Supabase: generated schema, typed repositories, plugins, auth glue, framework integrations and the better-supabase CLI.",
5
5
  "keywords": [
6
6
  "cli",
@@ -3788,6 +3788,16 @@
3788
3788
  "additionalProperties": {
3789
3789
  "type": "string"
3790
3790
  }
3791
+ },
3792
+ "notifications": {
3793
+ "type": "boolean",
3794
+ "default": true
3795
+ },
3796
+ "policyExtraColumns": {
3797
+ "type": "object",
3798
+ "additionalProperties": {
3799
+ "type": "string"
3800
+ }
3791
3801
  }
3792
3802
  }
3793
3803
  }
@@ -4810,7 +4820,12 @@
4810
4820
  "withdrawApproved": {
4811
4821
  "type": "boolean",
4812
4822
  "default": false
4813
- }
4823
+ },
4824
+ "standaloneApprovals": {
4825
+ "type": "boolean",
4826
+ "default": false
4827
+ },
4828
+ "policy": {}
4814
4829
  }
4815
4830
  }
4816
4831
  }
@@ -5343,6 +5358,10 @@
5343
5358
  "reapprove": {
5344
5359
  "type": "boolean",
5345
5360
  "default": false
5361
+ },
5362
+ "approvalOwner": {
5363
+ "type": "string",
5364
+ "default": "filer"
5346
5365
  }
5347
5366
  }
5348
5367
  }
@@ -1 +0,0 @@
1
- export { t as addCommand } from "./add-BGErz-yb.js";
@@ -1 +0,0 @@
1
- export { t as powersyncStreamsCommand } from "./powersync-CAHvPkkb.js";