Skip to content

v0.8.0

Choose a tag to compare

@dmackinn dmackinn released this 21 Apr 02:44
· 4 commits to main since this release
628f2a6

Release 0.8.0 of the Searchcraft API PHP Client.

Adds compatibility with Core version 0.10.0.

  • New: Index::getCapabilities() wraps GET /index/:index/capabilities and
    returns the index's AI capability flags (enabled,
    searchSummaryConfigured, llmProviderConfigured, llmModelConfigured).
  • New: Search::searchSummary() wraps POST /index/:index/search/summary,
    parses the Server-Sent Events stream, and returns the tagged metadata,
    delta, done, and error events. A callback may be supplied to react
    to events as they arrive.
  • New: Authentication::getIndexKeys() wraps GET /auth/index/:index_name.
  • New: Measure API — wrapper for analytic events
    (trackEvent, trackBatch) and dashboard reporting
    (getDashboardSummary, getDashboardConversion, getDashboardUsage).
  • New: Searchcraft\Validators helper with validateLimit and
    validateOffset. Search::query, Search::federatedQuery, and
    Search::searchSummary now fail fast on invalid pagination before
    issuing a request.
  • Doc: Index::patchIndex() docblock now notes that PATCH supports
    top-level ai and ai_enabled updates (changing ai_enabled requires
    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.