Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/Generated/ChatTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function getCampaign(string $id, ?string $prev = null, ?string $next = nu
*
* @param string $id
* @param GeneratedModels\UpdateCampaignRequest $requestData
* @return StreamResponse<GeneratedModels\CampaignResponse>
* @return StreamResponse<GeneratedModels\UpdateCampaignResponse>
* @throws StreamException
*/
public function updateCampaign(string $id, GeneratedModels\UpdateCampaignRequest $requestData): StreamResponse {
Expand All @@ -98,7 +98,7 @@ public function updateCampaign(string $id, GeneratedModels\UpdateCampaignRequest

$queryParams = [];
// Use the provided request data array directly
return StreamResponse::fromJson($this->makeRequest('PUT', $path, $queryParams, $requestData), GeneratedModels\CampaignResponse::class);
return StreamResponse::fromJson($this->makeRequest('PUT', $path, $queryParams, $requestData), GeneratedModels\UpdateCampaignResponse::class);
}
/**
* Starts or schedules a campaign
Expand All @@ -121,7 +121,7 @@ public function startCampaign(string $id, GeneratedModels\StartCampaignRequest $
*
* @param string $id
* @param GeneratedModels\StopCampaignRequest $requestData
* @return StreamResponse<GeneratedModels\CampaignResponse>
* @return StreamResponse<GeneratedModels\StopCampaignResponse>
* @throws StreamException
*/
public function stopCampaign(string $id, GeneratedModels\StopCampaignRequest $requestData): StreamResponse {
Expand All @@ -130,7 +130,7 @@ public function stopCampaign(string $id, GeneratedModels\StopCampaignRequest $re

$queryParams = [];
// Use the provided request data array directly
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\CampaignResponse::class);
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\StopCampaignResponse::class);
}
/**
* Query channels with filter query
Expand Down Expand Up @@ -263,10 +263,11 @@ public function getOrCreateDistinctChannel(string $type, GeneratedModels\Channel
* @param string $type
* @param string $id
* @param ?bool $hardDelete
* @param ?bool $skipTruncate
* @return StreamResponse<GeneratedModels\DeleteChannelResponse>
* @throws StreamException
*/
public function deleteChannel(string $type, string $id, ?bool $hardDelete = null): StreamResponse {
public function deleteChannel(string $type, string $id, ?bool $hardDelete = null, ?bool $skipTruncate = null): StreamResponse {
$path = '/api/v2/chat/channels/{type}/{id}';
$path = str_replace('{type}', (string) $type, $path);
$path = str_replace('{id}', (string) $id, $path);
Expand All @@ -275,6 +276,9 @@ public function deleteChannel(string $type, string $id, ?bool $hardDelete = null
if ($hardDelete !== null) {
$queryParams['hard_delete'] = $hardDelete;
}
if ($skipTruncate !== null) {
$queryParams['skip_truncate'] = $skipTruncate;
}
$requestData = null;
return StreamResponse::fromJson($this->makeRequest('DELETE', $path, $queryParams, $requestData), GeneratedModels\DeleteChannelResponse::class);
}
Expand Down
10 changes: 9 additions & 1 deletion src/Generated/CommonTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -938,11 +938,13 @@ public function upsertPushTemplate(GeneratedModels\UpsertPushTemplateRequest $re
* @param ?bool $ios
* @param ?bool $web
* @param ?bool $unity
* @param ?bool $unityDesktop
* @param ?bool $unityConsole
* @param ?string $endpoints
* @return StreamResponse<GeneratedModels\GetRateLimitsResponse>
* @throws StreamException
*/
public function getRateLimits(?bool $serverSide = null, ?bool $android = null, ?bool $ios = null, ?bool $web = null, ?bool $unity = null, ?string $endpoints = null): StreamResponse {
public function getRateLimits(?bool $serverSide = null, ?bool $android = null, ?bool $ios = null, ?bool $web = null, ?bool $unity = null, ?bool $unityDesktop = null, ?bool $unityConsole = null, ?string $endpoints = null): StreamResponse {
$path = '/api/v2/rate_limits';

$queryParams = [];
Expand All @@ -961,6 +963,12 @@ public function getRateLimits(?bool $serverSide = null, ?bool $android = null, ?
if ($unity !== null) {
$queryParams['unity'] = $unity;
}
if ($unityDesktop !== null) {
$queryParams['unity_desktop'] = $unityDesktop;
}
if ($unityConsole !== null) {
$queryParams['unity_console'] = $unityConsole;
}
if ($endpoints !== null) {
$queryParams['endpoints'] = $endpoints;
}
Expand Down
14 changes: 11 additions & 3 deletions src/Generated/FeedsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function queryActivities(GeneratedModels\QueryActivitiesRequest $requestD
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\QueryActivitiesResponse::class);
}
/**
* Returns a single user's reactions across a set of activity IDs, without activity payloads
* Returns a single user's activity reactions, optionally scoped to a set of activity IDs, without activity payloads
*
* @param GeneratedModels\BatchQueryActivityReactionsRequest $requestData
* @return StreamResponse<GeneratedModels\BatchQueryActivityReactionsResponse>
Expand Down Expand Up @@ -733,7 +733,7 @@ public function queryComments(GeneratedModels\QueryCommentsRequest $requestData,
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\QueryCommentsResponse::class);
}
/**
* Returns a single user's reactions across a set of comment IDs, without comment payloads
* Returns a single user's comment reactions, optionally scoped to a set of comment IDs, without comment payloads
*
* @param GeneratedModels\BatchQueryCommentReactionsRequest $requestData
* @return StreamResponse<GeneratedModels\BatchQueryCommentReactionsResponse>
Expand Down Expand Up @@ -1636,11 +1636,13 @@ public function queryFeeds(GeneratedModels\QueryFeedsRequest $requestData): Stre
* @param ?bool $ios
* @param ?bool $web
* @param ?bool $unity
* @param ?bool $unityDesktop
* @param ?bool $unityConsole
* @param ?bool $serverSide
* @return StreamResponse<GeneratedModels\GetFeedsRateLimitsResponse>
* @throws StreamException
*/
public function getFeedsRateLimits(?string $endpoints = null, ?bool $android = null, ?bool $ios = null, ?bool $web = null, ?bool $unity = null, ?bool $serverSide = null): StreamResponse {
public function getFeedsRateLimits(?string $endpoints = null, ?bool $android = null, ?bool $ios = null, ?bool $web = null, ?bool $unity = null, ?bool $unityDesktop = null, ?bool $unityConsole = null, ?bool $serverSide = null): StreamResponse {
$path = '/api/v2/feeds/feeds/rate_limits';

$queryParams = [];
Expand All @@ -1659,6 +1661,12 @@ public function getFeedsRateLimits(?string $endpoints = null, ?bool $android = n
if ($unity !== null) {
$queryParams['unity'] = $unity;
}
if ($unityDesktop !== null) {
$queryParams['unity_desktop'] = $unityDesktop;
}
if ($unityConsole !== null) {
$queryParams['unity_console'] = $unityConsole;
}
if ($serverSide !== null) {
$queryParams['server_side'] = $serverSide;
}
Expand Down
16 changes: 16 additions & 0 deletions src/GeneratedModels/ActivityMarksConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class ActivityMarksConfig extends BaseModel
{
public function __construct(
public ?bool $trackSeen = null, // Whether to return per-activity seen status on content feeds
public ?bool $trackRead = null, // Whether to return per-activity read status on content feeds
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
3 changes: 2 additions & 1 deletion src/GeneratedModels/ActivityProcessingConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
class ActivityProcessingConfig extends BaseModel
{
public function __construct(
public ?array $allowedTags = null, // When set, the LLM activity processors may only write interest tags from this list. Tags are matched literally after lower-casing and trimming, so a generic vocabulary matches more often than in-house terms. Mutually exclusive with blocked_tags.
public ?array $allowedTags = null, // When set, the LLM activity processors may only write interest tags from this list. By default the model is not told about the list, so a tag is only written when the model happens to produce that exact word after lower-casing and trimming, which for any vocabulary is often not the case; set send_allowed_tags_to_ai to have the model choose from the list instead. Mutually exclusive with blocked_tags.
public ?array $blockedTags = null, // Interest tags the LLM activity processors are never allowed to write. Mutually exclusive with allowed_tags.
public ?bool $sendAllowedTagsToAi = null, // When true, this feed group's allowed_tags is given to the model as a constrained vocabulary so it maps its own wording onto a configured tag instead of that output being discarded. Improves how often a tag is produced, at the cost of sending the list on every request. Scoped to this group's own list: leaving it false keeps this group's tags out of the request even when another feed group on the same activity sets it true. Requires allowed_tags. Off by default.
) {
}

Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/ActivitySelectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public function __construct(
public ?string $cutoffTime = null, // Time threshold for activity selection (string). Expected RFC3339 format (e.g., 2006-01-02T15:04:05Z07:00). Cannot be used together with cutoff_window
public ?string $cutoffWindow = null, // Flexible relative time window for activity selection (e.g., '1h', '3d', '1y'). Activities older than this duration will be filtered out. Cannot be used together with cutoff_time
public ?int $minPopularity = null, // Minimum popularity threshold. For the 'popular' selector, omit to use the default (5); values below 1 are rejected
public ?FeedGroupScope $feedGroups = null,
public ?object $params = null,
) {
}
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/ActivitySelectorConfigResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public function __construct(
public ?\DateTime $cutoffTime = null, // Time threshold for activity selection (timestamp)
public ?string $cutoffWindow = null, // Flexible relative time window for activity selection (e.g., '1h', '3d', '1y')
public ?int $minPopularity = null, // Minimum popularity threshold. For the 'popular' selector, values below 1 are normalized to the default (5) at read time.
public ?FeedGroupScope $feedGroups = null,
public ?object $params = null, // Generic params for selector-specific configuration
) {
}
Expand Down
4 changes: 2 additions & 2 deletions src/GeneratedModels/BatchQueryActivityReactionsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
class BatchQueryActivityReactionsRequest extends BaseModel
{
public function __construct(
public ?array $activityIds = null, // Activity IDs to fetch the user's reactions for (max 100)
public ?object $filter = null, // Optional filter on reaction_type or created_at
public ?array $activityIds = null, // Activity IDs to fetch the user's reactions for (max 100). Omit to page over all of the user's activity reactions
public ?object $filter = null, // Optional filter on reaction_type or created_at. To restrict by activity, prefer activity_ids over filter.activity_id: activity_ids is capped at 100 and served by the per-activity index, and filter.activity_id is rejected when activity_ids is omitted
/** @var array<SortParamRequest>|null */
#[ArrayOf(SortParamRequest::class)]
public ?array $sort = null,
Expand Down
4 changes: 2 additions & 2 deletions src/GeneratedModels/BatchQueryCommentReactionsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
class BatchQueryCommentReactionsRequest extends BaseModel
{
public function __construct(
public ?array $commentIds = null, // Comment IDs to fetch the user's reactions for (max 100)
public ?object $filter = null, // Optional filter on reaction_type or created_at
public ?array $commentIds = null, // Comment IDs to fetch the user's reactions for (max 100). Omit to page over all of the user's comment reactions
public ?object $filter = null, // Optional filter on reaction_type or created_at. To restrict by comment, prefer comment_ids over filter.comment_id: comment_ids is capped at 100 and served by the per-comment index, and filter.comment_id is rejected when comment_ids is omitted
/** @var array<SortParamRequest>|null */
#[ArrayOf(SortParamRequest::class)]
public ?array $sort = null,
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/CreateFeedGroupRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class CreateFeedGroupRequest extends BaseModel
public function __construct(
public ?string $id = null, // Unique identifier for the feed group
public ?NotificationConfig $notification = null,
public ?ActivityMarksConfig $activityMarks = null,
public ?PushNotificationConfig $pushNotification = null,
public ?StoriesConfig $stories = null,
public ?object $custom = null, // Custom data for the feed group
Expand Down
3 changes: 2 additions & 1 deletion src/GeneratedModels/DeleteChannelsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class DeleteChannelsRequest extends BaseModel
{
public function __construct(
public ?array $cids = null, // All channels that should be deleted
public ?bool $hardDelete = null, // Specify if channels and all ressources should be hard deleted
public ?bool $hardDelete = null, // Server-side only. When true, the channels and all their resources are permanently deleted instead of soft-deleted.
public ?bool $skipTruncate = null, // Server-side only. When true, the soft delete preserves message history instead of hiding it, so a later recreation of any of these channel IDs restores the full history. Only supported for distinct channels. Cannot be combined with hard_delete.
) {
}

Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/FeedGroupResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class FeedGroupResponse extends BaseModel
public function __construct(
public ?string $id = null, // Identifier within the group
public ?NotificationConfig $notification = null,
public ?ActivityMarksConfig $activityMarks = null,
public ?PushNotificationConfig $pushNotification = null,
public ?string $defaultVisibility = null, // Default visibility for activities. One of: public, visible, followers, members, private
public ?string $defaultFollowerRole = null, // Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
Expand Down
16 changes: 16 additions & 0 deletions src/GeneratedModels/FeedGroupScope.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class FeedGroupScope extends BaseModel
{
public function __construct(
public ?array $include = null, // Select only activities that live in a feed belonging to one of these feed groups. Mutually exclusive with exclude
public ?array $exclude = null, // Select activities from every feed group except these. An activity cross-posted to an excluded and a non-excluded group is still selected. Mutually exclusive with include
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
6 changes: 6 additions & 0 deletions src/GeneratedModels/GetFeedsRateLimitsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ public function __construct(
public ?array $unity = null, // Rate limits for Unity platform (endpoint name -> limit info)
/** @var array<string, LimitInfoResponse>|null */
#[MapOf(LimitInfoResponse::class)]
public ?array $unityDesktop = null, // Rate limits for Unity desktop platform (endpoint name -> limit info)
/** @var array<string, LimitInfoResponse>|null */
#[MapOf(LimitInfoResponse::class)]
public ?array $unityConsole = null, // Rate limits for Unity console platform (endpoint name -> limit info)
/** @var array<string, LimitInfoResponse>|null */
#[MapOf(LimitInfoResponse::class)]
public ?array $serverSide = null, // Rate limits for server-side platform (endpoint name -> limit info)
) {
}
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/GetOrCreateFeedGroupRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class GetOrCreateFeedGroupRequest extends BaseModel
{
public function __construct(
public ?NotificationConfig $notification = null,
public ?ActivityMarksConfig $activityMarks = null,
public ?PushNotificationConfig $pushNotification = null,
public ?StoriesConfig $stories = null,
public ?object $custom = null, // Custom data for the feed group
Expand Down
6 changes: 6 additions & 0 deletions src/GeneratedModels/GetRateLimitsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ public function __construct(
/** @var array<string, LimitInfoResponse>|null */
#[MapOf(LimitInfoResponse::class)]
public ?array $unity = null, // Map of endpoint rate limits for the Unity platform
/** @var array<string, LimitInfoResponse>|null */
#[MapOf(LimitInfoResponse::class)]
public ?array $unityDesktop = null, // Map of endpoint rate limits for the Unity desktop platform
/** @var array<string, LimitInfoResponse>|null */
#[MapOf(LimitInfoResponse::class)]
public ?array $unityConsole = null, // Map of endpoint rate limits for the Unity console platform
public ?string $duration = null,
) {
}
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/ModerationDashboardPreferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function __construct(
public ?bool $includeAttachmentPayload = null,
public ?bool $blockForeignCdnAttachments = null,
public ?array $filterableCustomKeys = null,
public ?bool $enforceShadowServerSide = null,
) {
}

Expand Down
4 changes: 4 additions & 0 deletions src/GeneratedModels/PaginationParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class PaginationParams extends BaseModel
public function __construct(
public ?int $limit = null,
public ?int $offset = null,
public ?int $idGte = null,
public ?int $idGt = null,
public ?int $idLte = null,
public ?int $idLt = null,
) {
}

Expand Down
4 changes: 4 additions & 0 deletions src/GeneratedModels/QueryBannedUsersPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ public function __construct(
public ?array $sort = null, // Array of sort parameters
public ?int $limit = null, // Number of records to return
public ?int $offset = null, // Number of records to offset
public ?\DateTime $createdAtAfterOrEqual = null,
public ?\DateTime $createdAtAfter = null,
public ?\DateTime $createdAtBeforeOrEqual = null,
public ?\DateTime $createdAtBefore = null,
public ?bool $excludeExpiredBans = null, // Whether to exclude expired bans or not
public ?string $userID = null,
public ?UserRequest $user = null, // User request object
Expand Down
4 changes: 4 additions & 0 deletions src/GeneratedModels/QueryFutureChannelBansPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class QueryFutureChannelBansPayload extends BaseModel
public function __construct(
public ?int $limit = null, // Number of records to return
public ?int $offset = null, // Number of records to offset
public ?\DateTime $createdAtAfterOrEqual = null,
public ?\DateTime $createdAtAfter = null,
public ?\DateTime $createdAtBeforeOrEqual = null,
public ?\DateTime $createdAtBefore = null,
public ?bool $excludeExpiredBans = null, // Whether to exclude expired bans or not
public ?bool $includeTotal = null, // When true, the response includes the total number of bans matching the query filter (independent of limit and offset, capped at 100000)
public ?string $targetUserID = null, // Filter by the target user ID. Server-side: returns all bans against this user. Client-side: narrows the authenticated user's own bans to this target.
Expand Down
8 changes: 8 additions & 0 deletions src/GeneratedModels/QueryMembersPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ public function __construct(
public ?array $sort = null, // Array of sort parameters
public ?int $limit = null,
public ?int $offset = null,
public ?string $userIDGte = null,
public ?string $userIDGt = null,
public ?string $userIDLte = null,
public ?string $userIDLt = null,
public ?\DateTime $createdAtAfterOrEqual = null,
public ?\DateTime $createdAtAfter = null,
public ?\DateTime $createdAtBeforeOrEqual = null,
public ?\DateTime $createdAtBefore = null,
public ?string $userID = null,
public ?UserRequest $user = null, // User request object
) {
Expand Down
Loading
Loading