The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Upgrade public apps to twenty-sdk 2.37.0 and label their application variables (#24990)
martmulle3d3341fa219
diff --git a/packages/twenty-apps/public/call-recorder/package.json b/packages/twenty-apps/public/call-recorder/package.jsonindex a445e0bd440..17b9a51305b 100644--- a/packages/twenty-apps/public/call-recorder/package.json+++ b/packages/twenty-apps/public/call-recorder/package.json@@ -1,12 +1,12 @@{"name": "@twentyhq/call-recorder",- "version": "1.9.0",+ "version": "1.10.0","license": "MIT","engines": {"node": "^24.5.0","npm": "please-use-yarn","yarn": ">=4.0.2",- "twenty": ">=2.35.0"+ "twenty": ">=2.37.0"},"keywords": ["twenty-app"@@ -33,8 +33,8 @@"oxlint": "^0.16.0","react": "^19.0.0","react-dom": "^19.0.0",- "twenty-client-sdk": "2.35.0",- "twenty-sdk": "2.35.0",+ "twenty-client-sdk": "2.37.0",+ "twenty-sdk": "2.37.0","typescript": "^5.9.3","vite-tsconfig-paths": "^4.2.1","vitest": "^4.1.9"diff --git a/packages/twenty-apps/public/call-recorder/src/application-config.ts b/packages/twenty-apps/public/call-recorder/src/application-config.tsindex b0c50cb48bc..41b7df9bea4 100644--- a/packages/twenty-apps/public/call-recorder/src/application-config.ts+++ b/packages/twenty-apps/public/call-recorder/src/application-config.ts@@ -50,6 +50,7 @@ export default defineApplication({applicationVariables: {[CALL_RECORDER_NAME_ENV_VAR_NAME]: {universalIdentifier: CALL_RECORDER_NAME_APP_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Recorder name',description: 'Display name the call recorder uses when it joins a call.',isSecret: false,type: FieldType.TEXT,@@ -58,6 +59,7 @@ export default defineApplication({[CALL_RECORDER_JOIN_EARLY_MINUTES_ENV_VAR_NAME]: {universalIdentifier:CALL_RECORDER_JOIN_EARLY_MINUTES_APP_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Join early (minutes)',description:'How many minutes before the meeting start time the bot should join. Set to 0 to join at the scheduled start time.',isSecret: false,@@ -67,6 +69,7 @@ export default defineApplication({[CALL_RECORDER_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME]: {universalIdentifier:CALL_RECORDER_WAITING_ROOM_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Waiting room timeout (seconds)',description:'How many seconds the bot waits in a meeting lobby before giving up and leaving.',isSecret: false,@@ -76,6 +79,7 @@ export default defineApplication({[CALL_RECORDER_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME]: {universalIdentifier:CALL_RECORDER_NOONE_JOINED_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'No-one joined timeout (seconds)',description:'How many seconds the bot stays in an empty meeting when no one else ever joins.',isSecret: false,@@ -85,6 +89,7 @@ export default defineApplication({[CALL_RECORDER_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME]: {universalIdentifier:CALL_RECORDER_EVERYONE_LEFT_TIMEOUT_SECONDS_APP_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Everyone left timeout (seconds)',description:'How many seconds the bot keeps recording after everyone else leaves the meeting.',isSecret: false,@@ -94,6 +99,7 @@ export default defineApplication({[CALL_RECORDER_TRANSCRIPT_PROVIDER_ENV_VAR_NAME]: {universalIdentifier:CALL_RECORDER_TRANSCRIPT_PROVIDER_APP_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Transcript provider',description:'Speech-to-text provider used to transcribe recordings once the call ends. Recall.ai transcription needs no extra setup. Gladia re-detects the spoken language per utterance, which transcribes mixed-language calls more accurately, but requires a Gladia API key in the Recall.ai dashboard (Transcription > Gladia) for each region in use.',isSecret: false,@@ -107,6 +113,7 @@ export default defineApplication({[CALL_RECORDER_SUMMARY_ENABLED_ENV_VAR_NAME]: {universalIdentifier:CALL_RECORDER_SUMMARY_ENABLED_APP_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'AI summaries',description:'Whether AI summaries are generated for call recordings. Set to false to disable and avoid AI credit usage.',isSecret: false,@@ -116,6 +123,7 @@ export default defineApplication({[CALL_RECORDER_ADDITIONAL_SUMMARY_PROMPT_ENV_VAR_NAME]: {universalIdentifier:CALL_RECORDER_ADDITIONAL_SUMMARY_PROMPT_APP_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Additional summary prompt',description:'Extra instructions appended to the built-in summary prompt (tone, language, focus areas). Leave empty to use the built-in prompt alone.',isSecret: false,@@ -124,6 +132,7 @@ export default defineApplication({[CALL_RECORDER_USE_WORKSPACE_LOGO_ENV_VAR_NAME]: {universalIdentifier:CALL_RECORDER_USE_WORKSPACE_LOGO_APP_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Use workspace logo',description:'Whether the bot displays the workspace logo on its camera tile while in a call. Set to false to disable.',isSecret: false,@@ -133,6 +142,7 @@ export default defineApplication({[CALL_RECORDER_BOT_IMAGE_BACKGROUND_ENV_VAR_NAME]: {universalIdentifier:CALL_RECORDER_BOT_IMAGE_BACKGROUND_APP_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Bot camera background color',description:'Hex color (e.g. #ffffff) drawn behind the workspace logo on the bot camera tile. Defaults to dark gray when unset or invalid.',isSecret: false,diff --git a/packages/twenty-apps/public/call-recorder/yarn.lock b/packages/twenty-apps/public/call-recorder/yarn.lockindex 04b20647355..3781f12d914 100644--- a/packages/twenty-apps/public/call-recorder/yarn.lock+++ b/packages/twenty-apps/public/call-recorder/yarn.lock@@ -973,8 +973,8 @@ __metadata:react: "npm:^19.0.0"react-dom: "npm:^19.0.0"sharp: "npm:^0.35.3"- twenty-client-sdk: "npm:2.35.0"- twenty-sdk: "npm:2.35.0"+ twenty-client-sdk: "npm:2.37.0"+ twenty-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"vite-tsconfig-paths: "npm:^4.2.1"vitest: "npm:^4.1.9"@@ -2841,22 +2841,22 @@ __metadata:languageName: nodelinkType: hard-"twenty-client-sdk@npm:2.35.0":- version: 2.35.0- resolution: "twenty-client-sdk@npm:2.35.0"+"twenty-client-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-client-sdk@npm:2.37.0"dependencies:"@genql/runtime": "npm:^2.10.0"esbuild: "npm:^0.28.1"graphql: "npm:^16.8.1"lodash: "npm:^4.17.21"prettier: "npm:^3.8.3"- checksum: 10c0/2ce66e4647c6c6f4b4897896858f8abab3dd8aa6112b8c5c6387082ce484b6a2fb9b90060526601b13329c207ae530d25a6ba80197868a8653156505e0736f5d+ checksum: 10c0/0250a95b803a468f7bd9261b7a55a862b9b6daf840adf21ab7a4067906761e710703f79f7571f6400716afc4e612eda7da2bb1948c23a5adff07d59cc30ba10elanguageName: nodelinkType: hard-"twenty-sdk@npm:2.35.0":- version: 2.35.0- resolution: "twenty-sdk@npm:2.35.0"+"twenty-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-sdk@npm:2.37.0"dependencies:"@sniptt/guards": "npm:^0.2.0"axios: "npm:^1.16.0"@@ -2875,12 +2875,12 @@ __metadata:semver: "npm:7.6.3"sharp: "npm:^0.35.3"tinyglobby: "npm:^0.2.15"- twenty-client-sdk: "npm:2.35.0"+ twenty-client-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"uuid: "npm:^13.0.2"bin:twenty: dist/cli.cjs- checksum: 10c0/4cb27d3b449b2fbe692516cc29b2689232e4f40de1181132ea3d9743a1fc1c9284204ddf50632fc737d06748ff9c6903630124c02382b4f61eec120beaa9f9d5+ checksum: 10c0/ddbc01430cfbcc878d2b23851b5f5ae7a76fb453d5a578e876ab7e999093a62aa8c025d22b1095d20fad363f8e6cf885a7c002ad64498fdbb9dfc695a1fc1f9clanguageName: nodelinkType: harddiff --git a/packages/twenty-apps/public/discord/package.json b/packages/twenty-apps/public/discord/package.jsonindex 7a32d5111e0..4577c0e2651 100644--- a/packages/twenty-apps/public/discord/package.json+++ b/packages/twenty-apps/public/discord/package.json@@ -1,12 +1,13 @@{"name": "@twentyhq/discord",- "version": "0.1.0",+ "version": "0.2.0","description": "Discord workflow connector for Twenty","license": "MIT","engines": {"node": "^24.5.0","npm": "please-use-yarn",- "yarn": ">=4.0.2"+ "yarn": ">=4.0.2",+ "twenty": ">=2.37.0"},"keywords": ["twenty-app"@@ -28,8 +29,8 @@"oxlint": "^0.16.0","react": "^18.2.0","react-dom": "^18.2.0",- "twenty-client-sdk": "2.31.0",- "twenty-sdk": "2.31.0",+ "twenty-client-sdk": "2.37.0",+ "twenty-sdk": "2.37.0","typescript": "^5.9.3","vite-tsconfig-paths": "^4.2.1","vitest": "^4.0.0"diff --git a/packages/twenty-apps/public/discord/src/application.config.ts b/packages/twenty-apps/public/discord/src/application.config.tsindex d20cab34dcc..a7bab935c6f 100644--- a/packages/twenty-apps/public/discord/src/application.config.ts+++ b/packages/twenty-apps/public/discord/src/application.config.ts@@ -20,6 +20,7 @@ export default defineApplication({applicationVariables: {DISCORD_BOT_TOKEN: {universalIdentifier: DISCORD_BOT_TOKEN_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Discord bot token',description:'Bot token from your Discord application (Developer Portal → Bot tab → Reset Token). Used with the `Bot` auth prefix to call the Discord REST API. The same token authenticates the bot across every guild it has been invited to.',isSecret: true,diff --git a/packages/twenty-apps/public/discord/yarn.lock b/packages/twenty-apps/public/discord/yarn.lockindex a9be4cbe394..a322daea986 100644--- a/packages/twenty-apps/public/discord/yarn.lock+++ b/packages/twenty-apps/public/discord/yarn.lock@@ -971,8 +971,8 @@ __metadata:oxlint: "npm:^0.16.0"react: "npm:^18.2.0"react-dom: "npm:^18.2.0"- twenty-client-sdk: "npm:2.31.0"- twenty-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"+ twenty-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"vite-tsconfig-paths: "npm:^4.2.1"vitest: "npm:^4.0.0"@@ -2912,22 +2912,22 @@ __metadata:languageName: nodelinkType: hard-"twenty-client-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-client-sdk@npm:2.31.0"+"twenty-client-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-client-sdk@npm:2.37.0"dependencies:"@genql/runtime": "npm:^2.10.0"esbuild: "npm:^0.28.1"graphql: "npm:^16.8.1"lodash: "npm:^4.17.21"prettier: "npm:^3.8.3"- checksum: 10c0/03a476db2dd6092875d6929a7f96a72d79c17d95fd9e42963ba2530b3f5ceec3760a96946ec032144976c75004ee2bbbb5791bb2583dd69f7f91c6ac20cd0337+ checksum: 10c0/0250a95b803a468f7bd9261b7a55a862b9b6daf840adf21ab7a4067906761e710703f79f7571f6400716afc4e612eda7da2bb1948c23a5adff07d59cc30ba10elanguageName: nodelinkType: hard-"twenty-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-sdk@npm:2.31.0"+"twenty-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-sdk@npm:2.37.0"dependencies:"@sniptt/guards": "npm:^0.2.0"axios: "npm:^1.16.0"@@ -2946,12 +2946,12 @@ __metadata:semver: "npm:7.6.3"sharp: "npm:^0.35.3"tinyglobby: "npm:^0.2.15"- twenty-client-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"uuid: "npm:^13.0.2"bin:twenty: dist/cli.cjs- checksum: 10c0/ceb42a2abb29b43243c1db41b8de6ef5a5c3140cafc1cd663026d034b9aa010aa140f656af742d5804b89ace2be9e7eea63b3c4279959aad86253f59c1b95da0+ checksum: 10c0/ddbc01430cfbcc878d2b23851b5f5ae7a76fb453d5a578e876ab7e999093a62aa8c025d22b1095d20fad363f8e6cf885a7c002ad64498fdbb9dfc695a1fc1f9clanguageName: nodelinkType: harddiff --git a/packages/twenty-apps/public/exa/package.json b/packages/twenty-apps/public/exa/package.jsonindex 9534db996f5..a524d2ac36e 100644--- a/packages/twenty-apps/public/exa/package.json+++ b/packages/twenty-apps/public/exa/package.json@@ -29,8 +29,8 @@"@types/node": "^24.7.2","@typescript/native-preview": "^7.0.0-dev.20260116.1","oxlint": "^0.16.0",- "twenty-client-sdk": "2.31.0",- "twenty-sdk": "2.31.0",+ "twenty-client-sdk": "2.37.0",+ "twenty-sdk": "2.37.0","typescript": "^5.9.3","vite-tsconfig-paths": "^4.2.1","vitest": "^4.0.0"diff --git a/packages/twenty-apps/public/exa/yarn.lock b/packages/twenty-apps/public/exa/yarn.lockindex 0d333929dd3..0ea6bce77ca 100644--- a/packages/twenty-apps/public/exa/yarn.lock+++ b/packages/twenty-apps/public/exa/yarn.lock@@ -969,8 +969,8 @@ __metadata:"@typescript/native-preview": "npm:^7.0.0-dev.20260116.1"exa-js: "npm:^2.12.1"oxlint: "npm:^0.16.0"- twenty-client-sdk: "npm:2.31.0"- twenty-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"+ twenty-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"vite-tsconfig-paths: "npm:^4.2.1"vitest: "npm:^4.0.0"@@ -2884,22 +2884,22 @@ __metadata:languageName: nodelinkType: hard-"twenty-client-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-client-sdk@npm:2.31.0"+"twenty-client-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-client-sdk@npm:2.37.0"dependencies:"@genql/runtime": "npm:^2.10.0"esbuild: "npm:^0.28.1"graphql: "npm:^16.8.1"lodash: "npm:^4.17.21"prettier: "npm:^3.8.3"- checksum: 10c0/03a476db2dd6092875d6929a7f96a72d79c17d95fd9e42963ba2530b3f5ceec3760a96946ec032144976c75004ee2bbbb5791bb2583dd69f7f91c6ac20cd0337+ checksum: 10c0/0250a95b803a468f7bd9261b7a55a862b9b6daf840adf21ab7a4067906761e710703f79f7571f6400716afc4e612eda7da2bb1948c23a5adff07d59cc30ba10elanguageName: nodelinkType: hard-"twenty-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-sdk@npm:2.31.0"+"twenty-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-sdk@npm:2.37.0"dependencies:"@sniptt/guards": "npm:^0.2.0"axios: "npm:^1.16.0"@@ -2918,12 +2918,12 @@ __metadata:semver: "npm:7.6.3"sharp: "npm:^0.35.3"tinyglobby: "npm:^0.2.15"- twenty-client-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"uuid: "npm:^13.0.2"bin:twenty: dist/cli.cjs- checksum: 10c0/ceb42a2abb29b43243c1db41b8de6ef5a5c3140cafc1cd663026d034b9aa010aa140f656af742d5804b89ace2be9e7eea63b3c4279959aad86253f59c1b95da0+ checksum: 10c0/ddbc01430cfbcc878d2b23851b5f5ae7a76fb453d5a578e876ab7e999093a62aa8c025d22b1095d20fad363f8e6cf885a7c002ad64498fdbb9dfc695a1fc1f9clanguageName: nodelinkType: harddiff --git a/packages/twenty-apps/public/fireflies/package.json b/packages/twenty-apps/public/fireflies/package.jsonindex 5cc78bae838..bf94117499a 100644--- a/packages/twenty-apps/public/fireflies/package.json+++ b/packages/twenty-apps/public/fireflies/package.json@@ -1,13 +1,13 @@{"name": "@twentyhq/fireflies",- "version": "0.3.0",+ "version": "0.4.0","description": "Fireflies call-transcript connector for Twenty","license": "MIT","engines": {"node": "^24.5.0","npm": "please-use-yarn","yarn": ">=4.0.2",- "twenty": ">=2.31.0"+ "twenty": ">=2.37.0"},"keywords": ["twenty-app"@@ -35,8 +35,8 @@"oxlint": "^0.16.0","react": "^18.2.0","react-dom": "^18.2.0",- "twenty-client-sdk": "2.31.0",- "twenty-sdk": "2.31.0",+ "twenty-client-sdk": "2.37.0",+ "twenty-sdk": "2.37.0","twenty-ui": "^1.0.0-alpha.1","typescript": "^5.9.3","use-debounce": "^10.0.0",diff --git a/packages/twenty-apps/public/fireflies/src/application.config.ts b/packages/twenty-apps/public/fireflies/src/application.config.tsindex 39e94637f89..8311a11a530 100644--- a/packages/twenty-apps/public/fireflies/src/application.config.ts+++ b/packages/twenty-apps/public/fireflies/src/application.config.ts@@ -25,6 +25,7 @@ export default defineApplication({applicationVariables: {FIREFLIES_API_KEY: {universalIdentifier: FIREFLIES_API_KEY_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Fireflies API key',description:'Your Fireflies API key (Fireflies → Integrations → Fireflies API).',isSecret: true,@@ -32,6 +33,7 @@ export default defineApplication({FIREFLIES_WEBHOOK_SECRET: {universalIdentifier:FIREFLIES_WEBHOOK_SECRET_VARIABLE_UNIVERSAL_IDENTIFIER,+ label: 'Fireflies webhook secret',description: 'Signing secret from the Fireflies Webhooks V2 setup page.',isSecret: true,},diff --git a/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill-batch.test.ts b/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill-batch.test.tsindex 6336c11e1d3..caa38a56129 100644--- a/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill-batch.test.ts+++ b/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill-batch.test.ts@@ -8,6 +8,7 @@ import {import firefliesBackfillBatchLogicFunction from 'src/logic-functions/fireflies-backfill-batch';import { FIREFLIES_BACKFILL_BATCH_SIZE } from 'src/logic-functions/constants/fireflies-backfill-batch-size.constant';import { computeCallRecordingIdForFirefliesMeeting } from 'src/logic-functions/utils/compute-call-recording-id-for-fireflies-meeting';+import { LOGIC_FUNCTION_EXECUTION_CONTEXT } from 'src/logic-functions/__tests__/logic-function-execution-context.test-support';const queryMock = vi.hoisted(() => vi.fn());const mutationMock = vi.hoisted(() => vi.fn());@@ -57,9 +58,12 @@ describe('firefliesBackfillBatchLogicFunction', () => {serveFirefliesApi([], fetchMock);vi.useFakeTimers();- const resultPromise = firefliesBackfillBatchLogicFunction.config.handler({- transcriptIds: ['call-1', 'call-2'],- });+ const resultPromise = firefliesBackfillBatchLogicFunction.config.handler(+ {+ transcriptIds: ['call-1', 'call-2'],+ },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ );await vi.runAllTimersAsync();@@ -93,9 +97,12 @@ describe('firefliesBackfillBatchLogicFunction', () => {],});- const result = await firefliesBackfillBatchLogicFunction.config.handler({- transcriptIds: ['call-1'],- });+ const result = await firefliesBackfillBatchLogicFunction.config.handler(+ {+ transcriptIds: ['call-1'],+ },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ );expect(result).toEqual(expect.objectContaining({ status: 'completed', skippedCallCount: 1 }),@@ -118,9 +125,12 @@ describe('firefliesBackfillBatchLogicFunction', () => {);vi.stubGlobal('fetch', fetchMock);- const resultPromise = firefliesBackfillBatchLogicFunction.config.handler({- transcriptIds: ['call-1'],- });+ const resultPromise = firefliesBackfillBatchLogicFunction.config.handler(+ {+ transcriptIds: ['call-1'],+ },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ );const resultExpectation = expect(resultPromise).rejects.toThrow('transient Fireflies API error',);@@ -140,18 +150,24 @@ describe('firefliesBackfillBatchLogicFunction', () => {it('throws on an invalid job payload', async () => {await expect(- firefliesBackfillBatchLogicFunction.config.handler({ transcriptIds: [] }),+ firefliesBackfillBatchLogicFunction.config.handler(+ { transcriptIds: [] },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ ),).rejects.toThrow('requires 1 to 20 non-empty transcript ids');});it('throws when a job payload exceeds the configured batch size', async () => {await expect(- firefliesBackfillBatchLogicFunction.config.handler({- transcriptIds: Array.from(- { length: FIREFLIES_BACKFILL_BATCH_SIZE + 1 },- (_, transcriptIndex) => `call-${transcriptIndex}`,- ),- }),+ firefliesBackfillBatchLogicFunction.config.handler(+ {+ transcriptIds: Array.from(+ { length: FIREFLIES_BACKFILL_BATCH_SIZE + 1 },+ (_, transcriptIndex) => `call-${transcriptIndex}`,+ ),+ },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ ),).rejects.toThrow('requires 1 to 20 non-empty transcript ids');});@@ -159,9 +175,12 @@ describe('firefliesBackfillBatchLogicFunction', () => {vi.stubEnv('FIREFLIES_API_KEY', '');await expect(- firefliesBackfillBatchLogicFunction.config.handler({- transcriptIds: ['call-1'],- }),+ firefliesBackfillBatchLogicFunction.config.handler(+ {+ transcriptIds: ['call-1'],+ },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ ),).rejects.toThrow('Fireflies is not configured');});});diff --git a/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill-worker.test.ts b/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill-worker.test.tsindex f4e9b07f8f8..9a8762f4e38 100644--- a/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill-worker.test.ts+++ b/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill-worker.test.ts@@ -5,6 +5,7 @@ import {serveFirefliesApi,} from 'src/logic-functions/flows/__tests__/import-missing-fireflies-calls.test-support';import firefliesBackfillWorkerLogicFunction from 'src/logic-functions/fireflies-backfill-worker';+import { LOGIC_FUNCTION_EXECUTION_CONTEXT } from 'src/logic-functions/__tests__/logic-function-execution-context.test-support';const fetchMock = vi.fn();const enqueueJobMock = vi.hoisted(() => vi.fn());@@ -48,7 +49,10 @@ describe('firefliesBackfillWorkerLogicFunction', () => {it('rejects an invalid worker payload', async () => {await expect(- firefliesBackfillWorkerLogicFunction.config.handler({ days: 0 }),+ firefliesBackfillWorkerLogicFunction.config.handler(+ { days: 0 },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ ),).rejects.toThrow('requires a valid days window');});@@ -62,9 +66,12 @@ describe('firefliesBackfillWorkerLogicFunction', () => {serveFirefliesApi([transcripts], fetchMock);- const result = await firefliesBackfillWorkerLogicFunction.config.handler({- days: 30,- });+ const result = await firefliesBackfillWorkerLogicFunction.config.handler(+ {+ days: 30,+ },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ );expect(result).toEqual(expect.objectContaining({@@ -106,7 +113,10 @@ describe('firefliesBackfillWorkerLogicFunction', () => {.mockRejectedValueOnce(new Error('Network failed'));await expect(- firefliesBackfillWorkerLogicFunction.config.handler({ days: 30 }),+ firefliesBackfillWorkerLogicFunction.config.handler(+ { days: 30 },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ ),).rejects.toThrow('Fireflies backfill enqueued 1 of 2 batches before enqueue failed: Network failed',);@@ -115,7 +125,10 @@ describe('firefliesBackfillWorkerLogicFunction', () => {it('fails discovery when Fireflies listing fails', async () => {await expect(- firefliesBackfillWorkerLogicFunction.config.handler({ days: 30 }),+ firefliesBackfillWorkerLogicFunction.config.handler(+ { days: 30 },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ ),).rejects.toThrow('Fireflies backfill listing failed');expect(enqueueJobMock).not.toHaveBeenCalled();});@@ -123,9 +136,12 @@ describe('firefliesBackfillWorkerLogicFunction', () => {it('skips discovery when the Fireflies api key is missing', async () => {vi.stubEnv('FIREFLIES_API_KEY', '');- const result = await firefliesBackfillWorkerLogicFunction.config.handler({- days: 30,- });+ const result = await firefliesBackfillWorkerLogicFunction.config.handler(+ {+ days: 30,+ },+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ );expect(result).toEqual(expect.objectContaining({ outcome: 'not-configured' }),diff --git a/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill.test.ts b/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill.test.tsindex b5e730c5914..59a16c12818 100644--- a/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill.test.ts+++ b/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-backfill.test.ts@@ -3,6 +3,7 @@ import { type RoutePayload } from 'twenty-sdk/define';import { FIREFLIES_BACKFILL_WORKER_LOGIC_FUNCTION_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';import firefliesBackfillLogicFunction from 'src/logic-functions/fireflies-backfill';+import { LOGIC_FUNCTION_EXECUTION_CONTEXT } from 'src/logic-functions/__tests__/logic-function-execution-context.test-support';const enqueueJobMock = vi.hoisted(() => vi.fn());@@ -49,6 +50,7 @@ describe('firefliesBackfillLogicFunction', () => {it('rejects an empty route body', async () => {const result = await firefliesBackfillLogicFunction.config.handler(buildRoutePayload(null),+ LOGIC_FUNCTION_EXECUTION_CONTEXT,);expect(result).toEqual({@@ -63,6 +65,7 @@ describe('firefliesBackfillLogicFunction', () => {const result = await firefliesBackfillLogicFunction.config.handler(buildRoutePayload({ days: 30 }),+ LOGIC_FUNCTION_EXECUTION_CONTEXT,);expect(result).toEqual({@@ -75,6 +78,7 @@ describe('firefliesBackfillLogicFunction', () => {it('enqueues discovery instead of listing transcripts in the route', async () => {const result = await firefliesBackfillLogicFunction.config.handler(buildRoutePayload({ days: 30 }),+ LOGIC_FUNCTION_EXECUTION_CONTEXT,);expect(result).toEqual({ outcome: 'started' });diff --git a/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-daily-healer.test.ts b/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-daily-healer.test.tsindex c21f01eb70a..ef0d4b016f2 100644--- a/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-daily-healer.test.ts+++ b/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/fireflies-daily-healer.test.ts@@ -1,6 +1,7 @@import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import firefliesDailyHealerLogicFunction from 'src/logic-functions/fireflies-daily-healer';+import { LOGIC_FUNCTION_EXECUTION_CONTEXT } from 'src/logic-functions/__tests__/logic-function-execution-context.test-support';const fetchMock = vi.fn();const enqueueJobMock = vi.hoisted(() => vi.fn());@@ -50,7 +51,10 @@ describe('firefliesDailyHealerLogicFunction', () => {}),);- const result = await firefliesDailyHealerLogicFunction.config.handler();+ const result = await firefliesDailyHealerLogicFunction.config.handler(+ {},+ LOGIC_FUNCTION_EXECUTION_CONTEXT,+ );const [, request] = fetchMock.mock.calls[0];const { variables } = JSON.parse(String((request as RequestInit).body)) as {diff --git a/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/logic-function-execution-context.test-support.ts b/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/logic-function-execution-context.test-support.tsnew file mode 100644index 00000000000..6a49069bc17--- /dev/null+++ b/packages/twenty-apps/public/fireflies/src/logic-functions/__tests__/logic-function-execution-context.test-support.ts@@ -0,0 +1,9 @@+import { type LogicFunctionExecutionContext } from 'twenty-sdk/logic-function';++export const LOGIC_FUNCTION_EXECUTION_CONTEXT: LogicFunctionExecutionContext = {+ retryCount: 0,+ maxRetries: 3,+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',+ userWorkspaceId: null,+ workspaceMemberId: null,+};diff --git a/packages/twenty-apps/public/fireflies/yarn.lock b/packages/twenty-apps/public/fireflies/yarn.lockindex fdf8a516c5c..3da8658ef74 100644--- a/packages/twenty-apps/public/fireflies/yarn.lock+++ b/packages/twenty-apps/public/fireflies/yarn.lock@@ -1393,8 +1393,8 @@ __metadata:oxlint: "npm:^0.16.0"react: "npm:^18.2.0"react-dom: "npm:^18.2.0"- twenty-client-sdk: "npm:2.31.0"- twenty-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"+ twenty-sdk: "npm:2.37.0"twenty-ui: "npm:^1.0.0-alpha.1"typescript: "npm:^5.9.3"use-debounce: "npm:^10.0.0"@@ -3668,22 +3668,22 @@ __metadata:languageName: nodelinkType: hard-"twenty-client-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-client-sdk@npm:2.31.0"+"twenty-client-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-client-sdk@npm:2.37.0"dependencies:"@genql/runtime": "npm:^2.10.0"esbuild: "npm:^0.28.1"graphql: "npm:^16.8.1"lodash: "npm:^4.17.21"prettier: "npm:^3.8.3"- checksum: 10c0/03a476db2dd6092875d6929a7f96a72d79c17d95fd9e42963ba2530b3f5ceec3760a96946ec032144976c75004ee2bbbb5791bb2583dd69f7f91c6ac20cd0337+ checksum: 10c0/0250a95b803a468f7bd9261b7a55a862b9b6daf840adf21ab7a4067906761e710703f79f7571f6400716afc4e612eda7da2bb1948c23a5adff07d59cc30ba10elanguageName: nodelinkType: hard-"twenty-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-sdk@npm:2.31.0"+"twenty-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-sdk@npm:2.37.0"dependencies:"@sniptt/guards": "npm:^0.2.0"axios: "npm:^1.16.0"@@ -3702,12 +3702,12 @@ __metadata:semver: "npm:7.6.3"sharp: "npm:^0.35.3"tinyglobby: "npm:^0.2.15"- twenty-client-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"uuid: "npm:^13.0.2"bin:twenty: dist/cli.cjs- checksum: 10c0/ceb42a2abb29b43243c1db41b8de6ef5a5c3140cafc1cd663026d034b9aa010aa140f656af742d5804b89ace2be9e7eea63b3c4279959aad86253f59c1b95da0+ checksum: 10c0/ddbc01430cfbcc878d2b23851b5f5ae7a76fb453d5a578e876ab7e999093a62aa8c025d22b1095d20fad363f8e6cf885a7c002ad64498fdbb9dfc695a1fc1f9clanguageName: nodelinkType: harddiff --git a/packages/twenty-apps/public/last-contact/package.json b/packages/twenty-apps/public/last-contact/package.jsonindex 7638aef220d..4e7dc653043 100644--- a/packages/twenty-apps/public/last-contact/package.json+++ b/packages/twenty-apps/public/last-contact/package.json@@ -28,8 +28,8 @@"oxlint": "^0.16.0","react": "^19.0.0","react-dom": "^19.0.0",- "twenty-client-sdk": "2.31.0",- "twenty-sdk": "2.31.0",+ "twenty-client-sdk": "2.37.0",+ "twenty-sdk": "2.37.0","typescript": "^5.9.3","vite-tsconfig-paths": "^4.2.1","vitest": "^4.0.0"diff --git a/packages/twenty-apps/public/last-contact/yarn.lock b/packages/twenty-apps/public/last-contact/yarn.lockindex 776da185dc0..d60fbd60287 100644--- a/packages/twenty-apps/public/last-contact/yarn.lock+++ b/packages/twenty-apps/public/last-contact/yarn.lock@@ -971,8 +971,8 @@ __metadata:oxlint: "npm:^0.16.0"react: "npm:^19.0.0"react-dom: "npm:^19.0.0"- twenty-client-sdk: "npm:2.31.0"- twenty-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"+ twenty-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"vite-tsconfig-paths: "npm:^4.2.1"vitest: "npm:^4.0.0"@@ -2857,22 +2857,22 @@ __metadata:languageName: nodelinkType: hard-"twenty-client-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-client-sdk@npm:2.31.0"+"twenty-client-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-client-sdk@npm:2.37.0"dependencies:"@genql/runtime": "npm:^2.10.0"esbuild: "npm:^0.28.1"graphql: "npm:^16.8.1"lodash: "npm:^4.17.21"prettier: "npm:^3.8.3"- checksum: 10c0/03a476db2dd6092875d6929a7f96a72d79c17d95fd9e42963ba2530b3f5ceec3760a96946ec032144976c75004ee2bbbb5791bb2583dd69f7f91c6ac20cd0337+ checksum: 10c0/0250a95b803a468f7bd9261b7a55a862b9b6daf840adf21ab7a4067906761e710703f79f7571f6400716afc4e612eda7da2bb1948c23a5adff07d59cc30ba10elanguageName: nodelinkType: hard-"twenty-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-sdk@npm:2.31.0"+"twenty-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-sdk@npm:2.37.0"dependencies:"@sniptt/guards": "npm:^0.2.0"axios: "npm:^1.16.0"@@ -2891,12 +2891,12 @@ __metadata:semver: "npm:7.6.3"sharp: "npm:^0.35.3"tinyglobby: "npm:^0.2.15"- twenty-client-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"uuid: "npm:^13.0.2"bin:twenty: dist/cli.cjs- checksum: 10c0/ceb42a2abb29b43243c1db41b8de6ef5a5c3140cafc1cd663026d034b9aa010aa140f656af742d5804b89ace2be9e7eea63b3c4279959aad86253f59c1b95da0+ checksum: 10c0/ddbc01430cfbcc878d2b23851b5f5ae7a76fb453d5a578e876ab7e999093a62aa8c025d22b1095d20fad363f8e6cf885a7c002ad64498fdbb9dfc695a1fc1f9clanguageName: nodelinkType: harddiff --git a/packages/twenty-apps/public/linear/package.json b/packages/twenty-apps/public/linear/package.jsonindex efae0143dd7..c681a243dc5 100644--- a/packages/twenty-apps/public/linear/package.json+++ b/packages/twenty-apps/public/linear/package.json@@ -1,12 +1,13 @@{"name": "@twentyhq/linear",- "version": "0.1.0",+ "version": "0.2.0","description": "Linear integration for Twenty. Connect a user's Linear account and create issues from logic functions.","license": "MIT","engines": {"node": "^24.5.0","npm": "please-use-yarn",- "yarn": ">=4.0.2"+ "yarn": ">=4.0.2",+ "twenty": ">=2.37.0"},"keywords": ["twenty-app"@@ -28,8 +29,8 @@"oxlint": "^0.16.0","react": "^18.2.0","react-dom": "^18.2.0",- "twenty-client-sdk": "2.31.0",- "twenty-sdk": "2.31.0",+ "twenty-client-sdk": "2.37.0",+ "twenty-sdk": "2.37.0","typescript": "^5.9.3","vite-tsconfig-paths": "^4.2.1","vitest": "^4.0.0"diff --git a/packages/twenty-apps/public/linear/yarn.lock b/packages/twenty-apps/public/linear/yarn.lockindex 4c3957c0c2f..98876adb273 100644--- a/packages/twenty-apps/public/linear/yarn.lock+++ b/packages/twenty-apps/public/linear/yarn.lock@@ -971,8 +971,8 @@ __metadata:oxlint: "npm:^0.16.0"react: "npm:^18.2.0"react-dom: "npm:^18.2.0"- twenty-client-sdk: "npm:2.31.0"- twenty-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"+ twenty-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"vite-tsconfig-paths: "npm:^4.2.1"vitest: "npm:^4.0.0"@@ -2912,22 +2912,22 @@ __metadata:languageName: nodelinkType: hard-"twenty-client-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-client-sdk@npm:2.31.0"+"twenty-client-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-client-sdk@npm:2.37.0"dependencies:"@genql/runtime": "npm:^2.10.0"esbuild: "npm:^0.28.1"graphql: "npm:^16.8.1"lodash: "npm:^4.17.21"prettier: "npm:^3.8.3"- checksum: 10c0/03a476db2dd6092875d6929a7f96a72d79c17d95fd9e42963ba2530b3f5ceec3760a96946ec032144976c75004ee2bbbb5791bb2583dd69f7f91c6ac20cd0337+ checksum: 10c0/0250a95b803a468f7bd9261b7a55a862b9b6daf840adf21ab7a4067906761e710703f79f7571f6400716afc4e612eda7da2bb1948c23a5adff07d59cc30ba10elanguageName: nodelinkType: hard-"twenty-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-sdk@npm:2.31.0"+"twenty-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-sdk@npm:2.37.0"dependencies:"@sniptt/guards": "npm:^0.2.0"axios: "npm:^1.16.0"@@ -2946,12 +2946,12 @@ __metadata:semver: "npm:7.6.3"sharp: "npm:^0.35.3"tinyglobby: "npm:^0.2.15"- twenty-client-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"uuid: "npm:^13.0.2"bin:twenty: dist/cli.cjs- checksum: 10c0/ceb42a2abb29b43243c1db41b8de6ef5a5c3140cafc1cd663026d034b9aa010aa140f656af742d5804b89ace2be9e7eea63b3c4279959aad86253f59c1b95da0+ checksum: 10c0/ddbc01430cfbcc878d2b23851b5f5ae7a76fb453d5a578e876ab7e999093a62aa8c025d22b1095d20fad363f8e6cf885a7c002ad64498fdbb9dfc695a1fc1f9clanguageName: nodelinkType: harddiff --git a/packages/twenty-apps/public/people-data-labs/package.json b/packages/twenty-apps/public/people-data-labs/package.jsonindex 63e8a065a50..d9f446d12a2 100644--- a/packages/twenty-apps/public/people-data-labs/package.json+++ b/packages/twenty-apps/public/people-data-labs/package.json@@ -29,8 +29,8 @@"oxlint": "^0.16.0","react": "^19.2.0","react-dom": "^19.2.0",- "twenty-client-sdk": "2.31.0",- "twenty-sdk": "2.31.0",+ "twenty-client-sdk": "2.37.0",+ "twenty-sdk": "2.37.0","typescript": "^5.9.3","vite-tsconfig-paths": "^4.2.1","vitest": "^4.0.0"diff --git a/packages/twenty-apps/public/people-data-labs/yarn.lock b/packages/twenty-apps/public/people-data-labs/yarn.lockindex 8940cf2a994..164c1ec7755 100644--- a/packages/twenty-apps/public/people-data-labs/yarn.lock+++ b/packages/twenty-apps/public/people-data-labs/yarn.lock@@ -971,8 +971,8 @@ __metadata:oxlint: "npm:^0.16.0"react: "npm:^19.2.0"react-dom: "npm:^19.2.0"- twenty-client-sdk: "npm:2.31.0"- twenty-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"+ twenty-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"vite-tsconfig-paths: "npm:^4.2.1"vitest: "npm:^4.0.0"@@ -2839,22 +2839,22 @@ __metadata:languageName: nodelinkType: hard-"twenty-client-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-client-sdk@npm:2.31.0"+"twenty-client-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-client-sdk@npm:2.37.0"dependencies:"@genql/runtime": "npm:^2.10.0"esbuild: "npm:^0.28.1"graphql: "npm:^16.8.1"lodash: "npm:^4.17.21"prettier: "npm:^3.8.3"- checksum: 10c0/03a476db2dd6092875d6929a7f96a72d79c17d95fd9e42963ba2530b3f5ceec3760a96946ec032144976c75004ee2bbbb5791bb2583dd69f7f91c6ac20cd0337+ checksum: 10c0/0250a95b803a468f7bd9261b7a55a862b9b6daf840adf21ab7a4067906761e710703f79f7571f6400716afc4e612eda7da2bb1948c23a5adff07d59cc30ba10elanguageName: nodelinkType: hard-"twenty-sdk@npm:2.31.0":- version: 2.31.0- resolution: "twenty-sdk@npm:2.31.0"+"twenty-sdk@npm:2.37.0":+ version: 2.37.0+ resolution: "twenty-sdk@npm:2.37.0"dependencies:"@sniptt/guards": "npm:^0.2.0"axios: "npm:^1.16.0"@@ -2873,12 +2873,12 @@ __metadata:semver: "npm:7.6.3"sharp: "npm:^0.35.3"tinyglobby: "npm:^0.2.15"- twenty-client-sdk: "npm:2.31.0"+ twenty-client-sdk: "npm:2.37.0"typescript: "npm:^5.9.3"uuid: "npm:^13.0.2"bin:twenty: dist/cli.cjs- checksum: 10c0/ceb42a2abb29b43243c1db41b8de6ef5a5c3140cafc1cd663026d034b9aa010aa140f656af742d5804b89ace2be9e7eea63b3c4279959aad86253f59c1b95da0+ checksum: 10c0/ddbc01430cfbcc878d2b23851b5f5ae7a76fb453d5a578e876ab7e999093a62aa8c025d22b1095d20fad363f8e6cf885a7c002ad64498fdbb9dfc695a1fc1f9clanguageName: nodelinkType: hard