@rebasepro/types 0.15.0 → 0.16.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.
@@ -64,7 +64,7 @@ export type RebaseCallContext<USER extends User = User> = {
64
64
  * because RLS filters rather than raises. Write callbacks that tolerate
65
65
  * that, or reach for {@link client}`.dataAsAdmin` deliberately when the
66
66
  * callback genuinely has to see what an admin may see. Note what that does
67
- * *not* buy you: `policy.serverContext()` (`auth.uid() IS NULL`) is false
67
+ * *not* buy you: `policy.serverContext()` (`rebase.uid() IS NULL`) is false
68
68
  * for the service identity, so a collection whose only rule is
69
69
  * `serverContext()` stays closed to it.
70
70
  *
@@ -308,7 +308,7 @@ export interface RebaseClient<DB = unknown> {
308
308
  *
309
309
  * Two consequences the name does not suggest:
310
310
  *
311
- * - `policy.serverContext()` compiles to `auth.uid() IS NULL` and is
311
+ * - `policy.serverContext()` compiles to `rebase.uid() IS NULL` and is
312
312
  * therefore **false** here. A collection with `disableDefaultPolicies:
313
313
  * true` whose only rule is `serverContext()` refuses these writes
314
314
  * (`42501`) and returns zero rows — HTTP 200, empty — for these reads.