@contractspec/lib.contracts-integrations
v3.8.6
Published
Integration contract definitions for external services
Readme
@contractspec/lib.contracts-integrations
Integration contract definitions for external services.
What It Provides
- Layer: lib.
- Consumers: content-gen, image-gen, voice, jobs, metering, analytics, observability, support-bot.
- Related ContractSpec packages include
@contractspec/lib.contracts-spec,@contractspec/lib.schema,@contractspec/tool.bun,@contractspec/tool.typescript. - Related ContractSpec packages include
@contractspec/lib.contracts-spec,@contractspec/lib.schema,@contractspec/tool.bun,@contractspec/tool.typescript.
Installation
npm install @contractspec/lib.contracts-integrations
or
bun add @contractspec/lib.contracts-integrations
Usage
Import the root entrypoint from @contractspec/lib.contracts-integrations, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/index.tsis the root public barrel and package entrypoint.src/integrationsis part of the package's public or composition surface.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./integrationsresolves through./src/integrations/index.ts. - Export
./integrations/authresolves through./src/integrations/auth.ts. - Export
./integrations/auth-helpersresolves through./src/integrations/auth-helpers.ts. - Export
./integrations/bindingresolves through./src/integrations/binding.ts. - Export
./integrations/byokresolves through./src/integrations/byok.ts. - Export
./integrations/connectionresolves through./src/integrations/connection.ts. - Export
./integrations/docs/integrations.docblockresolves through./src/integrations/docs/integrations.docblock.ts. - Export
./integrations/healthresolves through./src/integrations/health.ts. - Export
./integrations/health/contractsresolves through./src/integrations/health/contracts/index.ts. - The package publishes 121 total export subpaths; keep docs aligned with
package.json.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run lint— bun run lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rm -rf distbun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
- Resolve lint and build errors in workspace bundle and integrations lib.
- Missing contract layers.
- Resolve lint, build, and type errors across nine packages.
- Normalize formatting across contracts-integrations, composio, and observability.
- Add Composio universal fallback, fix provider-ranking types, and expand package exports.
Notes
- High blast radius — integration contracts are consumed by many libs.
- Provider and secret catalog schemas must stay backward-compatible.
- Adding a new integration must not break existing subpath imports.
