@rebasepro/server 0.31.0 → 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.
Files changed (117) hide show
  1. package/dist/{GCSStorageController-sCw2c4aA.js → GCSStorageController-B3p3aUX-.js} +5 -5
  2. package/dist/{GCSStorageController-sCw2c4aA.js.map → GCSStorageController-B3p3aUX-.js.map} +1 -1
  3. package/dist/{S3StorageController-DDAq8Kt5.js → S3StorageController-C9LjuMhL.js} +5 -5
  4. package/dist/{S3StorageController-DDAq8Kt5.js.map → S3StorageController-C9LjuMhL.js.map} +1 -1
  5. package/dist/{access-Dtu87BMj.js → access-BxkEYQh1.js} +5 -5
  6. package/dist/{access-Dtu87BMj.js.map → access-BxkEYQh1.js.map} +1 -1
  7. package/dist/api/errors.d.ts +4 -0
  8. package/dist/api/rest/api-generator.d.ts +8 -0
  9. package/dist/{auth-BOz84vIr.js → auth-Bfwjg4Bg.js} +37 -13
  10. package/dist/auth-Bfwjg4Bg.js.map +1 -0
  11. package/dist/backend/create-backend.d.ts +6 -0
  12. package/dist/backend/options.d.ts +10 -0
  13. package/dist/backend/services.d.ts +9 -0
  14. package/dist/{backup-B-1oW6qX.js → backup-g2ohsDe0.js} +7 -7
  15. package/dist/{backup-B-1oW6qX.js.map → backup-g2ohsDe0.js.map} +1 -1
  16. package/dist/boot/bundle.d.ts +11 -1
  17. package/dist/boot/env.d.ts +5 -0
  18. package/dist/boot/security-headers.d.ts +15 -5
  19. package/dist/boot/static-routing.d.ts +58 -0
  20. package/dist/{branch-routes-0xhHXlGq.js → branch-routes-DtNtc0Vh.js} +3 -3
  21. package/dist/{branch-routes-0xhHXlGq.js.map → branch-routes-DtNtc0Vh.js.map} +1 -1
  22. package/dist/{contract-routes-o5oqNhfc.js → contract-routes-CZTlAP7p.js} +3 -3
  23. package/dist/{contract-routes-o5oqNhfc.js.map → contract-routes-CZTlAP7p.js.map} +1 -1
  24. package/dist/{cron-loader-BDN8plQK.js → cron-loader-BBP0kBIl.js} +2 -2
  25. package/dist/{cron-loader-BDN8plQK.js.map → cron-loader-BBP0kBIl.js.map} +1 -1
  26. package/dist/{cron-routes-BOu-bY7I.js → cron-routes-Du03uJ7K.js} +5 -5
  27. package/dist/{cron-routes-BOu-bY7I.js.map → cron-routes-Du03uJ7K.js.map} +1 -1
  28. package/dist/{cron-scheduler-DgrsqyQQ.js → cron-scheduler-CopTWKYB.js} +2 -2
  29. package/dist/{cron-scheduler-DgrsqyQQ.js.map → cron-scheduler-CopTWKYB.js.map} +1 -1
  30. package/dist/{cron-store-91cd9Qzv.js → cron-store-FGaZOdMf.js} +3 -3
  31. package/dist/{cron-store-91cd9Qzv.js.map → cron-store-FGaZOdMf.js.map} +1 -1
  32. package/dist/dist-C1vNURUy.js +19354 -0
  33. package/dist/dist-C1vNURUy.js.map +1 -0
  34. package/dist/{errors-DpTMfX77.js → errors-NVbAQU25.js} +5 -1
  35. package/dist/errors-NVbAQU25.js.map +1 -0
  36. package/dist/{filter-dialect-DAVl1Nsm.js → filter-dialect-XtPJOCbD.js} +2 -2
  37. package/dist/{filter-dialect-DAVl1Nsm.js.map → filter-dialect-XtPJOCbD.js.map} +1 -1
  38. package/dist/{function-loader-BeFbN1-A.js → function-loader-D3YEHF6E.js} +2 -2
  39. package/dist/{function-loader-BeFbN1-A.js.map → function-loader-D3YEHF6E.js.map} +1 -1
  40. package/dist/{function-routes-CIwLXsZF.js → function-routes-DNDFIa7t.js} +3 -3
  41. package/dist/{function-routes-CIwLXsZF.js.map → function-routes-DNDFIa7t.js.map} +1 -1
  42. package/dist/functions/index.d.ts +2 -0
  43. package/dist/functions/index.js +162 -1
  44. package/dist/functions/index.js.map +1 -1
  45. package/dist/functions/rate-limit.d.ts +71 -0
  46. package/dist/{history-recorder-CNeqtTaR.js → history-recorder-C5RkbKS2.js} +3 -3
  47. package/dist/{history-recorder-CNeqtTaR.js.map → history-recorder-C5RkbKS2.js.map} +1 -1
  48. package/dist/{history-store-DseUt_dm.js → history-store-DzrJeEKv.js} +2 -2
  49. package/dist/{history-store-DseUt_dm.js.map → history-store-DzrJeEKv.js.map} +1 -1
  50. package/dist/index.d.ts +6 -0
  51. package/dist/index.es.js +1241 -213
  52. package/dist/index.es.js.map +1 -1
  53. package/dist/{internal-tables-CHFJHH7N.js → internal-tables-XxM_NdR_.js} +2 -2
  54. package/dist/{internal-tables-CHFJHH7N.js.map → internal-tables-XxM_NdR_.js.map} +1 -1
  55. package/dist/{jobs-WCyKVsUf.js → jobs-CFUwQTao.js} +3 -3
  56. package/dist/{jobs-WCyKVsUf.js.map → jobs-CFUwQTao.js.map} +1 -1
  57. package/dist/{jwt-JtQiewBW.js → jwt-CqhXs8Iz.js} +3 -3
  58. package/dist/{jwt-JtQiewBW.js.map → jwt-CqhXs8Iz.js.map} +1 -1
  59. package/dist/{keys-BTPoSvUs.js → keys-Btt6ZNqF.js} +2 -2
  60. package/dist/{keys-BTPoSvUs.js.map → keys-Btt6ZNqF.js.map} +1 -1
  61. package/dist/{load-schema-Cv5XLVjW.js → load-schema-B4Nv1mwq.js} +32 -4
  62. package/dist/{load-schema-Cv5XLVjW.js.map → load-schema-B4Nv1mwq.js.map} +1 -1
  63. package/dist/{logs-routes-BT4af1Or.js → logs-routes-C3CLYP-n.js} +3 -3
  64. package/dist/{logs-routes-BT4af1Or.js.map → logs-routes-C3CLYP-n.js.map} +1 -1
  65. package/dist/{offline-D_wKJcO3-RV6C9HnX.js → offline-ET6xI1ZO-BQpLQ7wh.js} +124 -7
  66. package/dist/offline-ET6xI1ZO-BQpLQ7wh.js.map +1 -0
  67. package/dist/{offline-store-DtmBwmKE-B17N4609.js → offline-store-DtmBwmKE-C9ba2NJv.js} +3 -3
  68. package/dist/{offline-store-DtmBwmKE-B17N4609.js.map → offline-store-DtmBwmKE-C9ba2NJv.js.map} +1 -1
  69. package/dist/{openapi-generator-CoAFACMx.js → openapi-generator-CAhJiwBm.js} +3 -3
  70. package/dist/{openapi-generator-CoAFACMx.js.map → openapi-generator-CAhJiwBm.js.map} +1 -1
  71. package/dist/{project-root-qDQzmsUD.js → project-root-CIrVZi-r.js} +2 -2
  72. package/dist/{project-root-qDQzmsUD.js.map → project-root-CIrVZi-r.js.map} +1 -1
  73. package/dist/{proxy-D18_bcQI.js → proxy-clweqa43.js} +3 -3
  74. package/dist/{proxy-D18_bcQI.js.map → proxy-clweqa43.js.map} +1 -1
  75. package/dist/push/push-options.d.ts +26 -0
  76. package/dist/push/push-routes.d.ts +30 -0
  77. package/dist/push/push-service.d.ts +13 -0
  78. package/dist/push/push-store.d.ts +45 -0
  79. package/dist/push/set-up.d.ts +25 -0
  80. package/dist/push/subscription-input.d.ts +26 -0
  81. package/dist/push/vapid-config.d.ts +35 -0
  82. package/dist/push/web-push-crypto.d.ts +44 -0
  83. package/dist/push/web-push-sender.d.ts +10 -0
  84. package/dist/{query-parser-D9Uf8aha.js → query-parser-Cd70kZO8.js} +5 -5
  85. package/dist/{query-parser-D9Uf8aha.js.map → query-parser-Cd70kZO8.js.map} +1 -1
  86. package/dist/{request-timeout-CpOgfQPK.js → request-timeout-cC3HT1Pf.js} +3 -3
  87. package/dist/{request-timeout-CpOgfQPK.js.map → request-timeout-cC3HT1Pf.js.map} +1 -1
  88. package/dist/{rls-simulator-routes-BvH6wI64.js → rls-simulator-routes-DI2sYaQt.js} +4 -4
  89. package/dist/{rls-simulator-routes-BvH6wI64.js.map → rls-simulator-routes-DI2sYaQt.js.map} +1 -1
  90. package/dist/{schema-editor-routes-CzITcAgt.js → schema-editor-routes-DEGwyQmx.js} +5 -5
  91. package/dist/{schema-editor-routes-CzITcAgt.js.map → schema-editor-routes-DEGwyQmx.js.map} +1 -1
  92. package/dist/{schema-tables-lJHnyqj4.js → schema-tables-DKFg6vMV.js} +3 -3
  93. package/dist/{schema-tables-lJHnyqj4.js.map → schema-tables-DKFg6vMV.js.map} +1 -1
  94. package/dist/{schema-tables-routes-Uss-ljon.js → schema-tables-routes-BfsNG4c4.js} +5 -5
  95. package/dist/{schema-tables-routes-Uss-ljon.js.map → schema-tables-routes-BfsNG4c4.js.map} +1 -1
  96. package/dist/{securityRuleToConditions-DD40f3ml.js → securityRuleToConditions-Bk5zRSoa.js} +2 -2
  97. package/dist/{securityRuleToConditions-DD40f3ml.js.map → securityRuleToConditions-Bk5zRSoa.js.map} +1 -1
  98. package/dist/{selection-hgC1szl6.js → selection-BOnbJvXD.js} +2 -2
  99. package/dist/{selection-hgC1szl6.js.map → selection-BOnbJvXD.js.map} +1 -1
  100. package/dist/serve-spa.d.ts +12 -0
  101. package/dist/{soft-delete-params-DDRmxT2z.js → soft-delete-params-Dhn0qKFv.js} +2 -2
  102. package/dist/{soft-delete-params-DDRmxT2z.js.map → soft-delete-params-Dhn0qKFv.js.map} +1 -1
  103. package/dist/{sql-export-routes-BKmQZ3xh.js → sql-export-routes-B3oqb1Jw.js} +3 -3
  104. package/dist/{sql-export-routes-BKmQZ3xh.js.map → sql-export-routes-B3oqb1Jw.js.map} +1 -1
  105. package/dist/{src-DLIb1O9l.js → src-CNZB3fuE.js} +192 -3
  106. package/dist/src-CNZB3fuE.js.map +1 -0
  107. package/dist/{table-source-editor-qmyi5vxX.js → table-source-editor-D_zNDhEU.js} +3 -3
  108. package/dist/{table-source-editor-qmyi5vxX.js.map → table-source-editor-D_zNDhEU.js.map} +1 -1
  109. package/dist/{upload-validation-B-psYLaN.js → upload-validation-BnIwo78L.js} +2 -2
  110. package/dist/{upload-validation-B-psYLaN.js.map → upload-validation-BnIwo78L.js.map} +1 -1
  111. package/package.json +5 -5
  112. package/dist/auth-BOz84vIr.js.map +0 -1
  113. package/dist/dist-fBcYxf4h.js +0 -19354
  114. package/dist/dist-fBcYxf4h.js.map +0 -1
  115. package/dist/errors-DpTMfX77.js.map +0 -1
  116. package/dist/offline-D_wKJcO3-RV6C9HnX.js.map +0 -1
  117. 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 { isValidAppHost as $, isSchemaEditingAdmin as $t, isTimeZoneName as A, RebaseClientError as An, simulationHeaders as At, resolveClientListLimit as B, DEFAULT_STORAGE_SOURCE_KEY as Bt, isTextColumnType as C, REST_TO_CANONICAL as Cn, AUTH_FLOW_HEADER as Ct, aggregateAlias as D, sortKeyToString as Dn, SIMULATE_ROLE_HEADER as Dt, FIELDLESS_AGGREGATES as E, parseRelationAggregateSort as En, SIMULATE_API_KEY_ID_HEADER as Et, isPublicStorageKey as F, __require as Fn, declaredSubscriptions as Ft, isUiTablePreferences as G, resourceKeyOf as Gt, FIELD_OPERATORS as H, DEFAULT_RESOURCE_KEY as Ht, isPublicStoragePath as I, __toESM as In, resourceToDataSource as It, MCP_APP_MODULES as J, DEFAULT_DATA_SOURCE_KEY as Jt, mergeUiTablePreferences as K, resourceKind as Kt, storageObjectPath as L, resourceToStorageSource as Lt, toDriverAggregateGroup as M, unsupportedMethod as Mn, declareCron as Mt, storageTargetsInText as N, __commonJSMin as Nn, declaredQueueConsumers as Nt, aggregateGroupKey as O, toCanonicalOp as On, SIMULATE_USER_ID_HEADER as Ot, PUBLIC_STORAGE_PREFIX as P, __exportAll as Pn, declaredRlsPolicyShape as Pt, SCHEMA_VERSION_HEADER as Q, isSQLAdmin as Qt, ListLimitError as R, setQueueRuntime as Rt, isTemporalColumnType as S, NULL_OPS as Sn, validateScopes as St, AGGREGATE_GROUP_TRANSFORMS as T, parseCaseFoldedFieldPath as Tn, SIMULATED_CONTEXT_HEADER as Tt, hasFieldOperation as U, buildResourceGraph as Ut, BATCH_REF_KEY as V, storageEnvSuffix as Vt, isFieldOperation as W, resourceEnvSuffix as Wt, isContentHashedFileName as X, DEFAULT_COMMIT_PATHS as Xt, computeSchemaVersion as Y, getDataSourceCapabilities as Yt, LEGACY_LAYOUT_REMEDY as Z, isBranchAdmin as Zt, sql as _, INCLUDE_COUNT_KEY as _n, scopeTargets as _t, defineAuthTable as a, RLS_IS_ANONYMOUS_SQL as an, KEY_MANAGEMENT_SCOPES as at, columnTypeLabel as b, CANONICAL_TO_REST as bn, summarizeRoles as bt, isAuthTableDef as c, RLS_ROLES_SQL as cn, intersectScopes as ct, isRelationDef as d, ANONYMOUS_USER_ID as dn, isDataPlaneScope as dt, DEFAULT_TENANT_BYPASS_ROLES as en, reservedPrefixFor as et, rel as f, ANONYMOUS_USER_IDS as fn, knownScopes as ft, pgEnum as g, policy as gn, scopeGrantsAny as gt, isColumnBuilder as h, isPolicyShorthand as hn, scopeGrants as ht, parseTablePatches as i, REBASE_ADMIN_ROLE as in, EMPTY_ACCESS_MODEL as it, toDriverAggregate as j, isUnsupported as jn, parseEnvBoolean as jt, isPercentileFraction as k, RebaseApiError as kn, formatSimulatedContext as kt, isTableDef as l, RLS_UID_SQL as ln, isAdminScope as lt, col as m, isPolicyExpressionKind as mn, roleNameProblem as mt, TablePatchError as n, isRedactedSecurityRule as nn, ADMIN_SCOPES as nt, defineTable as o, RLS_IS_REQUEST_ROLE_SQL as on, SCOPE_TARGETS as ot, ColumnBuilder as p, isAnonymousUid as pn, parseScope as pt, uiTablePreferencesProblems as q, resourceKinds as qt, columnDefFromWire as r, REBASE_ADMIN_REQUEST_ROLE as rn, BUILT_IN_SCOPES as rt, defineView as s, RLS_JWT_SQL as sn, hasAdminRole as st, src_exports as t, isTenantClaimSource as tn, ADMIN_ROLE as tt, isViewDef as u, rewriteLegacyRlsFunctions as un, isBuiltInScope as ut, describeJsonShape as v, JUNCTION_PIVOT_KEY as vn, scopesBeyond as vt, AGGREGATE_FUNCTIONS as w, isRelationAggregateSort as wn, IMPERSONATE_HEADER as wt, isNumericColumnType as x, LIST_OPS as xn, summarizeScopes as xt, json$1 as y, ALL_WHERE_FILTER_OPS as yn, scopesForRoles as yt, MAX_LIST_LIMIT as z, setTopicRuntime as zt };
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-DLIb1O9l.js.map
5914
+ //# sourceMappingURL=src-CNZB3fuE.js.map