Skip to content
Merged
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
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.54.0"
".": "0.55.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: 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
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -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",
Expand Down
45 changes: 10 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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);
}
Expand Down
6 changes: 6 additions & 0 deletions src/resources/servers/servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
20 changes: 4 additions & 16 deletions src/resources/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Constraint>;

/**
* Profile slug for legacy token minting. Cannot be combined with policy.
*/
profileSlug?: string;
}

export interface CreateTokenResponse {
Expand All @@ -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<Constraint>;

/**
* Profile slug for legacy token minting. Cannot be combined with policy.
*/
profileSlug?: string;
}

export declare namespace Tokens {
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 = '0.54.0'; // x-release-please-version
export const VERSION = '0.55.0'; // x-release-please-version
6 changes: 3 additions & 3 deletions tests/api-resources/servers/releases.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
});
});

Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/servers/servers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ describe('resource servers', () => {
remote: '0',
repoName: 'repoName',
repoOwner: 'repoOwner',
seed: -9007199254740991,
topK: 10,
verified: '0',
},
Expand Down
1 change: 0 additions & 1 deletion tests/api-resources/tokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ describe('resource tokens', () => {
ttl: '1h',
},
],
profileSlug: 'profileSlug',
},
{ path: '/_stainless_unknown_path' },
),
Expand Down
Loading