Skip to content

Commit aaf73f7

Browse files
Pijukatelclaude
andauthored
chore: sync Rust client with Apify OpenAPI spec v2-2026-07-07T132551Z (#14)
- Bump API_SPEC_VERSION to v2-2026-07-07T132551Z and crate version to 0.4.7. - Correct rustdoc for last_run/LastRunOptions: origin is now a spec-declared query parameter on the last-run endpoints. - Fix monthly_usage cross-reference anchor in README.md. Co-authored-by: Claude <noreply@anthropic.com>
1 parent b69c898 commit aaf73f7

7 files changed

Lines changed: 28 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to the Rust Apify API client are documented here. The format
44
based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres
55
to [Semantic Versioning](https://semver.org/).
66

7+
## [0.4.7] - 2026-07-07
8+
9+
### Changed
10+
- Bumped `API_SPEC_VERSION` to `v2-2026-07-07T132551Z`.
11+
- Bumped crate version to `0.4.7`.
12+
13+
### Documentation
14+
- Corrected the `last_run`/`LastRunOptions` rustdoc comments: `origin` is now a documented query
15+
parameter on the last-run endpoints in the OpenAPI spec (the comments previously said it was
16+
undeclared).
17+
- Fixed the `README.md` `monthly_usage` link to point at the Users section of `docs/misc.md`
18+
instead of the Logs section.
19+
720
## [0.4.6] - 2026-07-07
821

922
### Changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "apify-client"
3-
version = "0.4.6"
3+
version = "0.4.7"
44
authors = ["Apify Technologies <support@apify.com>"]
55
description = "An official, but experimental, AI-generated and AI-maintained Rust client for the Apify API (https://apify.com)."
66
license = "Apache-2.0"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ project needs `serde_json`. Two more dependencies are needed only for specific f
3535
- `chrono = "0.4"` — only if you construct or read timestamp values yourself. Model timestamp
3636
fields (e.g. `Actor::created_at`, `ActorRun::started_at`) are typed as `chrono::DateTime<Utc>`
3737
and `chrono` is **not** re-exported, so snippets that call `chrono::Utc::now()` (e.g. the
38-
`monthly_usage` example in [`docs/misc.md`](docs/misc.md#logs--clientlogbuild_or_run_id) and the
38+
`monthly_usage` example in [`docs/misc.md`](docs/misc.md#users--clientme--clientuserid) and the
3939
account example) need it as a direct dependency.
4040

4141
By default the client uses the system TLS (`native-tls`). To use rustls instead:

src/clients/actor.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,11 @@ impl ActorClient {
256256
/// Returns a client for the last run of this Actor, applying the given [`LastRunOptions`]
257257
/// (e.g. [`LastRunOptions::status`] and/or [`LastRunOptions::origin`]).
258258
///
259-
/// `status` filters by run status (e.g. `"SUCCEEDED"`, `"FAILED"`, `"RUNNING"`) and is the
260-
/// spec's documented filter on `GET /v2/actors/{actorId}/runs/last`. `origin` filters by how
261-
/// the run was started; accepted values are the platform's run origins (e.g. `"DEVELOPMENT"`,
262-
/// `"WEB"`, `"API"`, `"SCHEDULER"`). `origin` is not declared by the OpenAPI spec and is sent
263-
/// only for parity with the reference client's `lastRun({ status, origin })`. Both are sent as
264-
/// query parameters; leave a field as `None` to omit it.
259+
/// `status` filters by run status (e.g. `"SUCCEEDED"`, `"FAILED"`, `"RUNNING"`); `origin` filters
260+
/// by how the run was started, with accepted values being the platform's run origins (e.g.
261+
/// `"DEVELOPMENT"`, `"WEB"`, `"API"`, `"SCHEDULER"`). Both are documented optional query
262+
/// parameters on `GET /v2/actors/{actorId}/runs/last` and match the reference client's
263+
/// `lastRun({ status, origin })`; leave a field as `None` to omit it.
265264
pub fn last_run_with_options(&self, options: LastRunOptions) -> RunClient {
266265
let mut client = RunClient::new(
267266
self.root.clone(),

src/clients/run.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ const CHARGE_IDEMPOTENCY_HEADER: &str = "idempotency-key";
2424
///
2525
/// Both are sent as query parameters to the last-run endpoints
2626
/// (`GET /v2/actors/{actorId}/runs/last`, `GET /v2/actor-tasks/{actorTaskId}/runs/last`).
27-
/// `status` is the spec's documented optional filter on those endpoints; `origin` is not declared
28-
/// by the OpenAPI spec and is exposed only for parity with the reference client's
29-
/// `lastRun({ status, origin })`.
27+
/// `status` and `origin` are both documented optional filters on those endpoints and match the
28+
/// reference client's `lastRun({ status, origin })`.
3029
#[derive(Debug, Default, Clone)]
3130
pub struct LastRunOptions {
3231
/// Filter by run status (e.g. `"SUCCEEDED"`, `"FAILED"`, `"RUNNING"`). `None` leaves it

src/clients/task.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,11 @@ impl TaskClient {
126126
/// Returns a client for the last run of this task, applying the given [`LastRunOptions`]
127127
/// (e.g. [`LastRunOptions::status`] and/or [`LastRunOptions::origin`]).
128128
///
129-
/// `status` filters by run status (e.g. `"SUCCEEDED"`, `"FAILED"`, `"RUNNING"`) and is the
130-
/// spec's documented filter on `GET /v2/actor-tasks/{actorTaskId}/runs/last`. `origin` filters
131-
/// by how the run was started; accepted values are the platform's run origins (e.g.
132-
/// `"DEVELOPMENT"`, `"WEB"`, `"API"`, `"SCHEDULER"`). `origin` is not declared by the OpenAPI
133-
/// spec and is sent only for parity with the reference client's `lastRun({ status, origin })`.
134-
/// Both are sent as query parameters; leave a field as `None` to omit it.
129+
/// `status` filters by run status (e.g. `"SUCCEEDED"`, `"FAILED"`, `"RUNNING"`); `origin` filters
130+
/// by how the run was started, with accepted values being the platform's run origins (e.g.
131+
/// `"DEVELOPMENT"`, `"WEB"`, `"API"`, `"SCHEDULER"`). Both are documented optional query
132+
/// parameters on `GET /v2/actor-tasks/{actorTaskId}/runs/last` and match the reference client's
133+
/// `lastRun({ status, origin })`; leave a field as `None` to omit it.
135134
pub fn last_run_with_options(&self, options: LastRunOptions) -> RunClient {
136135
let mut client = RunClient::new(
137136
self.root.clone(),

src/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ pub const CLIENT_VERSION: &str = env!("CARGO_PKG_VERSION");
1010
/// and verified against.
1111
///
1212
/// This corresponds to the `info.version` field of the Apify OpenAPI document.
13-
pub const API_SPEC_VERSION: &str = "v2-2026-07-02T131926Z";
13+
pub const API_SPEC_VERSION: &str = "v2-2026-07-07T132551Z";

0 commit comments

Comments
 (0)