Skip to content

Commit 984d514

Browse files
release: 1.22.1 (#794)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent b286aab commit 984d514

13 files changed

Lines changed: 213 additions & 9 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.22.0"
2+
".": "1.22.1"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 119
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-7235763cbdfd60834a897f356688d758b598a1dd723623330ea398dea2abea68.yml
1+
configured_endpoints: 120
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-96b0ac0a148db6fde2e8363ea2dcfaa63f2dc23cf35c30c5fcfffbefc222e5d1.yml
33
openapi_spec_hash: 01b9dbab4b732e4b83952debd108e404
4-
config_hash: 444e00951b440bf92e7548b2807584a4
4+
config_hash: ed1fdd7c9f0a25647e16b602bad4ff2e

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.22.1 (2026-06-01)
4+
5+
Full Changelog: [v1.22.0...v1.22.1](https://github.com/runloopai/api-client-ts/compare/v1.22.0...v1.22.1)
6+
7+
### Build System
8+
9+
* **stainless:** map /v1/accounts/me to accounts.me in the SDK ([#9569](https://github.com/runloopai/api-client-ts/issues/9569)) ([1571dff](https://github.com/runloopai/api-client-ts/commit/1571dff77dca609acf7fbf7d37891ea2990e5fe1))
10+
311
## 1.22.0 (2026-05-27)
412

513
Full Changelog: [v1.21.0...v1.22.0](https://github.com/runloopai/api-client-ts/compare/v1.21.0...v1.22.0)

api.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ Types:
1515
- <code><a href="./src/resources/shared.ts">ResumeTriggers</a></code>
1616
- <code><a href="./src/resources/shared.ts">RunProfile</a></code>
1717

18+
# Accounts
19+
20+
Types:
21+
22+
- <code><a href="./src/resources/accounts.ts">AccountView</a></code>
23+
24+
Methods:
25+
26+
- <code title="get /v1/accounts/me">client.accounts.<a href="./src/resources/accounts.ts">me</a>() -> AccountView</code>
27+
1828
# Benchmarks
1929

2030
Types:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@runloop/api-client",
3-
"version": "1.22.0",
3+
"version": "1.22.1",
44
"description": "The official TypeScript library for the Runloop API",
55
"author": "Runloop <support@runloop.ai>",
66
"types": "dist/sdk.d.ts",

packages/mcp-server/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dxt_version": "0.2",
33
"name": "@runloop/api-client-mcp",
4-
"version": "1.22.0",
4+
"version": "1.22.1",
55
"description": "The official MCP Server for the Runloop API",
66
"author": {
77
"name": "Runloop",

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@runloop/api-client-mcp",
3-
"version": "1.22.0",
3+
"version": "1.22.1",
44
"description": "The official MCP Server for the Runloop API",
55
"author": "Runloop <support@runloop.ai>",
66
"types": "dist/index.d.ts",

packages/mcp-server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const newMcpServer = async (stainlessApiKey: string | undefined) =>
1616
new McpServer(
1717
{
1818
name: 'runloop_api_client_api',
19-
version: '1.22.0',
19+
version: '1.22.1',
2020
},
2121
{
2222
instructions: await getInstructions(stainlessApiKey),

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import {
3636
} from './pagination';
3737
import * as Uploads from './uploads';
3838
import * as API from './resources/index';
39+
import { AccountView, Accounts } from './resources/accounts';
3940
import {
4041
AgentCreateParameters,
4142
AgentCreateParams,
@@ -387,6 +388,7 @@ export class Runloop extends Core.APIClient {
387388
this.bearerToken = bearerToken;
388389
}
389390

391+
accounts: API.Accounts = new API.Accounts(this);
390392
benchmarks: API.Benchmarks = new API.Benchmarks(this);
391393
benchmarkRuns: API.BenchmarkRuns = new API.BenchmarkRuns(this);
392394
benchmarkJobs: API.BenchmarkJobs = new API.BenchmarkJobs(this);
@@ -447,6 +449,7 @@ export class Runloop extends Core.APIClient {
447449
static fileFromPath = Uploads.fileFromPath;
448450
}
449451

452+
Runloop.Accounts = Accounts;
450453
Runloop.Benchmarks = Benchmarks;
451454
Runloop.BenchmarkViewsBenchmarksCursorIDPage = BenchmarkViewsBenchmarksCursorIDPage;
452455
Runloop.BenchmarkRuns = BenchmarkRuns;
@@ -563,6 +566,8 @@ export declare namespace Runloop {
563566
type McpConfigsCursorIDPageResponse as McpConfigsCursorIDPageResponse,
564567
};
565568

569+
export { Accounts as Accounts, type AccountView as AccountView };
570+
566571
export {
567572
Benchmarks as Benchmarks,
568573
type BenchmarkCreateParameters as BenchmarkCreateParameters,

src/resources/accounts.ts

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
import { APIResource } from '../resource';
4+
import * as Core from '../core';
5+
6+
export class Accounts extends APIResource {
7+
/**
8+
* Returns the account the API key or session is authenticated against, including
9+
* id, name, tier, and billing summary.
10+
*/
11+
me(options?: Core.RequestOptions): Core.APIPromise<AccountView> {
12+
return this._client.get('/v1/accounts/me', options);
13+
}
14+
}
15+
16+
/**
17+
* Account information.
18+
*/
19+
export interface AccountView {
20+
/**
21+
* The account ID.
22+
*/
23+
id: string;
24+
25+
/**
26+
* The account status.
27+
*/
28+
account_status:
29+
| 'ACCOUNT_STATUS_INVALID'
30+
| 'ACCOUNT_STATUS_ONBOARDING'
31+
| 'ACCOUNT_STATUS_ENABLED'
32+
| 'ACCOUNT_STATUS_DISABLED_BY_ADMIN'
33+
| 'ACCOUNT_STATUS_DISABLED_QUOTA_REACHED'
34+
| 'ACCOUNT_STATUS_TRIAL_CANCELLED'
35+
| 'ACCOUNT_STATUS_STRIPE_PENDING_RESOURCES'
36+
| 'UNRECOGNIZED';
37+
38+
/**
39+
* The account billing information.
40+
*/
41+
billing: AccountView.Billing;
42+
43+
/**
44+
* The account creation timestamp.
45+
*/
46+
created_at: string;
47+
48+
/**
49+
* The account name.
50+
*/
51+
name: string;
52+
53+
/**
54+
* The account tier.
55+
*/
56+
tier:
57+
| 'ACCOUNT_TIER_INVALID'
58+
| 'ACCOUNT_TIER_BASIC'
59+
| 'ACCOUNT_TIER_PRO'
60+
| 'ACCOUNT_TIER_ENTERPRISE'
61+
| 'ACCOUNT_TIER_TRIAL'
62+
| 'UNRECOGNIZED';
63+
64+
/**
65+
* Deprecated: use billing.account_billing_type.
66+
*/
67+
account_billing_type?: 'STRIPE' | 'AWS_MARKETPLACE' | 'STRIPE_PROJECTS' | 'UNRECOGNIZED';
68+
69+
/**
70+
* Deprecated: use billing.stripe.active_subscription.
71+
*/
72+
active_subscription?: string | null;
73+
74+
/**
75+
* Deprecated: use billing.aws.customer_identifier.
76+
*/
77+
external_billing_account_id?: string | null;
78+
79+
/**
80+
* Deprecated: use billing.stripe.customer_id.
81+
*/
82+
stripe_customer_id?: string | null;
83+
}
84+
85+
export namespace AccountView {
86+
/**
87+
* The account billing information.
88+
*/
89+
export interface Billing {
90+
/**
91+
* The account billing type.
92+
*/
93+
account_billing_type: 'STRIPE' | 'AWS_MARKETPLACE' | 'STRIPE_PROJECTS' | 'UNRECOGNIZED';
94+
95+
/**
96+
* AWS Marketplace billing information.
97+
*/
98+
aws?: Billing.Aws | null;
99+
100+
/**
101+
* Stripe billing information.
102+
*/
103+
stripe?: Billing.Stripe | null;
104+
105+
/**
106+
* Deprecated: use stripe.customer_id.
107+
*/
108+
stripe_customer_id?: string | null;
109+
}
110+
111+
export namespace Billing {
112+
/**
113+
* AWS Marketplace billing information.
114+
*/
115+
export interface Aws {
116+
/**
117+
* The AWS account ID used for Marketplace billing (12-digit).
118+
*/
119+
customer_identifier?: string | null;
120+
121+
/**
122+
* The AWS Marketplace license ARN.
123+
*/
124+
license_arn?: string | null;
125+
126+
/**
127+
* The AWS Marketplace subscription status.
128+
*/
129+
subscription_status?: string | null;
130+
}
131+
132+
/**
133+
* Stripe billing information.
134+
*/
135+
export interface Stripe {
136+
/**
137+
* The active Stripe subscription ID.
138+
*/
139+
active_subscription?: string | null;
140+
141+
/**
142+
* The Stripe customer ID.
143+
*/
144+
customer_id?: string | null;
145+
}
146+
}
147+
}
148+
149+
export declare namespace Accounts {
150+
export { type AccountView as AccountView };
151+
}

0 commit comments

Comments
 (0)