diff --git a/src/Generated/ChatTrait.php b/src/Generated/ChatTrait.php index 3908f3c..8635fb5 100644 --- a/src/Generated/ChatTrait.php +++ b/src/Generated/ChatTrait.php @@ -1230,7 +1230,7 @@ public function queryReactions(string $id, GeneratedModels\QueryReactionsRequest * * @param string $id * @param GeneratedModels\TranslateMessageRequest $requestData - * @return StreamResponse + * @return StreamResponse * @throws StreamException */ public function translateMessage(string $id, GeneratedModels\TranslateMessageRequest $requestData): StreamResponse { @@ -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 @@ -1356,7 +1356,7 @@ public function updateReminder(string $messageID, GeneratedModels\UpdateReminder * * @param string $messageID * @param GeneratedModels\CreateReminderRequest $requestData - * @return StreamResponse + * @return StreamResponse * @throws StreamException */ public function createReminder(string $messageID, GeneratedModels\CreateReminderRequest $requestData): StreamResponse { @@ -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 diff --git a/src/Generated/FeedsTrait.php b/src/Generated/FeedsTrait.php index 417632d..e6144b0 100644 --- a/src/Generated/FeedsTrait.php +++ b/src/Generated/FeedsTrait.php @@ -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 * @throws StreamException @@ -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 diff --git a/src/Generated/VideoTrait.php b/src/Generated/VideoTrait.php index b300560..a53b00a 100644 --- a/src/Generated/VideoTrait.php +++ b/src/Generated/VideoTrait.php @@ -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 * @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); diff --git a/src/GeneratedModels/AIVideoConfig.php b/src/GeneratedModels/AIVideoConfig.php index 40ba94c..48b7748 100644 --- a/src/GeneratedModels/AIVideoConfig.php +++ b/src/GeneratedModels/AIVideoConfig.php @@ -11,6 +11,7 @@ public function __construct( /** @var array|null */ #[ArrayOf(AWSRekognitionRule::class)] public ?array $rules = null, + public ?string $provider = null, ) { } diff --git a/src/GeneratedModels/AIVideoConfigRequest.php b/src/GeneratedModels/AIVideoConfigRequest.php new file mode 100644 index 0000000..0af3e61 --- /dev/null +++ b/src/GeneratedModels/AIVideoConfigRequest.php @@ -0,0 +1,19 @@ +|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. +} diff --git a/src/GeneratedModels/AIVideoConfigResponse.php b/src/GeneratedModels/AIVideoConfigResponse.php new file mode 100644 index 0000000..ffff24b --- /dev/null +++ b/src/GeneratedModels/AIVideoConfigResponse.php @@ -0,0 +1,19 @@ +|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. +} diff --git a/src/GeneratedModels/AcceptFollowRequest.php b/src/GeneratedModels/AcceptFollowRequest.php index 35a4628..756093f 100644 --- a/src/GeneratedModels/AcceptFollowRequest.php +++ b/src/GeneratedModels/AcceptFollowRequest.php @@ -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. ) { } diff --git a/src/GeneratedModels/ActivityProcessingConfig.php b/src/GeneratedModels/ActivityProcessingConfig.php new file mode 100644 index 0000000..90b57ec --- /dev/null +++ b/src/GeneratedModels/ActivityProcessingConfig.php @@ -0,0 +1,16 @@ +|null */ #[MapOf(AnalyzeTextField::class)] public ?array $texts = null, // Per-text-field moderation verdicts keyed by caller label. diff --git a/src/GeneratedModels/AppResponseFields.php b/src/GeneratedModels/AppResponseFields.php index 8af75dd..9301681 100644 --- a/src/GeneratedModels/AppResponseFields.php +++ b/src/GeneratedModels/AppResponseFields.php @@ -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, ) { } diff --git a/src/GeneratedModels/ChannelBatchUpdateRequest.php b/src/GeneratedModels/ChannelBatchUpdateRequest.php index 9ee7ba9..19a284e 100644 --- a/src/GeneratedModels/ChannelBatchUpdateRequest.php +++ b/src/GeneratedModels/ChannelBatchUpdateRequest.php @@ -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` ) { } diff --git a/src/GeneratedModels/ChannelMemberRequest.php b/src/GeneratedModels/ChannelMemberRequest.php index 26b29ea..390d876 100644 --- a/src/GeneratedModels/ChannelMemberRequest.php +++ b/src/GeneratedModels/ChannelMemberRequest.php @@ -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 ) { diff --git a/src/GeneratedModels/ConfigResponse.php b/src/GeneratedModels/ConfigResponse.php index b62c500..9d86514 100644 --- a/src/GeneratedModels/ConfigResponse.php +++ b/src/GeneratedModels/ConfigResponse.php @@ -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, diff --git a/src/GeneratedModels/CreateFeedGroupRequest.php b/src/GeneratedModels/CreateFeedGroupRequest.php index 9f4bff9..1d5e439 100644 --- a/src/GeneratedModels/CreateFeedGroupRequest.php +++ b/src/GeneratedModels/CreateFeedGroupRequest.php @@ -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|null */ #[ArrayOf(ActivityProcessorConfig::class)] public ?array $activityProcessors = null, // Configuration for activity processors @@ -21,6 +22,7 @@ public function __construct( public ?RankingConfig $ranking = null, public ?AggregationConfig $aggregation = null, public ?ActivityFilterConfig $activityFilter = null, + public ?ActivityProcessingConfig $activityProcessing = null, ) { } diff --git a/src/GeneratedModels/CreateFeedsBatchRequest.php b/src/GeneratedModels/CreateFeedsBatchRequest.php index e0a18f3..56be956 100644 --- a/src/GeneratedModels/CreateFeedsBatchRequest.php +++ b/src/GeneratedModels/CreateFeedsBatchRequest.php @@ -9,6 +9,7 @@ public function __construct( /** @var array|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. ) { } diff --git a/src/GeneratedModels/CreateReminderResponse.php b/src/GeneratedModels/CreateReminderResponse.php new file mode 100644 index 0000000..4687075 --- /dev/null +++ b/src/GeneratedModels/CreateReminderResponse.php @@ -0,0 +1,19 @@ +|null */ #[ArrayOf(ActivityProcessorConfig::class)] public ?array $activityProcessors = null, // Configuration for activity processors @@ -20,6 +21,7 @@ public function __construct( public ?RankingConfig $ranking = null, public ?AggregationConfig $aggregation = null, public ?ActivityFilterConfig $activityFilter = null, + public ?ActivityProcessingConfig $activityProcessing = null, ) { } diff --git a/src/GeneratedModels/MemberUserRequest.php b/src/GeneratedModels/MemberUserRequest.php new file mode 100644 index 0000000..15fe895 --- /dev/null +++ b/src/GeneratedModels/MemberUserRequest.php @@ -0,0 +1,24 @@ +|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 ) { } diff --git a/src/GeneratedModels/MessageWithChannelResponse.php b/src/GeneratedModels/MessageWithChannelResponse.php index 92942a4..c4259d1 100644 --- a/src/GeneratedModels/MessageWithChannelResponse.php +++ b/src/GeneratedModels/MessageWithChannelResponse.php @@ -72,6 +72,9 @@ public function __construct( public ?ReminderResponseData $reminder = null, public ?SharedLocationResponseData $sharedLocation = null, public ?bool $deletedForMe = null, + /** @var array|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 ) { } diff --git a/src/GeneratedModels/ModerationFlagResponse.php b/src/GeneratedModels/ModerationFlagResponse.php index 0c68aec..79e1bdc 100644 --- a/src/GeneratedModels/ModerationFlagResponse.php +++ b/src/GeneratedModels/ModerationFlagResponse.php @@ -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, ) { diff --git a/src/GeneratedModels/PollResponseData.php b/src/GeneratedModels/PollResponseData.php index 2e8ef89..427b2f7 100644 --- a/src/GeneratedModels/PollResponseData.php +++ b/src/GeneratedModels/PollResponseData.php @@ -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, diff --git a/src/GeneratedModels/SearchResultMessage.php b/src/GeneratedModels/SearchResultMessage.php index 5cf4c20..12725c7 100644 --- a/src/GeneratedModels/SearchResultMessage.php +++ b/src/GeneratedModels/SearchResultMessage.php @@ -69,6 +69,9 @@ public function __construct( public ?ReminderResponseData $reminder = null, public ?SharedLocationResponseData $sharedLocation = null, public ?bool $deletedForMe = null, + /** @var array|null */ + #[MapOf(ChannelMemberPartialResponse::class)] + public ?array $mentionedChannelMembers = null, public ?ChannelResponse $channel = null, // Represents channel in chat ) { } diff --git a/src/GeneratedModels/TranslateMessageResponse.php b/src/GeneratedModels/TranslateMessageResponse.php new file mode 100644 index 0000000..279968d --- /dev/null +++ b/src/GeneratedModels/TranslateMessageResponse.php @@ -0,0 +1,19 @@ +|null */ #[ArrayOf(ActivityProcessorConfig::class)] public ?array $activityProcessors = null, // Configuration for activity processors @@ -20,6 +21,7 @@ public function __construct( public ?RankingConfig $ranking = null, public ?AggregationConfig $aggregation = null, public ?ActivityFilterConfig $activityFilter = null, + public ?ActivityProcessingConfig $activityProcessing = null, ) { } diff --git a/src/GeneratedModels/UpdateFollowRequest.php b/src/GeneratedModels/UpdateFollowRequest.php index 197f19a..8c2ccdb 100644 --- a/src/GeneratedModels/UpdateFollowRequest.php +++ b/src/GeneratedModels/UpdateFollowRequest.php @@ -18,7 +18,7 @@ public function __construct( public ?int $activityCopyLimit = null, // Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000. public ?bool $enrichOwnFields = null, // If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance. public ?bool $createUsers = null, // If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. Use directly on single follow endpoints (Follow, GetOrCreateFollow). On batch endpoints (FollowBatch, GetOrCreateFollows), use the top-level create_users field; per-item follows[i].create_users is rejected. - public ?string $followerRole = null, + 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. ) { } diff --git a/src/GeneratedModels/UpsertConfigRequest.php b/src/GeneratedModels/UpsertConfigRequest.php index 63f7b00..ea3a9a5 100644 --- a/src/GeneratedModels/UpsertConfigRequest.php +++ b/src/GeneratedModels/UpsertConfigRequest.php @@ -17,7 +17,7 @@ public function __construct( public ?LLMConfig $llmConfig = null, public ?GoogleVisionConfig $googleVisionConfig = null, public ?AIImageConfig $aiImageConfig = null, - public ?AIVideoConfig $aiVideoConfig = null, + public ?AIVideoConfigRequest $aiVideoConfig = null, public ?AIAudioConfigRequest $aiAudioConfig = null, public ?VelocityFilterConfig $velocityFilterConfig = null, public ?FloodConfig $floodConfig = null,