Skip to content

v9.0.0

Choose a tag to compare

@github-actions github-actions released this 15 Jul 19:38

What's changed

OpenAPI regeneration for optional query parameters (FEEDS-1651, #54).

Install: composer require getstream/getstream-php:^9.0.0

Breaking changes

Optional OpenAPI query parameters are now nullable with = null defaults, and required request bodies come before optional query params.

Positional call sites that passed query args before the request body will break:

// Before (v8)
$client->queryActivities($language, $translateText, $request);
$client->unban($userId, $channelCid, $createdBy, $request);

// After (v9)
$client->queryActivities($request, $language = null, $translateText = null);
$client->unban($request, $userId, $channelCid = null, $createdBy = null);

Migration: pass the request object first, then optional query args (named args recommended).

getActivity query order is also updated so existing enrichment args stay ahead of translation:

// After (v9)
$client->getActivity($id, $commentSort = null, $commentLimit = null, $userID = null, $language = null, $translateText = null);

// Compatible positional call
$client->getActivity($id, 'last', 10, $userId);

Fixed

  • Optional query/path parameters are no longer required in generated PHP method signatures
  • Feeds translation query params (language, translate_text) are optional and appended after existing getActivity / getComment query params

Added

  • Read-only GetChannel endpoint: $client->getChannel($type, $id, state: true) — fetch a channel by CID without creating it, returns ChannelStateResponse (404 if it does not exist). Its optional state / *_limit query params are now nullable with defaults.
  • Block list import support (importBlockList + related models)
  • Pagination / filter query params on block list list/get/delete helpers

Full changelog

v8.0.0...v9.0.0