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
162 changes: 140 additions & 22 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 @@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.89
version: 1.3.90
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
419 changes: 418 additions & 1 deletion .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.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:fcdad7537942c9b18a06e7fd79fcae3afdc87311808c8e2689f8d5abc8c72f64
sourceBlobDigest: sha256:8115e1225fb743c7b16594d94213c702f77758d0740638c4c1a54e1754a7b1b7
sourceRevisionDigest: sha256:9844c61d191291202669bb9d9288cc13f4a77a6ce080888aa86cd908bc301053
sourceBlobDigest: sha256:434780bd361c660f8e78f66452694a8c7fec7fad1eed9ce4ced0d038d414bc90
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:fcdad7537942c9b18a06e7fd79fcae3afdc87311808c8e2689f8d5abc8c72f64
sourceBlobDigest: sha256:8115e1225fb743c7b16594d94213c702f77758d0740638c4c1a54e1754a7b1b7
sourceRevisionDigest: sha256:9844c61d191291202669bb9d9288cc13f4a77a6ce080888aa86cd908bc301053
sourceBlobDigest: sha256:434780bd361c660f8e78f66452694a8c7fec7fad1eed9ce4ced0d038d414bc90
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:2cdb1e5afe2966df04d75d69d2ce08a64a999b44d13c671e3cedbe4d0231f0e3
codeSamplesRevisionDigest: sha256:fd8c7ed2a67168204363108da8fe573f37e9f255b489d9301e511c70e84ea54d
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3659,4 +3659,14 @@ Based on:
### Generated
- [python v1.3.89] .
### Releases
- [PyPI v1.3.89] https://pypi.org/project/openrouter/1.3.89 - .
- [PyPI v1.3.89] https://pypi.org/project/openrouter/1.3.89 - .

## 2026-10-28 13:43:22
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.90] .
### Releases
- [PyPI v1.3.90] https://pypi.org/project/openrouter/1.3.90 - .
13 changes: 13 additions & 0 deletions docs/components/account.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Account"
---

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| `delegated_capabilities` | List[*str*] | βœ… | N/A |
| `email` | *str* | βœ… | N/A |
| `holds_grant` | *bool* | βœ… | N/A |
| `is_delegated_to_intern` | *bool* | βœ… | N/A |
| `scope` | [components.AccountScope](../components/accountscope.mdx) | βœ… | `workspace` applies to every intern of the workspace; `intern` to this intern alone. |
22 changes: 22 additions & 0 deletions docs/components/accountscope.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: "AccountScope"
---

`workspace` applies to every intern of the workspace; `intern` to this intern alone.

## Example Usage

```python
from openrouter.components import AccountScope

# Open enum: unrecognized values are captured as UnrecognizedStr
value: AccountScope = "workspace"
```


## Values

This is an open enum. Unrecognized values will not fail type checks.

- `"workspace"`
- `"intern"`
20 changes: 20 additions & 0 deletions docs/components/accounttype.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: "AccountType"
---

## Example Usage

```python
from openrouter.components import AccountType

# Open enum: unrecognized values are captured as UnrecognizedStr
value: AccountType = "organization"
```


## Values

This is an open enum. Unrecognized values will not fail type checks.

- `"organization"`
- `"user"`
13 changes: 13 additions & 0 deletions docs/components/app.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "App"
---

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `app_id` | *Nullable[str]* | βœ… | N/A |
| `app_slug` | *Nullable[str]* | βœ… | N/A |
| `installations` | List[[components.Installation](../components/installation.mdx)] | βœ… | N/A |
| `member_links` | List[[components.AppMemberLink](../components/appmemberlink.mdx)] | βœ… | Members whose own account the vault would act as on this App's accounts; GitHub still limits a member's token to what that member can reach. |
| `scope` | [components.AppScope](../components/appscope.mdx) | βœ… | `workspace` applies to every intern of the workspace; `intern` to this intern alone. |
11 changes: 11 additions & 0 deletions docs/components/appmemberlink.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "AppMemberLink"
---

## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| `holds_token` | *bool* | βœ… | N/A |
| `login` | *str* | βœ… | N/A |
| `via` | [components.Via](../components/via.mdx) | βœ… | How the vault picks this link for the App, by the same selection egress uses. |
22 changes: 22 additions & 0 deletions docs/components/appscope.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: "AppScope"
---

`workspace` applies to every intern of the workspace; `intern` to this intern alone.

## Example Usage

```python
from openrouter.components import AppScope

# Open enum: unrecognized values are captured as UnrecognizedStr
value: AppScope = "workspace"
```


## Values

This is an open enum. Unrecognized values will not fail type checks.

- `"workspace"`
- `"intern"`
14 changes: 14 additions & 0 deletions docs/components/coverage.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "Coverage"
---

What GitHub says the installation covers; null until read.


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `checked_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | βœ… | When GitHub answered, through the installation token the vault holds. |
| `repository_count` | *Nullable[int]* | βœ… | Repositories the installation covers; null when GitHub did not count them. |
| `selection` | [components.Selection](../components/selection.mdx) | βœ… | N/A |
11 changes: 11 additions & 0 deletions docs/components/customorigin.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "CustomOrigin"
---

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `host` | *str* | βœ… | N/A |
| `path_prefix` | *Nullable[str]* | βœ… | N/A |
| `status` | [components.CustomOriginStatus](../components/customoriginstatus.mdx) | βœ… | The vault injection decision for this destination, at `read_at`. |
21 changes: 21 additions & 0 deletions docs/components/customoriginstate.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "CustomOriginState"
---

## Example Usage

```python
from openrouter.components import CustomOriginState

# Open enum: unrecognized values are captured as UnrecognizedStr
value: CustomOriginState = "usable"
```


## Values

This is an open enum. Unrecognized values will not fail type checks.

- `"usable"`
- `"no_credential"`
- `"failing"`
13 changes: 13 additions & 0 deletions docs/components/customoriginstatus.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "CustomOriginStatus"
---

The vault injection decision for this destination, at `read_at`.


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `failure` | *Nullable[str]* | βœ… | The credential failure code when `state` is `failing`; null otherwise. |
| `state` | [components.CustomOriginState](../components/customoriginstate.mdx) | βœ… | N/A |
10 changes: 10 additions & 0 deletions docs/components/github.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "Github"
---

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
| `apps` | List[[components.App](../components/app.mdx)] | βœ… | N/A |
| `tokens` | List[[components.Token](../components/token.mdx)] | βœ… | N/A |
9 changes: 9 additions & 0 deletions docs/components/google.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Google"
---

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `accounts` | List[[components.Account](../components/account.mdx)] | βœ… | N/A |
11 changes: 11 additions & 0 deletions docs/components/hostrule.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "HostRule"
---

## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `holds_secret` | *bool* | βœ… | N/A |
| `host` | *str* | βœ… | N/A |
| `secret_name` | *str* | βœ… | N/A |
Loading