Repository navigation
feat!: split Store search from the Store listing, sync with spec v2-2026-12-03T122505Z - #26
Merged
Merged
Conversation
… uploads, deprecate Store sortBy
…vel 9, user by ID test
Pijukatel
force-pushed
the
claude/brave-hypatia-htdl0f
branch
from
December 3, 2026 14:19
5f1748e to
c31388c
Compare
…026-12-02T102104Z store()->list() and iterate() lose search and sortBy, and the new store()->search() returns the best matches as one page. Removes the allowsAgenticUsers filter dropped from the spec.
…and input schema limit
…ut treatPhpDocTypesAsCertain
…rom Actor servers, honor APIFY_API_URL in the docs program streamRecord(), streamItems() and log()->stream() now open the stream through the retrying call path and take timeoutSecs. A client-wide Authorization header is sent as X-Apify-Authorization to an Actor server. The standalone docs program reads APIFY_API_URL.
…ull for a missing log stream call() redirects the log of the run by default, to a callable, the standard error stream, or nowhere. run()->redirectLog() is the reusable helper. A cut stream is reopened and resumes after the last message. log()->stream() returns null on a 404 for a client with an ID, and getStreamedLog() takes timeoutSecs. Documents the timeout arguments and the Authorization header rerouting.
…rly, skip the continuation of a skipped message The log stream opens with the time left until the deadline as its timeout, and a read that fails after the deadline ends the redirection. A stream that ends cleanly while the run has not finished is reopened. The lines that continue a message left out by since are left out too. The default target is tested in a PHP process.
…eam with too little time left, tidy comments and tests A reopened stream no longer redirects its lines without a timestamp a second time. A log stream is opened only with at least half a second left, and a request that fails after the deadline ends the redirection quietly.
… the deadline during a replay
…eated A reopened log stream skips the bytes that were handled already instead of counting messages by timestamp. A cut inside the opening text or a continuation line no longer loses a line.
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 PHP client with the OpenAPI spec
v2-2026-12-03T122505Zand the reference client changes merged since the last update. The version goes from 0.14.1 to 0.15.0, with one CHANGELOG section.Spec sync
allowsAgenticUsersfilter, soStoreListOptions::$allowsAgenticUsersis removed (breaking).offsetandsortByfor a search and returns a single page of at most 100 Actors. Thecategoryfilter, the search page limit, and thelimitof at most 10 withincludeInputSchemaare documented.Store search split (apify/apify-client-js#1267)
StoreListOptionslosessearch,sortBy, andallowsAgenticUsers.store()->list()anditerate()browse the Store in Store order.sortByis never sent to the API andStoreSearchOptionsdoes not accept it, as in the Rust, Go, Java, and .NET clients.store()->search(StoreSearchOptions)returns aStoreSearchResultwith the matching Actors and thelimitthe API applied. It sends one request, has nooffset, and rejects an empty query and a limit that is not positive.Other reference client changes
headersargument ofApifyClientsends headers with every request. They replace the built-inUser-Agentand token headers, and a header a call sets for itself replaces them. A client-wideAuthorizationheader is sent asX-Apify-Authorizationto an Actor server, so the Actor never receives it.ActorCallOptions.logof the reference client):call()of an Actor and of a task redirects the run log, to the standard error stream by default, behind{Actor name} runId:{run ID} ->. The new$logargument takes a callable orfalse. A failure to redirect prints a warning and the call still returns the run.run()->redirectLog()is the reusable helper, with a$sinceargument. A stream that is cut off, or that the server closes while the run goes on, is reopened and resumes at the line where it was cut.$waitSecsbounds the redirection.log()->stream()returnsnullfor a missing log of a client with an ID, as the reference does. A client without an ID still throws on a 404.run()->getStreamedLog()takes$timeoutSecs.keyValueStore()->streamRecord()reads a record as a stream, likedataset()->streamItems(). It returnsnullfor a missing record.streamRecord(),streamItems(), andlog()->stream()take$timeoutSecsand retry opening the stream like any request.task()->publish()andunpublish()take$timeoutSecs.versions()->create()andversion()->update()default to thelongtimeout tier.createItemsPublicUrl()andcreateKeysPublicUrl()say that a signed URL grants access to all items or keys, and that the options only set the default response.@sincetags for 3.0.0 apify-client-js#1278 and docs: fix@sincetags of symbols added in 2.x apify-client-js#1281 only add@sincetags, and the other merged PRs are JS-only.Docs and code quality
docs/examples.mdsnippets are the code oftests/Examples/.ExampleDocsTestchecks that they match, and theTest examplesstep runs the standalone program too, againstAPIFY_API_URLwhen it is set. The log redirection example callscall()with a callable.getRawBody(), andisAvailable(). TheincludeUnrunnableActorsdescription is corrected.treatPhpDocTypesAsCertain: false. Magic numbers got names, and URL splitting has one helper (Internal/UrlParts).composer.jsondescription.Tests
StoreSearchTest,ClientHeadersTest,KeyValueStoreStreamRecordTest,LogRedirectionTest(targets, default STDERR target in a PHP process, setup failure, empty and cut streams,$since, deadline),UrlPartsTest, and timeout cases for version create and update, task publish and unpublish, and the streams.usernamefilter,user($id)->get(),streamRecord(), runupdate(), requestupdateRequest(), builddelete(), and the log redirection ofcall().Generated by Claude Code