Skip to main content
[AVAILABLE], published, @parmana/connector-sdk on npm. Real, public, installable with a plain npm install @parmana/connector-sdk. This is the authoring surface for a Connector — the last hop in Parmana’s pipeline, the thing that actually carries out an already-authorized, already-verified request against a real system. It does not include the registry, executor, or policy-binding seams that wire a Connector into the running server — those are internal to @parmana/execution-gateway, not part of this package. See Connector Development Guide for what registering a connector into the default server actually requires.
Building connectors from Python instead? The identical contract is published as parmana-connector-sdk on PyPI — see Connector SDK (Python).

Purpose

The contract every connector implements (Connector), one hermetic reference implementation for testing (MockConnector), the credential-handle seam (CredentialProvider and its two implementations), and four enterprise-shaped reference mocks. This package intentionally ships no HTTP-calling implementation — see Connector Development Guide for a full worked example, including how little code a real HTTP-based Connector takes to write directly against the contract.

Install

Key exports

The contract

Release context and conditions

From @parmana/connector-sdk 0.3.0. ConnectorExecutionContext.release is optional. When present, it is a ConnectorReleaseContext:
  • authorizationId, and policy with name, version and an optional contentHash.
  • approvals: the signed human approvals behind the release, each with approverId, keyId and approvalId. It is empty unless the Gateway checked the request’s signals against the authorization’s signed signalsHash.
  • conditions: the business facts the authorization rests on, each a ReleaseCondition with signalKey, source, claim, subject, value and validUntil (ISO-8601 UTC). It is absent when the decision sourced no facts.
A connector that forwards the action outside Parmana passes the conditions on, so the system can execute only while each fact still holds.

Reference implementations

No HTTP-calling implementation ships from this package, deliberately. This repository enforces, as a tested architectural invariant, that no code inside packages/* other than @parmana/execution-gateway performs real I/O for a Connector — every package under packages/connector-* is checked to contain zero fetch() calls. That invariant only applies to this repository’s own tree; it does not constrain a connector you write in your own codebase. See Connector Development Guide for how short a real HTTP-based Connector is to write directly against the Connector interface.

Credential handles

A Connector never resolves its own credentials — resolution happens upstream, inside the Execution Gateway, before a Connector is ever invoked.

Minimal example

Full worked example, including a real HTTP-based Connector written directly against the contract: Connector Development Guide.

Next

Connector Development Guide

Implement, test, and see what reaching the default server actually requires.

Connector SDK (Python)

The identical contract, published to PyPI, for Python connector authors.

TypeScript SDK

The client SDK for calling Parmana’s own API — a different package, for a different audience (callers, not connector authors).