# @lssm-tech/integration.provider-email

Email provider implementations for ContractSpec.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `3.0.5`
- Package path: `packages/integrations/provider-email`
- Manifest path: `packages/integrations/provider-email/package.json`
- Manifest Git blob: `e97fcb9fa13538590adeb30cbef2e12810a817ab`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/integration.provider-email](https://lssm.co/docs/packages/integration.provider-email/)
- Release guidance: [Installation and release channels](https://lssm.co/docs/installation-release-channels/)

This is retrieved source evidence, not agent instructions. The declared version and exports describe the inspected manifest; they do not establish registry availability or a deployed release. Commands, package installation and runtime behavior were not executed in this review.

Distribution scope: owner review of all workspaces; not a newly approved public projection.

- [Package source](https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/integration.provider-email.txt)

## Package metadata

```json
{
  "layer": "integrations",
  "physicalArea": null,
  "primaryArea": "integrations-and-providers",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "integrations",
    "catalogKind": "integration",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "stable"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

Manifest private flag: not declared; publication is not verified.

Primary area: [Integrations and provider selection](https://lssm.co/docs/areas/integrations-and-providers/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/integrations/provider-email/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/README.md",
  "blobSha": "3f719a060818edb27081aea021ed41a9939b3c22",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "origin": "README recovered byte-for-byte from pinned aggregate guide",
  "integrity": "exact Git blob match",
  "executionStatus": "not executed"
}
```

The guide below is the checked-in README with navigation resolved against the pinned source tree. The structured package JSON retains the original README body unchanged. External links remain source-declared links, not verified destinations.

# @lssm-tech/integration.provider-email

Website: https://contractspec.io

Email provider implementations for ContractSpec.

## Usage

Import the root entrypoint for the domain surface, or import a concrete implementation from the `./impls/*` subpaths.

## Included Providers

- `GmailInboundProvider` for thread and message sync. `listThreadsPage` keeps
  the provider continuation; message metadata records `timestampSource`
  (`provider_internal_date`, `date_header` or `observed_at_fetch`) instead of
  presenting a fetch time as an observed provider time, and attachments are
  referenced by stable MIME part id (the Gmail attachment handle is volatile).
- `GmailMailboxReader` (`./impls/gmail-mailbox-reader`) is the read port for
  durable synchronization: mailbox profile and history baseline, keyed message
  paging, history changes (added, deleted, label changes) with a typed
  `history_expired` failure, and verified send-as identities. A message payload
  that cannot be transformed raises non-retryable `payload_invalid`.
- `createDeferredGmailOAuth2Client` (`./impls/gmail-auth`) loads the mailbox
  credential from custody on first use and on every refresh (a reconnect is
  picked up, no refresh token in configuration); a missing credential is
  `reauthorization_required`.
- `GmailAttachmentOriginalReader` (`./impls/gmail-attachments`) acquires original
  attachment bytes by message + part identity with size bounds and a SHA-256
  digest, producing a `GmailAttachmentOriginalHandOff` record
  (`./impls/gmail-evidence`) for the document-custody port. Equal bytes from two
  mailboxes share a digest but keep separate account-bound source keys.
- `GmailOutboundProvider` for Gmail-based outbound delivery. Messages are built
  by `./impls/gmail-mime` (RFC 2047 Unicode headers, Bcc, base64 parts); caller
  headers cannot set sender or envelope fields. Metadata `gmailThreadId`,
  `gmailInReplyTo` and `gmailReferences` produce a correctly threaded reply. A
  response without a message id raises `response_unverified`.
- `GmailMailboxOperations` (`./impls/gmail-mailbox`) for native drafts
  (create/update/get/send), label changes, archive (removes `INBOX` only) and
  read state. These are provider drivers; agent-initiated calls must arrive
  through Runtime Node authority.
- `parseGmailPushNotification` and `GmailWatchOperations` (`./impls/gmail-push`)
  treat Gmail push as a wake signal only; changes are fetched through history.
- `MicrosoftGraphOutboundProvider` for delegated Microsoft user mail. Graph
  `202 Accepted` is represented as queued acceptance without a provider message
  id; ambiguous responses retain only sanitized diagnostic correlations.
- `MicrosoftGraphInboundProvider` for folder-scoped message delta sync. Complete
  opaque next/delta links are mailbox-bound, and deletion tombstones remain
  explicit reconciliation inputs.
- `MicrosoftGraphMessageSubscriptionManager` for bounded create, renewal, and
  deletion of Outlook message subscriptions. Notification batches require exact
  subscription/client-state binding; missed lifecycle events require delta sync.
- `PostmarkEmailProvider` for transactional email delivery
- `ResendEmailProvider` for outbound delivery with provider-native retry
  idempotency through a bounded `EmailOutboundMessage.idempotencyKey`
- `MailerSendEmailProvider` for outbound text, HTML, template, scheduled, bulk,
  personalized, tagged, header, CC/BCC/reply-to, and inline/regular attachment
  delivery through the official MailerSend REST API
- `MailerSendInboundProvider` for official inbound-route list/get/create/update/
  delete operations with email and webhook forwards
- `ingestMailerSendWebhook` and `authenticateMailerSendWebhook` for raw-body
  HMAC-SHA256 verification, delivery receipts, inbound MIME projections, test
  callbacks, replay suppression, and non-regressing delivery status
- `ingestResendWebhook` for raw-body signature verification and `svix-id`
  replay deduplication plus non-regressing provider-message status projection
  through a caller-owned atomic event store. Results expose only a deterministic
  `provider-message:sha256:*` reference; raw provider message ids remain transient.
- `SqlResendWebhookEventStore` (`./impls/resend-webhook-sql-store`) is the
  durable SQL implementation of that store for a pg-compatible pool (no `pg`
  dependency): one transaction inserts into the host's replay ledger, rejects an
  event id reused for different content, advances the per-message status only
  for a higher `RESEND_DELIVERY_STATUS_RANKS` rank or a later equal-rank event,
  and runs an optional `onStatusApplied` host hook in the same transaction. Hosts
  own the two tables (validated plain identifiers) and their migrations; every
  failure surfaces as retryable `ResendWebhookStoreUnavailableError`.

## MailerSend

Use the focused exports so browser bundles never pull server-only provider code:

```ts
import { MailerSendEmailProvider } from
  "@lssm-tech/integration.provider-email/impls/mailersend-email";
import { MailerSendInboundProvider } from
  "@lssm-tech/integration.provider-email/impls/mailersend-inbound";
import { ingestMailerSendWebhook } from
  "@lssm-tech/integration.provider-email/impls/mailersend-webhook";
```


The caller supplies `apiKey` and may inject `baseUrl` and `fetch`. Credentials
must remain in a server-side vault; provider errors expose only status and a
normalized code. Webhooks must pass the exact raw request body and `Signature`
header with the endpoint signing secret. A successful handler should respond
within three seconds; durable stores must deduplicate event ids because
MailerSend retries failed delivery.

Inbound webhook projections preserve text, HTML, raw MIME, recipients, headers,
SPF/DKIM results, and inline/regular attachments. Application code remains
responsible for retention, attachment storage, malware scanning, and workspace
policy before content enters CommunicationOS projections or AI context.

## Compatibility

This package owns the email implementation slice split out of `@lssm-tech/integration.providers-impls`. The legacy package continues to re-export these subpaths for existing consumers.


## Declared capabilities

### Integration Provider Email

Capability ID: `package.lssm.tech.integration.provider.email`

Email provider implementations for ContractSpec.

Use cases:

- Adopt email provider implementations for contractspec

Constraints:

```json
{
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "avoidWhen": [
    "The @lssm-tech/integration.provider-email package constraints do not match the target runtime or platform."
  ],
  "requires": [
    "TypeScript"
  ]
}
```

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "integration",
    "provider",
    "email"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/integration.provider-email",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/email",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/gmail-auth",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/gmail-inbound",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/gmail-outbound",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/gmail-attachments",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/gmail-evidence",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/gmail-mailbox",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/gmail-mailbox-reader",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/gmail-push",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-client",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-email",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-inbound",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-webhook",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-webhook-parser",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-webhook-store",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/microsoft-graph-inbound",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/microsoft-graph-outbound",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/microsoft-graph-subscriptions",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.provider-email/impls/resend-webhook-sql-store",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "integrations",
  "kind": "integration",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "stable",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./email",
    "./impls",
    "./impls/gmail-attachments",
    "./impls/gmail-auth",
    "./impls/gmail-errors",
    "./impls/gmail-evidence",
    "./impls/gmail-inbound",
    "./impls/gmail-mailbox",
    "./impls/gmail-mailbox-reader",
    "./impls/gmail-message-transform",
    "./impls/gmail-mime",
    "./impls/gmail-outbound",
    "./impls/gmail-push",
    "./impls/mailersend-client",
    "./impls/mailersend-email",
    "./impls/mailersend-inbound",
    "./impls/mailersend-webhook",
    "./impls/mailersend-webhook-parser",
    "./impls/mailersend-webhook-store",
    "./impls/microsoft-graph-inbound",
    "./impls/microsoft-graph-outbound",
    "./impls/microsoft-graph-subscriptions",
    "./impls/postmark-email",
    "./impls/resend-email",
    "./impls/resend-webhook",
    "./impls/resend-webhook-sql-store"
  ],
  "examples": [],
  "replacements": []
}
```

## Canonical imports

Import paths and symbols below are catalogue declarations. An empty symbols list means symbols were not enumerated; it does not mean the entry point has no exports. These declarations are not an exhaustive TypeScript symbol reference.

```json
[
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/email",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/gmail-auth",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/gmail-inbound",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/gmail-outbound",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/gmail-attachments",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/gmail-evidence",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/gmail-mailbox",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/gmail-mailbox-reader",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/gmail-push",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-client",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-email",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-inbound",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-webhook",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-webhook-parser",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/mailersend-webhook-store",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/microsoft-graph-inbound",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/microsoft-graph-outbound",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/microsoft-graph-subscriptions",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.provider.email",
    "from": "@lssm-tech/integration.provider-email/impls/resend-webhook-sql-store",
    "symbols": []
  }
]
```

## Declared export entry points

Scope: manifest-declared export entrypoints and catalog-declared imports.

Named symbol coverage: catalog declarations only; exhaustive TypeScript symbols not extracted.

Installation status: not verified.

- `@lssm-tech/integration.provider-email` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/index.ts); verified source file.

- `@lssm-tech/integration.provider-email/email` — subpath `./email`
  - `unconditional`: `./src/email.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/email.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls` — subpath `./impls`
  - `unconditional`: `./src/impls/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/index.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-attachments` — subpath `./impls/gmail-attachments`
  - `unconditional`: `./src/impls/gmail-attachments.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-attachments.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-auth` — subpath `./impls/gmail-auth`
  - `unconditional`: `./src/impls/gmail-auth.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-auth.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-errors` — subpath `./impls/gmail-errors`
  - `unconditional`: `./src/impls/gmail-errors.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-errors.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-evidence` — subpath `./impls/gmail-evidence`
  - `unconditional`: `./src/impls/gmail-evidence.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-evidence.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-inbound` — subpath `./impls/gmail-inbound`
  - `unconditional`: `./src/impls/gmail-inbound.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-inbound.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-mailbox` — subpath `./impls/gmail-mailbox`
  - `unconditional`: `./src/impls/gmail-mailbox.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-mailbox.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-mailbox-reader` — subpath `./impls/gmail-mailbox-reader`
  - `unconditional`: `./src/impls/gmail-mailbox-reader.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-mailbox-reader.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-message-transform` — subpath `./impls/gmail-message-transform`
  - `unconditional`: `./src/impls/gmail-message-transform.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-message-transform.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-mime` — subpath `./impls/gmail-mime`
  - `unconditional`: `./src/impls/gmail-mime.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-mime.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-outbound` — subpath `./impls/gmail-outbound`
  - `unconditional`: `./src/impls/gmail-outbound.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-outbound.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/gmail-push` — subpath `./impls/gmail-push`
  - `unconditional`: `./src/impls/gmail-push.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/gmail-push.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/mailersend-client` — subpath `./impls/mailersend-client`
  - `unconditional`: `./src/impls/mailersend-client.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/mailersend-client.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/mailersend-email` — subpath `./impls/mailersend-email`
  - `unconditional`: `./src/impls/mailersend-email.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/mailersend-email.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/mailersend-inbound` — subpath `./impls/mailersend-inbound`
  - `unconditional`: `./src/impls/mailersend-inbound.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/mailersend-inbound.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/mailersend-webhook` — subpath `./impls/mailersend-webhook`
  - `unconditional`: `./src/impls/mailersend-webhook.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/mailersend-webhook.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/mailersend-webhook-parser` — subpath `./impls/mailersend-webhook-parser`
  - `unconditional`: `./src/impls/mailersend-webhook-parser.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/mailersend-webhook-parser.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/mailersend-webhook-store` — subpath `./impls/mailersend-webhook-store`
  - `unconditional`: `./src/impls/mailersend-webhook-store.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/mailersend-webhook-store.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/microsoft-graph-inbound` — subpath `./impls/microsoft-graph-inbound`
  - `unconditional`: `./src/impls/microsoft-graph-inbound.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/microsoft-graph-inbound.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/microsoft-graph-mail-mapping` — subpath `./impls/microsoft-graph-mail-mapping`
  - `unconditional`: `./src/impls/microsoft-graph-mail-mapping.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/microsoft-graph-mail-mapping.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/microsoft-graph-notifications` — subpath `./impls/microsoft-graph-notifications`
  - `unconditional`: `./src/impls/microsoft-graph-notifications.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/microsoft-graph-notifications.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/microsoft-graph-outbound` — subpath `./impls/microsoft-graph-outbound`
  - `unconditional`: `./src/impls/microsoft-graph-outbound.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/microsoft-graph-outbound.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/microsoft-graph-subscriptions` — subpath `./impls/microsoft-graph-subscriptions`
  - `unconditional`: `./src/impls/microsoft-graph-subscriptions.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/microsoft-graph-subscriptions.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/postmark-email` — subpath `./impls/postmark-email`
  - `unconditional`: `./src/impls/postmark-email.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/postmark-email.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/resend-email` — subpath `./impls/resend-email`
  - `unconditional`: `./src/impls/resend-email.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/resend-email.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/resend-webhook` — subpath `./impls/resend-webhook`
  - `unconditional`: `./src/impls/resend-webhook.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/resend-webhook.ts); verified source file.

- `@lssm-tech/integration.provider-email/impls/resend-webhook-sql-store` — subpath `./impls/resend-webhook-sql-store`
  - `unconditional`: `./src/impls/resend-webhook-sql-store.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-email/src/impls/resend-webhook-sql-store.ts); verified source file.

## Package publication metadata

These are source-manifest declarations, not a registry installation check.

```json
{
  "types": "./dist/index.d.ts",
  "files": [
    "dist",
    "README.md"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./email": {
      "types": "./dist/email.d.ts",
      "bun": "./dist/email.js",
      "node": "./dist/node/email.js",
      "default": "./dist/email.js"
    },
    "./impls": {
      "types": "./dist/impls/index.d.ts",
      "bun": "./dist/impls/index.js",
      "node": "./dist/node/impls/index.js",
      "default": "./dist/impls/index.js"
    },
    "./impls/gmail-attachments": {
      "types": "./dist/impls/gmail-attachments.d.ts",
      "bun": "./dist/impls/gmail-attachments.js",
      "node": "./dist/node/impls/gmail-attachments.js",
      "default": "./dist/impls/gmail-attachments.js"
    },
    "./impls/gmail-auth": {
      "types": "./dist/impls/gmail-auth.d.ts",
      "bun": "./dist/impls/gmail-auth.js",
      "node": "./dist/node/impls/gmail-auth.js",
      "default": "./dist/impls/gmail-auth.js"
    },
    "./impls/gmail-errors": {
      "types": "./dist/impls/gmail-errors.d.ts",
      "bun": "./dist/impls/gmail-errors.js",
      "node": "./dist/node/impls/gmail-errors.js",
      "default": "./dist/impls/gmail-errors.js"
    },
    "./impls/gmail-evidence": {
      "types": "./dist/impls/gmail-evidence.d.ts",
      "bun": "./dist/impls/gmail-evidence.js",
      "node": "./dist/node/impls/gmail-evidence.js",
      "default": "./dist/impls/gmail-evidence.js"
    },
    "./impls/gmail-inbound": {
      "types": "./dist/impls/gmail-inbound.d.ts",
      "bun": "./dist/impls/gmail-inbound.js",
      "node": "./dist/node/impls/gmail-inbound.js",
      "default": "./dist/impls/gmail-inbound.js"
    },
    "./impls/gmail-mailbox": {
      "types": "./dist/impls/gmail-mailbox.d.ts",
      "bun": "./dist/impls/gmail-mailbox.js",
      "node": "./dist/node/impls/gmail-mailbox.js",
      "default": "./dist/impls/gmail-mailbox.js"
    },
    "./impls/gmail-mailbox-reader": {
      "types": "./dist/impls/gmail-mailbox-reader.d.ts",
      "bun": "./dist/impls/gmail-mailbox-reader.js",
      "node": "./dist/node/impls/gmail-mailbox-reader.js",
      "default": "./dist/impls/gmail-mailbox-reader.js"
    },
    "./impls/gmail-message-transform": {
      "types": "./dist/impls/gmail-message-transform.d.ts",
      "bun": "./dist/impls/gmail-message-transform.js",
      "node": "./dist/node/impls/gmail-message-transform.js",
      "default": "./dist/impls/gmail-message-transform.js"
    },
    "./impls/gmail-mime": {
      "types": "./dist/impls/gmail-mime.d.ts",
      "bun": "./dist/impls/gmail-mime.js",
      "node": "./dist/node/impls/gmail-mime.js",
      "default": "./dist/impls/gmail-mime.js"
    },
    "./impls/gmail-outbound": {
      "types": "./dist/impls/gmail-outbound.d.ts",
      "bun": "./dist/impls/gmail-outbound.js",
      "node": "./dist/node/impls/gmail-outbound.js",
      "default": "./dist/impls/gmail-outbound.js"
    },
    "./impls/gmail-push": {
      "types": "./dist/impls/gmail-push.d.ts",
      "bun": "./dist/impls/gmail-push.js",
      "node": "./dist/node/impls/gmail-push.js",
      "default": "./dist/impls/gmail-push.js"
    },
    "./impls/mailersend-client": {
      "types": "./dist/impls/mailersend-client.d.ts",
      "bun": "./dist/impls/mailersend-client.js",
      "node": "./dist/node/impls/mailersend-client.js",
      "default": "./dist/impls/mailersend-client.js"
    },
    "./impls/mailersend-email": {
      "types": "./dist/impls/mailersend-email.d.ts",
      "bun": "./dist/impls/mailersend-email.js",
      "node": "./dist/node/impls/mailersend-email.js",
      "default": "./dist/impls/mailersend-email.js"
    },
    "./impls/mailersend-inbound": {
      "types": "./dist/impls/mailersend-inbound.d.ts",
      "bun": "./dist/impls/mailersend-inbound.js",
      "node": "./dist/node/impls/mailersend-inbound.js",
      "default": "./dist/impls/mailersend-inbound.js"
    },
    "./impls/mailersend-webhook": {
      "types": "./dist/impls/mailersend-webhook.d.ts",
      "bun": "./dist/impls/mailersend-webhook.js",
      "node": "./dist/node/impls/mailersend-webhook.js",
      "default": "./dist/impls/mailersend-webhook.js"
    },
    "./impls/mailersend-webhook-parser": {
      "types": "./dist/impls/mailersend-webhook-parser.d.ts",
      "bun": "./dist/impls/mailersend-webhook-parser.js",
      "node": "./dist/node/impls/mailersend-webhook-parser.js",
      "default": "./dist/impls/mailersend-webhook-parser.js"
    },
    "./impls/mailersend-webhook-store": {
      "types": "./dist/impls/mailersend-webhook-store.d.ts",
      "bun": "./dist/impls/mailersend-webhook-store.js",
      "node": "./dist/node/impls/mailersend-webhook-store.js",
      "default": "./dist/impls/mailersend-webhook-store.js"
    },
    "./impls/microsoft-graph-inbound": {
      "types": "./dist/impls/microsoft-graph-inbound.d.ts",
      "bun": "./dist/impls/microsoft-graph-inbound.js",
      "node": "./dist/node/impls/microsoft-graph-inbound.js",
      "default": "./dist/impls/microsoft-graph-inbound.js"
    },
    "./impls/microsoft-graph-mail-mapping": {
      "types": "./dist/impls/microsoft-graph-mail-mapping.d.ts",
      "bun": "./dist/impls/microsoft-graph-mail-mapping.js",
      "node": "./dist/node/impls/microsoft-graph-mail-mapping.js",
      "default": "./dist/impls/microsoft-graph-mail-mapping.js"
    },
    "./impls/microsoft-graph-notifications": {
      "types": "./dist/impls/microsoft-graph-notifications.d.ts",
      "bun": "./dist/impls/microsoft-graph-notifications.js",
      "node": "./dist/node/impls/microsoft-graph-notifications.js",
      "default": "./dist/impls/microsoft-graph-notifications.js"
    },
    "./impls/microsoft-graph-outbound": {
      "types": "./dist/impls/microsoft-graph-outbound.d.ts",
      "bun": "./dist/impls/microsoft-graph-outbound.js",
      "node": "./dist/node/impls/microsoft-graph-outbound.js",
      "default": "./dist/impls/microsoft-graph-outbound.js"
    },
    "./impls/microsoft-graph-subscriptions": {
      "types": "./dist/impls/microsoft-graph-subscriptions.d.ts",
      "bun": "./dist/impls/microsoft-graph-subscriptions.js",
      "node": "./dist/node/impls/microsoft-graph-subscriptions.js",
      "default": "./dist/impls/microsoft-graph-subscriptions.js"
    },
    "./impls/postmark-email": {
      "types": "./dist/impls/postmark-email.d.ts",
      "bun": "./dist/impls/postmark-email.js",
      "node": "./dist/node/impls/postmark-email.js",
      "default": "./dist/impls/postmark-email.js"
    },
    "./impls/resend-email": {
      "types": "./dist/impls/resend-email.d.ts",
      "bun": "./dist/impls/resend-email.js",
      "node": "./dist/node/impls/resend-email.js",
      "default": "./dist/impls/resend-email.js"
    },
    "./impls/resend-webhook": {
      "types": "./dist/impls/resend-webhook.d.ts",
      "bun": "./dist/impls/resend-webhook.js",
      "node": "./dist/node/impls/resend-webhook.js",
      "default": "./dist/impls/resend-webhook.js"
    },
    "./impls/resend-webhook-sql-store": {
      "types": "./dist/impls/resend-webhook-sql-store.d.ts",
      "bun": "./dist/impls/resend-webhook-sql-store.js",
      "node": "./dist/node/impls/resend-webhook-sql-store.js",
      "default": "./dist/impls/resend-webhook-sql-store.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/integration.runtime](https://lssm.co/docs/packages/integration.runtime/): `workspace:^`
- [@lssm-tech/lib.contracts-integrations](https://lssm.co/docs/packages/lib.contracts-integrations/): `workspace:^`
- `googleapis`: `catalog:integrations`
- `resend`: `^6.28.1`

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/tool.bun](https://lssm.co/docs/packages/tool.bun/): `workspace:*`
- [@lssm-tech/tool.typescript](https://lssm.co/docs/packages/tool.typescript/): `workspace:*`
- `@types/bun`: `catalog:types`
- `postmark`: `^5.1.0`
- `typescript`: `catalog:`

### Peer dependency metadata

```json
{}
```

### Bundled dependencies

```json
null
```

## Package scripts

Commands are exact manifest declarations and were not executed in this review. Script metadata status: complete pinned manifest.

```json
{
  "build": "contractspec-bun-build build",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "dev": "contractspec-bun-build dev",
  "clean": "rimraf dist .turbo",
  "lint:check": "node ../../../scripts/biome.cjs check .",
  "lint:fix": "node ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .",
  "test": "bun test",
  "prebuild": "contractspec-bun-build prebuild",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Integration Provider Email documentation](https://www.npmjs.com/package/%40lssm-tech%2Fintegration.provider-email) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Fintegration.provider-email",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/integration.provider-email.txt",
  "route": "/llms/integration.provider-email",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/integration.provider-email.txt",
  "blobSha": "3f719a060818edb27081aea021ed41a9939b3c22",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
