@rebasepro/server-postgres 0.29.0-canary.g0e3a0e7 → 0.29.1
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/{BranchService-BPssiD8_.js → BranchService-BIIBF5ZL.js} +3 -3
- package/dist/{BranchService-BPssiD8_.js.map → BranchService-BIIBF5ZL.js.map} +1 -1
- package/dist/PostgresBackendDriver.d.ts +105 -9
- package/dist/PostgresBootstrapper.d.ts +14 -0
- package/dist/{backup-cli-C1wcj-rc.js → backup-cli-QcOpmRpQ.js} +3 -3
- package/dist/{backup-cli-C1wcj-rc.js.map → backup-cli-QcOpmRpQ.js.map} +1 -1
- package/dist/{boot-ddl-CIGoIGcC.js → boot-ddl-BSNpEUOS.js} +2 -2
- package/dist/{boot-ddl-CIGoIGcC.js.map → boot-ddl-BSNpEUOS.js.map} +1 -1
- package/dist/{cli-console-CJLtH58M.js → cli-console-DTsm96lW.js} +6 -6
- package/dist/{cli-console-CJLtH58M.js.map → cli-console-DTsm96lW.js.map} +1 -1
- package/dist/{cli-errors-DYets7cp.js → cli-errors-DwqFRIWz.js} +69 -6
- package/dist/cli-errors-DwqFRIWz.js.map +1 -0
- package/dist/cli-helpers.d.ts +10 -0
- package/dist/cli.js +90 -44
- package/dist/cli.js.map +1 -1
- package/dist/{connection-CcYqncW5.js → connection-COuS5Fm-.js} +15 -2
- package/dist/connection-COuS5Fm-.js.map +1 -0
- package/dist/connection.d.ts +6 -0
- package/dist/database-preflight-D5JtPt8i.js +151 -0
- package/dist/database-preflight-D5JtPt8i.js.map +1 -0
- package/dist/{databasePoolManager-XmhMczz0.js → databasePoolManager-7hXVurmG.js} +2 -2
- package/dist/{databasePoolManager-XmhMczz0.js.map → databasePoolManager-7hXVurmG.js.map} +1 -1
- package/dist/db-subcommands.d.ts +1 -1
- package/dist/{deferred-index-build-BwH6k1Og.js → deferred-index-build-B8feKnUj.js} +12 -8
- package/dist/deferred-index-build-B8feKnUj.js.map +1 -0
- package/dist/{doctor-TJApVglQ.js → doctor-BaR11xUe.js} +20 -6
- package/dist/doctor-BaR11xUe.js.map +1 -0
- package/dist/{ensure-collection-policies-f0LIwiwp.js → ensure-collection-policies-85HiG-k1.js} +8 -8
- package/dist/{ensure-collection-policies-f0LIwiwp.js.map → ensure-collection-policies-85HiG-k1.js.map} +1 -1
- package/dist/{ensure-collection-tables-DvaCEy6X.js → ensure-collection-tables-DR_WcxLA.js} +20 -9
- package/dist/ensure-collection-tables-DR_WcxLA.js.map +1 -0
- package/dist/{ensure-tables-CF-8zgYA.js → ensure-tables-Dh5UP_Zs.js} +4 -4
- package/dist/{ensure-tables-CF-8zgYA.js.map → ensure-tables-Dh5UP_Zs.js.map} +1 -1
- package/dist/{enum-labels-kept-DAbJ_IIl.js → enum-labels-kept-DSU8lAnd.js} +3 -3
- package/dist/{enum-labels-kept-DAbJ_IIl.js.map → enum-labels-kept-DSU8lAnd.js.map} +1 -1
- package/dist/{generate-drizzle-schema-BAIp9nKT.js → generate-drizzle-schema-5spbTyQ6.js} +2 -2
- package/dist/{generate-drizzle-schema-BAIp9nKT.js.map → generate-drizzle-schema-5spbTyQ6.js.map} +1 -1
- package/dist/{generate-drizzle-schema-logic-CVRmZjP3.js → generate-drizzle-schema-logic-C5FB7Fpo.js} +2 -2
- package/dist/{generate-drizzle-schema-logic-CVRmZjP3.js.map → generate-drizzle-schema-logic-C5FB7Fpo.js.map} +1 -1
- package/dist/{generate-files-DutUrsSS.js → generate-files-Bl3_D_oP.js} +11 -4
- package/dist/generate-files-Bl3_D_oP.js.map +1 -0
- package/dist/{generate-postgres-ddl-logic-0rbAqwYT.js → generate-postgres-ddl-logic-BC3JA93M.js} +11 -4
- package/dist/{generate-postgres-ddl-logic-0rbAqwYT.js.map → generate-postgres-ddl-logic-BC3JA93M.js.map} +1 -1
- package/dist/{generated-schema-diff-ChFg6UxI.js → generated-schema-diff-Jm93vyJB.js} +29 -6
- package/dist/generated-schema-diff-Jm93vyJB.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +22 -14
- package/dist/index.es.js.map +1 -1
- package/dist/{migrate-baseline-DPawvckr.js → migrate-baseline-BfHmq3vN.js} +49 -4
- package/dist/{migrate-baseline-DPawvckr.js.map → migrate-baseline-BfHmq3vN.js.map} +1 -1
- package/dist/{migrate-policy-stamps-CdljD_y1.js → migrate-policy-stamps-B4k1ggma.js} +7 -7
- package/dist/{migrate-policy-stamps-CdljD_y1.js.map → migrate-policy-stamps-B4k1ggma.js.map} +1 -1
- package/dist/{open-rebase-DvmKIu7q.js → open-rebase-CiO_sjMT.js} +1574 -195
- package/dist/open-rebase-CiO_sjMT.js.map +1 -0
- package/dist/open-rebase.d.ts +6 -1
- package/dist/{pg-error-utils-BIHfsGZL.js → pg-error-utils-D1Nc0UML.js} +2 -2
- package/dist/{pg-error-utils-BIHfsGZL.js.map → pg-error-utils-D1Nc0UML.js.map} +1 -1
- package/dist/pipelined-transaction.d.ts +131 -0
- package/dist/{plan-schema-DMVh77yb.js → plan-schema-BYxOzflz.js} +147 -8
- package/dist/plan-schema-BYxOzflz.js.map +1 -0
- package/dist/{policy-drift-0Cp4Lc0x.js → policy-drift-DKuTJHfc.js} +2 -2
- package/dist/{policy-drift-0Cp4Lc0x.js.map → policy-drift-DKuTJHfc.js.map} +1 -1
- package/dist/{push-index-prebuild-C6wKdjYV.js → push-index-prebuild-bqXimSZz.js} +4 -4
- package/dist/{push-index-prebuild-C6wKdjYV.js.map → push-index-prebuild-bqXimSZz.js.map} +1 -1
- package/dist/{push-kept-defaults-BSqPzp0T.js → push-kept-defaults-CN9R8cHf.js} +2 -2
- package/dist/{push-kept-defaults-BSqPzp0T.js.map → push-kept-defaults-CN9R8cHf.js.map} +1 -1
- package/dist/{push-legacy-renames-BFF72tHG.js → push-legacy-renames-CU_UYPbz.js} +4 -4
- package/dist/{push-legacy-renames-BFF72tHG.js.map → push-legacy-renames-CU_UYPbz.js.map} +1 -1
- package/dist/{push-policy-plan-lOTPeQ1u.js → push-policy-plan-JcyK94bc.js} +4 -4
- package/dist/{push-policy-plan-lOTPeQ1u.js.map → push-policy-plan-JcyK94bc.js.map} +1 -1
- package/dist/{render-ddl-NpPPDACz.js → render-ddl-DCdVP-pQ.js} +95 -4
- package/dist/render-ddl-DCdVP-pQ.js.map +1 -0
- package/dist/request-role-cli-DSdRtvgH.js +260 -0
- package/dist/request-role-cli-DSdRtvgH.js.map +1 -0
- package/dist/request-role-cli.d.ts +86 -0
- package/dist/request-role-migration-D9BZ5Uba.js +150 -0
- package/dist/request-role-migration-D9BZ5Uba.js.map +1 -0
- package/dist/rls-enforcement-BO618rnr.js +992 -0
- package/dist/rls-enforcement-BO618rnr.js.map +1 -0
- package/dist/rls-settings-De5NoHHy.js +211 -0
- package/dist/rls-settings-De5NoHHy.js.map +1 -0
- package/dist/schema/doctor-cli.js +144 -6
- package/dist/schema/doctor-cli.js.map +1 -1
- package/dist/schema/doctor-database.d.ts +27 -0
- package/dist/schema/generate-drizzle-schema.js +1 -1
- package/dist/schema/generate-files.d.ts +2 -1
- package/dist/schema/generate-postgres-ddl-logic.d.ts +6 -0
- package/dist/schema/generate-postgres-ddl.js +1 -1
- package/dist/schema/introspect-db.js +2 -2
- package/dist/schema/introspect-runtime.d.ts +10 -1
- package/dist/schema/plan/diff-plan.d.ts +6 -1
- package/dist/schema/plan/plan-schema.d.ts +9 -1
- package/dist/schema/plan/render-ddl.d.ts +32 -1
- package/dist/schema/plan/tenant-keep-trigger.d.ts +9 -0
- package/dist/schema/plan/types.d.ts +39 -0
- package/dist/schema/plan/updated-at-trigger.d.ts +1 -1
- package/dist/schema/plan/view-names.d.ts +6 -0
- package/dist/schema/rls-bootstrap-sql.d.ts +23 -0
- package/dist/security/caller-sql-columns.d.ts +60 -0
- package/dist/security/caller-sql.d.ts +8 -0
- package/dist/security/database-preflight.d.ts +24 -0
- package/dist/security/request-role-migration.d.ts +36 -0
- package/dist/security/rls-enforcement.d.ts +201 -20
- package/dist/security/rls-settings.d.ts +177 -0
- package/dist/services/FetchService.d.ts +12 -12
- package/dist/services/PersistService.d.ts +59 -0
- package/dist/services/collection-helpers.d.ts +3 -1
- package/dist/services/dataService.d.ts +2 -0
- package/dist/services/realtimeService.d.ts +3 -0
- package/dist/services/view-access.d.ts +21 -0
- package/dist/view-names-Dscp6--B.js +24 -0
- package/dist/view-names-Dscp6--B.js.map +1 -0
- package/dist/{websocket-CCJnghvG.js → websocket-B33YjKhs.js} +3 -3
- package/dist/{websocket-CCJnghvG.js.map → websocket-B33YjKhs.js.map} +1 -1
- package/package.json +7 -7
- package/dist/cli-errors-DYets7cp.js.map +0 -1
- package/dist/connection-CcYqncW5.js.map +0 -1
- package/dist/deferred-index-build-BwH6k1Og.js.map +0 -1
- package/dist/doctor-TJApVglQ.js.map +0 -1
- package/dist/ensure-collection-tables-DvaCEy6X.js.map +0 -1
- package/dist/generate-files-DutUrsSS.js.map +0 -1
- package/dist/generated-schema-diff-ChFg6UxI.js.map +0 -1
- package/dist/open-rebase-DvmKIu7q.js.map +0 -1
- package/dist/plan-schema-DMVh77yb.js.map +0 -1
- package/dist/render-ddl-NpPPDACz.js.map +0 -1
- package/dist/rls-enforcement-BOHuHVlc.js +0 -502
- package/dist/rls-enforcement-BOHuHVlc.js.map +0 -1
|
@@ -31,6 +31,18 @@ export interface PersistSaveOptions {
|
|
|
31
31
|
* without being named here.
|
|
32
32
|
*/
|
|
33
33
|
insertOnlyKeys?: readonly string[];
|
|
34
|
+
/**
|
|
35
|
+
* The caller did not read the row this update addresses, so the write is
|
|
36
|
+
* what establishes it is there: an UPDATE that matched nothing is the 404
|
|
37
|
+
* (`explainZeroRowWrite`), and an update that sets no column reads the row
|
|
38
|
+
* instead of assuming it.
|
|
39
|
+
*/
|
|
40
|
+
unreadRow?: boolean;
|
|
41
|
+
}
|
|
42
|
+
/** One row of a {@link PersistService.saveRows} batch: its values and what its INSERT alone may write. */
|
|
43
|
+
export interface PersistBatchRow {
|
|
44
|
+
values: Record<string, unknown>;
|
|
45
|
+
insertOnlyKeys?: readonly string[];
|
|
34
46
|
}
|
|
35
47
|
/**
|
|
36
48
|
* Service for handling all row write operations.
|
|
@@ -137,6 +149,53 @@ export declare class PersistService {
|
|
|
137
149
|
* not have. What they compile to is `field-op-sql.ts`.
|
|
138
150
|
*/
|
|
139
151
|
save<M extends Record<string, unknown>>(collectionPath: string, values: Partial<M>, id?: string | number, databaseId?: string, options?: PersistSaveOptions): Promise<Record<string, unknown>>;
|
|
152
|
+
/**
|
|
153
|
+
* Write a batch of new rows — inserted, or upserted with `options.upsert` —
|
|
154
|
+
* as multi-row statements, and return each row as {@link save} returns it.
|
|
155
|
+
*
|
|
156
|
+
* The statements are the ones {@link save} sends for one row, carrying up
|
|
157
|
+
* to {@link BATCH_MAX_ROWS} rows each: the same columns, defaults, conflict
|
|
158
|
+
* target, conflict-update and scope. A batch of 1,000 rows is one or two
|
|
159
|
+
* statements instead of a thousand.
|
|
160
|
+
*
|
|
161
|
+
* `undefined`, before anything is written, for a batch that needs what
|
|
162
|
+
* only the row-by-row save does: a nested path, a relation or field
|
|
163
|
+
* operation in a row, an upsert row without its whole conflict key, or a
|
|
164
|
+
* collection whose rows cannot be returned by the write itself (a
|
|
165
|
+
* `beforeQuery` or per-field read access). The caller then saves the rows
|
|
166
|
+
* one by one.
|
|
167
|
+
*
|
|
168
|
+
* Run inside the caller's transaction, which a statement the database
|
|
169
|
+
* refuses aborts: the caller undoes the batch and replays its rows one by
|
|
170
|
+
* one to say which row failed.
|
|
171
|
+
*
|
|
172
|
+
* Rows go out in order, in consecutive runs: a run ends where the next
|
|
173
|
+
* row's conflict-update would set other columns, or where an upsert names
|
|
174
|
+
* a key the run already holds (one statement cannot update a row twice),
|
|
175
|
+
* so a key written twice still ends with the later values.
|
|
176
|
+
*/
|
|
177
|
+
saveRows(collectionPath: string, rows: readonly PersistBatchRow[], options?: {
|
|
178
|
+
upsert?: boolean;
|
|
179
|
+
onConflict?: readonly string[];
|
|
180
|
+
}): Promise<Record<string, unknown>[] | undefined>;
|
|
181
|
+
/**
|
|
182
|
+
* Update rows by id, each with its own values, as
|
|
183
|
+
* `UPDATE … FROM (VALUES …) … RETURNING` statements, and return each row as
|
|
184
|
+
* {@link save} returns it — or `undefined`, before anything is written,
|
|
185
|
+
* for updates that need what only the row-by-row update does: a nested
|
|
186
|
+
* path, a relation or field operation in a row, a collection whose rows the
|
|
187
|
+
* write cannot return (`beforeQuery`, per-field read access) or that has a
|
|
188
|
+
* trash. Consecutive updates setting the same columns share a statement;
|
|
189
|
+
* an id named twice starts a new one, so the later values win.
|
|
190
|
+
*
|
|
191
|
+
* An id the statement did not update — not there, or not the caller's to
|
|
192
|
+
* update — fails the call: the caller replays the updates one by one to say
|
|
193
|
+
* which, and why.
|
|
194
|
+
*/
|
|
195
|
+
updateRows(collectionPath: string, updates: readonly {
|
|
196
|
+
id: string | number;
|
|
197
|
+
values: Record<string, unknown>;
|
|
198
|
+
}[]): Promise<Record<string, unknown>[] | undefined>;
|
|
140
199
|
/**
|
|
141
200
|
* The caller's `beforeQuery` scope over this table, as one condition: what
|
|
142
201
|
* a stored row must satisfy for a write that meets it to change it. The
|
|
@@ -240,4 +240,6 @@ export declare function warnOnKeysTheAdminCannotResolve(collections: CollectionC
|
|
|
240
240
|
* callers decide what that means, since "unaddressable" is a different answer
|
|
241
241
|
* in a notification (broadcast a wildcard) than in a save (fail).
|
|
242
242
|
*/
|
|
243
|
-
export declare function deriveRowAddress(row: Record<string, unknown>, collection: CollectionConfig, registry: PostgresCollectionRegistry
|
|
243
|
+
export declare function deriveRowAddress(row: Record<string, unknown>, collection: CollectionConfig, registry: PostgresCollectionRegistry,
|
|
244
|
+
/** The collection's keys, when the caller already has them — a batch derives one address per row. */
|
|
245
|
+
primaryKeys?: PrimaryKeyInfo[]): string;
|
|
@@ -133,6 +133,8 @@ export declare class DataService implements DataRepository {
|
|
|
133
133
|
* Execute raw SQL
|
|
134
134
|
*/
|
|
135
135
|
executeSql(sqlText: string, params?: unknown[]): Promise<Record<string, unknown>[]>;
|
|
136
|
+
/** {@link executeSql}, answering with the driver's whole result: its rows and its column descriptions. */
|
|
137
|
+
executeSqlResult(sqlText: string, params?: unknown[]): Promise<unknown>;
|
|
136
138
|
/**
|
|
137
139
|
* Get the underlying FetchService for advanced use
|
|
138
140
|
*/
|
|
@@ -4,6 +4,7 @@ import { DataDriver, IncludeSpec, WebSocketMessage, LogicalCondition, OrderByTup
|
|
|
4
4
|
import { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
5
5
|
import { RealtimeProvider, CollectionSubscriptionConfig, SingleSubscriptionConfig } from "../interfaces.js";
|
|
6
6
|
import { PostgresCollectionRegistry } from "../collections/PostgresCollectionRegistry.js";
|
|
7
|
+
import type { RequestIdentity } from "../security/rls-settings.js";
|
|
7
8
|
import type { CdcTableRef } from "./cdc/trigger-cdc.js";
|
|
8
9
|
import { ChannelBus } from "./channel-bus/index.js";
|
|
9
10
|
import type { ChannelRetentionRule, RealtimeCounts, RealtimeListenerHealth } from "@rebasepro/types";
|
|
@@ -511,6 +512,8 @@ export declare class RealtimeService extends EventEmitter implements RealtimePro
|
|
|
511
512
|
* would leak rows the initial (isolated) fetch correctly hid.
|
|
512
513
|
*/
|
|
513
514
|
rlsUserRole?: string;
|
|
515
|
+
/** How a request picks its role and identity settings (`rls`), set with {@link rlsUserRole}. */
|
|
516
|
+
rlsRequest?: RequestIdentity;
|
|
514
517
|
/**
|
|
515
518
|
* Verbose subscription tracing.
|
|
516
519
|
*
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a collection that serves a SQL view (`PostgresCollectionConfig.view`)
|
|
3
|
+
* allows: reads, and for a materialized view only by the roles it names.
|
|
4
|
+
*
|
|
5
|
+
* A plain view runs as the caller (`security_invoker`), so the policies of the
|
|
6
|
+
* tables it reads already decide every row, and a read of one needs nothing
|
|
7
|
+
* here. A materialized view stores its rows and Postgres puts no row-level
|
|
8
|
+
* security on it: whoever may select from it sees all of it. So the role check
|
|
9
|
+
* is the driver's, made before every read of one by a caller (see
|
|
10
|
+
* `beforeQueryConditions`) — and not of the server's own work, which reads
|
|
11
|
+
* with no viewer at all.
|
|
12
|
+
*/
|
|
13
|
+
import { type CollectionConfig } from "@rebasepro/types";
|
|
14
|
+
import { DEFAULT_VIEW_ROLES } from "../schema/plan/view-names.js";
|
|
15
|
+
export { DEFAULT_VIEW_ROLES };
|
|
16
|
+
/** Whether a collection serves a view rather than a table. */
|
|
17
|
+
export declare function isViewCollection(collection: CollectionConfig | undefined): boolean;
|
|
18
|
+
/** Refuse a caller who holds none of a materialized view's roles. A no-op for anything else. */
|
|
19
|
+
export declare function assertViewReadable(collection: CollectionConfig | undefined): void;
|
|
20
|
+
/** Refuse a write to a collection that serves a view. */
|
|
21
|
+
export declare function assertCollectionWritable(collection: CollectionConfig | undefined, path: string): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "module";
|
|
2
|
+
__createRequire(import.meta.url);
|
|
3
|
+
import { toPostgresIdentifier } from "@rebasepro/utils";
|
|
4
|
+
//#region src/schema/plan/view-names.ts
|
|
5
|
+
/**
|
|
6
|
+
* The names a materialized-view collection lives under.
|
|
7
|
+
*
|
|
8
|
+
* Postgres puts no row-level security on a materialized view, and the request
|
|
9
|
+
* role can read anything it holds `SELECT` on. So the stored rows live under
|
|
10
|
+
* {@link viewRowsName}, which only the owner may read, and the collection's
|
|
11
|
+
* own name is a view over them that serves them to the collection's roles
|
|
12
|
+
* (`view.roles`) and to the server itself — a gate in the database, so SQL run
|
|
13
|
+
* as a caller meets it as the SDK does.
|
|
14
|
+
*/
|
|
15
|
+
/** The roles a materialized view is served to when it names none. */
|
|
16
|
+
var DEFAULT_VIEW_ROLES = ["admin"];
|
|
17
|
+
/** Where a materialized view's rows are stored. A frozen derived name. */
|
|
18
|
+
var viewRowsName = (name) => toPostgresIdentifier(`${name}_rebase_rows`);
|
|
19
|
+
/** The comment the stored rows carry, beside the gate's `rebase:view:<hash>`. */
|
|
20
|
+
var VIEW_ROWS_COMMENT_PREFIX = "rebase:view-rows:";
|
|
21
|
+
//#endregion
|
|
22
|
+
export { VIEW_ROWS_COMMENT_PREFIX as n, viewRowsName as r, DEFAULT_VIEW_ROLES as t };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=view-names-Dscp6--B.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-names-Dscp6--B.js","names":[],"sources":["../src/schema/plan/view-names.ts"],"sourcesContent":["/**\n * The names a materialized-view collection lives under.\n *\n * Postgres puts no row-level security on a materialized view, and the request\n * role can read anything it holds `SELECT` on. So the stored rows live under\n * {@link viewRowsName}, which only the owner may read, and the collection's\n * own name is a view over them that serves them to the collection's roles\n * (`view.roles`) and to the server itself — a gate in the database, so SQL run\n * as a caller meets it as the SDK does.\n */\nimport { toPostgresIdentifier } from \"@rebasepro/utils\";\n\n/** The roles a materialized view is served to when it names none. */\nexport const DEFAULT_VIEW_ROLES: readonly string[] = [\"admin\"];\n\n/** Where a materialized view's rows are stored. A frozen derived name. */\nexport const viewRowsName = (name: string): string => toPostgresIdentifier(`${name}_rebase_rows`);\n\n/** The comment the stored rows carry, beside the gate's `rebase:view:<hash>`. */\nexport const VIEW_ROWS_COMMENT_PREFIX = \"rebase:view-rows:\";\n"],"mappings":";;;;;;;;;;;;;;;AAaA,IAAa,qBAAwC,CAAC,OAAO;;AAG7D,IAAa,gBAAgB,SAAyB,qBAAqB,GAAG,KAAK,aAAa;;AAGhG,IAAa,2BAA2B"}
|
|
@@ -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 budgetSendBuffers, M as terminateIfBacklogged, N as assertReadRequestReadable, ct as SqlResultTooLargeError, it as effectiveSqlRole, j as reapSilentSockets, lt as isNestedPath, ot as sqlRoleRanAs, st as SQL_RESULT_BYTE_BUDGET, ut as resolveNestedPath } from "./open-rebase-
|
|
5
|
-
import { r as BranchingUnsupportedError } from "./BranchService-
|
|
4
|
+
import { A as budgetSendBuffers, M as terminateIfBacklogged, N as assertReadRequestReadable, ct as SqlResultTooLargeError, it as effectiveSqlRole, j as reapSilentSockets, lt as isNestedPath, ot as sqlRoleRanAs, st as SQL_RESULT_BYTE_BUDGET, ut as resolveNestedPath } from "./open-rebase-CiO_sjMT.js";
|
|
5
|
+
import { r as BranchingUnsupportedError } from "./BranchService-BIIBF5ZL.js";
|
|
6
6
|
import { ApiError, DATABASE_UNAVAILABLE_MESSAGE, RUNTIME_DEFAULT_MAX_BODY_SIZE, assertFieldOpsValid, assertNestedWriteAllowed, assertNoFieldOpsOnCreate, assertNoUserUpsert, assertUserCreationBodyValid, assertWriteRequestValid, createUserThroughAuthCollection, decideImpersonation, declaredErrorAnswer, extractUserFromToken, getAccessModel, 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 } from "@rebasepro/common";
|
|
@@ -1698,4 +1698,4 @@ function createPostgresWebSocket(server, realtimeService, driver, authConfig, au
|
|
|
1698
1698
|
//#endregion
|
|
1699
1699
|
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 };
|
|
1700
1700
|
|
|
1701
|
-
//# sourceMappingURL=websocket-
|
|
1701
|
+
//# sourceMappingURL=websocket-B33YjKhs.js.map
|