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
253 changes: 165 additions & 88 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
typescript:
version: 1.5.23
version: 1.5.24
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
287 changes: 186 additions & 101 deletions .speakeasy/out.openapi.yaml

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:cd2c022a5dea61849cbd7dd27b0488798d2152c3ec7cb4bf61541e8a5365f43c
sourceBlobDigest: sha256:bd87ab193d6ce663effb05b9b4ac6a3ee42a333d7ef244f93741c411c4ef07ed
sourceRevisionDigest: sha256:b2d2f69115fcb752600b15c9c586fff9b4e8327dbfd18114c0202a093195cf48
sourceBlobDigest: sha256:93060b7230c5d09a311da4ba08ab92b2e20f6208a7f2999167ef20cc70ea8704
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:cd2c022a5dea61849cbd7dd27b0488798d2152c3ec7cb4bf61541e8a5365f43c
sourceBlobDigest: sha256:bd87ab193d6ce663effb05b9b4ac6a3ee42a333d7ef244f93741c411c4ef07ed
sourceRevisionDigest: sha256:b2d2f69115fcb752600b15c9c586fff9b4e8327dbfd18114c0202a093195cf48
sourceBlobDigest: sha256:93060b7230c5d09a311da4ba08ab92b2e20f6208a7f2999167ef20cc70ea8704
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:92c3fb3f91c7b453c375a411df2ae4afc2af79a7835c951c602c5ba1819f9cfe
codeSamplesRevisionDigest: sha256:dd9d4a8e137fd81535d5a12a550fcaeda4dd87145f8d9009f329242e9d48bcff
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.803.2
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4616,4 +4616,14 @@ Based on:
### Generated
- [typescript v1.5.23] .
### Releases
- [NPM v1.5.23] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.23 - .
- [NPM v1.5.23] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.23 - .

## 2026-10-30 00:00:56
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.24] .
### Releases
- [NPM v1.5.24] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.24 - .
29 changes: 29 additions & 0 deletions docs/models/classifierfiltersfilter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "ClassifierFiltersFilter"
---

## Supported Types

### `models.ClassifierScalarFilter`

```typescript
const value: models.ClassifierScalarFilter = {
field: "department",
operator: "eq",
value: "Engineering",
};
```

### `models.ClassifierSetFilter`

```typescript
const value: models.ClassifierSetFilter = {
field: "department",
operator: "in",
value: [
"Engineering",
"Support",
],
};
```

23 changes: 23 additions & 0 deletions docs/models/classifierscalarfilter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "ClassifierScalarFilter"
---

## Example Usage

```typescript
import { ClassifierScalarFilter } from "@openrouter/sdk/models";

let value: ClassifierScalarFilter = {
field: "department",
operator: "eq",
value: "Engineering",
};
```

## Fields

| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `field` | *string* | βœ”οΈ | Classifier dimension name to filter on (snake_case identifier, e.g. "department", "work_type"). | department |
| `operator` | [models.ClassifierScalarFilterOperator](../models/classifierscalarfilteroperator.mdx) | βœ”οΈ | Equality operator taking a scalar filter value. Ordered comparisons are not available because classification values are strings. | eq |
| `value` | *models.ClassifierScalarFilterValue* | βœ”οΈ | Scalar (string or number) filter value. | Engineering |
21 changes: 21 additions & 0 deletions docs/models/classifierscalarfilteroperator.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "ClassifierScalarFilterOperator"
---

Equality operator taking a scalar filter value. Ordered comparisons are not available because classification values are strings.

## Example Usage

```typescript
import { ClassifierScalarFilterOperator } from "@openrouter/sdk/models";

let value: ClassifierScalarFilterOperator = "eq";

// Open enum: unrecognized values are captured as Unrecognized<string>
```

## Values

```typescript
"eq" | "neq" | Unrecognized<string>
```
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
---
title: "ValueClassifierFilters"
title: "ClassifierScalarFilterValue"
---

Scalar (string or number) filter value.


## Supported Types

### `string`

```typescript
const value: string = "<value>";
const value: string = "Engineering";
```

### `number`
Expand Down
26 changes: 26 additions & 0 deletions docs/models/classifiersetfilter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: "ClassifierSetFilter"
---

## Example Usage

```typescript
import { ClassifierSetFilter } from "@openrouter/sdk/models";

let value: ClassifierSetFilter = {
field: "department",
operator: "in",
value: [
"Engineering",
"Support",
],
};
```

## Fields

| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `field` | *string* | βœ”οΈ | Classifier dimension name to filter on (snake_case identifier, e.g. "department", "work_type"). | department |
| `operator` | [models.ClassifierSetFilterOperator](../models/classifiersetfilteroperator.mdx) | βœ”οΈ | Set-membership operator taking an array filter value. | in |
| `value` | *models.ClassifierSetFilterValue*[] | βœ”οΈ | Array of scalar filter values. | [<br/>"Engineering",<br/>"Support"<br/>] |
21 changes: 21 additions & 0 deletions docs/models/classifiersetfilteroperator.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "ClassifierSetFilterOperator"
---

Set-membership operator taking an array filter value.

## Example Usage

```typescript
import { ClassifierSetFilterOperator } from "@openrouter/sdk/models";

let value: ClassifierSetFilterOperator = "in";

// Open enum: unrecognized values are captured as Unrecognized<string>
```

## Values

```typescript
"in" | "not_in" | Unrecognized<string>
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Value2"
title: "ClassifierSetFilterValue"
---

## Supported Types
Expand Down
28 changes: 28 additions & 0 deletions docs/models/filter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: "Filter"
---

## Supported Types

### `models.ScalarFilter`

```typescript
const value: models.ScalarFilter = {
field: "model",
operator: "eq",
value: "<value>",
};
```

### `models.SetFilter`

```typescript
const value: models.SetFilter = {
field: "model",
operator: "in",
value: [
"<value>",
],
};
```

Loading
Loading