Repository navigation
feat: add Server Actor client and sync with Apify OpenAPI spec v2-2026-11-04T151257Z - #28
Merged
Merged
Conversation
…tor support and dataset count semantics from apify-client-js Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ocuAGnQ7tWM7EdPahZPAA
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ocuAGnQ7tWM7EdPahZPAA
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ocuAGnQ7tWM7EdPahZPAA
…ctor tests Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ocuAGnQ7tWM7EdPahZPAA
…js #1188) A non-positive or too large expiresInSecs now fails with IllegalArgumentException before any request in createItemsPublicUrl and createKeysPublicUrl and in Signatures.signStorageContent. The expiry is still computed when the URL is signed, after the storage lookup. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ocuAGnQ7tWM7EdPahZPAA
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ocuAGnQ7tWM7EdPahZPAA
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
Syncs the Java client with OpenAPI spec
v2-2026-11-04T151257Z(apify/apify-docs#3083, #3084, #3152) and apify-client-js #1179, #1187, #1188, #1190 and #1197.CLIENT_VERSIONgoes to 0.13.0.Spec sync
API_SPEC_VERSIONis bumped. The version is updated inpom.xml, the README and the CHANGELOG.actorPathfield onActorVersionandBuildActVersion.ActorStandby:tenancyand the admin-only flags.ActorDefinitionpaths, which are relative to.actor/.TARBALL, which is a zip archive.Actor.getStandbyUrl(). The spec has this field but the Java model was missing it.Server Actors (JS #1179)
ActorClient.server()returns anActorServerClient.standby()is a deprecated alias that logs a warning once per process.ActorServerClienthasrequest,requestStream,getUrlandgetOpenApiSpec, configured throughActorServerRequestOptions.X-Apify-Authorization.requestandrequestStream. Transport errors are not retried.HttpTransportthat cannot disable redirects makes a Server Actor request fail rather than risk sending the token to the redirect target.DefaultHttpTransportsupports disabling redirects, including when it wraps your ownHttpClient.ServerActorException,ActorServerStreamResponse,ApiResponse.bodyAsString()andbodyAs().Dataset count (JS #1187, #1190, #1197)
PaginationList.getCount()on a dataset items page is now the larger of the scanned rows and the items returned.limitnow counts rows, as in the JS client, and a page's items are no longer trimmed to the cap.getScannedCount()andsetScannedCount()are kept but deprecated.chunkSizedocs are updated.Signed URL validity (JS #1188)
expiresInSecsthrowsIllegalArgumentExceptionbefore any request is sent. This applies toDatasetClient.createItemsPublicUrl, all overloads ofKeyValueStoreClient.createKeysPublicUrl, andSignatures.signStorageContent.setRecordhandles a blankcontentEncoding.Tests and docs
ActorServerClientTesthas 45 cases against a real local socket server.ActorServerIntegrationTestbuilds and calls a live echo Server Actor.docs/actors.mdhas a new Server Actors section.docs/storages.md, the README and the CHANGELOG are updated.