Skip to content
Merged
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
6 changes: 5 additions & 1 deletion src/Generated/ChatTrait.php
Original file line number Diff line number Diff line change
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
10 changes: 9 additions & 1 deletion src/Generated/FeedsTrait.php
Original file line number Diff line number Diff line change
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
1 change: 1 addition & 0 deletions src/GeneratedModels/ChannelBatchUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public function __construct(
public ?ChannelDataUpdate $data = null,
public ?object $customSet = null, // `updateData` only. Merges these keys into each channel's existing custom object, leaving every other custom key untouched. Keys are dot-paths, so `a.b` sets key `b` inside object `a` (the parent object must already exist). Cannot be combined with `data.custom`
public ?array $customUnset = null, // `updateData` only. Deletes these keys from each channel's existing custom object, leaving every other custom key untouched. Keys are dot-paths; deleting a key that does not exist is a no-op. Cannot be combined with `data.custom`
public ?\DateTime $hideHistoryBefore = null, // Required with the `addMembersHideHistory` operation, and rejected with every other operation including `addMembers`. Hides each matched channel's history before this time from the members the operation adds. Members that already belong to a matched channel are never affected. Must be in RFC3339 format (e.g., "2024-01-01T10:00:00Z") and in the past.
) {
}

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
4 changes: 4 additions & 0 deletions src/GeneratedModels/QueryUsersPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ public function __construct(
public ?bool $includeDeactivatedUsers = null,
public ?int $limit = null,
public ?int $offset = null,
public ?string $idGte = null,
public ?string $idGt = null,
public ?string $idLte = null,
public ?string $idLt = null,
public ?string $userID = null,
public ?UserRequest $user = null, // User request object
) {
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/ReviewQueueItemResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function __construct(
public ?int $severity = null, // Severity level of the content
public ?string $aiTextSeverity = null, // AI-determined text severity
public ?string $latestModeratorAction = null,
public ?float $confidenceScore = null, // Highest per-label confidence (0-1) any provider reported across the item's flags; absent when no flag carried one
public ?ChatMessageResponse $message = null,
public ?EnrichedActivity $activity = null,
public ?Reaction $reaction = null,
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/RuleBuilderCondition.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function __construct(
public ?CallTypeRuleParameters $callTypeRuleParams = null,
public ?CallCustomPropertyParameters $callCustomPropertyParams = null,
public ?CallViolationCountParameters $callViolationCountParams = null,
public ?UserReactionCountRuleParameters $userReactionCountParams = null,
) {
}

Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/RunStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class RunStats extends BaseModel
public function __construct(
public ?int $channelsDeleted = null,
public ?int $messagesDeleted = null,
public ?int $activitiesDeleted = null,
) {
}

Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/UpdateFeedGroupRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class UpdateFeedGroupRequest 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
3 changes: 2 additions & 1 deletion src/GeneratedModels/UpdateUsersResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public function __construct(
/** @var array<string, FullUserResponse>|null */
#[MapOf(FullUserResponse::class)]
public ?array $users = null, // Object containing users
public ?string $membershipDeletionTaskID = null,
/** @deprecated */
public ?string $membershipDeletionTaskID = null, // Deprecated: always empty. Removing a user from a team no longer deletes their memberships in that team's channels, so there is no task to poll
public ?string $duration = null, // Duration of the request in milliseconds
) {
}
Expand Down
16 changes: 16 additions & 0 deletions src/GeneratedModels/UserReactionCountRuleParameters.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class UserReactionCountRuleParameters extends BaseModel
{
public function __construct(
public ?int $threshold = null,
public ?string $timeWindow = null,
) {
}

// 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/WebhookFailoverConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ public function __construct(
public ?string $gcsBucket = null,
public ?string $gcsPath = null,
public ?string $gcsCredentials = null,
public ?string $s3Bucket = null,
public ?string $s3Path = null,
public ?string $s3Region = null,
public ?string $s3APIKey = null,
public ?string $s3Secret = null,
public ?string $s3RoleArn = null,
) {
}

Expand Down
Loading
Loading