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
8 changes: 4 additions & 4 deletions src/Generated/ChatTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ public function queryReactions(string $id, GeneratedModels\QueryReactionsRequest
*
* @param string $id
* @param GeneratedModels\TranslateMessageRequest $requestData
* @return StreamResponse<GeneratedModels\MessageActionResponse>
* @return StreamResponse<GeneratedModels\TranslateMessageResponse>
* @throws StreamException
*/
public function translateMessage(string $id, GeneratedModels\TranslateMessageRequest $requestData): StreamResponse {
Expand All @@ -1239,7 +1239,7 @@ public function translateMessage(string $id, GeneratedModels\TranslateMessageReq

$queryParams = [];
// Use the provided request data array directly
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\MessageActionResponse::class);
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\TranslateMessageResponse::class);
}
/**
* Undelete a message that was previously soft-deleted
Expand Down Expand Up @@ -1356,7 +1356,7 @@ public function updateReminder(string $messageID, GeneratedModels\UpdateReminder
*
* @param string $messageID
* @param GeneratedModels\CreateReminderRequest $requestData
* @return StreamResponse<GeneratedModels\ReminderResponseData>
* @return StreamResponse<GeneratedModels\CreateReminderResponse>
* @throws StreamException
*/
public function createReminder(string $messageID, GeneratedModels\CreateReminderRequest $requestData): StreamResponse {
Expand All @@ -1365,7 +1365,7 @@ public function createReminder(string $messageID, GeneratedModels\CreateReminder

$queryParams = [];
// Use the provided request data array directly
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\ReminderResponseData::class);
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\CreateReminderResponse::class);
}
/**
* Returns replies (thread) of the message
Expand Down
4 changes: 2 additions & 2 deletions src/Generated/FeedsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ public function updateFeedGroup(string $id, GeneratedModels\UpdateFeedGroupReque
return StreamResponse::fromJson($this->makeRequest('PUT', $path, $queryParams, $requestData), GeneratedModels\UpdateFeedGroupResponse::class);
}
/**
* List all feed views for a feed group
* List persisted feed views for the application.
*
* @return StreamResponse<GeneratedModels\ListFeedViewsResponse>
* @throws StreamException
Expand Down Expand Up @@ -1694,7 +1694,7 @@ public function follow(GeneratedModels\FollowRequest $requestData): StreamRespon
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\SingleFollowResponse::class);
}
/**
* Accepts a pending follow request
* Accepts a pending follow request. Follower role can only be set via server-side requests.
*
* @param GeneratedModels\AcceptFollowRequest $requestData
* @return StreamResponse<GeneratedModels\AcceptFollowResponse>
Expand Down
8 changes: 4 additions & 4 deletions src/Generated/VideoTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1303,19 +1303,19 @@ public function queryAggregateCallStats(GeneratedModels\QueryAggregateCallStatsR
* Returns the app's per-broadcast daily digest bundle for one UTC day, with an explicit readiness status (ready, pending, failed, future_date, expired). Payload keys are only present when status is ready.
*
* @param ?string $date
* @param ?string $appID
* @param ?string $targetAppID
* @return StreamResponse<GeneratedModels\GetDailyDigestResponse>
* @throws StreamException
*/
public function getDailyDigest(?string $date = null, ?string $appID = null): StreamResponse {
public function getDailyDigest(?string $date = null, ?string $targetAppID = null): StreamResponse {
$path = '/api/v2/video/stats/daily_digest';

$queryParams = [];
if ($date !== null) {
$queryParams['date'] = $date;
}
if ($appID !== null) {
$queryParams['app_id'] = $appID;
if ($targetAppID !== null) {
$queryParams['target_app_id'] = $targetAppID;
}
$requestData = null;
return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\GetDailyDigestResponse::class);
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/AIVideoConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public function __construct(
/** @var array<AWSRekognitionRule>|null */
#[ArrayOf(AWSRekognitionRule::class)]
public ?array $rules = null,
public ?string $provider = null,
) {
}

Expand Down
19 changes: 19 additions & 0 deletions src/GeneratedModels/AIVideoConfigRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class AIVideoConfigRequest extends BaseModel
{
public function __construct(
public ?bool $async = null,
public ?bool $enabled = null,
/** @var array<AWSRekognitionRule>|null */
#[ArrayOf(AWSRekognitionRule::class)]
public ?array $rules = null,
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
19 changes: 19 additions & 0 deletions src/GeneratedModels/AIVideoConfigResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class AIVideoConfigResponse extends BaseModel
{
public function __construct(
public ?bool $async = null,
public ?bool $enabled = null,
/** @var array<AWSRekognitionRule>|null */
#[ArrayOf(AWSRekognitionRule::class)]
public ?array $rules = null,
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
2 changes: 1 addition & 1 deletion src/GeneratedModels/AcceptFollowRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AcceptFollowRequest extends BaseModel
public function __construct(
public ?string $source = null, // Fully qualified ID of the source feed
public ?string $target = null, // Fully qualified ID of the target feed
public ?string $followerRole = null, // Optional role for the follower in the follow relationship
public ?string $followerRole = null, // Optional role for the follower in the follow relationship. Server-side only. Either a built-in ('feed_follower' (the default) or 'feed_member_viewer') or any role your app has defined; grants are not inspected.
) {
}

Expand Down
16 changes: 16 additions & 0 deletions src/GeneratedModels/ActivityProcessingConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
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 $blockedTags = null, // Interest tags the LLM activity processors are never allowed to write. Mutually exclusive with allowed_tags.
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
2 changes: 1 addition & 1 deletion src/GeneratedModels/AnalyzeResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class AnalyzeResponse extends BaseModel
{
public function __construct(
public ?string $status = null, // Always `complete` — /analyze is sync-only and the full verdict is in the response.
public ?string $status = null, // `complete` (all fields screened), `partial` (mix of verdicts and per-field errors), or `pending` (async).
/** @var array<string, AnalyzeTextField>|null */
#[MapOf(AnalyzeTextField::class)]
public ?array $texts = null, // Per-text-field moderation verdicts keyed by caller label.
Expand Down
3 changes: 3 additions & 0 deletions src/GeneratedModels/AppResponseFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ public function __construct(
public ?bool $moderationOnboardingComplete = null,
public ?bool $moderationVideoCallModerationEnabled = null,
public ?bool $moderationAudioCallModerationEnabled = null,
public ?bool $moderationKeyframeVideoEnabled = null,
public ?string $moderationS3ImageAccessRoleArn = null,
public ?array $activityMetricsConfig = null,
public ?bool $memberCustomOnMessagesEnabled = null,
public ?bool $memberCustomOnMentionedUsersEnabled = null,
public ?bool $memberCustomOnTypingEventsEnabled = null,
) {
}

Expand Down
2 changes: 2 additions & 0 deletions src/GeneratedModels/ChannelBatchUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public function __construct(
#[ArrayOf(ChannelBatchMemberRequest::class)]
public ?array $members = null,
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`
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/GeneratedModels/ChannelMemberRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ChannelMemberRequest extends BaseModel
{
public function __construct(
public ?string $userID = null,
public ?UserResponse $user = null, // User response object
public ?MemberUserRequest $user = null,
public ?object $custom = null,
public ?string $channelRole = null, // Role of the member in the channel
) {
Expand Down
2 changes: 1 addition & 1 deletion src/GeneratedModels/ConfigResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(
public ?AITextConfig $aiTextConfig = null,
public ?LLMConfig $llmConfig = null,
public ?AIImageConfig $aiImageConfig = null,
public ?AIVideoConfig $aiVideoConfig = null,
public ?AIVideoConfigResponse $aiVideoConfig = null,
public ?AIAudioConfigResponse $aiAudioConfig = null,
public ?VelocityFilterConfig $velocityFilterConfig = null,
public ?FloodConfig $floodConfig = null,
Expand Down
2 changes: 2 additions & 0 deletions src/GeneratedModels/CreateFeedGroupRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public function __construct(
public ?StoriesConfig $stories = null,
public ?object $custom = null, // Custom data for the feed group
public ?string $defaultVisibility = null, // Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
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
/** @var array<ActivityProcessorConfig>|null */
#[ArrayOf(ActivityProcessorConfig::class)]
public ?array $activityProcessors = null, // Configuration for activity processors
Expand All @@ -21,6 +22,7 @@ public function __construct(
public ?RankingConfig $ranking = null,
public ?AggregationConfig $aggregation = null,
public ?ActivityFilterConfig $activityFilter = null,
public ?ActivityProcessingConfig $activityProcessing = null,
) {
}

Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/CreateFeedsBatchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public function __construct(
/** @var array<FeedRequest>|null */
#[ArrayOf(FeedRequest::class)]
public ?array $feeds = null, // List of feeds to create
public ?bool $createUsers = null, // Server-side only. If true, auto-creates users referenced by feeds[].created_by_id that don't already exist. Default: false.
public ?bool $enrichOwnFields = null, // If true, enriches the created feeds with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
) {
}
Expand Down
19 changes: 19 additions & 0 deletions src/GeneratedModels/CreateReminderResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
/**
* Basic response information
*/
class CreateReminderResponse extends BaseModel
{
public function __construct(
public ?ReminderResponseData $reminder = null,
public ?string $duration = null, // Duration of the request in milliseconds
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
1 change: 1 addition & 0 deletions src/GeneratedModels/FeedGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public function __construct(
public ?NotificationConfig $notification = null,
public ?PushNotificationConfig $pushNotification = null,
public ?string $defaultVisibility = null,
public ?string $defaultFollowerRole = null,
public ?object $custom = null,
public ?\DateTime $createdAt = null,
public ?\DateTime $updatedAt = null,
Expand Down
2 changes: 2 additions & 0 deletions src/GeneratedModels/FeedGroupResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public function __construct(
public ?NotificationConfig $notification = 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
public ?object $custom = null, // Custom data for the feed group
public ?\DateTime $createdAt = null, // When the feed group was created
public ?\DateTime $updatedAt = null, // When the feed group was last updated
Expand All @@ -24,6 +25,7 @@ public function __construct(
public ?RankingConfig $ranking = null,
public ?AggregationConfig $aggregation = null,
public ?ActivityFilterConfig $activityFilter = null,
public ?ActivityProcessingConfig $activityProcessing = null,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/GeneratedModels/FollowResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(
public ?\DateTime $requestAcceptedAt = null, // When the follow request was accepted
public ?\DateTime $requestRejectedAt = null, // When the follow request was rejected
public ?string $status = null, // Status of the follow relationship. One of: accepted, pending, rejected
public ?string $followerRole = null, // Role of the follower (source user) in the follow relationship
public ?string $followerRole = null, // Role of the follower (source user) in the follow relationship, as stored. A reserved name, or a role your app no longer defines, is reported as stored but evaluated as 'feed_follower'.
public ?\DateTime $createdAt = null, // When the follow relationship was created
public ?\DateTime $updatedAt = null, // When the follow relationship was last updated
) {
Expand Down
2 changes: 2 additions & 0 deletions src/GeneratedModels/GetOrCreateFeedGroupRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public function __construct(
public ?StoriesConfig $stories = null,
public ?object $custom = null, // Custom data for the feed group
public ?string $defaultVisibility = null, // Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
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
/** @var array<ActivityProcessorConfig>|null */
#[ArrayOf(ActivityProcessorConfig::class)]
public ?array $activityProcessors = null, // Configuration for activity processors
Expand All @@ -20,6 +21,7 @@ public function __construct(
public ?RankingConfig $ranking = null,
public ?AggregationConfig $aggregation = null,
public ?ActivityFilterConfig $activityFilter = null,
public ?ActivityProcessingConfig $activityProcessing = null,
) {
}

Expand Down
24 changes: 24 additions & 0 deletions src/GeneratedModels/MemberUserRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class MemberUserRequest extends BaseModel
{
public function __construct(
public ?string $id = null,
public ?string $name = null,
public ?string $image = null,
public ?object $custom = null,
public ?string $language = null,
public ?bool $invisible = null,
public ?PrivacySettingsResponse $privacySettings = null,
public ?string $role = null,
public ?array $teamsRole = null,
public ?array $teams = null,
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
3 changes: 3 additions & 0 deletions src/GeneratedModels/MessageResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public function __construct(
public ?ReminderResponseData $reminder = null,
public ?SharedLocationResponseData $sharedLocation = null,
public ?bool $deletedForMe = null,
/** @var array<string, ChannelMemberPartialResponse>|null */
#[MapOf(ChannelMemberPartialResponse::class)]
public ?array $mentionedChannelMembers = null, // Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message
) {
}

Expand Down
3 changes: 3 additions & 0 deletions src/GeneratedModels/MessageWithChannelResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public function __construct(
public ?ReminderResponseData $reminder = null,
public ?SharedLocationResponseData $sharedLocation = null,
public ?bool $deletedForMe = null,
/** @var array<string, ChannelMemberPartialResponse>|null */
#[MapOf(ChannelMemberPartialResponse::class)]
public ?array $mentionedChannelMembers = null, // Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message
public ?ChannelResponse $channel = null, // Represents channel in chat
) {
}
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/ModerationFlagResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function __construct(
public ?array $result = null,
public ?string $reviewQueueItemID = null,
public ?ReviewQueueItemResponse $reviewQueueItem = null,
public ?\DateTime $contentPublishedAt = null,
public ?\DateTime $createdAt = null,
public ?\DateTime $updatedAt = null,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/GeneratedModels/PollResponseData.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public function __construct(
public ?string $id = null,
public ?string $name = null,
public ?string $description = null,
public ?string $votingVisibility = null,
public ?string $votingVisibility = null, // Voting visibility of the poll
public ?bool $enforceUniqueVote = null,
public ?int $maxVotesAllowed = null,
public ?bool $allowUserSuggestedOptions = null,
Expand Down
3 changes: 3 additions & 0 deletions src/GeneratedModels/SearchResultMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public function __construct(
public ?ReminderResponseData $reminder = null,
public ?SharedLocationResponseData $sharedLocation = null,
public ?bool $deletedForMe = null,
/** @var array<string, ChannelMemberPartialResponse>|null */
#[MapOf(ChannelMemberPartialResponse::class)]
public ?array $mentionedChannelMembers = null,
public ?ChannelResponse $channel = null, // Represents channel in chat
) {
}
Expand Down
19 changes: 19 additions & 0 deletions src/GeneratedModels/TranslateMessageResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
/**
* Basic response information
*/
class TranslateMessageResponse extends BaseModel
{
public function __construct(
public ?MessageResponse $message = null, // Represents any chat message
public ?string $duration = null, // Duration of the request in milliseconds
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
Loading
Loading