Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintcache

This file was deleted.

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.4.0"
".": "1.5.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 122
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/scalev%2Fscalev-api-c0c1f73c9c4d045960a09c56b3133d0d7b2aada33ae2d8eeb3012fd30f4b9422.yml
openapi_spec_hash: d5eabf570425a38dc4850e3351349c6e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/scalev%2Fscalev-api-2243377a8df2212c2b54dedf2c69c3bc84e69bafa1a86998b483a262be700e85.yml
openapi_spec_hash: 51247cf56509245d7df2e29dd6139031
config_hash: 4042035d2fcc36ea4e98423b845f7dcb
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 1.5.0 (2025-10-02)

Full Changelog: [v1.4.0...v1.5.0](https://github.com/scalev-id/sdk/compare/v1.4.0...v1.5.0)

### Features

* **api:** api update ([1f7710f](https://github.com/scalev-id/sdk/commit/1f7710fc006322ed620802119babd7ce4a0553f7))


### Chores

* **internal:** codegen related update ([0920320](https://github.com/scalev-id/sdk/commit/0920320a6a661e4845e4db667a9b90a98131416f))
* **internal:** remove .eslintcache ([3d8d678](https://github.com/scalev-id/sdk/commit/3d8d678e46bd214df9a7799fd3d0025511683044))

## 1.4.0 (2025-09-30)

Full Changelog: [v1.3.0...v1.4.0](https://github.com/scalev-id/sdk/compare/v1.3.0...v1.4.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scalev-api",
"version": "1.4.0",
"version": "1.5.0",
"description": "The official TypeScript library for the Scalev API API",
"author": "Scalev API <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scalev-mcp",
"version": "1.4.0",
"version": "1.5.0",
"description": "The official MCP Server for the Scalev API API",
"author": "Scalev API <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const newMcpServer = () =>
new McpServer(
{
name: 'scalev_api_api',
version: '1.4.0',
version: '1.5.0',
},
{ capabilities: { tools: {}, logging: {} } },
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const metadata: Metadata = {
tags: [],
httpMethod: 'get',
httpPath: '/v2/businesses/enabled-epayments',
operationId: 'ScalevApiWeb.BusinessGlobalController.get_enabled_epayments',
operationId: 'ScalevApiWeb.BusinessGlobalController.get_enabled_payments (2)',
};

export const tool: Tool = {
Expand Down
19 changes: 10 additions & 9 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,24 +351,25 @@ export class ScalevAPI {
}

protected validateHeaders({ values, nulls }: NullableHeaders) {
return;
}
if (this.apiKey && values.get('authorization')) {
return;
}
if (nulls.has('authorization')) {
return;
}

protected async authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
return buildHeaders([await this.bearerAPIKeyAuth(opts), await this.oauth2Auth(opts)]);
throw new Error(
'Could not resolve authentication method. Expected the apiKey to be set. Or for the "Authorization" headers to be explicitly omitted',
);
}

protected async bearerAPIKeyAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
protected async authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
if (this.apiKey == null) {
return undefined;
}
return buildHeaders([{ Authorization: `Bearer ${this.apiKey}` }]);
}

protected async oauth2Auth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
return undefined;
}

/**
* Basic re-implementation of `qs.stringify` for primitive types.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '1.4.0'; // x-release-please-version
export const VERSION = '1.5.0'; // x-release-please-version
Loading