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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.0.1"
".": "1.0.2"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 14
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-39e18bbb8b0af73eca7a880f56afbdecd69e3e5bab82a04c4d6429c32d7e6727.yml
openapi_spec_hash: 7a0de988bb37416d6e80f4a4bbe9d0d0
config_hash: 38ab203e1bd97a9bb22bbf744bcb5808
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-6c175d34cab49d79dbb24289ae516867404c42f3097264bbae171aced72ecc49.yml
openapi_spec_hash: 5abb55a1fc2836207bc88d4815f47f24
config_hash: a4b1ffc5b2e162efb3d557c7461153c1
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 1.0.2 (2026-03-06)

Full Changelog: [v1.0.1...v1.0.2](https://github.com/warpdotdev/oz-sdk-typescript/compare/v1.0.1...v1.0.2)

### Features

* **api:** fix ScheduledAgentHistoryItem name ([485083d](https://github.com/warpdotdev/oz-sdk-typescript/commit/485083de645ff844e55bc1d04fbd51d3c5875947))
* **api:** fix schema version issues ([bda484e](https://github.com/warpdotdev/oz-sdk-typescript/commit/bda484e2cf52c1233cc3d31d574f1356a0dfe159))
* **api:** sorting ([d584cc6](https://github.com/warpdotdev/oz-sdk-typescript/commit/d584cc67d3739aa2b690732e4e936fe5d3f22b41))


### Bug Fixes

* fix request delays for retrying to be more respectful of high requested delays ([21ffbe5](https://github.com/warpdotdev/oz-sdk-typescript/commit/21ffbe5a1701d518ab01fd6331e3388243926472))

## 1.0.1 (2026-03-04)

Full Changelog: [v1.0.0-alpha.12...v1.0.1](https://github.com/warpdotdev/oz-sdk-typescript/compare/v1.0.0-alpha.12...v1.0.1)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oz-agent-sdk",
"version": "1.0.1",
"version": "1.0.2",
"description": "The official TypeScript library for the Oz API API",
"author": "Oz API <>",
"types": "dist/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,9 @@ export class OzAPI {
}
}

// 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
4 changes: 2 additions & 2 deletions src/resources/agent/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ export interface Error {

/**
* A URI reference that identifies the problem type (RFC 7807). Format:
* `https://docs.warp.dev/agent-platform/troubleshooting/errors/{error_code}` See
* PlatformErrorCode for the list of possible error codes.
* `https://docs.warp.dev/reference/api-and-sdk/troubleshooting/errors/{error_code}`
* See PlatformErrorCode for the list of possible error codes.
*/
type: string;

Expand Down
19 changes: 17 additions & 2 deletions src/resources/agent/runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export class Runs extends APIResource {
}

/**
* Retrieve a paginated list of agent runs with optional filtering. Results are
* ordered by creation time (newest first).
* Retrieve a paginated list of agent runs with optional filtering. Results default
* to `sort_by=updated_at` and `sort_order=desc`.
*
* @example
* ```ts
Expand Down Expand Up @@ -534,6 +534,21 @@ export interface RunListParams {
*/
skill_spec?: string;

/**
* Sort field for results.
*
* - `updated_at`: Sort by last update timestamp (default)
* - `created_at`: Sort by creation timestamp
* - `title`: Sort alphabetically by run title
* - `agent`: Sort alphabetically by skill. Runs without a skill are grouped last.
*/
sort_by?: 'updated_at' | 'created_at' | 'title' | 'agent';

/**
* Sort direction
*/
sort_order?: 'asc' | 'desc';

/**
* Filter by run source type
*/
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 = '1.0.1'; // x-release-please-version
export const VERSION = '1.0.2'; // x-release-please-version
2 changes: 2 additions & 0 deletions tests/api-resources/agent/runs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ describe('resource runs', () => {
schedule_id: 'schedule_id',
skill: 'skill',
skill_spec: 'skill_spec',
sort_by: 'updated_at',
sort_order: 'asc',
source: 'LINEAR',
state: ['QUEUED'],
updated_after: '2019-12-27T18:11:19.117Z',
Expand Down