Repository navigation
feat!: split the Store search, resume streamed logs, stream request bodies and sync the Store with the spec - #33
Merged
Merged
Conversation
…d address review feedback
…low redirects for streams
… streams, and document the transport requirement
StoreCollectionClient.search returns one page of the best matches. StoreListOptions no longer takes search or sortBy, which matches the reference client.
…02 spec, and fix review findings StreamedLog takes since instead of fromStart, reopens a log stream that broke off, and exposes getLastRedirectedAt. The agentic payment filter and field are removed. The spec version is 2026-12-02. Docs and Javadoc follow the spec for the Store filters, the build OpenAPI definition, and public storage URLs.
A stream that broke off held back its last message for the replay of the reopened stream. A stop during the reopen, a failed reopen, or a stop during the replay lost that message. Now the whole log is read once through the replay filter. start() clears the replay state, and the resume example and the since migration are documented.
The full-log read at a stop now rebuilds the replay filter, so a message the reopened stream already replayed is skipped. A broken replay also reads the log once. The held-back message bypasses the filter, and a restart clears the last redirected message.
A replay that is cut short no longer redirects the start of the next message, since the log is read in full afterwards. A stream that breaks before any message keeps the earlier held-back one. Comments and the resume docs are reworded.
The final flush of a replay that broke off or was stopped before it caught up is skipped, so the message after the last redirected one is neither lost nor sent truncated, including a multi-line one. The read of the whole log delivers it.
… read the log redirectLogStream now reports a cut-short replay once, as REPLAY_INCOMPLETE, and streamLog reads the log on that result alone. The held-back message is taken from the replay when it passed the last redirected message.
A reopened stream that is cut short earlier than the broken one no longer replaces its copy of the held-back message with a shorter one.
A held-back message that a later stream redirected, or a later message that followed it, is no longer sent again when the log cannot be read. The held-back copy is cleared after every redirected message.
The held-back message is replaced unless the new copy is a prefix of it, and only a message with a parsed timestamp clears it, since one without may be sent again by a reopened stream.
# Conflicts: # .github/workflows/java-integration-tests.yml
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 the OpenAPI spec
v2-2026-12-02T102104Zand the reference client changes merged since the last update. The version goes to 0.15.0, with one CHANGELOG section.Spec sync
ActorStoreListItem.getStats()returns the newStoreActorStats, and the new Store item fields are added. A Store search is one page of at most 100 Actors, and the API ignoressortBy.APIFY_AIrun origin, and the409response on Actor create is documented.StoreListOptions.allowsAgenticUsersandActorStoreListItem.getIsWhiteListedForAgenticPaymentsare removed, since the API no longer has them.BuildClient.getOpenApiDefinition()documents the token requirement.Reference client
StoreCollectionClient.search(StoreSearchOptions)sends one request and completes withStoreSearchResult(items and the limit the API applied).StoreListOptionslosessearchandsortBy, and the filters both options share move toStoreFilterOptions.fromStartwithsincein streamed logs and reopen closed streams apify-client-js#1263:StreamedLogOptions.sincereplacesfromStart.StreamedLog.getLastRedirectedAt()is new, and a log stream that is cut off while the run is still going is reopened and continues after the last redirected message.InputStreambodies forsetRecord, Actor and task input, andActorServerClient.request/requestStream, and a streamedgetRecordStreamreturningKeyValueStoreRecordStream. A stream body is sent once, without retries or compression, and is closed when the call completes. Redirects are off for stream bodies.getRecordStream,LogClient.streamandDatasetClient.streamItemsretry until the response headers arrive.StoreActormodel to the new Store API shape apify-client-js#1241 and #1253: covered by the spec items above.TaskClient.call()apify-client-js#1237:TaskClient.callalready redirects the run log in Java.type-festand compile-time type changes, or an option the Java client never had.Breaking changes
ActorStoreListItem.getStats()returnsStoreActorStats.StoreListOptionsno longer hassearch,sortByorallowsAgenticUsers, and its filter setters come fromStoreFilterOptions, so code compiled against 0.14.x must be recompiled.StreamedLogOptions.fromStartand theStreamedLogconstructor argument are replaced bysince.HttpTransportthat implements only the two required methods can't send anInputStreambody, because it can't turn off redirects. The README, Javadoc and CHANGELOG say so.Tests
StreamBodyTest, the Store search tests and theStreamedLogTestreopen tests.mvn verifypasses locally, covering the live integration tests, formatting, static analysis and the Javadoc build.Generated by Claude Code