Skip to content

The open alternative to Salesforce, designed for AI.

Add LinkedIn app (read-only, via Unipile v2) (#29116)

martmull403ad5c9bee4
diff --git a/packages/twenty-apps/public/linkedin/.gitignore b/packages/twenty-apps/public/linkedin/.gitignore
new file mode 100644
index 00000000000..9fc1d5c3242
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/.gitignore
@@ -0,0 +1,43 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.*
+.yarn/*
+!.yarn/patches
+!.yarn/plugins
+!.yarn/releases
+!.yarn/sdks
+!.yarn/versions
+
+# codegen
+generated
+
+# testing
+/coverage
+
+# dev
+/dist/
+
+.twenty
+
+# production
+/build
+
+# misc
+.DS_Store
+*.pem
+
+# debug
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+.pnpm-debug.log*
+
+# env files (can opt-in for committing if needed)
+.env*
+
+# typescript
+*.tsbuildinfo
+*.d.ts
diff --git a/packages/twenty-apps/public/linkedin/.nvmrc b/packages/twenty-apps/public/linkedin/.nvmrc
new file mode 100644
index 00000000000..341cb50613a
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/.nvmrc
@@ -0,0 +1 @@
+24.5.0
diff --git a/packages/twenty-apps/public/linkedin/.oxlintrc.json b/packages/twenty-apps/public/linkedin/.oxlintrc.json
new file mode 100644
index 00000000000..2c2035b0fe3
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/.oxlintrc.json
@@ -0,0 +1,58 @@
+{
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
+ "extends": ["../../.oxlintrc.base.json"],
+ "plugins": ["react", "typescript", "import", "unicorn"],
+ "categories": {
+ "correctness": "off"
+ },
+ "ignorePatterns": ["node_modules", "dist"],
+ "rules": {
+ "func-style": ["error", "declaration", { "allowArrowFunctions": true }],
+ "no-console": "off",
+ "no-control-regex": "off",
+ "no-debugger": "error",
+ "no-duplicate-imports": "error",
+ "no-undef": "off",
+ "no-unused-vars": "off",
+ "no-redeclare": "off",
+ "import/no-duplicates": "error",
+ "typescript/no-redeclare": "error",
+ "typescript/ban-ts-comment": "error",
+ "typescript/consistent-type-imports": [
+ "error",
+ {
+ "prefer": "type-imports",
+ "fixStyle": "inline-type-imports"
+ }
+ ],
+ "typescript/explicit-function-return-type": "off",
+ "typescript/explicit-module-boundary-types": "off",
+ "typescript/no-empty-object-type": [
+ "error",
+ {
+ "allowInterfaces": "with-single-extends"
+ }
+ ],
+ "typescript/no-empty-function": "off",
+ "typescript/no-explicit-any": "off",
+ "typescript/no-unused-vars": [
+ "warn",
+ {
+ "vars": "all",
+ "varsIgnorePattern": "^_",
+ "args": "after-used",
+ "argsIgnorePattern": "^_"
+ }
+ ],
+ "react/no-unescaped-entities": "off",
+ "react/prop-types": "off",
+ "react/jsx-key": "off",
+ "react/display-name": "off",
+ "react/jsx-uses-react": "off",
+ "react/react-in-jsx-scope": "off",
+ "react/jsx-no-useless-fragment": "off",
+ "react/jsx-props-no-spreading": ["error", { "explicitSpread": "ignore" }],
+ "react-hooks/rules-of-hooks": "error",
+ "react-hooks/exhaustive-deps": "warn"
+ }
+}
diff --git a/packages/twenty-apps/public/linkedin/.yarnrc.yml b/packages/twenty-apps/public/linkedin/.yarnrc.yml
new file mode 100644
index 00000000000..3186f3f0795
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/.yarnrc.yml
@@ -0,0 +1 @@
+nodeLinker: node-modules
diff --git a/packages/twenty-apps/public/linkedin/CLAUDE.md b/packages/twenty-apps/public/linkedin/CLAUDE.md
new file mode 100644
index 00000000000..38d35ca6fad
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/CLAUDE.md
@@ -0,0 +1,13 @@
+## Base documentation
+
+- Documentation: https://docs.twenty.com/developers/extend/apps/getting-started
+- Rich app example: https://github.com/twentyhq/twenty/tree/main/packages/twenty-apps/examples/postcard
+
+## UUID requirement
+
+- All generated UUIDs must be valid UUID v4.
+
+## Common Pitfalls
+
+- Creating a view without a navigationMenuItem associated. This will make the view available on the left sidebar.
+- Creating a front-end component that has a scroll instead of being responsive to its fixed widget height and width, unless it is specifically meant to be used in a canvas tab.
diff --git a/packages/twenty-apps/public/linkedin/README.md b/packages/twenty-apps/public/linkedin/README.md
new file mode 100644
index 00000000000..5c34309a5f8
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/README.md
@@ -0,0 +1,27 @@
+# LinkedIn
+
+**Your LinkedIn conversations, on the people and companies they're about.**
+
+## ✨ What you get
+
+- **LinkedIn messages in Twenty**: every message you send or receive lands on the matching Person and Company, next to their emails
+- **Private by default**: teammates see who you talked to and when, never what was said
+- **Matched on the LinkedIn field**: a conversation links to the Person whose LinkedIn profile URL matches
+- **One connection per member**: each teammate connects their own LinkedIn account in a few clicks
+
+## πŸ’³ Billing
+
+**$10 per month** per connected account.
+
+## πŸš€ Get started
+
+1. Install **LinkedIn** from **Settings β†’ Applications**.
+2. Each member opens **Settings β†’ App preferences β†’ LinkedIn**, clicks **Add connection** and signs in to LinkedIn.
+
+## πŸ“Œ Heads up
+
+- **Read-only for now.** Messages are imported as they happen; reply from LinkedIn.
+- **New messages only.** Conversations from before you connected are not imported yet.
+- **No contacts created.** A sender with no matching Person is kept on the message but appears on no record until you add their LinkedIn URL to a Person.
+
+Self-hosting or developing the app? See [SETUP.md](./SETUP.md).
diff --git a/packages/twenty-apps/public/linkedin/SETUP.md b/packages/twenty-apps/public/linkedin/SETUP.md
new file mode 100644
index 00000000000..db726b54a3e
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/SETUP.md
@@ -0,0 +1,63 @@
+# Setup
+
+LinkedIn accounts are connected through [Unipile](https://www.unipile.com) (API v2). On Twenty Cloud this is already configured; this guide is for self-hosted instances and local development.
+
+## Prerequisites
+
+- Node.js (version in `.nvmrc`) and Yarn 4
+- A Twenty server on 2.53 or later
+- A Unipile application on [dashboardv2.unipile.com](https://dashboardv2.unipile.com)
+- A public HTTPS URL reaching the Twenty server, so Unipile can deliver webhooks (a tunnel such as `cloudflared tunnel --url http://localhost:3000` in development)
+
+## 1. Configure Unipile
+
+1. In your Unipile application, create an **Account key** (API keys β†’ Account key). A service key also works but grants more than the app needs.
+2. Add a webhook endpoint:
+ - **URL**: `https://<twenty-server>/webhooks/server/<resolver-id>`, where `<resolver-id>` is the `id` of the `linkedin-webhook-resolver` logic function in the app's owner workspace:
+
+ ```graphql
+ query { findManyLogicFunctions { id name } }
+ ```
+
+ - **Events**: `message.new`, `account.status.disconnected`, `account.status.errored`
+ - **Accounts**: leave empty so every connected account is covered, including future ones.
+
+## 2. Configure Twenty
+
+1. Install the app on its owner workspace; the webhook URL only answers once it is installed there.
+2. In **Settings β†’ Applications β†’ LinkedIn β†’ Application registration**, set:
+ - `UNIPILE_API_KEY`: the Unipile account key
+ - `UNIPILE_WEBHOOK_SECRET`: the webhook endpoint's signing secret
+3. Members connect from **Settings β†’ App preferences β†’ LinkedIn**. This page needs the `IS_APP_PREFERENCES_ENABLED` feature flag on the workspace.
+
+## How it works
+
+| Step | Logic function | What it does |
+| --- | --- | --- |
+| Connect | `linkedin-authorize`, `linkedin-callback` | Sends the member to Unipile's hosted sign-in, then confirms the account it returns |
+| On connect | `linkedin-on-connect` | Creates a private message channel matched on the Person **LinkedIn** field, and routes the Unipile account's webhooks to this workspace |
+| Webhook | `linkedin-webhook-resolver` | Checks the `unipile-signature` header and dispatches the event to the workspace that connected the account |
+| New message | `linkedin-handle-webhook-event` | Ingests the message into the member's channel; flags the connection when LinkedIn signs the account out |
+| Disconnect, uninstall | `linkedin-on-disconnect`, `linkedin-uninstall` | Deletes the channel and the Unipile account, which Unipile bills per connected account |
+
+Unipile only exposes internal `ACo…` profile ids on messages, so the app looks up each participant's public profile URL once and caches it. LinkedIn limits profile lookups to roughly 100 a day per account.
+
+Everything that talks to Unipile lives in `src/unipile` and depends on nothing else in the app, so it can be shared with other Unipile-backed apps.
+
+## Development
+
+```bash
+yarn install
+twenty app dev --create
+```
+
+- `yarn lint` β€” lint with oxlint
+- `yarn typecheck` β€” type-check
+- `yarn test:unit` β€” unit tests
+- `yarn test` β€” integration tests, against the server in `TWENTY_API_URL`
+
+## Troubleshooting
+
+- **The webhook answers `No workspace claims this account`**: the account's connection hook did not finish. Disconnect and reconnect LinkedIn.
+- **Messages land on no Person**: the Person's **LinkedIn** field must hold the participant's public profile URL (`linkedin.com/in/<name>`).
+- **Every reconnection adds an account in Unipile**: remove the stale ones from the Unipile dashboard; each is billed.
diff --git a/packages/twenty-apps/public/linkedin/package.json b/packages/twenty-apps/public/linkedin/package.json
new file mode 100644
index 00000000000..c74836ae1b0
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/package.json
@@ -0,0 +1,45 @@
+{
+ "name": "@twentyhq/linkedin",
+ "version": "0.1.0",
+ "description": "LinkedIn messages in Twenty: each member connects their LinkedIn account through Unipile and their conversations land on People timelines.",
+ "license": "MIT",
+ "engines": {
+ "node": "^24.5.0",
+ "npm": "please-use-yarn",
+ "yarn": ">=4.0.2",
+ "twenty": ">=2.53.0"
+ },
+ "keywords": [
+ "twenty-app"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/twentyhq/twenty.git",
+ "directory": "packages/twenty-apps/public/linkedin"
+ },
+ "homepage": "https://github.com/twentyhq/twenty/tree/main/packages/twenty-apps/public/linkedin",
+ "packageManager": "[email protected]",
+ "scripts": {
+ "twenty": "twenty",
+ "lint": "oxlint -c .oxlintrc.json .",
+ "lint:fix": "oxlint --fix -c .oxlintrc.json .",
+ "typecheck": "tsgo --noEmit -p tsconfig.spec.json",
+ "test": "vitest run",
+ "test:watch": "vitest",
+ "test:unit": "vitest run --config vitest.unit.config.ts"
+ },
+ "dependencies": {
+ "@sniptt/guards": "^0.2.0",
+ "@unipile/sdk": "^2.59.0"
+ },
+ "devDependencies": {
+ "@types/node": "^24.7.2",
+ "@typescript/native-preview": "^7.0.0-dev.20260116.1",
+ "oxlint": "^0.16.0",
+ "twenty-client-sdk": "2.53.0",
+ "twenty-sdk": "2.53.0",
+ "typescript": "^5.9.3",
+ "vite-tsconfig-paths": "^4.2.1",
+ "vitest": "^4.1.12"
+ }
+}
diff --git a/packages/twenty-apps/public/linkedin/public/linkedin-logomark.svg b/packages/twenty-apps/public/linkedin/public/linkedin-logomark.svg
new file mode 100644
index 00000000000..4427007cb49
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/public/linkedin-logomark.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72"><rect width="72" height="72" rx="8" fill="#0A66C2"/><path fill="#fff" d="M13.1 27.4h9.8V59h-9.8zM18 11.7a5.7 5.7 0 1 1 0 11.4 5.7 5.7 0 0 1 0-11.4M29 27.4h9.4v4.3h.1c1.3-2.5 4.5-5.1 9.3-5.1 9.9 0 11.8 6.5 11.8 15V59h-9.8V43.6c0-3.7-.1-8.4-5.1-8.4-5.1 0-5.9 4-5.9 8.1V59H29z"/></svg>
diff --git a/packages/twenty-apps/public/linkedin/src/__tests__/deployed-functions.integration-test.ts b/packages/twenty-apps/public/linkedin/src/__tests__/deployed-functions.integration-test.ts
new file mode 100644
index 00000000000..deb1b8dab0d
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/__tests__/deployed-functions.integration-test.ts
@@ -0,0 +1,30 @@
+import { describe, expect, it } from 'vitest';
+
+import { executeDeployedFunctionOrThrow } from './execute-deployed-function-or-throw';
+
+describe('LinkedIn app deployed functions', () => {
+ it('points the workspace settings page to the member app preferences', async () => {
+ const execution = await executeDeployedFunctionOrThrow({
+ functionName: 'linkedin-health-check',
+ });
+
+ expect(execution.status).toBe('SUCCESS');
+ expect(execution.data).toMatchObject({
+ status: 'INFO',
+ action: {
+ location: `/settings/accounts/applications/${execution.applicationId}`,
+ },
+ });
+ });
+
+ it('uninstalls cleanly when no LinkedIn account is connected', async () => {
+ const execution = await executeDeployedFunctionOrThrow({
+ functionName: 'linkedin-uninstall',
+ });
+
+ expect(execution.status).toBe('SUCCESS');
+ expect(execution.data).toEqual({
+ removedConnectionCount: 0,
+ });
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/__tests__/execute-deployed-function-or-throw.ts b/packages/twenty-apps/public/linkedin/src/__tests__/execute-deployed-function-or-throw.ts
new file mode 100644
index 00000000000..10e0280bc87
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/__tests__/execute-deployed-function-or-throw.ts
@@ -0,0 +1,54 @@
+import {
+ MetadataApiClient,
+ type MetadataSchema,
+} from 'twenty-client-sdk/metadata';
+
+import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+
+export const executeDeployedFunctionOrThrow = async ({
+ functionName,
+ payload = {},
+}: {
+ functionName: string;
+ payload?: Record<string, unknown>;
+}): Promise<
+ Omit<MetadataSchema.LogicFunctionExecutionResult, '__typename'> & {
+ applicationId: string;
+ }
+> => {
+ const client = new MetadataApiClient();
+ const {
+ findOneApplication: application,
+ findManyLogicFunctions: logicFunctions,
+ } = await client.query({
+ findOneApplication: {
+ __args: { universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER },
+ id: true,
+ },
+ findManyLogicFunctions: { id: true, name: true, applicationId: true },
+ });
+ const matches = logicFunctions.filter(
+ (logicFunction) =>
+ logicFunction.applicationId === application.id &&
+ logicFunction.name === functionName,
+ );
+
+ if (matches.length !== 1) {
+ throw new Error(
+ `Expected one deployed app function named ${functionName}, found ${matches.length}`,
+ );
+ }
+
+ const { executeOneLogicFunction } = await client.mutation({
+ executeOneLogicFunction: {
+ __args: { input: { id: matches[0].id, payload } },
+ data: true,
+ status: true,
+ logs: true,
+ duration: true,
+ error: true,
+ },
+ });
+
+ return { ...executeOneLogicFunction, applicationId: application.id };
+};
diff --git a/packages/twenty-apps/public/linkedin/src/__tests__/global-setup.ts b/packages/twenty-apps/public/linkedin/src/__tests__/global-setup.ts
new file mode 100644
index 00000000000..7ce43b88ebd
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/__tests__/global-setup.ts
@@ -0,0 +1,55 @@
+import { isNonEmptyString } from '@sniptt/guards';
+
+import { runTwenty } from './run-twenty';
+
+function validateEnvironmentOrThrow(): { apiUrl: string; apiKey: string } {
+ const apiUrl = process.env.TWENTY_API_URL;
+ const apiKey = process.env.TWENTY_API_KEY;
+
+ if (!isNonEmptyString(apiUrl) || !isNonEmptyString(apiKey)) {
+ throw new Error(
+ 'TWENTY_API_URL and TWENTY_API_KEY must be set.\n' +
+ 'Or set them in vitest env config.',
+ );
+ }
+
+ return { apiUrl, apiKey };
+}
+
+async function checkServerOrThrow(apiUrl: string) {
+ const response = await fetch(`${apiUrl}/healthz`).catch(() => {
+ throw new Error(
+ `Twenty server is not reachable at ${apiUrl}. ` +
+ 'Make sure the server is running before executing integration tests.',
+ );
+ });
+
+ if (!response.ok) {
+ throw new Error(`Server at ${apiUrl} returned ${response.status}`);
+ }
+}
+
+export async function setup() {
+ const { apiUrl } = validateEnvironmentOrThrow();
+
+ await checkServerOrThrow(apiUrl);
+ await teardown();
+
+ const result = await runTwenty(['app', 'apply', '--create']);
+
+ if (!result.ok) {
+ throw new Error(
+ `App apply failed: ${result.error.code} ${result.error.message}`,
+ );
+ }
+}
+
+export async function teardown() {
+ const result = await runTwenty(['app', 'uninstall', '--yes']);
+
+ if (!result.ok && result.error.code !== 'APP_NOT_INSTALLED') {
+ throw new Error(
+ `App uninstall failed: ${result.error.code} ${result.error.message}`,
+ );
+ }
+}
diff --git a/packages/twenty-apps/public/linkedin/src/__tests__/run-twenty.ts b/packages/twenty-apps/public/linkedin/src/__tests__/run-twenty.ts
new file mode 100644
index 00000000000..349de1e101f
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/__tests__/run-twenty.ts
@@ -0,0 +1,70 @@
+import { spawn } from 'child_process';
+import { delimiter, join } from 'path';
+
+type TwentyCliError = {
+ code: string;
+ message: string;
+ hint?: string;
+};
+
+export type TwentyCliResult =
+ | { ok: true; data: unknown }
+ | { ok: false; error: TwentyCliError };
+
+function withoutProjectBinaries(pathValue: string) {
+ return pathValue
+ .split(delimiter)
+ .filter(
+ (entry) =>
+ entry !== process.env.BERRY_BIN_FOLDER &&
+ !entry.endsWith(join('node_modules', '.bin')),
+ )
+ .join(delimiter);
+}
+
+export function runTwenty(cliArguments: string[]): Promise<TwentyCliResult> {
+ const executable = process.env.TWENTY_CLI ?? 'twenty';
+
+ return new Promise((resolve, reject) => {
+ const child = spawn(executable, [...cliArguments, '--json'], {
+ env: {
+ ...process.env,
+ PATH: withoutProjectBinaries(process.env.PATH ?? ''),
+ },
+ stdio: ['ignore', 'pipe', 'inherit'],
+ });
+ let stdout = '';
+
+ child.stdout.setEncoding('utf8');
+ child.stdout.on('data', (chunk: string) => {
+ stdout += chunk;
+ });
+
+ child.on('error', (error: NodeJS.ErrnoException) => {
+ if (error.code !== 'ENOENT') {
+ reject(error);
+
+ return;
+ }
+
+ reject(
+ new Error(
+ `${executable} was not found. Install the Twenty CLI globally, or set TWENTY_CLI to its path.`,
+ ),
+ );
+ });
+
+ child.on('close', (exitCode) => {
+ try {
+ resolve(JSON.parse(stdout));
+ } catch {
+ reject(
+ new Error(
+ `${executable} ${cliArguments.join(' ')} exited with code ${exitCode} without a JSON result. ` +
+ 'Check that it is the Twenty CLI (twenty --version), or set TWENTY_CLI to its path.',
+ ),
+ );
+ }
+ });
+ });
+}
diff --git a/packages/twenty-apps/public/linkedin/src/__tests__/twenty-linkedin.integration-test.ts b/packages/twenty-apps/public/linkedin/src/__tests__/twenty-linkedin.integration-test.ts
new file mode 100644
index 00000000000..1a9b9334e1c
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/__tests__/twenty-linkedin.integration-test.ts
@@ -0,0 +1,25 @@
+import { MetadataApiClient } from 'twenty-client-sdk/metadata';
+import { describe, expect, it } from 'vitest';
+
+import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+
+describe('App installation', () => {
+ it('should find the installed LinkedIn app in the applications list', async () => {
+ const client = new MetadataApiClient();
+
+ const result = await client.query({
+ findManyApplications: {
+ id: true,
+ name: true,
+ universalIdentifier: true,
+ },
+ });
+
+ const matchingApplication = result.findManyApplications.find(
+ (application: { universalIdentifier: string }) =>
+ application.universalIdentifier === APPLICATION_UNIVERSAL_IDENTIFIER,
+ );
+
+ expect(matchingApplication).toBeDefined();
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/application.config.ts b/packages/twenty-apps/public/linkedin/src/application.config.ts
new file mode 100644
index 00000000000..e2e7a8d2981
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/application.config.ts
@@ -0,0 +1,33 @@
+import { defineApplication } from 'twenty-sdk/define';
+
+import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+
+export default defineApplication({
+ universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
+ displayName: 'LinkedIn',
+ description:
+ 'Your LinkedIn conversations, on the people and companies they are about.',
+ logo: 'public/linkedin-logomark.svg',
+ author: 'Twenty',
+ category: 'Communication',
+ emailSupport: '[email protected]',
+ termsUrl: 'https://github.com/twentyhq/twenty?tab=License-1-ov-file#readme',
+ websiteUrl: 'https://www.twenty.com',
+ billing: {
+ description: '$10 per month per connection',
+ },
+ serverVariables: {
+ UNIPILE_API_KEY: {
+ description:
+ 'Account API key of the Unipile application LinkedIn accounts are connected through (dashboardv2.unipile.com).',
+ isSecret: true,
+ isRequired: true,
+ },
+ UNIPILE_WEBHOOK_SECRET: {
+ description:
+ 'Signing secret of the Unipile webhook endpoint pointing at this app.',
+ isSecret: true,
+ isRequired: true,
+ },
+ },
+});
diff --git a/packages/twenty-apps/public/linkedin/src/connection-providers/linkedin-connection.ts b/packages/twenty-apps/public/linkedin/src/connection-providers/linkedin-connection.ts
new file mode 100644
index 00000000000..91fe74e76c4
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/connection-providers/linkedin-connection.ts
@@ -0,0 +1,32 @@
+import { defineConnectionProvider } from 'twenty-sdk/define';
+
+import { LINKEDIN_PROVIDER_NAME } from 'src/constants/linkedin-provider-name.constant';
+import {
+ LINKEDIN_AUTHORIZE_UNIVERSAL_IDENTIFIER,
+ LINKEDIN_CALLBACK_UNIVERSAL_IDENTIFIER,
+ LINKEDIN_CONNECTION_PROVIDER_UNIVERSAL_IDENTIFIER,
+ LINKEDIN_ON_CONNECT_UNIVERSAL_IDENTIFIER,
+ LINKEDIN_ON_DISCONNECT_UNIVERSAL_IDENTIFIER,
+} from 'src/constants/universal-identifiers';
+
+export default defineConnectionProvider({
+ universalIdentifier: LINKEDIN_CONNECTION_PROVIDER_UNIVERSAL_IDENTIFIER,
+ name: LINKEDIN_PROVIDER_NAME,
+ displayName: 'LinkedIn',
+ type: 'custom',
+ scope: 'USER',
+ custom: {
+ authorizeLogicFunction: {
+ universalIdentifier: LINKEDIN_AUTHORIZE_UNIVERSAL_IDENTIFIER,
+ },
+ callbackLogicFunction: {
+ universalIdentifier: LINKEDIN_CALLBACK_UNIVERSAL_IDENTIFIER,
+ },
+ },
+ onConnectLogicFunction: {
+ universalIdentifier: LINKEDIN_ON_CONNECT_UNIVERSAL_IDENTIFIER,
+ },
+ onDisconnectLogicFunction: {
+ universalIdentifier: LINKEDIN_ON_DISCONNECT_UNIVERSAL_IDENTIFIER,
+ },
+});
diff --git a/packages/twenty-apps/public/linkedin/src/constants/linkedin-profile-base-url.constant.ts b/packages/twenty-apps/public/linkedin/src/constants/linkedin-profile-base-url.constant.ts
new file mode 100644
index 00000000000..56bde2d3247
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/constants/linkedin-profile-base-url.constant.ts
@@ -0,0 +1 @@
+export const LINKEDIN_PROFILE_BASE_URL = 'https://www.linkedin.com/in/';
diff --git a/packages/twenty-apps/public/linkedin/src/constants/linkedin-provider-name.constant.ts b/packages/twenty-apps/public/linkedin/src/constants/linkedin-provider-name.constant.ts
new file mode 100644
index 00000000000..26569991c82
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/constants/linkedin-provider-name.constant.ts
@@ -0,0 +1 @@
+export const LINKEDIN_PROVIDER_NAME = 'linkedin';
diff --git a/packages/twenty-apps/public/linkedin/src/constants/person-linkedin-link-field-universal-identifier.constant.ts b/packages/twenty-apps/public/linkedin/src/constants/person-linkedin-link-field-universal-identifier.constant.ts
new file mode 100644
index 00000000000..4c578aa5b4d
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/constants/person-linkedin-link-field-universal-identifier.constant.ts
@@ -0,0 +1,2 @@
+export const PERSON_LINKEDIN_LINK_FIELD_UNIVERSAL_IDENTIFIER =
+ '20202020-f1af-48f7-893b-2007a73dd508';
diff --git a/packages/twenty-apps/public/linkedin/src/constants/universal-identifiers.ts b/packages/twenty-apps/public/linkedin/src/constants/universal-identifiers.ts
new file mode 100644
index 00000000000..870e22f7367
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/constants/universal-identifiers.ts
@@ -0,0 +1,32 @@
+export const APPLICATION_UNIVERSAL_IDENTIFIER =
+ '06e0e0a1-27be-4710-ab65-4c982622da7e';
+
+export const DEFAULT_ROLE_UNIVERSAL_IDENTIFIER =
+ '2e7a4ae7-c3ea-47bd-b958-3abc096d5562';
+
+export const LINKEDIN_CONNECTION_PROVIDER_UNIVERSAL_IDENTIFIER =
+ '21d7a0fd-4153-474c-98bf-0af035f76c4e';
+
+export const LINKEDIN_AUTHORIZE_UNIVERSAL_IDENTIFIER =
+ '467a2d51-92db-4145-a82f-b18faf21c541';
+
+export const LINKEDIN_CALLBACK_UNIVERSAL_IDENTIFIER =
+ 'a03b4915-47a0-4149-ae21-84d843cca721';
+
+export const LINKEDIN_ON_CONNECT_UNIVERSAL_IDENTIFIER =
+ 'cce04a9b-34bb-4389-a3fb-b3690490c1d1';
+
+export const LINKEDIN_ON_DISCONNECT_UNIVERSAL_IDENTIFIER =
+ 'fea76546-6a6d-41d5-a5e4-7e08eac8dfa5';
+
+export const LINKEDIN_WEBHOOK_RESOLVER_UNIVERSAL_IDENTIFIER =
+ '67c42401-744a-4cc6-afd8-ba9f5accded3';
+
+export const LINKEDIN_HANDLE_WEBHOOK_EVENT_UNIVERSAL_IDENTIFIER =
+ 'a984446d-a2ce-4f78-a8a7-767687f1dd0d';
+
+export const LINKEDIN_UNINSTALL_UNIVERSAL_IDENTIFIER =
+ 'd19e4e85-3ede-4b71-8e63-5185863e4175';
+
+export const LINKEDIN_HEALTH_CHECK_UNIVERSAL_IDENTIFIER =
+ '4d15b952-d4dd-437a-903e-37d5d158aaaa';
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-handle-webhook-event.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-handle-webhook-event.test.ts
new file mode 100644
index 00000000000..5227f157f96
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-handle-webhook-event.test.ts
@@ -0,0 +1,155 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { type UnipileMessage } from 'src/unipile/types/unipile-message.type';
+import { type UnipileWebhookEvent } from 'src/unipile/types/unipile-webhook-event.type';
+
+const mocks = vi.hoisted(() => ({
+ listConnections: vi.fn(),
+ listMessageChannels: vi.fn(),
+ ingestMessages: vi.fn(),
+ reportConnectionAuthFailure: vi.fn(),
+ kvGet: vi.fn(),
+ kvSet: vi.fn(),
+ getUnipileUser: vi.fn(),
+ getUnipileChat: vi.fn(),
+}));
+
+vi.mock('twenty-sdk/define', () => ({
+ defineLogicFunction: (config: unknown) => config,
+}));
+
+vi.mock('twenty-sdk/logic-function', () => ({
+ listConnections: mocks.listConnections,
+ listMessageChannels: mocks.listMessageChannels,
+ ingestMessages: mocks.ingestMessages,
+ reportConnectionAuthFailure: mocks.reportConnectionAuthFailure,
+ kv: { get: mocks.kvGet, set: mocks.kvSet },
+}));
+
+vi.mock('src/unipile/utils/get-unipile-user.util', () => ({
+ getUnipileUser: mocks.getUnipileUser,
+}));
+
+vi.mock('src/unipile/utils/get-unipile-chat.util', () => ({
+ getUnipileChat: mocks.getUnipileChat,
+}));
+
+const { linkedinHandleWebhookEventHandler } =
+ await import('src/logic-functions/linkedin-handle-webhook-event');
+
+const CHANNEL_HANDLE = 'linkedin.com/in/martin-muller';
+
+const DAPHNE = {
+ id: 'ACoDAPHNE',
+ display_name: 'DaphnΓ© MΓΌller',
+ profile_url: 'https://www.linkedin.com/in/ACoDAPHNE',
+};
+
+const buildMessageEvent = (
+ payload: Pick<UnipileMessage, 'sender_id' | 'is_sender'> &
+ Partial<UnipileMessage>,
+): UnipileWebhookEvent => ({
+ id: 'evt_1',
+ created_at: '2026-10-29T07:44:08.382Z',
+ account_id: 'acc_1',
+ account_provider: 'linkedin',
+ type: 'message.new',
+ payload: {
+ id: 'message-1',
+ chat_id: 'chat-1',
+ text: 'Hello',
+ timestamp: '2026-10-29T07:44:08.382Z',
+ is_deleted: false,
+ is_event: false,
+ provider: 'linkedin',
+ ...payload,
+ },
+});
+
+describe('linkedinHandleWebhookEventHandler', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ mocks.listConnections.mockResolvedValue([
+ { id: 'connection-id', externalAccountId: 'acc_1' },
+ ]);
+ mocks.listMessageChannels.mockResolvedValue([
+ { id: 'channel-id', handle: CHANNEL_HANDLE },
+ ]);
+ mocks.kvGet.mockResolvedValue(null);
+ mocks.getUnipileUser.mockResolvedValue({
+ ...DAPHNE,
+ public_identifier: 'daphne-muller',
+ });
+ });
+
+ it('ingests a received message under the sender public profile URL', async () => {
+ await expect(
+ linkedinHandleWebhookEventHandler(
+ buildMessageEvent({
+ sender_id: DAPHNE.id,
+ sender: DAPHNE,
+ is_sender: false,
+ }),
+ ),
+ ).resolves.toEqual({ handled: true });
+
+ expect(mocks.ingestMessages).toHaveBeenCalledExactlyOnceWith({
+ messageChannelId: 'channel-id',
+ messages: [
+ expect.objectContaining({
+ externalId: 'message-1',
+ threadExternalId: 'chat-1',
+ participants: [
+ {
+ role: 'FROM',
+ handle: 'https://www.linkedin.com/in/daphne-muller',
+ displayName: 'DaphnΓ© MΓΌller',
+ },
+ { role: 'TO', handle: CHANNEL_HANDLE },
+ ],
+ }),
+ ],
+ });
+ });
+
+ it('ingests a sent message to the chat counterpart public profile URL', async () => {
+ mocks.getUnipileChat.mockResolvedValue({
+ id: 'chat-1',
+ name: 'DaphnΓ© MΓΌller',
+ is_group: false,
+ is_1to1: true,
+ user: DAPHNE,
+ });
+
+ await linkedinHandleWebhookEventHandler(
+ buildMessageEvent({ sender_id: 'ACoMARTIN', is_sender: true }),
+ );
+
+ expect(mocks.ingestMessages).toHaveBeenCalledTimes(1);
+ expect(mocks.getUnipileChat).toHaveBeenCalledExactlyOnceWith({
+ accountId: 'acc_1',
+ chatId: 'chat-1',
+ });
+ expect(
+ mocks.ingestMessages.mock.calls[0][0].messages[0].participants,
+ ).toEqual([
+ { role: 'FROM', handle: CHANNEL_HANDLE },
+ {
+ role: 'TO',
+ handle: 'https://www.linkedin.com/in/daphne-muller',
+ displayName: 'DaphnΓ© MΓΌller',
+ },
+ ]);
+ });
+
+ it('ignores events of accounts no connection owns', async () => {
+ mocks.listConnections.mockResolvedValue([]);
+
+ await expect(
+ linkedinHandleWebhookEventHandler(
+ buildMessageEvent({ sender_id: DAPHNE.id, is_sender: false }),
+ ),
+ ).resolves.toEqual({ handled: false, reason: 'Unknown LinkedIn account' });
+ expect(mocks.ingestMessages).not.toHaveBeenCalled();
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-health-check.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-health-check.test.ts
new file mode 100644
index 00000000000..8d8ea971ff3
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-health-check.test.ts
@@ -0,0 +1,17 @@
+import { describe, expect, it } from 'vitest';
+
+import { linkedinHealthCheckHandler } from 'src/logic-functions/linkedin-health-check';
+
+describe('linkedinHealthCheckHandler', () => {
+ it('points members to their LinkedIn app preferences', async () => {
+ process.env.APPLICATION_ID = 'application-id';
+
+ await expect(linkedinHealthCheckHandler()).resolves.toMatchObject({
+ status: 'INFO',
+ action: {
+ label: 'Open app preferences',
+ location: '/settings/accounts/applications/application-id',
+ },
+ });
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-on-connect.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-on-connect.test.ts
new file mode 100644
index 00000000000..43020fcd569
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-on-connect.test.ts
@@ -0,0 +1,84 @@
+import { STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS } from 'twenty-sdk/define';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { PERSON_LINKEDIN_LINK_FIELD_UNIVERSAL_IDENTIFIER } from 'src/constants/person-linkedin-link-field-universal-identifier.constant';
+
+const mocks = vi.hoisted(() => ({
+ getConnection: vi.fn(),
+ listMessageChannels: vi.fn(),
+ createMessageChannel: vi.fn(),
+ kvSet: vi.fn(),
+ getUnipileUser: vi.fn(),
+}));
+
+vi.mock('twenty-sdk/logic-function', () => ({
+ getConnection: mocks.getConnection,
+ listMessageChannels: mocks.listMessageChannels,
+ createMessageChannel: mocks.createMessageChannel,
+ kv: { set: mocks.kvSet },
+}));
+
+vi.mock('src/unipile/utils/get-unipile-user.util', () => ({
+ getUnipileUser: mocks.getUnipileUser,
+}));
+
+const { linkedinOnConnectHandler } =
+ await import('src/logic-functions/linkedin-on-connect');
+
+const PAYLOAD = {
+ connectionProviderId: 'provider-id',
+ connectionProviderName: 'linkedin',
+ connectedAccountId: 'connected-account-id',
+};
+
+describe('linkedinOnConnectHandler', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ mocks.getConnection.mockResolvedValue({ externalAccountId: 'acc_1' });
+ mocks.listMessageChannels.mockResolvedValue([]);
+ mocks.getUnipileUser.mockResolvedValue({
+ id: 'ACoME',
+ display_name: 'Ada Lovelace',
+ public_identifier: 'ada-lovelace',
+ });
+ mocks.createMessageChannel.mockResolvedValue({ id: 'channel-id' });
+ });
+
+ it('keeps a flat copy of the person LinkedIn field id, since deployed functions stub nested SDK constants', () => {
+ expect(PERSON_LINKEDIN_LINK_FIELD_UNIVERSAL_IDENTIFIER).toBe(
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person.fields.linkedinLink
+ .universalIdentifier,
+ );
+ });
+
+ it('creates a private channel on the member profile and claims the account', async () => {
+ await expect(linkedinOnConnectHandler(PAYLOAD)).resolves.toEqual({
+ messageChannelId: 'channel-id',
+ });
+
+ expect(mocks.createMessageChannel).toHaveBeenCalledExactlyOnceWith({
+ connectedAccountId: 'connected-account-id',
+ handle: 'https://www.linkedin.com/in/ada-lovelace',
+ displayName: 'Ada Lovelace',
+ visibility: 'METADATA',
+ participantHandleFieldUniversalIdentifier:
+ PERSON_LINKEDIN_LINK_FIELD_UNIVERSAL_IDENTIFIER,
+ });
+ expect(mocks.kvSet).toHaveBeenCalledExactlyOnceWith(
+ 'unipile-account:acc_1',
+ undefined,
+ { scope: 'SERVER' },
+ );
+ });
+
+ it('reuses the channel of a reconnected account', async () => {
+ mocks.listMessageChannels.mockResolvedValue([
+ { id: 'existing-channel-id' },
+ ]);
+
+ await expect(linkedinOnConnectHandler(PAYLOAD)).resolves.toEqual({
+ messageChannelId: 'existing-channel-id',
+ });
+ expect(mocks.createMessageChannel).not.toHaveBeenCalled();
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-on-disconnect.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-on-disconnect.test.ts
new file mode 100644
index 00000000000..c5efdb40ce0
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-on-disconnect.test.ts
@@ -0,0 +1,96 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+const mocks = vi.hoisted(() => ({
+ listConnections: vi.fn(),
+ removeLinkedinConnectionResources: vi.fn(),
+}));
+
+vi.mock('twenty-sdk/define', () => ({
+ defineLogicFunction: (config: unknown) => config,
+}));
+
+vi.mock('twenty-sdk/logic-function', () => ({
+ listConnections: mocks.listConnections,
+}));
+
+vi.mock(
+ 'src/logic-functions/utils/remove-linkedin-connection-resources.util',
+ () => ({
+ removeLinkedinConnectionResources: mocks.removeLinkedinConnectionResources,
+ }),
+);
+
+const { linkedinOnDisconnectHandler } =
+ await import('src/logic-functions/linkedin-on-disconnect');
+
+const PAYLOAD = {
+ connectionProviderId: 'provider-id',
+ connectionProviderName: 'linkedin',
+ connectedAccountId: 'connection-id',
+};
+
+describe('linkedinOnDisconnectHandler', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ it('removes the Unipile account of the connection', async () => {
+ mocks.listConnections.mockResolvedValue([
+ { id: 'other-connection-id', externalAccountId: 'acc_2' },
+ { id: 'connection-id', externalAccountId: 'acc_1' },
+ ]);
+
+ await linkedinOnDisconnectHandler(PAYLOAD);
+
+ expect(mocks.listConnections).toHaveBeenCalledExactlyOnceWith({
+ providerName: 'linkedin',
+ });
+ expect(
+ mocks.removeLinkedinConnectionResources,
+ ).toHaveBeenCalledExactlyOnceWith({
+ connectedAccountId: 'connection-id',
+ unipileAccountId: 'acc_1',
+ });
+ });
+
+ it('removes the Unipile account of a connection whose auth failed', async () => {
+ mocks.listConnections.mockResolvedValue([
+ {
+ id: 'connection-id',
+ externalAccountId: 'acc_1',
+ authFailedAt: '2026-10-30T09:00:00.000Z',
+ },
+ ]);
+
+ await linkedinOnDisconnectHandler(PAYLOAD);
+
+ expect(
+ mocks.removeLinkedinConnectionResources,
+ ).toHaveBeenCalledExactlyOnceWith({
+ connectedAccountId: 'connection-id',
+ unipileAccountId: 'acc_1',
+ });
+ });
+
+ it('still removes the channel once the connection is gone', async () => {
+ mocks.listConnections.mockResolvedValue([]);
+
+ await linkedinOnDisconnectHandler(PAYLOAD);
+
+ expect(
+ mocks.removeLinkedinConnectionResources,
+ ).toHaveBeenCalledExactlyOnceWith({
+ connectedAccountId: 'connection-id',
+ unipileAccountId: null,
+ });
+ });
+
+ it('fails when the connections cannot be listed', async () => {
+ mocks.listConnections.mockRejectedValue(new Error('Network error'));
+
+ await expect(linkedinOnDisconnectHandler(PAYLOAD)).rejects.toThrow(
+ 'Network error',
+ );
+ expect(mocks.removeLinkedinConnectionResources).not.toHaveBeenCalled();
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-uninstall.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-uninstall.test.ts
new file mode 100644
index 00000000000..79e7e070cf8
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-uninstall.test.ts
@@ -0,0 +1,69 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+const mocks = vi.hoisted(() => ({
+ listConnections: vi.fn(),
+ removeLinkedinConnectionResources: vi.fn(),
+}));
+
+vi.mock('twenty-sdk/define', () => ({
+ defineUninstallLogicFunction: (config: unknown) => config,
+}));
+
+vi.mock('twenty-sdk/logic-function', () => ({
+ listConnections: mocks.listConnections,
+}));
+
+vi.mock(
+ 'src/logic-functions/utils/remove-linkedin-connection-resources.util',
+ () => ({
+ removeLinkedinConnectionResources: mocks.removeLinkedinConnectionResources,
+ }),
+);
+
+const { linkedinUninstallHandler } =
+ await import('src/logic-functions/linkedin-uninstall');
+
+describe('linkedinUninstallHandler', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ vi.spyOn(console, 'error').mockImplementation(() => undefined);
+ });
+
+ it('removes the resources of every LinkedIn connection', async () => {
+ mocks.listConnections.mockResolvedValue([
+ { id: 'connection-1', externalAccountId: 'acc_1' },
+ { id: 'connection-2', externalAccountId: 'acc_2' },
+ ]);
+
+ await expect(linkedinUninstallHandler()).resolves.toEqual({
+ removedConnectionCount: 2,
+ });
+ expect(mocks.listConnections).toHaveBeenCalledExactlyOnceWith({
+ providerName: 'linkedin',
+ });
+ expect(mocks.removeLinkedinConnectionResources).toHaveBeenCalledWith({
+ connectedAccountId: 'connection-1',
+ unipileAccountId: 'acc_1',
+ });
+ expect(mocks.removeLinkedinConnectionResources).toHaveBeenCalledWith({
+ connectedAccountId: 'connection-2',
+ unipileAccountId: 'acc_2',
+ });
+ expect(mocks.removeLinkedinConnectionResources).toHaveBeenCalledTimes(2);
+ });
+
+ it('cleans up the other connections, then fails so the uninstall is retried', async () => {
+ mocks.listConnections.mockResolvedValue([
+ { id: 'connection-1', externalAccountId: 'acc_1' },
+ { id: 'connection-2', externalAccountId: 'acc_2' },
+ ]);
+ mocks.removeLinkedinConnectionResources.mockRejectedValueOnce(
+ new Error('Unipile is down'),
+ );
+
+ await expect(linkedinUninstallHandler()).rejects.toThrow(
+ 'LinkedIn cleanup failed for connections connection-1',
+ );
+ expect(mocks.removeLinkedinConnectionResources).toHaveBeenCalledTimes(2);
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-webhook-resolver.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-webhook-resolver.test.ts
new file mode 100644
index 00000000000..85f01ae2e3f
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/__tests__/linkedin-webhook-resolver.test.ts
@@ -0,0 +1,125 @@
+import { createHmac } from 'node:crypto';
+
+import { type RoutePayload } from 'twenty-sdk/define';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { LINKEDIN_HANDLE_WEBHOOK_EVENT_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { type UnipileWebhookEvent } from 'src/unipile/types/unipile-webhook-event.type';
+
+const mocks = vi.hoisted(() => ({
+ kvGet: vi.fn(),
+}));
+
+vi.mock('twenty-sdk/define', () => ({
+ defineLogicFunction: (config: unknown) => config,
+}));
+
+vi.mock('twenty-sdk/logic-function', () => ({
+ kv: { get: mocks.kvGet },
+ Response: class Response {
+ constructor(
+ readonly body: unknown,
+ readonly init?: { status?: number },
+ ) {}
+ },
+}));
+
+const { linkedinWebhookResolverHandler } =
+ await import('src/logic-functions/linkedin-webhook-resolver');
+
+const SECRET = 'webhook-secret';
+const WORKSPACE_ID = '20202020-1c25-4d02-bf25-6aeccf7ea419';
+
+const buildRoutePayload = ({
+ event,
+ secret = SECRET,
+}: {
+ event: UnipileWebhookEvent;
+ secret?: string;
+}): RoutePayload<UnipileWebhookEvent> => {
+ const rawBody = JSON.stringify(event);
+ const timestamp = Math.floor(Date.now() / 1000);
+ const signature = createHmac('sha256', secret)
+ .update(`${timestamp}.${rawBody}`)
+ .digest('hex');
+
+ return {
+ headers: { 'unipile-signature': `t=${timestamp},v0=${signature}` },
+ queryStringParameters: {},
+ pathParameters: {},
+ body: event,
+ rawBody,
+ isBase64Encoded: false,
+ requestContext: { http: { method: 'POST', path: '/' } },
+ userWorkspaceId: null,
+ };
+};
+
+const LINKEDIN_EVENT: UnipileWebhookEvent = {
+ id: 'evt_1',
+ created_at: '2026-10-28T10:00:00.000Z',
+ account_id: 'acc_1',
+ account_provider: 'linkedin',
+ type: 'account.status.disconnected',
+ payload: {},
+};
+
+describe('linkedinWebhookResolverHandler', () => {
+ beforeEach(() => {
+ process.env.UNIPILE_WEBHOOK_SECRET = SECRET;
+ mocks.kvGet.mockReset();
+ });
+
+ it('routes a signed LinkedIn event to the workspace claiming its account', async () => {
+ mocks.kvGet.mockResolvedValue(WORKSPACE_ID);
+
+ await expect(
+ linkedinWebhookResolverHandler(
+ buildRoutePayload({ event: LINKEDIN_EVENT }),
+ ),
+ ).resolves.toEqual({
+ workspaceId: WORKSPACE_ID,
+ targetLogicFunctionUniversalIdentifier:
+ LINKEDIN_HANDLE_WEBHOOK_EVENT_UNIVERSAL_IDENTIFIER,
+ payload: LINKEDIN_EVENT,
+ });
+ expect(mocks.kvGet).toHaveBeenCalledExactlyOnceWith(
+ 'unipile-account:acc_1',
+ {
+ scope: 'SERVER',
+ },
+ );
+ });
+
+ it('rejects a delivery with an invalid signature', async () => {
+ const result = await linkedinWebhookResolverHandler(
+ buildRoutePayload({ event: LINKEDIN_EVENT, secret: 'other-secret' }),
+ );
+
+ expect(result).toMatchObject({ init: { status: 401 } });
+ expect(mocks.kvGet).not.toHaveBeenCalled();
+ });
+
+ it('skips events of other providers', async () => {
+ const result = await linkedinWebhookResolverHandler(
+ buildRoutePayload({
+ event: { ...LINKEDIN_EVENT, account_provider: 'whatsapp' },
+ }),
+ );
+
+ expect(result).toMatchObject({ body: { skipped: 'Not a LinkedIn event' } });
+ expect(mocks.kvGet).not.toHaveBeenCalled();
+ });
+
+ it('skips accounts no workspace claims', async () => {
+ mocks.kvGet.mockResolvedValue(null);
+
+ const result = await linkedinWebhookResolverHandler(
+ buildRoutePayload({ event: LINKEDIN_EVENT }),
+ );
+
+ expect(result).toMatchObject({
+ body: { skipped: 'No workspace claims this account' },
+ });
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-authorize.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-authorize.ts
new file mode 100644
index 00000000000..3b26bd4768a
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-authorize.ts
@@ -0,0 +1,26 @@
+import { defineLogicFunction } from 'twenty-sdk/define';
+import {
+ type AuthorizeConnectionPayload,
+ type AuthorizeConnectionResult,
+} from 'twenty-sdk/logic-function';
+
+import { LINKEDIN_AUTHORIZE_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { createUnipileHostedAuthLink } from 'src/unipile/utils/create-unipile-hosted-auth-link.util';
+
+export const linkedinAuthorizeHandler = async ({
+ callbackUrl,
+}: AuthorizeConnectionPayload): Promise<AuthorizeConnectionResult> => ({
+ authorizationUrl: await createUnipileHostedAuthLink({
+ provider: 'linkedin',
+ callbackUrl,
+ }),
+});
+
+export default defineLogicFunction({
+ universalIdentifier: LINKEDIN_AUTHORIZE_UNIVERSAL_IDENTIFIER,
+ name: 'linkedin-authorize',
+ description:
+ 'Creates a Unipile hosted auth link the member signs in to LinkedIn through.',
+ timeoutSeconds: 10,
+ handler: linkedinAuthorizeHandler,
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-callback.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-callback.ts
new file mode 100644
index 00000000000..457e3306435
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-callback.ts
@@ -0,0 +1,59 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import { defineLogicFunction } from 'twenty-sdk/define';
+import {
+ type ConnectionCallbackPayload,
+ type ConnectionCallbackResult,
+} from 'twenty-sdk/logic-function';
+
+import { LINKEDIN_CALLBACK_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { UNIPILE_HOSTED_AUTH_LINK_TTL_MILLISECONDS } from 'src/unipile/constants/unipile-hosted-auth-link-ttl-milliseconds.constant';
+import { getUnipileAccount } from 'src/unipile/utils/get-unipile-account.util';
+
+export const linkedinCallbackHandler = async ({
+ queryStringParameters,
+}: ConnectionCallbackPayload): Promise<ConnectionCallbackResult> => {
+ const {
+ account_id: accountId,
+ error_title: errorTitle,
+ error_detail: errorDetail,
+ } = queryStringParameters;
+
+ if (isNonEmptyString(errorTitle)) {
+ throw new Error(
+ isNonEmptyString(errorDetail) ? `${errorTitle}: ${errorDetail}` : errorTitle,
+ );
+ }
+
+ if (!isNonEmptyString(accountId)) {
+ throw new Error('LinkedIn sign-in returned no account');
+ }
+
+ const account = await getUnipileAccount(accountId);
+
+ if (account.provider !== 'linkedin') {
+ throw new Error(`Unipile account ${accountId} is not a LinkedIn account`);
+ }
+
+ if (
+ Date.now() - new Date(account.created_at).getTime() >
+ UNIPILE_HOSTED_AUTH_LINK_TTL_MILLISECONDS
+ ) {
+ throw new Error(
+ `Unipile account ${accountId} was not created by this sign-in`,
+ );
+ }
+
+ return {
+ externalAccountId: account.id,
+ handle: account.name ?? account.user_id,
+ };
+};
+
+export default defineLogicFunction({
+ universalIdentifier: LINKEDIN_CALLBACK_UNIVERSAL_IDENTIFIER,
+ name: 'linkedin-callback',
+ description:
+ 'Confirms the LinkedIn account Unipile redirected back with after sign-in.',
+ timeoutSeconds: 10,
+ handler: linkedinCallbackHandler,
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-handle-webhook-event.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-handle-webhook-event.ts
new file mode 100644
index 00000000000..03d45c53670
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-handle-webhook-event.ts
@@ -0,0 +1,114 @@
+import { defineLogicFunction } from 'twenty-sdk/define';
+import {
+ ingestMessages,
+ listMessageChannels,
+ reportConnectionAuthFailure,
+} from 'twenty-sdk/logic-function';
+import { isDefined } from 'twenty-sdk/utils';
+
+import { LINKEDIN_HANDLE_WEBHOOK_EVENT_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { findLinkedinConnectionByUnipileAccountId } from 'src/logic-functions/utils/find-linkedin-connection-by-unipile-account-id.util';
+import { getLinkedinChatCounterparts } from 'src/logic-functions/utils/get-linkedin-chat-counterparts.util';
+import { mapUnipileMessageToIngestMessage } from 'src/logic-functions/utils/map-unipile-message-to-ingest-message.util';
+import { withLinkedinPublicIdentifier } from 'src/logic-functions/utils/with-linkedin-public-identifier.util';
+import { type UnipileMessage } from 'src/unipile/types/unipile-message.type';
+import { type UnipileUser } from 'src/unipile/types/unipile-user.type';
+import { type UnipileWebhookEvent } from 'src/unipile/types/unipile-webhook-event.type';
+import { getUnipileChat } from 'src/unipile/utils/get-unipile-chat.util';
+
+type LinkedinWebhookEventResult = { handled: boolean; reason?: string };
+
+const ingestUnipileMessage = async ({
+ connectedAccountId,
+ unipileAccountId,
+ message,
+}: {
+ connectedAccountId: string;
+ unipileAccountId: string;
+ message: UnipileMessage;
+}): Promise<LinkedinWebhookEventResult> => {
+ const [channel] = await listMessageChannels({ connectedAccountId });
+
+ if (!isDefined(channel)) {
+ return { handled: false, reason: 'Connection has no message channel' };
+ }
+
+ const resolveUser = (user: UnipileUser) =>
+ withLinkedinPublicIdentifier({ unipileAccountId, user });
+
+ const counterparts = message.is_sender
+ ? await Promise.all(
+ getLinkedinChatCounterparts(
+ await getUnipileChat({
+ accountId: unipileAccountId,
+ chatId: message.chat_id,
+ }),
+ ).map(resolveUser),
+ )
+ : [];
+
+ const sender =
+ !message.is_sender && isDefined(message.sender)
+ ? await resolveUser(message.sender)
+ : message.sender;
+
+ const ingestMessage = mapUnipileMessageToIngestMessage({
+ message: { ...message, sender },
+ channelHandle: channel.handle,
+ counterparts,
+ });
+
+ if (!isDefined(ingestMessage)) {
+ return { handled: false, reason: 'Message carries no content' };
+ }
+
+ await ingestMessages({
+ messageChannelId: channel.id,
+ messages: [ingestMessage],
+ });
+
+ return { handled: true };
+};
+
+export const linkedinHandleWebhookEventHandler = async (
+ event: UnipileWebhookEvent,
+): Promise<LinkedinWebhookEventResult> => {
+ const connection = await findLinkedinConnectionByUnipileAccountId(
+ event.account_id,
+ );
+
+ if (!isDefined(connection)) {
+ return { handled: false, reason: 'Unknown LinkedIn account' };
+ }
+
+ // Unipile also sends types the union does not list; they reach `default`.
+ const eventType: string = event.type;
+
+ switch (event.type) {
+ case 'message.new':
+ return ingestUnipileMessage({
+ connectedAccountId: connection.id,
+ unipileAccountId: event.account_id,
+ message: event.payload,
+ });
+ case 'account.status.disconnected':
+ case 'account.status.errored':
+ await reportConnectionAuthFailure({
+ connectionId: connection.id,
+ reason: event.type,
+ });
+
+ return { handled: true };
+ default:
+ return { handled: false, reason: `Unhandled event ${eventType}` };
+ }
+};
+
+export default defineLogicFunction({
+ universalIdentifier: LINKEDIN_HANDLE_WEBHOOK_EVENT_UNIVERSAL_IDENTIFIER,
+ name: 'linkedin-handle-webhook-event',
+ description:
+ 'Imports new LinkedIn messages into the connection message channel and flags connections LinkedIn signed out.',
+ timeoutSeconds: 30,
+ handler: linkedinHandleWebhookEventHandler,
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-health-check.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-health-check.ts
new file mode 100644
index 00000000000..62dd95cb4d7
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-health-check.ts
@@ -0,0 +1,27 @@
+import {
+ type ApplicationHealthCheckResult,
+ defineHealthCheck,
+} from 'twenty-sdk/define';
+
+import { LINKEDIN_HEALTH_CHECK_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+
+export const linkedinHealthCheckHandler =
+ async (): Promise<ApplicationHealthCheckResult> => ({
+ status: 'INFO',
+ title: 'Each member connects their own LinkedIn account',
+ description:
+ 'Connect LinkedIn from your app preferences to bring your LinkedIn conversations into Twenty.',
+ action: {
+ label: 'Open app preferences',
+ location: `/settings/accounts/applications/${process.env.APPLICATION_ID}`,
+ },
+ });
+
+export default defineHealthCheck({
+ universalIdentifier: LINKEDIN_HEALTH_CHECK_UNIVERSAL_IDENTIFIER,
+ name: 'linkedin-health-check',
+ description:
+ 'Points members to their app preferences, where each one connects their own LinkedIn account.',
+ timeoutSeconds: 10,
+ handler: linkedinHealthCheckHandler,
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-on-connect.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-on-connect.ts
new file mode 100644
index 00000000000..cb375aae11f
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-on-connect.ts
@@ -0,0 +1,63 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import { defineLogicFunction } from 'twenty-sdk/define';
+import {
+ createMessageChannel,
+ getConnection,
+ kv,
+ listMessageChannels,
+} from 'twenty-sdk/logic-function';
+
+import { PERSON_LINKEDIN_LINK_FIELD_UNIVERSAL_IDENTIFIER } from 'src/constants/person-linkedin-link-field-universal-identifier.constant';
+import { LINKEDIN_ON_CONNECT_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { type LinkedinConnectionHookPayload } from 'src/logic-functions/types/linkedin-connection-hook-payload.type';
+import { buildLinkedinProfileHandle } from 'src/logic-functions/utils/build-linkedin-profile-handle.util';
+import { getUnipileAccountClaimKey } from 'src/unipile/utils/get-unipile-account-claim-key.util';
+import { getUnipileUser } from 'src/unipile/utils/get-unipile-user.util';
+
+export const linkedinOnConnectHandler = async ({
+ connectedAccountId,
+}: LinkedinConnectionHookPayload): Promise<{ messageChannelId: string }> => {
+ const connection = await getConnection(connectedAccountId);
+ const unipileAccountId = connection.externalAccountId;
+
+ if (!isNonEmptyString(unipileAccountId)) {
+ throw new Error(
+ `LinkedIn connection ${connectedAccountId} has no Unipile account`,
+ );
+ }
+
+ const [existingChannel] = await listMessageChannels({ connectedAccountId });
+
+ const channel =
+ existingChannel ??
+ (await (async () => {
+ const profile = await getUnipileUser({
+ accountId: unipileAccountId,
+ userId: 'me',
+ });
+
+ return createMessageChannel({
+ connectedAccountId,
+ handle: buildLinkedinProfileHandle(profile),
+ displayName: profile.display_name,
+ visibility: 'METADATA',
+ participantHandleFieldUniversalIdentifier:
+ PERSON_LINKEDIN_LINK_FIELD_UNIVERSAL_IDENTIFIER,
+ });
+ })());
+
+ await kv.set(getUnipileAccountClaimKey(unipileAccountId), undefined, {
+ scope: 'SERVER',
+ });
+
+ return { messageChannelId: channel.id };
+};
+
+export default defineLogicFunction({
+ universalIdentifier: LINKEDIN_ON_CONNECT_UNIVERSAL_IDENTIFIER,
+ name: 'linkedin-on-connect',
+ description:
+ 'Creates the message channel of a new LinkedIn connection and routes its Unipile webhooks to this workspace.',
+ timeoutSeconds: 30,
+ handler: linkedinOnConnectHandler,
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-on-disconnect.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-on-disconnect.ts
new file mode 100644
index 00000000000..acce410cd99
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-on-disconnect.ts
@@ -0,0 +1,42 @@
+import { defineLogicFunction } from 'twenty-sdk/define';
+import { listConnections } from 'twenty-sdk/logic-function';
+
+import { LINKEDIN_PROVIDER_NAME } from 'src/constants/linkedin-provider-name.constant';
+import { LINKEDIN_ON_DISCONNECT_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { type LinkedinConnectionHookPayload } from 'src/logic-functions/types/linkedin-connection-hook-payload.type';
+import { removeLinkedinConnectionResources } from 'src/logic-functions/utils/remove-linkedin-connection-resources.util';
+
+// getConnection throws for auth-failed connections, which are the ones members
+// most often remove, so the Unipile account id is read from the list instead.
+const findUnipileAccountId = async (
+ connectedAccountId: string,
+): Promise<string | null> => {
+ const connections = await listConnections({
+ providerName: LINKEDIN_PROVIDER_NAME,
+ });
+
+ return (
+ connections.find((connection) => connection.id === connectedAccountId)
+ ?.externalAccountId ?? null
+ );
+};
+
+export const linkedinOnDisconnectHandler = async ({
+ connectedAccountId,
+}: LinkedinConnectionHookPayload): Promise<{ success: true }> => {
+ await removeLinkedinConnectionResources({
+ connectedAccountId,
+ unipileAccountId: await findUnipileAccountId(connectedAccountId),
+ });
+
+ return { success: true };
+};
+
+export default defineLogicFunction({
+ universalIdentifier: LINKEDIN_ON_DISCONNECT_UNIVERSAL_IDENTIFIER,
+ name: 'linkedin-on-disconnect',
+ description:
+ 'Deletes the message channel and the Unipile account of a removed LinkedIn connection.',
+ timeoutSeconds: 30,
+ handler: linkedinOnDisconnectHandler,
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-uninstall.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-uninstall.ts
new file mode 100644
index 00000000000..9c6bfd070f5
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-uninstall.ts
@@ -0,0 +1,46 @@
+import { defineUninstallLogicFunction } from 'twenty-sdk/define';
+import { listConnections } from 'twenty-sdk/logic-function';
+
+import { LINKEDIN_PROVIDER_NAME } from 'src/constants/linkedin-provider-name.constant';
+import { LINKEDIN_UNINSTALL_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { removeLinkedinConnectionResources } from 'src/logic-functions/utils/remove-linkedin-connection-resources.util';
+
+export const linkedinUninstallHandler = async (): Promise<{
+ removedConnectionCount: number;
+}> => {
+ const connections = await listConnections({
+ providerName: LINKEDIN_PROVIDER_NAME,
+ });
+ const failedConnectionIds: string[] = [];
+
+ for (const connection of connections) {
+ try {
+ await removeLinkedinConnectionResources({
+ connectedAccountId: connection.id,
+ unipileAccountId: connection.externalAccountId,
+ });
+ } catch (error) {
+ console.error(
+ `[linkedin] cleanup failed for connection ${connection.id} (Unipile account ${connection.externalAccountId}): ${error instanceof Error ? error.message : String(error)}`,
+ );
+ failedConnectionIds.push(connection.id);
+ }
+ }
+
+ if (failedConnectionIds.length > 0) {
+ throw new Error(
+ `LinkedIn cleanup failed for connections ${failedConnectionIds.join(', ')}`,
+ );
+ }
+
+ return { removedConnectionCount: connections.length };
+};
+
+export default defineUninstallLogicFunction({
+ universalIdentifier: LINKEDIN_UNINSTALL_UNIVERSAL_IDENTIFIER,
+ name: 'linkedin-uninstall',
+ description:
+ 'Removes the message channel, Unipile account and webhook routing of every LinkedIn connection when the app is uninstalled.',
+ timeoutSeconds: 60,
+ handler: linkedinUninstallHandler,
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-webhook-resolver.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-webhook-resolver.ts
new file mode 100644
index 00000000000..6e087407e2d
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/linkedin-webhook-resolver.ts
@@ -0,0 +1,73 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import { defineLogicFunction, type RoutePayload } from 'twenty-sdk/define';
+import {
+ kv,
+ Response,
+ type ServerRouteResolverResult,
+} from 'twenty-sdk/logic-function';
+
+import {
+ LINKEDIN_HANDLE_WEBHOOK_EVENT_UNIVERSAL_IDENTIFIER,
+ LINKEDIN_WEBHOOK_RESOLVER_UNIVERSAL_IDENTIFIER,
+} from 'src/constants/universal-identifiers';
+import { type UnipileWebhookEvent } from 'src/unipile/types/unipile-webhook-event.type';
+import { getUnipileAccountClaimKey } from 'src/unipile/utils/get-unipile-account-claim-key.util';
+import { verifyUnipileWebhookSignature } from 'src/unipile/utils/verify-unipile-webhook-signature.util';
+
+export const linkedinWebhookResolverHandler = async (
+ routePayload: RoutePayload<UnipileWebhookEvent>,
+): Promise<ServerRouteResolverResult> => {
+ const secret = process.env.UNIPILE_WEBHOOK_SECRET;
+
+ if (!isNonEmptyString(secret)) {
+ return new Response(
+ { error: 'UNIPILE_WEBHOOK_SECRET is not configured' },
+ { status: 500 },
+ );
+ }
+
+ const isSignatureValid = verifyUnipileWebhookSignature({
+ signatureHeader: routePayload.headers['unipile-signature'],
+ rawBody: routePayload.rawBody,
+ secret,
+ });
+
+ if (!isSignatureValid) {
+ return new Response({ error: 'Invalid signature' }, { status: 401 });
+ }
+
+ const event = routePayload.body;
+
+ if (event?.account_provider !== 'linkedin') {
+ return new Response({ skipped: 'Not a LinkedIn event' });
+ }
+
+ const workspaceId = await kv.get<string>(
+ getUnipileAccountClaimKey(event.account_id),
+ { scope: 'SERVER' },
+ );
+
+ if (!isNonEmptyString(workspaceId)) {
+ return new Response({ skipped: 'No workspace claims this account' });
+ }
+
+ return {
+ workspaceId,
+ targetLogicFunctionUniversalIdentifier:
+ LINKEDIN_HANDLE_WEBHOOK_EVENT_UNIVERSAL_IDENTIFIER,
+ payload: event,
+ };
+};
+
+export default defineLogicFunction({
+ universalIdentifier: LINKEDIN_WEBHOOK_RESOLVER_UNIVERSAL_IDENTIFIER,
+ name: 'linkedin-webhook-resolver',
+ description:
+ 'Verifies Unipile webhook deliveries and routes each one to the workspace that connected the LinkedIn account.',
+ timeoutSeconds: 15,
+ handler: linkedinWebhookResolverHandler,
+ serverRouteTriggerSettings: {
+ httpMethods: ['POST'],
+ forwardedRequestHeaders: ['unipile-signature'],
+ },
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/types/linkedin-connection-hook-payload.type.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/types/linkedin-connection-hook-payload.type.ts
new file mode 100644
index 00000000000..28c6cb69391
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/types/linkedin-connection-hook-payload.type.ts
@@ -0,0 +1,5 @@
+export type LinkedinConnectionHookPayload = {
+ connectionProviderId: string;
+ connectionProviderName: string;
+ connectedAccountId: string;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/build-linkedin-profile-handle.util.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/build-linkedin-profile-handle.util.test.ts
new file mode 100644
index 00000000000..a49cf719a2d
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/build-linkedin-profile-handle.util.test.ts
@@ -0,0 +1,30 @@
+import { describe, expect, it } from 'vitest';
+
+import { buildLinkedinProfileHandle } from 'src/logic-functions/utils/build-linkedin-profile-handle.util';
+
+describe('buildLinkedinProfileHandle', () => {
+ it('builds the profile URL from the public identifier', () => {
+ expect(
+ buildLinkedinProfileHandle({
+ id: 'ACoAAA',
+ public_identifier: 'ada-lovelace',
+ profile_url: 'https://www.linkedin.com/in/ACoAAA',
+ }),
+ ).toBe('https://www.linkedin.com/in/ada-lovelace');
+ });
+
+ it('falls back to the profile URL', () => {
+ expect(
+ buildLinkedinProfileHandle({
+ id: 'ACoAAA',
+ profile_url: 'https://www.linkedin.com/in/ada',
+ }),
+ ).toBe('https://www.linkedin.com/in/ada');
+ });
+
+ it('falls back to the provider id', () => {
+ expect(buildLinkedinProfileHandle({ id: 'ACoAAA' })).toBe(
+ 'https://www.linkedin.com/in/ACoAAA',
+ );
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/get-linkedin-chat-counterparts.util.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/get-linkedin-chat-counterparts.util.test.ts
new file mode 100644
index 00000000000..bdaad835f56
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/get-linkedin-chat-counterparts.util.test.ts
@@ -0,0 +1,37 @@
+import { describe, expect, it } from 'vitest';
+
+import { getLinkedinChatCounterparts } from 'src/logic-functions/utils/get-linkedin-chat-counterparts.util';
+
+const GRACE = { id: 'ACoGRACE', display_name: 'Grace Hopper' };
+const ADA = { id: 'ACoADA', display_name: 'Ada Lovelace' };
+const ME = { id: 'ACoME', display_name: 'Me' };
+
+describe('getLinkedinChatCounterparts', () => {
+ it('returns the other user of a one-to-one chat', () => {
+ expect(
+ getLinkedinChatCounterparts({
+ id: 'chat-1',
+ name: 'Grace Hopper',
+ is_group: false,
+ is_1to1: true,
+ user: GRACE,
+ }),
+ ).toEqual([GRACE]);
+ });
+
+ it('returns the group participants other than the account owner', () => {
+ expect(
+ getLinkedinChatCounterparts({
+ id: 'chat-2',
+ name: 'Pioneers',
+ is_group: true,
+ is_1to1: false,
+ participants: [
+ { is_self: true, user: ME },
+ { is_self: false, user: GRACE },
+ { is_self: false, user: ADA },
+ ],
+ }),
+ ).toEqual([GRACE, ADA]);
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/map-unipile-message-to-ingest-message.util.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/map-unipile-message-to-ingest-message.util.test.ts
new file mode 100644
index 00000000000..5beba7353e8
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/map-unipile-message-to-ingest-message.util.test.ts
@@ -0,0 +1,108 @@
+import { describe, expect, it } from 'vitest';
+
+import { mapUnipileMessageToIngestMessage } from 'src/logic-functions/utils/map-unipile-message-to-ingest-message.util';
+import { type UnipileMessage } from 'src/unipile/types/unipile-message.type';
+
+const CHANNEL_HANDLE = 'linkedin.com/in/me';
+
+const buildMessage = (overrides: Partial<UnipileMessage> = {}): UnipileMessage => ({
+ id: 'message-1',
+ chat_id: 'chat-1',
+ sender_id: 'ACoGRACE',
+ sender: {
+ id: 'ACoGRACE',
+ display_name: 'Grace Hopper',
+ public_identifier: 'grace-hopper',
+ },
+ text: 'Hello',
+ timestamp: '2026-10-28T10:00:00.000Z',
+ is_sender: false,
+ is_deleted: false,
+ is_event: false,
+ provider: 'linkedin',
+ ...overrides,
+});
+
+describe('mapUnipileMessageToIngestMessage', () => {
+ it('maps a received message from the sender to the channel', () => {
+ expect(
+ mapUnipileMessageToIngestMessage({
+ message: buildMessage(),
+ channelHandle: CHANNEL_HANDLE,
+ counterparts: [],
+ }),
+ ).toEqual({
+ externalId: 'message-1',
+ threadExternalId: 'chat-1',
+ text: 'Hello',
+ receivedAt: new Date('2026-10-28T10:00:00.000Z'),
+ participants: [
+ {
+ role: 'FROM',
+ handle: 'https://www.linkedin.com/in/grace-hopper',
+ displayName: 'Grace Hopper',
+ },
+ { role: 'TO', handle: CHANNEL_HANDLE },
+ ],
+ });
+ });
+
+ it('maps a sent message from the channel to the chat counterparts', () => {
+ expect(
+ mapUnipileMessageToIngestMessage({
+ message: buildMessage({ is_sender: true, sender: undefined }),
+ channelHandle: CHANNEL_HANDLE,
+ counterparts: [
+ {
+ id: 'ACoGRACE',
+ display_name: 'Grace Hopper',
+ public_identifier: 'grace-hopper',
+ },
+ ],
+ })?.participants,
+ ).toEqual([
+ { role: 'FROM', handle: CHANNEL_HANDLE },
+ {
+ role: 'TO',
+ handle: 'https://www.linkedin.com/in/grace-hopper',
+ displayName: 'Grace Hopper',
+ },
+ ]);
+ });
+
+ it('falls back to the sender id when the sender profile is missing', () => {
+ expect(
+ mapUnipileMessageToIngestMessage({
+ message: buildMessage({ sender: undefined }),
+ channelHandle: CHANNEL_HANDLE,
+ counterparts: [],
+ })?.participants[0],
+ ).toEqual({
+ role: 'FROM',
+ handle: 'https://www.linkedin.com/in/ACoGRACE',
+ });
+ });
+
+ it('keeps attachment-only messages with an empty text', () => {
+ expect(
+ mapUnipileMessageToIngestMessage({
+ message: buildMessage({ text: undefined }),
+ channelHandle: CHANNEL_HANDLE,
+ counterparts: [],
+ })?.text,
+ ).toBe('');
+ });
+
+ it.each([{ is_event: true }, { is_deleted: true }])(
+ 'skips %o messages',
+ (overrides) => {
+ expect(
+ mapUnipileMessageToIngestMessage({
+ message: buildMessage(overrides),
+ channelHandle: CHANNEL_HANDLE,
+ counterparts: [],
+ }),
+ ).toBeNull();
+ },
+ );
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/remove-linkedin-connection-resources.util.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/remove-linkedin-connection-resources.util.test.ts
new file mode 100644
index 00000000000..d240d49ff5c
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/remove-linkedin-connection-resources.util.test.ts
@@ -0,0 +1,59 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+const mocks = vi.hoisted(() => ({
+ listMessageChannels: vi.fn(),
+ deleteMessageChannel: vi.fn(),
+ kvDelete: vi.fn(),
+ deleteUnipileAccountOrThrow: vi.fn(),
+}));
+
+vi.mock('twenty-sdk/logic-function', () => ({
+ listMessageChannels: mocks.listMessageChannels,
+ deleteMessageChannel: mocks.deleteMessageChannel,
+ kv: { delete: mocks.kvDelete },
+}));
+
+vi.mock('src/unipile/utils/delete-unipile-account-or-throw.util', () => ({
+ deleteUnipileAccountOrThrow: mocks.deleteUnipileAccountOrThrow,
+}));
+
+const { removeLinkedinConnectionResources } =
+ await import('src/logic-functions/utils/remove-linkedin-connection-resources.util');
+
+describe('removeLinkedinConnectionResources', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ mocks.listMessageChannels.mockResolvedValue([{ id: 'channel-id' }]);
+ });
+
+ it('deletes the channel, the Unipile account and the routing claim', async () => {
+ await removeLinkedinConnectionResources({
+ connectedAccountId: 'connection-id',
+ unipileAccountId: 'acc_1',
+ });
+
+ expect(mocks.deleteMessageChannel).toHaveBeenCalledExactlyOnceWith(
+ 'channel-id',
+ );
+ expect(mocks.deleteUnipileAccountOrThrow).toHaveBeenCalledExactlyOnceWith(
+ 'acc_1',
+ );
+ expect(mocks.kvDelete).toHaveBeenCalledExactlyOnceWith(
+ 'unipile-account:acc_1',
+ { scope: 'SERVER' },
+ );
+ });
+
+ it('only deletes the channel when the Unipile account is unknown', async () => {
+ await removeLinkedinConnectionResources({
+ connectedAccountId: 'connection-id',
+ unipileAccountId: null,
+ });
+
+ expect(mocks.deleteMessageChannel).toHaveBeenCalledExactlyOnceWith(
+ 'channel-id',
+ );
+ expect(mocks.deleteUnipileAccountOrThrow).not.toHaveBeenCalled();
+ expect(mocks.kvDelete).not.toHaveBeenCalled();
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/with-linkedin-public-identifier.util.test.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/with-linkedin-public-identifier.util.test.ts
new file mode 100644
index 00000000000..b9be071d1af
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/__tests__/with-linkedin-public-identifier.util.test.ts
@@ -0,0 +1,82 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+const mocks = vi.hoisted(() => ({
+ kvGet: vi.fn(),
+ kvSet: vi.fn(),
+ getUnipileUser: vi.fn(),
+}));
+
+vi.mock('twenty-sdk/logic-function', () => ({
+ kv: { get: mocks.kvGet, set: mocks.kvSet },
+}));
+
+vi.mock('src/unipile/utils/get-unipile-user.util', () => ({
+ getUnipileUser: mocks.getUnipileUser,
+}));
+
+const { withLinkedinPublicIdentifier } =
+ await import('src/logic-functions/utils/with-linkedin-public-identifier.util');
+
+const DAPHNE = {
+ id: 'ACoDAPHNE',
+ display_name: 'DaphnΓ© MΓΌller',
+ profile_url: 'https://www.linkedin.com/in/ACoDAPHNE',
+};
+
+describe('withLinkedinPublicIdentifier', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ vi.spyOn(console, 'warn').mockImplementation(() => undefined);
+ mocks.kvGet.mockResolvedValue(null);
+ });
+
+ it('keeps a user that already carries its public identifier', async () => {
+ const user = { ...DAPHNE, public_identifier: 'daphne-muller' };
+
+ await expect(
+ withLinkedinPublicIdentifier({ unipileAccountId: 'acc_1', user }),
+ ).resolves.toBe(user);
+ expect(mocks.kvGet).not.toHaveBeenCalled();
+ expect(mocks.getUnipileUser).not.toHaveBeenCalled();
+ });
+
+ it('reads a cached public identifier without calling Unipile', async () => {
+ mocks.kvGet.mockResolvedValue('daphne-muller');
+
+ await expect(
+ withLinkedinPublicIdentifier({ unipileAccountId: 'acc_1', user: DAPHNE }),
+ ).resolves.toEqual({ ...DAPHNE, public_identifier: 'daphne-muller' });
+ expect(mocks.kvGet).toHaveBeenCalledExactlyOnceWith(
+ 'linkedin-public-identifier:ACoDAPHNE',
+ );
+ expect(mocks.getUnipileUser).not.toHaveBeenCalled();
+ });
+
+ it('fetches and caches the public identifier of an unknown user', async () => {
+ mocks.getUnipileUser.mockResolvedValue({
+ ...DAPHNE,
+ public_identifier: 'daphne-muller',
+ });
+
+ await expect(
+ withLinkedinPublicIdentifier({ unipileAccountId: 'acc_1', user: DAPHNE }),
+ ).resolves.toEqual({ ...DAPHNE, public_identifier: 'daphne-muller' });
+ expect(mocks.getUnipileUser).toHaveBeenCalledExactlyOnceWith({
+ accountId: 'acc_1',
+ userId: 'ACoDAPHNE',
+ });
+ expect(mocks.kvSet).toHaveBeenCalledExactlyOnceWith(
+ 'linkedin-public-identifier:ACoDAPHNE',
+ 'daphne-muller',
+ );
+ });
+
+ it('falls back to the user as received when the profile lookup fails', async () => {
+ mocks.getUnipileUser.mockRejectedValue(new Error('429 too many requests'));
+
+ await expect(
+ withLinkedinPublicIdentifier({ unipileAccountId: 'acc_1', user: DAPHNE }),
+ ).resolves.toBe(DAPHNE);
+ expect(mocks.kvSet).not.toHaveBeenCalled();
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/build-linkedin-participant.util.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/build-linkedin-participant.util.ts
new file mode 100644
index 00000000000..77acc7a64a5
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/build-linkedin-participant.util.ts
@@ -0,0 +1,16 @@
+import { type IngestMessageParticipant } from 'twenty-sdk/logic-function';
+
+import { buildLinkedinProfileHandle } from 'src/logic-functions/utils/build-linkedin-profile-handle.util';
+import { type UnipileUser } from 'src/unipile/types/unipile-user.type';
+
+export const buildLinkedinParticipant = ({
+ role,
+ user,
+}: {
+ role: IngestMessageParticipant['role'];
+ user: UnipileUser;
+}): IngestMessageParticipant => ({
+ role,
+ handle: buildLinkedinProfileHandle(user),
+ displayName: user.display_name,
+});
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/build-linkedin-profile-handle.util.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/build-linkedin-profile-handle.util.ts
new file mode 100644
index 00000000000..7b7071f0b0a
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/build-linkedin-profile-handle.util.ts
@@ -0,0 +1,18 @@
+import { isNonEmptyString } from '@sniptt/guards';
+
+import { LINKEDIN_PROFILE_BASE_URL } from 'src/constants/linkedin-profile-base-url.constant';
+import { type UnipileUser } from 'src/unipile/types/unipile-user.type';
+
+export const buildLinkedinProfileHandle = (
+ user: Pick<UnipileUser, 'id' | 'public_identifier' | 'profile_url'>,
+): string => {
+ if (isNonEmptyString(user.public_identifier)) {
+ return `${LINKEDIN_PROFILE_BASE_URL}${user.public_identifier}`;
+ }
+
+ if (isNonEmptyString(user.profile_url)) {
+ return user.profile_url;
+ }
+
+ return `${LINKEDIN_PROFILE_BASE_URL}${user.id}`;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/find-linkedin-connection-by-unipile-account-id.util.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/find-linkedin-connection-by-unipile-account-id.util.ts
new file mode 100644
index 00000000000..45087523b47
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/find-linkedin-connection-by-unipile-account-id.util.ts
@@ -0,0 +1,15 @@
+import { type AppConnection, listConnections } from 'twenty-sdk/logic-function';
+
+import { LINKEDIN_PROVIDER_NAME } from 'src/constants/linkedin-provider-name.constant';
+
+export const findLinkedinConnectionByUnipileAccountId = async (
+ unipileAccountId: string,
+): Promise<AppConnection | undefined> => {
+ const connections = await listConnections({
+ providerName: LINKEDIN_PROVIDER_NAME,
+ });
+
+ return connections.find(
+ (connection) => connection.externalAccountId === unipileAccountId,
+ );
+};
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/get-linkedin-chat-counterparts.util.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/get-linkedin-chat-counterparts.util.ts
new file mode 100644
index 00000000000..dd84a4fd425
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/get-linkedin-chat-counterparts.util.ts
@@ -0,0 +1,16 @@
+import { isDefined } from 'twenty-sdk/utils';
+
+import { type UnipileChat } from 'src/unipile/types/unipile-chat.type';
+import { type UnipileUser } from 'src/unipile/types/unipile-user.type';
+
+export const getLinkedinChatCounterparts = (
+ chat: UnipileChat,
+): UnipileUser[] => {
+ if (isDefined(chat.user)) {
+ return [chat.user];
+ }
+
+ return (chat.participants ?? [])
+ .filter((participant) => !participant.is_self)
+ .map((participant) => participant.user);
+};
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/get-linkedin-public-identifier-key.util.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/get-linkedin-public-identifier-key.util.ts
new file mode 100644
index 00000000000..f5d00a7f272
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/get-linkedin-public-identifier-key.util.ts
@@ -0,0 +1,2 @@
+export const getLinkedinPublicIdentifierKey = (providerUserId: string) =>
+ `linkedin-public-identifier:${providerUserId}`;
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/map-unipile-message-to-ingest-message.util.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/map-unipile-message-to-ingest-message.util.ts
new file mode 100644
index 00000000000..d9161584fb3
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/map-unipile-message-to-ingest-message.util.ts
@@ -0,0 +1,64 @@
+import { isDefined } from 'twenty-sdk/utils';
+import {
+ type IngestMessage,
+ type IngestMessageParticipant,
+} from 'twenty-sdk/logic-function';
+
+import { buildLinkedinParticipant } from 'src/logic-functions/utils/build-linkedin-participant.util';
+import { buildLinkedinProfileHandle } from 'src/logic-functions/utils/build-linkedin-profile-handle.util';
+import { type UnipileMessage } from 'src/unipile/types/unipile-message.type';
+import { type UnipileUser } from 'src/unipile/types/unipile-user.type';
+
+const buildLinkedinMessageParticipants = ({
+ message,
+ channelHandle,
+ counterparts,
+}: {
+ message: UnipileMessage;
+ channelHandle: string;
+ counterparts: UnipileUser[];
+}): IngestMessageParticipant[] => {
+ if (message.is_sender) {
+ return [
+ { role: 'FROM', handle: channelHandle },
+ ...counterparts.map((user) =>
+ buildLinkedinParticipant({ role: 'TO', user }),
+ ),
+ ];
+ }
+
+ const sender: IngestMessageParticipant = isDefined(message.sender)
+ ? buildLinkedinParticipant({ role: 'FROM', user: message.sender })
+ : {
+ role: 'FROM',
+ handle: buildLinkedinProfileHandle({ id: message.sender_id }),
+ };
+
+ return [sender, { role: 'TO', handle: channelHandle }];
+};
+
+export const mapUnipileMessageToIngestMessage = ({
+ message,
+ channelHandle,
+ counterparts,
+}: {
+ message: UnipileMessage;
+ channelHandle: string;
+ counterparts: UnipileUser[];
+}): IngestMessage | null => {
+ if (message.is_event || message.is_deleted) {
+ return null;
+ }
+
+ return {
+ externalId: message.id,
+ threadExternalId: message.chat_id,
+ text: message.text ?? '',
+ receivedAt: new Date(message.timestamp),
+ participants: buildLinkedinMessageParticipants({
+ message,
+ channelHandle,
+ counterparts,
+ }),
+ };
+};
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/remove-linkedin-connection-resources.util.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/remove-linkedin-connection-resources.util.ts
new file mode 100644
index 00000000000..6638dda2668
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/remove-linkedin-connection-resources.util.ts
@@ -0,0 +1,30 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import {
+ deleteMessageChannel,
+ kv,
+ listMessageChannels,
+} from 'twenty-sdk/logic-function';
+
+import { deleteUnipileAccountOrThrow } from 'src/unipile/utils/delete-unipile-account-or-throw.util';
+import { getUnipileAccountClaimKey } from 'src/unipile/utils/get-unipile-account-claim-key.util';
+
+export const removeLinkedinConnectionResources = async ({
+ connectedAccountId,
+ unipileAccountId,
+}: {
+ connectedAccountId: string;
+ unipileAccountId: string | null;
+}): Promise<void> => {
+ const channels = await listMessageChannels({ connectedAccountId });
+
+ await Promise.all(
+ channels.map((channel) => deleteMessageChannel(channel.id)),
+ );
+
+ if (isNonEmptyString(unipileAccountId)) {
+ await deleteUnipileAccountOrThrow(unipileAccountId);
+ await kv.delete(getUnipileAccountClaimKey(unipileAccountId), {
+ scope: 'SERVER',
+ });
+ }
+};
diff --git a/packages/twenty-apps/public/linkedin/src/logic-functions/utils/with-linkedin-public-identifier.util.ts b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/with-linkedin-public-identifier.util.ts
new file mode 100644
index 00000000000..ce594092ce5
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/logic-functions/utils/with-linkedin-public-identifier.util.ts
@@ -0,0 +1,46 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import { kv } from 'twenty-sdk/logic-function';
+
+import { getLinkedinPublicIdentifierKey } from 'src/logic-functions/utils/get-linkedin-public-identifier-key.util';
+import { type UnipileUser } from 'src/unipile/types/unipile-user.type';
+import { getUnipileUser } from 'src/unipile/utils/get-unipile-user.util';
+
+export const withLinkedinPublicIdentifier = async ({
+ unipileAccountId,
+ user,
+}: {
+ unipileAccountId: string;
+ user: UnipileUser;
+}): Promise<UnipileUser> => {
+ if (isNonEmptyString(user.public_identifier)) {
+ return user;
+ }
+
+ const cacheKey = getLinkedinPublicIdentifierKey(user.id);
+ const cachedPublicIdentifier = await kv.get<string>(cacheKey);
+
+ if (isNonEmptyString(cachedPublicIdentifier)) {
+ return { ...user, public_identifier: cachedPublicIdentifier };
+ }
+
+ try {
+ const { public_identifier: publicIdentifier } = await getUnipileUser({
+ accountId: unipileAccountId,
+ userId: user.id,
+ });
+
+ if (!isNonEmptyString(publicIdentifier)) {
+ return user;
+ }
+
+ await kv.set(cacheKey, publicIdentifier);
+
+ return { ...user, public_identifier: publicIdentifier };
+ } catch (error) {
+ console.warn(
+ `[linkedin] could not resolve the public identifier of ${user.id}: ${error instanceof Error ? error.message : String(error)}`,
+ );
+
+ return user;
+ }
+};
diff --git a/packages/twenty-apps/public/linkedin/src/roles/default-function.role.ts b/packages/twenty-apps/public/linkedin/src/roles/default-function.role.ts
new file mode 100644
index 00000000000..638e3a68f88
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/roles/default-function.role.ts
@@ -0,0 +1,20 @@
+import { defineApplicationRole } from 'twenty-sdk/define';
+
+import { DEFAULT_ROLE_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+
+export default defineApplicationRole({
+ universalIdentifier: DEFAULT_ROLE_UNIVERSAL_IDENTIFIER,
+ label: 'LinkedIn function role',
+ description: 'No-op role for LinkedIn logic functions',
+ canReadAllObjectRecords: false,
+ canUpdateAllObjectRecords: false,
+ canSoftDeleteAllObjectRecords: false,
+ canDestroyAllObjectRecords: false,
+ canUpdateAllSettings: false,
+ canBeAssignedToAgents: false,
+ canBeAssignedToUsers: false,
+ canBeAssignedToApiKeys: false,
+ objectPermissions: [],
+ fieldPermissions: [],
+ permissionFlagUniversalIdentifiers: [],
+});
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/constants/unipile-hosted-auth-link-ttl-milliseconds.constant.ts b/packages/twenty-apps/public/linkedin/src/unipile/constants/unipile-hosted-auth-link-ttl-milliseconds.constant.ts
new file mode 100644
index 00000000000..cc1ff073fc8
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/constants/unipile-hosted-auth-link-ttl-milliseconds.constant.ts
@@ -0,0 +1 @@
+export const UNIPILE_HOSTED_AUTH_LINK_TTL_MILLISECONDS = 60 * 60 * 1000;
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/constants/unipile-webhook-signature-tolerance-seconds.constant.ts b/packages/twenty-apps/public/linkedin/src/unipile/constants/unipile-webhook-signature-tolerance-seconds.constant.ts
new file mode 100644
index 00000000000..f9518529284
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/constants/unipile-webhook-signature-tolerance-seconds.constant.ts
@@ -0,0 +1 @@
+export const UNIPILE_WEBHOOK_SIGNATURE_TOLERANCE_SECONDS = 5 * 60;
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-account-status.type.ts b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-account-status.type.ts
new file mode 100644
index 00000000000..4047aabec81
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-account-status.type.ts
@@ -0,0 +1,6 @@
+export type UnipileAccountStatus =
+ | 'running'
+ | 'errored'
+ | 'disconnected'
+ | 'degraded'
+ | 'partial';
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-account.type.ts b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-account.type.ts
new file mode 100644
index 00000000000..f4c3248d1fa
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-account.type.ts
@@ -0,0 +1,12 @@
+import { type UnipileAccountStatus } from 'src/unipile/types/unipile-account-status.type';
+import { type UnipileProvider } from 'src/unipile/types/unipile-provider.type';
+
+export type UnipileAccount = {
+ object: 'Account';
+ id: string;
+ user_id: string;
+ name?: string;
+ created_at: string;
+ status: UnipileAccountStatus;
+ provider: UnipileProvider;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-chat-participant.type.ts b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-chat-participant.type.ts
new file mode 100644
index 00000000000..704792c2cd1
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-chat-participant.type.ts
@@ -0,0 +1,6 @@
+import { type UnipileUser } from 'src/unipile/types/unipile-user.type';
+
+export type UnipileChatParticipant = {
+ is_self: boolean;
+ user: UnipileUser;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-chat.type.ts b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-chat.type.ts
new file mode 100644
index 00000000000..716217f6fbd
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-chat.type.ts
@@ -0,0 +1,12 @@
+import { type UnipileChatParticipant } from 'src/unipile/types/unipile-chat-participant.type';
+import { type UnipileUser } from 'src/unipile/types/unipile-user.type';
+
+export type UnipileChat = {
+ id: string;
+ name: string;
+ is_group: boolean;
+ is_1to1: boolean;
+ user_id?: string;
+ user?: UnipileUser;
+ participants?: UnipileChatParticipant[];
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-message.type.ts b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-message.type.ts
new file mode 100644
index 00000000000..182a1a36298
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-message.type.ts
@@ -0,0 +1,15 @@
+import { type UnipileProvider } from 'src/unipile/types/unipile-provider.type';
+import { type UnipileUser } from 'src/unipile/types/unipile-user.type';
+
+export type UnipileMessage = {
+ id: string;
+ chat_id: string;
+ sender_id: string;
+ sender?: UnipileUser;
+ text?: string;
+ timestamp: string;
+ is_sender: boolean;
+ is_deleted: boolean;
+ is_event: boolean;
+ provider: UnipileProvider;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-provider.type.ts b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-provider.type.ts
new file mode 100644
index 00000000000..e12103b0f27
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-provider.type.ts
@@ -0,0 +1,9 @@
+export type UnipileProvider =
+ | 'linkedin'
+ | 'whatsapp'
+ | 'instagram'
+ | 'telegram'
+ | 'google'
+ | 'outlook'
+ | 'imap'
+ | 'mock';
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-user.type.ts b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-user.type.ts
new file mode 100644
index 00000000000..a827bc8c369
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-user.type.ts
@@ -0,0 +1,8 @@
+export type UnipileUser = {
+ id: string;
+ display_name: string;
+ public_identifier?: string;
+ profile_url?: string;
+ first_name?: string;
+ last_name?: string;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-webhook-event.type.ts b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-webhook-event.type.ts
new file mode 100644
index 00000000000..45b388bc50f
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/types/unipile-webhook-event.type.ts
@@ -0,0 +1,18 @@
+import { type UnipileMessage } from 'src/unipile/types/unipile-message.type';
+import { type UnipileProvider } from 'src/unipile/types/unipile-provider.type';
+
+type UnipileWebhookEventEnvelope = {
+ id: string;
+ created_at: string;
+ account_id: string;
+ account_provider: UnipileProvider;
+};
+
+export type UnipileWebhookEvent = UnipileWebhookEventEnvelope &
+ (
+ | { type: 'message.new'; payload: UnipileMessage }
+ | {
+ type: 'account.status.disconnected' | 'account.status.errored';
+ payload: unknown;
+ }
+ );
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/__tests__/split-callback-url-state-or-throw.util.test.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/__tests__/split-callback-url-state-or-throw.util.test.ts
new file mode 100644
index 00000000000..b030dab7301
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/__tests__/split-callback-url-state-or-throw.util.test.ts
@@ -0,0 +1,24 @@
+import { describe, expect, it } from 'vitest';
+
+import { splitCallbackUrlStateOrThrow } from 'src/unipile/utils/split-callback-url-state-or-throw.util';
+
+describe('splitCallbackUrlStateOrThrow', () => {
+ it('moves the state out of the callback URL', () => {
+ expect(
+ splitCallbackUrlStateOrThrow(
+ 'https://api.twenty.com/auth/apps/custom/callback?state=signed.state',
+ ),
+ ).toEqual({
+ redirectUri: 'https://api.twenty.com/auth/apps/custom/callback',
+ state: 'signed.state',
+ });
+ });
+
+ it('throws when the callback URL carries no state', () => {
+ expect(() =>
+ splitCallbackUrlStateOrThrow(
+ 'https://api.twenty.com/auth/apps/custom/callback',
+ ),
+ ).toThrow('Connection callback URL has no state');
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/__tests__/verify-unipile-webhook-signature.util.test.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/__tests__/verify-unipile-webhook-signature.util.test.ts
new file mode 100644
index 00000000000..fc655247e15
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/__tests__/verify-unipile-webhook-signature.util.test.ts
@@ -0,0 +1,96 @@
+import { createHmac } from 'node:crypto';
+
+import { describe, expect, it } from 'vitest';
+
+import { verifyUnipileWebhookSignature } from 'src/unipile/utils/verify-unipile-webhook-signature.util';
+
+const SECRET = 'webhook-secret';
+const RAW_BODY = '{"id":"evt_1","type":"message.new"}';
+const NOW_IN_SECONDS = 1_800_000_000;
+
+const sign = ({
+ timestamp,
+ rawBody = RAW_BODY,
+ secret = SECRET,
+}: {
+ timestamp: number;
+ rawBody?: string;
+ secret?: string;
+}) =>
+ `t=${timestamp},v0=${createHmac('sha256', secret)
+ .update(`${timestamp}.${rawBody}`)
+ .digest('hex')}`;
+
+describe('verifyUnipileWebhookSignature', () => {
+ it('accepts a delivery signed with the endpoint secret', () => {
+ expect(
+ verifyUnipileWebhookSignature({
+ signatureHeader: sign({ timestamp: NOW_IN_SECONDS }),
+ rawBody: RAW_BODY,
+ secret: SECRET,
+ nowInSeconds: NOW_IN_SECONDS,
+ }),
+ ).toBe(true);
+ });
+
+ it('rejects a body that does not match the signature', () => {
+ expect(
+ verifyUnipileWebhookSignature({
+ signatureHeader: sign({ timestamp: NOW_IN_SECONDS }),
+ rawBody: '{"id":"evt_2"}',
+ secret: SECRET,
+ nowInSeconds: NOW_IN_SECONDS,
+ }),
+ ).toBe(false);
+ });
+
+ it('rejects a delivery signed with another secret', () => {
+ expect(
+ verifyUnipileWebhookSignature({
+ signatureHeader: sign({
+ timestamp: NOW_IN_SECONDS,
+ secret: 'other-secret',
+ }),
+ rawBody: RAW_BODY,
+ secret: SECRET,
+ nowInSeconds: NOW_IN_SECONDS,
+ }),
+ ).toBe(false);
+ });
+
+ it('rejects a replayed delivery outside the tolerance window', () => {
+ expect(
+ verifyUnipileWebhookSignature({
+ signatureHeader: sign({ timestamp: NOW_IN_SECONDS - 600 }),
+ rawBody: RAW_BODY,
+ secret: SECRET,
+ nowInSeconds: NOW_IN_SECONDS,
+ }),
+ ).toBe(false);
+ });
+
+ it.each([undefined, '', 'v0=abc', 't=1800000000', 't=abc,v0=00'])(
+ 'rejects the malformed header %s',
+ (signatureHeader) => {
+ expect(
+ verifyUnipileWebhookSignature({
+ signatureHeader,
+ rawBody: RAW_BODY,
+ secret: SECRET,
+ nowInSeconds: NOW_IN_SECONDS,
+ }),
+ ).toBe(false);
+ },
+ );
+
+ it('rejects a delivery without a raw body', () => {
+ expect(
+ verifyUnipileWebhookSignature({
+ signatureHeader: sign({ timestamp: NOW_IN_SECONDS }),
+ rawBody: undefined,
+ secret: SECRET,
+ nowInSeconds: NOW_IN_SECONDS,
+ }),
+ ).toBe(false);
+ });
+});
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/create-unipile-hosted-auth-link.util.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/create-unipile-hosted-auth-link.util.ts
new file mode 100644
index 00000000000..e39bf4239f3
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/create-unipile-hosted-auth-link.util.ts
@@ -0,0 +1,30 @@
+import { UnipileHostedAuth } from '@unipile/sdk';
+
+import { UNIPILE_HOSTED_AUTH_LINK_TTL_MILLISECONDS } from 'src/unipile/constants/unipile-hosted-auth-link-ttl-milliseconds.constant';
+import { type UnipileProvider } from 'src/unipile/types/unipile-provider.type';
+import { getUnipileRequestOptions } from 'src/unipile/utils/get-unipile-request-options.util';
+import { splitCallbackUrlStateOrThrow } from 'src/unipile/utils/split-callback-url-state-or-throw.util';
+
+export const createUnipileHostedAuthLink = async ({
+ provider,
+ callbackUrl,
+}: {
+ provider: Exclude<UnipileProvider, 'mock'>;
+ callbackUrl: string;
+}): Promise<string> => {
+ const { redirectUri, state } = splitCallbackUrlStateOrThrow(callbackUrl);
+
+ const { data } = await new UnipileHostedAuth().createAuthLink({
+ ...getUnipileRequestOptions(),
+ body: {
+ providers: [provider],
+ redirect_uri: redirectUri,
+ state,
+ expires_on: new Date(
+ Date.now() + UNIPILE_HOSTED_AUTH_LINK_TTL_MILLISECONDS,
+ ).toISOString(),
+ },
+ });
+
+ return data.link;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/delete-unipile-account-or-throw.util.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/delete-unipile-account-or-throw.util.ts
new file mode 100644
index 00000000000..4822d8d113e
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/delete-unipile-account-or-throw.util.ts
@@ -0,0 +1,20 @@
+import { UnipileAccounts } from '@unipile/sdk';
+import { isDefined } from 'twenty-sdk/utils';
+
+import { getUnipileRequestOptions } from 'src/unipile/utils/get-unipile-request-options.util';
+
+export const deleteUnipileAccountOrThrow = async (
+ accountId: string,
+): Promise<void> => {
+ const { error, response } = await new UnipileAccounts().removeAccount({
+ ...getUnipileRequestOptions(),
+ throwOnError: false,
+ path: { account_id: accountId },
+ });
+
+ if (isDefined(error) && response.status !== 404) {
+ throw new Error(
+ `Unipile account ${accountId} removal failed with ${response.status}: ${JSON.stringify(error)}`,
+ );
+ }
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-account-claim-key.util.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-account-claim-key.util.ts
new file mode 100644
index 00000000000..d85cd7fd365
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-account-claim-key.util.ts
@@ -0,0 +1,2 @@
+export const getUnipileAccountClaimKey = (accountId: string): string =>
+ `unipile-account:${accountId}`;
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-account.util.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-account.util.ts
new file mode 100644
index 00000000000..6781381ad95
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-account.util.ts
@@ -0,0 +1,15 @@
+import { UnipileAccounts } from '@unipile/sdk';
+
+import { type UnipileAccount } from 'src/unipile/types/unipile-account.type';
+import { getUnipileRequestOptions } from 'src/unipile/utils/get-unipile-request-options.util';
+
+export const getUnipileAccount = async (
+ accountId: string,
+): Promise<UnipileAccount> => {
+ const { data } = await new UnipileAccounts().getAccount({
+ ...getUnipileRequestOptions(),
+ path: { account_id: accountId },
+ });
+
+ return data;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-api-key-or-throw.util.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-api-key-or-throw.util.ts
new file mode 100644
index 00000000000..0dbe53f514a
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-api-key-or-throw.util.ts
@@ -0,0 +1,11 @@
+import { isNonEmptyString } from '@sniptt/guards';
+
+export const getUnipileApiKeyOrThrow = (): string => {
+ const apiKey = process.env.UNIPILE_API_KEY;
+
+ if (!isNonEmptyString(apiKey)) {
+ throw new Error('UNIPILE_API_KEY server variable is not set');
+ }
+
+ return apiKey;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-chat.util.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-chat.util.ts
new file mode 100644
index 00000000000..8735e4e1611
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-chat.util.ts
@@ -0,0 +1,19 @@
+import { UnipileMessaging } from '@unipile/sdk';
+
+import { type UnipileChat } from 'src/unipile/types/unipile-chat.type';
+import { getUnipileRequestOptions } from 'src/unipile/utils/get-unipile-request-options.util';
+
+export const getUnipileChat = async ({
+ accountId,
+ chatId,
+}: {
+ accountId: string;
+ chatId: string;
+}): Promise<UnipileChat> => {
+ const { data } = await new UnipileMessaging().getChat({
+ ...getUnipileRequestOptions(),
+ path: { account_id: accountId, chat_id: chatId },
+ });
+
+ return data;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-request-options.util.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-request-options.util.ts
new file mode 100644
index 00000000000..13fe8ab9f01
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-request-options.util.ts
@@ -0,0 +1,6 @@
+import { getUnipileApiKeyOrThrow } from 'src/unipile/utils/get-unipile-api-key-or-throw.util';
+
+export const getUnipileRequestOptions = () => ({
+ auth: getUnipileApiKeyOrThrow(),
+ throwOnError: true as const,
+});
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-user.util.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-user.util.ts
new file mode 100644
index 00000000000..09a4249129f
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/get-unipile-user.util.ts
@@ -0,0 +1,19 @@
+import { UnipileUsers } from '@unipile/sdk';
+
+import { type UnipileUser } from 'src/unipile/types/unipile-user.type';
+import { getUnipileRequestOptions } from 'src/unipile/utils/get-unipile-request-options.util';
+
+export const getUnipileUser = async ({
+ accountId,
+ userId,
+}: {
+ accountId: string;
+ userId: string;
+}): Promise<UnipileUser> => {
+ const { data } = await new UnipileUsers().getUserProfile({
+ ...getUnipileRequestOptions(),
+ path: { account_id: accountId, user_id: userId },
+ });
+
+ return data;
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/split-callback-url-state-or-throw.util.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/split-callback-url-state-or-throw.util.ts
new file mode 100644
index 00000000000..f0418d1ab99
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/split-callback-url-state-or-throw.util.ts
@@ -0,0 +1,16 @@
+import { isNonEmptyString } from '@sniptt/guards';
+
+export const splitCallbackUrlStateOrThrow = (
+ callbackUrl: string,
+): { redirectUri: string; state: string } => {
+ const url = new URL(callbackUrl);
+ const state = url.searchParams.get('state');
+
+ if (!isNonEmptyString(state)) {
+ throw new Error('Connection callback URL has no state');
+ }
+
+ url.searchParams.delete('state');
+
+ return { redirectUri: url.toString(), state };
+};
diff --git a/packages/twenty-apps/public/linkedin/src/unipile/utils/verify-unipile-webhook-signature.util.ts b/packages/twenty-apps/public/linkedin/src/unipile/utils/verify-unipile-webhook-signature.util.ts
new file mode 100644
index 00000000000..917634102f9
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/src/unipile/utils/verify-unipile-webhook-signature.util.ts
@@ -0,0 +1,64 @@
+import { createHmac, timingSafeEqual } from 'node:crypto';
+
+import { isNonEmptyString } from '@sniptt/guards';
+import { isDefined } from 'twenty-sdk/utils';
+
+import { UNIPILE_WEBHOOK_SIGNATURE_TOLERANCE_SECONDS } from 'src/unipile/constants/unipile-webhook-signature-tolerance-seconds.constant';
+
+const parseSignatureHeader = (
+ signatureHeader: string,
+): { timestamp: string | undefined; signature: string | undefined } => {
+ const parts = new Map(
+ signatureHeader.split(',').map((part) => {
+ const separatorIndex = part.indexOf('=');
+
+ return [
+ part.slice(0, separatorIndex).trim(),
+ part.slice(separatorIndex + 1).trim(),
+ ];
+ }),
+ );
+
+ return { timestamp: parts.get('t'), signature: parts.get('v0') };
+};
+
+export const verifyUnipileWebhookSignature = ({
+ signatureHeader,
+ rawBody,
+ secret,
+ nowInSeconds = Math.floor(Date.now() / 1000),
+}: {
+ signatureHeader: string | undefined;
+ rawBody: string | undefined;
+ secret: string;
+ nowInSeconds?: number;
+}): boolean => {
+ if (!isNonEmptyString(signatureHeader) || !isDefined(rawBody)) {
+ return false;
+ }
+
+ const { timestamp, signature } = parseSignatureHeader(signatureHeader);
+
+ if (!isNonEmptyString(timestamp) || !isNonEmptyString(signature)) {
+ return false;
+ }
+
+ const timestampInSeconds = Number(timestamp);
+
+ if (
+ !Number.isFinite(timestampInSeconds) ||
+ Math.abs(nowInSeconds - timestampInSeconds) >
+ UNIPILE_WEBHOOK_SIGNATURE_TOLERANCE_SECONDS
+ ) {
+ return false;
+ }
+
+ const expected = createHmac('sha256', secret)
+ .update(`${timestamp}.${rawBody}`)
+ .digest();
+ const received = Buffer.from(signature, 'hex');
+
+ return (
+ received.length === expected.length && timingSafeEqual(received, expected)
+ );
+};
diff --git a/packages/twenty-apps/public/linkedin/tsconfig.json b/packages/twenty-apps/public/linkedin/tsconfig.json
new file mode 100644
index 00000000000..58d1334ffb2
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/tsconfig.json
@@ -0,0 +1,38 @@
+{
+ "compileOnSave": false,
+ "compilerOptions": {
+ "sourceMap": true,
+ "declaration": true,
+ "outDir": "./dist",
+ "rootDir": ".",
+ "jsx": "react-jsx",
+ "moduleResolution": "bundler",
+ "allowSyntheticDefaultImports": true,
+ "emitDecoratorMetadata": true,
+ "experimentalDecorators": true,
+ "importHelpers": true,
+ "allowUnreachableCode": false,
+ "strict": true,
+ "alwaysStrict": true,
+ "noImplicitAny": true,
+ "strictBindCallApply": false,
+ "target": "es2020",
+ "module": "esnext",
+ "lib": ["es2020", "dom"],
+ "skipLibCheck": true,
+ "skipDefaultLibCheck": true,
+ "resolveJsonModule": true,
+ "paths": {
+ "src/*": ["./src/*"],
+ "~/*": ["./*"]
+ }
+ },
+ "exclude": [
+ "**/__tests__/**",
+ "node_modules",
+ "dist",
+ "**/*.test.ts",
+ "**/*.spec.ts",
+ "**/*.integration-test.ts"
+ ]
+}
diff --git a/packages/twenty-apps/public/linkedin/tsconfig.spec.json b/packages/twenty-apps/public/linkedin/tsconfig.spec.json
new file mode 100644
index 00000000000..ea69a6c0105
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/tsconfig.spec.json
@@ -0,0 +1,9 @@
+{
+ "extends": "./tsconfig.json",
+ "compilerOptions": {
+ "composite": true,
+ "types": ["vitest/globals", "node"]
+ },
+ "include": ["src/**/*.ts", "src/**/*.tsx"],
+ "exclude": ["node_modules", "dist"]
+}
diff --git a/packages/twenty-apps/public/linkedin/vitest.config.ts b/packages/twenty-apps/public/linkedin/vitest.config.ts
new file mode 100644
index 00000000000..055af77dbec
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/vitest.config.ts
@@ -0,0 +1,31 @@
+import tsconfigPaths from 'vite-tsconfig-paths';
+import { defineConfig } from 'vitest/config';
+
+const TWENTY_API_URL = process.env.TWENTY_API_URL ?? 'http://localhost:2020';
+const TWENTY_API_KEY =
+ process.env.TWENTY_API_KEY ??
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMDIwMjAyMC0xYzI1LTRkMDItYmYyNS02YWVjY2Y3ZWE0MTkiLCJ0eXBlIjoiQVBJX0tFWSIsIndvcmtzcGFjZUlkIjoiMjAyMDIwMjAtMWMyNS00ZDAyLWJmMjUtNmFlY2NmN2VhNDE5IiwiaWF0IjoxNzM1Njg5NjAwLCJleHAiOjQ4OTE0NDk2MDAsImp0aSI6IjIwMjAyMDIwLWY0MDEtNGQ4YS1hNzMxLTY0ZDAwN2MyN2JhZCJ9.bfQjfyN0NEtTCLE_xPyNcwonDzlSXFoP8kdCQTdnuDc';
+
+// Make env vars available to globalSetup (test.env only applies to workers)
+process.env.TWENTY_API_URL = TWENTY_API_URL;
+process.env.TWENTY_API_KEY = TWENTY_API_KEY;
+
+export default defineConfig({
+ plugins: [
+ tsconfigPaths({
+ projects: ['tsconfig.spec.json'],
+ ignoreConfigErrors: true,
+ }),
+ ],
+ test: {
+ testTimeout: 120_000,
+ hookTimeout: 120_000,
+ fileParallelism: false,
+ include: ['src/**/*.integration-test.ts'],
+ globalSetup: ['src/__tests__/global-setup.ts'],
+ env: {
+ TWENTY_API_URL,
+ TWENTY_API_KEY,
+ },
+ },
+});
diff --git a/packages/twenty-apps/public/linkedin/vitest.unit.config.ts b/packages/twenty-apps/public/linkedin/vitest.unit.config.ts
new file mode 100644
index 00000000000..e0d140015bb
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/vitest.unit.config.ts
@@ -0,0 +1,14 @@
+import tsconfigPaths from 'vite-tsconfig-paths';
+import { defineConfig } from 'vitest/config';
+
+export default defineConfig({
+ plugins: [
+ tsconfigPaths({
+ projects: ['tsconfig.spec.json'],
+ ignoreConfigErrors: true,
+ }),
+ ],
+ test: {
+ include: ['src/**/*.test.ts'],
+ },
+});
diff --git a/packages/twenty-apps/public/linkedin/yarn.lock b/packages/twenty-apps/public/linkedin/yarn.lock
new file mode 100644
index 00000000000..cc1509ad3c1
--- /dev/null
+++ b/packages/twenty-apps/public/linkedin/yarn.lock
@@ -0,0 +1,1800 @@
+# This file is generated by running "yarn install" inside your project.
+# Manual changes might be lost - proceed with caution!
+
+__metadata:
+ version: 10
+ cacheKey: 10c0
+
+"@esbuild/aix-ppc64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/aix-ppc64@npm:0.28.2"
+ conditions: os=aix & cpu=ppc64
+ languageName: node
+ linkType: hard
+
+"@esbuild/android-arm64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/android-arm64@npm:0.28.2"
+ conditions: os=android & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@esbuild/android-arm@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/android-arm@npm:0.28.2"
+ conditions: os=android & cpu=arm
+ languageName: node
+ linkType: hard
+
+"@esbuild/android-x64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/android-x64@npm:0.28.2"
+ conditions: os=android & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@esbuild/darwin-arm64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/darwin-arm64@npm:0.28.2"
+ conditions: os=darwin & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@esbuild/darwin-x64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/darwin-x64@npm:0.28.2"
+ conditions: os=darwin & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@esbuild/freebsd-arm64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/freebsd-arm64@npm:0.28.2"
+ conditions: os=freebsd & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@esbuild/freebsd-x64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/freebsd-x64@npm:0.28.2"
+ conditions: os=freebsd & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@esbuild/linux-arm64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/linux-arm64@npm:0.28.2"
+ conditions: os=linux & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@esbuild/linux-arm@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/linux-arm@npm:0.28.2"
+ conditions: os=linux & cpu=arm
+ languageName: node
+ linkType: hard
+
+"@esbuild/linux-ia32@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/linux-ia32@npm:0.28.2"
+ conditions: os=linux & cpu=ia32
+ languageName: node
+ linkType: hard
+
+"@esbuild/linux-loong64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/linux-loong64@npm:0.28.2"
+ conditions: os=linux & cpu=loong64
+ languageName: node
+ linkType: hard
+
+"@esbuild/linux-mips64el@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/linux-mips64el@npm:0.28.2"
+ conditions: os=linux & cpu=mips64el
+ languageName: node
+ linkType: hard
+
+"@esbuild/linux-ppc64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/linux-ppc64@npm:0.28.2"
+ conditions: os=linux & cpu=ppc64
+ languageName: node
+ linkType: hard
+
+"@esbuild/linux-riscv64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/linux-riscv64@npm:0.28.2"
+ conditions: os=linux & cpu=riscv64
+ languageName: node
+ linkType: hard
+
+"@esbuild/linux-s390x@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/linux-s390x@npm:0.28.2"
+ conditions: os=linux & cpu=s390x
+ languageName: node
+ linkType: hard
+
+"@esbuild/linux-x64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/linux-x64@npm:0.28.2"
+ conditions: os=linux & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@esbuild/netbsd-arm64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/netbsd-arm64@npm:0.28.2"
+ conditions: os=netbsd & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@esbuild/netbsd-x64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/netbsd-x64@npm:0.28.2"
+ conditions: os=netbsd & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@esbuild/openbsd-arm64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/openbsd-arm64@npm:0.28.2"
+ conditions: os=openbsd & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@esbuild/openbsd-x64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/openbsd-x64@npm:0.28.2"
+ conditions: os=openbsd & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@esbuild/openharmony-arm64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/openharmony-arm64@npm:0.28.2"
+ conditions: os=openharmony & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@esbuild/sunos-x64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/sunos-x64@npm:0.28.2"
+ conditions: os=sunos & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@esbuild/win32-arm64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/win32-arm64@npm:0.28.2"
+ conditions: os=win32 & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@esbuild/win32-ia32@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/win32-ia32@npm:0.28.2"
+ conditions: os=win32 & cpu=ia32
+ languageName: node
+ linkType: hard
+
+"@esbuild/win32-x64@npm:0.28.2":
+ version: 0.28.2
+ resolution: "@esbuild/win32-x64@npm:0.28.2"
+ conditions: os=win32 & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@genql/runtime@npm:^2.10.0":
+ version: 2.10.0
+ resolution: "@genql/runtime@npm:2.10.0"
+ dependencies:
+ "@types/qs": "npm:^6.9.0"
+ "@types/ws": "npm:^6.0.1"
+ graphql-query-batcher: "npm:^1.0.1"
+ isomorphic-unfetch: "npm:^3.0.0"
+ lodash: "npm:^4.17.20"
+ subscriptions-transport-ws: "npm:^0.9.16"
+ tslib: "npm:^2.0.0"
+ utility-types: "npm:^3.10.0"
+ ws: "npm:^6.1.4"
+ zen-observable-ts: "npm:^0.8.21"
+ peerDependencies:
+ graphql: "*"
+ checksum: 10c0/e2a886c2469c933681e2b0ddd6a5b7f4cb12932251ba460e3cf2db4246817da79313ea4ba9769ec7cbe53ab9c1cb81ad8fcce6a969cd241185b79398d2a4f3c6
+ languageName: node
+ linkType: hard
+
+"@isaacs/fs-minipass@npm:^4.0.0":
+ version: 4.0.1
+ resolution: "@isaacs/fs-minipass@npm:4.0.1"
+ dependencies:
+ minipass: "npm:^7.0.4"
+ checksum: 10c0/c25b6dc1598790d5b55c0947a9b7d111cfa92594db5296c3b907e2f533c033666f692a3939eadac17b1c7c40d362d0b0635dc874cbfe3e70db7c2b07cc97a5d2
+ languageName: node
+ linkType: hard
+
+"@jridgewell/sourcemap-codec@npm:^1.5.5":
+ version: 1.6.0
+ resolution: "@jridgewell/sourcemap-codec@npm:1.6.0"
+ checksum: 10c0/b5be700e45a775f218589c3466c4ffea630582b4988657652da464e5ab8a7d18bf928ee4fd2363fb346ede4bea9c6ff0bae05a538358c4565ece6199531b5f72
+ languageName: node
+ linkType: hard
+
+"@oxc-project/types@npm:=0.155.0":
+ version: 0.155.0
+ resolution: "@oxc-project/types@npm:0.155.0"
+ checksum: 10c0/07227fb2c2e03b07453129f2407b49b165eadaa679a34dad68e0b0526420506cea223431807983413f6968053de873c13b05d3978a9a43cabb3999ca97ba2ec5
+ languageName: node
+ linkType: hard
+
+"@oxlint/darwin-arm64@npm:0.16.12":
+ version: 0.16.12
+ resolution: "@oxlint/darwin-arm64@npm:0.16.12"
+ conditions: os=darwin & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@oxlint/darwin-x64@npm:0.16.12":
+ version: 0.16.12
+ resolution: "@oxlint/darwin-x64@npm:0.16.12"
+ conditions: os=darwin & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@oxlint/linux-arm64-gnu@npm:0.16.12":
+ version: 0.16.12
+ resolution: "@oxlint/linux-arm64-gnu@npm:0.16.12"
+ conditions: os=linux & cpu=arm64 & libc=glibc
+ languageName: node
+ linkType: hard
+
+"@oxlint/linux-arm64-musl@npm:0.16.12":
+ version: 0.16.12
+ resolution: "@oxlint/linux-arm64-musl@npm:0.16.12"
+ conditions: os=linux & cpu=arm64 & libc=musl
+ languageName: node
+ linkType: hard
+
+"@oxlint/linux-x64-gnu@npm:0.16.12":
+ version: 0.16.12
+ resolution: "@oxlint/linux-x64-gnu@npm:0.16.12"
+ conditions: os=linux & cpu=x64 & libc=glibc
+ languageName: node
+ linkType: hard
+
+"@oxlint/linux-x64-musl@npm:0.16.12":
+ version: 0.16.12
+ resolution: "@oxlint/linux-x64-musl@npm:0.16.12"
+ conditions: os=linux & cpu=x64 & libc=musl
+ languageName: node
+ linkType: hard
+
+"@oxlint/win32-arm64@npm:0.16.12":
+ version: 0.16.12
+ resolution: "@oxlint/win32-arm64@npm:0.16.12"
+ conditions: os=win32 & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@oxlint/win32-x64@npm:0.16.12":
+ version: 0.16.12
+ resolution: "@oxlint/win32-x64@npm:0.16.12"
+ conditions: os=win32 & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-android-arm-eabi@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-android-arm-eabi@npm:1.2.15"
+ conditions: os=android & cpu=arm
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-android-arm64@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-android-arm64@npm:1.2.15"
+ conditions: os=android & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-darwin-arm64@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-darwin-arm64@npm:1.2.15"
+ conditions: os=darwin & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-darwin-x64@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-darwin-x64@npm:1.2.15"
+ conditions: os=darwin & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-freebsd-x64@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-freebsd-x64@npm:1.2.15"
+ conditions: os=freebsd & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-linux-arm-gnueabihf@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-linux-arm-gnueabihf@npm:1.2.15"
+ conditions: os=linux & cpu=arm
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-linux-arm64-gnu@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-linux-arm64-gnu@npm:1.2.15"
+ conditions: os=linux & cpu=arm64 & libc=glibc
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-linux-arm64-musl@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-linux-arm64-musl@npm:1.2.15"
+ conditions: os=linux & cpu=arm64 & libc=musl
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-linux-ppc64-gnu@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-linux-ppc64-gnu@npm:1.2.15"
+ conditions: os=linux & cpu=ppc64 & libc=glibc
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-linux-s390x-gnu@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-linux-s390x-gnu@npm:1.2.15"
+ conditions: os=linux & cpu=s390x & libc=glibc
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-linux-x64-gnu@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-linux-x64-gnu@npm:1.2.15"
+ conditions: os=linux & cpu=x64 & libc=glibc
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-linux-x64-musl@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-linux-x64-musl@npm:1.2.15"
+ conditions: os=linux & cpu=x64 & libc=musl
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-openharmony-arm64@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-openharmony-arm64@npm:1.2.15"
+ conditions: os=openharmony & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-win32-arm64-msvc@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-win32-arm64-msvc@npm:1.2.15"
+ conditions: os=win32 & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@rolldown/binding-win32-x64-msvc@npm:1.2.15":
+ version: 1.2.15
+ resolution: "@rolldown/binding-win32-x64-msvc@npm:1.2.15"
+ conditions: os=win32 & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@rolldown/pluginutils@npm:^1.0.0":
+ version: 1.0.1
+ resolution: "@rolldown/pluginutils@npm:1.0.1"
+ checksum: 10c0/99d9b06d90196823e4d8c841f258db7a16e5dbba5824a2962b05d907b79f1ba929d56f22dd744fd530936e568c865ee56a719dc31e57e13bc0a8eb4764a8d8dd
+ languageName: node
+ linkType: hard
+
+"@sniptt/guards@npm:^0.2.0":
+ version: 0.2.0
+ resolution: "@sniptt/guards@npm:0.2.0"
+ checksum: 10c0/749bb0f550d1ddd4abdb23dc1076cba26e977659922b73d000bceeb253c09270aaced0d18e92f09d4ce2fdaae33e55f60f2142f5359bc90ba505422af0873526
+ languageName: node
+ linkType: hard
+
+"@standard-schema/spec@npm:^1.1.0":
+ version: 1.1.0
+ resolution: "@standard-schema/spec@npm:1.1.0"
+ checksum: 10c0/d90f55acde4b2deb983529c87e8025fa693de1a5e8b49ecc6eb84d1fd96328add0e03d7d551442156c7432fd78165b2c26ff561b970a9a881f046abb78d6a526
+ languageName: node
+ linkType: hard
+
+"@twentyhq/linkedin@workspace:.":
+ version: 0.0.0-use.local
+ resolution: "@twentyhq/linkedin@workspace:."
+ dependencies:
+ "@sniptt/guards": "npm:^0.2.0"
+ "@types/node": "npm:^24.7.2"
+ "@typescript/native-preview": "npm:^7.0.0-dev.20260116.1"
+ "@unipile/sdk": "npm:^2.59.0"
+ oxlint: "npm:^0.16.0"
+ twenty-client-sdk: "npm:2.53.0"
+ twenty-sdk: "npm:2.53.0"
+ typescript: "npm:^5.9.3"
+ vite-tsconfig-paths: "npm:^4.2.1"
+ vitest: "npm:^4.1.12"
+ languageName: unknown
+ linkType: soft
+
+"@types/chai@npm:^5.2.2":
+ version: 5.2.3
+ resolution: "@types/chai@npm:5.2.3"
+ dependencies:
+ "@types/deep-eql": "npm:*"
+ assertion-error: "npm:^2.0.1"
+ checksum: 10c0/e0ef1de3b6f8045a5e473e867c8565788c444271409d155588504840ad1a53611011f85072188c2833941189400228c1745d78323dac13fcede9c2b28bacfb2f
+ languageName: node
+ linkType: hard
+
+"@types/deep-eql@npm:*":
+ version: 4.0.2
+ resolution: "@types/deep-eql@npm:4.0.2"
+ checksum: 10c0/bf3f811843117900d7084b9d0c852da9a044d12eb40e6de73b552598a6843c21291a8a381b0532644574beecd5e3491c5ff3a0365ab86b15d59862c025384844
+ languageName: node
+ linkType: hard
+
+"@types/estree@npm:^1.0.0":
+ version: 1.0.9
+ resolution: "@types/estree@npm:1.0.9"
+ checksum: 10c0/3ad3286ca2988cd550dafb8f2ad599c8474868e954fa601a36655bdfefd8039f7c714b8c1c7f2ae219ffbd58bd4660e66fa7479a0120fc02d4777057d4865387
+ languageName: node
+ linkType: hard
+
+"@types/node@npm:*":
+ version: 26.6.5
+ resolution: "@types/node@npm:26.6.5"
+ dependencies:
+ undici-types: "npm:~8.9.0"
+ checksum: 10c0/4f791f69466ace7842c09e7bef96cb1ddbb65cf3db916ef7e84f0e2b2a17220b6b816dc7539d01520cadfb17ed7169b8214910900493e0a83be8bc7d124ec20a
+ languageName: node
+ linkType: hard
+
+"@types/node@npm:^24.7.2":
+ version: 24.19.2
+ resolution: "@types/node@npm:24.19.2"
+ dependencies:
+ undici-types: "npm:>=7.24.0 <7.24.7"
+ checksum: 10c0/b51a7f8854007ad579dffdd0633d8addbfeb2c97cceb380f2eba0ed163638ec52e17565385a6cc04d54ac4ff99c70c64aee68a4ca45b6128c035e828794e29c5
+ languageName: node
+ linkType: hard
+
+"@types/qs@npm:^6.9.0":
+ version: 6.15.1
+ resolution: "@types/qs@npm:6.15.1"
+ checksum: 10c0/1dfdbcb4cf2a8f66d57f0b9a9fe6b1c7091cb816687b6698c1351eaf31f62e412cea9b7453a9637b570cd5fad8dced527e5a9e69b4fcc6e318daacd8b749f094
+ languageName: node
+ linkType: hard
+
+"@types/ws@npm:^6.0.1":
+ version: 6.0.4
+ resolution: "@types/ws@npm:6.0.4"
+ dependencies:
+ "@types/node": "npm:*"
+ checksum: 10c0/fa958e64596ca9487c3ed6012834de70b47f25d971f1950cfb8e6a99cb77ff340ae82ac7627744e01b58010674ef8ede07d5a2ac29ca9ad0d67a430fcc69ae14
+ languageName: node
+ linkType: hard
+
+"@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260707.2":
+ version: 7.0.0-dev.20260707.2
+ resolution: "@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260707.2"
+ conditions: os=darwin & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260707.2":
+ version: 7.0.0-dev.20260707.2
+ resolution: "@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260707.2"
+ conditions: os=darwin & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260707.2":
+ version: 7.0.0-dev.20260707.2
+ resolution: "@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260707.2"
+ conditions: os=linux & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260707.2":
+ version: 7.0.0-dev.20260707.2
+ resolution: "@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260707.2"
+ conditions: os=linux & cpu=arm
+ languageName: node
+ linkType: hard
+
+"@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260707.2":
+ version: 7.0.0-dev.20260707.2
+ resolution: "@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260707.2"
+ conditions: os=linux & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260707.2":
+ version: 7.0.0-dev.20260707.2
+ resolution: "@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260707.2"
+ conditions: os=win32 & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260707.2":
+ version: 7.0.0-dev.20260707.2
+ resolution: "@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260707.2"
+ conditions: os=win32 & cpu=x64
+ languageName: node
+ linkType: hard
+
+"@typescript/native-preview@npm:^7.0.0-dev.20260116.1":
+ version: 7.0.0-dev.20260707.2
+ resolution: "@typescript/native-preview@npm:7.0.0-dev.20260707.2"
+ dependencies:
+ "@typescript/native-preview-darwin-arm64": "npm:7.0.0-dev.20260707.2"
+ "@typescript/native-preview-darwin-x64": "npm:7.0.0-dev.20260707.2"
+ "@typescript/native-preview-linux-arm": "npm:7.0.0-dev.20260707.2"
+ "@typescript/native-preview-linux-arm64": "npm:7.0.0-dev.20260707.2"
+ "@typescript/native-preview-linux-x64": "npm:7.0.0-dev.20260707.2"
+ "@typescript/native-preview-win32-arm64": "npm:7.0.0-dev.20260707.2"
+ "@typescript/native-preview-win32-x64": "npm:7.0.0-dev.20260707.2"
+ dependenciesMeta:
+ "@typescript/native-preview-darwin-arm64":
+ optional: true
+ "@typescript/native-preview-darwin-x64":
+ optional: true
+ "@typescript/native-preview-linux-arm":
+ optional: true
+ "@typescript/native-preview-linux-arm64":
+ optional: true
+ "@typescript/native-preview-linux-x64":
+ optional: true
+ "@typescript/native-preview-win32-arm64":
+ optional: true
+ "@typescript/native-preview-win32-x64":
+ optional: true
+ bin:
+ tsgo: bin/tsgo
+ checksum: 10c0/42c527da5c4d61884e50591dba0a37e6d98f992e355037213f2039d606dd9fddfbacee308d40b4f3b4cfa06f79b07b7e86b45b92a83a9e60741f65e07a031982
+ languageName: node
+ linkType: hard
+
+"@unipile/sdk@npm:^2.59.0":
+ version: 2.59.0
+ resolution: "@unipile/sdk@npm:2.59.0"
+ checksum: 10c0/d616ef89b2dc8978c39463ae9960084eea59a6721b3e91c669cacb151bc287e83d93e84a53d4f07225e610fd25ba277fcbb519af5d3102c7b60588e74b73dfe7
+ languageName: node
+ linkType: hard
+
+"@vitest/expect@npm:4.1.12":
+ version: 4.1.12
+ resolution: "@vitest/expect@npm:4.1.12"
+ dependencies:
+ "@standard-schema/spec": "npm:^1.1.0"
+ "@types/chai": "npm:^5.2.2"
+ "@vitest/spy": "npm:4.1.12"
+ "@vitest/utils": "npm:4.1.12"
+ chai: "npm:^6.2.2"
+ tinyrainbow: "npm:^3.1.0"
+ checksum: 10c0/386bbb6b7aadbfbfe8a5c7fc9d0a875a6da24a36edb3af519755e2d658359a0211bc4188a8dc38a1a34317c752624c4db58616752861323dcae475e3f1e6a975
+ languageName: node
+ linkType: hard
+
+"@vitest/mocker@npm:4.1.12":
+ version: 4.1.12
+ resolution: "@vitest/mocker@npm:4.1.12"
+ dependencies:
+ "@vitest/spy": "npm:4.1.12"
+ estree-walker: "npm:^3.0.3"
+ magic-string: "npm:^0.30.21"
+ peerDependencies:
+ msw: ^2.4.9
+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0
+ peerDependenciesMeta:
+ msw:
+ optional: true
+ vite:
+ optional: true
+ checksum: 10c0/6fccf67d42830b7caadfdfc94b8e9f3166a4686edd5bdf9083773d981f906ea93f172c0207482568f91d4fd72a9843f0c6644687d2ba3b3ce7bc8b6e9541cfa1
+ languageName: node
+ linkType: hard
+
+"@vitest/pretty-format@npm:4.1.12":
+ version: 4.1.12
+ resolution: "@vitest/pretty-format@npm:4.1.12"
+ dependencies:
+ tinyrainbow: "npm:^3.1.0"
+ checksum: 10c0/b3d3635a49e7f328afdb0a627a537ba66c16609e3082dc58adca4c32881007afdeff88975697a21c740eced31751369e1ad06e134f4194e573ac9a758d6016ea
+ languageName: node
+ linkType: hard
+
+"@vitest/runner@npm:4.1.12":
+ version: 4.1.12
+ resolution: "@vitest/runner@npm:4.1.12"
+ dependencies:
+ "@vitest/utils": "npm:4.1.12"
+ pathe: "npm:^2.0.3"
+ checksum: 10c0/d39b42c4e004017752ba2cadd0964c71e13dfa1536653e3a9129bf60abe684e39974ad75a3fc4ba9fd137a8e1a79e8efea80e0469c78e35019f61c8ebbdaf500
+ languageName: node
+ linkType: hard
+
+"@vitest/snapshot@npm:4.1.12":
+ version: 4.1.12
+ resolution: "@vitest/snapshot@npm:4.1.12"
+ dependencies:
+ "@vitest/pretty-format": "npm:4.1.12"
+ "@vitest/utils": "npm:4.1.12"
+ magic-string: "npm:^0.30.21"
+ pathe: "npm:^2.0.3"
+ checksum: 10c0/c309ae2966b9cda46ca018540467872a91a5d641b150b82362c9ea4b21b493669ebcbf284729c1216f178c08af5a3884d3a434a01091a8edc90da77d207bb985
+ languageName: node
+ linkType: hard
+
+"@vitest/spy@npm:4.1.12":
+ version: 4.1.12
+ resolution: "@vitest/spy@npm:4.1.12"
+ checksum: 10c0/4732cafd7015b4ae39616f09405e9d1e5907b6edfdcc6eeee3a70518d966453ac75b979585fa2453a70dcacee22ecfc92e4708ff4c1dcdca1cb927d3f25306ed
+ languageName: node
+ linkType: hard
+
+"@vitest/utils@npm:4.1.12":
+ version: 4.1.12
+ resolution: "@vitest/utils@npm:4.1.12"
+ dependencies:
+ "@vitest/pretty-format": "npm:4.1.12"
+ convert-source-map: "npm:^2.0.0"
+ tinyrainbow: "npm:^3.1.0"
+ checksum: 10c0/b70518b3a046700e080537f3aecd1fca3a88733000df55b4bdb24751c0209bd45fddf80fb5e217862e1e7d6b3fb63da5113fe04a27a177a3c04c1c0231ecfe18
+ languageName: node
+ linkType: hard
+
+"abbrev@npm:^5.0.0":
+ version: 5.0.0
+ resolution: "abbrev@npm:5.0.0"
+ checksum: 10c0/8e88f5c798ea4562d28c5a3e9ad69e3879890bc5d695d8f2dffb8609be4c890aacc8f80ef4553fdd2c6a62d70c2ce8bc57b38074e383beb7487bdafa9ed42ea5
+ languageName: node
+ linkType: hard
+
+"assertion-error@npm:^2.0.1":
+ version: 2.0.1
+ resolution: "assertion-error@npm:2.0.1"
+ checksum: 10c0/bbbcb117ac6480138f8c93cf7f535614282dea9dc828f540cdece85e3c665e8f78958b96afac52f29ff883c72638e6a87d469ecc9fe5bc902df03ed24a55dba8
+ languageName: node
+ linkType: hard
+
+"async-limiter@npm:~1.0.0":
+ version: 1.0.1
+ resolution: "async-limiter@npm:1.0.1"
+ checksum: 10c0/0693d378cfe86842a70d4c849595a0bb50dc44c11649640ca982fa90cbfc74e3cc4753b5a0847e51933f2e9c65ce8e05576e75e5e1fd963a086e673735b35969
+ languageName: node
+ linkType: hard
+
+"backo2@npm:^1.0.2":
+ version: 1.0.2
+ resolution: "backo2@npm:1.0.2"
+ checksum: 10c0/a9e825a6a38a6d1c4a94476eabc13d6127dfaafb0967baf104affbb67806ae26abbb58dab8d572d2cd21ef06634ff57c3ad48dff14b904e18de1474cc2f22bf3
+ languageName: node
+ linkType: hard
+
+"chai@npm:^6.2.2":
+ version: 6.3.0
+ resolution: "chai@npm:6.3.0"
+ checksum: 10c0/fd1bf7fc41295ba1eba18a44d68e204b3cb11b79c9ad51fd071de3ee85323c20d94afc07a386f1f5ff44a5da4a116614d419fc44a2d459e4b5b574aef9af4431
+ languageName: node
+ linkType: hard
+
+"chownr@npm:^3.0.0":
+ version: 3.0.0
+ resolution: "chownr@npm:3.0.0"
+ checksum: 10c0/43925b87700f7e3893296c8e9c56cc58f926411cce3a6e5898136daaf08f08b9a8eb76d37d3267e707d0dcc17aed2e2ebdf5848c0c3ce95cf910a919935c1b10
+ languageName: node
+ linkType: hard
+
+"convert-source-map@npm:^2.0.0":
+ version: 2.0.0
+ resolution: "convert-source-map@npm:2.0.0"
+ checksum: 10c0/8f2f7a27a1a011cc6cc88cc4da2d7d0cfa5ee0369508baae3d98c260bb3ac520691464e5bbe4ae7cdf09860c1d69ecc6f70c63c6e7c7f7e3f18ec08484dc7d9b
+ languageName: node
+ linkType: hard
+
+"debug@npm:^4.1.1":
+ version: 4.4.3
+ resolution: "debug@npm:4.4.3"
+ dependencies:
+ ms: "npm:^2.1.3"
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+ checksum: 10c0/d79136ec6c83ecbefd0f6a5593da6a9c91ec4d7ddc4b54c883d6e71ec9accb5f67a1a5e96d00a328196b5b5c86d365e98d8a3a70856aaf16b4e7b1985e67f5a6
+ languageName: node
+ linkType: hard
+
+"detect-libc@npm:^2.0.3":
+ version: 2.1.2
+ resolution: "detect-libc@npm:2.1.2"
+ checksum: 10c0/acc675c29a5649fa1fb6e255f993b8ee829e510b6b56b0910666949c80c364738833417d0edb5f90e4e46be17228b0f2b66a010513984e18b15deeeac49369c4
+ languageName: node
+ linkType: hard
+
+"env-paths@npm:^2.2.0":
+ version: 2.2.1
+ resolution: "env-paths@npm:2.2.1"
+ checksum: 10c0/285325677bf00e30845e330eec32894f5105529db97496ee3f598478e50f008c5352a41a30e5e72ec9de8a542b5a570b85699cd63bd2bc646dbcb9f311d83bc4
+ languageName: node
+ linkType: hard
+
+"es-module-lexer@npm:^2.0.0":
+ version: 2.3.2
+ resolution: "es-module-lexer@npm:2.3.2"
+ checksum: 10c0/5e7389424c43478439f12f9a6aca1750f6f99afa384fc3de329f4a45f152ab156671055008adaafc74960877abf8cc338aeebf6bed8c21297b146fd6eb7a22f8
+ languageName: node
+ linkType: hard
+
+"esbuild@npm:^0.28.1":
+ version: 0.28.2
+ resolution: "esbuild@npm:0.28.2"
+ dependencies:
+ "@esbuild/aix-ppc64": "npm:0.28.2"
+ "@esbuild/android-arm": "npm:0.28.2"
+ "@esbuild/android-arm64": "npm:0.28.2"
+ "@esbuild/android-x64": "npm:0.28.2"
+ "@esbuild/darwin-arm64": "npm:0.28.2"
+ "@esbuild/darwin-x64": "npm:0.28.2"
+ "@esbuild/freebsd-arm64": "npm:0.28.2"
+ "@esbuild/freebsd-x64": "npm:0.28.2"
+ "@esbuild/linux-arm": "npm:0.28.2"
+ "@esbuild/linux-arm64": "npm:0.28.2"
+ "@esbuild/linux-ia32": "npm:0.28.2"
+ "@esbuild/linux-loong64": "npm:0.28.2"
+ "@esbuild/linux-mips64el": "npm:0.28.2"
+ "@esbuild/linux-ppc64": "npm:0.28.2"
+ "@esbuild/linux-riscv64": "npm:0.28.2"
+ "@esbuild/linux-s390x": "npm:0.28.2"
+ "@esbuild/linux-x64": "npm:0.28.2"
+ "@esbuild/netbsd-arm64": "npm:0.28.2"
+ "@esbuild/netbsd-x64": "npm:0.28.2"
+ "@esbuild/openbsd-arm64": "npm:0.28.2"
+ "@esbuild/openbsd-x64": "npm:0.28.2"
+ "@esbuild/openharmony-arm64": "npm:0.28.2"
+ "@esbuild/sunos-x64": "npm:0.28.2"
+ "@esbuild/win32-arm64": "npm:0.28.2"
+ "@esbuild/win32-ia32": "npm:0.28.2"
+ "@esbuild/win32-x64": "npm:0.28.2"
+ dependenciesMeta:
+ "@esbuild/aix-ppc64":
+ optional: true
+ "@esbuild/android-arm":
+ optional: true
+ "@esbuild/android-arm64":
+ optional: true
+ "@esbuild/android-x64":
+ optional: true
+ "@esbuild/darwin-arm64":
+ optional: true
+ "@esbuild/darwin-x64":
+ optional: true
+ "@esbuild/freebsd-arm64":
+ optional: true
+ "@esbuild/freebsd-x64":
+ optional: true
+ "@esbuild/linux-arm":
+ optional: true
+ "@esbuild/linux-arm64":
+ optional: true
+ "@esbuild/linux-ia32":
+ optional: true
+ "@esbuild/linux-loong64":
+ optional: true
+ "@esbuild/linux-mips64el":
+ optional: true
+ "@esbuild/linux-ppc64":
+ optional: true
+ "@esbuild/linux-riscv64":
+ optional: true
+ "@esbuild/linux-s390x":
+ optional: true
+ "@esbuild/linux-x64":
+ optional: true
+ "@esbuild/netbsd-arm64":
+ optional: true
+ "@esbuild/netbsd-x64":
+ optional: true
+ "@esbuild/openbsd-arm64":
+ optional: true
+ "@esbuild/openbsd-x64":
+ optional: true
+ "@esbuild/openharmony-arm64":
+ optional: true
+ "@esbuild/sunos-x64":
+ optional: true
+ "@esbuild/win32-arm64":
+ optional: true
+ "@esbuild/win32-ia32":
+ optional: true
+ "@esbuild/win32-x64":
+ optional: true
+ bin:
+ esbuild: bin/esbuild
+ checksum: 10c0/9b19edb63bd7780fd2e8e65a1394a0e8a05a17d697f73f0647ffe3c134709d8dbe744ab3fd57b35c9470db268cae7678fafd3dcd3ce1f34fc590568c2433f5d2
+ languageName: node
+ linkType: hard
+
+"estree-walker@npm:^3.0.3":
+ version: 3.0.3
+ resolution: "estree-walker@npm:3.0.3"
+ dependencies:
+ "@types/estree": "npm:^1.0.0"
+ checksum: 10c0/c12e3c2b2642d2bcae7d5aa495c60fa2f299160946535763969a1c83fc74518ffa9c2cd3a8b69ac56aea547df6a8aac25f729a342992ef0bbac5f1c73e78995d
+ languageName: node
+ linkType: hard
+
+"eventemitter3@npm:^3.1.0":
+ version: 3.1.2
+ resolution: "eventemitter3@npm:3.1.2"
+ checksum: 10c0/c67262eccbf85848b7cc6d4abb6c6e34155e15686db2a01c57669fd0d44441a574a19d44d25948b442929e065774cbe5003d8e77eed47674fbf876ac77887793
+ languageName: node
+ linkType: hard
+
+"expect-type@npm:^1.3.0":
+ version: 1.4.0
+ resolution: "expect-type@npm:1.4.0"
+ checksum: 10c0/d40d76b8570695d36587beb3cc28494da2ca3ec8f04e67f5622ed2d372d850e401a9adef19c6835e1a8173903f157c79540b34c7b3fbd7cd8ce726cc903c57b7
+ languageName: node
+ linkType: hard
+
+"exponential-backoff@npm:^3.1.1":
+ version: 3.1.3
+ resolution: "exponential-backoff@npm:3.1.3"
+ checksum: 10c0/77e3ae682b7b1f4972f563c6dbcd2b0d54ac679e62d5d32f3e5085feba20483cf28bd505543f520e287a56d4d55a28d7874299941faf637e779a1aa5994d1267
+ languageName: node
+ linkType: hard
+
+"fdir@npm:^6.5.0":
+ version: 6.5.0
+ resolution: "fdir@npm:6.5.0"
+ peerDependencies:
+ picomatch: ^3 || ^4
+ peerDependenciesMeta:
+ picomatch:
+ optional: true
+ checksum: 10c0/e345083c4306b3aed6cb8ec551e26c36bab5c511e99ea4576a16750ddc8d3240e63826cc624f5ae17ad4dc82e68a253213b60d556c11bfad064b7607847ed07f
+ languageName: node
+ linkType: hard
+
+"fsevents@npm:~2.3.3":
+ version: 2.3.3
+ resolution: "fsevents@npm:2.3.3"
+ dependencies:
+ node-gyp: "npm:latest"
+ checksum: 10c0/a1f0c44595123ed717febbc478aa952e47adfc28e2092be66b8ab1635147254ca6cfe1df792a8997f22716d4cbafc73309899ff7bfac2ac3ad8cf2e4ecc3ec60
+ conditions: os=darwin
+ languageName: node
+ linkType: hard
+
+"fsevents@patch:fsevents@npm%3A~2.3.3#optional!builtin<compat/fsevents>":
+ version: 2.3.3
+ resolution: "fsevents@patch:fsevents@npm%3A2.3.3#optional!builtin<compat/fsevents>::version=2.3.3&hash=df0bf1"
+ dependencies:
+ node-gyp: "npm:latest"
+ conditions: os=darwin
+ languageName: node
+ linkType: hard
+
+"globrex@npm:^0.1.2":
+ version: 0.1.2
+ resolution: "globrex@npm:0.1.2"
+ checksum: 10c0/a54c029520cf58bda1d8884f72bd49b4cd74e977883268d931fd83bcbd1a9eb96d57c7dbd4ad80148fb9247467ebfb9b215630b2ed7563b2a8de02e1ff7f89d1
+ languageName: node
+ linkType: hard
+
+"graceful-fs@npm:^4.2.6":
+ version: 4.2.11
+ resolution: "graceful-fs@npm:4.2.11"
+ checksum: 10c0/386d011a553e02bc594ac2ca0bd6d9e4c22d7fa8cfbfc448a6d148c59ea881b092db9dbe3547ae4b88e55f1b01f7c4a2ecc53b310c042793e63aa44cf6c257f2
+ languageName: node
+ linkType: hard
+
+"graphql-query-batcher@npm:^1.0.1":
+ version: 1.0.1
+ resolution: "graphql-query-batcher@npm:1.0.1"
+ checksum: 10c0/804d0f4064721a2116a16b9eac422e9233e85f4ab5b250cb8f83662725658ffde35779a8ae8211037f3dd2f9717de8cb63b394ad8057ce22171a83db2471196a
+ languageName: node
+ linkType: hard
+
+"graphql@npm:^16.8.1":
+ version: 16.14.2
+ resolution: "graphql@npm:16.14.2"
+ checksum: 10c0/a95a96961eaff55cc9fe9d31fae6f33499ac988b972d07ea5085024cb1333f515b902f376e7393a5489aa82200a8aff3eb96580e4d1b69d702ed19b6eb1ce97a
+ languageName: node
+ linkType: hard
+
+"isexe@npm:^4.0.0":
+ version: 4.0.0
+ resolution: "isexe@npm:4.0.0"
+ checksum: 10c0/5884815115bceac452877659a9c7726382531592f43dc29e5d48b7c4100661aed54018cb90bd36cb2eaeba521092570769167acbb95c18d39afdccbcca06c5ce
+ languageName: node
+ linkType: hard
+
+"isomorphic-unfetch@npm:^3.0.0":
+ version: 3.1.0
+ resolution: "isomorphic-unfetch@npm:3.1.0"
+ dependencies:
+ node-fetch: "npm:^2.6.1"
+ unfetch: "npm:^4.2.0"
+ checksum: 10c0/d3b61fca06304db692b7f76bdfd3a00f410e42cfa7403c3b250546bf71589d18cf2f355922f57198e4cc4a9872d3647b20397a5c3edf1a347c90d57c83cf2a89
+ languageName: node
+ linkType: hard
+
+"iterall@npm:^1.2.1":
+ version: 1.3.0
+ resolution: "iterall@npm:1.3.0"
+ checksum: 10c0/40de624e5fe937c4c0e511981b91caea9ff2142bfc0316cccc8506eaa03aa253820cc17c5bc5f0a98706c7268a373e5ebee9af9a0c8a359730cf7c05938b57b5
+ languageName: node
+ linkType: hard
+
+"lightningcss-android-arm64@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-android-arm64@npm:1.33.0"
+ conditions: os=android & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"lightningcss-darwin-arm64@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-darwin-arm64@npm:1.33.0"
+ conditions: os=darwin & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"lightningcss-darwin-x64@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-darwin-x64@npm:1.33.0"
+ conditions: os=darwin & cpu=x64
+ languageName: node
+ linkType: hard
+
+"lightningcss-freebsd-x64@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-freebsd-x64@npm:1.33.0"
+ conditions: os=freebsd & cpu=x64
+ languageName: node
+ linkType: hard
+
+"lightningcss-linux-arm-gnueabihf@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-linux-arm-gnueabihf@npm:1.33.0"
+ conditions: os=linux & cpu=arm
+ languageName: node
+ linkType: hard
+
+"lightningcss-linux-arm64-gnu@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-linux-arm64-gnu@npm:1.33.0"
+ conditions: os=linux & cpu=arm64 & libc=glibc
+ languageName: node
+ linkType: hard
+
+"lightningcss-linux-arm64-musl@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-linux-arm64-musl@npm:1.33.0"
+ conditions: os=linux & cpu=arm64 & libc=musl
+ languageName: node
+ linkType: hard
+
+"lightningcss-linux-x64-gnu@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-linux-x64-gnu@npm:1.33.0"
+ conditions: os=linux & cpu=x64 & libc=glibc
+ languageName: node
+ linkType: hard
+
+"lightningcss-linux-x64-musl@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-linux-x64-musl@npm:1.33.0"
+ conditions: os=linux & cpu=x64 & libc=musl
+ languageName: node
+ linkType: hard
+
+"lightningcss-win32-arm64-msvc@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-win32-arm64-msvc@npm:1.33.0"
+ conditions: os=win32 & cpu=arm64
+ languageName: node
+ linkType: hard
+
+"lightningcss-win32-x64-msvc@npm:1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss-win32-x64-msvc@npm:1.33.0"
+ conditions: os=win32 & cpu=x64
+ languageName: node
+ linkType: hard
+
+"lightningcss@npm:^1.33.0":
+ version: 1.33.0
+ resolution: "lightningcss@npm:1.33.0"
+ dependencies:
+ detect-libc: "npm:^2.0.3"
+ lightningcss-android-arm64: "npm:1.33.0"
+ lightningcss-darwin-arm64: "npm:1.33.0"
+ lightningcss-darwin-x64: "npm:1.33.0"
+ lightningcss-freebsd-x64: "npm:1.33.0"
+ lightningcss-linux-arm-gnueabihf: "npm:1.33.0"
+ lightningcss-linux-arm64-gnu: "npm:1.33.0"
+ lightningcss-linux-arm64-musl: "npm:1.33.0"
+ lightningcss-linux-x64-gnu: "npm:1.33.0"
+ lightningcss-linux-x64-musl: "npm:1.33.0"
+ lightningcss-win32-arm64-msvc: "npm:1.33.0"
+ lightningcss-win32-x64-msvc: "npm:1.33.0"
+ dependenciesMeta:
+ lightningcss-android-arm64:
+ optional: true
+ lightningcss-darwin-arm64:
+ optional: true
+ lightningcss-darwin-x64:
+ optional: true
+ lightningcss-freebsd-x64:
+ optional: true
+ lightningcss-linux-arm-gnueabihf:
+ optional: true
+ lightningcss-linux-arm64-gnu:
+ optional: true
+ lightningcss-linux-arm64-musl:
+ optional: true
+ lightningcss-linux-x64-gnu:
+ optional: true
+ lightningcss-linux-x64-musl:
+ optional: true
+ lightningcss-win32-arm64-msvc:
+ optional: true
+ lightningcss-win32-x64-msvc:
+ optional: true
+ checksum: 10c0/ce1f8279fbae636dbf37fa6e7385d5f98ed881d72af3362f24afbd4685e19c1fcdfecf17e5dd77f2ebee3d0c23ade276230d85842d07292229a2cffba8ff20a3
+ languageName: node
+ linkType: hard
+
+"lodash@npm:^4.17.20, lodash@npm:^4.17.21":
+ version: 4.18.1
+ resolution: "lodash@npm:4.18.1"
+ checksum: 10c0/757228fc68805c59789e82185135cf85f05d0b2d3d54631d680ca79ec21944ec8314d4533639a14b8bcfbd97a517e78960933041a5af17ecb693ec6eecb99a27
+ languageName: node
+ linkType: hard
+
+"magic-string@npm:^0.30.21":
+ version: 0.30.21
+ resolution: "magic-string@npm:0.30.21"
+ dependencies:
+ "@jridgewell/sourcemap-codec": "npm:^1.5.5"
+ checksum: 10c0/299378e38f9a270069fc62358522ddfb44e94244baa0d6a8980ab2a9b2490a1d03b236b447eee309e17eb3bddfa482c61259d47960eb018a904f0ded52780c4a
+ languageName: node
+ linkType: hard
+
+"minipass@npm:^7.0.4, minipass@npm:^7.1.2":
+ version: 7.1.3
+ resolution: "minipass@npm:7.1.3"
+ checksum: 10c0/539da88daca16533211ea5a9ee98dc62ff5742f531f54640dd34429e621955e91cc280a91a776026264b7f9f6735947629f920944e9c1558369e8bf22eb33fbb
+ languageName: node
+ linkType: hard
+
+"minizlib@npm:^3.1.0":
+ version: 3.1.0
+ resolution: "minizlib@npm:3.1.0"
+ dependencies:
+ minipass: "npm:^7.1.2"
+ checksum: 10c0/5aad75ab0090b8266069c9aabe582c021ae53eb33c6c691054a13a45db3b4f91a7fb1bd79151e6b4e9e9a86727b522527c0a06ec7d45206b745d54cd3097bcec
+ languageName: node
+ linkType: hard
+
+"ms@npm:^2.1.3":
+ version: 2.1.3
+ resolution: "ms@npm:2.1.3"
+ checksum: 10c0/d924b57e7312b3b63ad21fc5b3dc0af5e78d61a1fc7cfb5457edaf26326bf62be5307cc87ffb6862ef1c2b33b0233cdb5d4f01c4c958cc0d660948b65a287a48
+ languageName: node
+ linkType: hard
+
+"nanoid@npm:^3.3.20":
+ version: 3.3.20
+ resolution: "nanoid@npm:3.3.20"
+ bin:
+ nanoid: bin/nanoid.cjs
+ checksum: 10c0/856e8bf3bddb959d65997bd94908be030dbc5e6ed88fb3af2a638e51d1938f4d4f454c7c7231aba340775224f88b8cfd3ce1693c70471bfd05f5b6a2227c0c1e
+ languageName: node
+ linkType: hard
+
+"node-fetch@npm:^2.6.1":
+ version: 2.7.0
+ resolution: "node-fetch@npm:2.7.0"
+ dependencies:
+ whatwg-url: "npm:^5.0.0"
+ peerDependencies:
+ encoding: ^0.1.0
+ peerDependenciesMeta:
+ encoding:
+ optional: true
+ checksum: 10c0/b55786b6028208e6fbe594ccccc213cab67a72899c9234eb59dba51062a299ea853210fcf526998eaa2867b0963ad72338824450905679ff0fa304b8c5093ae8
+ languageName: node
+ linkType: hard
+
+"node-gyp@npm:latest":
+ version: 13.1.0
+ resolution: "node-gyp@npm:13.1.0"
+ dependencies:
+ env-paths: "npm:^2.2.0"
+ exponential-backoff: "npm:^3.1.1"
+ graceful-fs: "npm:^4.2.6"
+ nopt: "npm:^10.0.0"
+ proc-log: "npm:^7.0.0"
+ semver: "npm:^7.3.5"
+ tar: "npm:^7.5.7"
+ tinyglobby: "npm:^0.2.12"
+ undici: "npm:^8.4.1"
+ which: "npm:^7.0.0"
+ bin:
+ node-gyp: bin/node-gyp.js
+ checksum: 10c0/c6693e52e0e111b21f5cd8ff303b41b51f40338adcc79ac5c6a02399eba7039d50dc816dcafcc485870291a641f7cb75db8887a9bdd0de537fe635a3a81cba5b
+ languageName: node
+ linkType: hard
+
+"nopt@npm:^10.0.0":
+ version: 10.0.1
+ resolution: "nopt@npm:10.0.1"
+ dependencies:
+ abbrev: "npm:^5.0.0"
+ bin:
+ nopt: bin/nopt.js
+ checksum: 10c0/980d89257f9587f3e1f77877ddbf905d6aa3b738ec33e49a4fa1a059a0dd82eb28063982b150654a7ae9de386f2ead60e56172db7d37cf56de545f7392a2a26a
+ languageName: node
+ linkType: hard
+
+"obug@npm:^2.1.1":
+ version: 2.2.1
+ resolution: "obug@npm:2.2.1"
+ checksum: 10c0/8a7c001847d880fa6ba83c7bbee6a80fd271ee628439cd508c8647d53b217abb1759e2d5e4aaeb09a35d0a274bdb225a0a5a78eded3213d63e656153cf411b63
+ languageName: node
+ linkType: hard
+
+"oxlint@npm:^0.16.0":
+ version: 0.16.12
+ resolution: "oxlint@npm:0.16.12"
+ dependencies:
+ "@oxlint/darwin-arm64": "npm:0.16.12"
+ "@oxlint/darwin-x64": "npm:0.16.12"
+ "@oxlint/linux-arm64-gnu": "npm:0.16.12"
+ "@oxlint/linux-arm64-musl": "npm:0.16.12"
+ "@oxlint/linux-x64-gnu": "npm:0.16.12"
+ "@oxlint/linux-x64-musl": "npm:0.16.12"
+ "@oxlint/win32-arm64": "npm:0.16.12"
+ "@oxlint/win32-x64": "npm:0.16.12"
+ dependenciesMeta:
+ "@oxlint/darwin-arm64":
+ optional: true
+ "@oxlint/darwin-x64":
+ optional: true
+ "@oxlint/linux-arm64-gnu":
+ optional: true
+ "@oxlint/linux-arm64-musl":
+ optional: true
+ "@oxlint/linux-x64-gnu":
+ optional: true
+ "@oxlint/linux-x64-musl":
+ optional: true
+ "@oxlint/win32-arm64":
+ optional: true
+ "@oxlint/win32-x64":
+ optional: true
+ bin:
+ oxc_language_server: bin/oxc_language_server
+ oxlint: bin/oxlint
+ checksum: 10c0/209c3484039c4f1fdd340689e81be93a70fdf74e8c111731e70d81580d223b0029439107c95fa4118cec3c9b03ba6c56624d3dcb8cdc79af222da3561122b3e7
+ languageName: node
+ linkType: hard
+
+"pathe@npm:^2.0.3":
+ version: 2.0.3
+ resolution: "pathe@npm:2.0.3"
+ checksum: 10c0/c118dc5a8b5c4166011b2b70608762e260085180bb9e33e80a50dcdb1e78c010b1624f4280c492c92b05fc276715a4c357d1f9edc570f8f1b3d90b6839ebaca1
+ languageName: node
+ linkType: hard
+
+"picocolors@npm:^1.1.1":
+ version: 1.1.1
+ resolution: "picocolors@npm:1.1.1"
+ checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58
+ languageName: node
+ linkType: hard
+
+"picomatch@npm:^4.0.3, picomatch@npm:^4.0.4, picomatch@npm:^4.0.7":
+ version: 4.0.7
+ resolution: "picomatch@npm:4.0.7"
+ checksum: 10c0/beb6ae02c43ae44e84883b90830196d9046b1726ead292adcf7f57945e0bb0d992d68563d87e03b484b6f3c9a5c6defda7523477f047d7f0e663f126cc01787f
+ languageName: node
+ linkType: hard
+
+"postcss@npm:^8.5.30":
+ version: 8.5.31
+ resolution: "postcss@npm:8.5.31"
+ dependencies:
+ nanoid: "npm:^3.3.20"
+ picocolors: "npm:^1.1.1"
+ source-map-js: "npm:^1.2.2"
+ checksum: 10c0/52f94c6655f86f568a803ce9c8eb3c749e109cc711d26644c4cde953b30c1b947a2f25af3b9453de68584ac655572f46ed8e830b8ab2f21dd226b3f640992e00
+ languageName: node
+ linkType: hard
+
+"preact@npm:^11.0.0":
+ version: 11.0.2
+ resolution: "preact@npm:11.0.2"
+ peerDependencies:
+ preact-render-to-string: ">=6.7.0"
+ peerDependenciesMeta:
+ preact-render-to-string:
+ optional: true
+ checksum: 10c0/a9d1334994a495b483f2f13caa56836f0af095ea41061db441404026133dba875c7951285b40dc67a8249139cb9cc05083485094e1e80a628650e4257fcf9890
+ languageName: node
+ linkType: hard
+
+"prettier@npm:^3.8.3":
+ version: 3.9.10
+ resolution: "prettier@npm:3.9.10"
+ bin:
+ prettier: bin/prettier.cjs
+ checksum: 10c0/0b3531593aa6fb36ac6baf629cb058bda472c59a6938774f931fe55283a07c62e6f56e621b043a82d8a3e21fc284c08c34f9e539fc70072635f79b7bae1a1067
+ languageName: node
+ linkType: hard
+
+"proc-log@npm:^7.0.0":
+ version: 7.0.0
+ resolution: "proc-log@npm:7.0.0"
+ checksum: 10c0/b89c2d862604f35fec795477b0c7e376feab3ba0d4f4d291c4e959567442697cf451ac557d0623c1cc38af45a78128b983410f397a10c5d3a67f76c33de4754b
+ languageName: node
+ linkType: hard
+
+"react-dom@npm:^19.2.0":
+ version: 19.3.1
+ resolution: "react-dom@npm:19.3.1"
+ dependencies:
+ scheduler: "npm:^0.28.0"
+ peerDependencies:
+ react: ^19.3.1
+ checksum: 10c0/382700916313b2ebc46acee80642f300bb8601eac6a9e7fefade5b8b30e66b05bf3aaa56a3c964589fcd578d27b486e847470c2697d879264e766661ff49fac7
+ languageName: node
+ linkType: hard
+
+"react@npm:^19.2.0":
+ version: 19.3.1
+ resolution: "react@npm:19.3.1"
+ checksum: 10c0/f0ed036d1223562c09c8347858ca712733ea6e27a30db709ee9c3f3f176d3e9e767afce735d59956addf3d030102e256bba82dea635fc1bdb0e01107e98fef10
+ languageName: node
+ linkType: hard
+
+"rolldown@npm:~1.2.14":
+ version: 1.2.15
+ resolution: "rolldown@npm:1.2.15"
+ dependencies:
+ "@oxc-project/types": "npm:=0.155.0"
+ "@rolldown/binding-android-arm-eabi": "npm:1.2.15"
+ "@rolldown/binding-android-arm64": "npm:1.2.15"
+ "@rolldown/binding-darwin-arm64": "npm:1.2.15"
+ "@rolldown/binding-darwin-x64": "npm:1.2.15"
+ "@rolldown/binding-freebsd-x64": "npm:1.2.15"
+ "@rolldown/binding-linux-arm-gnueabihf": "npm:1.2.15"
+ "@rolldown/binding-linux-arm64-gnu": "npm:1.2.15"
+ "@rolldown/binding-linux-arm64-musl": "npm:1.2.15"
+ "@rolldown/binding-linux-ppc64-gnu": "npm:1.2.15"
+ "@rolldown/binding-linux-s390x-gnu": "npm:1.2.15"
+ "@rolldown/binding-linux-x64-gnu": "npm:1.2.15"
+ "@rolldown/binding-linux-x64-musl": "npm:1.2.15"
+ "@rolldown/binding-openharmony-arm64": "npm:1.2.15"
+ "@rolldown/binding-win32-arm64-msvc": "npm:1.2.15"
+ "@rolldown/binding-win32-x64-msvc": "npm:1.2.15"
+ "@rolldown/pluginutils": "npm:^1.0.0"
+ dependenciesMeta:
+ "@rolldown/binding-android-arm-eabi":
+ optional: true
+ "@rolldown/binding-android-arm64":
+ optional: true
+ "@rolldown/binding-darwin-arm64":
+ optional: true
+ "@rolldown/binding-darwin-x64":
+ optional: true
+ "@rolldown/binding-freebsd-x64":
+ optional: true
+ "@rolldown/binding-linux-arm-gnueabihf":
+ optional: true
+ "@rolldown/binding-linux-arm64-gnu":
+ optional: true
+ "@rolldown/binding-linux-arm64-musl":
+ optional: true
+ "@rolldown/binding-linux-ppc64-gnu":
+ optional: true
+ "@rolldown/binding-linux-s390x-gnu":
+ optional: true
+ "@rolldown/binding-linux-x64-gnu":
+ optional: true
+ "@rolldown/binding-linux-x64-musl":
+ optional: true
+ "@rolldown/binding-openharmony-arm64":
+ optional: true
+ "@rolldown/binding-win32-arm64-msvc":
+ optional: true
+ "@rolldown/binding-win32-x64-msvc":
+ optional: true
+ bin:
+ rolldown: ./bin/cli.mjs
+ checksum: 10c0/084cbdcc222e534c9aff90e77488cdeb6a685a20a34e6e3ba77c3b8646723cea2f090f05522f452ed51217cce68b7aa67df8661b49b4ac0227a5edfcb0383b68
+ languageName: node
+ linkType: hard
+
+"scheduler@npm:^0.28.0":
+ version: 0.28.0
+ resolution: "scheduler@npm:0.28.0"
+ checksum: 10c0/783c8e5ce89d41273a02ed6dc0e3d24bd60e05c9e8f7e3adfc6c82e7c69935500d90e343f1ee26d592fc7504e8a2532573c6368def3e93bfe812391fa53efaf4
+ languageName: node
+ linkType: hard
+
+"semver@npm:^7.3.5":
+ version: 7.8.5
+ resolution: "semver@npm:7.8.5"
+ bin:
+ semver: bin/semver.js
+ checksum: 10c0/b1f3127a5be8125a94f37188b361c212466c292c6910adce3ec106cff5dc211ccaedc4739c11bb70fda59d6fc1f040a9bca289f4e093451521a2372e5231fe0c
+ languageName: node
+ linkType: hard
+
+"siginfo@npm:^2.0.0":
+ version: 2.0.0
+ resolution: "siginfo@npm:2.0.0"
+ checksum: 10c0/3def8f8e516fbb34cb6ae415b07ccc5d9c018d85b4b8611e3dc6f8be6d1899f693a4382913c9ed51a06babb5201639d76453ab297d1c54a456544acf5c892e34
+ languageName: node
+ linkType: hard
+
+"source-map-js@npm:^1.2.2":
+ version: 1.2.2
+ resolution: "source-map-js@npm:1.2.2"
+ checksum: 10c0/d5d6dec62266834f83dd4f8a2606a196fb1a006ca5d53b0ef80ee513b7eba2f4e2ae241f4bc129ae7e9b80dea24f6e3d92b446b7e6e96be7653cab8888168a94
+ languageName: node
+ linkType: hard
+
+"stackback@npm:0.0.2":
+ version: 0.0.2
+ resolution: "stackback@npm:0.0.2"
+ checksum: 10c0/89a1416668f950236dd5ac9f9a6b2588e1b9b62b1b6ad8dff1bfc5d1a15dbf0aafc9b52d2226d00c28dffff212da464eaeebfc6b7578b9d180cef3e3782c5983
+ languageName: node
+ linkType: hard
+
+"std-env@npm:^4.0.0-rc.1":
+ version: 4.3.0
+ resolution: "std-env@npm:4.3.0"
+ checksum: 10c0/1e90dc69f32f853375c6de45dbe7219c8399e2a3ab3a972fdcd1cf3c20fe0e3c13bf58d57d6193b551d37a81c50dfb3f51e07774e9e48a7dc5a22dabcad7acbd
+ languageName: node
+ linkType: hard
+
+"subscriptions-transport-ws@npm:^0.9.16":
+ version: 0.9.19
+ resolution: "subscriptions-transport-ws@npm:0.9.19"
+ dependencies:
+ backo2: "npm:^1.0.2"
+ eventemitter3: "npm:^3.1.0"
+ iterall: "npm:^1.2.1"
+ symbol-observable: "npm:^1.0.4"
+ ws: "npm:^5.2.0 || ^6.0.0 || ^7.0.0"
+ peerDependencies:
+ graphql: ">=0.10.0"
+ checksum: 10c0/6f2ade56865f0ba291d3ff82c79781b051c2374873bac853286fedfdbc05001b8c4018ab7cba44af667ead7f573e48d18892d58a8f9ca8d90dfb4bff5c125045
+ languageName: node
+ linkType: hard
+
+"symbol-observable@npm:^1.0.4":
+ version: 1.2.0
+ resolution: "symbol-observable@npm:1.2.0"
+ checksum: 10c0/009fee50798ef80ed4b8195048288f108b03de162db07493f2e1fd993b33fafa72d659e832b584da5a2427daa78e5a738fb2a9ab027ee9454252e0bedbcd1fdc
+ languageName: node
+ linkType: hard
+
+"tar@npm:^7.5.7":
+ version: 7.5.22
+ resolution: "tar@npm:7.5.22"
+ dependencies:
+ "@isaacs/fs-minipass": "npm:^4.0.0"
+ chownr: "npm:^3.0.0"
+ minipass: "npm:^7.1.2"
+ minizlib: "npm:^3.1.0"
+ yallist: "npm:^5.0.0"
+ checksum: 10c0/1311f6be85a8157ac4c9147bae43e13923d2a1aae15e4aa1bd5239e4e03d2cf53cfe103dde7f35832fbb4c938b042856bc8e9a0afd29abd05e2d1608788c4fea
+ languageName: node
+ linkType: hard
+
+"tinybench@npm:^2.9.0":
+ version: 2.9.0
+ resolution: "tinybench@npm:2.9.0"
+ checksum: 10c0/c3500b0f60d2eb8db65250afe750b66d51623057ee88720b7f064894a6cb7eb93360ca824a60a31ab16dab30c7b1f06efe0795b352e37914a9d4bad86386a20c
+ languageName: node
+ linkType: hard
+
+"tinyexec@npm:^1.0.2":
+ version: 1.3.1
+ resolution: "tinyexec@npm:1.3.1"
+ checksum: 10c0/c590369cb3fa73cc18a3998caec8a00f9712d91309c881be3ac52b160fb2f80c7b1fbf3591858ab6abab47ad55385b0c86ec19982e32441a01f55298dab9ccd2
+ languageName: node
+ linkType: hard
+
+"tinyglobby@npm:^0.2.12, tinyglobby@npm:^0.2.15, tinyglobby@npm:^0.2.17":
+ version: 0.2.17
+ resolution: "tinyglobby@npm:0.2.17"
+ dependencies:
+ fdir: "npm:^6.5.0"
+ picomatch: "npm:^4.0.4"
+ checksum: 10c0/7f7bb0f197c88bc4b20c231e0deca4240ca3bf313a88f5a7fee93a872b84966a4d50220947c0455ad07a60b3b360961c5b7fd979222aeb716a9f99b412002e4c
+ languageName: node
+ linkType: hard
+
+"tinyrainbow@npm:^3.1.0":
+ version: 3.2.0
+ resolution: "tinyrainbow@npm:3.2.0"
+ checksum: 10c0/22d9c303cd807026898dcb5ac5ffbf725b5a2cc8d042449769aed8f1266be94de5e95206b76cac948f68facafba5b80e9a9257c82e5fed2651be3fecf2b624ab
+ languageName: node
+ linkType: hard
+
+"tr46@npm:~0.0.3":
+ version: 0.0.3
+ resolution: "tr46@npm:0.0.3"
+ checksum: 10c0/047cb209a6b60c742f05c9d3ace8fa510bff609995c129a37ace03476a9b12db4dbf975e74600830ef0796e18882b2381fb5fb1f6b4f96b832c374de3ab91a11
+ languageName: node
+ linkType: hard
+
+"tsconfck@npm:^3.0.3":
+ version: 3.1.6
+ resolution: "tsconfck@npm:3.1.6"
+ peerDependencies:
+ typescript: ^5.0.0
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ bin:
+ tsconfck: bin/tsconfck.js
+ checksum: 10c0/269c3c513540be44844117bb9b9258fe6f8aeab026d32aeebf458d5299125f330711429dbb556dbf125a0bc25f4a81e6c24ac96de2740badd295c3fb400f66c4
+ languageName: node
+ linkType: hard
+
+"tslib@npm:^1.9.3":
+ version: 1.14.1
+ resolution: "tslib@npm:1.14.1"
+ checksum: 10c0/69ae09c49eea644bc5ebe1bca4fa4cc2c82b7b3e02f43b84bd891504edf66dbc6b2ec0eef31a957042de2269139e4acff911e6d186a258fb14069cd7f6febce2
+ languageName: node
+ linkType: hard
+
+"tslib@npm:^2.0.0":
+ version: 2.8.1
+ resolution: "tslib@npm:2.8.1"
+ checksum: 10c0/9c4759110a19c53f992d9aae23aac5ced636e99887b51b9e61def52611732872ff7668757d4e4c61f19691e36f4da981cd9485e869b4a7408d689f6bf1f14e62
+ languageName: node
+ linkType: hard
+
+"twenty-client-sdk@npm:2.53.0":
+ version: 2.53.0
+ resolution: "twenty-client-sdk@npm:2.53.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/b1e3b73a495a91d6b80c012ca4b54b9ec472efc012b86cb712def56fb16a9f427e654b2559ba01590c4178e44072504aafa753e3e1a895ff268c28ebed954012
+ languageName: node
+ linkType: hard
+
+"twenty-sdk@npm:2.53.0":
+ version: 2.53.0
+ resolution: "twenty-sdk@npm:2.53.0"
+ dependencies:
+ "@sniptt/guards": "npm:^0.2.0"
+ esbuild: "npm:^0.28.1"
+ preact: "npm:^11.0.0"
+ react: "npm:^19.2.0"
+ react-dom: "npm:^19.2.0"
+ twenty-client-sdk: "npm:2.53.0"
+ uuid: "npm:^13.0.2"
+ checksum: 10c0/85ccb19d370da9f45b4a460ae7f8dff384be7004dda366435697faa266cfa5fe01d43f6bedddebbc19008e111e340b7cb1945fe46679a0d0ab39eeb98ef51930
+ languageName: node
+ linkType: hard
+
+"typescript@npm:^5.9.3":
+ version: 5.9.3
+ resolution: "typescript@npm:5.9.3"
+ bin:
+ tsc: bin/tsc
+ tsserver: bin/tsserver
+ checksum: 10c0/6bd7552ce39f97e711db5aa048f6f9995b53f1c52f7d8667c1abdc1700c68a76a308f579cd309ce6b53646deb4e9a1be7c813a93baaf0a28ccd536a30270e1c5
+ languageName: node
+ linkType: hard
+
+"typescript@patch:typescript@npm%3A^5.9.3#optional!builtin<compat/typescript>":
+ version: 5.9.3
+ resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"
+ bin:
+ tsc: bin/tsc
+ tsserver: bin/tsserver
+ checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430
+ languageName: node
+ linkType: hard
+
+"undici-types@npm:>=7.24.0 <7.24.7":
+ version: 7.24.6
+ resolution: "undici-types@npm:7.24.6"
+ checksum: 10c0/d9cd8befb643ac904615c280a095ba4240531f6bb4a5e75a22a7483630ca8d3f1016d2ab6ace6ceda1f63b3a2db2fe037fafe121d6917a0187573aa548ff78ca
+ languageName: node
+ linkType: hard
+
+"undici-types@npm:~8.9.0":
+ version: 8.9.0
+ resolution: "undici-types@npm:8.9.0"
+ checksum: 10c0/51c712c20c087368f62c6fc0f2bc49fa76bfe5dec28ff01584bb677ff29b0622569783c02d43e151143808c48c0503f804093bd2c491b10f2a830138034cb451
+ languageName: node
+ linkType: hard
+
+"undici@npm:^8.4.1":
+ version: 8.12.3
+ resolution: "undici@npm:8.12.3"
+ checksum: 10c0/714919e62b4160eea195fb35c7f5c4907235741e47bfde8a014ac58f6d24df13434e23400d7f48e2c455fd2b259d27f07fce514f04a5b4e99936ba62cbc4bb71
+ languageName: node
+ linkType: hard
+
+"unfetch@npm:^4.2.0":
+ version: 4.2.0
+ resolution: "unfetch@npm:4.2.0"
+ checksum: 10c0/a5c0a896a6f09f278b868075aea65652ad185db30e827cb7df45826fe5ab850124bf9c44c4dafca4bf0c55a0844b17031e8243467fcc38dd7a7d435007151f1b
+ languageName: node
+ linkType: hard
+
+"utility-types@npm:^3.10.0":
+ version: 3.11.0
+ resolution: "utility-types@npm:3.11.0"
+ checksum: 10c0/2f1580137b0c3e6cf5405f37aaa8f5249961a76d26f1ca8efc0ff49a2fc0e0b2db56de8e521a174d075758e0c7eb3e590edec0832eb44478b958f09914920f19
+ languageName: node
+ linkType: hard
+
+"uuid@npm:^13.0.2":
+ version: 13.0.2
+ resolution: "uuid@npm:13.0.2"
+ bin:
+ uuid: dist-node/bin/uuid
+ checksum: 10c0/32c7ee84fa7c7966cc09b3a1514a752a8e2f609f15c00033fbaedc0255d577d1877b839f11ee537f37e587bbc620bbb98c3b3a1482931b8ed47d79497cd7a7cd
+ languageName: node
+ linkType: hard
+
+"vite-tsconfig-paths@npm:^4.2.1":
+ version: 4.3.2
+ resolution: "vite-tsconfig-paths@npm:4.3.2"
+ dependencies:
+ debug: "npm:^4.1.1"
+ globrex: "npm:^0.1.2"
+ tsconfck: "npm:^3.0.3"
+ peerDependencies:
+ vite: "*"
+ peerDependenciesMeta:
+ vite:
+ optional: true
+ checksum: 10c0/f390ac1d1c3992fc5ac50f9274c1090f8b55ab34a89ea88893db9a6924a3b26c9f64bc1163615150ad100749db73b6b2cf1d57f6cd60df6e762ceb5b8ad30024
+ languageName: node
+ linkType: hard
+
+"vite@npm:^6.0.0 || ^7.0.0 || ^8.0.0":
+ version: 8.3.5
+ resolution: "vite@npm:8.3.5"
+ dependencies:
+ fsevents: "npm:~2.3.3"
+ lightningcss: "npm:^1.33.0"
+ picomatch: "npm:^4.0.7"
+ postcss: "npm:^8.5.30"
+ rolldown: "npm:~1.2.14"
+ tinyglobby: "npm:^0.2.17"
+ peerDependencies:
+ "@types/node": ^20.19.0 || >=22.12.0
+ "@vitejs/devtools": ^0.7.1 || ^0.8.0
+ esbuild: ^0.27.0 || ^0.28.0
+ jiti: ">=1.21.0"
+ less: ^4.0.0
+ sass: ^1.70.0
+ sass-embedded: ^1.70.0
+ stylus: ">=0.54.8"
+ sugarss: ^5.0.0
+ terser: ^5.16.0
+ tsx: ^4.8.1
+ yaml: ^2.4.2
+ dependenciesMeta:
+ fsevents:
+ optional: true
+ peerDependenciesMeta:
+ "@types/node":
+ optional: true
+ "@vitejs/devtools":
+ optional: true
+ esbuild:
+ optional: true
+ jiti:
+ optional: true
+ less:
+ optional: true
+ sass:
+ optional: true
+ sass-embedded:
+ optional: true
+ stylus:
+ optional: true
+ sugarss:
+ optional: true
+ terser:
+ optional: true
+ tsx:
+ optional: true
+ yaml:
+ optional: true
+ bin:
+ vite: bin/vite.js
+ checksum: 10c0/33991600925b6717429c14a2c2907554aed077489ee6ff7815f9f49d5de559f5173ccb0472f2b3f9eef2a49e2e014f6cb624db8d4adebb37baad3a8cbc15065a
+ languageName: node
+ linkType: hard
+
+"vitest@npm:^4.1.12":
+ version: 4.1.12
+ resolution: "vitest@npm:4.1.12"
+ dependencies:
+ "@vitest/expect": "npm:4.1.12"
+ "@vitest/mocker": "npm:4.1.12"
+ "@vitest/pretty-format": "npm:4.1.12"
+ "@vitest/runner": "npm:4.1.12"
+ "@vitest/snapshot": "npm:4.1.12"
+ "@vitest/spy": "npm:4.1.12"
+ "@vitest/utils": "npm:4.1.12"
+ es-module-lexer: "npm:^2.0.0"
+ expect-type: "npm:^1.3.0"
+ magic-string: "npm:^0.30.21"
+ obug: "npm:^2.1.1"
+ pathe: "npm:^2.0.3"
+ picomatch: "npm:^4.0.3"
+ std-env: "npm:^4.0.0-rc.1"
+ tinybench: "npm:^2.9.0"
+ tinyexec: "npm:^1.0.2"
+ tinyglobby: "npm:^0.2.15"
+ tinyrainbow: "npm:^3.1.0"
+ vite: "npm:^6.0.0 || ^7.0.0 || ^8.0.0"
+ why-is-node-running: "npm:^2.3.0"
+ peerDependencies:
+ "@edge-runtime/vm": "*"
+ "@opentelemetry/api": ^1.9.0
+ "@types/node": ^20.0.0 || ^22.0.0 || >=24.0.0
+ "@vitest/browser-playwright": 4.1.12
+ "@vitest/browser-preview": 4.1.12
+ "@vitest/browser-webdriverio": ^4.1.11
+ "@vitest/coverage-istanbul": 4.1.12
+ "@vitest/coverage-v8": 4.1.12
+ "@vitest/ui": 4.1.12
+ happy-dom: "*"
+ jsdom: "*"
+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0
+ peerDependenciesMeta:
+ "@edge-runtime/vm":
+ optional: true
+ "@opentelemetry/api":
+ optional: true
+ "@types/node":
+ optional: true
+ "@vitest/browser-playwright":
+ optional: true
+ "@vitest/browser-preview":
+ optional: true
+ "@vitest/browser-webdriverio":
+ optional: true
+ "@vitest/coverage-istanbul":
+ optional: true
+ "@vitest/coverage-v8":
+ optional: true
+ "@vitest/ui":
+ optional: true
+ happy-dom:
+ optional: true
+ jsdom:
+ optional: true
+ vite:
+ optional: false
+ bin:
+ vitest: ./vitest.mjs
+ checksum: 10c0/0e571967f9fa2192170203afcb439434b04fbcd914a4dde176544fc45768e76226a284f6fa9d9a4e9bc9fce593bfbe6ab50ee25b3ca50c278eb33562345e0aaf
+ languageName: node
+ linkType: hard
+
+"webidl-conversions@npm:^3.0.0":
+ version: 3.0.1
+ resolution: "webidl-conversions@npm:3.0.1"
+ checksum: 10c0/5612d5f3e54760a797052eb4927f0ddc01383550f542ccd33d5238cfd65aeed392a45ad38364970d0a0f4fea32e1f4d231b3d8dac4a3bdd385e5cf802ae097db
+ languageName: node
+ linkType: hard
+
+"whatwg-url@npm:^5.0.0":
+ version: 5.0.0
+ resolution: "whatwg-url@npm:5.0.0"
+ dependencies:
+ tr46: "npm:~0.0.3"
+ webidl-conversions: "npm:^3.0.0"
+ checksum: 10c0/1588bed84d10b72d5eec1d0faa0722ba1962f1821e7539c535558fb5398d223b0c50d8acab950b8c488b4ba69043fd833cc2697056b167d8ad46fac3995a55d5
+ languageName: node
+ linkType: hard
+
+"which@npm:^7.0.0":
+ version: 7.0.0
+ resolution: "which@npm:7.0.0"
+ dependencies:
+ isexe: "npm:^4.0.0"
+ bin:
+ node-which: bin/which.js
+ checksum: 10c0/ca0b54f198f78bbc4b7c02e34bda8d335cb352e0adb4cbca1c37b1a957af3a879a82c4c27ca6525bc942f548d8b64f816ef6528360af9f3de55ffb9b979b620d
+ languageName: node
+ linkType: hard
+
+"why-is-node-running@npm:^2.3.0":
+ version: 2.3.0
+ resolution: "why-is-node-running@npm:2.3.0"
+ dependencies:
+ siginfo: "npm:^2.0.0"
+ stackback: "npm:0.0.2"
+ bin:
+ why-is-node-running: cli.js
+ checksum: 10c0/1cde0b01b827d2cf4cb11db962f3958b9175d5d9e7ac7361d1a7b0e2dc6069a263e69118bd974c4f6d0a890ef4eedfe34cf3d5167ec14203dbc9a18620537054
+ languageName: node
+ linkType: hard
+
+"ws@npm:^5.2.0 || ^6.0.0 || ^7.0.0":
+ version: 7.5.13
+ resolution: "ws@npm:7.5.13"
+ peerDependencies:
+ bufferutil: ^4.0.1
+ utf-8-validate: ^5.0.2
+ peerDependenciesMeta:
+ bufferutil:
+ optional: true
+ utf-8-validate:
+ optional: true
+ checksum: 10c0/e223726bbda5768ed58ec9252d04eda7018ef380ea122bb94e595a4d7a02b5baeb423933936576fddb8fa51b642375f7ae814bf0f6f5d9a3ce290566578a8c5a
+ languageName: node
+ linkType: hard
+
+"ws@npm:^6.1.4":
+ version: 6.2.6
+ resolution: "ws@npm:6.2.6"
+ dependencies:
+ async-limiter: "npm:~1.0.0"
+ checksum: 10c0/24245efc3c09b6175df32ddb4a06f85432c4c88abb0e75f43f2551c1d5de456218b1b6c7685c414b8e03a68a167488e4aadf04a895681c8e01502025ce505742
+ languageName: node
+ linkType: hard
+
+"yallist@npm:^5.0.0":
+ version: 5.0.0
+ resolution: "yallist@npm:5.0.0"
+ checksum: 10c0/a499c81ce6d4a1d260d4ea0f6d49ab4da09681e32c3f0472dee16667ed69d01dae63a3b81745a24bd78476ec4fcf856114cb4896ace738e01da34b2c42235416
+ languageName: node
+ linkType: hard
+
+"zen-observable-ts@npm:^0.8.21":
+ version: 0.8.21
+ resolution: "zen-observable-ts@npm:0.8.21"
+ dependencies:
+ tslib: "npm:^1.9.3"
+ zen-observable: "npm:^0.8.0"
+ checksum: 10c0/fe4a02f862b5f7e8ae0f86230c37b84c7d5611f5c206981afb4043e732d04cf7067a6cbe1ba82d20f18b735a3387937195a12542158a631d308ae3959a1d93c4
+ languageName: node
+ linkType: hard
+
+"zen-observable@npm:^0.8.0":
+ version: 0.8.15
+ resolution: "zen-observable@npm:0.8.15"
+ checksum: 10c0/71cc2f2bbb537300c3f569e25693d37b3bc91f225cefce251a71c30bc6bb3e7f8e9420ca0eb57f2ac9e492b085b8dfa075fd1e8195c40b83c951dd59c6e4fbf8
+ languageName: node
+ linkType: hard