# @lssm-tech/integration.provider-higgsfield

Tenant-isolated asynchronous Higgsfield media provider.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `0.2.4`
- Package path: `packages/integrations/provider-higgsfield`
- Manifest path: `packages/integrations/provider-higgsfield/package.json`
- Manifest Git blob: `54ec5bf7e33312ec0b9514e3ea76d13476d4488b`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/integration.provider-higgsfield](https://lssm.co/docs/packages/integration.provider-higgsfield/)
- 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-higgsfield)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-higgsfield/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-higgsfield/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/integration.provider-higgsfield.txt)

## Package metadata

```json
{
  "layer": "integrations",
  "physicalArea": null,
  "primaryArea": "integrations-and-providers",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "integrations",
    "catalogKind": "integration",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "experimental"
  },
  "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-higgsfield/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-higgsfield/README.md",
  "blobSha": "5b70c3741e7740ddf9f2da61f29d21b697aad05c",
  "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.

# Higgsfield provider

Tenant-isolated HTTP adapter for asynchronous images, image-to-video, and talking
presenters. Uses the protocol documented in the official Higgsfield TypeScript SDK.
The SDK's current v2 implementation stores credentials globally and retries POSTs;
this adapter instead resolves credentials per scoped call and submits once.

Inject credentials, trusted authorization, and exact input/output asset host
allowlists. The authority port must check durable request/job ownership, current
rights, qualification, and cost reservation. It must never authorize from caller
strings alone. Use durable orchestration before calling `submit`; this low-level
adapter does not itself provide idempotent submission storage.

For durable orchestration use `lib.content-gen/media/workflow` with
`SqlMediaGenerationStore` from `integration.growth-persistence/marketing`. It saves
the provider request ID before asset ingestion and resumes failed imports through
an idempotent, host-qualified artifact ingestor.

An uncertain submission returns `unknown`; never resubmit automatically. Poll only
known provider job IDs. Ignore provider-returned status/cancel URLs and use the
pinned API origin. Cancellation is unavailable until its semantics are qualified.
Outputs are temporary locations to ingest into the host asset store, not publication
approvals. Responses and errors never include provider headers or raw error bodies.

BYOK only. Managed provisioning, MCP transport, and live provider certification
remain unqualified. HTTP fixture tests do not certify account/model access.

Reference: https://github.com/higgsfield-ai/higgsfield-js


## Declared capabilities

### Higgsfield provider

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

Provider integration for Higgsfield media workflows.

Use cases:

- Connect governed Higgsfield workflows

Constraints:

```json
{
  "platforms": [
    "server"
  ],
  "runtimes": [
    "bun",
    "node"
  ],
  "avoidWhen": [
    "Higgsfield access is not configured."
  ],
  "requires": [
    "TypeScript"
  ]
}
```

Other capability declarations:

```json
{
  "aliases": [
    "higgsfield",
    "media"
  ]
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/integration.provider-higgsfield",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "integrations",
  "kind": "integration",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "experimental",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "bun",
    "node"
  ],
  "entrypoints": [
    "."
  ]
}
```

## 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.higgsfield",
    "from": "@lssm-tech/integration.provider-higgsfield",
    "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-higgsfield` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-higgsfield/src/index.ts); verified source file.

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

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

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

- `@lssm-tech/integration.provider-higgsfield/response` — subpath `./response`
  - `unconditional`: `./src/response.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-higgsfield/src/response.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",
      "browser": "./dist/browser/index.js",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./higgsfield.integration": {
      "types": "./dist/higgsfield.integration.d.ts",
      "browser": "./dist/browser/higgsfield.integration.js",
      "bun": "./dist/higgsfield.integration.js",
      "node": "./dist/node/higgsfield.integration.js",
      "default": "./dist/higgsfield.integration.js"
    },
    "./provider": {
      "types": "./dist/provider.d.ts",
      "browser": "./dist/browser/provider.js",
      "bun": "./dist/provider.js",
      "node": "./dist/node/provider.js",
      "default": "./dist/provider.js"
    },
    "./requests": {
      "types": "./dist/requests.d.ts",
      "browser": "./dist/browser/requests.js",
      "bun": "./dist/requests.js",
      "node": "./dist/node/requests.js",
      "default": "./dist/requests.js"
    },
    "./response": {
      "types": "./dist/response.d.ts",
      "browser": "./dist/browser/response.js",
      "bun": "./dist/response.js",
      "node": "./dist/node/response.js",
      "default": "./dist/response.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.contracts-integrations](https://lssm.co/docs/packages/lib.contracts-integrations/): `workspace:^`

### 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`
- `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",
  "clean": "rimraf dist .turbo",
  "dev": "contractspec-bun-build dev",
  "lint:check": "node ../../../scripts/biome.cjs check .",
  "lint:fix": "node ../../../scripts/biome.cjs check --write .",
  "prebuild": "contractspec-bun-build prebuild",
  "test": "bun test",
  "typecheck": "tsgo --noEmit",
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose"
}
```

## Declared documentation links

- [Higgsfield adapter](https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/provider-higgsfield) — verified pinned repository path.

```json
{
  "url": "https://github.com/lssm-tech/contractspec/tree/main/packages/integrations/provider-higgsfield",
  "kind": "readme"
}
```

## Existing agent-guide projection

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