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
170 changes: 144 additions & 26 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 @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
typescript:
version: 1.5.16
version: 1.5.17
acceptHeaderEnum: false
additionalDependencies:
dependencies:
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.802.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:9dd586b58a0d35fb193d78c0d6dc359caa8c1d3284dd422722bedd85d671c8ef
sourceBlobDigest: sha256:70440d791084c5bf485f5df52c470ded9be727e9b25215f72838057f81a50489
sourceRevisionDigest: sha256:c9f8cfee59c2812dfb1410e788d54826c183e612a194fc74db585a862938382a
sourceBlobDigest: sha256:e2aca9292bb619dfc26d52e4108bb375c1131457038b20f319ad8e4890286bc7
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:9dd586b58a0d35fb193d78c0d6dc359caa8c1d3284dd422722bedd85d671c8ef
sourceBlobDigest: sha256:70440d791084c5bf485f5df52c470ded9be727e9b25215f72838057f81a50489
sourceRevisionDigest: sha256:c9f8cfee59c2812dfb1410e788d54826c183e612a194fc74db585a862938382a
sourceBlobDigest: sha256:e2aca9292bb619dfc26d52e4108bb375c1131457038b20f319ad8e4890286bc7
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:8ea9c990cccbb79fa416ecbd59e24d9d32c953e916e3711da0b86945d33036dd
codeSamplesRevisionDigest: sha256:8f2f319094eed0bacdb3c8e7f4c7e16e43935343b9a6fd039e285e36ea06653f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.802.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4546,4 +4546,14 @@ Based on:
### Generated
- [typescript v1.5.16] .
### Releases
- [NPM v1.5.16] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.16 - .
- [NPM v1.5.16] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.16 - .

## 2026-10-28 13:43:50
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.802.0 (2.948.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.17] .
### Releases
- [NPM v1.5.17] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.17 - .
30 changes: 30 additions & 0 deletions docs/models/account.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: "Account"
---

## Example Usage

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

let value: Account = {
delegatedCapabilities: [
"<value 1>",
"<value 2>",
],
email: "Carolanne38@gmail.com",
holdsGrant: true,
isDelegatedToIntern: false,
scope: "intern",
};
```

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| `delegatedCapabilities` | *string*[] | βœ”οΈ | N/A |
| `email` | *string* | βœ”οΈ | N/A |
| `holdsGrant` | *boolean* | βœ”οΈ | N/A |
| `isDelegatedToIntern` | *boolean* | βœ”οΈ | N/A |
| `scope` | [models.AccountScope](../models/accountscope.mdx) | βœ”οΈ | `workspace` applies to every intern of the workspace; `intern` to this intern alone. |
21 changes: 21 additions & 0 deletions docs/models/accountscope.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "AccountScope"
---

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

## Example Usage

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

let value: AccountScope = "intern";

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

## Values

```typescript
"workspace" | "intern" | Unrecognized<string>
```
19 changes: 19 additions & 0 deletions docs/models/accounttype.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "AccountType"
---

## Example Usage

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

let value: AccountType = "user";

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

## Values

```typescript
"organization" | "user" | Unrecognized<string>
```
42 changes: 42 additions & 0 deletions docs/models/app.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
title: "App"
---

## Example Usage

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

let value: App = {
appId: "<id>",
appSlug: "<value>",
installations: [
{
account: "90395233",
accountType: "user",
coverage: {
checkedAt: new Date("2024-07-28T01:53:50.306Z"),
repositoryCount: 283955,
selection: "all",
},
credentialId: "<id>",
holdsToken: false,
isEnabled: false,
isOffForIntern: true,
shadowedBy: "token",
},
],
memberLinks: [],
scope: "workspace",
};
```

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `appId` | *string* | βœ”οΈ | N/A |
| `appSlug` | *string* | βœ”οΈ | N/A |
| `installations` | [models.Installation](../models/installation.mdx)[] | βœ”οΈ | N/A |
| `memberLinks` | [models.AppMemberLink](../models/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` | [models.AppScope](../models/appscope.mdx) | βœ”οΈ | `workspace` applies to every intern of the workspace; `intern` to this intern alone. |
23 changes: 23 additions & 0 deletions docs/models/appmemberlink.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "AppMemberLink"
---

## Example Usage

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

let value: AppMemberLink = {
holdsToken: true,
login: "Trevion57",
via: "token",
};
```

## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| `holdsToken` | *boolean* | βœ”οΈ | N/A |
| `login` | *string* | βœ”οΈ | N/A |
| `via` | [models.Via](../models/via.mdx) | βœ”οΈ | How the vault picks this link for the App, by the same selection egress uses. |
21 changes: 21 additions & 0 deletions docs/models/appscope.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "AppScope"
---

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

## Example Usage

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

let value: AppScope = "intern";

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

## Values

```typescript
"workspace" | "intern" | Unrecognized<string>
```
25 changes: 25 additions & 0 deletions docs/models/coverage.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: "Coverage"
---

What GitHub says the installation covers; null until read.

## Example Usage

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

let value: Coverage = {
checkedAt: new Date("2025-09-29T08:31:35.555Z"),
repositoryCount: 719072,
selection: "all",
};
```

## Fields

| Field | Type | Required | Description |
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| `checkedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | βœ”οΈ | When GitHub answered, through the installation token the vault holds. |
| `repositoryCount` | *number* | βœ”οΈ | Repositories the installation covers; null when GitHub did not count them. |
| `selection` | [models.Selection](../models/selection.mdx) | βœ”οΈ | N/A |
26 changes: 26 additions & 0 deletions docs/models/customorigin.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: "CustomOrigin"
---

## Example Usage

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

let value: CustomOrigin = {
host: "unhappy-doing.org",
pathPrefix: "<value>",
status: {
failure: "<value>",
state: "no_credential",
},
};
```

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `host` | *string* | βœ”οΈ | N/A |
| `pathPrefix` | *string* | βœ”οΈ | N/A |
| `status` | [models.CustomOriginStatus](../models/customoriginstatus.mdx) | βœ”οΈ | The vault injection decision for this destination, at `read_at`. |
19 changes: 19 additions & 0 deletions docs/models/customoriginstate.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "CustomOriginState"
---

## Example Usage

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

let value: CustomOriginState = "no_credential";

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

## Values

```typescript
"usable" | "no_credential" | "failing" | Unrecognized<string>
```
23 changes: 23 additions & 0 deletions docs/models/customoriginstatus.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "CustomOriginStatus"
---

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

## Example Usage

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

let value: CustomOriginStatus = {
failure: "<value>",
state: "no_credential",
};
```

## Fields

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

## Example Usage

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

let value: Github = {
apps: [
{
appId: "<id>",
appSlug: "<value>",
installations: [],
memberLinks: [],
scope: "workspace",
},
],
tokens: [
{
holdsToken: false,
login: "Concepcion.Brekke95",
owner: "<value>",
repositoryCount: 274676,
scope: "intern",
},
],
};
```

## Fields

| Field | Type | Required | Description |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| `apps` | [models.App](../models/app.mdx)[] | βœ”οΈ | N/A |
| `tokens` | [models.Token](../models/token.mdx)[] | βœ”οΈ | N/A |
Loading
Loading