diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 029403d..e0583e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,14 +65,18 @@ jobs: run: ./scripts/build - name: Get GitHub OIDC Token - if: github.repository == 'stainless-sdks/smithery-typescript' + if: |- + github.repository == 'stainless-sdks/smithery-typescript' && + !startsWith(github.ref, 'refs/heads/stl/') id: github-oidc uses: actions/github-script@v8 with: script: core.setOutput('github_token', await core.getIDToken()); - name: Upload tarball - if: github.repository == 'stainless-sdks/smithery-typescript' + if: |- + github.repository == 'stainless-sdks/smithery-typescript' && + !startsWith(github.ref, 'refs/heads/stl/') env: URL: https://pkg.stainless.com/s AUTH: ${{ steps.github-oidc.outputs.github_token }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 330850b..b2ddd21 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.54.0" + ".": "0.55.0" } diff --git a/.stats.yml b/.stats.yml index 342cee2..d5c81f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 55 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/smithery%2Fsmithery-8fa88da862af3b73aa60489e4d7f5b67ea261276f1f3723efcb1ba65da3d9397.yml -openapi_spec_hash: dc8ac408987a05ec7f1bae1bc9915107 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/smithery%2Fsmithery-8f89ae4612e134edd6727145a66b20b2bd6e77e41fdaef9eed4b8ae885e87425.yml +openapi_spec_hash: d0eca3c5b0cd0bd9bdf33de288067fb9 config_hash: be5393e7788ba802a675b6422639e436 diff --git a/CHANGELOG.md b/CHANGELOG.md index dd468ee..d367b91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## 0.55.0 (2026-03-12) + +Full Changelog: [v0.54.0...v0.55.0](https://github.com/smithery-ai/typescript-api/compare/v0.54.0...v0.55.0) + +### Features + +* sunset Smithery Chat/Playground (SMI-1579) ([4ff43f1](https://github.com/smithery-ai/typescript-api/commit/4ff43f15e02811fcce12acc1b893d4d8adc79eeb)) + + +### Bug Fixes + +* **api:** add seed param for duplicate-free browse pagination ([#1780](https://github.com/smithery-ai/typescript-api/issues/1780)) ([a3ce849](https://github.com/smithery-ai/typescript-api/commit/a3ce849c4a98f5cc197c8af5ea8019d1f050bced)) +* **client:** preserve URL params already embedded in path ([b4bd0cf](https://github.com/smithery-ai/typescript-api/commit/b4bd0cf8c1a80846e9b90266c72ac367dddbfec3)) + + +### Chores + +* **ci:** skip uploading artifacts on stainless-internal branches ([0da884d](https://github.com/smithery-ai/typescript-api/commit/0da884d71a8735a1d7dc837e7617a0fc2f3a0f64)) +* **internal:** codegen related update ([61589d3](https://github.com/smithery-ai/typescript-api/commit/61589d3e4268f14272015c71f4475cb7c59006fa)) +* **internal:** update dependencies to address dependabot vulnerabilities ([5713407](https://github.com/smithery-ai/typescript-api/commit/57134075dc3f9b8a5d76c80fe5892abf86a07c9f)) +* update placeholder string ([30712cf](https://github.com/smithery-ai/typescript-api/commit/30712cfa14cfa3fda5117d6915866f5148ef2e45)) + ## 0.54.0 (2026-03-03) Full Changelog: [v0.53.0...v0.54.0](https://github.com/smithery-ai/typescript-api/compare/v0.53.0...v0.54.0) diff --git a/package-lock.json b/package-lock.json index b7d5b2e..9089476 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@smithery/api", - "version": "0.54.0", + "version": "0.55.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@smithery/api", - "version": "0.54.0", + "version": "0.55.0", "license": "Apache-2.0", "devDependencies": { "@arethetypeswrong/cli": "^0.17.0", diff --git a/package.json b/package.json index f6a4e53..337e9c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@smithery/api", - "version": "0.54.0", + "version": "0.55.0", "description": "The official TypeScript library for the Smithery API", "author": "Smithery ", "types": "dist/index.d.ts", @@ -50,6 +50,17 @@ "typescript": "5.8.3", "typescript-eslint": "8.31.1" }, + "overrides": { + "minimatch": "^9.0.5" + }, + "pnpm": { + "overrides": { + "minimatch": "^9.0.5" + } + }, + "resolutions": { + "minimatch": "^9.0.5" + }, "exports": { ".": { "import": "./dist/index.mjs", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9adb9b6..db0b69b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + minimatch: ^9.0.5 + importers: .: @@ -781,9 +784,6 @@ packages: resolution: {integrity: sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==} engines: {node: '>=18'} - brace-expansion@1.1.12: - resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} - brace-expansion@2.0.2: resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==} @@ -890,9 +890,6 @@ packages: resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} engines: {node: '>=14'} - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - content-disposition@1.0.1: resolution: {integrity: sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==} engines: {node: '>=18'} @@ -1691,13 +1688,6 @@ packages: resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} engines: {node: '>=6'} - minimatch@3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - - minimatch@5.1.6: - resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} - engines: {node: '>=10'} - minimatch@9.0.5: resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} @@ -2581,7 +2571,7 @@ snapshots: dependencies: '@eslint/object-schema': 2.1.7 debug: 4.4.3 - minimatch: 3.1.2 + minimatch: 9.0.5 transitivePeerDependencies: - supports-color @@ -2602,7 +2592,7 @@ snapshots: ignore: 5.3.2 import-fresh: 3.3.1 js-yaml: 4.1.1 - minimatch: 3.1.2 + minimatch: 9.0.5 strip-json-comments: 3.1.1 transitivePeerDependencies: - supports-color @@ -3225,11 +3215,6 @@ snapshots: transitivePeerDependencies: - supports-color - brace-expansion@1.1.12: - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - brace-expansion@2.0.2: dependencies: balanced-match: 1.0.2 @@ -3330,8 +3315,6 @@ snapshots: commander@10.0.1: {} - concat-map@0.0.1: {} - content-disposition@1.0.1: {} content-type@1.0.5: {} @@ -3491,7 +3474,7 @@ snapshots: is-glob: 4.0.3 json-stable-stringify-without-jsonify: 1.0.1 lodash.merge: 4.6.2 - minimatch: 3.1.2 + minimatch: 9.0.5 natural-compare: 1.4.0 optionator: 0.9.4 transitivePeerDependencies: @@ -3700,7 +3683,7 @@ snapshots: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.1.2 + minimatch: 9.0.5 once: 1.4.0 path-is-absolute: 1.0.1 @@ -3709,7 +3692,7 @@ snapshots: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 5.1.6 + minimatch: 9.0.5 once: 1.4.0 globals@14.0.0: {} @@ -3767,7 +3750,7 @@ snapshots: ignore-walk@5.0.1: dependencies: - minimatch: 5.1.6 + minimatch: 9.0.5 ignore@5.3.2: {} @@ -4278,14 +4261,6 @@ snapshots: mimic-fn@2.1.0: {} - minimatch@3.1.2: - dependencies: - brace-expansion: 1.1.12 - - minimatch@5.1.6: - dependencies: - brace-expansion: 2.0.2 - minimatch@9.0.5: dependencies: brace-expansion: 2.0.2 @@ -4681,7 +4656,7 @@ snapshots: dependencies: '@istanbuljs/schema': 0.1.3 glob: 7.2.3 - minimatch: 3.1.2 + minimatch: 9.0.5 thenify-all@1.6.0: dependencies: diff --git a/src/client.ts b/src/client.ts index 83d9b6d..61dbe82 100644 --- a/src/client.ts +++ b/src/client.ts @@ -319,8 +319,9 @@ export class Smithery { : new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path)); const defaultQuery = this.defaultQuery(); - if (!isEmptyObj(defaultQuery)) { - query = { ...defaultQuery, ...query }; + const pathQuery = Object.fromEntries(url.searchParams); + if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) { + query = { ...pathQuery, ...defaultQuery, ...query }; } if (typeof query === 'object' && query && !Array.isArray(query)) { @@ -653,9 +654,9 @@ export class Smithery { } } - // If the API asks us to wait a certain amount of time (and it's a reasonable amount), - // just do what it says, but otherwise calculate a default - if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) { + // If the API asks us to wait a certain amount of time, just do what it + // says, but otherwise calculate a default + if (timeoutMillis === undefined) { const maxRetries = options.maxRetries ?? this.maxRetries; timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries); } diff --git a/src/resources/servers/servers.ts b/src/resources/servers/servers.ts index 2c428f8..609fd90 100644 --- a/src/resources/servers/servers.ts +++ b/src/resources/servers/servers.ts @@ -507,6 +507,12 @@ export interface ServerListParams extends SmitheryPageParams { */ repoOwner?: string; + /** + * Random seed for deterministic pagination. When provided, results use a stable + * sort order that is consistent across pages for the same seed value. + */ + seed?: number; + /** * Maximum number of candidate results to consider from the search index before * pagination. diff --git a/src/resources/tokens.ts b/src/resources/tokens.ts index 1f8642a..1a9362c 100644 --- a/src/resources/tokens.ts +++ b/src/resources/tokens.ts @@ -68,16 +68,10 @@ export interface Constraint { export interface CreateTokenRequest { /** - * Constraint objects to restrict the token. Cannot be combined with profileSlug. - * Each constraint may include a `ttl` field (max 24 hours). Default TTL is 1 hour. - * Maximum is 24 hours. + * Constraint objects to restrict the token. Each constraint may include a `ttl` + * field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours. */ policy?: Array; - - /** - * Profile slug for legacy token minting. Cannot be combined with policy. - */ - profileSlug?: string; } export interface CreateTokenResponse { @@ -94,16 +88,10 @@ export interface CreateTokenResponse { export interface TokenCreateParams { /** - * Constraint objects to restrict the token. Cannot be combined with profileSlug. - * Each constraint may include a `ttl` field (max 24 hours). Default TTL is 1 hour. - * Maximum is 24 hours. + * Constraint objects to restrict the token. Each constraint may include a `ttl` + * field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours. */ policy?: Array; - - /** - * Profile slug for legacy token minting. Cannot be combined with policy. - */ - profileSlug?: string; } export declare namespace Tokens { diff --git a/src/version.ts b/src/version.ts index 3a6141d..7c47df5 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.54.0'; // x-release-please-version +export const VERSION = '0.55.0'; // x-release-please-version diff --git a/tests/api-resources/servers/releases.test.ts b/tests/api-resources/servers/releases.test.ts index d33d39b..aa46739 100644 --- a/tests/api-resources/servers/releases.test.ts +++ b/tests/api-resources/servers/releases.test.ts @@ -48,9 +48,9 @@ describe('resource releases', () => { test.skip('deploy: required and optional params', async () => { const response = await client.servers.releases.deploy('qualifiedName', { payload: 'payload', - bundle: await toFile(Buffer.from('# my file contents'), 'README.md'), - module: await toFile(Buffer.from('# my file contents'), 'README.md'), - sourcemap: await toFile(Buffer.from('# my file contents'), 'README.md'), + bundle: await toFile(Buffer.from('Example data'), 'README.md'), + module: await toFile(Buffer.from('Example data'), 'README.md'), + sourcemap: await toFile(Buffer.from('Example data'), 'README.md'), }); }); diff --git a/tests/api-resources/servers/servers.test.ts b/tests/api-resources/servers/servers.test.ts index 00b3622..eb6776e 100644 --- a/tests/api-resources/servers/servers.test.ts +++ b/tests/api-resources/servers/servers.test.ts @@ -93,6 +93,7 @@ describe('resource servers', () => { remote: '0', repoName: 'repoName', repoOwner: 'repoOwner', + seed: -9007199254740991, topK: 10, verified: '0', }, diff --git a/tests/api-resources/tokens.test.ts b/tests/api-resources/tokens.test.ts index 7af81f3..e8746d5 100644 --- a/tests/api-resources/tokens.test.ts +++ b/tests/api-resources/tokens.test.ts @@ -36,7 +36,6 @@ describe('resource tokens', () => { ttl: '1h', }, ], - profileSlug: 'profileSlug', }, { path: '/_stainless_unknown_path' }, ),