Skip to content

feat: update Go client for Apify OpenAPI spec v2-2026-06-25T142310Z - #7

Merged
Pijukatel merged 1 commit into
masterfrom
claude/laughing-knuth-3toxp4
Jun 26, 2026
Merged

feat: update Go client for Apify OpenAPI spec v2-2026-06-25T142310Z#7
Pijukatel merged 1 commit into
masterfrom
claude/laughing-knuth-3toxp4

Conversation

@Pijukatel

Copy link
Copy Markdown
Collaborator

Summary

Updates the Apify Go client to OpenAPI specification v2-2026-06-25T142310Z (from v2-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

  • origin filter on last-run (additive) — kept the existing LastRun(status string) signature unchanged and added LastRunWithOptions(LastRunOptions{ Status, Origin }) on both ActorClient and TaskClient, following the codebase's existing *WithOptions convention. This matches the JS reference's lastRun({ status, origin }) runtime contract (origin is a JS-reference convenience param; the spec declares only status/waitForFinish on the last-run endpoints). This shape is consistent with the Rust sibling's last_run_with_options.
  • raw log query parameter — verified already exposed via LogOptions.Raw on both Get and Stream; no change needed.
  • User-Agent comment accuracy — removed the stale isAtHome comment that quoted outdated (capitalized) requirement wording. Behaviour is unchanged: lowercase true/false, keyed solely on APIFY_IS_AT_HOME.
  • Docs — added LastRunOptions and ActorEnvVar field tables, runnable LastRunWithOptions snippets, and the full origin enum.
  • VersioningAPI_SPEC_VERSION bumped to v2-2026-06-25T142310Z; CLIENT_VERSION 0.3.00.4.0 (additive minor bump); CHANGELOG.md updated.

Verification

go build, gofmt -l (clean), go vet, golangci-lint run (0 issues), and the full go test ./... including live integration tests and the doc-example tests all pass.

This client is experimental and is generated and maintained with AI assistance.


Generated by Claude Code

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.
@Pijukatel
Pijukatel merged commit 817b093 into master Jun 26, 2026
2 checks passed
@Pijukatel
Pijukatel deleted the claude/laughing-knuth-3toxp4 branch July 8, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants