diff --git a/src/Generated/ChatTrait.php b/src/Generated/ChatTrait.php index 8635fb5..6774c4d 100644 --- a/src/Generated/ChatTrait.php +++ b/src/Generated/ChatTrait.php @@ -89,7 +89,7 @@ public function getCampaign(string $id, ?string $prev = null, ?string $next = nu * * @param string $id * @param GeneratedModels\UpdateCampaignRequest $requestData - * @return StreamResponse + * @return StreamResponse * @throws StreamException */ public function updateCampaign(string $id, GeneratedModels\UpdateCampaignRequest $requestData): StreamResponse { @@ -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 @@ -121,7 +121,7 @@ public function startCampaign(string $id, GeneratedModels\StartCampaignRequest $ * * @param string $id * @param GeneratedModels\StopCampaignRequest $requestData - * @return StreamResponse + * @return StreamResponse * @throws StreamException */ public function stopCampaign(string $id, GeneratedModels\StopCampaignRequest $requestData): StreamResponse { @@ -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 @@ -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 * @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); @@ -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); } diff --git a/src/Generated/CommonTrait.php b/src/Generated/CommonTrait.php index 2e34e69..e03a0ef 100644 --- a/src/Generated/CommonTrait.php +++ b/src/Generated/CommonTrait.php @@ -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 * @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 = []; @@ -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; } diff --git a/src/Generated/FeedsTrait.php b/src/Generated/FeedsTrait.php index e6144b0..dad595a 100644 --- a/src/Generated/FeedsTrait.php +++ b/src/Generated/FeedsTrait.php @@ -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 @@ -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 @@ -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 * @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 = []; @@ -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; } diff --git a/src/GeneratedModels/ActivityMarksConfig.php b/src/GeneratedModels/ActivityMarksConfig.php new file mode 100644 index 0000000..2bba756 --- /dev/null +++ b/src/GeneratedModels/ActivityMarksConfig.php @@ -0,0 +1,16 @@ +|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, diff --git a/src/GeneratedModels/BatchQueryCommentReactionsRequest.php b/src/GeneratedModels/BatchQueryCommentReactionsRequest.php index 9bb6137..bae945e 100644 --- a/src/GeneratedModels/BatchQueryCommentReactionsRequest.php +++ b/src/GeneratedModels/BatchQueryCommentReactionsRequest.php @@ -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|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, diff --git a/src/GeneratedModels/CreateFeedGroupRequest.php b/src/GeneratedModels/CreateFeedGroupRequest.php index 1d5e439..4bd1daf 100644 --- a/src/GeneratedModels/CreateFeedGroupRequest.php +++ b/src/GeneratedModels/CreateFeedGroupRequest.php @@ -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 diff --git a/src/GeneratedModels/DeleteChannelsRequest.php b/src/GeneratedModels/DeleteChannelsRequest.php index a4b7cc5..306628c 100644 --- a/src/GeneratedModels/DeleteChannelsRequest.php +++ b/src/GeneratedModels/DeleteChannelsRequest.php @@ -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. ) { } diff --git a/src/GeneratedModels/FeedGroupResponse.php b/src/GeneratedModels/FeedGroupResponse.php index d775fa9..82f1557 100644 --- a/src/GeneratedModels/FeedGroupResponse.php +++ b/src/GeneratedModels/FeedGroupResponse.php @@ -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 diff --git a/src/GeneratedModels/FeedGroupScope.php b/src/GeneratedModels/FeedGroupScope.php new file mode 100644 index 0000000..38f32ee --- /dev/null +++ b/src/GeneratedModels/FeedGroupScope.php @@ -0,0 +1,16 @@ + limit info) /** @var array|null */ #[MapOf(LimitInfoResponse::class)] + public ?array $unityDesktop = null, // Rate limits for Unity desktop platform (endpoint name -> limit info) + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] + public ?array $unityConsole = null, // Rate limits for Unity console platform (endpoint name -> limit info) + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] public ?array $serverSide = null, // Rate limits for server-side platform (endpoint name -> limit info) ) { } diff --git a/src/GeneratedModels/GetOrCreateFeedGroupRequest.php b/src/GeneratedModels/GetOrCreateFeedGroupRequest.php index a4ff27d..ade1891 100644 --- a/src/GeneratedModels/GetOrCreateFeedGroupRequest.php +++ b/src/GeneratedModels/GetOrCreateFeedGroupRequest.php @@ -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 diff --git a/src/GeneratedModels/GetRateLimitsResponse.php b/src/GeneratedModels/GetRateLimitsResponse.php index 5a6e4b0..7026f1e 100644 --- a/src/GeneratedModels/GetRateLimitsResponse.php +++ b/src/GeneratedModels/GetRateLimitsResponse.php @@ -21,6 +21,12 @@ public function __construct( /** @var array|null */ #[MapOf(LimitInfoResponse::class)] public ?array $unity = null, // Map of endpoint rate limits for the Unity platform + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] + public ?array $unityDesktop = null, // Map of endpoint rate limits for the Unity desktop platform + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] + public ?array $unityConsole = null, // Map of endpoint rate limits for the Unity console platform public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ModerationDashboardPreferences.php b/src/GeneratedModels/ModerationDashboardPreferences.php index 380952c..de6bd6d 100644 --- a/src/GeneratedModels/ModerationDashboardPreferences.php +++ b/src/GeneratedModels/ModerationDashboardPreferences.php @@ -20,6 +20,7 @@ public function __construct( public ?bool $includeAttachmentPayload = null, public ?bool $blockForeignCdnAttachments = null, public ?array $filterableCustomKeys = null, + public ?bool $enforceShadowServerSide = null, ) { } diff --git a/src/GeneratedModels/PaginationParams.php b/src/GeneratedModels/PaginationParams.php index f76d453..571ae4d 100644 --- a/src/GeneratedModels/PaginationParams.php +++ b/src/GeneratedModels/PaginationParams.php @@ -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, ) { } diff --git a/src/GeneratedModels/QueryBannedUsersPayload.php b/src/GeneratedModels/QueryBannedUsersPayload.php index 446ea42..754ab1d 100644 --- a/src/GeneratedModels/QueryBannedUsersPayload.php +++ b/src/GeneratedModels/QueryBannedUsersPayload.php @@ -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 diff --git a/src/GeneratedModels/QueryFutureChannelBansPayload.php b/src/GeneratedModels/QueryFutureChannelBansPayload.php index e9fa96d..14c9acd 100644 --- a/src/GeneratedModels/QueryFutureChannelBansPayload.php +++ b/src/GeneratedModels/QueryFutureChannelBansPayload.php @@ -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. diff --git a/src/GeneratedModels/QueryMembersPayload.php b/src/GeneratedModels/QueryMembersPayload.php index f5ccf24..cb0c92e 100644 --- a/src/GeneratedModels/QueryMembersPayload.php +++ b/src/GeneratedModels/QueryMembersPayload.php @@ -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 ) { diff --git a/src/GeneratedModels/QueryUsersPayload.php b/src/GeneratedModels/QueryUsersPayload.php index 6db1ade..6566690 100644 --- a/src/GeneratedModels/QueryUsersPayload.php +++ b/src/GeneratedModels/QueryUsersPayload.php @@ -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 ) { diff --git a/src/GeneratedModels/RuleBuilderCondition.php b/src/GeneratedModels/RuleBuilderCondition.php index defc72a..c493f35 100644 --- a/src/GeneratedModels/RuleBuilderCondition.php +++ b/src/GeneratedModels/RuleBuilderCondition.php @@ -36,6 +36,7 @@ public function __construct( public ?CallTypeRuleParameters $callTypeRuleParams = null, public ?CallCustomPropertyParameters $callCustomPropertyParams = null, public ?CallViolationCountParameters $callViolationCountParams = null, + public ?UserReactionCountRuleParameters $userReactionCountParams = null, ) { } diff --git a/src/GeneratedModels/RunStats.php b/src/GeneratedModels/RunStats.php index feb512d..d4e1f7a 100644 --- a/src/GeneratedModels/RunStats.php +++ b/src/GeneratedModels/RunStats.php @@ -8,6 +8,7 @@ class RunStats extends BaseModel public function __construct( public ?int $channelsDeleted = null, public ?int $messagesDeleted = null, + public ?int $activitiesDeleted = null, ) { } diff --git a/src/GeneratedModels/StopCampaignResponse.php b/src/GeneratedModels/StopCampaignResponse.php new file mode 100644 index 0000000..f8aa61a --- /dev/null +++ b/src/GeneratedModels/StopCampaignResponse.php @@ -0,0 +1,19 @@ +|null */ diff --git a/src/GeneratedModels/UpdateFeedGroupRequest.php b/src/GeneratedModels/UpdateFeedGroupRequest.php index e886b0a..6f7d2a4 100644 --- a/src/GeneratedModels/UpdateFeedGroupRequest.php +++ b/src/GeneratedModels/UpdateFeedGroupRequest.php @@ -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 diff --git a/src/GeneratedModels/UpdateUsersResponse.php b/src/GeneratedModels/UpdateUsersResponse.php index d87da79..b236a84 100644 --- a/src/GeneratedModels/UpdateUsersResponse.php +++ b/src/GeneratedModels/UpdateUsersResponse.php @@ -9,7 +9,8 @@ public function __construct( /** @var array|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 ) { } diff --git a/src/GeneratedModels/UserReactionCountRuleParameters.php b/src/GeneratedModels/UserReactionCountRuleParameters.php new file mode 100644 index 0000000..f624f22 --- /dev/null +++ b/src/GeneratedModels/UserReactionCountRuleParameters.php @@ -0,0 +1,16 @@ +