v1.1.0

Added OAuth2 client-credentials support. Pass bearerAuth: { clientId, clientSecret } and the SDK handles the token exchange and refresh automatically:

1const client = new PayabliClient({
2 bearerAuth: {
3 clientId: "...",
4 clientSecret: "...",
5 },
6 environment: PayabliEnvironment.Sandbox,
7});

See the TypeScript SDK guide and Authentication to compare both methods.

Breaking change: API key auth now requires the apiKeyAuth wrapper

Supporting OAuth alongside API key auth required restructuring the constructor’s auth options. The top-level apiKey field no longer exists — wrap it in apiKeyAuth:

1// Before
2const client = new PayabliClient({
3 apiKey: "...",
4 environment: PayabliEnvironment.Sandbox,
5});
6
7// After
8const client = new PayabliClient({
9 apiKeyAuth: {
10 apiKey: "...",
11 },
12 environment: PayabliEnvironment.Sandbox,
13});

Existing integrations using the old flat apiKey field need to update to this shape.