feat: update Go client for Apify OpenAPI spec v2-2026-06-25T142310Z - #7
Merged
Conversation
Update to spec v2-2026-06-25T142310Z. Add LastRunWithOptions on ActorClient
and TaskClient accepting a LastRunOptions{Status, Origin} for parity with the
apify-client-js reference (lastRun({status, origin})). This is additive: the
existing LastRun(status string) accessors are unchanged and delegate to the
new methods, so there is no breaking change. Clean up stale isAtHome comments
that quoted the old capitalized requirement wording. Bump CLIENT_VERSION to
0.4.0.
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.
Summary
Updates the Apify Go client to OpenAPI specification
v2-2026-06-25T142310Z(fromv2-2026-06-24T105326Z) and brings it into full compliance with the latest client requirements. All changes are additive — there are no breaking changes to the pre-existing public interface.The in-scope typed API surface is unchanged across the spec bump itself; the substantive change is a JS-parity addition surfaced during review.
Changes
originfilter on last-run (additive) — kept the existingLastRun(status string)signature unchanged and addedLastRunWithOptions(LastRunOptions{ Status, Origin })on bothActorClientandTaskClient, following the codebase's existing*WithOptionsconvention. This matches the JS reference'slastRun({ status, origin })runtime contract (originis a JS-reference convenience param; the spec declares onlystatus/waitForFinishon the last-run endpoints). This shape is consistent with the Rust sibling'slast_run_with_options.rawlog query parameter — verified already exposed viaLogOptions.Rawon bothGetandStream; no change needed.isAtHomecomment that quoted outdated (capitalized) requirement wording. Behaviour is unchanged: lowercasetrue/false, keyed solely onAPIFY_IS_AT_HOME.LastRunOptionsandActorEnvVarfield tables, runnableLastRunWithOptionssnippets, and the full origin enum.API_SPEC_VERSIONbumped tov2-2026-06-25T142310Z;CLIENT_VERSION0.3.0→0.4.0(additive minor bump);CHANGELOG.mdupdated.Verification
go build,gofmt -l(clean),go vet,golangci-lint run(0 issues), and the fullgo test ./...including live integration tests and the doc-example tests all pass.Generated by Claude Code