@rebasepro/server 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.
- package/dist/{GCSStorageController-sCw2c4aA.js → GCSStorageController-B3p3aUX-.js} +5 -5
- package/dist/{GCSStorageController-sCw2c4aA.js.map → GCSStorageController-B3p3aUX-.js.map} +1 -1
- package/dist/{S3StorageController-DDAq8Kt5.js → S3StorageController-C9LjuMhL.js} +5 -5
- package/dist/{S3StorageController-DDAq8Kt5.js.map → S3StorageController-C9LjuMhL.js.map} +1 -1
- package/dist/{access-CSfmyM87.js → access-BxkEYQh1.js} +6 -6
- package/dist/{access-CSfmyM87.js.map → access-BxkEYQh1.js.map} +1 -1
- package/dist/{access-CCsVee6z.js → access-D1CTJSLK.js} +3 -1
- package/dist/access-D1CTJSLK.js.map +1 -0
- package/dist/api/errors.d.ts +4 -0
- package/dist/api/rest/api-generator.d.ts +8 -0
- package/dist/{auth-Blo1R8rc.js → auth-Bfwjg4Bg.js} +37 -13
- package/dist/auth-Bfwjg4Bg.js.map +1 -0
- package/dist/auth-secrets-BZUH9916.js +60 -0
- package/dist/auth-secrets-BZUH9916.js.map +1 -0
- package/dist/backend/create-backend.d.ts +6 -0
- package/dist/backend/options.d.ts +10 -0
- package/dist/backend/services.d.ts +9 -0
- package/dist/{backup-B-1oW6qX.js → backup-g2ohsDe0.js} +7 -7
- package/dist/{backup-B-1oW6qX.js.map → backup-g2ohsDe0.js.map} +1 -1
- package/dist/boot/bundle.d.ts +11 -1
- package/dist/boot/env.d.ts +5 -0
- package/dist/boot/security-headers.d.ts +15 -5
- package/dist/boot/static-routing.d.ts +58 -0
- package/dist/{branch-routes-0xhHXlGq.js → branch-routes-DtNtc0Vh.js} +3 -3
- package/dist/{branch-routes-0xhHXlGq.js.map → branch-routes-DtNtc0Vh.js.map} +1 -1
- package/dist/{contract-routes-WwMWHWS9.js → contract-routes-CZTlAP7p.js} +3 -3
- package/dist/{contract-routes-WwMWHWS9.js.map → contract-routes-CZTlAP7p.js.map} +1 -1
- package/dist/{cron-loader-BDN8plQK.js → cron-loader-BBP0kBIl.js} +2 -2
- package/dist/{cron-loader-BDN8plQK.js.map → cron-loader-BBP0kBIl.js.map} +1 -1
- package/dist/{cron-routes-Cqm5wQsK.js → cron-routes-Du03uJ7K.js} +5 -5
- package/dist/{cron-routes-Cqm5wQsK.js.map → cron-routes-Du03uJ7K.js.map} +1 -1
- package/dist/{cron-scheduler-DgrsqyQQ.js → cron-scheduler-CopTWKYB.js} +2 -2
- package/dist/{cron-scheduler-DgrsqyQQ.js.map → cron-scheduler-CopTWKYB.js.map} +1 -1
- package/dist/{cron-store-91cd9Qzv.js → cron-store-FGaZOdMf.js} +3 -3
- package/dist/{cron-store-91cd9Qzv.js.map → cron-store-FGaZOdMf.js.map} +1 -1
- package/dist/dist-C1vNURUy.js +19354 -0
- package/dist/dist-C1vNURUy.js.map +1 -0
- package/dist/{errors-DpTMfX77.js → errors-NVbAQU25.js} +5 -1
- package/dist/errors-NVbAQU25.js.map +1 -0
- package/dist/{filter-dialect-DAVl1Nsm.js → filter-dialect-XtPJOCbD.js} +2 -2
- package/dist/{filter-dialect-DAVl1Nsm.js.map → filter-dialect-XtPJOCbD.js.map} +1 -1
- package/dist/{function-loader-BeFbN1-A.js → function-loader-D3YEHF6E.js} +2 -2
- package/dist/{function-loader-BeFbN1-A.js.map → function-loader-D3YEHF6E.js.map} +1 -1
- package/dist/{function-routes-CIwLXsZF.js → function-routes-DNDFIa7t.js} +3 -3
- package/dist/{function-routes-CIwLXsZF.js.map → function-routes-DNDFIa7t.js.map} +1 -1
- package/dist/functions/index.d.ts +2 -0
- package/dist/functions/index.js +162 -1
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/rate-limit.d.ts +71 -0
- package/dist/{history-recorder-CNeqtTaR.js → history-recorder-C5RkbKS2.js} +3 -3
- package/dist/{history-recorder-CNeqtTaR.js.map → history-recorder-C5RkbKS2.js.map} +1 -1
- package/dist/{history-store-DseUt_dm.js → history-store-DzrJeEKv.js} +2 -2
- package/dist/{history-store-DseUt_dm.js.map → history-store-DzrJeEKv.js.map} +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +1242 -214
- package/dist/index.es.js.map +1 -1
- package/dist/{internal-tables-CHFJHH7N.js → internal-tables-XxM_NdR_.js} +2 -2
- package/dist/{internal-tables-CHFJHH7N.js.map → internal-tables-XxM_NdR_.js.map} +1 -1
- package/dist/{jobs-WCyKVsUf.js → jobs-CFUwQTao.js} +3 -3
- package/dist/{jobs-WCyKVsUf.js.map → jobs-CFUwQTao.js.map} +1 -1
- package/dist/{jwt-JtQiewBW.js → jwt-CqhXs8Iz.js} +3 -3
- package/dist/{jwt-JtQiewBW.js.map → jwt-CqhXs8Iz.js.map} +1 -1
- package/dist/{keys-BTPoSvUs.js → keys-Btt6ZNqF.js} +2 -2
- package/dist/{keys-BTPoSvUs.js.map → keys-Btt6ZNqF.js.map} +1 -1
- package/dist/{load-schema-CtyLeq-H.js → load-schema-B4Nv1mwq.js} +33 -40
- package/dist/load-schema-B4Nv1mwq.js.map +1 -0
- package/dist/{logs-routes-BT4af1Or.js → logs-routes-C3CLYP-n.js} +3 -3
- package/dist/{logs-routes-BT4af1Or.js.map → logs-routes-C3CLYP-n.js.map} +1 -1
- package/dist/{offline-D_wKJcO3-RV6C9HnX.js → offline-ET6xI1ZO-BQpLQ7wh.js} +124 -7
- package/dist/offline-ET6xI1ZO-BQpLQ7wh.js.map +1 -0
- package/dist/{offline-store-DtmBwmKE-B17N4609.js → offline-store-DtmBwmKE-C9ba2NJv.js} +3 -3
- package/dist/{offline-store-DtmBwmKE-B17N4609.js.map → offline-store-DtmBwmKE-C9ba2NJv.js.map} +1 -1
- package/dist/{openapi-generator-mn6hsEmw.js → openapi-generator-CAhJiwBm.js} +4 -4
- package/dist/{openapi-generator-mn6hsEmw.js.map → openapi-generator-CAhJiwBm.js.map} +1 -1
- package/dist/{project-root-qDQzmsUD.js → project-root-CIrVZi-r.js} +2 -2
- package/dist/{project-root-qDQzmsUD.js.map → project-root-CIrVZi-r.js.map} +1 -1
- package/dist/{proxy-D18_bcQI.js → proxy-clweqa43.js} +3 -3
- package/dist/{proxy-D18_bcQI.js.map → proxy-clweqa43.js.map} +1 -1
- package/dist/push/push-options.d.ts +26 -0
- package/dist/push/push-routes.d.ts +30 -0
- package/dist/push/push-service.d.ts +13 -0
- package/dist/push/push-store.d.ts +45 -0
- package/dist/push/set-up.d.ts +25 -0
- package/dist/push/subscription-input.d.ts +26 -0
- package/dist/push/vapid-config.d.ts +35 -0
- package/dist/push/web-push-crypto.d.ts +44 -0
- package/dist/push/web-push-sender.d.ts +10 -0
- package/dist/{query-parser-CkKSbs1s.js → query-parser-Cd70kZO8.js} +6 -6
- package/dist/{query-parser-CkKSbs1s.js.map → query-parser-Cd70kZO8.js.map} +1 -1
- package/dist/{request-timeout-CpOgfQPK.js → request-timeout-cC3HT1Pf.js} +3 -3
- package/dist/{request-timeout-CpOgfQPK.js.map → request-timeout-cC3HT1Pf.js.map} +1 -1
- package/dist/{rls-simulator-routes-BxzeNXmI.js → rls-simulator-routes-DI2sYaQt.js} +4 -4
- package/dist/{rls-simulator-routes-BxzeNXmI.js.map → rls-simulator-routes-DI2sYaQt.js.map} +1 -1
- package/dist/{schema-editor-routes-mPCyks4X.js → schema-editor-routes-DEGwyQmx.js} +5 -5
- package/dist/{schema-editor-routes-mPCyks4X.js.map → schema-editor-routes-DEGwyQmx.js.map} +1 -1
- package/dist/{schema-tables-D4MEBZFi.js → schema-tables-DKFg6vMV.js} +4 -4
- package/dist/{schema-tables-D4MEBZFi.js.map → schema-tables-DKFg6vMV.js.map} +1 -1
- package/dist/{schema-tables-routes-D3iLb5XU.js → schema-tables-routes-BfsNG4c4.js} +5 -5
- package/dist/{schema-tables-routes-D3iLb5XU.js.map → schema-tables-routes-BfsNG4c4.js.map} +1 -1
- package/dist/{securityRuleToConditions-DD40f3ml.js → securityRuleToConditions-Bk5zRSoa.js} +2 -2
- package/dist/{securityRuleToConditions-DD40f3ml.js.map → securityRuleToConditions-Bk5zRSoa.js.map} +1 -1
- package/dist/{selection-hgC1szl6.js → selection-BOnbJvXD.js} +2 -2
- package/dist/{selection-hgC1szl6.js.map → selection-BOnbJvXD.js.map} +1 -1
- package/dist/serve-spa.d.ts +12 -0
- package/dist/{soft-delete-params-DDRmxT2z.js → soft-delete-params-Dhn0qKFv.js} +2 -2
- package/dist/{soft-delete-params-DDRmxT2z.js.map → soft-delete-params-Dhn0qKFv.js.map} +1 -1
- package/dist/{sql-export-routes-BKmQZ3xh.js → sql-export-routes-B3oqb1Jw.js} +3 -3
- package/dist/{sql-export-routes-BKmQZ3xh.js.map → sql-export-routes-B3oqb1Jw.js.map} +1 -1
- package/dist/{src-DLIb1O9l.js → src-CNZB3fuE.js} +192 -3
- package/dist/src-CNZB3fuE.js.map +1 -0
- package/dist/{table-source-editor-xvccIOH1.js → table-source-editor-D_zNDhEU.js} +3 -3
- package/dist/{table-source-editor-xvccIOH1.js.map → table-source-editor-D_zNDhEU.js.map} +1 -1
- package/dist/{upload-validation-B-psYLaN.js → upload-validation-BnIwo78L.js} +2 -2
- package/dist/{upload-validation-B-psYLaN.js.map → upload-validation-BnIwo78L.js.map} +1 -1
- package/package.json +5 -5
- package/dist/access-CCsVee6z.js.map +0 -1
- package/dist/auth-Blo1R8rc.js.map +0 -1
- package/dist/dist-CDIqWaSr.js +0 -19354
- package/dist/dist-CDIqWaSr.js.map +0 -1
- package/dist/errors-DpTMfX77.js.map +0 -1
- package/dist/load-schema-CtyLeq-H.js.map +0 -1
- package/dist/offline-D_wKJcO3-RV6C9HnX.js.map +0 -1
- package/dist/src-DLIb1O9l.js.map +0 -1
|
@@ -2562,6 +2562,191 @@ function isValidAppHost(host) {
|
|
|
2562
2562
|
if (!labels.every((part) => label.test(part))) return false;
|
|
2563
2563
|
return !/^[0-9]+$/.test(labels[labels.length - 1]);
|
|
2564
2564
|
}
|
|
2565
|
+
/** Whether `path` is `parent`, or a path beneath it, at segment boundaries. */
|
|
2566
|
+
function isPathUnder(path, parent) {
|
|
2567
|
+
if (parent === "/") return true;
|
|
2568
|
+
return path === parent || path.startsWith(`${parent}/`);
|
|
2569
|
+
}
|
|
2570
|
+
/**
|
|
2571
|
+
* The characters a route's path may hold: unreserved and sub-delimiters, `:`,
|
|
2572
|
+
* `@` and `/`. A request path arrives percent-encoded and is matched as it
|
|
2573
|
+
* arrives, so a route written with a space, a `%` or a non-ASCII letter could
|
|
2574
|
+
* never match anything.
|
|
2575
|
+
*/
|
|
2576
|
+
var ROUTE_PATH_CHARACTERS = /^\/[A-Za-z0-9\-._~!$&'()+,;=:@/]*$/;
|
|
2577
|
+
/** A function's name as it appears in `/api/functions/<name>`: one path segment. */
|
|
2578
|
+
var FUNCTION_NAME = /^[A-Za-z0-9_-][A-Za-z0-9_.-]*$/;
|
|
2579
|
+
/**
|
|
2580
|
+
* Validate one of a static app's routes against the app's own path (the path
|
|
2581
|
+
* part of its address).
|
|
2582
|
+
*
|
|
2583
|
+
* Shared for the reason {@link parseAppAddress} is: the CLI checks a route
|
|
2584
|
+
* while `rebase.json` is edited, and the runtime checks it again when it loads
|
|
2585
|
+
* a bundle, which any program could have written. The rules:
|
|
2586
|
+
*
|
|
2587
|
+
* - `path` is absolute, with no `..`, empty segment or trailing slash, and
|
|
2588
|
+
* ends in `/*` or holds no `*` at all.
|
|
2589
|
+
* - No segment starts with a dot: `/.well-known` is the backend's, and a
|
|
2590
|
+
* static app serves no dot-file.
|
|
2591
|
+
* - It is not under a prefix the backend owns ({@link RESERVED_BACKEND_PREFIXES}),
|
|
2592
|
+
* because the API answers there on every hostname.
|
|
2593
|
+
* - It is inside the app's path, since the app is what answers there, and a
|
|
2594
|
+
* wildcard does not cover the whole app, which would leave nothing of the
|
|
2595
|
+
* build to serve.
|
|
2596
|
+
* - `function` is one path segment, as a function's file name is.
|
|
2597
|
+
*/
|
|
2598
|
+
function validateStaticRoute(value, appPath) {
|
|
2599
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return {
|
|
2600
|
+
ok: false,
|
|
2601
|
+
reason: "must be an object like { \"path\": \"/sitemap.xml\", \"function\": \"sitemap\" }"
|
|
2602
|
+
};
|
|
2603
|
+
const { path, function: fn } = value;
|
|
2604
|
+
if (typeof path !== "string" || !path.startsWith("/")) return {
|
|
2605
|
+
ok: false,
|
|
2606
|
+
field: "path",
|
|
2607
|
+
reason: "must be an absolute path like \"/sitemap.xml\" or \"/blog/*\""
|
|
2608
|
+
};
|
|
2609
|
+
const wildcard = path.endsWith("/*");
|
|
2610
|
+
const prefix = wildcard ? path.slice(0, -2) || "/" : path;
|
|
2611
|
+
if (prefix.includes("*")) return {
|
|
2612
|
+
ok: false,
|
|
2613
|
+
field: "path",
|
|
2614
|
+
reason: "may end in \"/*\" to match everything beneath a path, and holds no other \"*\""
|
|
2615
|
+
};
|
|
2616
|
+
if (!ROUTE_PATH_CHARACTERS.test(prefix)) return {
|
|
2617
|
+
ok: false,
|
|
2618
|
+
field: "path",
|
|
2619
|
+
reason: "may hold letters, digits, \"/\" and - . _ ~ ! $ & ' ( ) + , ; = : @ only — no spaces, \"?\", \"#\" or \"%\""
|
|
2620
|
+
};
|
|
2621
|
+
if (prefix.includes("//") || prefix !== "/" && prefix.endsWith("/")) return {
|
|
2622
|
+
ok: false,
|
|
2623
|
+
field: "path",
|
|
2624
|
+
reason: "must have no empty segment and no trailing slash"
|
|
2625
|
+
};
|
|
2626
|
+
if (prefix.split("/").some((segment) => segment.startsWith("."))) return {
|
|
2627
|
+
ok: false,
|
|
2628
|
+
field: "path",
|
|
2629
|
+
reason: "must have no segment starting with \".\" — the backend serves /.well-known, and an app serves no dot-file"
|
|
2630
|
+
};
|
|
2631
|
+
const reserved = reservedPrefixFor(prefix);
|
|
2632
|
+
if (reserved) return {
|
|
2633
|
+
ok: false,
|
|
2634
|
+
field: "path",
|
|
2635
|
+
reason: `cannot be "${reserved}" or nest under it — the backend serves that path on every hostname`
|
|
2636
|
+
};
|
|
2637
|
+
if (!isPathUnder(prefix, appPath)) return {
|
|
2638
|
+
ok: false,
|
|
2639
|
+
field: "path",
|
|
2640
|
+
reason: `must be inside this app's path, "${appPath}" — the app is what answers there`
|
|
2641
|
+
};
|
|
2642
|
+
if (wildcard && prefix === appPath) return {
|
|
2643
|
+
ok: false,
|
|
2644
|
+
field: "path",
|
|
2645
|
+
reason: `covers all of this app's path, "${appPath}", so nothing in its build would ever be served`
|
|
2646
|
+
};
|
|
2647
|
+
if (typeof fn !== "string" || !FUNCTION_NAME.test(fn)) return {
|
|
2648
|
+
ok: false,
|
|
2649
|
+
field: "function",
|
|
2650
|
+
reason: "must name a custom function, as its file is named: \"sitemap\" for functions/sitemap.ts"
|
|
2651
|
+
};
|
|
2652
|
+
return {
|
|
2653
|
+
ok: true,
|
|
2654
|
+
route: {
|
|
2655
|
+
path,
|
|
2656
|
+
function: fn
|
|
2657
|
+
}
|
|
2658
|
+
};
|
|
2659
|
+
}
|
|
2660
|
+
/**
|
|
2661
|
+
* Whether `route` answers `requestPath`, and with what path under its
|
|
2662
|
+
* function: `""` for the route's own path, `/rest` beneath a wildcard.
|
|
2663
|
+
* `undefined` when it does not match.
|
|
2664
|
+
*
|
|
2665
|
+
* Compared as the path arrives, percent-encoding and all, and at segment
|
|
2666
|
+
* boundaries: `/blog/*` matches `/blog` and `/blog/x`, not `/blogroll`.
|
|
2667
|
+
*/
|
|
2668
|
+
function matchStaticRoute(route, requestPath) {
|
|
2669
|
+
if (!route.path.endsWith("/*")) return requestPath === route.path ? "" : void 0;
|
|
2670
|
+
const prefix = route.path.slice(0, -2);
|
|
2671
|
+
if (prefix === "") return requestPath === "/" ? "" : requestPath;
|
|
2672
|
+
if (requestPath === prefix) return "";
|
|
2673
|
+
return requestPath.startsWith(`${prefix}/`) ? requestPath.slice(prefix.length) : void 0;
|
|
2674
|
+
}
|
|
2675
|
+
/**
|
|
2676
|
+
* Order routes so the first match is the most specific: exact paths first,
|
|
2677
|
+
* then wildcards by the length of their prefix, longest first. Declaration
|
|
2678
|
+
* order breaks ties, which only equal wildcards can have.
|
|
2679
|
+
*/
|
|
2680
|
+
function compareStaticRoutes(a, b) {
|
|
2681
|
+
const aWild = a.path.endsWith("/*");
|
|
2682
|
+
if (aWild !== b.path.endsWith("/*")) return aWild ? 1 : -1;
|
|
2683
|
+
return aWild ? b.path.length - a.path.length : 0;
|
|
2684
|
+
}
|
|
2685
|
+
/** Hosts plain `http://` is accepted for: a CMS running on the developer's own machine. */
|
|
2686
|
+
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set([
|
|
2687
|
+
"localhost",
|
|
2688
|
+
"127.0.0.1",
|
|
2689
|
+
"[::1]"
|
|
2690
|
+
]);
|
|
2691
|
+
/**
|
|
2692
|
+
* Validate one entry of a static app's `frameAncestors`: a single origin that
|
|
2693
|
+
* may frame the app.
|
|
2694
|
+
*
|
|
2695
|
+
* The value ends up inside a `Content-Security-Policy` header, so it is held
|
|
2696
|
+
* to the exact serialisation of an origin — `new URL(value).origin` has to
|
|
2697
|
+
* give it back unchanged. That leaves nothing that could close the directive
|
|
2698
|
+
* or open another one, and turns every near miss (a trailing slash, a
|
|
2699
|
+
* capital, a default port, a path) into a refusal that names the fix.
|
|
2700
|
+
*
|
|
2701
|
+
* `https://` with a public hostname, or `localhost`; plain `http://` only for
|
|
2702
|
+
* a loopback host. Never a wildcard or a keyword: this is a list of the
|
|
2703
|
+
* origins an operator chose, and `'self'` is always on it.
|
|
2704
|
+
*/
|
|
2705
|
+
function parseFrameAncestor(value) {
|
|
2706
|
+
const example = "must be an origin like \"https://admin.example.com\"";
|
|
2707
|
+
if (typeof value !== "string" || value === "") return {
|
|
2708
|
+
ok: false,
|
|
2709
|
+
reason: example
|
|
2710
|
+
};
|
|
2711
|
+
if (value.includes("*")) return {
|
|
2712
|
+
ok: false,
|
|
2713
|
+
reason: "must name one origin — wildcards are not accepted, so list each origin that may frame this app"
|
|
2714
|
+
};
|
|
2715
|
+
if (value.startsWith("'")) return {
|
|
2716
|
+
ok: false,
|
|
2717
|
+
reason: `${example} — keywords are not accepted, and 'self' is always allowed`
|
|
2718
|
+
};
|
|
2719
|
+
let url;
|
|
2720
|
+
try {
|
|
2721
|
+
url = new URL(value);
|
|
2722
|
+
} catch {
|
|
2723
|
+
return {
|
|
2724
|
+
ok: false,
|
|
2725
|
+
reason: example
|
|
2726
|
+
};
|
|
2727
|
+
}
|
|
2728
|
+
if (url.protocol !== "https:" && url.protocol !== "http:") return {
|
|
2729
|
+
ok: false,
|
|
2730
|
+
reason: example
|
|
2731
|
+
};
|
|
2732
|
+
const loopback = LOOPBACK_HOSTS.has(url.hostname);
|
|
2733
|
+
if (url.protocol === "http:" && !loopback) return {
|
|
2734
|
+
ok: false,
|
|
2735
|
+
reason: `must use https — plain http is accepted for localhost only: "https://${url.host}"`
|
|
2736
|
+
};
|
|
2737
|
+
if (!loopback && !isValidAppHost(url.hostname)) return {
|
|
2738
|
+
ok: false,
|
|
2739
|
+
reason: `names "${url.hostname}", which is not a public hostname`
|
|
2740
|
+
};
|
|
2741
|
+
if (url.origin !== value) return {
|
|
2742
|
+
ok: false,
|
|
2743
|
+
reason: `must be the origin alone — scheme, hostname and an optional port, lowercase, with nothing after it: "${url.origin}"`
|
|
2744
|
+
};
|
|
2745
|
+
return {
|
|
2746
|
+
ok: true,
|
|
2747
|
+
origin: value
|
|
2748
|
+
};
|
|
2749
|
+
}
|
|
2565
2750
|
/**
|
|
2566
2751
|
* What to do about a project on the `config/collections` layout — the words
|
|
2567
2752
|
* every refusal of that layout ends with.
|
|
@@ -5583,6 +5768,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
5583
5768
|
col: () => col,
|
|
5584
5769
|
columnDefFromWire: () => columnDefFromWire,
|
|
5585
5770
|
columnTypeLabel: () => columnTypeLabel,
|
|
5771
|
+
compareStaticRoutes: () => compareStaticRoutes,
|
|
5586
5772
|
computeSchemaVersion: () => computeSchemaVersion,
|
|
5587
5773
|
database: () => database,
|
|
5588
5774
|
declareCron: () => declareCron,
|
|
@@ -5653,6 +5839,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
5653
5839
|
joinConditions: () => joinConditions,
|
|
5654
5840
|
json: () => json$1,
|
|
5655
5841
|
knownScopes: () => knownScopes,
|
|
5842
|
+
matchStaticRoute: () => matchStaticRoute,
|
|
5656
5843
|
mergeUiTablePreferences: () => mergeUiTablePreferences,
|
|
5657
5844
|
normalizeColumnAccess: () => normalizeColumnAccess,
|
|
5658
5845
|
normalizeStorage: () => normalizeStorage,
|
|
@@ -5661,6 +5848,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
5661
5848
|
parseByteSize: () => parseByteSize,
|
|
5662
5849
|
parseCaseFoldedFieldPath: () => parseCaseFoldedFieldPath,
|
|
5663
5850
|
parseEnvBoolean: () => parseEnvBoolean,
|
|
5851
|
+
parseFrameAncestor: () => parseFrameAncestor,
|
|
5664
5852
|
parseRelationAggregateSort: () => parseRelationAggregateSort,
|
|
5665
5853
|
parseScope: () => parseScope,
|
|
5666
5854
|
parseSimulatedContext: () => parseSimulatedContext,
|
|
@@ -5717,9 +5905,10 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
5717
5905
|
uiTablePreferencesProblems: () => uiTablePreferencesProblems,
|
|
5718
5906
|
unsupportedMethod: () => unsupportedMethod,
|
|
5719
5907
|
usesLegacyRlsFunctions: () => usesLegacyRlsFunctions,
|
|
5720
|
-
validateScopes: () => validateScopes
|
|
5908
|
+
validateScopes: () => validateScopes,
|
|
5909
|
+
validateStaticRoute: () => validateStaticRoute
|
|
5721
5910
|
});
|
|
5722
5911
|
//#endregion
|
|
5723
|
-
export {
|
|
5912
|
+
export { compareStaticRoutes as $, getDataSourceCapabilities as $t, isTimeZoneName as A, parseRelationAggregateSort as An, SIMULATE_API_KEY_ID_HEADER as At, resolveClientListLimit as B, __toESM as Bn, resourceToDataSource as Bt, isTextColumnType as C, ALL_WHERE_FILTER_OPS as Cn, scopesForRoles as Ct, aggregateAlias as D, REST_TO_CANONICAL as Dn, AUTH_FLOW_HEADER as Dt, FIELDLESS_AGGREGATES as E, NULL_OPS as En, validateScopes as Et, isPublicStorageKey as F, isUnsupported as Fn, parseEnvBoolean as Ft, isUiTablePreferences as G, storageEnvSuffix as Gt, FIELD_OPERATORS as H, setQueueRuntime as Ht, isPublicStoragePath as I, unsupportedMethod as In, declareCron as It, MCP_APP_MODULES as J, resourceEnvSuffix as Jt, mergeUiTablePreferences as K, DEFAULT_RESOURCE_KEY as Kt, storageObjectPath as L, __commonJSMin as Ln, declaredQueueConsumers as Lt, toDriverAggregateGroup as M, toCanonicalOp as Mn, SIMULATE_USER_ID_HEADER as Mt, storageTargetsInText as N, RebaseApiError as Nn, formatSimulatedContext as Nt, aggregateGroupKey as O, isRelationAggregateSort as On, IMPERSONATE_HEADER as Ot, PUBLIC_STORAGE_PREFIX as P, RebaseClientError as Pn, simulationHeaders as Pt, SCHEMA_VERSION_HEADER as Q, DEFAULT_DATA_SOURCE_KEY as Qt, ListLimitError as R, __exportAll as Rn, declaredRlsPolicyShape as Rt, isTemporalColumnType as S, JUNCTION_PIVOT_KEY as Sn, scopesBeyond as St, AGGREGATE_GROUP_TRANSFORMS as T, LIST_OPS as Tn, summarizeScopes as Tt, hasFieldOperation as U, setTopicRuntime as Ut, BATCH_REF_KEY as V, resourceToStorageSource as Vt, isFieldOperation as W, DEFAULT_STORAGE_SOURCE_KEY as Wt, isContentHashedFileName as X, resourceKind as Xt, computeSchemaVersion as Y, resourceKeyOf as Yt, LEGACY_LAYOUT_REMEDY as Z, resourceKinds as Zt, sql as _, isAnonymousUid as _n, parseScope as _t, defineAuthTable as a, isTenantClaimSource as an, ADMIN_ROLE as at, columnTypeLabel as b, policy as bn, scopeGrantsAny as bt, isAuthTableDef as c, REBASE_ADMIN_ROLE as cn, EMPTY_ACCESS_MODEL as ct, isRelationDef as d, RLS_JWT_SQL as dn, hasAdminRole as dt, DEFAULT_COMMIT_PATHS as en, isValidAppHost as et, rel as f, RLS_ROLES_SQL as fn, intersectScopes as ft, pgEnum as g, ANONYMOUS_USER_IDS as gn, knownScopes as gt, isColumnBuilder as h, ANONYMOUS_USER_ID as hn, isDataPlaneScope as ht, parseTablePatches as i, DEFAULT_TENANT_BYPASS_ROLES as in, validateStaticRoute as it, toDriverAggregate as j, sortKeyToString as jn, SIMULATE_ROLE_HEADER as jt, isPercentileFraction as k, parseCaseFoldedFieldPath as kn, SIMULATED_CONTEXT_HEADER as kt, isTableDef as l, RLS_IS_ANONYMOUS_SQL as ln, KEY_MANAGEMENT_SCOPES as lt, col as m, rewriteLegacyRlsFunctions as mn, isBuiltInScope as mt, TablePatchError as n, isSQLAdmin as nn, parseFrameAncestor as nt, defineTable as o, isRedactedSecurityRule as on, ADMIN_SCOPES as ot, ColumnBuilder as p, RLS_UID_SQL as pn, isAdminScope as pt, uiTablePreferencesProblems as q, buildResourceGraph as qt, columnDefFromWire as r, isSchemaEditingAdmin as rn, reservedPrefixFor as rt, defineView as s, REBASE_ADMIN_REQUEST_ROLE as sn, BUILT_IN_SCOPES as st, src_exports as t, isBranchAdmin as tn, matchStaticRoute as tt, isViewDef as u, RLS_IS_REQUEST_ROLE_SQL as un, SCOPE_TARGETS as ut, describeJsonShape as v, isPolicyExpressionKind as vn, roleNameProblem as vt, AGGREGATE_FUNCTIONS as w, CANONICAL_TO_REST as wn, summarizeRoles as wt, isNumericColumnType as x, INCLUDE_COUNT_KEY as xn, scopeTargets as xt, json$1 as y, isPolicyShorthand as yn, scopeGrants as yt, MAX_LIST_LIMIT as z, __require as zn, declaredSubscriptions as zt };
|
|
5724
5913
|
|
|
5725
|
-
//# sourceMappingURL=src-
|
|
5914
|
+
//# sourceMappingURL=src-CNZB3fuE.js.map
|