Skip to content

feat!: split Store search from the Store listing, sync with spec v2-2026-12-03T122505Z - #26

Merged
Pijukatel merged 20 commits into
masterfrom
claude/brave-hypatia-htdl0f
Dec 4, 2026
Merged

Pijukatel merged 20 commits into
masterfrom
claude/brave-hypatia-htdl0f

Conversation

@Pijukatel

@Pijukatel Pijukatel commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Syncs the PHP client with the OpenAPI spec v2-2026-12-03T122505Z and 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

Store search split (apify/apify-client-js#1267)

  • Breaking: StoreListOptions loses search, sortBy, and allowsAgenticUsers. store()->list() and iterate() browse the Store in Store order. sortBy is never sent to the API and StoreSearchOptions does not accept it, as in the Rust, Go, Java, and .NET clients.
  • New store()->search(StoreSearchOptions) returns a StoreSearchResult with the matching Actors and the limit the API applied. It sends one request, has no offset, and rejects an empty query and a limit that is not positive.

Other reference client changes

  • feat!: allow passing a custom HTTP client to ApifyClient apify-client-js#1058: the headers argument of ApifyClient sends headers with every request. They replace the built-in User-Agent and token headers, and a header a call sets for itself replaces them. A client-wide Authorization header is sent as X-Apify-Authorization to an Actor server, so the Actor never receives it.
  • Log redirection (ActorCallOptions.log of 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 $log argument takes a callable or false. A failure to redirect prints a warning and the call still returns the run. run()->redirectLog() is the reusable helper, with a $since argument. 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. $waitSecs bounds the redirection.
  • Breaking: log()->stream() returns null for 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, like dataset()->streamItems(). It returns null for a missing record. streamRecord(), streamItems(), and log()->stream() take $timeoutSecs and retry opening the stream like any request.
  • task()->publish() and unpublish() take $timeoutSecs.
  • chore: use the long timeout tier for Actor version uploads apify-client-js#1248: versions()->create() and version()->update() default to the long timeout tier.
  • docs: clarify what signed public storage URLs grant access to apify-client-js#1268: the docs of createItemsPublicUrl() and createKeysPublicUrl() say that a signed URL grants access to all items or keys, and that the options only set the default response.
  • docs: add @since tags for 3.0.0 apify-client-js#1278 and docs: fix @since tags of symbols added in 2.x apify-client-js#1281 only add @since tags, and the other merged PRs are JS-only.

Docs and code quality

  • docs/examples.md snippets are the code of tests/Examples/. ExampleDocsTest checks that they match, and the Test examples step runs the standalone program too, against APIFY_API_URL when it is set. The log redirection example calls call() with a callable.
  • The README documents the remaining constructor arguments, the transport contract, getRawBody(), and isAvailable(). The includeUnrunnableActors description is corrected.
  • PHPStan runs at level 9 without treatPhpDocTypesAsCertain: false. Magic numbers got names, and URL splitting has one helper (Internal/UrlParts).
  • The extra "experimental" notice is removed from the composer.json description.

Tests

  • Unit: 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.
  • Integration: Store search (best matches, the 100 cap, no match, username filter, input schema), the Store username filter, user($id)->get(), streamRecord(), run update(), request updateRequest(), build delete(), and the log redirection of call().

Generated by Claude Code

@Pijukatel Pijukatel added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Nov 27, 2026 — with Claude
@Pijukatel
Pijukatel force-pushed the claude/brave-hypatia-htdl0f branch from 5f1748e to c31388c Compare December 3, 2026 14:19
…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.
@Pijukatel Pijukatel changed the title fix: iterate Store search as one page and use the long timeout for Actor version uploads feat!: split Store search from the Store listing, sync with spec v2-2026-12-02T102104Z Dec 3, 2026
@Pijukatel Pijukatel changed the title feat!: split Store search from the Store listing, sync with spec v2-2026-12-02T102104Z feat!: split Store search from the Store listing, sync with spec v2-2026-12-03T122505Z Dec 4, 2026
claude added 11 commits December 4, 2026 08:45
…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.
…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.
@Pijukatel
Pijukatel merged commit d58779d into master Dec 4, 2026
3 checks passed
@Pijukatel
Pijukatel deleted the claude/brave-hypatia-htdl0f branch December 4, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants