@rebasepro/types 0.31.0-canary.g902a0ce → 0.32.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.
|
@@ -2,6 +2,7 @@ import type { User } from "../users/index.js";
|
|
|
2
2
|
import type { ResourceRef } from "../types/resources.js";
|
|
3
3
|
import type { RebaseSdkData } from "./data.js";
|
|
4
4
|
import type { EmailService } from "./email.js";
|
|
5
|
+
import type { PushService } from "./push.js";
|
|
5
6
|
import type { StorageSource } from "./storage.js";
|
|
6
7
|
import type { CallerSqlOptions } from "./data_driver.js";
|
|
7
8
|
import type { CronJobStatus, CronJobLogEntry, CronJobListing, CronJobStarted } from "../types/cron.js";
|
|
@@ -668,6 +669,12 @@ export interface RebaseServerClient<DB = RegisteredDatabase> extends Omit<Rebase
|
|
|
668
669
|
* site can carry on without mail.
|
|
669
670
|
*/
|
|
670
671
|
email: EmailService;
|
|
672
|
+
/**
|
|
673
|
+
* Server-side Web Push. Always present: on a backend without `push: true`,
|
|
674
|
+
* or without VAPID keys in production, `isConfigured()` is `false` and every
|
|
675
|
+
* send throws a message naming what to set, as {@link email} does.
|
|
676
|
+
*/
|
|
677
|
+
push: PushService;
|
|
671
678
|
/**
|
|
672
679
|
* Execute raw SQL against the database. Always present server-side for SQL
|
|
673
680
|
* engines. Values interpolated into the query should be passed via
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web Push: the server's side of browser notifications.
|
|
3
|
+
*
|
|
4
|
+
* The interfaces live here, beside {@link EmailService}, so the server client
|
|
5
|
+
* type can carry `push` without importing the server. The implementation —
|
|
6
|
+
* VAPID signing, payload encryption, the subscription table — is in
|
|
7
|
+
* `@rebasepro/server`.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* What a notification carries: any JSON object. The service worker that
|
|
11
|
+
* receives it decides what to show, so the keys are the application's —
|
|
12
|
+
* `{ title, body, url }` is the usual shape and the one the documented
|
|
13
|
+
* service worker reads.
|
|
14
|
+
*/
|
|
15
|
+
export type PushPayload = Record<string, unknown>;
|
|
16
|
+
/** A browser that turned notifications on, as application code sees it. */
|
|
17
|
+
export interface PushSubscriptionInfo {
|
|
18
|
+
/** Stable id: a hash of the endpoint. Key your own per-browser rows by it. */
|
|
19
|
+
id: string;
|
|
20
|
+
/** The account the browser was signed in to when it subscribed. */
|
|
21
|
+
userId: string;
|
|
22
|
+
/** The push service's host, which says which browser it is (`fcm.googleapis.com`, `web.push.apple.com`, …). */
|
|
23
|
+
endpointHost: string;
|
|
24
|
+
/** The language the browser asked for notifications in, when it said. */
|
|
25
|
+
lang: string | null;
|
|
26
|
+
createdAt: Date;
|
|
27
|
+
/** When a notification was last accepted by its push service. */
|
|
28
|
+
lastSentAt: Date | null;
|
|
29
|
+
}
|
|
30
|
+
/** How a notification travels. All optional. */
|
|
31
|
+
export interface PushSendOptions {
|
|
32
|
+
/**
|
|
33
|
+
* Seconds the push service keeps trying to deliver it to a browser that is
|
|
34
|
+
* offline. Default 86400 (a day). `0`: deliver now or never.
|
|
35
|
+
*/
|
|
36
|
+
ttl?: number;
|
|
37
|
+
/** How hard the push service and the device try to deliver it. Default `"normal"`. */
|
|
38
|
+
urgency?: "very-low" | "low" | "normal" | "high";
|
|
39
|
+
/**
|
|
40
|
+
* A newer message with the same topic replaces one the push service has not
|
|
41
|
+
* delivered yet. At most 32 characters of `A-Z a-z 0-9 - _`.
|
|
42
|
+
*/
|
|
43
|
+
topic?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Copied into the payload as `tag`. A service worker that passes it to
|
|
46
|
+
* `showNotification` makes a newer notification replace an older one with
|
|
47
|
+
* the same tag on the device.
|
|
48
|
+
*/
|
|
49
|
+
tag?: string;
|
|
50
|
+
}
|
|
51
|
+
/** What a send did, per subscription. */
|
|
52
|
+
export interface PushSendResult {
|
|
53
|
+
/** Subscriptions whose push service accepted the message. */
|
|
54
|
+
sent: number;
|
|
55
|
+
/** Subscriptions the push service said are gone (404, 410). Their rows were deleted. */
|
|
56
|
+
removed: number;
|
|
57
|
+
/** Subscriptions that failed for another reason (rate limit, push service error, network). Kept. */
|
|
58
|
+
failed: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A payload, or a function that writes one per subscription — for a message in
|
|
62
|
+
* each browser's own language: `(s) => words[s.lang ?? "en"] ?? words.en`.
|
|
63
|
+
*/
|
|
64
|
+
export type PushPayloadInput = PushPayload | ((subscription: PushSubscriptionInfo) => PushPayload);
|
|
65
|
+
/** Server-side Web Push, as `rebase.push`. */
|
|
66
|
+
export interface PushService {
|
|
67
|
+
/**
|
|
68
|
+
* `true` when push is switched on and has VAPID keys. When `false`, every
|
|
69
|
+
* send throws a message naming what to set.
|
|
70
|
+
*/
|
|
71
|
+
isConfigured(): boolean;
|
|
72
|
+
/** The VAPID public key browsers subscribe with, or `null` when push is not configured. */
|
|
73
|
+
publicKey(): string | null;
|
|
74
|
+
/** Send to every browser the user turned notifications on in. */
|
|
75
|
+
sendToUser(userId: string, payload: PushPayloadInput, options?: PushSendOptions): Promise<PushSendResult>;
|
|
76
|
+
/** Send to these subscriptions, by {@link PushSubscriptionInfo.id}. Unknown ids are skipped. */
|
|
77
|
+
sendToSubscriptions(ids: readonly string[], payload: PushPayloadInput, options?: PushSendOptions): Promise<PushSendResult>;
|
|
78
|
+
/** The browsers a user turned notifications on in. */
|
|
79
|
+
subscriptionsOf(userId: string): Promise<PushSubscriptionInfo[]>;
|
|
80
|
+
}
|
|
81
|
+
/** A subscription as a push sender needs it: where to post, and the browser's keys. */
|
|
82
|
+
export interface PushTarget {
|
|
83
|
+
endpoint: string;
|
|
84
|
+
/** The browser's P-256 public key, base64url. */
|
|
85
|
+
p256dh: string;
|
|
86
|
+
/** The browser's auth secret, base64url. */
|
|
87
|
+
auth: string;
|
|
88
|
+
}
|
|
89
|
+
/** What a push service answered. */
|
|
90
|
+
export interface PushDelivery {
|
|
91
|
+
/** The HTTP status. 201 is accepted; 404 and 410 mean the subscription is gone. */
|
|
92
|
+
statusCode: number;
|
|
93
|
+
/** The response body, when the push service sent one, for the log. */
|
|
94
|
+
body?: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Delivers one message to one push service. The default signs with the
|
|
98
|
+
* backend's VAPID keys, encrypts with `aes128gcm` and posts with `fetch`;
|
|
99
|
+
* another implementation (a relay, a test double) goes in `push.sender`.
|
|
100
|
+
*
|
|
101
|
+
* Resolves with the push service's answer, whatever the status. Rejects only
|
|
102
|
+
* when no answer came (network failure).
|
|
103
|
+
*/
|
|
104
|
+
export interface PushSender {
|
|
105
|
+
send(target: PushTarget, payload: string, options: Required<Pick<PushSendOptions, "ttl" | "urgency">> & Pick<PushSendOptions, "topic">): Promise<PushDelivery>;
|
|
106
|
+
}
|
package/dist/index.es.js
CHANGED
|
@@ -2528,6 +2528,191 @@ function isValidAppHost(host) {
|
|
|
2528
2528
|
if (!labels.every((part) => label.test(part))) return false;
|
|
2529
2529
|
return !/^[0-9]+$/.test(labels[labels.length - 1]);
|
|
2530
2530
|
}
|
|
2531
|
+
/** Whether `path` is `parent`, or a path beneath it, at segment boundaries. */
|
|
2532
|
+
function isPathUnder(path, parent) {
|
|
2533
|
+
if (parent === "/") return true;
|
|
2534
|
+
return path === parent || path.startsWith(`${parent}/`);
|
|
2535
|
+
}
|
|
2536
|
+
/**
|
|
2537
|
+
* The characters a route's path may hold: unreserved and sub-delimiters, `:`,
|
|
2538
|
+
* `@` and `/`. A request path arrives percent-encoded and is matched as it
|
|
2539
|
+
* arrives, so a route written with a space, a `%` or a non-ASCII letter could
|
|
2540
|
+
* never match anything.
|
|
2541
|
+
*/
|
|
2542
|
+
var ROUTE_PATH_CHARACTERS = /^\/[A-Za-z0-9\-._~!$&'()+,;=:@/]*$/;
|
|
2543
|
+
/** A function's name as it appears in `/api/functions/<name>`: one path segment. */
|
|
2544
|
+
var FUNCTION_NAME = /^[A-Za-z0-9_-][A-Za-z0-9_.-]*$/;
|
|
2545
|
+
/**
|
|
2546
|
+
* Validate one of a static app's routes against the app's own path (the path
|
|
2547
|
+
* part of its address).
|
|
2548
|
+
*
|
|
2549
|
+
* Shared for the reason {@link parseAppAddress} is: the CLI checks a route
|
|
2550
|
+
* while `rebase.json` is edited, and the runtime checks it again when it loads
|
|
2551
|
+
* a bundle, which any program could have written. The rules:
|
|
2552
|
+
*
|
|
2553
|
+
* - `path` is absolute, with no `..`, empty segment or trailing slash, and
|
|
2554
|
+
* ends in `/*` or holds no `*` at all.
|
|
2555
|
+
* - No segment starts with a dot: `/.well-known` is the backend's, and a
|
|
2556
|
+
* static app serves no dot-file.
|
|
2557
|
+
* - It is not under a prefix the backend owns ({@link RESERVED_BACKEND_PREFIXES}),
|
|
2558
|
+
* because the API answers there on every hostname.
|
|
2559
|
+
* - It is inside the app's path, since the app is what answers there, and a
|
|
2560
|
+
* wildcard does not cover the whole app, which would leave nothing of the
|
|
2561
|
+
* build to serve.
|
|
2562
|
+
* - `function` is one path segment, as a function's file name is.
|
|
2563
|
+
*/
|
|
2564
|
+
function validateStaticRoute(value, appPath) {
|
|
2565
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return {
|
|
2566
|
+
ok: false,
|
|
2567
|
+
reason: "must be an object like { \"path\": \"/sitemap.xml\", \"function\": \"sitemap\" }"
|
|
2568
|
+
};
|
|
2569
|
+
const { path, function: fn } = value;
|
|
2570
|
+
if (typeof path !== "string" || !path.startsWith("/")) return {
|
|
2571
|
+
ok: false,
|
|
2572
|
+
field: "path",
|
|
2573
|
+
reason: "must be an absolute path like \"/sitemap.xml\" or \"/blog/*\""
|
|
2574
|
+
};
|
|
2575
|
+
const wildcard = path.endsWith("/*");
|
|
2576
|
+
const prefix = wildcard ? path.slice(0, -2) || "/" : path;
|
|
2577
|
+
if (prefix.includes("*")) return {
|
|
2578
|
+
ok: false,
|
|
2579
|
+
field: "path",
|
|
2580
|
+
reason: "may end in \"/*\" to match everything beneath a path, and holds no other \"*\""
|
|
2581
|
+
};
|
|
2582
|
+
if (!ROUTE_PATH_CHARACTERS.test(prefix)) return {
|
|
2583
|
+
ok: false,
|
|
2584
|
+
field: "path",
|
|
2585
|
+
reason: "may hold letters, digits, \"/\" and - . _ ~ ! $ & ' ( ) + , ; = : @ only — no spaces, \"?\", \"#\" or \"%\""
|
|
2586
|
+
};
|
|
2587
|
+
if (prefix.includes("//") || prefix !== "/" && prefix.endsWith("/")) return {
|
|
2588
|
+
ok: false,
|
|
2589
|
+
field: "path",
|
|
2590
|
+
reason: "must have no empty segment and no trailing slash"
|
|
2591
|
+
};
|
|
2592
|
+
if (prefix.split("/").some((segment) => segment.startsWith("."))) return {
|
|
2593
|
+
ok: false,
|
|
2594
|
+
field: "path",
|
|
2595
|
+
reason: "must have no segment starting with \".\" — the backend serves /.well-known, and an app serves no dot-file"
|
|
2596
|
+
};
|
|
2597
|
+
const reserved = reservedPrefixFor(prefix);
|
|
2598
|
+
if (reserved) return {
|
|
2599
|
+
ok: false,
|
|
2600
|
+
field: "path",
|
|
2601
|
+
reason: `cannot be "${reserved}" or nest under it — the backend serves that path on every hostname`
|
|
2602
|
+
};
|
|
2603
|
+
if (!isPathUnder(prefix, appPath)) return {
|
|
2604
|
+
ok: false,
|
|
2605
|
+
field: "path",
|
|
2606
|
+
reason: `must be inside this app's path, "${appPath}" — the app is what answers there`
|
|
2607
|
+
};
|
|
2608
|
+
if (wildcard && prefix === appPath) return {
|
|
2609
|
+
ok: false,
|
|
2610
|
+
field: "path",
|
|
2611
|
+
reason: `covers all of this app's path, "${appPath}", so nothing in its build would ever be served`
|
|
2612
|
+
};
|
|
2613
|
+
if (typeof fn !== "string" || !FUNCTION_NAME.test(fn)) return {
|
|
2614
|
+
ok: false,
|
|
2615
|
+
field: "function",
|
|
2616
|
+
reason: "must name a custom function, as its file is named: \"sitemap\" for functions/sitemap.ts"
|
|
2617
|
+
};
|
|
2618
|
+
return {
|
|
2619
|
+
ok: true,
|
|
2620
|
+
route: {
|
|
2621
|
+
path,
|
|
2622
|
+
function: fn
|
|
2623
|
+
}
|
|
2624
|
+
};
|
|
2625
|
+
}
|
|
2626
|
+
/**
|
|
2627
|
+
* Whether `route` answers `requestPath`, and with what path under its
|
|
2628
|
+
* function: `""` for the route's own path, `/rest` beneath a wildcard.
|
|
2629
|
+
* `undefined` when it does not match.
|
|
2630
|
+
*
|
|
2631
|
+
* Compared as the path arrives, percent-encoding and all, and at segment
|
|
2632
|
+
* boundaries: `/blog/*` matches `/blog` and `/blog/x`, not `/blogroll`.
|
|
2633
|
+
*/
|
|
2634
|
+
function matchStaticRoute(route, requestPath) {
|
|
2635
|
+
if (!route.path.endsWith("/*")) return requestPath === route.path ? "" : void 0;
|
|
2636
|
+
const prefix = route.path.slice(0, -2);
|
|
2637
|
+
if (prefix === "") return requestPath === "/" ? "" : requestPath;
|
|
2638
|
+
if (requestPath === prefix) return "";
|
|
2639
|
+
return requestPath.startsWith(`${prefix}/`) ? requestPath.slice(prefix.length) : void 0;
|
|
2640
|
+
}
|
|
2641
|
+
/**
|
|
2642
|
+
* Order routes so the first match is the most specific: exact paths first,
|
|
2643
|
+
* then wildcards by the length of their prefix, longest first. Declaration
|
|
2644
|
+
* order breaks ties, which only equal wildcards can have.
|
|
2645
|
+
*/
|
|
2646
|
+
function compareStaticRoutes(a, b) {
|
|
2647
|
+
const aWild = a.path.endsWith("/*");
|
|
2648
|
+
if (aWild !== b.path.endsWith("/*")) return aWild ? 1 : -1;
|
|
2649
|
+
return aWild ? b.path.length - a.path.length : 0;
|
|
2650
|
+
}
|
|
2651
|
+
/** Hosts plain `http://` is accepted for: a CMS running on the developer's own machine. */
|
|
2652
|
+
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set([
|
|
2653
|
+
"localhost",
|
|
2654
|
+
"127.0.0.1",
|
|
2655
|
+
"[::1]"
|
|
2656
|
+
]);
|
|
2657
|
+
/**
|
|
2658
|
+
* Validate one entry of a static app's `frameAncestors`: a single origin that
|
|
2659
|
+
* may frame the app.
|
|
2660
|
+
*
|
|
2661
|
+
* The value ends up inside a `Content-Security-Policy` header, so it is held
|
|
2662
|
+
* to the exact serialisation of an origin — `new URL(value).origin` has to
|
|
2663
|
+
* give it back unchanged. That leaves nothing that could close the directive
|
|
2664
|
+
* or open another one, and turns every near miss (a trailing slash, a
|
|
2665
|
+
* capital, a default port, a path) into a refusal that names the fix.
|
|
2666
|
+
*
|
|
2667
|
+
* `https://` with a public hostname, or `localhost`; plain `http://` only for
|
|
2668
|
+
* a loopback host. Never a wildcard or a keyword: this is a list of the
|
|
2669
|
+
* origins an operator chose, and `'self'` is always on it.
|
|
2670
|
+
*/
|
|
2671
|
+
function parseFrameAncestor(value) {
|
|
2672
|
+
const example = "must be an origin like \"https://admin.example.com\"";
|
|
2673
|
+
if (typeof value !== "string" || value === "") return {
|
|
2674
|
+
ok: false,
|
|
2675
|
+
reason: example
|
|
2676
|
+
};
|
|
2677
|
+
if (value.includes("*")) return {
|
|
2678
|
+
ok: false,
|
|
2679
|
+
reason: "must name one origin — wildcards are not accepted, so list each origin that may frame this app"
|
|
2680
|
+
};
|
|
2681
|
+
if (value.startsWith("'")) return {
|
|
2682
|
+
ok: false,
|
|
2683
|
+
reason: `${example} — keywords are not accepted, and 'self' is always allowed`
|
|
2684
|
+
};
|
|
2685
|
+
let url;
|
|
2686
|
+
try {
|
|
2687
|
+
url = new URL(value);
|
|
2688
|
+
} catch {
|
|
2689
|
+
return {
|
|
2690
|
+
ok: false,
|
|
2691
|
+
reason: example
|
|
2692
|
+
};
|
|
2693
|
+
}
|
|
2694
|
+
if (url.protocol !== "https:" && url.protocol !== "http:") return {
|
|
2695
|
+
ok: false,
|
|
2696
|
+
reason: example
|
|
2697
|
+
};
|
|
2698
|
+
const loopback = LOOPBACK_HOSTS.has(url.hostname);
|
|
2699
|
+
if (url.protocol === "http:" && !loopback) return {
|
|
2700
|
+
ok: false,
|
|
2701
|
+
reason: `must use https — plain http is accepted for localhost only: "https://${url.host}"`
|
|
2702
|
+
};
|
|
2703
|
+
if (!loopback && !isValidAppHost(url.hostname)) return {
|
|
2704
|
+
ok: false,
|
|
2705
|
+
reason: `names "${url.hostname}", which is not a public hostname`
|
|
2706
|
+
};
|
|
2707
|
+
if (url.origin !== value) return {
|
|
2708
|
+
ok: false,
|
|
2709
|
+
reason: `must be the origin alone — scheme, hostname and an optional port, lowercase, with nothing after it: "${url.origin}"`
|
|
2710
|
+
};
|
|
2711
|
+
return {
|
|
2712
|
+
ok: true,
|
|
2713
|
+
origin: value
|
|
2714
|
+
};
|
|
2715
|
+
}
|
|
2531
2716
|
/**
|
|
2532
2717
|
* Version of the bundle *format* itself.
|
|
2533
2718
|
*
|
|
@@ -5553,6 +5738,6 @@ function rulePatches(table, before, after) {
|
|
|
5553
5738
|
return out;
|
|
5554
5739
|
}
|
|
5555
5740
|
//#endregion
|
|
5556
|
-
export { ADMIN_ROLE, ADMIN_SCOPES, AGGREGATE_FUNCTIONS, AGGREGATE_GROUP_TRANSFORMS, ALL_WHERE_FILTER_OPS, ANONYMOUS_USER_ID, ANONYMOUS_USER_IDS, AUTH_FLOW_HEADER, BATCH_REF_KEY, BUILT_IN_SCOPES, BUILT_IN_SCOPE_DESCRIPTIONS, BUNDLE_FORMAT_VERSION, CANONICAL_TO_REST, COLUMN_BRAND, ColumnBuilder, DATA_PLANE_SCOPES, DEFAULT_CAPABILITIES, DEFAULT_COMMIT_PATHS, DEFAULT_DATA_SOURCE_KEY, DEFAULT_FILTERABLE_RELATION_KINDS, DEFAULT_FUZZY_THRESHOLD, DEFAULT_LIST_LIMIT, DEFAULT_RESOURCE_KEY, DEFAULT_SEARCH_COLUMN, DEFAULT_SEARCH_LANGUAGE, DEFAULT_SEARCH_MODE, DEFAULT_SEARCH_WEIGHT, DEFAULT_STORAGE_SOURCE_KEY, DEFAULT_TENANT_BYPASS_ROLES, DEFAULT_VECTOR_LIST_LIMIT, EMPTY_ACCESS_MODEL, FIELDLESS_AGGREGATES, FIELD_OPERATORS, FIREBASE_CAPABILITIES, IMPERSONATE_HEADER, INCLUDE_COUNT_KEY, JSON_FIELD_BRAND, JUNCTION_PIVOT_KEY, JsonField, KEY_MANAGEMENT_SCOPES, LEGACY_LAYOUT_REMEDY, LEGACY_RLS_JWT_SQL, LEGACY_RLS_ROLES_SQL, LEGACY_RLS_SCHEMA, LEGACY_RLS_UID_SQL, LEGACY_SCHEMA_VERSION_PREFIX, LIST_OPS, ListLimitError, MAX_INCLUDE_DEPTH, MAX_LIST_LIMIT, MCP_APP_MODULES, NULL_OPS, POLICY_EXPRESSION_KINDS, POSTGRES_CAPABILITIES, PUBLIC_STORAGE_PREFIX, REBASE_ADMIN_REQUEST_ROLE, REBASE_ADMIN_ROLE, REBASE_SCHEMA, RELATION_BRAND, RELEVANCE_SORT_FIELD, RESERVED_BACKEND_PREFIXES, RESOURCE_GRAPH_VERSION, REST_TO_CANONICAL, RLS_IS_ANONYMOUS_SQL, RLS_IS_REQUEST_ROLE_SQL, RLS_JWT_SQL, RLS_ROLES_SQL, RLS_UID_SQL, RUNTIME_CONTRACT_VERSION, RebaseApiError, RebaseClientError, SCHEMA_VERSION_HEADER, SCOPE_TARGETS, SIMULATED_CONTEXT_HEADER, SIMULATE_API_KEY_ID_HEADER, SIMULATE_ROLE_HEADER, SIMULATE_USER_ID_HEADER, STORAGE_REFERENCE_SCHEME, TABLE_BRAND, TABLE_OPTION_KEYS, TablePatchError, UI_PREFERENCE_FIELD_KEYS, UI_PREFERENCE_TABLE_KEYS, VIEW_BRAND, adminRequestRoleFor, aggregateAlias, aggregateGroupKey, amendResourceKind, bucket, buildResourceGraph, canonicalSchemaPayload, col, columnDefFromWire, columnTypeLabel, computeSchemaVersion, database, declareCron, declareFunction, declareResource, declaredDataSources, declaredDatabaseExtensions, declaredDatabaseRls, declaredQueueConsumers, declaredResources, declaredRlsPolicyShape, declaredStorageSources, declaredSubscriptions, defineAuthTable, defineTable, defineView, describeJsonShape, describeScope, encodeRelationAggregateSort, envBasesForResource, findEnvSuffixCollision, findStorageSuffixCollision, formatSimulatedContext, getDataSourceCapabilities, hasAdminRole, hasFieldOperation, holdsAdminRole, intersectScopes, isAdminScope, isAnonymousUid, isAuthTableDef, isBranchAdmin, isBuiltInScope, isChannelBusInstance, isColumnBuilder, isContentHashedFileName, isDataPlaneScope, isFieldOperation, isJsonColumnType, isJsonField, isNumericColumnType, isPercentileFraction, isPolicyExpressionKind, isPolicyShorthand, isPublicStorageKey, isPublicStoragePath, isRedactedSecurityRule, isRelationAggregateSort, isRelationDef, isResourceHandle, isSQLAdmin, isSchemaAdmin, isSchemaEditingAdmin, isSqlTemplate, isStorageReference, isTableDef, isTablePatchList, isTemporalColumnType, isTenantClaimSource, isTenantMembershipSource, isTextColumnType, isTimeZoneName, isUiTablePreferences, isUnsupported, isValidAppHost, isValidEngine, isViewDef, joinConditions, json, knownScopes, mergeUiTablePreferences, normalizeColumnAccess, normalizeStorage, normalizeValidation, parseAppAddress, parseByteSize, parseCaseFoldedFieldPath, parseEnvBoolean, parseRelationAggregateSort, parseScope, parseSimulatedContext, parseStorageReference, parseTablePatches, pgEnum, policy, queue, registerDataSourceCapabilities, registerResourceKind, rel, reservedPrefixFor, resetDeclaredQueueConsumers, resetDeclaredResources, resetDeclaredSubscriptions, resolveClientListLimit, resolveResourceRefs, resolveStorageReferences, resourceEnvSuffix, resourceId, resourceKeyOf, resourceKind, resourceKinds, resourceToDataSource, resourceToStorageSource, rewriteLegacyRlsFunctions, roleNameProblem, rulePatches, scopeAcceptsTarget, scopeGrants, scopeGrantsAny, scopeTargets, scopesBeyond, scopesForRoles, setQueueRuntime, setTopicRuntime, simulationHeaders, soleJoinCondition, sortKeyToString, sql, storageEnvSuffix, storageObjectPath, storageReference, storageReferencesForDownloadUrls, storageTargetOfDownloadUrl, storageTargetsInText, summarizeRoles, summarizeScopes, tablePatchProblems, toCanonicalOp, toDriverAggregate, toDriverAggregateGroup, topic, uiTablePreferencesProblems, unsupportedMethod, usesLegacyRlsFunctions, validateScopes };
|
|
5741
|
+
export { ADMIN_ROLE, ADMIN_SCOPES, AGGREGATE_FUNCTIONS, AGGREGATE_GROUP_TRANSFORMS, ALL_WHERE_FILTER_OPS, ANONYMOUS_USER_ID, ANONYMOUS_USER_IDS, AUTH_FLOW_HEADER, BATCH_REF_KEY, BUILT_IN_SCOPES, BUILT_IN_SCOPE_DESCRIPTIONS, BUNDLE_FORMAT_VERSION, CANONICAL_TO_REST, COLUMN_BRAND, ColumnBuilder, DATA_PLANE_SCOPES, DEFAULT_CAPABILITIES, DEFAULT_COMMIT_PATHS, DEFAULT_DATA_SOURCE_KEY, DEFAULT_FILTERABLE_RELATION_KINDS, DEFAULT_FUZZY_THRESHOLD, DEFAULT_LIST_LIMIT, DEFAULT_RESOURCE_KEY, DEFAULT_SEARCH_COLUMN, DEFAULT_SEARCH_LANGUAGE, DEFAULT_SEARCH_MODE, DEFAULT_SEARCH_WEIGHT, DEFAULT_STORAGE_SOURCE_KEY, DEFAULT_TENANT_BYPASS_ROLES, DEFAULT_VECTOR_LIST_LIMIT, EMPTY_ACCESS_MODEL, FIELDLESS_AGGREGATES, FIELD_OPERATORS, FIREBASE_CAPABILITIES, IMPERSONATE_HEADER, INCLUDE_COUNT_KEY, JSON_FIELD_BRAND, JUNCTION_PIVOT_KEY, JsonField, KEY_MANAGEMENT_SCOPES, LEGACY_LAYOUT_REMEDY, LEGACY_RLS_JWT_SQL, LEGACY_RLS_ROLES_SQL, LEGACY_RLS_SCHEMA, LEGACY_RLS_UID_SQL, LEGACY_SCHEMA_VERSION_PREFIX, LIST_OPS, ListLimitError, MAX_INCLUDE_DEPTH, MAX_LIST_LIMIT, MCP_APP_MODULES, NULL_OPS, POLICY_EXPRESSION_KINDS, POSTGRES_CAPABILITIES, PUBLIC_STORAGE_PREFIX, REBASE_ADMIN_REQUEST_ROLE, REBASE_ADMIN_ROLE, REBASE_SCHEMA, RELATION_BRAND, RELEVANCE_SORT_FIELD, RESERVED_BACKEND_PREFIXES, RESOURCE_GRAPH_VERSION, REST_TO_CANONICAL, RLS_IS_ANONYMOUS_SQL, RLS_IS_REQUEST_ROLE_SQL, RLS_JWT_SQL, RLS_ROLES_SQL, RLS_UID_SQL, RUNTIME_CONTRACT_VERSION, RebaseApiError, RebaseClientError, SCHEMA_VERSION_HEADER, SCOPE_TARGETS, SIMULATED_CONTEXT_HEADER, SIMULATE_API_KEY_ID_HEADER, SIMULATE_ROLE_HEADER, SIMULATE_USER_ID_HEADER, STORAGE_REFERENCE_SCHEME, TABLE_BRAND, TABLE_OPTION_KEYS, TablePatchError, UI_PREFERENCE_FIELD_KEYS, UI_PREFERENCE_TABLE_KEYS, VIEW_BRAND, adminRequestRoleFor, aggregateAlias, aggregateGroupKey, amendResourceKind, bucket, buildResourceGraph, canonicalSchemaPayload, col, columnDefFromWire, columnTypeLabel, compareStaticRoutes, computeSchemaVersion, database, declareCron, declareFunction, declareResource, declaredDataSources, declaredDatabaseExtensions, declaredDatabaseRls, declaredQueueConsumers, declaredResources, declaredRlsPolicyShape, declaredStorageSources, declaredSubscriptions, defineAuthTable, defineTable, defineView, describeJsonShape, describeScope, encodeRelationAggregateSort, envBasesForResource, findEnvSuffixCollision, findStorageSuffixCollision, formatSimulatedContext, getDataSourceCapabilities, hasAdminRole, hasFieldOperation, holdsAdminRole, intersectScopes, isAdminScope, isAnonymousUid, isAuthTableDef, isBranchAdmin, isBuiltInScope, isChannelBusInstance, isColumnBuilder, isContentHashedFileName, isDataPlaneScope, isFieldOperation, isJsonColumnType, isJsonField, isNumericColumnType, isPercentileFraction, isPolicyExpressionKind, isPolicyShorthand, isPublicStorageKey, isPublicStoragePath, isRedactedSecurityRule, isRelationAggregateSort, isRelationDef, isResourceHandle, isSQLAdmin, isSchemaAdmin, isSchemaEditingAdmin, isSqlTemplate, isStorageReference, isTableDef, isTablePatchList, isTemporalColumnType, isTenantClaimSource, isTenantMembershipSource, isTextColumnType, isTimeZoneName, isUiTablePreferences, isUnsupported, isValidAppHost, isValidEngine, isViewDef, joinConditions, json, knownScopes, matchStaticRoute, mergeUiTablePreferences, normalizeColumnAccess, normalizeStorage, normalizeValidation, parseAppAddress, parseByteSize, parseCaseFoldedFieldPath, parseEnvBoolean, parseFrameAncestor, parseRelationAggregateSort, parseScope, parseSimulatedContext, parseStorageReference, parseTablePatches, pgEnum, policy, queue, registerDataSourceCapabilities, registerResourceKind, rel, reservedPrefixFor, resetDeclaredQueueConsumers, resetDeclaredResources, resetDeclaredSubscriptions, resolveClientListLimit, resolveResourceRefs, resolveStorageReferences, resourceEnvSuffix, resourceId, resourceKeyOf, resourceKind, resourceKinds, resourceToDataSource, resourceToStorageSource, rewriteLegacyRlsFunctions, roleNameProblem, rulePatches, scopeAcceptsTarget, scopeGrants, scopeGrantsAny, scopeTargets, scopesBeyond, scopesForRoles, setQueueRuntime, setTopicRuntime, simulationHeaders, soleJoinCondition, sortKeyToString, sql, storageEnvSuffix, storageObjectPath, storageReference, storageReferencesForDownloadUrls, storageTargetOfDownloadUrl, storageTargetsInText, summarizeRoles, summarizeScopes, tablePatchProblems, toCanonicalOp, toDriverAggregate, toDriverAggregateGroup, topic, uiTablePreferencesProblems, unsupportedMethod, usesLegacyRlsFunctions, validateScopes, validateStaticRoute };
|
|
5557
5742
|
|
|
5558
5743
|
//# sourceMappingURL=index.es.js.map
|