Sync Rust client with Apify OpenAPI spec v2-2026-08-05T133145Z; add task publish/unpublish - #20
Merged
Merged
Conversation
… add task publish/unpublish - Bump API_SPEC_VERSION to v2-2026-08-05T133145Z (spec delta is relaxed field nullability and documented error responses only; no code change needed beyond the version constant). - Add TaskClient::publish()/unpublish(), matching the reference client's isPublic convenience wrappers around update(). - Remove the duplicated AI-disclaimer paragraph from src/lib.rs and docs/README.md; it now appears once, in the top-level README.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spec sync
Bumps
API_SPEC_VERSIONtov2-2026-08-05T133145Z. The spec delta since the previous sync(
v2-2026-07-13T092445Z) is relaxed field nullability (TaggedBuildInfo.buildNumber,Webhook.requestUrl,WebhookDispatchWebhookSummary.requestUrl) and additional documentederror responses (
402/404/408/409) on several endpoints. No code change is needed beyondthe version constant: the affected fields are already modelled as
Option<...>, and errorresponses are handled generically via a plain HTTP status code.
Reference client parity
Adds
TaskClient::publish()/TaskClient::unpublish(), matching new convenience methods inthe reference JavaScript client that set
isPublicthrough the existing update endpoint.Documentation cleanup
Removes the duplicated "official, but experimental, AI-generated and AI-maintained" notice
from the crate-level rustdoc and
docs/README.md; it now appears once, in the top-levelREADME.md, per the updated client requirements.Changes
src/clients/task.rs:TaskClient::publish()/TaskClient::unpublish().src/version.rs:API_SPEC_VERSIONbump.Cargo.toml:0.6.1->0.7.0(minor: additive public methods only).docs/tasks.md: documents the two new methods.tests/task.rs: newtask_publish_unpublishintegration test.src/lib.rs,docs/README.md: AI-disclaimer de-duplication.CHANGELOG.md: new0.7.0entry.