@voyant-travel/connect-provider-sdk is for teams building provider integrations that run inside or alongside Voyant Connect. It contains the small set of public primitives a connector depends on: provider descriptors, credential parsing helpers, and conformance utilities.
It is deliberately minimal. Provider-specific API clients, scraping logic, credential exchange, and mapping code belong in connector packages owned by the provider or by Voyant, not in this SDK.
Install
Define a provider
A provider describes a supplier integration to Connect: its key, display name, auth and access models, the directions it supports, the categories it covers, and how to parse its credentials.API surface
| Export | Purpose |
|---|---|
defineConnectProvider(descriptor) | Declare a provider descriptor. |
assertProviderKey(key) | Validate a provider key. |
parseJsonCredentials(raw) | Parse JSON credential payloads. |
ConnectProviderSdkError | The error type thrown by the helpers. |
ConnectProviderDescriptor, ConnectConnectionContext, ConnectProviderCategory, ConnectProviderDirection, ConnectProviderAuthModel, ConnectProviderAccessModel, ConnectProviderCredentialValidationResult.
Where connector code lives
Keep the boundary clean:- Use this package for the public provider contract and helpers.
- Keep provider-specific connector implementations in separate packages or repositories, especially when maintenance may be handed to the provider.
- Use
@voyant-travel/connect-sdkwhen calling Connect APIs as a consumer.
Next steps
Connect concepts
Providers, connections, and credentials.
Connect SDK
The consumer-side client.