integrationPackage manifestv2.1.4

integration.provider-linkedin

Official LinkedIn API adapters for ContractSpec.

@lssm-tech/integration.provider-linkedin
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 2.1.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
servernode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGEintegration.provider-linkedinintegrations

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

3 declaracionesSELECT TO INSPECT

@lssm-tech/integration.provider-linkedin

Official-API-only LinkedIn adapters for ContractSpec verticals.

Supported surfaces

  • typed LinkedIn post drafts and explicit validation;
  • OAuth 2.0 authorization-code connection with state, PKCE, refresh, and secret-reference-only persistence;
  • member, organization, and first-degree connection reads;
  • posts, comments, replies, reactions, and community analytics;
  • invitations, conversations, inbox messages, replies, and outreach;
  • Sales Navigator lead/account search, CRM association, and evidence-backed employment validation;
  • advertising accounts, campaigns, creatives, audiences, and reporting;
  • webhook subscription, challenge, authenticity, normalization, deduplication, replay-window enforcement, tenant binding, checkpoints, and backfill;
  • delta/cursor imports for profiles, organizations, connections, and lead responses;
  • host-neutral OAuth callback and webhook adapters plus a provider-neutral Communication OS channel adapter.

The package models all of these surfaces, but it does not pretend that a LinkedIn product has been granted. Partner-restricted operations stay approval_required until the exact product, scopes, actor/resource roles, API version, operation, and effect class are approved and certified. Read certification never elevates a write or spend operation.

Narrow imports

ts
import { LinkedInOAuth } from "@lssm-tech/integration.provider-linkedin/oauth";
import { migrateLinkedInLegacyOAuth } from "@lssm-tech/integration.provider-linkedin/migration";
import { LinkedInCommunicationAdapter } from "@lssm-tech/integration.provider-linkedin/communication-os";
import { LinkedInSalesAdapter } from "@lssm-tech/integration.provider-linkedin/sales";
import { LinkedInAdvertisingAdapter } from "@lssm-tech/integration.provider-linkedin/advertising";
import { LinkedInCommunicationChannelAdapter } from "@lssm-tech/integration.provider-linkedin/channel";
import { LinkedInOAuthHostAdapter, LinkedInWebhookHostAdapter } from "@lssm-tech/integration.provider-linkedin/host";
import { DefaultLinkedInResponseNormalizer } from "@lssm-tech/integration.provider-linkedin/normalizers";
import { LinkedInSyncAdapter } from "@lssm-tech/integration.provider-linkedin/sync";

The corresponding stable ports and models are available from @lssm-tech/lib.contracts-integrations/integrations/linkedin.

Safety boundary

  • No scraping, cookie authentication, browser automation, or undocumented endpoint is provided.
  • Tokens are resolved through LinkedInTokenSource; serialized connections contain only LinkedInCredentialReference.
  • OAuth redirect URIs and webhook callback URLs use exact HTTPS allowlists.
  • Provider JSON passes the concrete DefaultLinkedInResponseNormalizer (or an explicitly injected version-aware replacement); raw provider DTOs are never returned as contract records.
  • Invitations, messages, community mutations, posts, campaigns, and spend require authority, approval, and idempotency references.
  • Default tests use fixtures and mocked HTTP. Live certification is opt-in and must use approved non-production resources without real outreach or spend.

Approved partner endpoints are installation configuration. When an endpoint is not configured, the adapter returns approval_required before network dispatch.

Transport safety: LinkedInClient snapshots and freezes requests before authorization, checks stable operation/effect/authority bindings, and rejects reserved header overrides. Writes have one attempt even when an idempotency reference is present. Only GETs use bounded retries; redirects are rejected, requests have bounded timeouts and response bodies are capped at 5 MB. HTTP errors do not expose raw provider error messages.

An optional third response-decoder argument supplies { status, resourceId }, preserving x-restli-id for explicit handling of bodyless creation responses. This does not fabricate a published-post DTO or certify a native publishing workflow. Existing decoders remain compatible. timeoutMs is configurable from 1 to 120000; maxAttempts from 1 to 10.

./native-publication exposes LinkedInNativePublicationProvider for the scoped V2 social port. A required authorized material loader binds tenant/account/revision/digest and the member or organization author. It compiles real Posts API bodies for text and pre-uploaded image/video/document/article/multi-image content. Ready assets and rights are host checks.

Creation is accepted only with a valid 201 post URN. A separately authorized GET confirms the exact post and author in PUBLISHED state. Ambiguous creates are never retried. Configure this adapter in publicationPorts.providersV2.linkedin when composing marketing scheduling. The generic legacy draft-based adapter is unchanged. Upload processing, X publication and live account qualification remain separate work.

Protocol reference: LinkedIn Posts API.

The native publisher rejects unresolved policy obligations other than reason annotations. Session-only, redaction and reevaluation constraints must be resolved through the governing workflow before a publishable revision reaches this adapter; they are never ignored.

Native media protocol

./media exports createLinkedInMediaProvider, which shares one API version, access policy and secret source across image/video initialization, binary transfer, video finalization and media status reads. Upload/read use their own capability IDs and four operation keys; post-publication certification does not authorize them. Member and organization grants retain distinct scopes and roles. Existing provider implementations may omit these optional methods.

Initialization validates contiguous native byte ranges and returns transient upload capabilities. Keep sessions (signed URLs and upload tokens) in a private vault, never ordinary job/event payloads. Transfer verifies the expected SHA-256, sends one bounded PUT to the official LinkedIn upload origin without redirects/retries, and retains ETags for ordered video finalization. Reads verify native identity/owner before projecting AVAILABLE. Captions/thumbnails are not requested by this initializer.

These are protocol primitives, not a durable worker. Callers must claim each write before invocation, preserve ambiguous outcomes, enforce session expiry and recheck rights. Durable Marketing Operations session orchestration and live qualification are still required. Official references: Images API and Videos API.

./media-job now exports LinkedInMediaJobRuntime. Supply SqlLinkedInMediaJobStore, the native protocol provider, current authority, immutable asset-range reads and exact transport recovery receipts. Bounded run(plan, maxSteps) calls retain claimed effects and resume remaining work. Image transfers proceed to processing; video transfers preserve ordered ETags for native finalization.

./media-session-vault reuses the existing SecretProvider. References are bound to tenant/workspace/account/job/request and content digest, and reads require the exact returned secret version. Signed URLs and upload tokens never enter ordinary SQL job history. Session expiry blocks pending transfers; it does not expire ready native assets. Use linkedInUploadedMedia only after readiness, and recheck current publication rights. Hosted worker installation, live qualification, captions and thumbnails remain pending.

native-withdrawal implements the content withdrawal port using post-management authority and the official DELETE endpoint. It binds the revoked use to a historical owned post and requires native 204 confirmation. Reconciliation reads an exact job/post-bound recorded deletion receipt; a bare 404 does not prove deletion. Use with the durable ContentWithdrawalWorker. Live account qualification remains required.

Declared capabilities.

Integration Provider Linkedin

Official LinkedIn API adapters for ContractSpec.

Use it to

  • Adopt official linkedin api adapters for contractspec

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/integration.provider-linkedin package constraints do not match the target runtime or platform.

@lssm-tech/integration.provider-linkedin

@lssm-tech/integration.provider-linkedin/adapter

@lssm-tech/integration.provider-linkedin/advertising

@lssm-tech/integration.provider-linkedin/analytics

@lssm-tech/integration.provider-linkedin/capabilities

@lssm-tech/integration.provider-linkedin/capability-requirements

@lssm-tech/integration.provider-linkedin/capability-resolution

@lssm-tech/integration.provider-linkedin/channel

@lssm-tech/integration.provider-linkedin/client

@lssm-tech/integration.provider-linkedin/communication-os

@lssm-tech/integration.provider-linkedin/community

@lssm-tech/integration.provider-linkedin/drafting

Imports and export paths.

42 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

42 importaciones · se muestran 35

@lssm-tech/integration.provider-linkedin/host

Dependencies and related packages.

Runtime dependencies 3
Development dependencies 4
@types/bun
catalog:types
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
cleanrimraf dist .turbo
devcontractspec-bun-build dev
lint:checknode ../../../scripts/biome.cjs check .
lint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .
prebuildcontractspec-bun-build prebuild
testbun test
test:packbun scripts/test-packed-imports.ts
typechecktsgo --noEmit
Tu vista

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Tu contexto

The different parts of you

Choose a starting point

Una mezcla útil de contexto, imágenes y orientación discreta.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Comodidad de lectura

Elige tu idioma

El idioma de la interfaz solo cambia el texto. Los mercados, precios y flujos de trabajo conservan sus propios ajustes.

Cobertura de traducción

Parte del contenido se muestra en inglés.

Navegación151
Grafo616
Categorías188
Portafolio332
Ejemplos2035
Vista previa de la fuente41

Se añadirán más traducciones a medida que se revise el contenido.

Esta preferencia se guarda en este navegador.

Buscar en el sitio web

Puntos de partida útiles

Sin resultados. Prueba una frase más corta, un nombre de operación u otro ámbito de búsqueda.

UN POCO DE ESPACIO PARA EXPLORAR

Encuentra algo que explorar.

Abre una vista detallada en esta página, prueba otra perspectiva o sigue el detalle a su propia página.

Cómo funcionan las vistas previas y los controles
01

Mirar antes de salir

Pasa el cursor por un enlace o enfócalo con Tab para ver una vista previa. Hacer clic en el enlace original o pulsar Intro siempre abre su destino.

02

Mantener el contexto

Entra en la vista previa para explorar sus secciones. Usa Alt + ↓ desde un enlace enfocado para entrar con el teclado. Escape la cierra.

03

Abrir las posibilidades

Las filas desplegables, las perspectivas y los controles destacados revelan más. Tu vista cambia la comodidad de lectura y el contexto que exploras.

Un botón separado para mirar más de cerca

Muestra pequeños botones de vista previa junto a los enlaces donde haya espacio. Toca el ojo para inspeccionar o el enlace para ir directamente. Esta elección permanece en esta pestaña.

No se recoge historial de navegación. El movimiento reducido sigue tu dispositivo y Tu vista.