@rebasepro/server-postgres 0.32.0 → 0.33.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 (64) hide show
  1. package/dist/{BranchService-C8LtpMho.js → BranchService-Bdin0Wxh.js} +3 -3
  2. package/dist/{BranchService-C8LtpMho.js.map → BranchService-Bdin0Wxh.js.map} +1 -1
  3. package/dist/PostgresBackendDriver.d.ts +3 -0
  4. package/dist/{backup-cli-DtV6n3oB.js → backup-cli-BEAMPWMs.js} +3 -3
  5. package/dist/{backup-cli-DtV6n3oB.js.map → backup-cli-BEAMPWMs.js.map} +1 -1
  6. package/dist/{boot-ddl-CSYhSSZD.js → boot-ddl-Bu6gAY-2.js} +2 -2
  7. package/dist/{boot-ddl-CSYhSSZD.js.map → boot-ddl-Bu6gAY-2.js.map} +1 -1
  8. package/dist/{cli-console-Cu1DzqvR.js → cli-console-DjFiYlSe.js} +4 -4
  9. package/dist/{cli-console-Cu1DzqvR.js.map → cli-console-DjFiYlSe.js.map} +1 -1
  10. package/dist/cli-errors.d.ts +12 -0
  11. package/dist/cli-helpers.d.ts +20 -0
  12. package/dist/{cli-schema-dir-DuZIsF2e.js → cli-schema-dir-CjDH_31U.js} +111 -5
  13. package/dist/cli-schema-dir-CjDH_31U.js.map +1 -0
  14. package/dist/cli.js +28 -23
  15. package/dist/cli.js.map +1 -1
  16. package/dist/{database-preflight-CyTCWlfc.js → database-preflight-DKzsGnc4.js} +2 -2
  17. package/dist/{database-preflight-CyTCWlfc.js.map → database-preflight-DKzsGnc4.js.map} +1 -1
  18. package/dist/{deferred-index-build-ueYVUBZc.js → deferred-index-build-88bWtYgx.js} +4 -4
  19. package/dist/{deferred-index-build-ueYVUBZc.js.map → deferred-index-build-88bWtYgx.js.map} +1 -1
  20. package/dist/{ensure-policies-13mHWjBs.js → ensure-policies-nIITKxud.js} +6 -6
  21. package/dist/{ensure-policies-13mHWjBs.js.map → ensure-policies-nIITKxud.js.map} +1 -1
  22. package/dist/{ensure-tables-B3Kh2RwT.js → ensure-tables-Lm-77eM5.js} +6 -6
  23. package/dist/{ensure-tables-B3Kh2RwT.js.map → ensure-tables-Lm-77eM5.js.map} +1 -1
  24. package/dist/{ensure-tables-DM1U9AZK.js → ensure-tables-hQ5oAK_j.js} +3 -3
  25. package/dist/{ensure-tables-DM1U9AZK.js.map → ensure-tables-hQ5oAK_j.js.map} +1 -1
  26. package/dist/{enum-labels-kept-CJDVtX14.js → enum-labels-kept-mesgEJWH.js} +2 -2
  27. package/dist/{enum-labels-kept-CJDVtX14.js.map → enum-labels-kept-mesgEJWH.js.map} +1 -1
  28. package/dist/index.es.js +11 -11
  29. package/dist/{migrate-baseline-DnMlSDup.js → migrate-baseline-Bzj5gSCM.js} +2 -2
  30. package/dist/{migrate-baseline-DnMlSDup.js.map → migrate-baseline-Bzj5gSCM.js.map} +1 -1
  31. package/dist/{migrate-policy-stamps-BpHyEFkk.js → migrate-policy-stamps-C2WaOEsB.js} +4 -4
  32. package/dist/{migrate-policy-stamps-BpHyEFkk.js.map → migrate-policy-stamps-C2WaOEsB.js.map} +1 -1
  33. package/dist/{open-rebase-B2mAA7UE.js → open-rebase-OB4hhQuk.js} +391 -33
  34. package/dist/open-rebase-OB4hhQuk.js.map +1 -0
  35. package/dist/{pg-error-utils-CpUiBkp-.js → pg-error-utils-CWopxboq.js} +2 -2
  36. package/dist/{pg-error-utils-CpUiBkp-.js.map → pg-error-utils-CWopxboq.js.map} +1 -1
  37. package/dist/{policy-drift-C9xRcbsU.js → policy-drift-rVLKS2AG.js} +3 -3
  38. package/dist/{policy-drift-C9xRcbsU.js.map → policy-drift-rVLKS2AG.js.map} +1 -1
  39. package/dist/{push-index-adoption-D-ph6kBc.js → push-index-adoption-EcamXfW2.js} +2 -2
  40. package/dist/{push-index-adoption-D-ph6kBc.js.map → push-index-adoption-EcamXfW2.js.map} +1 -1
  41. package/dist/{push-index-prebuild-DUKtH87s.js → push-index-prebuild-BPIns6wA.js} +3 -3
  42. package/dist/{push-index-prebuild-DUKtH87s.js.map → push-index-prebuild-BPIns6wA.js.map} +1 -1
  43. package/dist/{push-legacy-renames-wLSsAg80.js → push-legacy-renames-lmYkb41I.js} +3 -3
  44. package/dist/{push-legacy-renames-wLSsAg80.js.map → push-legacy-renames-lmYkb41I.js.map} +1 -1
  45. package/dist/{push-policy-plan-I9RNoP_-.js → push-policy-plan-Dqu4FKWh.js} +3 -3
  46. package/dist/{push-policy-plan-I9RNoP_-.js.map → push-policy-plan-Dqu4FKWh.js.map} +1 -1
  47. package/dist/{request-role-cli-D9yWoeSl.js → request-role-cli-Ay0v9oYZ.js} +8 -8
  48. package/dist/{request-role-cli-D9yWoeSl.js.map → request-role-cli-Ay0v9oYZ.js.map} +1 -1
  49. package/dist/{request-role-migration-DQLiYJ4c.js → request-role-migration-DTE3Owsh.js} +2 -2
  50. package/dist/{request-role-migration-DQLiYJ4c.js.map → request-role-migration-DTE3Owsh.js.map} +1 -1
  51. package/dist/{rls-enforcement-Cwh5SJRx.js → rls-enforcement-Ck-d8zdJ.js} +2 -2
  52. package/dist/{rls-enforcement-Cwh5SJRx.js.map → rls-enforcement-Ck-d8zdJ.js.map} +1 -1
  53. package/dist/schema/doctor-cli.js +5 -5
  54. package/dist/schema/introspect-db.js +1 -1
  55. package/dist/services/cdc/CdcListener.d.ts +12 -0
  56. package/dist/services/cdc/pgoutput.d.ts +6 -0
  57. package/dist/services/realtime-prefilter.d.ts +90 -0
  58. package/dist/services/realtimeService.d.ts +39 -1
  59. package/dist/utils/connection-string.d.ts +9 -1
  60. package/dist/{websocket-CSVNOYHC.js → websocket-kZixcOXt.js} +3 -3
  61. package/dist/{websocket-CSVNOYHC.js.map → websocket-kZixcOXt.js.map} +1 -1
  62. package/package.json +7 -7
  63. package/dist/cli-schema-dir-DuZIsF2e.js.map +0 -1
  64. package/dist/open-rebase-B2mAA7UE.js.map +0 -1
@@ -2,15 +2,15 @@
2
2
  import { createRequire as __createRequire } from "module";
3
3
  __createRequire(import.meta.url);
4
4
  import { i as buildTableSearchColumnSpec } from "../search-column-BO-WND-B.js";
5
- import { c as diagnoseDbError, o as deepestErrorMessage, p as parseHostInfo } from "../cli-schema-dir-DuZIsF2e.js";
6
- import { C as warnOnAnonymousGrants, S as validatePolicyPgRoles } from "../rls-enforcement-Cwh5SJRx.js";
5
+ import { c as diagnoseDbError, m as parseHostInfo, o as deepestErrorMessage } from "../cli-schema-dir-CjDH_31U.js";
6
+ import { C as warnOnAnonymousGrants, S as validatePolicyPgRoles } from "../rls-enforcement-Ck-d8zdJ.js";
7
7
  import { i as outError, n as describeFailure, r as out, t as chalk } from "../source-VxbrQojV.js";
8
8
  import { n as planSchema, t as pgTypeOf } from "../plan-schema-Hbtjhge3.js";
9
9
  import { t as generateSchema } from "../generate-drizzle-schema-logic-DL7R1rAF.js";
10
10
  import { i as renderPgType } from "../render-ddl-D4n86NHz.js";
11
11
  import { n as loadTableSchema, r as loadTables, t as defaultDatabaseSchemaVersion } from "../load-tables-B1Re74ng.js";
12
12
  import { r as readGeneratedSchemaDrift, t as describeSchemaDifference } from "../generated-schema-diff-DoT2dYDe.js";
13
- import { i as hasDrift, r as formatPolicyDrift, t as checkPolicyDrift } from "../policy-drift-C9xRcbsU.js";
13
+ import { i as hasDrift, r as formatPolicyDrift, t as checkPolicyDrift } from "../policy-drift-rVLKS2AG.js";
14
14
  import { n as describeDeclarationDifferences, t as compareGeneratedDeclarations } from "../generated-schema-staleness-YBVq2kTn.js";
15
15
  import { describeMismatch } from "@rebasepro/server";
16
16
  import { DEFAULT_DATA_SOURCE_KEY, LEGACY_SCHEMA_VERSION_PREFIX, isNumericColumnType, isTemporalColumnType } from "@rebasepro/types";
@@ -1763,8 +1763,8 @@ async function runDatabasePreflight(schemaDir, databaseUrl) {
1763
1763
  return "unchecked";
1764
1764
  }
1765
1765
  const { loadTables } = await import("../load-tables-B1Re74ng.js").then((n) => n.i);
1766
- const { preflightDatabase } = await import("../database-preflight-CyTCWlfc.js");
1767
- const { readRecordedRequestRoles } = await import("../rls-enforcement-Cwh5SJRx.js").then((n) => n.y);
1766
+ const { preflightDatabase } = await import("../database-preflight-DKzsGnc4.js");
1767
+ const { readRecordedRequestRoles } = await import("../rls-enforcement-Ck-d8zdJ.js").then((n) => n.y);
1768
1768
  const { cliRlsSettings } = await import("../rls-settings-CmGK2U0a.js").then((n) => n.a);
1769
1769
  const { Pool } = await import("pg");
1770
1770
  const pool = new Pool({ connectionString: databaseUrl });
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from "module";
2
2
  __createRequire(import.meta.url);
3
3
  import { n as require_arg, o as __toESM, t as promptConfirm } from "../cli-prompt-DXG0yk-h.js";
4
4
  import { u as pinSearchPath } from "../connection-C1zXTPJq.js";
5
- import { c as diagnoseDbError } from "../cli-schema-dir-DuZIsF2e.js";
5
+ import { c as diagnoseDbError } from "../cli-schema-dir-CjDH_31U.js";
6
6
  import { a as outWarn, i as outError, r as out, t as chalk } from "../source-VxbrQojV.js";
7
7
  import { i as readSchemaMetadata, n as isUsableFileName, r as quoteRelation, t as countRowsUpTo } from "../introspect-db-queries-BgiRQqtR.js";
8
8
  import { a as describeRlsOffTables, c as mergeIndexModule, d as lookupCandidates, i as buildTablesMap, l as safeHostFromUrl, o as generateSchemaModules, u as classifyTables } from "../introspect-tables-Cw_A-kk4.js";
@@ -17,6 +17,18 @@ export interface CdcChangeEvent {
17
17
  row: Record<string, unknown>;
18
18
  /** True when even the key was too large to notify, so `row` is empty. */
19
19
  truncated?: boolean;
20
+ /**
21
+ * The row's column values by SQL name, before and after the change, as
22
+ * far as the source knows them — only ever from the WAL stream, which this
23
+ * server reads on its own replication connection, and never from a
24
+ * NOTIFY payload (see `row`). `null` is "no such version" (before an
25
+ * insert, after a delete); an absent version or column is unknown. Decides
26
+ * which list subscriptions refetch; never delivered to any of them.
27
+ */
28
+ values?: {
29
+ before?: Record<string, string | null> | null;
30
+ after?: Record<string, string | null> | null;
31
+ };
20
32
  }
21
33
  /**
22
34
  * Where committed changes come from: this listener (capture triggers and
@@ -117,5 +117,11 @@ export declare class PgoutputChanges {
117
117
  constructor(identityColumns: (schema: string, table: string) => readonly string[] | undefined);
118
118
  /** The changes one message describes — none for anything but a row change. */
119
119
  apply(message: PgoutputMessage): CdcChangeEvent[];
120
+ /**
121
+ * Put the column values of the row's two versions on the first event: see
122
+ * `CdcChangeEvent.values`. `before` is read for its key columns alone when
123
+ * `beforeKeyOnly`, which is all a default replica identity sends.
124
+ */
125
+ private withValues;
120
126
  private change;
121
127
  }
@@ -0,0 +1,90 @@
1
+ import type { ColumnType, IncludeSpec } from "@rebasepro/types";
2
+ import type { RuntimeTable } from "../model/runtime-table.js";
3
+ /**
4
+ * Which list subscriptions a row change can reach, decided before any of them
5
+ * refetches.
6
+ *
7
+ * A write to a table used to schedule a refetch for every list group on it,
8
+ * so a table open as a thousand different principals cost a thousand
9
+ * RLS-scoped reads per write — even when every one of those lists was
10
+ * `where owner_id == <me>` and the row belonged to one of them. A change can
11
+ * only alter a list whose filter matched the row before the change or matches
12
+ * it after, so a group whose filter provably matches neither is skipped.
13
+ *
14
+ * This decides only *whether* a group refetches, never *what* it receives:
15
+ * every frame is still a read under the subscriber's own scope. A wrong "may
16
+ * match" costs one refetch; a wrong "cannot match" would leave a list stale,
17
+ * so every rule here answers "may match" whenever it cannot be sure:
18
+ *
19
+ * - Only `==` and `in` on a plain column of a type whose equality is plain
20
+ * (text, varchar, uuid, enum, the integer types, boolean) are judged. Every
21
+ * other condition — a range, a pattern, a JSON path, a relation, a
22
+ * `logical` group, a search — is left out, and since the conditions of a
23
+ * read are ANDed, leaving one out only widens what the judge admits.
24
+ * - A column with a field-level hook (`.transform()`) is never judged: the
25
+ * values a write hands over may be its transformed view, not what Postgres
26
+ * compares.
27
+ * - A list that loads relations, or a table with an `afterRead` hook, is never
28
+ * pre-filtered: either can make a list depend on rows its filter excludes.
29
+ * - A value the change does not carry (a column the WAL left out, a key-only
30
+ * old tuple, a capture trigger that sends the key alone, an 8 KB overflow)
31
+ * is unknown, and unknown means refetch.
32
+ */
33
+ /**
34
+ * The two versions of a changed row, by column key, as far as they are known.
35
+ * `null` is "no such version" (the row before an insert, after a delete);
36
+ * `undefined` is "not known", and a key missing from a version is unknown too.
37
+ */
38
+ export interface RowChangeImage {
39
+ before?: Record<string, unknown> | null;
40
+ after?: Record<string, unknown> | null;
41
+ }
42
+ /** One `==`/`in` condition the judge can evaluate: the canonical values it admits. */
43
+ interface EqualityConjunct {
44
+ field: string;
45
+ /** Canonical values (see {@link canonicalValue}); {@link NULL_KEY} stands for `IS NULL`. */
46
+ accepts: ReadonlySet<string>;
47
+ kind: ColumnType["kind"];
48
+ }
49
+ /** A list group's pre-filter: the judged conditions, and the one it is indexed by. */
50
+ export interface ListPrefilter {
51
+ conjuncts: readonly EqualityConjunct[];
52
+ /** The condition the group is found by: its field and every value it admits. */
53
+ index: EqualityConjunct;
54
+ }
55
+ /** The canonical spelling of SQL `NULL` in an index. */
56
+ export declare const NULL_KEY = "\0null";
57
+ /** Longer values are left out of an image: unknown, never compared, and not held in memory. */
58
+ export declare const MAX_IMAGE_VALUE_LENGTH = 256;
59
+ /**
60
+ * A value as Postgres would compare it in a column of `kind`, as one string,
61
+ * or `undefined` when that cannot be said with certainty — the caller then
62
+ * treats the comparison as unknown. Accepts both a filter's JSON value and a
63
+ * change's value (a JS value from the write path, or the text the WAL sends).
64
+ */
65
+ export declare function canonicalValue(kind: ColumnType["kind"], value: unknown): string | undefined;
66
+ /**
67
+ * The pre-filter for a list read of `table`, or `undefined` when the list
68
+ * must refetch on every change to the table.
69
+ */
70
+ export declare function compileListPrefilter(table: RuntimeTable, request: {
71
+ filter?: Record<string, unknown>;
72
+ include?: IncludeSpec;
73
+ }, tableHasReadHooks: boolean): ListPrefilter | undefined;
74
+ /**
75
+ * Whether one version of a row matches the judged conditions: `false` only
76
+ * when a condition is known to fail, `undefined` when one cannot be read.
77
+ */
78
+ export declare function prefilterMatches(prefilter: ListPrefilter, values: Record<string, unknown>): boolean | undefined;
79
+ /**
80
+ * Whether a change may alter a list with this pre-filter: unless both
81
+ * versions of the row are known not to match it.
82
+ */
83
+ export declare function changeMayReach(prefilter: ListPrefilter, image: RowChangeImage): boolean;
84
+ /**
85
+ * The index keys a version of a row is found under for `field`, or
86
+ * `undefined` when the version cannot say — then every group indexed by the
87
+ * field may be reached.
88
+ */
89
+ export declare function imageIndexKey(version: Record<string, unknown>, field: string, kind: ColumnType["kind"]): string | undefined;
90
+ export {};
@@ -4,6 +4,7 @@ import { RealtimeProvider, CollectionSubscriptionConfig, SingleSubscriptionConfi
4
4
  import { PostgresTableRegistry } from "../model/PostgresTableRegistry.js";
5
5
  import type { RequestIdentity } from "../security/rls-settings.js";
6
6
  import type { CdcTableRef } from "./cdc/trigger-cdc.js";
7
+ import { type RowChangeImage } from "./realtime-prefilter.js";
7
8
  import { ChannelBus } from "./channel-bus/index.js";
8
9
  import type { ChannelRetentionRule, RealtimeCounts, RealtimeListenerHealth } from "@rebasepro/types";
9
10
  /**
@@ -427,6 +428,13 @@ export declare class RealtimeService extends EventEmitter implements RealtimePro
427
428
  * keep waiting — the clock above does that.
428
429
  */
429
430
  private unscheduledListGroups;
431
+ /**
432
+ * The subset of {@link unscheduledListGroups} with no pre-filter: what a
433
+ * change that can be judged still schedules wholesale.
434
+ */
435
+ private unscheduledPlainListGroups;
436
+ /** The pre-filtered list groups on each path. See {@link groupsReachedBy}. */
437
+ private prefilterIndex;
430
438
  /**
431
439
  * Every path a subscription holds, with the collection it lands on and how
432
440
  * many hold it — the candidates `aliasPaths` considers, resolved once.
@@ -582,6 +590,20 @@ export declare class RealtimeService extends EventEmitter implements RealtimePro
582
590
  private dropSubscription;
583
591
  /** Take `subscription` out of its group and path count; a group left empty goes, timer and all. */
584
592
  private leaveGroup;
593
+ /**
594
+ * Compile `group`'s pre-filter and index it under its narrowest
595
+ * condition. Only for a list on a table's own path: a nested list's rows
596
+ * are chosen by its parent, which a change to the row does not describe.
597
+ */
598
+ private indexPrefilter;
599
+ private unindexPrefilter;
600
+ /**
601
+ * The pre-filtered list groups on `path` that `image` may reach, or
602
+ * `undefined` when the change cannot say which value it had in a field
603
+ * groups are indexed by — then every group on the path is asked, as for
604
+ * a change with no image at all.
605
+ */
606
+ private groupsReachedBy;
585
607
  /** See {@link unscheduledListGroups}. */
586
608
  private markListGroupUnscheduled;
587
609
  /**
@@ -757,7 +779,12 @@ export declare class RealtimeService extends EventEmitter implements RealtimePro
757
779
  * records the change so this instance can suppress the matching
758
780
  * CDC echo, while an unmatched CDC event is delivered normally.
759
781
  */
760
- notifyUpdate(path: string, id: string, row: Record<string, unknown> | null, databaseId?: string, broadcast?: boolean, origin?: "app" | "cdc"): Promise<void>;
782
+ /**
783
+ * @param image What the change is known to have done to the row, by column
784
+ * key — see `realtime-prefilter.ts`. It narrows which list groups on
785
+ * `path` refetch, never what any of them receives. Absent, all of them do.
786
+ */
787
+ notifyUpdate(path: string, id: string, row: Record<string, unknown> | null, databaseId?: string, broadcast?: boolean, origin?: "app" | "cdc", image?: RowChangeImage): Promise<void>;
761
788
  /**
762
789
  * Notify subscriptions for a specific path.
763
790
  *
@@ -1315,6 +1342,17 @@ export declare class RealtimeService extends EventEmitter implements RealtimePro
1315
1342
  private handleCdcEvents;
1316
1343
  private drainCdcBacklog;
1317
1344
  private handleCdcEvent;
1345
+ /**
1346
+ * What a captured change says about the row's two versions, by column
1347
+ * key — which list groups it can reach, never what they receive.
1348
+ *
1349
+ * From the WAL, the values it streamed (`CdcChangeEvent.values`). From the
1350
+ * capture trigger, the key alone, and only where the op pins the other
1351
+ * version: an insert had no row before, a delete has none after. A
1352
+ * trigger's update names the new key only — the old one may differ — and
1353
+ * a key too large to send names nothing: both are unknown.
1354
+ */
1355
+ private cdcChangeImage;
1318
1356
  /**
1319
1357
  * Deliver a change on a many-to-many junction table as a change to the child
1320
1358
  * lists it belongs to.
@@ -22,7 +22,15 @@
22
22
  * Nothing is relaxed by the rewrite — `verify-ca` and `verify-full` are left
23
23
  * alone, so a connection string that asked for verification still gets it.
24
24
  *
25
- * Only `sslmode` is touched, and only when it is a value libpq would reject.
25
+ * `uselibpqcompat` is node-postgres's too. It is what node-postgres's own
26
+ * warning tells people to add (`uselibpqcompat=true&sslmode=require`), because
27
+ * node-postgres reads a bare `sslmode=require` as `verify-full`. libpq reports
28
+ * any parameter it does not know as a server setting, so Atlas fails with
29
+ * `unrecognized configuration parameter "uselibpqcompat"`. It only changes how
30
+ * node-postgres reads `sslmode`, and libpq already reads it the standard way,
31
+ * so it is dropped.
32
+ *
33
+ * Only these two are touched, and only when libpq would reject them.
26
34
  * Anything unparseable is returned as given: a connection that works
27
35
  * unverified beats one this corrupted.
28
36
  */
@@ -1,8 +1,8 @@
1
1
  import { createRequire as __createRequire } from "module";
2
2
  __createRequire(import.meta.url);
3
3
  import { i as __exportAll } from "./cli-prompt-DXG0yk-h.js";
4
- import { A as reapSilentSockets, at as SQL_RESULT_BYTE_BUDGET, ct as resolveNestedPath, it as sqlRoleRanAs, j as terminateIfBacklogged, k as budgetSendBuffers, lt as assertReadRequestReadable, nt as effectiveSqlRole, ot as SqlResultTooLargeError, st as isNestedPath } from "./open-rebase-B2mAA7UE.js";
5
- import { r as BranchingUnsupportedError } from "./BranchService-C8LtpMho.js";
4
+ import { A as reapSilentSockets, at as SQL_RESULT_BYTE_BUDGET, ct as resolveNestedPath, it as sqlRoleRanAs, j as terminateIfBacklogged, k as budgetSendBuffers, lt as assertReadRequestReadable, nt as effectiveSqlRole, ot as SqlResultTooLargeError, st as isNestedPath } from "./open-rebase-OB4hhQuk.js";
5
+ import { r as BranchingUnsupportedError } from "./BranchService-Bdin0Wxh.js";
6
6
  import { ApiError, DATABASE_UNAVAILABLE_MESSAGE, RUNTIME_DEFAULT_MAX_BODY_SIZE, assertFieldOpsValid, assertNestedWriteAllowed, assertNoFieldOpsOnCreate, assertNoUserUpsert, assertUserCreationBodyValid, assertWriteRequestValid, createUserThroughAuthTable, decideImpersonation, declaredErrorAnswer, extractUserFromToken, getAccessModel, isAuthTable, isDatabaseUnreachable, logger, resolveConflictTarget, resolveRequireAuth, safeCompare } from "@rebasepro/server";
7
7
  import { ANONYMOUS_USER_ID, ListLimitError, hasAdminRole, isSQLAdmin, isSchemaAdmin, resolveClientListLimit, scopeGrants, scopesForRoles } from "@rebasepro/types";
8
8
  import { UnknownFilterOperatorError, deserializeFilter, redactSqlLiterals, relationOf } from "@rebasepro/common";
@@ -1709,4 +1709,4 @@ function createPostgresWebSocket(server, realtimeService, driver, authConfig, au
1709
1709
  //#endregion
1710
1710
  export { createPostgresWebSocket as a, websocket_exports as c, TOO_MANY_SOCKETS_CLOSE_CODE as i, PUBLIC_TYPES as n, isSocketRealtimeService as o, SESSION_ENDED_CLOSE_CODE as r, socketRealtimeMissing as s, ADMIN_PLANE_TYPES as t };
1711
1711
 
1712
- //# sourceMappingURL=websocket-CSVNOYHC.js.map
1712
+ //# sourceMappingURL=websocket-kZixcOXt.js.map