diff --git a/.eslintcache b/.eslintcache deleted file mode 100644 index b168282..0000000 --- a/.eslintcache +++ /dev/null @@ -1 +0,0 @@ -[{"/home/tempuser-hh19ma/run/codegen-output/scalev/scalev-api-typescript/packages/mcp-server/src/options.ts":"1"},{"size":17015,"mtime":1759200151091,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1tnjd9b","/home/tempuser-hh19ma/run/codegen-output/scalev/scalev-api-typescript/packages/mcp-server/src/options.ts",[],[]] \ No newline at end of file diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4c313f9..dd8fde7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.4.0" + ".": "1.5.0" } diff --git a/.stats.yml b/.stats.yml index 7bad8a9..a595fd2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f17fe6..9761e87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index 07b91c7..f59f9a1 100644 --- a/package.json +++ b/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/package.json b/packages/mcp-server/package.json index 1a2629a..d1ba432 100644 --- a/packages/mcp-server/package.json +++ b/packages/mcp-server/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/src/server.ts b/packages/mcp-server/src/server.ts index 27ebc03..ea70470 100644 --- a/packages/mcp-server/src/server.ts +++ b/packages/mcp-server/src/server.ts @@ -34,7 +34,7 @@ export const newMcpServer = () => new McpServer( { name: 'scalev_api_api', - version: '1.4.0', + version: '1.5.0', }, { capabilities: { tools: {}, logging: {} } }, ); diff --git a/packages/mcp-server/src/tools/businesses/retrieve-enabled-epayments-businesses.ts b/packages/mcp-server/src/tools/businesses/retrieve-enabled-epayments-businesses.ts index 13ebba0..27500a5 100644 --- a/packages/mcp-server/src/tools/businesses/retrieve-enabled-epayments-businesses.ts +++ b/packages/mcp-server/src/tools/businesses/retrieve-enabled-epayments-businesses.ts @@ -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 = { diff --git a/src/client.ts b/src/client.ts index 48a75a0..9ab165c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -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 { - 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 { + protected async authHeaders(opts: FinalRequestOptions): Promise { if (this.apiKey == null) { return undefined; } return buildHeaders([{ Authorization: `Bearer ${this.apiKey}` }]); } - protected async oauth2Auth(opts: FinalRequestOptions): Promise { - return undefined; - } - /** * Basic re-implementation of `qs.stringify` for primitive types. */ diff --git a/src/version.ts b/src/version.ts index 391e342..e514fa0 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.4.0'; // x-release-please-version +export const VERSION = '1.5.0'; // x-release-please-version