@rebasepro/server 0.31.0-canary.g902a0ce → 0.31.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 (34) hide show
  1. package/dist/{access-CCsVee6z.js → access-D1CTJSLK.js} +3 -1
  2. package/dist/access-D1CTJSLK.js.map +1 -0
  3. package/dist/{access-CSfmyM87.js → access-Dtu87BMj.js} +2 -2
  4. package/dist/{access-CSfmyM87.js.map → access-Dtu87BMj.js.map} +1 -1
  5. package/dist/{auth-Blo1R8rc.js → auth-BOz84vIr.js} +3 -3
  6. package/dist/{auth-Blo1R8rc.js.map → auth-BOz84vIr.js.map} +1 -1
  7. package/dist/auth-secrets-BZUH9916.js +60 -0
  8. package/dist/auth-secrets-BZUH9916.js.map +1 -0
  9. package/dist/{contract-routes-WwMWHWS9.js → contract-routes-o5oqNhfc.js} +2 -2
  10. package/dist/{contract-routes-WwMWHWS9.js.map → contract-routes-o5oqNhfc.js.map} +1 -1
  11. package/dist/{cron-routes-Cqm5wQsK.js → cron-routes-BOu-bY7I.js} +2 -2
  12. package/dist/{cron-routes-Cqm5wQsK.js.map → cron-routes-BOu-bY7I.js.map} +1 -1
  13. package/dist/{dist-CDIqWaSr.js → dist-fBcYxf4h.js} +2 -2
  14. package/dist/{dist-CDIqWaSr.js.map → dist-fBcYxf4h.js.map} +1 -1
  15. package/dist/index.es.js +21 -21
  16. package/dist/{load-schema-CtyLeq-H.js → load-schema-Cv5XLVjW.js} +2 -37
  17. package/dist/load-schema-Cv5XLVjW.js.map +1 -0
  18. package/dist/{openapi-generator-mn6hsEmw.js → openapi-generator-CoAFACMx.js} +2 -2
  19. package/dist/{openapi-generator-mn6hsEmw.js.map → openapi-generator-CoAFACMx.js.map} +1 -1
  20. package/dist/{query-parser-CkKSbs1s.js → query-parser-D9Uf8aha.js} +2 -2
  21. package/dist/{query-parser-CkKSbs1s.js.map → query-parser-D9Uf8aha.js.map} +1 -1
  22. package/dist/{rls-simulator-routes-BxzeNXmI.js → rls-simulator-routes-BvH6wI64.js} +2 -2
  23. package/dist/{rls-simulator-routes-BxzeNXmI.js.map → rls-simulator-routes-BvH6wI64.js.map} +1 -1
  24. package/dist/{schema-editor-routes-mPCyks4X.js → schema-editor-routes-CzITcAgt.js} +2 -2
  25. package/dist/{schema-editor-routes-mPCyks4X.js.map → schema-editor-routes-CzITcAgt.js.map} +1 -1
  26. package/dist/{schema-tables-D4MEBZFi.js → schema-tables-lJHnyqj4.js} +2 -2
  27. package/dist/{schema-tables-D4MEBZFi.js.map → schema-tables-lJHnyqj4.js.map} +1 -1
  28. package/dist/{schema-tables-routes-D3iLb5XU.js → schema-tables-routes-Uss-ljon.js} +3 -3
  29. package/dist/{schema-tables-routes-D3iLb5XU.js.map → schema-tables-routes-Uss-ljon.js.map} +1 -1
  30. package/dist/{table-source-editor-xvccIOH1.js → table-source-editor-qmyi5vxX.js} +2 -2
  31. package/dist/{table-source-editor-xvccIOH1.js.map → table-source-editor-qmyi5vxX.js.map} +1 -1
  32. package/package.json +5 -5
  33. package/dist/access-CCsVee6z.js.map +0 -1
  34. package/dist/load-schema-CtyLeq-H.js.map +0 -1
package/dist/index.es.js CHANGED
@@ -4,30 +4,30 @@ globalThis.process ??= __rebaseProcess;
4
4
  __rebaseCreateRequire(import.meta.url);
5
5
  import { $ as isValidAppHost, $t as isSchemaEditingAdmin, An as RebaseClientError, At as simulationHeaders, Bt as DEFAULT_STORAGE_SOURCE_KEY, C as isTextColumnType, Ct as AUTH_FLOW_HEADER, Dn as sortKeyToString, F as isPublicStorageKey, Fn as __require, Ft as declaredSubscriptions, G as isUiTablePreferences, Gt as resourceKeyOf, H as FIELD_OPERATORS, Ht as DEFAULT_RESOURCE_KEY, I as isPublicStoragePath, It as resourceToDataSource, J as MCP_APP_MODULES, Jt as DEFAULT_DATA_SOURCE_KEY, K as mergeUiTablePreferences, Kt as resourceKind, L as storageObjectPath, Lt as resourceToStorageSource, M as toDriverAggregateGroup, Mn as unsupportedMethod, N as storageTargetsInText, Nn as __commonJSMin, Nt as declaredQueueConsumers, P as PUBLIC_STORAGE_PREFIX, Q as SCHEMA_VERSION_HEADER, Qt as isSQLAdmin, Rt as setQueueRuntime, S as isTemporalColumnType, Ut as buildResourceGraph, V as BATCH_REF_KEY, Vt as storageEnvSuffix, W as isFieldOperation, Wt as resourceEnvSuffix, X as isContentHashedFileName, Y as computeSchemaVersion, Yt as getDataSourceCapabilities, Z as LEGACY_LAYOUT_REMEDY, _ as sql, _n as INCLUDE_COUNT_KEY, a as defineAuthTable, c as isAuthTableDef, cn as RLS_ROLES_SQL, ct as intersectScopes, et as reservedPrefixFor, f as rel, g as pgEnum, gn as policy, gt as scopeGrantsAny, h as isColumnBuilder, ht as scopeGrants, i as parseTablePatches, j as toDriverAggregate, jn as isUnsupported, jt as parseEnvBoolean, kn as RebaseApiError, l as isTableDef, ln as RLS_UID_SQL, m as col, n as TablePatchError, o as defineTable, pn as isAnonymousUid, pt as parseScope, q as uiTablePreferencesProblems, qt as resourceKinds, s as defineView, sn as RLS_JWT_SQL, st as hasAdminRole, u as isViewDef, vn as JUNCTION_PIVOT_KEY, x as isNumericColumnType, xt as summarizeScopes, y as json, yn as ALL_WHERE_FILTER_OPS, yt as scopesForRoles, z as MAX_LIST_LIMIT, zt as setTopicRuntime } from "./src-DLIb1O9l.js";
6
6
  import { a as logger, c as setLogLevel, d as hostEnv, i as logLevelEnabled, l as setLogOutput, o as rawQueryLoggingEnabled, r as describeCauseChain, s as redactSensitiveText, t as _setLogLineHook } from "./logger-SigQ2oZJ.js";
7
- import { $ as resolveEmailLinkBase, A as createDataRateLimitCheck, B as registerDevEmailSink, C as createJwksRoutes, D as AUTH_CONFIG_LIMIT, E as isBootstrapWindowOpen, F as activeDevEmailSink, G as validatePasswordStrength, H as createEmailService, I as clearActiveDevEmailSink, J as createAdapterAuthMiddleware, K as verifyPassword, L as createDevEmailSink, M as createRateLimiter, N as setSharedRateLimitStore, O as DEFAULT_FUNCTIONS_ANONYMOUS_LIMIT, P as MemoryRateLimitStore, Q as assertEmailLinkBases, R as devEmailSinkFor, S as createApiKeyStore, T as configureUserPicking, U as resolveAuthHooks, V as SMTPEmailService, W as hashPassword, X as completeUserCreation, Y as createAdapterCallerResolution, Z as generateSecurePassword, _ as oauthCodeFlowSchema, a as createBitbucketProvider, at as getPasswordResetTemplate, b as createApiKeyRoutes, c as createTwitterProvider, ct as resolveEmailBranding, d as createMicrosoftProvider, dt as html, et as getEmailChangeNoticeTemplate, f as tryVerifyOidcIdToken, ft as raw, g as createGoogleProvider, gt as walkJsonShape, h as createLinkedinProvider, ht as formatJsonPath, i as createSlackProvider, it as getMagicLinkTemplate, j as createDataRateLimiter, k as createAuthLimiters, l as createFacebookProvider, lt as RawHtml, m as createGitHubProvider, mt as resolveRateLimitStoreKind, n as createCustomAuthAdapter, nt as getEmailOtpTemplate, o as createGitLabProvider, ot as getUserInvitationTemplate, p as verifyOidcIdToken, pt as createSqlRateLimitStore, q as adapterRefusal, r as createSpotifyProvider, rt as getEmailVerificationTemplate, s as createDiscordProvider, st as getWelcomeEmailTemplate, tt as getEmailChangeTemplate, u as createAppleProvider, ut as escapeHtml, v as pkceTokenParams, w as createBuiltinAuthAdapter, x as createPersonalKeyRoutes, y as providerVerifiedEmail, z as extractLinks } from "./auth-Blo1R8rc.js";
7
+ import { $ as resolveEmailLinkBase, A as createDataRateLimitCheck, B as registerDevEmailSink, C as createJwksRoutes, D as AUTH_CONFIG_LIMIT, E as isBootstrapWindowOpen, F as activeDevEmailSink, G as validatePasswordStrength, H as createEmailService, I as clearActiveDevEmailSink, J as createAdapterAuthMiddleware, K as verifyPassword, L as createDevEmailSink, M as createRateLimiter, N as setSharedRateLimitStore, O as DEFAULT_FUNCTIONS_ANONYMOUS_LIMIT, P as MemoryRateLimitStore, Q as assertEmailLinkBases, R as devEmailSinkFor, S as createApiKeyStore, T as configureUserPicking, U as resolveAuthHooks, V as SMTPEmailService, W as hashPassword, X as completeUserCreation, Y as createAdapterCallerResolution, Z as generateSecurePassword, _ as oauthCodeFlowSchema, a as createBitbucketProvider, at as getPasswordResetTemplate, b as createApiKeyRoutes, c as createTwitterProvider, ct as resolveEmailBranding, d as createMicrosoftProvider, dt as html, et as getEmailChangeNoticeTemplate, f as tryVerifyOidcIdToken, ft as raw, g as createGoogleProvider, gt as walkJsonShape, h as createLinkedinProvider, ht as formatJsonPath, i as createSlackProvider, it as getMagicLinkTemplate, j as createDataRateLimiter, k as createAuthLimiters, l as createFacebookProvider, lt as RawHtml, m as createGitHubProvider, mt as resolveRateLimitStoreKind, n as createCustomAuthAdapter, nt as getEmailOtpTemplate, o as createGitLabProvider, ot as getUserInvitationTemplate, p as verifyOidcIdToken, pt as createSqlRateLimitStore, q as adapterRefusal, r as createSpotifyProvider, rt as getEmailVerificationTemplate, s as createDiscordProvider, st as getWelcomeEmailTemplate, tt as getEmailChangeTemplate, u as createAppleProvider, ut as escapeHtml, v as pkceTokenParams, w as createBuiltinAuthAdapter, x as createPersonalKeyRoutes, y as providerVerifiedEmail, z as extractLinks } from "./auth-BOz84vIr.js";
8
8
  import { r as toSnakeCase } from "./strings.es-k0kjzQBh.js";
9
- import { a as serializeTables, c as policyTableFromDescriptor, i as schemaViewKey, o as servedTableSlugs, r as schemaViewFor, s as tableEffectiveRules } from "./schema-tables-D4MEBZFi.js";
10
- import { a as textMaxLength, i as firstDuplicate, n as buildTableSchema, o as validationPattern, s as isSoftDeleteRestore, t as buildTableInputSchema } from "./openapi-generator-mn6hsEmw.js";
9
+ import { a as serializeTables, c as policyTableFromDescriptor, i as schemaViewKey, o as servedTableSlugs, r as schemaViewFor, s as tableEffectiveRules } from "./schema-tables-lJHnyqj4.js";
10
+ import { a as textMaxLength, i as firstDuplicate, n as buildTableSchema, o as validationPattern, s as isSoftDeleteRestore, t as buildTableInputSchema } from "./openapi-generator-CoAFACMx.js";
11
11
  import { c as createTransport, f as withETag, l as defaultCodeForStatus, p as unref, r as SDKQueryBuilder, s as createTableClient, u as invalidBulkBody } from "./offline-store-DtmBwmKE-B17N4609.js";
12
12
  import "./resumable-upload-threshold-CKv-Ry0l.js";
13
13
  import { i as revokeInternalTableSql, t as REBASE_INTERNAL_TABLES } from "./internal-tables-CHFJHH7N.js";
14
14
  import { a as warnDeprecated, n as FilesFailedToLoadError } from "./dynamic-import-Bi3XK5y-.js";
15
- import { a as loadBackendSchema, d as isSchemaDefinitionError, i as isSchemaLoadError, n as compileLoadedSchema, r as compileSchemaDefs, t as SchemaLoadError } from "./load-schema-CtyLeq-H.js";
16
- import { i as canReadColumn, n as apiHiddenKeys, o as canWriteColumn, s as canWriteRelation, u as restrictedKeys } from "./access-CCsVee6z.js";
17
- import { a as parseWriteFilter, c as assertQueryFieldsReadable, d as relationOf, f as relationsOfKind, h as reconcileCursorOrder, i as parseQueryOptions, l as assertReadableFields, m as decodeCursor$1, n as parseAggregateSelect, o as resolveListLimitParam, p as cursorToStartAfter, r as parseGroupBy, s as assertNoHiddenAggregateNames, t as orderByEntriesToTuples, u as requestViewer } from "./query-parser-CkKSbs1s.js";
15
+ import { i as canReadColumn, n as apiHiddenKeys, o as canWriteColumn, s as canWriteRelation, u as restrictedKeys } from "./access-D1CTJSLK.js";
16
+ import { a as loadBackendSchema, d as isSchemaDefinitionError, i as isSchemaLoadError, n as compileLoadedSchema, r as compileSchemaDefs, t as SchemaLoadError } from "./load-schema-Cv5XLVjW.js";
17
+ import { a as parseWriteFilter, c as assertQueryFieldsReadable, d as relationOf, f as relationsOfKind, h as reconcileCursorOrder, i as parseQueryOptions, l as assertReadableFields, m as decodeCursor$1, n as parseAggregateSelect, o as resolveListLimitParam, p as cursorToStartAfter, r as parseGroupBy, s as assertNoHiddenAggregateNames, t as orderByEntriesToTuples, u as requestViewer } from "./query-parser-D9Uf8aha.js";
18
18
  import { _ as normalizeOrderBy, c as collectAllPages, g as OrderBySpecError, l as paginateFind, m as normalizeInclude, p as mergeIncludeSpecs, r as deserializeFilter, t as RESERVED_QUERY_KEYS, u as resolveFindWindow, v as serializeOrderBy } from "./filter-dialect-DAVl1Nsm.js";
19
19
  import { C as randomHex, E as sha256Hex, S as constantTimeEqual, T as sha256Bytes, b as normalizePemFromEnv, d as hasAsymmetricSigningKey, g as setDefaultJwtService, h as processJwtService, l as getJwks, m as jwtOf, n as configureJwt, r as createJwtService, y as verifyJwt } from "./jwt-JtQiewBW.js";
20
20
  import { a as isConcurrentDdlRace, c as provisioningExec, l as withoutLeadingComments, o as isDuplicateObjectRace, r as createDdlBootstrapper, s as isSchemaChange, t as CONCURRENT_DDL_SQLSTATES } from "./ddl-bootstrap-DhCuwhHM.js";
21
21
  import { t as createCronStore } from "./cron-store-91cd9Qzv.js";
22
22
  import { a as isDataException, c as dbConnectionErrorCounts, i as errorHandler, n as DATABASE_UNAVAILABLE_MESSAGE, o as isDatabaseUnreachable, r as declaredErrorAnswer, s as schemaDriftRemedy, t as ApiError } from "./errors-DpTMfX77.js";
23
23
  import { n as HARD_DELETE_QUERY_PARAM, r as parseHardDelete } from "./soft-delete-params-DDRmxT2z.js";
24
- import { $ as supportsRlsScoping, A as isDownloadTokenGrant, C as publicObjectAuth, D as requireAuth, E as requireAdmin, G as createTusScopeGuard, H as reportSimulatedContext, I as decideImpersonation, J as validateApiKey, K as isApiKeyToken, L as refuseUnhonouredImpersonation, M as requestedStorageObject, N as storageObjectOfPath, O as userFromToken, P as storageRequestWildcard, Q as scopeDataDriver, S as optionalAuth, T as refuse$1, U as createApiKeyPreAuth, W as createFunctionScopeGuard, X as safeCompare, Y as extractBearerToken, Z as SERVICE_IDENTITY, _ as setDefaultAccessControl, at as refuseSimulatedWrite, b as extractUserFromToken, c as configureAccess, d as keyOwnerResolverFor, f as processAccessControl, g as scopeMissing, h as requireScopeByMethod, j as isPublicObjectGrant, k as PUBLIC_OBJECT_PRINCIPAL, l as getAccessModel, m as requireScope, n as accessModelFromAuthTable, ot as httpMethodToOperation, q as resolveApiKey, r as accessOf, s as callerScopes, tt as isAccessTokenRevoked, u as hasScope, v as createAuthMiddleware, w as queryTokenAuth, x as fileTokenAuth, y as createRequireAuth } from "./access-CSfmyM87.js";
24
+ import { $ as supportsRlsScoping, A as isDownloadTokenGrant, C as publicObjectAuth, D as requireAuth, E as requireAdmin, G as createTusScopeGuard, H as reportSimulatedContext, I as decideImpersonation, J as validateApiKey, K as isApiKeyToken, L as refuseUnhonouredImpersonation, M as requestedStorageObject, N as storageObjectOfPath, O as userFromToken, P as storageRequestWildcard, Q as scopeDataDriver, S as optionalAuth, T as refuse$1, U as createApiKeyPreAuth, W as createFunctionScopeGuard, X as safeCompare, Y as extractBearerToken, Z as SERVICE_IDENTITY, _ as setDefaultAccessControl, at as refuseSimulatedWrite, b as extractUserFromToken, c as configureAccess, d as keyOwnerResolverFor, f as processAccessControl, g as scopeMissing, h as requireScopeByMethod, j as isPublicObjectGrant, k as PUBLIC_OBJECT_PRINCIPAL, l as getAccessModel, m as requireScope, n as accessModelFromAuthTable, ot as httpMethodToOperation, q as resolveApiKey, r as accessOf, s as callerScopes, tt as isAccessTokenRevoked, u as hasScope, v as createAuthMiddleware, w as queryTokenAuth, x as fileTokenAuth, y as createRequireAuth } from "./access-Dtu87BMj.js";
25
25
  import { a as canonicalStorageId, i as canonicalStorageBucket, n as InvalidStorageBucketError, o as canonicalStorageKey, r as InvalidStorageKeyError, t as InvalidListOptionsError } from "./keys-BTPoSvUs.js";
26
26
  import { t as logMiddleware } from "./logs-routes-BT4af1Or.js";
27
27
  import { a as fileWebStream, d as IMAGE_MIME_TYPES, i as bytesView, l as DEFAULT_MAX_FILE_SIZE, n as ObjectTooLargeError, o as meteredChunks, s as readStreamFully, t as validateUploadedFile, u as DOCUMENT_MIME_TYPES } from "./upload-validation-B-psYLaN.js";
28
28
  import { t as S3StorageController } from "./S3StorageController-DDAq8Kt5.js";
29
29
  import { t as GCSStorageController } from "./GCSStorageController-sCw2c4aA.js";
30
- import { t as schemaCallerOf } from "./schema-tables-routes-D3iLb5XU.js";
30
+ import { t as schemaCallerOf } from "./schema-tables-routes-Uss-ljon.js";
31
31
  import { i as usesVersionedMigrations, n as commitPathsFor, r as findProjectRoot } from "./project-root-qDQzmsUD.js";
32
32
  import { a as isHonoLike, i as loadFunctionsWithDiagnostics, n as loadFunctions, r as loadFunctionsFromDirectory } from "./function-loader-BeFbN1-A.js";
33
33
  import { a as getDriver, c as getSql, d as getUserProfile, f as hasRole, g as requireDriver, h as isAuthenticated, i as getApiKey, l as getUser, m as isAdmin, o as getRequestId, p as identityResolved, r as requireRole, s as getRoles, t as createFunctionRoutes, u as getUserId } from "./function-routes-CIwLXsZF.js";
@@ -36,11 +36,11 @@ import "./request-timeout-CpOgfQPK.js";
36
36
  import { t as FunctionSelectionError } from "./selection-hgC1szl6.js";
37
37
  import { a as loadCrons, i as loadCronJobsWithDiagnostics, n as declareCrons, r as loadCronJobsFromDirectory } from "./cron-loader-BDN8plQK.js";
38
38
  import { i as validateCronExpression, t as CronScheduler } from "./cron-scheduler-DgrsqyQQ.js";
39
- import { t as createCronRoutes } from "./cron-routes-Cqm5wQsK.js";
39
+ import { t as createCronRoutes } from "./cron-routes-BOu-bY7I.js";
40
40
  import { a as listBackupObjects, c as readBackupBytes, i as backupStorageFromEnv, n as createBackupLinkRoutes, o as parseBackupDestination, r as createBackupRoutes, s as parseBackupTimestamp } from "./backup-B-1oW6qX.js";
41
41
  import { a as defaultBackoff, i as createJobQueue, n as createJobStore, o as currentAmbientTransaction, r as PermanentJobError } from "./jobs-WCyKVsUf.js";
42
42
  import { t as METRIC_SERIES } from "./history-store-DseUt_dm.js";
43
- import { n as createContractRoutes } from "./contract-routes-WwMWHWS9.js";
43
+ import { n as createContractRoutes } from "./contract-routes-o5oqNhfc.js";
44
44
  import { createHash, createSign, randomBytes } from "node:crypto";
45
45
  import * as path$2 from "node:path";
46
46
  import path from "node:path";
@@ -18122,7 +18122,7 @@ function noCollectionsCause(unprotected) {
18122
18122
  * routes wherever and as often as the application asks.
18123
18123
  */
18124
18124
  async function loadOpenApiGenerator() {
18125
- const { generateOpenApiSpec } = await import("./openapi-generator-mn6hsEmw.js").then((n) => n.r);
18125
+ const { generateOpenApiSpec } = await import("./openapi-generator-CoAFACMx.js").then((n) => n.r);
18126
18126
  return generateOpenApiSpec;
18127
18127
  }
18128
18128
  /**
@@ -29025,7 +29025,7 @@ async function buildRebaseBackend(options, announcements) {
29025
29025
  ]) {
29026
29026
  const providerConfig = safeAuthConfig[key];
29027
29027
  if (providerConfig && requiredFields.every((f) => Boolean(providerConfig[f]))) {
29028
- const createFn = (await import("./auth-Blo1R8rc.js").then((n) => n.t))[factory];
29028
+ const createFn = (await import("./auth-BOz84vIr.js").then((n) => n.t))[factory];
29029
29029
  oauthProviders.push(createFn(providerConfig));
29030
29030
  }
29031
29031
  }
@@ -29292,11 +29292,11 @@ async function buildRebaseBackend(options, announcements) {
29292
29292
  let schemaEditorOff = schemaEditorUnavailable();
29293
29293
  let schemaEditorRoutes;
29294
29294
  let tableSourceEditor;
29295
- const loadTableSourceEditor = (dir) => tableSourceEditor ??= import("./schema-editor-routes-mPCyks4X.js").then((module) => module.createTableSourceEditor(dir));
29295
+ const loadTableSourceEditor = (dir) => tableSourceEditor ??= import("./schema-editor-routes-CzITcAgt.js").then((module) => module.createTableSourceEditor(dir));
29296
29296
  const tsMorphMissing = (err) => typeof err === "object" && err !== null && "code" in err && err.code === "ERR_MODULE_NOT_FOUND";
29297
29297
  if (!schemaEditorOff && config.schemaDir) try {
29298
29298
  const editor = await loadTableSourceEditor(config.schemaDir);
29299
- schemaEditorRoutes = (await import("./schema-editor-routes-mPCyks4X.js")).createSchemaEditorRoutes(editor, { getAdmin: () => defaultDriver.admin });
29299
+ schemaEditorRoutes = (await import("./schema-editor-routes-CzITcAgt.js")).createSchemaEditorRoutes(editor, { getAdmin: () => defaultDriver.admin });
29300
29300
  } catch (err) {
29301
29301
  if (tsMorphMissing(err)) {
29302
29302
  schemaEditorOff = {
@@ -29351,7 +29351,7 @@ async function buildRebaseBackend(options, announcements) {
29351
29351
  let remoteEditingOff;
29352
29352
  if (remoteRepo) {
29353
29353
  try {
29354
- remoteEditor = await import("./table-source-editor-xvccIOH1.js").then((n) => n.u);
29354
+ remoteEditor = await import("./table-source-editor-qmyi5vxX.js").then((n) => n.u);
29355
29355
  } catch (err) {
29356
29356
  if (err?.code !== "ERR_MODULE_NOT_FOUND") throw err;
29357
29357
  remoteEditingOff = {
@@ -29902,7 +29902,7 @@ async function buildRebaseBackend(options, announcements) {
29902
29902
  if (surfaces.cron || (config.cronsDir || config.crons || storageSweepJobs.length > 0) && ownership.cronScheduler) {
29903
29903
  const { cronJobsFrom, readCronsDirectory, withHiddenPropertiesOf } = await import("./cron-loader-BDN8plQK.js").then((n) => n.t);
29904
29904
  const { CronScheduler } = await import("./cron-scheduler-DgrsqyQQ.js").then((n) => n.n);
29905
- const { createCronRoutes } = await import("./cron-routes-Cqm5wQsK.js").then((n) => n.n);
29905
+ const { createCronRoutes } = await import("./cron-routes-BOu-bY7I.js").then((n) => n.n);
29906
29906
  const { createCronStore } = await import("./cron-store-91cd9Qzv.js").then((n) => n.n);
29907
29907
  const { crons: cronRecord, problems: cronProblems, failed: cronFailures } = config.crons ? {
29908
29908
  crons: config.crons,
@@ -30047,7 +30047,7 @@ Use a driver that supports the job queue, or remove the declarations. Refusing t
30047
30047
  }
30048
30048
  let rlsSimulatorSurface;
30049
30049
  if (surfaces.admin) {
30050
- const { createRlsSimulatorRoutes } = await import("./rls-simulator-routes-BxzeNXmI.js");
30050
+ const { createRlsSimulatorRoutes } = await import("./rls-simulator-routes-BvH6wI64.js");
30051
30051
  const rlsSimulatorRouter = new Hono();
30052
30052
  applyAdminGate(rlsSimulatorRouter, "RLS simulator", "schema:read");
30053
30053
  rlsSimulatorRouter.route("/", createRlsSimulatorRoutes({
@@ -30105,7 +30105,7 @@ Use a driver that supports the job queue, or remove the declarations. Refusing t
30105
30105
  logsSurface = logsRouter;
30106
30106
  }
30107
30107
  if (surfaces.meta) {
30108
- const { createContractRoutes } = await import("./contract-routes-WwMWHWS9.js").then((n) => n.t);
30108
+ const { createContractRoutes } = await import("./contract-routes-o5oqNhfc.js").then((n) => n.t);
30109
30109
  const contractRouter = new Hono();
30110
30110
  if (adminSurfacesGated) contractRouter.use("/contract", ...adminGate("schema:read"));
30111
30111
  else {
@@ -30115,7 +30115,7 @@ Use a driver that supports the job queue, or remove the declarations. Refusing t
30115
30115
  } }, 404));
30116
30116
  warnOnMount("meta", "Contract endpoint disabled: no auth is configured (no adapter or no jwtSecret), and it would otherwise expose the full schema to anyone. `/api/meta/schema-version` is still served.");
30117
30117
  }
30118
- const { createSchemaTablesService, createSchemaTablesRoutes } = await import("./schema-tables-routes-D3iLb5XU.js").then((n) => n.n);
30118
+ const { createSchemaTablesService, createSchemaTablesRoutes } = await import("./schema-tables-routes-Uss-ljon.js").then((n) => n.n);
30119
30119
  const schemaTables = createSchemaTablesService({
30120
30120
  tableRegistry,
30121
30121
  policySource: () => servedPolicyTables,
@@ -30529,7 +30529,7 @@ function realtimeSocketPath(basePath) {
30529
30529
  * backend no MCP client calls never loads it.
30530
30530
  */
30531
30531
  async function loadMcpApps() {
30532
- const { MCP_APPS } = await import("./dist-CDIqWaSr.js");
30532
+ const { MCP_APPS } = await import("./dist-fBcYxf4h.js");
30533
30533
  return withProjectView(MCP_APPS, [...process.env.REBASE_MCP_VIEW ? [process.env.REBASE_MCP_VIEW] : [], ...servedFrontendPaths().map((frontend) => path.join(frontend, PROJECT_VIEW_FILE))], (file) => {
30534
30534
  try {
30535
30535
  return readFileSync(file, "utf8");
@@ -30543,7 +30543,7 @@ async function loadMcpApps() {
30543
30543
  * app to the modules and names every view serves (`MCP_APP_MODULES`).
30544
30544
  */
30545
30545
  async function loadAppCompiler() {
30546
- const { compileApp } = await import("./dist-CDIqWaSr.js");
30546
+ const { compileApp } = await import("./dist-fBcYxf4h.js");
30547
30547
  return (source) => compileApp(source, MCP_APP_MODULES);
30548
30548
  }
30549
30549
  /**
@@ -5,45 +5,10 @@ __rebaseCreateRequire(import.meta.url);
5
5
  import { Gt as resourceKeyOf, Z as LEGACY_LAYOUT_REMEDY, b as columnTypeLabel, c as isAuthTableDef, d as isRelationDef, h as isColumnBuilder, l as isTableDef, u as isViewDef, v as describeJsonShape } from "./src-DLIb1O9l.js";
6
6
  import { r as toSnakeCase } from "./strings.es-k0kjzQBh.js";
7
7
  import { n as toPostgresIdentifier, r as toWireKey, t as generateForeignKeyName } from "./names.es-PUE02OBV.js";
8
+ import { n as authSecretsMissingExclusion } from "./auth-secrets-BZUH9916.js";
8
9
  import * as path$1 from "path";
9
10
  import * as fs$1 from "fs";
10
11
  import { pathToFileURL } from "url";
11
- //#region ../common/src/collections/auth-secrets.ts
12
- /** Is this collection the one the auth subsystem stores users in? */
13
- function isAuthCollection(collection) {
14
- const auth = collection.auth;
15
- if (auth === true) return true;
16
- return typeof auth === "object" && auth !== null && "enabled" in auth && auth.enabled === true;
17
- }
18
- /**
19
- * The secrets of the built-in user store, in both spellings: the key and the
20
- * column. A redeclaration is free to rename the key — one project's copy says
21
- * `password_hash` where the default says `passwordHash` — and the column is the
22
- * same either way. The auth adapter writes these columns
23
- * (`builtin-auth-adapter`), and no caller may read or set them.
24
- */
25
- var AUTH_SECRET_NAMES = /* @__PURE__ */ new Set([
26
- "passwordHash",
27
- "password_hash",
28
- "emailVerificationToken",
29
- "email_verification_token"
30
- ]);
31
- /**
32
- * The keys of the properties on `collection` that hold an auth secret and do not
33
- * carry `excludeFromApi`. Empty for any collection that is not the user store: a
34
- * `password_hash` column elsewhere — a CRM importing hashes, say — is that
35
- * project's data, not this rule's business.
36
- */
37
- function authSecretsMissingExclusion(collection) {
38
- if (!collection.properties || !isAuthCollection(collection)) return [];
39
- const missing = [];
40
- for (const [key, property] of Object.entries(collection.properties)) {
41
- if (!property || property.excludeFromApi) continue;
42
- if (AUTH_SECRET_NAMES.has(key) || AUTH_SECRET_NAMES.has(property.columnName ?? key)) missing.push(key);
43
- }
44
- return missing;
45
- }
46
- //#endregion
47
12
  //#region ../common/src/collections/soft-delete.ts
48
13
  /** The field `softDelete: true` means, when the object form names none. */
49
14
  var DEFAULT_SOFT_DELETE_FIELD = "deletedAt";
@@ -2130,4 +2095,4 @@ function compileLoadedSchema(loaded) {
2130
2095
  //#endregion
2131
2096
  export { loadBackendSchema as a, deriveJunctionTable as c, isSchemaDefinitionError as d, isSchemaLoadError as i, deriveJunctionTargetKey as l, compileLoadedSchema as n, deriveBelongsToLocalKey as o, compileSchemaDefs as r, deriveJunctionSourceKey as s, SchemaLoadError as t, deriveTargetForeignKey as u };
2132
2097
 
2133
- //# sourceMappingURL=load-schema-CtyLeq-H.js.map
2098
+ //# sourceMappingURL=load-schema-Cv5XLVjW.js.map