diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8d7e5f1..b870c5e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.0.1" + ".": "1.0.2" } diff --git a/.stats.yml b/.stats.yml index 9573a11..7dd01bc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e2fa1d..ac78b9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index fccdef5..988dbb5 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/client.ts b/src/client.ts index 16476f2..ac39f9c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -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); } diff --git a/src/resources/agent/agent.ts b/src/resources/agent/agent.ts index 938ea67..750c010 100644 --- a/src/resources/agent/agent.ts +++ b/src/resources/agent/agent.ts @@ -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; diff --git a/src/resources/agent/runs.ts b/src/resources/agent/runs.ts index 9ad1c5a..940c3a9 100644 --- a/src/resources/agent/runs.ts +++ b/src/resources/agent/runs.ts @@ -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 @@ -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 */ diff --git a/src/version.ts b/src/version.ts index 8cd23e5..0ac78d9 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.0.1'; // x-release-please-version +export const VERSION = '1.0.2'; // x-release-please-version diff --git a/tests/api-resources/agent/runs.test.ts b/tests/api-resources/agent/runs.test.ts index 153f8d5..e94ce3f 100644 --- a/tests/api-resources/agent/runs.test.ts +++ b/tests/api-resources/agent/runs.test.ts @@ -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',