Skip to content

The open alternative to Salesforce, designed for AI.

Give SDK runtime values their own twenty-shared entry (#28351)

nitine29fc666af15
diff --git a/packages/twenty-client-sdk/.oxlintrc.json b/packages/twenty-client-sdk/.oxlintrc.json
index 3b9c306a267..e61f32e8b7f 100644
--- a/packages/twenty-client-sdk/.oxlintrc.json
+++ b/packages/twenty-client-sdk/.oxlintrc.json
@@ -43,5 +43,29 @@
"argsIgnorePattern": "^_"
}
]
- }
+ },
+ "overrides": [
+ {
+ "files": [
+ "src/core/**/*.ts",
+ "src/metadata/**/*.ts",
+ "src/rest/**/*.ts",
+ "src/shared/**/*.ts"
+ ],
+ "rules": {
+ "no-restricted-imports": [
+ "error",
+ {
+ "paths": [
+ {
+ "name": "twenty-shared/application",
+ "allowTypeImports": true,
+ "message": "This code ships inside every app bundle, and twenty-shared/application builds workflow schemas when it loads. Import runtime values from twenty-shared/application-runtime; type imports are fine."
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
}
diff --git a/packages/twenty-client-sdk/src/generate/generate-core-client.ts b/packages/twenty-client-sdk/src/generate/generate-core-client.ts
index 01a2f22f44a..426dd857319 100644
--- a/packages/twenty-client-sdk/src/generate/generate-core-client.ts
+++ b/packages/twenty-client-sdk/src/generate/generate-core-client.ts
@@ -2,7 +2,7 @@ import { appendFile, copyFile, writeFile } from 'node:fs/promises';
import { join } from 'node:path';
import { build } from 'esbuild';
-import { DEFAULT_API_URL_NAME } from 'twenty-shared/application';
+import { DEFAULT_API_URL_NAME } from 'twenty-shared/application-runtime';
import { buildClientWrapperSource } from './client-wrapper';
import { emptyDir, ensureDir, move, remove } from './fs-utils';
diff --git a/packages/twenty-client-sdk/src/generate/generate-metadata-client.ts b/packages/twenty-client-sdk/src/generate/generate-metadata-client.ts
index 833350476bd..6a9f1ff86fc 100644
--- a/packages/twenty-client-sdk/src/generate/generate-metadata-client.ts
+++ b/packages/twenty-client-sdk/src/generate/generate-metadata-client.ts
@@ -1,7 +1,7 @@
import { appendFile } from 'node:fs/promises';
import { join } from 'node:path';
-import { DEFAULT_API_URL_NAME } from 'twenty-shared/application';
+import { DEFAULT_API_URL_NAME } from 'twenty-shared/application-runtime';
import { buildClientWrapperSource } from './client-wrapper';
import { emptyDir, ensureDir } from './fs-utils';
diff --git a/packages/twenty-client-sdk/src/rest/index.ts b/packages/twenty-client-sdk/src/rest/index.ts
index 919b5243ac0..5c963b091b1 100644
--- a/packages/twenty-client-sdk/src/rest/index.ts
+++ b/packages/twenty-client-sdk/src/rest/index.ts
@@ -4,7 +4,7 @@ import {
DEFAULT_APP_ACCESS_TOKEN_NAME,
DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME,
DEFAULT_FUNCTIONS_URL_NAME,
-} from 'twenty-shared/application';
+} from 'twenty-shared/application-runtime';
import { type TwentyClientRunAs } from '../shared/twenty-client-run-as.type';
diff --git a/packages/twenty-front/src/pages/settings/applications/hooks/useTriggerAppOAuth.ts b/packages/twenty-front/src/pages/settings/applications/hooks/useTriggerAppOAuth.ts
index 1e00a913799..7ab71d59a2a 100644
--- a/packages/twenty-front/src/pages/settings/applications/hooks/useTriggerAppOAuth.ts
+++ b/packages/twenty-front/src/pages/settings/applications/hooks/useTriggerAppOAuth.ts
@@ -1,6 +1,6 @@
import { useMutation } from '@apollo/client/react';
import { useCallback } from 'react';
-import { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from 'twenty-shared/application';
+import { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from 'twenty-shared/application-runtime';
import { useRedirect } from '@/domain-manager/hooks/useRedirect';
import { REACT_APP_SERVER_BASE_URL } from '~/config';
diff --git a/packages/twenty-sdk/.oxlintrc.json b/packages/twenty-sdk/.oxlintrc.json
index a1d10264b45..90cba5d3261 100644
--- a/packages/twenty-sdk/.oxlintrc.json
+++ b/packages/twenty-sdk/.oxlintrc.json
@@ -53,5 +53,29 @@
"react/jsx-props-no-spreading": ["error", { "explicitSpread": "ignore" }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
- }
+ },
+ "overrides": [
+ {
+ "files": [
+ "src/sdk/logic-function/**/*.ts",
+ "src/sdk/billing/**/*.ts",
+ "src/sdk/utils/**/*.ts",
+ "src/sdk/front-component/**/*.{ts,tsx}"
+ ],
+ "rules": {
+ "no-restricted-imports": [
+ "error",
+ {
+ "paths": [
+ {
+ "name": "twenty-shared/application",
+ "allowTypeImports": true,
+ "message": "This code ships inside every app bundle, and twenty-shared/application builds workflow schemas when it loads. Import runtime values from twenty-shared/application-runtime; type imports are fine."
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
}
diff --git a/packages/twenty-sdk/src/cli/__tests__/bundle/__integration__/runtime-entry-size.integration.spec.ts b/packages/twenty-sdk/src/cli/__tests__/bundle/__integration__/runtime-entry-size.integration.spec.ts
new file mode 100644
index 00000000000..eede47aa98a
--- /dev/null
+++ b/packages/twenty-sdk/src/cli/__tests__/bundle/__integration__/runtime-entry-size.integration.spec.ts
@@ -0,0 +1,28 @@
+import { existsSync, statSync } from 'node:fs';
+import { dirname, resolve } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const currentDir = dirname(fileURLToPath(import.meta.url));
+const packageRoot = resolve(currentDir, '../../../../..');
+
+// App builds inline these entries into every logic function, so twenty-shared code they reach ships with each one
+const RUNTIME_ENTRY_MAX_BYTES = 50_000;
+
+describe.each(['logic-function', 'billing', 'utils'])(
+ '%s runtime entry',
+ (entryName) => {
+ const entryPath = resolve(packageRoot, `dist/${entryName}/index.mjs`);
+ const isBundleBuilt = existsSync(entryPath);
+ const runOrSkip = isBundleBuilt || process.env.CI ? it : it.skip;
+
+ runOrSkip(`stays under ${RUNTIME_ENTRY_MAX_BYTES} bytes`, () => {
+ if (!isBundleBuilt) {
+ throw new Error(
+ `Expected the built entry at ${entryPath}. Build twenty-sdk before this test.`,
+ );
+ }
+
+ expect(statSync(entryPath).size).toBeLessThan(RUNTIME_ENTRY_MAX_BYTES);
+ });
+ },
+);
diff --git a/packages/twenty-sdk/src/sdk/billing/charge-credits.ts b/packages/twenty-sdk/src/sdk/billing/charge-credits.ts
index c4b1b84e78d..f0de3fc2b32 100644
--- a/packages/twenty-sdk/src/sdk/billing/charge-credits.ts
+++ b/packages/twenty-sdk/src/sdk/billing/charge-credits.ts
@@ -1,7 +1,5 @@
-import {
- DEFAULT_API_URL_NAME,
- type UsageOperationTypeValue,
-} from 'twenty-shared/application';
+import { type UsageOperationTypeValue } from 'twenty-shared/application';
+import { DEFAULT_API_URL_NAME } from 'twenty-shared/application-runtime';
import { getApplicationAccessToken } from '@/sdk/utils/get-application-access-token';
diff --git a/packages/twenty-sdk/src/sdk/billing/get-credit-availability.ts b/packages/twenty-sdk/src/sdk/billing/get-credit-availability.ts
index b2c0ed9aeac..8989707afba 100644
--- a/packages/twenty-sdk/src/sdk/billing/get-credit-availability.ts
+++ b/packages/twenty-sdk/src/sdk/billing/get-credit-availability.ts
@@ -3,7 +3,7 @@ import {
type CreditAvailability,
type CreditUnavailableReason,
DEFAULT_API_URL_NAME,
-} from 'twenty-shared/application';
+} from 'twenty-shared/application-runtime';
import { getApplicationAccessToken } from '@/sdk/utils/get-application-access-token';
diff --git a/packages/twenty-sdk/src/sdk/logic-function/connections/list-connections.ts b/packages/twenty-sdk/src/sdk/logic-function/connections/list-connections.ts
index 5f26b298537..ab3e9e7e93f 100644
--- a/packages/twenty-sdk/src/sdk/logic-function/connections/list-connections.ts
+++ b/packages/twenty-sdk/src/sdk/logic-function/connections/list-connections.ts
@@ -1,4 +1,4 @@
-import { CONNECTION_SCOPE_BY_LEGACY_VISIBILITY } from 'twenty-shared/application';
+import { CONNECTION_SCOPE_BY_LEGACY_VISIBILITY } from 'twenty-shared/application-runtime';
import { isDefined } from 'twenty-shared/utils';
import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';
diff --git a/packages/twenty-sdk/src/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util.ts b/packages/twenty-sdk/src/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util.ts
index 70c37e24953..205b87e5a85 100644
--- a/packages/twenty-sdk/src/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util.ts
+++ b/packages/twenty-sdk/src/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util.ts
@@ -1,4 +1,4 @@
-import { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from 'twenty-shared/application';
+import { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from 'twenty-shared/application-runtime';
import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';
diff --git a/packages/twenty-sdk/src/sdk/logic-function/utils/post-graphql-request.util.ts b/packages/twenty-sdk/src/sdk/logic-function/utils/post-graphql-request.util.ts
index f59e0469b00..b23aeea12a8 100644
--- a/packages/twenty-sdk/src/sdk/logic-function/utils/post-graphql-request.util.ts
+++ b/packages/twenty-sdk/src/sdk/logic-function/utils/post-graphql-request.util.ts
@@ -1,7 +1,7 @@
import {
DEFAULT_API_URL_NAME,
DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME,
-} from 'twenty-shared/application';
+} from 'twenty-shared/application-runtime';
import { getApplicationAccessToken } from '@/sdk/utils/get-application-access-token';
diff --git a/packages/twenty-sdk/src/sdk/utils/get-application-access-token.ts b/packages/twenty-sdk/src/sdk/utils/get-application-access-token.ts
index 9b348e23882..bbce37ee857 100644
--- a/packages/twenty-sdk/src/sdk/utils/get-application-access-token.ts
+++ b/packages/twenty-sdk/src/sdk/utils/get-application-access-token.ts
@@ -1,7 +1,7 @@
import {
DEFAULT_APP_ACCESS_TOKEN_NAME,
DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME,
-} from 'twenty-shared/application';
+} from 'twenty-shared/application-runtime';
// These reach the application's own resources, so prefer the application token when the runtime injects one
export const getApplicationAccessToken = (): string | undefined =>
diff --git a/packages/twenty-sdk/src/sdk/utils/get-public-asset-url.ts b/packages/twenty-sdk/src/sdk/utils/get-public-asset-url.ts
index c87e0e34ffc..fb8a2d2fdc7 100644
--- a/packages/twenty-sdk/src/sdk/utils/get-public-asset-url.ts
+++ b/packages/twenty-sdk/src/sdk/utils/get-public-asset-url.ts
@@ -1,4 +1,4 @@
-import { DEFAULT_API_URL_NAME } from 'twenty-shared/application';
+import { DEFAULT_API_URL_NAME } from 'twenty-shared/application-runtime';
import { getApplicationAccessToken } from '@/sdk/utils/get-application-access-token';
diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth-flow.service.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth-flow.service.ts
index ec68f6ae6f7..a57ff863e81 100644
--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth-flow.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth-flow.service.ts
@@ -3,11 +3,11 @@ import { InjectRepository } from '@nestjs/typeorm';
import { IsNull, Repository } from 'typeorm';
+import { type IdentifiedAccount } from 'twenty-shared/application';
import {
CONNECTION_SCOPE_BY_LEGACY_VISIBILITY,
- type IdentifiedAccount,
LEGACY_CONNECTION_VISIBILITY_BY_SCOPE,
-} from 'twenty-shared/application';
+} from 'twenty-shared/application-runtime';
import { ConnectedAccountProvider } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth.controller.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth.controller.ts
index f19898d4ae3..740dfa89de3 100644
--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth.controller.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth.controller.ts
@@ -2,10 +2,8 @@ import { Controller, Get, Logger, Query, Res, UseGuards } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { type Response } from 'express';
-import {
- CONNECTION_SCOPE_BY_LEGACY_VISIBILITY,
- isConnectionProviderScope,
-} from 'twenty-shared/application';
+import { isConnectionProviderScope } from 'twenty-shared/application';
+import { CONNECTION_SCOPE_BY_LEGACY_VISIBILITY } from 'twenty-shared/application-runtime';
import { ApiPath, SettingsPath } from 'twenty-shared/types';
import { getSettingsPath, isDefined } from 'twenty-shared/utils';
import { Repository } from 'typeorm';
diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/services/application-connections-list.service.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/services/application-connections-list.service.ts
index 170662c9f53..da771e10608 100644
--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/services/application-connections-list.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/services/application-connections-list.service.ts
@@ -6,7 +6,7 @@ import { type FindOptionsWhere, In, Repository } from 'typeorm';
import {
CONNECTION_SCOPE_BY_LEGACY_VISIBILITY,
LEGACY_CONNECTION_VISIBILITY_BY_SCOPE,
-} from 'twenty-shared/application';
+} from 'twenty-shared/application-runtime';
import { ConnectedAccountProvider } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
diff --git a/packages/twenty-server/src/engine/core-modules/billing/app-billing/app-billing.controller.ts b/packages/twenty-server/src/engine/core-modules/billing/app-billing/app-billing.controller.ts
index 9e8bb053313..b1dc10c6ab8 100644
--- a/packages/twenty-server/src/engine/core-modules/billing/app-billing/app-billing.controller.ts
+++ b/packages/twenty-server/src/engine/core-modules/billing/app-billing/app-billing.controller.ts
@@ -19,7 +19,7 @@ import { Request } from 'express';
import {
type CreditAvailability,
type CreditUnavailableReason,
-} from 'twenty-shared/application';
+} from 'twenty-shared/application-runtime';
import { ApiPath } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
diff --git a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-executor/constants/engine-injected-env-variable-names.constant.ts b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-executor/constants/engine-injected-env-variable-names.constant.ts
index 246a452b692..cdc7b6be295 100644
--- a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-executor/constants/engine-injected-env-variable-names.constant.ts
+++ b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-executor/constants/engine-injected-env-variable-names.constant.ts
@@ -4,7 +4,7 @@ import {
DEFAULT_APP_ACCESS_TOKEN_NAME,
DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME,
DEFAULT_FUNCTIONS_URL_NAME,
-} from 'twenty-shared/application';
+} from 'twenty-shared/application-runtime';
export const ENGINE_INJECTED_ENV_VARIABLE_NAMES = new Set<string>([
DEFAULT_API_URL_NAME,
diff --git a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-executor/logic-function-executor.service.ts b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-executor/logic-function-executor.service.ts
index 5011fba0b77..b66cdfbe657 100644
--- a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-executor/logic-function-executor.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-executor/logic-function-executor.service.ts
@@ -9,7 +9,7 @@ import {
DEFAULT_APP_ACCESS_TOKEN_NAME,
DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME,
DEFAULT_FUNCTIONS_URL_NAME,
-} from 'twenty-shared/application';
+} from 'twenty-shared/application-runtime';
import {
type LogicFunctionExecutionContext,
type LogicFunctionRetryContext,
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-public-connected-account.util.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-public-connected-account.util.ts
index bd32106a392..f243cd076c9 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-public-connected-account.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-public-connected-account.util.ts
@@ -1,4 +1,4 @@
-import { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from 'twenty-shared/application';
+import { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from 'twenty-shared/application-runtime';
import { buildPublicConnectionParameters } from 'src/engine/core-modules/imap-smtp-caldav-connection/utils/build-public-connection-parameters.util';
import { type ConnectedAccountPublicDTO } from 'src/engine/metadata-modules/connected-account/dtos/connected-account-public.dto';
diff --git a/packages/twenty-server/test/integration/billing/suites/app-billing-controller.integration-spec.ts b/packages/twenty-server/test/integration/billing/suites/app-billing-controller.integration-spec.ts
index 88b26646c5d..9a5dc55a3ab 100644
--- a/packages/twenty-server/test/integration/billing/suites/app-billing-controller.integration-spec.ts
+++ b/packages/twenty-server/test/integration/billing/suites/app-billing-controller.integration-spec.ts
@@ -5,7 +5,7 @@ import {
} from 'test/integration/metadata/suites/application/utils/application-only-endpoint-request-factories.util';
import { generateAppleAdminApplicationTokenPair } from 'test/integration/utils/generate-apple-admin-application-token-pair.util';
import { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';
-import { CREDIT_UNAVAILABLE_REASONS } from 'twenty-shared/application';
+import { CREDIT_UNAVAILABLE_REASONS } from 'twenty-shared/application-runtime';
import { isDefined } from 'twenty-shared/utils';
import { type AppBillingService } from 'src/engine/core-modules/billing/app-billing/app-billing.service';
diff --git a/packages/twenty-shared/package.json b/packages/twenty-shared/package.json
index efda46614bc..8a8195fd1df 100644
--- a/packages/twenty-shared/package.json
+++ b/packages/twenty-shared/package.json
@@ -78,6 +78,11 @@
"import": "./dist/application.mjs",
"require": "./dist/application.cjs"
},
+ "./application-runtime": {
+ "types": "./dist/application-runtime/index.d.ts",
+ "import": "./dist/application-runtime.mjs",
+ "require": "./dist/application-runtime.cjs"
+ },
"./constants": {
"types": "./dist/constants/index.d.ts",
"import": "./dist/constants.mjs",
@@ -158,6 +163,7 @@
"dist",
"ai",
"application",
+ "application-runtime",
"constants",
"database-events",
"front-component-build",
@@ -182,6 +188,9 @@
"application": [
"dist/application/index.d.ts"
],
+ "application-runtime": [
+ "dist/application-runtime/index.d.ts"
+ ],
"constants": [
"dist/constants/index.d.ts"
],
diff --git a/packages/twenty-shared/project.json b/packages/twenty-shared/project.json
index 01093d5893f..9dac31d9a46 100644
--- a/packages/twenty-shared/project.json
+++ b/packages/twenty-shared/project.json
@@ -16,6 +16,8 @@
"{projectRoot}/ai/dist",
"{projectRoot}/application/package.json",
"{projectRoot}/application/dist",
+ "{projectRoot}/application-runtime/package.json",
+ "{projectRoot}/application-runtime/dist",
"{projectRoot}/constants/package.json",
"{projectRoot}/constants/dist",
"{projectRoot}/database-events/package.json",
diff --git a/packages/twenty-shared/src/application/constants/ConnectionScopeByLegacyVisibility.ts b/packages/twenty-shared/src/application-runtime/constants/ConnectionScopeByLegacyVisibility.ts
similarity index 100%
rename from packages/twenty-shared/src/application/constants/ConnectionScopeByLegacyVisibility.ts
rename to packages/twenty-shared/src/application-runtime/constants/ConnectionScopeByLegacyVisibility.ts
diff --git a/packages/twenty-shared/src/application/constants/DefaultApiKeyName.ts b/packages/twenty-shared/src/application-runtime/constants/DefaultApiKeyName.ts
similarity index 100%
rename from packages/twenty-shared/src/application/constants/DefaultApiKeyName.ts
rename to packages/twenty-shared/src/application-runtime/constants/DefaultApiKeyName.ts
diff --git a/packages/twenty-shared/src/application/constants/DefaultApiUrlName.ts b/packages/twenty-shared/src/application-runtime/constants/DefaultApiUrlName.ts
similarity index 100%
rename from packages/twenty-shared/src/application/constants/DefaultApiUrlName.ts
rename to packages/twenty-shared/src/application-runtime/constants/DefaultApiUrlName.ts
diff --git a/packages/twenty-shared/src/application/constants/DefaultAppAccessTokenName.ts b/packages/twenty-shared/src/application-runtime/constants/DefaultAppAccessTokenName.ts
similarity index 100%
rename from packages/twenty-shared/src/application/constants/DefaultAppAccessTokenName.ts
rename to packages/twenty-shared/src/application-runtime/constants/DefaultAppAccessTokenName.ts
diff --git a/packages/twenty-shared/src/application/constants/DefaultAppApplicationAccessTokenName.ts b/packages/twenty-shared/src/application-runtime/constants/DefaultAppApplicationAccessTokenName.ts
similarity index 100%
rename from packages/twenty-shared/src/application/constants/DefaultAppApplicationAccessTokenName.ts
rename to packages/twenty-shared/src/application-runtime/constants/DefaultAppApplicationAccessTokenName.ts
diff --git a/packages/twenty-shared/src/application/constants/DefaultFunctionsUrlName.ts b/packages/twenty-shared/src/application-runtime/constants/DefaultFunctionsUrlName.ts
similarity index 100%
rename from packages/twenty-shared/src/application/constants/DefaultFunctionsUrlName.ts
rename to packages/twenty-shared/src/application-runtime/constants/DefaultFunctionsUrlName.ts
diff --git a/packages/twenty-shared/src/application/constants/LegacyConnectionVisibilityByScope.ts b/packages/twenty-shared/src/application-runtime/constants/LegacyConnectionVisibilityByScope.ts
similarity index 100%
rename from packages/twenty-shared/src/application/constants/LegacyConnectionVisibilityByScope.ts
rename to packages/twenty-shared/src/application-runtime/constants/LegacyConnectionVisibilityByScope.ts
diff --git a/packages/twenty-shared/src/application/creditAvailabilityType.ts b/packages/twenty-shared/src/application-runtime/creditAvailabilityType.ts
similarity index 100%
rename from packages/twenty-shared/src/application/creditAvailabilityType.ts
rename to packages/twenty-shared/src/application-runtime/creditAvailabilityType.ts
diff --git a/packages/twenty-shared/src/application-runtime/index.ts b/packages/twenty-shared/src/application-runtime/index.ts
new file mode 100644
index 00000000000..35dd304f121
--- /dev/null
+++ b/packages/twenty-shared/src/application-runtime/index.ts
@@ -0,0 +1,21 @@
+/*
+ * _____ _
+ *|_ _|_ _____ _ __ | |_ _ _
+ * | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
+ * | | \ V V / __/ | | | |_| |_| | Any edits to this will be overridden
+ * |_| \_/\_/ \___|_| |_|\__|\__, |
+ * |___/
+ */
+
+export { CONNECTION_SCOPE_BY_LEGACY_VISIBILITY } from './constants/ConnectionScopeByLegacyVisibility';
+export { DEFAULT_API_KEY_NAME } from './constants/DefaultApiKeyName';
+export { DEFAULT_API_URL_NAME } from './constants/DefaultApiUrlName';
+export { DEFAULT_APP_ACCESS_TOKEN_NAME } from './constants/DefaultAppAccessTokenName';
+export { DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME } from './constants/DefaultAppApplicationAccessTokenName';
+export { DEFAULT_FUNCTIONS_URL_NAME } from './constants/DefaultFunctionsUrlName';
+export { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from './constants/LegacyConnectionVisibilityByScope';
+export type {
+ CreditUnavailableReason,
+ CreditAvailability,
+} from './creditAvailabilityType';
+export { CREDIT_UNAVAILABLE_REASONS } from './creditAvailabilityType';
diff --git a/packages/twenty-shared/src/application/index.ts b/packages/twenty-shared/src/application/index.ts
index 06c552bbe7b..bd8f7cbeafc 100644
--- a/packages/twenty-shared/src/application/index.ts
+++ b/packages/twenty-shared/src/application/index.ts
@@ -87,29 +87,17 @@ export { APPLICATION_FILE_UPLOAD_BATCH_SIZE } from './constants/ApplicationFileU
export { APPLICATION_WORKFLOW_UNAVAILABLE_STEP_TYPES } from './constants/ApplicationWorkflowUnavailableStepTypes';
export { ASSETS_DIR } from './constants/AssetDirectory';
export { CONNECTION_PROVIDER_SCOPES } from './constants/ConnectionProviderScopes';
-export { CONNECTION_SCOPE_BY_LEGACY_VISIBILITY } from './constants/ConnectionScopeByLegacyVisibility';
-export { DEFAULT_API_KEY_NAME } from './constants/DefaultApiKeyName';
-export { DEFAULT_API_URL_NAME } from './constants/DefaultApiUrlName';
-export { DEFAULT_APP_ACCESS_TOKEN_NAME } from './constants/DefaultAppAccessTokenName';
-export { DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME } from './constants/DefaultAppApplicationAccessTokenName';
export { DEFAULT_CONNECTION_PROVIDER_SCOPE } from './constants/DefaultConnectionProviderScope';
-export { DEFAULT_FUNCTIONS_URL_NAME } from './constants/DefaultFunctionsUrlName';
export { DEFAULT_SETTINGS_MENU_ITEM_POSITION } from './constants/DefaultSettingsMenuItemPosition';
export { FRONT_COMPONENT_SHARED_DEPENDENCIES_BUILT_PATH } from './constants/FrontComponentSharedDependenciesBuiltPath';
export { FRONT_COMPONENT_SHARED_DEPENDENCIES_IMPORT_SPECIFIER } from './constants/FrontComponentSharedDependenciesImportSpecifier';
export { FRONT_COMPONENT_WIDGET_PAGE_LAYOUT_TYPES } from './constants/FrontComponentWidgetPageLayoutTypes';
export { GENERATED_DIR } from './constants/GeneratedDirectory';
-export { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from './constants/LegacyConnectionVisibilityByScope';
export { MINIMUM_UNIVERSAL_IDENTIFIER_UUID_VERSION } from './constants/MinimumUniversalIdentifierUuidVersion';
export { NODE_ESM_CJS_BANNER } from './constants/NodeEsmCjsBanner';
export { OUTPUT_DIR } from './constants/OutputDirectory';
export { TWENTY_STANDARD_APPLICATION_NAME } from './constants/TwentyStandardApplicationName';
export { TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER } from './constants/TwentyStandardApplicationUniversalIdentifier';
-export type {
- CreditUnavailableReason,
- CreditAvailability,
-} from './creditAvailabilityType';
-export { CREDIT_UNAVAILABLE_REASONS } from './creditAvailabilityType';
export { computeDeterministicUuid } from './deterministic-identifier/compute-deterministic-uuid.util';
export type { DeterministicEntityNamespace } from './deterministic-identifier/deterministic-entity-namespace.type';
export { getAgentUniversalIdentifier } from './deterministic-identifier/get-agent-universal-identifier.util';