v0.8.0
Release 0.8.0 of the Searchcraft API PHP Client.
Adds compatibility with Core version 0.10.0.
- New:
Index::getCapabilities()wrapsGET /index/:index/capabilitiesand
returns the index's AI capability flags (enabled,
searchSummaryConfigured,llmProviderConfigured,llmModelConfigured). - New:
Search::searchSummary()wrapsPOST /index/:index/search/summary,
parses the Server-Sent Events stream, and returns the taggedmetadata,
delta,done, anderrorevents. A callback may be supplied to react
to events as they arrive. - New:
Authentication::getIndexKeys()wrapsGET /auth/index/:index_name. - New:
MeasureAPI — wrapper for analytic events
(trackEvent,trackBatch) and dashboard reporting
(getDashboardSummary,getDashboardConversion,getDashboardUsage). - New:
Searchcraft\Validatorshelper withvalidateLimitand
validateOffset.Search::query,Search::federatedQuery, and
Search::searchSummarynow fail fast on invalid pagination before
issuing a request. - Doc:
Index::patchIndex()docblock now notes that PATCH supports
top-levelaiandai_enabledupdates (changingai_enabledrequires
an admin-level key). - Fix:
Base::request()previously appended the query string to a local
variable when building GET requests but never rebuilt the PSR-7
request, so GET query parameters were silently dropped. The request is
now created once with the fully-qualified URL.