diff --git a/src/Generated/ChatTrait.php b/src/Generated/ChatTrait.php index 14769ca..9cd68bf 100644 --- a/src/Generated/ChatTrait.php +++ b/src/Generated/ChatTrait.php @@ -279,7 +279,7 @@ public function deleteChannel(string $type, string $id, ?bool $hardDelete = null return StreamResponse::fromJson($this->makeRequest('DELETE', $path, $queryParams, $requestData), GeneratedModels\DeleteChannelResponse::class); } /** - * Returns a channel by its CID without creating it. Responds with 404 when the channel does not exist, so it doubles as an existence check. Pass state=true to also load messages, read state and watchers. + * Returns a channel by its CID without creating it. Responds with 404 when the channel does not exist, so it doubles as an existence check. Pass state=true to also load messages, read state and watchers, and the messages_id_* parameters to page those messages by message ID. * * @param string $type * @param string $id @@ -287,10 +287,16 @@ public function deleteChannel(string $type, string $id, ?bool $hardDelete = null * @param ?int $messagesLimit * @param ?int $membersLimit * @param ?int $watchersLimit + * @param ?string $messagesIDLt + * @param ?string $messagesIDLte + * @param ?string $messagesIDGt + * @param ?string $messagesIDGte + * @param ?string $messagesIDAround + * @param ?string $userID * @return StreamResponse * @throws StreamException */ - public function getChannel(string $type, string $id, ?bool $state = null, ?int $messagesLimit = null, ?int $membersLimit = null, ?int $watchersLimit = null): StreamResponse { + public function getChannel(string $type, string $id, ?bool $state = null, ?int $messagesLimit = null, ?int $membersLimit = null, ?int $watchersLimit = null, ?string $messagesIDLt = null, ?string $messagesIDLte = null, ?string $messagesIDGt = null, ?string $messagesIDGte = null, ?string $messagesIDAround = null, ?string $userID = null): StreamResponse { $path = '/api/v2/chat/channels/{type}/{id}'; $path = str_replace('{type}', (string) $type, $path); $path = str_replace('{id}', (string) $id, $path); @@ -308,6 +314,24 @@ public function getChannel(string $type, string $id, ?bool $state = null, ?int $ if ($watchersLimit !== null) { $queryParams['watchers_limit'] = $watchersLimit; } + if ($messagesIDLt !== null) { + $queryParams['messages_id_lt'] = $messagesIDLt; + } + if ($messagesIDLte !== null) { + $queryParams['messages_id_lte'] = $messagesIDLte; + } + if ($messagesIDGt !== null) { + $queryParams['messages_id_gt'] = $messagesIDGt; + } + if ($messagesIDGte !== null) { + $queryParams['messages_id_gte'] = $messagesIDGte; + } + if ($messagesIDAround !== null) { + $queryParams['messages_id_around'] = $messagesIDAround; + } + if ($userID !== null) { + $queryParams['user_id'] = $userID; + } $requestData = null; return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\ChannelStateResponse::class); } @@ -547,6 +571,7 @@ public function updateMemberPartial(string $type, string $id, GeneratedModels\Up /** * Sends new message to the specified channel * Sends events: + * - channel.visible * - message.new * - message.updated * @@ -571,10 +596,11 @@ public function sendMessage(string $type, string $id, GeneratedModels\SendMessag * @param string $type * @param string $id * @param array $ids + * @param ?array $memberCustomInclude * @return StreamResponse * @throws StreamException */ - public function getManyMessages(string $type, string $id, array $ids): StreamResponse { + public function getManyMessages(string $type, string $id, array $ids, ?array $memberCustomInclude = null): StreamResponse { $path = '/api/v2/chat/channels/{type}/{id}/messages'; $path = str_replace('{type}', (string) $type, $path); $path = str_replace('{id}', (string) $id, $path); @@ -583,6 +609,9 @@ public function getManyMessages(string $type, string $id, array $ids): StreamRes if ($ids !== null) { $queryParams['ids'] = $ids; } + if ($memberCustomInclude !== null) { + $queryParams['member_custom_include'] = $memberCustomInclude; + } $requestData = null; return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\GetManyMessagesResponse::class); } @@ -849,7 +878,7 @@ public function queryDrafts(GeneratedModels\QueryDraftsRequest $requestData): St return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\QueryDraftsResponse::class); } /** - * Exports channel data to JSON file + * Exports channel data to a JSON or CSV file (CSV requires version=v2) * * @param GeneratedModels\ExportChannelsRequest $requestData * @return StreamResponse @@ -1272,10 +1301,11 @@ public function createReminder(string $messageID, GeneratedModels\CreateReminder * @param ?string $idLt * @param ?string $idAround * @param ?array $sort + * @param ?array $memberCustomInclude * @return StreamResponse * @throws StreamException */ - public function getReplies(string $parentID, ?int $limit = null, ?string $idGte = null, ?string $idGt = null, ?string $idLte = null, ?string $idLt = null, ?string $idAround = null, ?array $sort = null): StreamResponse { + public function getReplies(string $parentID, ?int $limit = null, ?string $idGte = null, ?string $idGt = null, ?string $idLte = null, ?string $idLt = null, ?string $idAround = null, ?array $sort = null, ?array $memberCustomInclude = null): StreamResponse { $path = '/api/v2/chat/messages/{parent_id}/replies'; $path = str_replace('{parent_id}', (string) $parentID, $path); @@ -1301,6 +1331,9 @@ public function getReplies(string $parentID, ?int $limit = null, ?string $idGte if ($sort !== null) { $queryParams['sort'] = $sort; } + if ($memberCustomInclude !== null) { + $queryParams['member_custom_include'] = $memberCustomInclude; + } $requestData = null; return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\GetRepliesResponse::class); } diff --git a/src/Generated/CommonTrait.php b/src/Generated/CommonTrait.php index 7bf7128..4f62127 100644 --- a/src/Generated/CommonTrait.php +++ b/src/Generated/CommonTrait.php @@ -45,22 +45,18 @@ public function updateApp(GeneratedModels\UpdateAppRequest $requestData): Stream * Returns all available block lists * * @param ?string $team - * @param ?string $ownerUserID * @param ?string $cursor * @param ?int $limit * @return StreamResponse * @throws StreamException */ - public function listBlockLists(?string $team = null, ?string $ownerUserID = null, ?string $cursor = null, ?int $limit = null): StreamResponse { + public function listBlockLists(?string $team = null, ?string $cursor = null, ?int $limit = null): StreamResponse { $path = '/api/v2/blocklists'; $queryParams = []; if ($team !== null) { $queryParams['team'] = $team; } - if ($ownerUserID !== null) { - $queryParams['owner_user_id'] = $ownerUserID; - } if ($cursor !== null) { $queryParams['cursor'] = $cursor; } @@ -91,12 +87,14 @@ public function createBlockList(GeneratedModels\CreateBlockListRequest $requestD * For lists exceeding the HTTP request-body cap, issue repeated import calls each * carrying a bounded slice of items — the task result accumulates correctly. * + * @param string $id * @param GeneratedModels\ImportBlockListRequest $requestData * @return StreamResponse * @throws StreamException */ - public function importBlockList(GeneratedModels\ImportBlockListRequest $requestData): StreamResponse { + public function importBlockList(string $id, GeneratedModels\ImportBlockListRequest $requestData): StreamResponse { $path = '/api/v2/blocklists/{id}/import'; + $path = str_replace('{id}', (string) $id, $path); $queryParams = []; // Use the provided request data array directly @@ -107,11 +105,11 @@ public function importBlockList(GeneratedModels\ImportBlockListRequest $requestD * * @param string $name * @param ?string $team - * @param ?string $ownerUserID + * @param ?string $userID * @return StreamResponse * @throws StreamException */ - public function deleteBlockList(string $name, ?string $team = null, ?string $ownerUserID = null): StreamResponse { + public function deleteBlockList(string $name, ?string $team = null, ?string $userID = null): StreamResponse { $path = '/api/v2/blocklists/{name}'; $path = str_replace('{name}', (string) $name, $path); @@ -119,8 +117,8 @@ public function deleteBlockList(string $name, ?string $team = null, ?string $own if ($team !== null) { $queryParams['team'] = $team; } - if ($ownerUserID !== null) { - $queryParams['owner_user_id'] = $ownerUserID; + if ($userID !== null) { + $queryParams['user_id'] = $userID; } $requestData = null; return StreamResponse::fromJson($this->makeRequest('DELETE', $path, $queryParams, $requestData), GeneratedModels\Response::class); @@ -451,7 +449,7 @@ public function getImporterExternalStorage(): StreamResponse { return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\GetExternalStorageResponse::class); } /** - * Creates or updates the external storage configuration for the app. Currently only AWS S3 (via cross-account IAM role assumption) is supported. + * Creates or updates the external storage configuration for the app. Supports AWS S3 (via cross-account IAM role assumption) and GCS (via service-account JSON credentials). * * @param GeneratedModels\UpsertExternalStorageRequest $requestData * @return StreamResponse @@ -465,7 +463,7 @@ public function upsertImporterExternalStorage(GeneratedModels\UpsertExternalStor return StreamResponse::fromJson($this->makeRequest('PUT', $path, $queryParams, $requestData), GeneratedModels\UpsertExternalStorageResponse::class); } /** - * Validates the configured external S3 storage by performing a live STS AssumeRole and S3 ListObjectsV2 check. + * Validates the configured external storage. For AWS S3, performs a live STS AssumeRole and S3 ListObjectsV2 check. For GCS, performs a live bucket listing check using the configured service-account credentials. * * @return StreamResponse * @throws StreamException @@ -762,19 +760,15 @@ public function deletePollOption(string $pollID, string $optionID, ?string $user * * @param string $pollID * @param string $optionID - * @param ?string $userID * @return StreamResponse * @throws StreamException */ - public function getPollOption(string $pollID, string $optionID, ?string $userID = null): StreamResponse { + public function getPollOption(string $pollID, string $optionID): StreamResponse { $path = '/api/v2/polls/{poll_id}/options/{option_id}'; $path = str_replace('{poll_id}', (string) $pollID, $path); $path = str_replace('{option_id}', (string) $optionID, $path); $queryParams = []; - if ($userID !== null) { - $queryParams['user_id'] = $userID; - } $requestData = null; return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\PollOptionResponse::class); } @@ -898,11 +892,12 @@ public function upsertPushTemplate(GeneratedModels\UpsertPushTemplateRequest $re * @param ?bool $android * @param ?bool $ios * @param ?bool $web + * @param ?bool $unity * @param ?string $endpoints * @return StreamResponse * @throws StreamException */ - public function getRateLimits(?bool $serverSide = null, ?bool $android = null, ?bool $ios = null, ?bool $web = null, ?string $endpoints = null): StreamResponse { + public function getRateLimits(?bool $serverSide = null, ?bool $android = null, ?bool $ios = null, ?bool $web = null, ?bool $unity = null, ?string $endpoints = null): StreamResponse { $path = '/api/v2/rate_limits'; $queryParams = []; @@ -918,6 +913,9 @@ public function getRateLimits(?bool $serverSide = null, ?bool $android = null, ? if ($web !== null) { $queryParams['web'] = $web; } + if ($unity !== null) { + $queryParams['unity'] = $unity; + } if ($endpoints !== null) { $queryParams['endpoints'] = $endpoints; } diff --git a/src/Generated/FeedsTrait.php b/src/Generated/FeedsTrait.php index ef76daa..7a82259 100644 --- a/src/Generated/FeedsTrait.php +++ b/src/Generated/FeedsTrait.php @@ -1618,11 +1618,12 @@ public function queryFeeds(GeneratedModels\QueryFeedsRequest $requestData): Stre * @param ?bool $android * @param ?bool $ios * @param ?bool $web + * @param ?bool $unity * @param ?bool $serverSide * @return StreamResponse * @throws StreamException */ - public function getFeedsRateLimits(?string $endpoints = null, ?bool $android = null, ?bool $ios = null, ?bool $web = null, ?bool $serverSide = null): StreamResponse { + public function getFeedsRateLimits(?string $endpoints = null, ?bool $android = null, ?bool $ios = null, ?bool $web = null, ?bool $unity = null, ?bool $serverSide = null): StreamResponse { $path = '/api/v2/feeds/feeds/rate_limits'; $queryParams = []; @@ -1638,6 +1639,9 @@ public function getFeedsRateLimits(?string $endpoints = null, ?bool $android = n if ($web !== null) { $queryParams['web'] = $web; } + if ($unity !== null) { + $queryParams['unity'] = $unity; + } if ($serverSide !== null) { $queryParams['server_side'] = $serverSide; } diff --git a/src/Generated/ModerationTrait.php b/src/Generated/ModerationTrait.php index 0dfea8d..dc23ed6 100644 --- a/src/Generated/ModerationTrait.php +++ b/src/Generated/ModerationTrait.php @@ -488,12 +488,14 @@ public function upsertModerationRule(GeneratedModels\UpsertModerationRuleRequest /** * Delete an existing moderation rule * + * @param string $id * @param ?string $userID * @return StreamResponse * @throws StreamException */ - public function deleteModerationRule(?string $userID = null): StreamResponse { + public function deleteModerationRule(string $id, ?string $userID = null): StreamResponse { $path = '/api/v2/moderation/moderation_rule/{id}'; + $path = str_replace('{id}', (string) $id, $path); $queryParams = []; if ($userID !== null) { @@ -505,11 +507,13 @@ public function deleteModerationRule(?string $userID = null): StreamResponse { /** * Get a specific moderation rule by ID * + * @param string $id * @return StreamResponse * @throws StreamException */ - public function getModerationRule(): StreamResponse { + public function getModerationRule(string $id): StreamResponse { $path = '/api/v2/moderation/moderation_rule/{id}'; + $path = str_replace('{id}', (string) $id, $path); $queryParams = []; $requestData = null; @@ -545,13 +549,100 @@ public function mute(GeneratedModels\MuteRequest $requestData): StreamResponse { } /** * + * @param string $id + * @return StreamResponse + * @throws StreamException + */ + public function getPolicyTestRun(string $id): StreamResponse { + $path = '/api/v2/moderation/policy_tests/runs/{id}'; + $path = str_replace('{id}', (string) $id, $path); + + $queryParams = []; + $requestData = null; + return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\PolicyTestRunResponse::class); + } + /** + * + * @return StreamResponse + * @throws StreamException + */ + public function listPolicyTestSets(): StreamResponse { + $path = '/api/v2/moderation/policy_tests/sets'; + + $queryParams = []; + $requestData = null; + return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\PolicyTestSetListResponse::class); + } + /** + * Save a labeled set of messages that can be re-run against the moderation policy. + * + * @param GeneratedModels\CreatePolicyTestSetRequest $requestData + * @return StreamResponse + * @throws StreamException + */ + public function createPolicyTestSet(GeneratedModels\CreatePolicyTestSetRequest $requestData): StreamResponse { + $path = '/api/v2/moderation/policy_tests/sets'; + + $queryParams = []; + // Use the provided request data array directly + return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\PolicyTestSetResponse::class); + } + /** + * + * @param string $id + * @return StreamResponse + * @throws StreamException + */ + public function deletePolicyTestSet(string $id): StreamResponse { + $path = '/api/v2/moderation/policy_tests/sets/{id}'; + $path = str_replace('{id}', (string) $id, $path); + + $queryParams = []; + $requestData = null; + return StreamResponse::fromJson($this->makeRequest('DELETE', $path, $queryParams, $requestData), GeneratedModels\Response::class); + } + /** + * + * @param string $id + * @return StreamResponse + * @throws StreamException + */ + public function getPolicyTestSet(string $id): StreamResponse { + $path = '/api/v2/moderation/policy_tests/sets/{id}'; + $path = str_replace('{id}', (string) $id, $path); + + $queryParams = []; + $requestData = null; + return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\PolicyTestSetResponse::class); + } + /** + * Enqueue a background run of the set against the saved live moderation config. + * + * @param string $id + * @return StreamResponse + * @throws StreamException + */ + public function startPolicyTestRun(string $id): StreamResponse { + $path = '/api/v2/moderation/policy_tests/sets/{id}/runs'; + $path = str_replace('{id}', (string) $id, $path); + + $queryParams = []; + $requestData = null; + return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\PolicyTestRunResponse::class); + } + /** + * + * @param ?string $userID * @return StreamResponse * @throws StreamException */ - public function listQueues(): StreamResponse { + public function listQueues(?string $userID = null): StreamResponse { $path = '/api/v2/moderation/queues'; $queryParams = []; + if ($userID !== null) { + $queryParams['user_id'] = $userID; + } $requestData = null; return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\ListQueuesResponse::class); } diff --git a/src/Generated/VideoTrait.php b/src/Generated/VideoTrait.php index eadfec8..b300560 100644 --- a/src/Generated/VideoTrait.php +++ b/src/Generated/VideoTrait.php @@ -1299,4 +1299,25 @@ public function queryAggregateCallStats(GeneratedModels\QueryAggregateCallStatsR // Use the provided request data array directly return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\QueryAggregateCallStatsResponse::class); } + /** + * 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 + * @return StreamResponse + * @throws StreamException + */ + public function getDailyDigest(?string $date = null, ?string $appID = null): StreamResponse { + $path = '/api/v2/video/stats/daily_digest'; + + $queryParams = []; + if ($date !== null) { + $queryParams['date'] = $date; + } + if ($appID !== null) { + $queryParams['app_id'] = $appID; + } + $requestData = null; + return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\GetDailyDigestResponse::class); + } } diff --git a/src/Generated/Webhook.php b/src/Generated/Webhook.php index 25a4946..f72aa43 100644 --- a/src/Generated/Webhook.php +++ b/src/Generated/Webhook.php @@ -131,6 +131,7 @@ use GetStream\GeneratedModels\MessageUnblockedEvent; use GetStream\GeneratedModels\MessageUndeletedEvent; use GetStream\GeneratedModels\MessageUpdatedEvent; +use GetStream\GeneratedModels\ModerationAnalysisFailedEvent; use GetStream\GeneratedModels\ModerationCheckCompletedEvent; use GetStream\GeneratedModels\ModerationCustomActionEvent; use GetStream\GeneratedModels\ModerationFlaggedEvent; @@ -321,6 +322,7 @@ class Webhook public const EVENT_TYPE_MESSAGE_UNBLOCKED = 'message.unblocked'; public const EVENT_TYPE_MESSAGE_UNDELETED = 'message.undeleted'; public const EVENT_TYPE_MESSAGE_UPDATED = 'message.updated'; + public const EVENT_TYPE_MODERATION_ANALYSIS_FAILED = 'moderation.analysis.failed'; public const EVENT_TYPE_MODERATION_CUSTOM_ACTION = 'moderation.custom_action'; public const EVENT_TYPE_MODERATION_FLAGGED = 'moderation.flagged'; public const EVENT_TYPE_MODERATION_IMAGE_ANALYSIS_COMPLETE = 'moderation.image_analysis.complete'; @@ -562,6 +564,7 @@ private static function getEventClass(string $eventType): ?string 'message.unblocked' => MessageUnblockedEvent::class, 'message.undeleted' => MessageUndeletedEvent::class, 'message.updated' => MessageUpdatedEvent::class, + 'moderation.analysis.failed' => ModerationAnalysisFailedEvent::class, 'moderation.custom_action' => ModerationCustomActionEvent::class, 'moderation.flagged' => ModerationFlaggedEvent::class, 'moderation.image_analysis.complete' => ModerationImageAnalysisCompleteEvent::class, diff --git a/src/GeneratedModels/AbsentMetric.php b/src/GeneratedModels/AbsentMetric.php new file mode 100644 index 0000000..2f43203 --- /dev/null +++ b/src/GeneratedModels/AbsentMetric.php @@ -0,0 +1,16 @@ +|null */ + #[ArrayOf(CollectionRequest::class)] + public ?array $collections = null, // Collections to create or update as part of this request, so an activity and the collections it references can be written in one call. Their refs (name:id) are added to collection_refs automatically; you do not need to restate them, and they count toward the same per-activity collection-reference limit, which is the effective cap here. A collection that already exists has its custom data updated. Use collection_refs instead when the collection already exists and you are only referencing it, which requires no collection permissions. public ?string $parentID = null, // ID of parent activity for replies/comments public ?string $pollID = null, // ID of a poll to attach to activity public ?object $custom = null, // Custom data for the activity diff --git a/src/GeneratedModels/ActivityResponse.php b/src/GeneratedModels/ActivityResponse.php index 42cf619..6304735 100644 --- a/src/GeneratedModels/ActivityResponse.php +++ b/src/GeneratedModels/ActivityResponse.php @@ -8,7 +8,7 @@ class ActivityResponse extends BaseModel public function __construct( public ?string $id = null, // Unique identifier for the activity public ?string $type = null, // Type of activity - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?array $feeds = null, // List of feed IDs containing this activity public ?string $visibility = null, // Visibility setting for the activity. One of: public, private, tag public ?string $visibilityTag = null, // If visibility is 'tag', this is the tag name diff --git a/src/GeneratedModels/AddActivityRequest.php b/src/GeneratedModels/AddActivityRequest.php index 78ed6e6..3938b1a 100644 --- a/src/GeneratedModels/AddActivityRequest.php +++ b/src/GeneratedModels/AddActivityRequest.php @@ -24,6 +24,9 @@ public function __construct( public ?array $filterTags = null, // Tags for filtering activities public ?array $interestTags = null, // Tags for indicating user interests public ?array $collectionRefs = null, // Collections that this activity references + /** @var array|null */ + #[ArrayOf(CollectionRequest::class)] + public ?array $collections = null, // Collections to create or update as part of this request, so an activity and the collections it references can be written in one call. Their refs (name:id) are added to collection_refs automatically; you do not need to restate them, and they count toward the same per-activity collection-reference limit, which is the effective cap here. A collection that already exists has its custom data updated. Use collection_refs instead when the collection already exists and you are only referencing it, which requires no collection permissions. public ?string $parentID = null, // ID of parent activity for replies/comments public ?string $pollID = null, // ID of a poll to attach to activity public ?object $custom = null, // Custom data for the activity diff --git a/src/GeneratedModels/AddBookmarkRequest.php b/src/GeneratedModels/AddBookmarkRequest.php index d5d76c8..74dd5bd 100644 --- a/src/GeneratedModels/AddBookmarkRequest.php +++ b/src/GeneratedModels/AddBookmarkRequest.php @@ -10,7 +10,7 @@ public function __construct( public ?AddFolderRequest $newFolder = null, public ?object $custom = null, // Custom data for the bookmark public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/AddCommentBookmarkRequest.php b/src/GeneratedModels/AddCommentBookmarkRequest.php index ac63e6b..501d993 100644 --- a/src/GeneratedModels/AddCommentBookmarkRequest.php +++ b/src/GeneratedModels/AddCommentBookmarkRequest.php @@ -10,7 +10,7 @@ public function __construct( public ?AddFolderRequest $newFolder = null, public ?object $custom = null, // Custom data for the bookmark public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/AddCommentReactionRequest.php b/src/GeneratedModels/AddCommentReactionRequest.php index fc070db..73c064b 100644 --- a/src/GeneratedModels/AddCommentReactionRequest.php +++ b/src/GeneratedModels/AddCommentReactionRequest.php @@ -15,7 +15,7 @@ public function __construct( public ?bool $enforceUnique = null, // Whether to enforce unique reactions per user (remove other reaction types from the user when adding this one) public ?array $targetFeeds = null, // Optional list of feeds to create a reference (share) activity of the commented-on activity in. The reference activity's type mirrors the reaction type. public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/AddCommentRequest.php b/src/GeneratedModels/AddCommentRequest.php index 59e5bef..0dd1708 100644 --- a/src/GeneratedModels/AddCommentRequest.php +++ b/src/GeneratedModels/AddCommentRequest.php @@ -23,7 +23,7 @@ public function __construct( public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for this comment public ?bool $forceModeration = null, // If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field. public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/AddReactionRequest.php b/src/GeneratedModels/AddReactionRequest.php index 1402e5d..5b9e0b5 100644 --- a/src/GeneratedModels/AddReactionRequest.php +++ b/src/GeneratedModels/AddReactionRequest.php @@ -16,7 +16,7 @@ public function __construct( public ?array $targetFeeds = null, // Optional list of feeds to create a reference (share) activity of the original activity in. The reference activity's type mirrors the reaction type. public ?bool $createUsers = null, // Server-side only. If true, auto-creates the reacting user identified by user_id when they don't already exist. Default: false. public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/AnalyzeRequest.php b/src/GeneratedModels/AnalyzeRequest.php index 6c43692..0649eac 100644 --- a/src/GeneratedModels/AnalyzeRequest.php +++ b/src/GeneratedModels/AnalyzeRequest.php @@ -16,7 +16,7 @@ public function __construct( public ?array $contentIds = null, // Optional map from a content label (either a `texts` key or an `image:` multipart label) to a caller-supplied per-instance identifier. Echoed on per-field verdicts and surfaced in `matched_contents` when an aggregation rule fires. public ?bool $asyncResponse = null, // When true, the response carries no verdicts (status `pending`) and per-modality results arrive via `moderation.text_analysis.complete` and `moderation.image_analysis.complete` webhooks. Image moderation runs on a background worker; text moderation runs synchronously and is then delivered via webhook. public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/AppResponseFields.php b/src/GeneratedModels/AppResponseFields.php index d4dedf2..8af75dd 100644 --- a/src/GeneratedModels/AppResponseFields.php +++ b/src/GeneratedModels/AppResponseFields.php @@ -38,6 +38,7 @@ public function __construct( public ?string $customActionHandlerUrl = null, public ?string $enforceUniqueUsernames = null, public ?string $videoPrimaryUseCase = null, + public ?string $chatPrimaryUseCase = null, public ?string $sqsUrl = null, public ?string $sqsKey = null, public ?string $sqsSecret = null, @@ -73,6 +74,7 @@ public function __construct( public ?bool $moderationAudioCallModerationEnabled = null, public ?string $moderationS3ImageAccessRoleArn = null, public ?array $activityMetricsConfig = null, + public ?bool $memberCustomOnMessagesEnabled = null, ) { } diff --git a/src/GeneratedModels/AppealItemResponse.php b/src/GeneratedModels/AppealItemResponse.php index d7a8eef..8e512d7 100644 --- a/src/GeneratedModels/AppealItemResponse.php +++ b/src/GeneratedModels/AppealItemResponse.php @@ -7,7 +7,7 @@ class AppealItemResponse extends BaseModel { public function __construct( public ?string $id = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $entityType = null, // Type of entity public ?string $entityID = null, // ID of the entity public ?ModerationPayload $entityContent = null, diff --git a/src/GeneratedModels/AppealRequest.php b/src/GeneratedModels/AppealRequest.php index be4eac6..030c18f 100644 --- a/src/GeneratedModels/AppealRequest.php +++ b/src/GeneratedModels/AppealRequest.php @@ -12,7 +12,7 @@ public function __construct( public ?array $attachments = null, // Array of Attachment URLs(e.g., images) public ?string $reviewQueueItemID = null, // ID of the review queue item (flagged message) that triggered the ban. Applicable only for user ban appeals. public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/Audience.php b/src/GeneratedModels/Audience.php new file mode 100644 index 0000000..d387c6e --- /dev/null +++ b/src/GeneratedModels/Audience.php @@ -0,0 +1,27 @@ +|null */ + #[ArrayOf(ConcurrencyMinute::class)] + public ?array $concurrencyByMinute = 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/AutomodDetailsResponse.php b/src/GeneratedModels/AutomodDetailsResponse.php index 190ebd0..6c04257 100644 --- a/src/GeneratedModels/AutomodDetailsResponse.php +++ b/src/GeneratedModels/AutomodDetailsResponse.php @@ -8,7 +8,7 @@ class AutomodDetailsResponse extends BaseModel public function __construct( public ?string $action = null, public ?string $originalMessageType = null, - public ?MessageModerationResult $result = null, + public ?MessageModerationResult $result = null, // Result of the message moderation public ?FlagMessageDetailsResponse $messageDetails = null, public ?array $imageLabels = null, ) { diff --git a/src/GeneratedModels/BanInfoResponse.php b/src/GeneratedModels/BanInfoResponse.php index 82e8050..14706c8 100644 --- a/src/GeneratedModels/BanInfoResponse.php +++ b/src/GeneratedModels/BanInfoResponse.php @@ -9,11 +9,13 @@ class BanInfoResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object + public ?string $channelCid = null, // The channel this ban applies to. Empty if this is an app-wide (global) ban rather than a per-channel ban. + public ?ChannelMetadata $channel = null, public ?\DateTime $expires = null, // When the ban expires public ?string $reason = null, // Reason for the ban public ?bool $shadow = null, // Whether this is a shadow ban - public ?UserResponse $createdBy = null, + public ?UserResponse $createdBy = null, // User response object public ?\DateTime $createdAt = null, // When the ban was created ) { } diff --git a/src/GeneratedModels/BanRequest.php b/src/GeneratedModels/BanRequest.php index abd8068..9dedbf4 100644 --- a/src/GeneratedModels/BanRequest.php +++ b/src/GeneratedModels/BanRequest.php @@ -13,7 +13,7 @@ public function __construct( public ?bool $shadow = null, // Whether this is a shadow ban public ?bool $ipBan = null, // Whether to ban the user's IP address public ?string $bannedByID = null, // ID of the user performing the ban - public ?UserRequest $bannedBy = null, + public ?UserRequest $bannedBy = null, // User request object public ?string $deleteMessages = null, ) { } diff --git a/src/GeneratedModels/BanResponse.php b/src/GeneratedModels/BanResponse.php index 0d4a04d..49f7665 100644 --- a/src/GeneratedModels/BanResponse.php +++ b/src/GeneratedModels/BanResponse.php @@ -6,12 +6,12 @@ class BanResponse extends BaseModel { public function __construct( - public ?ChannelResponse $channel = null, - public ?UserResponse $user = null, + public ?ChannelResponse $channel = null, // Represents channel in chat + public ?UserResponse $user = null, // User response object public ?\DateTime $expires = null, public ?string $reason = null, public ?bool $shadow = null, - public ?UserResponse $bannedBy = null, + public ?UserResponse $bannedBy = null, // User response object public ?\DateTime $createdAt = null, ) { } diff --git a/src/GeneratedModels/BatchQueryActivityReactionsRequest.php b/src/GeneratedModels/BatchQueryActivityReactionsRequest.php index 29002a6..f8bc83a 100644 --- a/src/GeneratedModels/BatchQueryActivityReactionsRequest.php +++ b/src/GeneratedModels/BatchQueryActivityReactionsRequest.php @@ -15,7 +15,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, // Server-side only. The user whose reactions to fetch; defaults to the authenticated user for client-side requests - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/BatchQueryCommentReactionsRequest.php b/src/GeneratedModels/BatchQueryCommentReactionsRequest.php index bfb4cae..9bb6137 100644 --- a/src/GeneratedModels/BatchQueryCommentReactionsRequest.php +++ b/src/GeneratedModels/BatchQueryCommentReactionsRequest.php @@ -15,7 +15,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, // Server-side only. The user whose reactions to fetch; defaults to the authenticated user for client-side requests - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/BlockListRule.php b/src/GeneratedModels/BlockListRule.php index d621829..c23cbbc 100644 --- a/src/GeneratedModels/BlockListRule.php +++ b/src/GeneratedModels/BlockListRule.php @@ -8,7 +8,6 @@ class BlockListRule extends BaseModel public function __construct( public ?string $name = null, public ?string $team = null, - public ?bool $ownerScope = null, public ?string $action = null, ) { } diff --git a/src/GeneratedModels/BlockUsersRequest.php b/src/GeneratedModels/BlockUsersRequest.php index 0814f15..598efd7 100644 --- a/src/GeneratedModels/BlockUsersRequest.php +++ b/src/GeneratedModels/BlockUsersRequest.php @@ -8,7 +8,7 @@ class BlockUsersRequest extends BaseModel public function __construct( public ?string $blockedUserID = null, // User id to block public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/BlockedUserEvent.php b/src/GeneratedModels/BlockedUserEvent.php index 5aea753..14d7d09 100644 --- a/src/GeneratedModels/BlockedUserEvent.php +++ b/src/GeneratedModels/BlockedUserEvent.php @@ -13,8 +13,8 @@ public function __construct( public ?string $type = null, // The type of event: "call.blocked_user" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?UserResponse $user = null, - public ?UserResponse $blockedByUser = null, + public ?UserResponse $user = null, // User response object + public ?UserResponse $blockedByUser = null, // User response object ) { } diff --git a/src/GeneratedModels/BlockedUserResponse.php b/src/GeneratedModels/BlockedUserResponse.php index 1f4a94b..838da85 100644 --- a/src/GeneratedModels/BlockedUserResponse.php +++ b/src/GeneratedModels/BlockedUserResponse.php @@ -6,9 +6,9 @@ class BlockedUserResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $userID = null, // ID of the user who blocked another user - public ?UserResponse $blockedUser = null, + public ?UserResponse $blockedUser = null, // User response object public ?string $blockedUserID = null, // ID of the user who got blocked public ?\DateTime $createdAt = null, ) { diff --git a/src/GeneratedModels/BookmarkFolderResponse.php b/src/GeneratedModels/BookmarkFolderResponse.php index 511e4de..0943bb2 100644 --- a/src/GeneratedModels/BookmarkFolderResponse.php +++ b/src/GeneratedModels/BookmarkFolderResponse.php @@ -7,7 +7,7 @@ class BookmarkFolderResponse extends BaseModel { public function __construct( public ?string $id = null, // Unique identifier for the folder - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $name = null, // Name of the folder public ?object $custom = null, // Custom data for the folder public ?\DateTime $createdAt = null, // When the folder was created diff --git a/src/GeneratedModels/BookmarkResponse.php b/src/GeneratedModels/BookmarkResponse.php index 3683af3..b6e33af 100644 --- a/src/GeneratedModels/BookmarkResponse.php +++ b/src/GeneratedModels/BookmarkResponse.php @@ -8,7 +8,7 @@ class BookmarkResponse extends BaseModel public function __construct( public ?string $objectType = null, // Type of the bookmarked object (activity or comment) public ?string $objectID = null, // ID of the bookmarked object - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?ActivityResponse $activity = null, public ?CommentResponse $comment = null, public ?BookmarkFolderResponse $folder = null, diff --git a/src/GeneratedModels/BroadcastDailyRollup.php b/src/GeneratedModels/BroadcastDailyRollup.php new file mode 100644 index 0000000..b8bc2c3 --- /dev/null +++ b/src/GeneratedModels/BroadcastDailyRollup.php @@ -0,0 +1,28 @@ +|null */ + #[ArrayOf(TopBroadcast::class)] + public ?array $topBroadcasts = 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/BroadcastDigest.php b/src/GeneratedModels/BroadcastDigest.php new file mode 100644 index 0000000..a6e4c89 --- /dev/null +++ b/src/GeneratedModels/BroadcastDigest.php @@ -0,0 +1,24 @@ +|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // the members added to this call diff --git a/src/GeneratedModels/CallDTMFEvent.php b/src/GeneratedModels/CallDTMFEvent.php index 61340d0..f744e02 100644 --- a/src/GeneratedModels/CallDTMFEvent.php +++ b/src/GeneratedModels/CallDTMFEvent.php @@ -16,7 +16,7 @@ public function __construct( public ?int $durationMs = null, // Duration of the digit press in milliseconds public ?int $seqNumber = null, // Monotonically increasing sequence number for ordering DTMF events within a session public ?\DateTime $timestamp = null, // When the digit press ended and was detected - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object ) { } diff --git a/src/GeneratedModels/CallDeletedEvent.php b/src/GeneratedModels/CallDeletedEvent.php index fccb505..d2bdb58 100644 --- a/src/GeneratedModels/CallDeletedEvent.php +++ b/src/GeneratedModels/CallDeletedEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.deleted" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call ) { } diff --git a/src/GeneratedModels/CallEndedEvent.php b/src/GeneratedModels/CallEndedEvent.php index 8becba7..cd54235 100644 --- a/src/GeneratedModels/CallEndedEvent.php +++ b/src/GeneratedModels/CallEndedEvent.php @@ -12,8 +12,8 @@ public function __construct( public ?string $type = null, // The type of event: "call.ended" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, - public ?UserResponse $user = null, + public ?CallResponse $call = null, // Represents a call + public ?UserResponse $user = null, // User response object public ?string $reason = null, // The reason why the call ended, if available /** @var array|null */ #[ArrayOf(MemberResponse::class)] diff --git a/src/GeneratedModels/CallFrameRecordingFailedEvent.php b/src/GeneratedModels/CallFrameRecordingFailedEvent.php index c01fafd..417d3af 100644 --- a/src/GeneratedModels/CallFrameRecordingFailedEvent.php +++ b/src/GeneratedModels/CallFrameRecordingFailedEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.frame_recording_failed" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call public ?string $egressID = null, ) { } diff --git a/src/GeneratedModels/CallFrameRecordingStartedEvent.php b/src/GeneratedModels/CallFrameRecordingStartedEvent.php index c01edcf..31f76e9 100644 --- a/src/GeneratedModels/CallFrameRecordingStartedEvent.php +++ b/src/GeneratedModels/CallFrameRecordingStartedEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.frame_recording_started" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call public ?string $egressID = null, ) { } diff --git a/src/GeneratedModels/CallFrameRecordingStoppedEvent.php b/src/GeneratedModels/CallFrameRecordingStoppedEvent.php index 85ff0d1..20baeac 100644 --- a/src/GeneratedModels/CallFrameRecordingStoppedEvent.php +++ b/src/GeneratedModels/CallFrameRecordingStoppedEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.frame_recording_stopped" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call public ?string $egressID = null, ) { } diff --git a/src/GeneratedModels/CallHLSBroadcastingStartedEvent.php b/src/GeneratedModels/CallHLSBroadcastingStartedEvent.php index 3c17dd8..a3cdba4 100644 --- a/src/GeneratedModels/CallHLSBroadcastingStartedEvent.php +++ b/src/GeneratedModels/CallHLSBroadcastingStartedEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.hls_broadcasting_started" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call public ?string $hlsPlaylistUrl = null, ) { } diff --git a/src/GeneratedModels/CallIngressResponse.php b/src/GeneratedModels/CallIngressResponse.php index 22d37b9..67530fa 100644 --- a/src/GeneratedModels/CallIngressResponse.php +++ b/src/GeneratedModels/CallIngressResponse.php @@ -9,7 +9,7 @@ class CallIngressResponse extends BaseModel { public function __construct( - public ?RTMPIngress $rtmp = null, + public ?RTMPIngress $rtmp = null, // RTMP input settings public ?WHIPIngress $whip = null, public ?SRTIngress $srt = null, ) { diff --git a/src/GeneratedModels/CallLiveStartedEvent.php b/src/GeneratedModels/CallLiveStartedEvent.php index a9d8a83..2d47905 100644 --- a/src/GeneratedModels/CallLiveStartedEvent.php +++ b/src/GeneratedModels/CallLiveStartedEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.live_started" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call ) { } diff --git a/src/GeneratedModels/CallMemberAddedEvent.php b/src/GeneratedModels/CallMemberAddedEvent.php index 0ba86b1..a6c3a49 100644 --- a/src/GeneratedModels/CallMemberAddedEvent.php +++ b/src/GeneratedModels/CallMemberAddedEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.member_added" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // the members added to this call diff --git a/src/GeneratedModels/CallMemberRemovedEvent.php b/src/GeneratedModels/CallMemberRemovedEvent.php index f2875fd..1c9d037 100644 --- a/src/GeneratedModels/CallMemberRemovedEvent.php +++ b/src/GeneratedModels/CallMemberRemovedEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.member_removed" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call public ?array $members = null, // the list of member IDs removed from the call ) { } diff --git a/src/GeneratedModels/CallMemberUpdatedEvent.php b/src/GeneratedModels/CallMemberUpdatedEvent.php index f944829..2acac69 100644 --- a/src/GeneratedModels/CallMemberUpdatedEvent.php +++ b/src/GeneratedModels/CallMemberUpdatedEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.member_updated" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // The list of members that were updated diff --git a/src/GeneratedModels/CallMemberUpdatedPermissionEvent.php b/src/GeneratedModels/CallMemberUpdatedPermissionEvent.php index 55bfdf0..750718f 100644 --- a/src/GeneratedModels/CallMemberUpdatedPermissionEvent.php +++ b/src/GeneratedModels/CallMemberUpdatedPermissionEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.member_added" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call public ?array $capabilitiesByRole = null, // The capabilities by role for this call /** @var array|null */ #[ArrayOf(MemberResponse::class)] diff --git a/src/GeneratedModels/CallMissedEvent.php b/src/GeneratedModels/CallMissedEvent.php index c9509d3..7dd334d 100644 --- a/src/GeneratedModels/CallMissedEvent.php +++ b/src/GeneratedModels/CallMissedEvent.php @@ -13,11 +13,11 @@ public function __construct( public ?\DateTime $createdAt = null, public ?string $callCid = null, public ?string $sessionID = null, // Call session ID - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // List of members who missed the call - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?bool $notifyUser = null, ) { } diff --git a/src/GeneratedModels/CallNotificationEvent.php b/src/GeneratedModels/CallNotificationEvent.php index bb241f0..386a642 100644 --- a/src/GeneratedModels/CallNotificationEvent.php +++ b/src/GeneratedModels/CallNotificationEvent.php @@ -13,11 +13,11 @@ public function __construct( public ?\DateTime $createdAt = null, public ?string $callCid = null, public ?string $sessionID = null, // Call session ID - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // Call members - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object ) { } diff --git a/src/GeneratedModels/CallParticipantResponse.php b/src/GeneratedModels/CallParticipantResponse.php index 7b376c0..4f5cde0 100644 --- a/src/GeneratedModels/CallParticipantResponse.php +++ b/src/GeneratedModels/CallParticipantResponse.php @@ -6,7 +6,7 @@ class CallParticipantResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $userSessionID = null, public ?string $role = null, public ?\DateTime $joinedAt = null, diff --git a/src/GeneratedModels/CallRecordingReadyEvent.php b/src/GeneratedModels/CallRecordingReadyEvent.php index 7f321ea..e8ececd 100644 --- a/src/GeneratedModels/CallRecordingReadyEvent.php +++ b/src/GeneratedModels/CallRecordingReadyEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.recording_ready" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallRecording $callRecording = null, + public ?CallRecording $callRecording = null, // CallRecording represents a recording of a call. public ?string $egressID = null, public ?string $recordingType = null, // The type of recording ) { diff --git a/src/GeneratedModels/CallRejectedEvent.php b/src/GeneratedModels/CallRejectedEvent.php index 3e5d853..7c57559 100644 --- a/src/GeneratedModels/CallRejectedEvent.php +++ b/src/GeneratedModels/CallRejectedEvent.php @@ -12,8 +12,8 @@ public function __construct( public ?string $type = null, // The type of event: "call.rejected" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, - public ?UserResponse $user = null, + public ?CallResponse $call = null, // Represents a call + public ?UserResponse $user = null, // User response object public ?string $reason = null, // Provides information about why the call was rejected. You can provide any value, but the Stream API and SDKs use these default values: rejected, cancel, timeout and busy ) { } diff --git a/src/GeneratedModels/CallRequest.php b/src/GeneratedModels/CallRequest.php index bdf5bc8..351c784 100644 --- a/src/GeneratedModels/CallRequest.php +++ b/src/GeneratedModels/CallRequest.php @@ -10,7 +10,7 @@ class CallRequest extends BaseModel { public function __construct( public ?string $team = null, - public ?UserRequest $createdBy = null, + public ?UserRequest $createdBy = null, // User request object public ?string $createdByID = null, public ?object $custom = null, /** @var array|null */ diff --git a/src/GeneratedModels/CallResponse.php b/src/GeneratedModels/CallResponse.php index b8b7365..b85233e 100644 --- a/src/GeneratedModels/CallResponse.php +++ b/src/GeneratedModels/CallResponse.php @@ -14,7 +14,7 @@ public function __construct( public ?string $cid = null, // The unique identifier for a call (:) public ?string $currentSessionID = null, public ?string $team = null, - public ?UserResponse $createdBy = null, + public ?UserResponse $createdBy = null, // User response object public ?object $custom = null, // Custom data for this object public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $updatedAt = null, // Date/time of the last update @@ -27,7 +27,7 @@ public function __construct( public ?bool $backstage = null, public ?CallSettingsResponse $settings = null, public ?array $blockedUserIds = null, - public ?CallIngressResponse $ingress = null, + public ?CallIngressResponse $ingress = null, // CallIngressResponse is the payload for ingress settings public ?CallSessionResponse $session = null, public ?EgressResponse $egress = null, public ?ThumbnailResponse $thumbnails = null, diff --git a/src/GeneratedModels/CallRingEvent.php b/src/GeneratedModels/CallRingEvent.php index 63de5d3..5558c71 100644 --- a/src/GeneratedModels/CallRingEvent.php +++ b/src/GeneratedModels/CallRingEvent.php @@ -13,11 +13,11 @@ public function __construct( public ?\DateTime $createdAt = null, public ?string $callCid = null, public ?string $sessionID = null, // Call session ID - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // Call members - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?bool $video = null, ) { } diff --git a/src/GeneratedModels/CallSessionEndedEvent.php b/src/GeneratedModels/CallSessionEndedEvent.php index fac36fc..d22cba7 100644 --- a/src/GeneratedModels/CallSessionEndedEvent.php +++ b/src/GeneratedModels/CallSessionEndedEvent.php @@ -13,7 +13,7 @@ public function __construct( public ?\DateTime $createdAt = null, public ?string $callCid = null, public ?string $sessionID = null, // Call session ID - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call ) { } diff --git a/src/GeneratedModels/CallSessionStartedEvent.php b/src/GeneratedModels/CallSessionStartedEvent.php index 86c9315..9251fbc 100644 --- a/src/GeneratedModels/CallSessionStartedEvent.php +++ b/src/GeneratedModels/CallSessionStartedEvent.php @@ -13,7 +13,7 @@ public function __construct( public ?\DateTime $createdAt = null, public ?string $callCid = null, public ?string $sessionID = null, // Call session ID - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call ) { } diff --git a/src/GeneratedModels/CallSettingsRequest.php b/src/GeneratedModels/CallSettingsRequest.php index 1a94b90..30289d2 100644 --- a/src/GeneratedModels/CallSettingsRequest.php +++ b/src/GeneratedModels/CallSettingsRequest.php @@ -22,6 +22,7 @@ public function __construct( public ?LimitsSettingsRequest $limits = null, public ?SessionSettingsRequest $session = null, public ?IngressSettingsRequest $ingress = null, + public ?EncryptionSettingsRequest $encryption = null, ) { } diff --git a/src/GeneratedModels/CallSettingsResponse.php b/src/GeneratedModels/CallSettingsResponse.php index befe4b0..817a183 100644 --- a/src/GeneratedModels/CallSettingsResponse.php +++ b/src/GeneratedModels/CallSettingsResponse.php @@ -8,9 +8,9 @@ class CallSettingsResponse extends BaseModel public function __construct( public ?AudioSettingsResponse $audio = null, public ?BackstageSettingsResponse $backstage = null, - public ?BroadcastSettingsResponse $broadcasting = null, + public ?BroadcastSettingsResponse $broadcasting = null, // BroadcastSettingsResponse is the payload for broadcasting settings public ?GeofenceSettingsResponse $geofencing = null, - public ?RecordSettingsResponse $recording = null, + public ?RecordSettingsResponse $recording = null, // RecordSettings is the payload for recording settings public ?IndividualRecordingSettingsResponse $individualRecording = null, public ?RawRecordingSettingsResponse $rawRecording = null, public ?FrameRecordingSettingsResponse $frameRecording = null, @@ -22,6 +22,7 @@ public function __construct( public ?LimitsSettingsResponse $limits = null, public ?SessionSettingsResponse $session = null, public ?IngressSettingsResponse $ingress = null, + public ?EncryptionSettingsResponse $encryption = null, // EncryptionSettings is the payload for end-to-end encryption settings ) { } diff --git a/src/GeneratedModels/CallStateResponseFields.php b/src/GeneratedModels/CallStateResponseFields.php index a319c4d..e54dca1 100644 --- a/src/GeneratedModels/CallStateResponseFields.php +++ b/src/GeneratedModels/CallStateResponseFields.php @@ -9,7 +9,7 @@ class CallStateResponseFields extends BaseModel { public function __construct( - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // List of call members diff --git a/src/GeneratedModels/CallTranscriptionReadyEvent.php b/src/GeneratedModels/CallTranscriptionReadyEvent.php index 9db4bc0..2a5307d 100644 --- a/src/GeneratedModels/CallTranscriptionReadyEvent.php +++ b/src/GeneratedModels/CallTranscriptionReadyEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.transcription_ready" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallTranscription $callTranscription = null, + public ?CallTranscription $callTranscription = null, // CallTranscription represents a transcription of a call. public ?string $egressID = null, ) { } diff --git a/src/GeneratedModels/CallUpdatedEvent.php b/src/GeneratedModels/CallUpdatedEvent.php index f23e7a1..9bb4cc9 100644 --- a/src/GeneratedModels/CallUpdatedEvent.php +++ b/src/GeneratedModels/CallUpdatedEvent.php @@ -13,7 +13,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.updated" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call public ?array $capabilitiesByRole = null, // The capabilities by role for this call ) { } diff --git a/src/GeneratedModels/CallUserFeedbackSubmittedEvent.php b/src/GeneratedModels/CallUserFeedbackSubmittedEvent.php index 3b919ac..b8cc9ae 100644 --- a/src/GeneratedModels/CallUserFeedbackSubmittedEvent.php +++ b/src/GeneratedModels/CallUserFeedbackSubmittedEvent.php @@ -13,7 +13,7 @@ public function __construct( public ?\DateTime $createdAt = null, public ?string $callCid = null, public ?string $sessionID = null, // Call session ID - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?int $rating = null, // The rating given by the user (1-5) public ?string $reason = null, // The reason provided by the user for the rating public ?object $custom = null, // Custom data provided by the user diff --git a/src/GeneratedModels/CampaignResponse.php b/src/GeneratedModels/CampaignResponse.php index e8605a4..4e265aa 100644 --- a/src/GeneratedModels/CampaignResponse.php +++ b/src/GeneratedModels/CampaignResponse.php @@ -12,7 +12,7 @@ public function __construct( #[ArrayOf(Segment::class)] public ?array $segments = null, public ?string $senderID = null, - public ?UserResponse $sender = null, + public ?UserResponse $sender = null, // User response object public ?string $senderMode = null, public ?string $senderVisibility = null, public ?string $name = null, diff --git a/src/GeneratedModels/CastPollVoteRequest.php b/src/GeneratedModels/CastPollVoteRequest.php index bbce5b9..1923c3b 100644 --- a/src/GeneratedModels/CastPollVoteRequest.php +++ b/src/GeneratedModels/CastPollVoteRequest.php @@ -8,7 +8,7 @@ class CastPollVoteRequest extends BaseModel public function __construct( public ?VoteData $vote = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/ChannelBatchUpdateRequest.php b/src/GeneratedModels/ChannelBatchUpdateRequest.php index 6624571..9ee7ba9 100644 --- a/src/GeneratedModels/ChannelBatchUpdateRequest.php +++ b/src/GeneratedModels/ChannelBatchUpdateRequest.php @@ -7,7 +7,7 @@ class ChannelBatchUpdateRequest extends BaseModel { public function __construct( public ?string $operation = null, - public ?object $filter = null, + public ?object $filter = null, // Filter to apply to the query /** @var array|null */ #[ArrayOf(ChannelBatchMemberRequest::class)] public ?array $members = null, diff --git a/src/GeneratedModels/ChannelConfig.php b/src/GeneratedModels/ChannelConfig.php index a283115..084353d 100644 --- a/src/GeneratedModels/ChannelConfig.php +++ b/src/GeneratedModels/ChannelConfig.php @@ -35,7 +35,7 @@ public function __construct( #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, public ?array $allowedFlagReasons = null, - public ?Thresholds $automodThresholds = null, + public ?Thresholds $automodThresholds = null, // Sets thresholds for AI moderation public ?int $partitionSize = null, public ?string $partitionTtl = null, public ?bool $skipLastMsgUpdateForSystemMsgs = null, diff --git a/src/GeneratedModels/ChannelConfigWithInfo.php b/src/GeneratedModels/ChannelConfigWithInfo.php index d27c360..e4ce7b0 100644 --- a/src/GeneratedModels/ChannelConfigWithInfo.php +++ b/src/GeneratedModels/ChannelConfigWithInfo.php @@ -37,7 +37,7 @@ public function __construct( #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, public ?array $allowedFlagReasons = null, - public ?Thresholds $automodThresholds = null, + public ?Thresholds $automodThresholds = null, // Sets thresholds for AI moderation public ?int $partitionSize = null, public ?string $partitionTtl = null, public ?bool $skipLastMsgUpdateForSystemMsgs = null, diff --git a/src/GeneratedModels/ChannelContextResponse.php b/src/GeneratedModels/ChannelContextResponse.php new file mode 100644 index 0000000..2355ea1 --- /dev/null +++ b/src/GeneratedModels/ChannelContextResponse.php @@ -0,0 +1,21 @@ +:) + public ?string $type = null, // Channel type + public ?string $id = null, // Channel ID + public ?UserResponse $createdBy = null, // User response object + ) { + } + + // 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/ChannelCreatedEvent.php b/src/GeneratedModels/ChannelCreatedEvent.php index bcd1d37..0154b9d 100644 --- a/src/GeneratedModels/ChannelCreatedEvent.php +++ b/src/GeneratedModels/ChannelCreatedEvent.php @@ -20,7 +20,7 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel which was created public ?string $channelID = null, // The ID of the channel which was created - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?UserResponseCommonFields $user = null, ) { } diff --git a/src/GeneratedModels/ChannelDataUpdate.php b/src/GeneratedModels/ChannelDataUpdate.php index 2044e93..6453c03 100644 --- a/src/GeneratedModels/ChannelDataUpdate.php +++ b/src/GeneratedModels/ChannelDataUpdate.php @@ -10,7 +10,7 @@ public function __construct( public ?bool $disabled = null, public ?object $custom = null, public ?string $team = null, - public ?ChannelConfigOverrides $configOverrides = null, + public ?ChannelConfigOverrides $configOverrides = null, // Channel configuration overrides public ?bool $autoTranslationEnabled = null, public ?string $autoTranslationLanguage = null, ) { diff --git a/src/GeneratedModels/ChannelDeletedEvent.php b/src/GeneratedModels/ChannelDeletedEvent.php index 942d8f9..e1d8322 100644 --- a/src/GeneratedModels/ChannelDeletedEvent.php +++ b/src/GeneratedModels/ChannelDeletedEvent.php @@ -20,7 +20,7 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel which was deleted public ?string $channelID = null, // The ID of the channel which was deleted - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?UserResponseCommonFields $user = null, ) { } diff --git a/src/GeneratedModels/ChannelGetOrCreateRequest.php b/src/GeneratedModels/ChannelGetOrCreateRequest.php index ab33d89..34925c8 100644 --- a/src/GeneratedModels/ChannelGetOrCreateRequest.php +++ b/src/GeneratedModels/ChannelGetOrCreateRequest.php @@ -13,6 +13,7 @@ public function __construct( public ?MessagePaginationParams $messages = null, public ?PaginationParams $members = null, public ?PaginationParams $watchers = null, + public ?array $memberCustomInclude = null, // Top-level keys of the message sender's channel-member custom data to include under member.custom (max 8 keys, 64 chars each) ) { } diff --git a/src/GeneratedModels/ChannelHiddenEvent.php b/src/GeneratedModels/ChannelHiddenEvent.php index 44b9142..7db24d9 100644 --- a/src/GeneratedModels/ChannelHiddenEvent.php +++ b/src/GeneratedModels/ChannelHiddenEvent.php @@ -20,7 +20,7 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel which was hidden public ?string $channelID = null, // The ID of the channel which was hidden - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?UserResponseCommonFields $user = null, public ?bool $clearHistory = null, // Whether the history was cleared ) { diff --git a/src/GeneratedModels/ChannelInput.php b/src/GeneratedModels/ChannelInput.php index e41283e..c4dfd2b 100644 --- a/src/GeneratedModels/ChannelInput.php +++ b/src/GeneratedModels/ChannelInput.php @@ -8,9 +8,9 @@ class ChannelInput extends BaseModel public function __construct( public ?string $team = null, // Team the channel belongs to (if multi-tenant mode is enabled) public ?bool $autoTranslationEnabled = null, // Enable or disable auto translation - public ?string $autoTranslationLanguage = null, // Switch auto translation language + public ?string $autoTranslationLanguage = null, // Language (or comma-separated list of languages) to translate to when auto translation is active public ?string $createdByID = null, - public ?UserRequest $createdBy = null, + public ?UserRequest $createdBy = null, // User request object public ?string $truncatedByID = null, public ?bool $frozen = null, // Freeze or unfreeze the channel public ?bool $disabled = null, @@ -21,7 +21,7 @@ public function __construct( /** @var array|null */ #[ArrayOf(ChannelMemberRequest::class)] public ?array $members = null, - public ?ChannelConfigOverrides $configOverrides = null, + public ?ChannelConfigOverrides $configOverrides = null, // Channel configuration overrides public ?array $filterTags = null, ) { } diff --git a/src/GeneratedModels/ChannelInputRequest.php b/src/GeneratedModels/ChannelInputRequest.php index 91032de..7b1268c 100644 --- a/src/GeneratedModels/ChannelInputRequest.php +++ b/src/GeneratedModels/ChannelInputRequest.php @@ -18,8 +18,8 @@ public function __construct( /** @var array|null */ #[ArrayOf(ChannelMemberRequest::class)] public ?array $members = null, - public ?ConfigOverridesRequest $configOverrides = null, - public ?UserRequest $createdBy = null, + public ?ConfigOverridesRequest $configOverrides = null, // Channel configuration overrides + public ?UserRequest $createdBy = null, // User request object ) { } diff --git a/src/GeneratedModels/ChannelMemberPartialResponse.php b/src/GeneratedModels/ChannelMemberPartialResponse.php new file mode 100644 index 0000000..b9a2909 --- /dev/null +++ b/src/GeneratedModels/ChannelMemberPartialResponse.php @@ -0,0 +1,17 @@ +|null */ #[ArrayOf(MessageResponse::class)] public ?array $messages = null, // List of messages diff --git a/src/GeneratedModels/ChannelMetadata.php b/src/GeneratedModels/ChannelMetadata.php new file mode 100644 index 0000000..25d887b --- /dev/null +++ b/src/GeneratedModels/ChannelMetadata.php @@ -0,0 +1,23 @@ +|null */ @@ -28,7 +28,7 @@ public function __construct( public ?\DateTime $muteExpiresAt = null, // Date of mute expiration public ?string $team = null, // Team the channel belongs to (multi-tenant only) public ?bool $autoTranslationEnabled = null, // Whether auto translation is enabled or not - public ?string $autoTranslationLanguage = null, // Language to translate to when auto translation is active + public ?string $autoTranslationLanguage = null, // Language (or comma-separated list of languages) to translate to when auto translation is active public ?\DateTime $hideMessagesBefore = null, // Date since when the message history is accessible public ?int $cooldown = null, // Cooldown period after sending each message /** @var array|null */ @@ -37,7 +37,7 @@ public function __construct( public ?bool $hidden = null, // Whether this channel is hidden by current user or not public ?bool $blocked = null, // Whether this channel is blocked by current user or not public ?\DateTime $truncatedAt = null, // Date of the latest truncation of the channel - public ?UserResponse $truncatedBy = null, + public ?UserResponse $truncatedBy = null, // User response object public ?object $custom = null, // Custom data for this object public ?int $messageCount = null, // Number of messages in the channel public ?array $filterTags = null, // List of filter tags associated with the channel diff --git a/src/GeneratedModels/ChannelStateResponse.php b/src/GeneratedModels/ChannelStateResponse.php index f8f9ac6..7d0de61 100644 --- a/src/GeneratedModels/ChannelStateResponse.php +++ b/src/GeneratedModels/ChannelStateResponse.php @@ -6,7 +6,7 @@ class ChannelStateResponse extends BaseModel { public function __construct( - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat /** @var array|null */ #[ArrayOf(MessageResponse::class)] public ?array $messages = null, diff --git a/src/GeneratedModels/ChannelStateResponseFields.php b/src/GeneratedModels/ChannelStateResponseFields.php index 4ea552b..7408e46 100644 --- a/src/GeneratedModels/ChannelStateResponseFields.php +++ b/src/GeneratedModels/ChannelStateResponseFields.php @@ -6,7 +6,7 @@ class ChannelStateResponseFields extends BaseModel { public function __construct( - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat /** @var array|null */ #[ArrayOf(MessageResponse::class)] public ?array $messages = null, // List of channel messages diff --git a/src/GeneratedModels/ChannelTruncatedEvent.php b/src/GeneratedModels/ChannelTruncatedEvent.php index e732745..25cf1bf 100644 --- a/src/GeneratedModels/ChannelTruncatedEvent.php +++ b/src/GeneratedModels/ChannelTruncatedEvent.php @@ -20,9 +20,9 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel which was truncated public ?string $channelID = null, // The ID of the channel which was truncated - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?UserResponseCommonFields $user = null, ) { } diff --git a/src/GeneratedModels/ChannelTypeConfig.php b/src/GeneratedModels/ChannelTypeConfig.php index 275da87..c307f05 100644 --- a/src/GeneratedModels/ChannelTypeConfig.php +++ b/src/GeneratedModels/ChannelTypeConfig.php @@ -41,7 +41,7 @@ public function __construct( #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, public ?array $allowedFlagReasons = null, - public ?Thresholds $automodThresholds = null, + public ?Thresholds $automodThresholds = null, // Sets thresholds for AI moderation public ?int $partitionSize = null, public ?string $partitionTtl = null, public ?bool $skipLastMsgUpdateForSystemMsgs = null, diff --git a/src/GeneratedModels/ChannelUpdatedEvent.php b/src/GeneratedModels/ChannelUpdatedEvent.php index 11e2c3d..2c9a377 100644 --- a/src/GeneratedModels/ChannelUpdatedEvent.php +++ b/src/GeneratedModels/ChannelUpdatedEvent.php @@ -20,9 +20,9 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel which was updated public ?string $channelID = null, // The ID of the channel which was updated - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?UserResponseCommonFields $user = null, ) { } diff --git a/src/GeneratedModels/ChannelVisibleEvent.php b/src/GeneratedModels/ChannelVisibleEvent.php index 003ecdb..ab7d7c8 100644 --- a/src/GeneratedModels/ChannelVisibleEvent.php +++ b/src/GeneratedModels/ChannelVisibleEvent.php @@ -20,7 +20,7 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel which was shown public ?string $channelID = null, // The ID of the channel which was shown - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?UserResponseCommonFields $user = null, ) { } diff --git a/src/GeneratedModels/ChatMessageResponse.php b/src/GeneratedModels/ChatMessageResponse.php index 59c5111..50fd991 100644 --- a/src/GeneratedModels/ChatMessageResponse.php +++ b/src/GeneratedModels/ChatMessageResponse.php @@ -12,8 +12,8 @@ public function __construct( public ?string $command = null, public ?string $html = null, public ?string $type = null, - public ?UserResponse $user = null, - public ?ChannelMemberResponse $member = null, + public ?UserResponse $user = null, // User response object + public ?ChannelMemberPartialResponse $member = null, /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, @@ -58,7 +58,7 @@ public function __construct( public ?bool $silent = null, public ?bool $pinned = null, public ?\DateTime $pinnedAt = null, - public ?UserResponse $pinnedBy = null, + public ?UserResponse $pinnedBy = null, // User response object public ?\DateTime $pinExpires = null, public ?\DateTime $messageTextUpdatedAt = null, public ?string $pollID = null, diff --git a/src/GeneratedModels/ChatReactionGroupUserResponse.php b/src/GeneratedModels/ChatReactionGroupUserResponse.php index a88b263..25e2b96 100644 --- a/src/GeneratedModels/ChatReactionGroupUserResponse.php +++ b/src/GeneratedModels/ChatReactionGroupUserResponse.php @@ -7,7 +7,7 @@ class ChatReactionGroupUserResponse extends BaseModel { public function __construct( public ?string $userID = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?\DateTime $createdAt = null, ) { } diff --git a/src/GeneratedModels/ChatReactionResponse.php b/src/GeneratedModels/ChatReactionResponse.php index 107b818..9c28673 100644 --- a/src/GeneratedModels/ChatReactionResponse.php +++ b/src/GeneratedModels/ChatReactionResponse.php @@ -8,7 +8,7 @@ class ChatReactionResponse extends BaseModel public function __construct( public ?string $messageID = null, public ?string $userID = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $type = null, public ?int $score = null, public ?\DateTime $createdAt = null, diff --git a/src/GeneratedModels/ChatReminderResponseData.php b/src/GeneratedModels/ChatReminderResponseData.php index 21a066d..81e184e 100644 --- a/src/GeneratedModels/ChatReminderResponseData.php +++ b/src/GeneratedModels/ChatReminderResponseData.php @@ -11,7 +11,7 @@ public function __construct( public ?string $messageID = null, public ?ChatMessageResponse $message = null, public ?string $userID = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, ) { diff --git a/src/GeneratedModels/CheckPushRequest.php b/src/GeneratedModels/CheckPushRequest.php index 33ec964..2915c97 100644 --- a/src/GeneratedModels/CheckPushRequest.php +++ b/src/GeneratedModels/CheckPushRequest.php @@ -18,7 +18,7 @@ public function __construct( public ?string $pushProviderName = null, // Name of push provider public ?string $eventType = null, // Type of event for push templates (default: message.new). One of: message.new, message.updated, reaction.new, reaction.updated, notification.reminder_due public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CheckRequest.php b/src/GeneratedModels/CheckRequest.php index c74d619..4964afb 100644 --- a/src/GeneratedModels/CheckRequest.php +++ b/src/GeneratedModels/CheckRequest.php @@ -17,7 +17,7 @@ public function __construct( public ?ModerationConfig $config = null, public ?\DateTime $contentPublishedAt = null, // Original timestamp when the content was produced (for correlating flagged content with source video timeline) public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/ClientEvent.php b/src/GeneratedModels/ClientEvent.php index 41deda6..e451ad6 100644 --- a/src/GeneratedModels/ClientEvent.php +++ b/src/GeneratedModels/ClientEvent.php @@ -27,6 +27,7 @@ public function __construct( public ?int $retryCountAttempt = null, // Total in-stage retries the client made before resolving (0–1000). Required on completed join events. public ?int $elapsedTime = null, // Milliseconds elapsed between the stage attempt's initiation and this event. public ?string $callSessionID = null, // Call session ID associated with the attempt. Required on every event except CoordinatorJoin initiation and CoordinatorJoin failure (where the call session is not yet established); optional on MediaDevicePermission. + public ?string $joinReason = null, // Reason the client initiated the join. Optional on CoordinatorJoin events; empty when not provided. public ?string $sfuID = null, // Identifier of the SFU the client was attempting to connect to. Required on WSJoin and PeerConnectionConnect failure, and on FirstAudioFrame and FirstVideoFrame. public ?string $trackID = null, // Identifier of the media track the frame belongs to. Required on FirstVideoFrame; optional on FirstAudioFrame. public ?string $retryFailureReason = null, // Failure reason string. Required on CoordinatorJoin, CoordinatorWS, WSJoin, and PeerConnectionConnect failure. diff --git a/src/GeneratedModels/ClosedCaptionEvent.php b/src/GeneratedModels/ClosedCaptionEvent.php index b49cbdd..a006132 100644 --- a/src/GeneratedModels/ClosedCaptionEvent.php +++ b/src/GeneratedModels/ClosedCaptionEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.closed_caption" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?CallClosedCaption $closedCaption = null, + public ?CallClosedCaption $closedCaption = null, // CallClosedCaption represents a closed caption of a call. ) { } diff --git a/src/GeneratedModels/CommentResponse.php b/src/GeneratedModels/CommentResponse.php index 4c2d278..61122d8 100644 --- a/src/GeneratedModels/CommentResponse.php +++ b/src/GeneratedModels/CommentResponse.php @@ -9,7 +9,7 @@ public function __construct( public ?string $id = null, // Unique identifier for the comment public ?string $objectID = null, // ID of the object this comment is associated with public ?string $objectType = null, // Type of the object this comment is associated with - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $text = null, // Text content of the comment public ?array $i18n = null, public ?object $custom = null, // Custom data for the comment diff --git a/src/GeneratedModels/ConcurrencyMinute.php b/src/GeneratedModels/ConcurrencyMinute.php new file mode 100644 index 0000000..69357fc --- /dev/null +++ b/src/GeneratedModels/ConcurrencyMinute.php @@ -0,0 +1,19 @@ +|null */ + #[ArrayOf(AbsentMetric::class)] + public ?array $absent = 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/CreateBlockListRequest.php b/src/GeneratedModels/CreateBlockListRequest.php index d161a97..13b7e94 100644 --- a/src/GeneratedModels/CreateBlockListRequest.php +++ b/src/GeneratedModels/CreateBlockListRequest.php @@ -17,7 +17,8 @@ public function __construct( public ?array $words = null, // List of words to block public ?string $type = null, // Block list type. One of: regex, domain, domain_allowlist, email, email_allowlist, word public ?string $team = null, - public ?string $ownerUserID = null, + public ?string $userID = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CreateBlockListResponse.php b/src/GeneratedModels/CreateBlockListResponse.php index be91525..0be2ced 100644 --- a/src/GeneratedModels/CreateBlockListResponse.php +++ b/src/GeneratedModels/CreateBlockListResponse.php @@ -9,7 +9,7 @@ class CreateBlockListResponse extends BaseModel { public function __construct( - public ?BlockListResponse $blocklist = null, + public ?BlockListResponse $blocklist = null, // Block list contains restricted words public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/CreateChannelTypeResponse.php b/src/GeneratedModels/CreateChannelTypeResponse.php index 44954b1..0d43ce8 100644 --- a/src/GeneratedModels/CreateChannelTypeResponse.php +++ b/src/GeneratedModels/CreateChannelTypeResponse.php @@ -35,7 +35,7 @@ public function __construct( #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, public ?array $allowedFlagReasons = null, - public ?Thresholds $automodThresholds = null, + public ?Thresholds $automodThresholds = null, // Sets thresholds for AI moderation public ?int $partitionSize = null, public ?string $partitionTtl = null, public ?bool $skipLastMsgUpdateForSystemMsgs = null, diff --git a/src/GeneratedModels/CreateCollectionsRequest.php b/src/GeneratedModels/CreateCollectionsRequest.php index c8a6e27..77dbb22 100644 --- a/src/GeneratedModels/CreateCollectionsRequest.php +++ b/src/GeneratedModels/CreateCollectionsRequest.php @@ -10,7 +10,7 @@ public function __construct( #[ArrayOf(CollectionRequest::class)] public ?array $collections = null, // List of collections to create public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CreateCommandResponse.php b/src/GeneratedModels/CreateCommandResponse.php index ec68916..07462ec 100644 --- a/src/GeneratedModels/CreateCommandResponse.php +++ b/src/GeneratedModels/CreateCommandResponse.php @@ -6,7 +6,7 @@ class CreateCommandResponse extends BaseModel { public function __construct( - public ?Command $command = null, + public ?Command $command = null, // Represents custom chat command public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CreateDeviceRequest.php b/src/GeneratedModels/CreateDeviceRequest.php index 29f7434..139afcf 100644 --- a/src/GeneratedModels/CreateDeviceRequest.php +++ b/src/GeneratedModels/CreateDeviceRequest.php @@ -15,7 +15,7 @@ public function __construct( public ?bool $voipToken = null, // When true the token is for Apple VoIP push notifications public ?string $hardwareID = null, // Stable physical device identifier used to deduplicate pushes across push providers (e.g. APNs VoIP and Firebase on the same iOS device). Distinct from 'id', which is the push token. public ?string $userID = null, // **Server-side only**. User ID which server acts upon - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CreateExternalStorageRequest.php b/src/GeneratedModels/CreateExternalStorageRequest.php index 992497a..fd7c723 100644 --- a/src/GeneratedModels/CreateExternalStorageRequest.php +++ b/src/GeneratedModels/CreateExternalStorageRequest.php @@ -13,9 +13,9 @@ public function __construct( public ?string $storageType = null, // The type of storage to use public ?string $bucket = null, // The name of the bucket on the service provider public ?string $path = null, // The path prefix to use for storing files - public ?S3Request $awsS3 = null, + public ?S3Request $awsS3 = null, // Config for creating Amazon S3 storage. public ?string $gcsCredentials = null, - public ?AzureRequest $azureBlob = null, + public ?AzureRequest $azureBlob = null, // Config for creating Azure Blob Storage storage ) { } diff --git a/src/GeneratedModels/CreateGuestRequest.php b/src/GeneratedModels/CreateGuestRequest.php index 670e1c3..b85335b 100644 --- a/src/GeneratedModels/CreateGuestRequest.php +++ b/src/GeneratedModels/CreateGuestRequest.php @@ -6,7 +6,7 @@ class CreateGuestRequest extends BaseModel { public function __construct( - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CreateGuestResponse.php b/src/GeneratedModels/CreateGuestResponse.php index 410e37d..c79c418 100644 --- a/src/GeneratedModels/CreateGuestResponse.php +++ b/src/GeneratedModels/CreateGuestResponse.php @@ -6,7 +6,7 @@ class CreateGuestResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $accessToken = null, // the access token to authenticate the user public ?string $duration = null, // Duration of the request in milliseconds ) { diff --git a/src/GeneratedModels/CreateImportV2TaskRequest.php b/src/GeneratedModels/CreateImportV2TaskRequest.php index c795608..3647fbc 100644 --- a/src/GeneratedModels/CreateImportV2TaskRequest.php +++ b/src/GeneratedModels/CreateImportV2TaskRequest.php @@ -12,7 +12,7 @@ public function __construct( public ?string $product = null, public ?ImportV2TaskSettings $settings = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CreatePolicyTestSetRequest.php b/src/GeneratedModels/CreatePolicyTestSetRequest.php new file mode 100644 index 0000000..8e0f2cc --- /dev/null +++ b/src/GeneratedModels/CreatePolicyTestSetRequest.php @@ -0,0 +1,22 @@ +|null */ + #[ArrayOf(PolicyTestRow::class)] + public ?array $rows = null, // Messages to test; capped at 1000. Mutually exclusive with seed + public ?PolicyTestSeedSpec $seed = 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/CreatePollOptionRequest.php b/src/GeneratedModels/CreatePollOptionRequest.php index 5927f5e..48dec7d 100644 --- a/src/GeneratedModels/CreatePollOptionRequest.php +++ b/src/GeneratedModels/CreatePollOptionRequest.php @@ -7,9 +7,9 @@ class CreatePollOptionRequest extends BaseModel { public function __construct( public ?string $text = null, // Option text - public ?object $custom = null, + public ?object $custom = null, // Custom data for this object public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CreatePollRequest.php b/src/GeneratedModels/CreatePollRequest.php index d49d0b5..4c66d2a 100644 --- a/src/GeneratedModels/CreatePollRequest.php +++ b/src/GeneratedModels/CreatePollRequest.php @@ -21,9 +21,9 @@ public function __construct( public ?bool $allowUserSuggestedOptions = null, public ?bool $allowAnswers = null, // Indicates whether users can suggest user defined answers public ?bool $isClosed = null, // Indicates whether the poll is open for voting - public ?object $custom = null, + public ?object $custom = null, // Custom data for this object public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CreateQueueRequest.php b/src/GeneratedModels/CreateQueueRequest.php index 95e64b6..fe55819 100644 --- a/src/GeneratedModels/CreateQueueRequest.php +++ b/src/GeneratedModels/CreateQueueRequest.php @@ -12,7 +12,7 @@ public function __construct( public ?object $filters = null, public ?array $sort = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CreateReminderRequest.php b/src/GeneratedModels/CreateReminderRequest.php index ca07575..2788cb9 100644 --- a/src/GeneratedModels/CreateReminderRequest.php +++ b/src/GeneratedModels/CreateReminderRequest.php @@ -8,7 +8,7 @@ class CreateReminderRequest extends BaseModel public function __construct( public ?\DateTime $remindAt = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CreateSIPTrunkResponse.php b/src/GeneratedModels/CreateSIPTrunkResponse.php index ac96961..b9a7e71 100644 --- a/src/GeneratedModels/CreateSIPTrunkResponse.php +++ b/src/GeneratedModels/CreateSIPTrunkResponse.php @@ -9,7 +9,7 @@ class CreateSIPTrunkResponse extends BaseModel { public function __construct( - public ?SIPTrunkResponse $sipTrunk = null, + public ?SIPTrunkResponse $sipTrunk = null, // SIP trunk information public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CustomCheckRequest.php b/src/GeneratedModels/CustomCheckRequest.php index 437ffe4..ab3052c 100644 --- a/src/GeneratedModels/CustomCheckRequest.php +++ b/src/GeneratedModels/CustomCheckRequest.php @@ -9,12 +9,12 @@ public function __construct( public ?string $entityType = null, // Type of entity to perform custom check on public ?string $entityID = null, // Unique identifier of the entity public ?string $entityCreatorID = null, // ID of the user who created the entity (required for non-message entities) - public ?ModerationPayloadRequest $moderationPayload = null, + public ?ModerationPayloadRequest $moderationPayload = null, // Content payload for moderation /** @var array|null */ #[ArrayOf(CustomCheckFlag::class)] public ?array $flags = null, // List of custom check flags (1-10 flags required) public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/CustomVideoEvent.php b/src/GeneratedModels/CustomVideoEvent.php index ac26279..575359d 100644 --- a/src/GeneratedModels/CustomVideoEvent.php +++ b/src/GeneratedModels/CustomVideoEvent.php @@ -13,7 +13,7 @@ public function __construct( public ?\DateTime $createdAt = null, public ?string $callCid = null, public ?object $custom = null, // Custom data for this object - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object ) { } diff --git a/src/GeneratedModels/DailyDigestCallSessionSummary.php b/src/GeneratedModels/DailyDigestCallSessionSummary.php new file mode 100644 index 0000000..b4f4a3f --- /dev/null +++ b/src/GeneratedModels/DailyDigestCallSessionSummary.php @@ -0,0 +1,21 @@ +|null */ #[ArrayOf(MessageResponse::class)] public ?array $messages = null, // List of exported messages diff --git a/src/GeneratedModels/FeedMemberResponse.php b/src/GeneratedModels/FeedMemberResponse.php index 0077c53..05517ed 100644 --- a/src/GeneratedModels/FeedMemberResponse.php +++ b/src/GeneratedModels/FeedMemberResponse.php @@ -6,7 +6,7 @@ class FeedMemberResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $role = null, // Role of the member in the feed public ?string $status = null, // Status of the membership. One of: member, pending, rejected public ?MembershipLevelResponse $membershipLevel = null, diff --git a/src/GeneratedModels/FeedResponse.php b/src/GeneratedModels/FeedResponse.php index dcf4b5f..cc90038 100644 --- a/src/GeneratedModels/FeedResponse.php +++ b/src/GeneratedModels/FeedResponse.php @@ -15,7 +15,7 @@ public function __construct( public ?Location $location = null, public ?array $filterTags = null, // Tags used for filtering feeds public ?string $visibility = null, // Visibility setting for the feed - public ?UserResponse $createdBy = null, + public ?UserResponse $createdBy = null, // User response object public ?int $memberCount = null, // Number of members in this feed public ?int $followerCount = null, // Number of followers of this feed public ?int $followingCount = null, // Number of feeds this feed follows diff --git a/src/GeneratedModels/FeedSuggestionResponse.php b/src/GeneratedModels/FeedSuggestionResponse.php index 7246fd9..2317f31 100644 --- a/src/GeneratedModels/FeedSuggestionResponse.php +++ b/src/GeneratedModels/FeedSuggestionResponse.php @@ -15,7 +15,7 @@ public function __construct( public ?Location $location = null, public ?array $filterTags = null, // Tags used for filtering feeds public ?string $visibility = null, // Visibility setting for the feed - public ?UserResponse $createdBy = null, + public ?UserResponse $createdBy = null, // User response object public ?int $memberCount = null, // Number of members in this feed public ?int $followerCount = null, // Number of followers of this feed public ?int $followingCount = null, // Number of feeds this feed follows diff --git a/src/GeneratedModels/FeedsBookmarkResponse.php b/src/GeneratedModels/FeedsBookmarkResponse.php index f1d33d8..2968247 100644 --- a/src/GeneratedModels/FeedsBookmarkResponse.php +++ b/src/GeneratedModels/FeedsBookmarkResponse.php @@ -8,7 +8,7 @@ class FeedsBookmarkResponse extends BaseModel public function __construct( public ?string $objectType = null, public ?string $objectID = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?object $custom = null, public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, diff --git a/src/GeneratedModels/FeedsFeedResponse.php b/src/GeneratedModels/FeedsFeedResponse.php index 9cd1713..0db12e7 100644 --- a/src/GeneratedModels/FeedsFeedResponse.php +++ b/src/GeneratedModels/FeedsFeedResponse.php @@ -15,7 +15,7 @@ public function __construct( public ?FeedsActivityLocation $location = null, public ?array $filterTags = null, public ?string $visibility = null, - public ?UserResponse $createdBy = null, + public ?UserResponse $createdBy = null, // User response object public ?int $memberCount = null, public ?int $followerCount = null, public ?int $followingCount = null, diff --git a/src/GeneratedModels/FeedsReactionResponse.php b/src/GeneratedModels/FeedsReactionResponse.php index d8a8682..07c4eab 100644 --- a/src/GeneratedModels/FeedsReactionResponse.php +++ b/src/GeneratedModels/FeedsReactionResponse.php @@ -6,7 +6,7 @@ class FeedsReactionResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $activityID = null, public ?string $commentID = null, public ?string $type = null, diff --git a/src/GeneratedModels/FeedsShareResponse.php b/src/GeneratedModels/FeedsShareResponse.php index dc4099e..786fb42 100644 --- a/src/GeneratedModels/FeedsShareResponse.php +++ b/src/GeneratedModels/FeedsShareResponse.php @@ -6,7 +6,7 @@ class FeedsShareResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $activityID = null, public ?\DateTime $createdAt = null, ) { diff --git a/src/GeneratedModels/FeedsV3ActivityResponse.php b/src/GeneratedModels/FeedsV3ActivityResponse.php index 580a73e..0adb8fb 100644 --- a/src/GeneratedModels/FeedsV3ActivityResponse.php +++ b/src/GeneratedModels/FeedsV3ActivityResponse.php @@ -8,7 +8,7 @@ class FeedsV3ActivityResponse extends BaseModel public function __construct( public ?string $id = null, public ?string $type = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?array $feeds = null, public ?string $visibility = null, public ?string $visibilityTag = null, diff --git a/src/GeneratedModels/FeedsV3CommentResponse.php b/src/GeneratedModels/FeedsV3CommentResponse.php index 455163d..e6583d2 100644 --- a/src/GeneratedModels/FeedsV3CommentResponse.php +++ b/src/GeneratedModels/FeedsV3CommentResponse.php @@ -9,7 +9,7 @@ public function __construct( public ?string $id = null, public ?string $objectID = null, public ?string $objectType = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $text = null, public ?array $i18n = null, public ?object $custom = null, diff --git a/src/GeneratedModels/FilterConfigResponse.php b/src/GeneratedModels/FilterConfigResponse.php index 0a9de7a..879b929 100644 --- a/src/GeneratedModels/FilterConfigResponse.php +++ b/src/GeneratedModels/FilterConfigResponse.php @@ -9,6 +9,7 @@ public function __construct( public ?array $llmLabels = null, // LLM moderation labels available as filter values public ?array $aiTextLabels = null, // AI text moderation labels available as filter values public ?array $aiImageLabels = null, // AI image moderation labels available as filter values. Reflects the app's effective image taxonomy: custom Bodyguard taxonomy when enabled, otherwise the standard L1 label set. + public ?array $aiImageTaxonomy = null, // AI image moderation labels available as filter values, as a map of L1 label to its L2 sub-labels. Reflects the app's effective image taxonomy: custom Bodyguard taxonomy when enabled, otherwise the standard catalogue of the org's enabled image providers. public ?array $configKeys = null, // Moderation config keys present in the queue, available as filter values public ?array $filterableCustomKeys = null, // The moderation_payload.custom keys the app has configured as review-queue filter chips (via moderation_dashboard_preferences.filterable_custom_keys). Discovery hint for the dashboard only — the filter accepts any custom key regardless of this list. ) { diff --git a/src/GeneratedModels/FlagRequest.php b/src/GeneratedModels/FlagRequest.php index 76df961..c7262ad 100644 --- a/src/GeneratedModels/FlagRequest.php +++ b/src/GeneratedModels/FlagRequest.php @@ -13,7 +13,7 @@ public function __construct( public ?ModerationPayload $moderationPayload = null, public ?object $custom = null, // Additional metadata about the flag public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/FlagResponse.php b/src/GeneratedModels/FlagResponse.php index 15b8c03..170f50b 100644 --- a/src/GeneratedModels/FlagResponse.php +++ b/src/GeneratedModels/FlagResponse.php @@ -7,10 +7,10 @@ class FlagResponse extends BaseModel { public function __construct( public ?bool $createdByAutomod = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $targetMessageID = null, - public ?MessageResponse $targetMessage = null, - public ?UserResponse $targetUser = null, + public ?MessageResponse $targetMessage = null, // Represents any chat message + public ?UserResponse $targetUser = null, // User response object public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, public ?\DateTime $reviewedAt = null, diff --git a/src/GeneratedModels/FlagUpdatedEvent.php b/src/GeneratedModels/FlagUpdatedEvent.php index 4b6d4a1..d992cad 100644 --- a/src/GeneratedModels/FlagUpdatedEvent.php +++ b/src/GeneratedModels/FlagUpdatedEvent.php @@ -10,9 +10,9 @@ public function __construct( public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, public ?object $custom = null, - public ?MessageResponse $message = null, - public ?UserResponse $user = null, - public ?UserResponse $createdBy = null, + public ?MessageResponse $message = null, // Represents any chat message + public ?UserResponse $user = null, // User response object + public ?UserResponse $createdBy = null, // User response object ) { } diff --git a/src/GeneratedModels/FloodConfig.php b/src/GeneratedModels/FloodConfig.php index 5cdc17e..1abea11 100644 --- a/src/GeneratedModels/FloodConfig.php +++ b/src/GeneratedModels/FloodConfig.php @@ -8,6 +8,7 @@ class FloodConfig extends BaseModel public function __construct( public ?FloodIdenticalConfig $identical = null, public ?FloodSimilarConfig $similar = null, + public ?array $allowlist = null, ) { } diff --git a/src/GeneratedModels/FloodIdenticalRuleParameters.php b/src/GeneratedModels/FloodIdenticalRuleParameters.php new file mode 100644 index 0000000..284f274 --- /dev/null +++ b/src/GeneratedModels/FloodIdenticalRuleParameters.php @@ -0,0 +1,17 @@ +|null */ #[ArrayOf(VideoReactionsResponse::class)] public ?array $videoReactions = null, + public ?BroadcastDigest $digest = null, ) { } diff --git a/src/GeneratedModels/GetCallResponse.php b/src/GeneratedModels/GetCallResponse.php index f3483b8..704e3a8 100644 --- a/src/GeneratedModels/GetCallResponse.php +++ b/src/GeneratedModels/GetCallResponse.php @@ -6,7 +6,7 @@ class GetCallResponse extends BaseModel { public function __construct( - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, diff --git a/src/GeneratedModels/GetChannelTypeResponse.php b/src/GeneratedModels/GetChannelTypeResponse.php index caf3579..719c940 100644 --- a/src/GeneratedModels/GetChannelTypeResponse.php +++ b/src/GeneratedModels/GetChannelTypeResponse.php @@ -44,7 +44,7 @@ public function __construct( #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, public ?array $allowedFlagReasons = null, - public ?Thresholds $automodThresholds = null, + public ?Thresholds $automodThresholds = null, // Sets thresholds for AI moderation public ?int $partitionSize = null, public ?string $partitionTtl = null, public ?bool $skipLastMsgUpdateForSystemMsgs = null, diff --git a/src/GeneratedModels/GetDailyDigestResponse.php b/src/GeneratedModels/GetDailyDigestResponse.php new file mode 100644 index 0000000..f764c89 --- /dev/null +++ b/src/GeneratedModels/GetDailyDigestResponse.php @@ -0,0 +1,32 @@ +|null */ + #[ArrayOf(DailyDigestCallSessionSummary::class)] + public ?array $callSessions = null, + /** @var array|null */ + #[ArrayOf(BroadcastDigest::class)] + public ?array $broadcasts = 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/GetExternalStorageGCSResponse.php b/src/GeneratedModels/GetExternalStorageGCSResponse.php new file mode 100644 index 0000000..a4398aa --- /dev/null +++ b/src/GeneratedModels/GetExternalStorageGCSResponse.php @@ -0,0 +1,17 @@ + limit info) /** @var array|null */ #[MapOf(LimitInfoResponse::class)] + public ?array $unity = null, // Rate limits for Unity 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/GetMessageResponse.php b/src/GeneratedModels/GetMessageResponse.php index 91d4b76..565ce51 100644 --- a/src/GeneratedModels/GetMessageResponse.php +++ b/src/GeneratedModels/GetMessageResponse.php @@ -9,7 +9,7 @@ class GetMessageResponse extends BaseModel { public function __construct( - public ?MessageWithChannelResponse $message = null, + public ?MessageWithChannelResponse $message = null, // Represents any chat message public ?array $pendingMessageMetadata = null, public ?string $duration = null, // Duration of the request in milliseconds ) { diff --git a/src/GeneratedModels/GetOrCreateCallRequest.php b/src/GeneratedModels/GetOrCreateCallRequest.php index c6d144e..5d85a5f 100644 --- a/src/GeneratedModels/GetOrCreateCallRequest.php +++ b/src/GeneratedModels/GetOrCreateCallRequest.php @@ -6,7 +6,7 @@ class GetOrCreateCallRequest extends BaseModel { public function __construct( - public ?CallRequest $data = null, + public ?CallRequest $data = null, // CallRequest is the payload for creating a call. public ?bool $ring = null, // if provided it sends a ring event to the members for this call public ?bool $notify = null, // if provided it sends a notification event to the members for this call public ?bool $video = null, diff --git a/src/GeneratedModels/GetOrCreateCallResponse.php b/src/GeneratedModels/GetOrCreateCallResponse.php index 5e9f820..2ad57b1 100644 --- a/src/GeneratedModels/GetOrCreateCallResponse.php +++ b/src/GeneratedModels/GetOrCreateCallResponse.php @@ -6,7 +6,7 @@ class GetOrCreateCallResponse extends BaseModel { public function __construct( - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, diff --git a/src/GeneratedModels/GetOrCreateFeedRequest.php b/src/GeneratedModels/GetOrCreateFeedRequest.php index 18ef0c7..963c65a 100644 --- a/src/GeneratedModels/GetOrCreateFeedRequest.php +++ b/src/GeneratedModels/GetOrCreateFeedRequest.php @@ -19,14 +19,14 @@ public function __construct( public ?PagerRequest $memberPagination = null, public ?PagerRequest $followersPagination = null, public ?PagerRequest $followingPagination = null, - public ?EnrichmentOptions $enrichmentOptions = null, - public ?FriendReactionsOptions $friendReactionsOptions = null, + public ?EnrichmentOptions $enrichmentOptions = null, // Options to skip specific enrichments to improve performance. Default is false (enrichments are included). Setting a field to true skips that enrichment. + public ?FriendReactionsOptions $friendReactionsOptions = null, // Options to control fetching reactions from friends (users you follow or have mutual follows with). public ?int $limit = null, public ?string $next = null, public ?string $prev = null, public ?string $idAround = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/GetRateLimitsResponse.php b/src/GeneratedModels/GetRateLimitsResponse.php index cb0014d..5a6e4b0 100644 --- a/src/GeneratedModels/GetRateLimitsResponse.php +++ b/src/GeneratedModels/GetRateLimitsResponse.php @@ -18,6 +18,9 @@ public function __construct( /** @var array|null */ #[MapOf(LimitInfoResponse::class)] public ?array $web = null, // Map of endpoint rate limits for the web platform + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] + public ?array $unity = null, // Map of endpoint rate limits for the Unity platform public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GoLiveResponse.php b/src/GeneratedModels/GoLiveResponse.php index f0fb7d7..311c242 100644 --- a/src/GeneratedModels/GoLiveResponse.php +++ b/src/GeneratedModels/GoLiveResponse.php @@ -9,7 +9,7 @@ class GoLiveResponse extends BaseModel { public function __construct( - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GroupedQueryChannelsRequest.php b/src/GeneratedModels/GroupedQueryChannelsRequest.php index a4c3570..0dac47a 100644 --- a/src/GeneratedModels/GroupedQueryChannelsRequest.php +++ b/src/GeneratedModels/GroupedQueryChannelsRequest.php @@ -11,7 +11,7 @@ public function __construct( #[MapOf(GroupedChannelsGroupRequest::class)] public ?array $groups = null, // Groups to return, keyed by group name. Each group can define limit, next, or prev. 'next' and 'prev' cursors are only allowed when the request contains exactly one group; multi-group pagination is rejected. public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/HideChannelRequest.php b/src/GeneratedModels/HideChannelRequest.php index 5304c2e..feb34cf 100644 --- a/src/GeneratedModels/HideChannelRequest.php +++ b/src/GeneratedModels/HideChannelRequest.php @@ -8,7 +8,7 @@ class HideChannelRequest extends BaseModel public function __construct( public ?bool $clearHistory = null, // Whether to clear message history of the channel or not public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/IPContentCountRuleParameters.php b/src/GeneratedModels/IPContentCountRuleParameters.php new file mode 100644 index 0000000..741c969 --- /dev/null +++ b/src/GeneratedModels/IPContentCountRuleParameters.php @@ -0,0 +1,16 @@ +|null */ #[ArrayOf(Classification::class)] diff --git a/src/GeneratedModels/MemberAddedEvent.php b/src/GeneratedModels/MemberAddedEvent.php index 6cf34fb..9ee77c6 100644 --- a/src/GeneratedModels/MemberAddedEvent.php +++ b/src/GeneratedModels/MemberAddedEvent.php @@ -22,7 +22,7 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel to which the member was added public ?string $channelID = null, // The ID of the channel to which the member was added - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat ) { } diff --git a/src/GeneratedModels/MemberRemovedEvent.php b/src/GeneratedModels/MemberRemovedEvent.php index 380389a..85c4c0e 100644 --- a/src/GeneratedModels/MemberRemovedEvent.php +++ b/src/GeneratedModels/MemberRemovedEvent.php @@ -22,7 +22,7 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel from which the member was removed public ?string $channelID = null, // The ID of the channel from which the member was removed - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat ) { } diff --git a/src/GeneratedModels/MemberResponse.php b/src/GeneratedModels/MemberResponse.php index d9d4126..a8abd68 100644 --- a/src/GeneratedModels/MemberResponse.php +++ b/src/GeneratedModels/MemberResponse.php @@ -9,7 +9,7 @@ class MemberResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $userID = null, public ?string $role = null, public ?object $custom = null, // Custom member response data diff --git a/src/GeneratedModels/MemberUpdatedEvent.php b/src/GeneratedModels/MemberUpdatedEvent.php index be5e301..3860c65 100644 --- a/src/GeneratedModels/MemberUpdatedEvent.php +++ b/src/GeneratedModels/MemberUpdatedEvent.php @@ -22,7 +22,7 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel in which the member was updated public ?string $channelID = null, // The ID of the channel in which the member was updated - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat ) { } diff --git a/src/GeneratedModels/MessageActionRequest.php b/src/GeneratedModels/MessageActionRequest.php index 50c7593..0f36b2a 100644 --- a/src/GeneratedModels/MessageActionRequest.php +++ b/src/GeneratedModels/MessageActionRequest.php @@ -8,7 +8,7 @@ class MessageActionRequest extends BaseModel public function __construct( public ?array $formData = null, // ReadOnlyData to execute command with public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/MessageActionResponse.php b/src/GeneratedModels/MessageActionResponse.php index c25945e..a4cf3ee 100644 --- a/src/GeneratedModels/MessageActionResponse.php +++ b/src/GeneratedModels/MessageActionResponse.php @@ -9,7 +9,7 @@ class MessageActionResponse extends BaseModel { public function __construct( - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/MessageDeletedEvent.php b/src/GeneratedModels/MessageDeletedEvent.php index a40b020..a2b9ecc 100644 --- a/src/GeneratedModels/MessageDeletedEvent.php +++ b/src/GeneratedModels/MessageDeletedEvent.php @@ -21,7 +21,7 @@ public function __construct( public ?string $channelType = null, // The type of the channel where the message was sent public ?string $channelID = null, // The ID of the channel where the message was sent public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?UserResponseCommonFields $user = null, public ?bool $hardDelete = null, // Whether the message was hard deleted public ?bool $deletedForMe = null, // Whether the message was deleted only for the current user diff --git a/src/GeneratedModels/MessageFlagResponse.php b/src/GeneratedModels/MessageFlagResponse.php index 09ca42d..b166ee5 100644 --- a/src/GeneratedModels/MessageFlagResponse.php +++ b/src/GeneratedModels/MessageFlagResponse.php @@ -7,17 +7,17 @@ class MessageFlagResponse extends BaseModel { public function __construct( public ?bool $createdByAutomod = null, - public ?MessageModerationResult $moderationResult = null, + public ?MessageModerationResult $moderationResult = null, // Result of the message moderation public ?FlagFeedbackResponse $moderationFeedback = null, - public ?UserResponse $user = null, - public ?MessageResponse $message = null, + public ?UserResponse $user = null, // User response object + public ?MessageResponse $message = null, // Represents any chat message public ?FlagDetailsResponse $details = null, public ?string $reason = null, public ?object $custom = null, public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, public ?\DateTime $reviewedAt = null, - public ?UserResponse $reviewedBy = null, + public ?UserResponse $reviewedBy = null, // User response object public ?\DateTime $approvedAt = null, public ?\DateTime $rejectedAt = null, ) { diff --git a/src/GeneratedModels/MessageFlaggedEvent.php b/src/GeneratedModels/MessageFlaggedEvent.php index 5eda169..ebdaab1 100644 --- a/src/GeneratedModels/MessageFlaggedEvent.php +++ b/src/GeneratedModels/MessageFlaggedEvent.php @@ -20,12 +20,12 @@ public function __construct( public ?string $channelType = null, // The type of the channel where the message was sent public ?string $channelID = null, // The ID of the channel where the message was sent public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?UserResponseCommonFields $user = null, public ?FlagResponse $flag = null, public ?string $reason = null, // The reason for the flag public ?int $totalFlags = null, // The total number of flags for the user - public ?MessageModerationResult $details = null, + public ?MessageModerationResult $details = null, // Result of the message moderation public ?object $custom = null, // Custom data ) { } diff --git a/src/GeneratedModels/MessageModerationResult.php b/src/GeneratedModels/MessageModerationResult.php index 1083694..99e34a9 100644 --- a/src/GeneratedModels/MessageModerationResult.php +++ b/src/GeneratedModels/MessageModerationResult.php @@ -14,7 +14,7 @@ public function __construct( public ?string $moderatedBy = null, // User who moderated the message public ?string $blockedWord = null, // Word that was blocked public ?string $blocklistName = null, // Name of the blocklist - public ?Thresholds $moderationThresholds = null, + public ?Thresholds $moderationThresholds = null, // Sets thresholds for AI moderation public ?ModerationResponse $aiModerationResponse = null, public ?float $userKarma = null, // Karma of the user public ?bool $userBadKarma = null, // Whether user has bad karma diff --git a/src/GeneratedModels/MessageNewEvent.php b/src/GeneratedModels/MessageNewEvent.php index 4af4fbb..ac2c4d8 100644 --- a/src/GeneratedModels/MessageNewEvent.php +++ b/src/GeneratedModels/MessageNewEvent.php @@ -21,14 +21,14 @@ public function __construct( public ?string $channelType = null, // The type of the channel where the message was sent public ?string $channelID = null, // The ID of the channel where the message was sent public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?UserResponseCommonFields $user = null, public ?int $watcherCount = null, // The number of watchers /** @var array|null */ #[ArrayOf(UserResponseCommonFields::class)] public ?array $threadParticipants = null, // The participants of the thread public ?string $parentAuthor = null, // The author of the parent message - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?int $unreadCount = null, // The number of unread messages public ?int $totalUnreadCount = null, public ?int $unreadChannels = null, diff --git a/src/GeneratedModels/MessageOptions.php b/src/GeneratedModels/MessageOptions.php index 22e91bf..927db16 100644 --- a/src/GeneratedModels/MessageOptions.php +++ b/src/GeneratedModels/MessageOptions.php @@ -7,6 +7,7 @@ class MessageOptions extends BaseModel { public function __construct( public ?bool $includeThreadParticipants = null, + public ?array $memberCustomInclude = null, ) { } diff --git a/src/GeneratedModels/MessageReadEvent.php b/src/GeneratedModels/MessageReadEvent.php index 0232d66..25faa58 100644 --- a/src/GeneratedModels/MessageReadEvent.php +++ b/src/GeneratedModels/MessageReadEvent.php @@ -21,7 +21,7 @@ public function __construct( public ?string $channelType = null, // The type of the channel where the message was read public ?string $channelID = null, // The ID of the channel where the message was read public ?UserResponseCommonFields $user = null, - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?ThreadResponse $thread = null, public ?string $lastReadMessageID = null, // The ID of the last read message ) { diff --git a/src/GeneratedModels/MessageRequest.php b/src/GeneratedModels/MessageRequest.php index 02517ac..8a3af39 100644 --- a/src/GeneratedModels/MessageRequest.php +++ b/src/GeneratedModels/MessageRequest.php @@ -32,7 +32,7 @@ public function __construct( public ?\DateTime $pinExpires = null, // Date when pinned message expires public ?array $restrictedVisibility = null, // A list of user ids that have restricted visibility to the message public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object public ?string $pollID = null, // Identifier of the poll to include in the message public ?SharedLocation $sharedLocation = null, ) { diff --git a/src/GeneratedModels/MessageResponse.php b/src/GeneratedModels/MessageResponse.php index 14e1e47..e13c539 100644 --- a/src/GeneratedModels/MessageResponse.php +++ b/src/GeneratedModels/MessageResponse.php @@ -15,8 +15,8 @@ public function __construct( public ?string $command = null, // Contains provided slash command public ?string $html = null, // Contains HTML markup of the message. Can only be set when using server-side API public ?string $type = null, // Contains type of the message. One of: regular, ephemeral, error, reply, system, deleted - public ?UserResponse $user = null, - public ?ChannelMemberResponse $member = null, + public ?UserResponse $user = null, // User response object + public ?ChannelMemberPartialResponse $member = null, /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // Array of message attachments @@ -36,7 +36,7 @@ public function __construct( public ?int $replyCount = null, // Number of replies to this message public ?int $deletedReplyCount = null, public ?string $quotedMessageID = null, - public ?MessageResponse $quotedMessage = null, + public ?MessageResponse $quotedMessage = null, // Represents any chat message /** @var array|null */ #[ArrayOf(UserResponse::class)] public ?array $threadParticipants = null, // List of users who participate in thread @@ -61,7 +61,7 @@ public function __construct( public ?bool $silent = null, // Whether message is silent or not public ?bool $pinned = null, // Whether message is pinned or not public ?\DateTime $pinnedAt = null, // Date when message got pinned - public ?UserResponse $pinnedBy = null, + public ?UserResponse $pinnedBy = null, // User response object public ?\DateTime $pinExpires = null, // Date when pinned message expires public ?\DateTime $messageTextUpdatedAt = null, public ?string $pollID = null, // Identifier of the poll to include in the message diff --git a/src/GeneratedModels/MessageUnblockedEvent.php b/src/GeneratedModels/MessageUnblockedEvent.php index 6dfc24e..a50f86f 100644 --- a/src/GeneratedModels/MessageUnblockedEvent.php +++ b/src/GeneratedModels/MessageUnblockedEvent.php @@ -15,7 +15,7 @@ public function __construct( public ?object $custom = null, public ?string $cid = null, // The CID of the channel where the message was unblocked public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?UserResponseCommonFields $user = null, ) { } diff --git a/src/GeneratedModels/MessageUndeletedEvent.php b/src/GeneratedModels/MessageUndeletedEvent.php index 9fbd442..d2e2c94 100644 --- a/src/GeneratedModels/MessageUndeletedEvent.php +++ b/src/GeneratedModels/MessageUndeletedEvent.php @@ -21,7 +21,7 @@ public function __construct( public ?string $channelType = null, // The type of the channel where the message was sent public ?string $channelID = null, // The ID of the channel where the message was sent public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message ) { } diff --git a/src/GeneratedModels/MessageUpdatedEvent.php b/src/GeneratedModels/MessageUpdatedEvent.php index c9a2a9d..4b9bda8 100644 --- a/src/GeneratedModels/MessageUpdatedEvent.php +++ b/src/GeneratedModels/MessageUpdatedEvent.php @@ -21,7 +21,7 @@ public function __construct( public ?string $channelType = null, // The type of the channel where the message was sent public ?string $channelID = null, // The ID of the channel where the message was sent public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?UserResponseCommonFields $user = null, public ?MessageUpdate $messageUpdate = null, ) { diff --git a/src/GeneratedModels/MessageWithChannelResponse.php b/src/GeneratedModels/MessageWithChannelResponse.php index e8dac45..92942a4 100644 --- a/src/GeneratedModels/MessageWithChannelResponse.php +++ b/src/GeneratedModels/MessageWithChannelResponse.php @@ -15,8 +15,8 @@ public function __construct( public ?string $command = null, // Contains provided slash command public ?string $html = null, // Contains HTML markup of the message. Can only be set when using server-side API public ?string $type = null, // Contains type of the message. One of: regular, ephemeral, error, reply, system, deleted - public ?UserResponse $user = null, - public ?ChannelMemberResponse $member = null, + public ?UserResponse $user = null, // User response object + public ?ChannelMemberPartialResponse $member = null, /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // Array of message attachments @@ -36,7 +36,7 @@ public function __construct( public ?int $replyCount = null, // Number of replies to this message public ?int $deletedReplyCount = null, public ?string $quotedMessageID = null, - public ?MessageResponse $quotedMessage = null, + public ?MessageResponse $quotedMessage = null, // Represents any chat message /** @var array|null */ #[ArrayOf(UserResponse::class)] public ?array $threadParticipants = null, // List of users who participate in thread @@ -61,7 +61,7 @@ public function __construct( public ?bool $silent = null, // Whether message is silent or not public ?bool $pinned = null, // Whether message is pinned or not public ?\DateTime $pinnedAt = null, // Date when message got pinned - public ?UserResponse $pinnedBy = null, + public ?UserResponse $pinnedBy = null, // User response object public ?\DateTime $pinExpires = null, // Date when pinned message expires public ?\DateTime $messageTextUpdatedAt = null, public ?string $pollID = null, // Identifier of the poll to include in the message @@ -72,7 +72,7 @@ public function __construct( public ?ReminderResponseData $reminder = null, public ?SharedLocationResponseData $sharedLocation = null, public ?bool $deletedForMe = null, - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat ) { } diff --git a/src/GeneratedModels/MetricsPct.php b/src/GeneratedModels/MetricsPct.php new file mode 100644 index 0000000..98db508 --- /dev/null +++ b/src/GeneratedModels/MetricsPct.php @@ -0,0 +1,19 @@ +|null */ #[ArrayOf(UserResponseCommonFields::class)] diff --git a/src/GeneratedModels/OwnBatchRequest.php b/src/GeneratedModels/OwnBatchRequest.php index 489dac1..6d119f3 100644 --- a/src/GeneratedModels/OwnBatchRequest.php +++ b/src/GeneratedModels/OwnBatchRequest.php @@ -12,7 +12,7 @@ public function __construct( public ?array $feeds = null, // List of feed IDs to get own fields for public ?array $fields = null, // Optional list of specific fields to return. If not specified, all fields (own_follows, own_followings, own_capabilities, own_membership) are returned public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/PendingMessageEvent.php b/src/GeneratedModels/PendingMessageEvent.php index 5a8bac4..3f3bd5c 100644 --- a/src/GeneratedModels/PendingMessageEvent.php +++ b/src/GeneratedModels/PendingMessageEvent.php @@ -12,9 +12,9 @@ public function __construct( public ?string $type = null, // The type of event: "message.pending" in this case public ?\DateTime $receivedAt = null, public ?object $custom = null, - public ?UserResponse $user = null, - public ?ChannelResponse $channel = null, - public ?MessageResponse $message = null, + public ?UserResponse $user = null, // User response object + public ?ChannelResponse $channel = null, // Represents channel in chat + public ?MessageResponse $message = null, // Represents any chat message public ?array $metadata = null, // Metadata attached to the pending message public ?string $method = null, // The method used for the pending message public ?\DateTime $createdAt = null, // Date/time of creation diff --git a/src/GeneratedModels/PendingMessageResponse.php b/src/GeneratedModels/PendingMessageResponse.php index 58f6c63..1702432 100644 --- a/src/GeneratedModels/PendingMessageResponse.php +++ b/src/GeneratedModels/PendingMessageResponse.php @@ -6,9 +6,9 @@ class PendingMessageResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, - public ?ChannelResponse $channel = null, - public ?MessageResponse $message = null, + public ?UserResponse $user = null, // User response object + public ?ChannelResponse $channel = null, // Represents channel in chat + public ?MessageResponse $message = null, // Represents any chat message public ?array $metadata = null, ) { } diff --git a/src/GeneratedModels/Percentiles.php b/src/GeneratedModels/Percentiles.php new file mode 100644 index 0000000..491c9a4 --- /dev/null +++ b/src/GeneratedModels/Percentiles.php @@ -0,0 +1,16 @@ +|null */ + #[MapOf(PolicyTestLabelDrift::class)] + public ?array $byLabel = 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/PolicyTestRunResponse.php b/src/GeneratedModels/PolicyTestRunResponse.php new file mode 100644 index 0000000..7826ca6 --- /dev/null +++ b/src/GeneratedModels/PolicyTestRunResponse.php @@ -0,0 +1,19 @@ +|null */ + #[ArrayOf(PolicyTestResult::class)] + public ?array $results = null, // Per-row results (only present once the run has finished) + public ?string $duration = 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/PolicyTestSeedSpec.php b/src/GeneratedModels/PolicyTestSeedSpec.php new file mode 100644 index 0000000..094a955 --- /dev/null +++ b/src/GeneratedModels/PolicyTestSeedSpec.php @@ -0,0 +1,16 @@ +|null */ + #[ArrayOf(PolicyTestRow::class)] + public ?array $rows = null, + public ?int $rowCount = null, + public ?string $createdBy = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, + public ?PolicyTestRun $lastRun = 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/PolicyTestSetListResponse.php b/src/GeneratedModels/PolicyTestSetListResponse.php new file mode 100644 index 0000000..dccc2c1 --- /dev/null +++ b/src/GeneratedModels/PolicyTestSetListResponse.php @@ -0,0 +1,18 @@ +|null */ + #[ArrayOf(PolicyTestSet::class)] + public ?array $sets = null, // List of policy test sets for the app + public ?string $duration = 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/PolicyTestSetResponse.php b/src/GeneratedModels/PolicyTestSetResponse.php new file mode 100644 index 0000000..81c350b --- /dev/null +++ b/src/GeneratedModels/PolicyTestSetResponse.php @@ -0,0 +1,20 @@ +|null */ + #[ArrayOf(PolicyTestRun::class)] + public ?array $recentRuns = null, // Retained run history for this set, newest first + public ?string $baselineRunID = null, // The set's baseline run (earliest completed run); later runs are scored against it. Absent until the first run completes + public ?string $duration = 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/PolicyTestTotals.php b/src/GeneratedModels/PolicyTestTotals.php new file mode 100644 index 0000000..fef35ce --- /dev/null +++ b/src/GeneratedModels/PolicyTestTotals.php @@ -0,0 +1,19 @@ +|null */ + #[ArrayOf(Incident::class)] + public ?array $interruptionIncidents = null, + public ?float $viewerInterruptionRatePct = null, + public ?string $viewerInterruptionNote = 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/QueryActivitiesRequest.php b/src/GeneratedModels/QueryActivitiesRequest.php index 8a1047a..ffa6f11 100644 --- a/src/GeneratedModels/QueryActivitiesRequest.php +++ b/src/GeneratedModels/QueryActivitiesRequest.php @@ -18,7 +18,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryActivityReactionsRequest.php b/src/GeneratedModels/QueryActivityReactionsRequest.php index 0f69db0..15f5c4b 100644 --- a/src/GeneratedModels/QueryActivityReactionsRequest.php +++ b/src/GeneratedModels/QueryActivityReactionsRequest.php @@ -6,7 +6,7 @@ class QueryActivityReactionsRequest extends BaseModel { public function __construct( - public ?object $filter = null, + public ?object $filter = null, // Filters to apply to the query /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, diff --git a/src/GeneratedModels/QueryAppealsRequest.php b/src/GeneratedModels/QueryAppealsRequest.php index 2409937..83e7c6c 100644 --- a/src/GeneratedModels/QueryAppealsRequest.php +++ b/src/GeneratedModels/QueryAppealsRequest.php @@ -14,7 +14,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryBannedUsersPayload.php b/src/GeneratedModels/QueryBannedUsersPayload.php index 3f83574..446ea42 100644 --- a/src/GeneratedModels/QueryBannedUsersPayload.php +++ b/src/GeneratedModels/QueryBannedUsersPayload.php @@ -14,7 +14,7 @@ public function __construct( public ?int $offset = null, // Number of records to offset public ?bool $excludeExpiredBans = null, // Whether to exclude expired bans or not public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryBookmarksRequest.php b/src/GeneratedModels/QueryBookmarksRequest.php index 7558fa1..d115c7c 100644 --- a/src/GeneratedModels/QueryBookmarksRequest.php +++ b/src/GeneratedModels/QueryBookmarksRequest.php @@ -15,7 +15,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryCallParticipantsResponse.php b/src/GeneratedModels/QueryCallParticipantsResponse.php index 202eae6..809bfe2 100644 --- a/src/GeneratedModels/QueryCallParticipantsResponse.php +++ b/src/GeneratedModels/QueryCallParticipantsResponse.php @@ -6,7 +6,7 @@ class QueryCallParticipantsResponse extends BaseModel { public function __construct( - public ?CallResponse $call = null, + public ?CallResponse $call = null, // Represents a call /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, diff --git a/src/GeneratedModels/QueryCampaignsRequest.php b/src/GeneratedModels/QueryCampaignsRequest.php index 5f75306..c15cc0c 100644 --- a/src/GeneratedModels/QueryCampaignsRequest.php +++ b/src/GeneratedModels/QueryCampaignsRequest.php @@ -6,7 +6,7 @@ class QueryCampaignsRequest extends BaseModel { public function __construct( - public ?object $filter = null, + public ?object $filter = null, // Filter to apply to the query /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, diff --git a/src/GeneratedModels/QueryChannelsRequest.php b/src/GeneratedModels/QueryChannelsRequest.php index eae2f8e..73ab844 100644 --- a/src/GeneratedModels/QueryChannelsRequest.php +++ b/src/GeneratedModels/QueryChannelsRequest.php @@ -18,8 +18,9 @@ public function __construct( public ?string $predefinedFilter = null, // ID of a predefined filter to use instead of filter_conditions public ?object $filterValues = null, // Values to interpolate into the predefined filter template public ?object $sortValues = null, + public ?array $memberCustomInclude = null, // Top-level keys of the message sender's channel-member custom data to include under member.custom (max 8 keys, 64 chars each) public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryCollectionsRequest.php b/src/GeneratedModels/QueryCollectionsRequest.php index c389317..e69f75c 100644 --- a/src/GeneratedModels/QueryCollectionsRequest.php +++ b/src/GeneratedModels/QueryCollectionsRequest.php @@ -14,7 +14,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryCommentReactionsRequest.php b/src/GeneratedModels/QueryCommentReactionsRequest.php index efeaf7a..30c520a 100644 --- a/src/GeneratedModels/QueryCommentReactionsRequest.php +++ b/src/GeneratedModels/QueryCommentReactionsRequest.php @@ -6,7 +6,7 @@ class QueryCommentReactionsRequest extends BaseModel { public function __construct( - public ?object $filter = null, + public ?object $filter = null, // Filters to apply to the query /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, diff --git a/src/GeneratedModels/QueryCommentsRequest.php b/src/GeneratedModels/QueryCommentsRequest.php index 06f9c1c..e01679a 100644 --- a/src/GeneratedModels/QueryCommentsRequest.php +++ b/src/GeneratedModels/QueryCommentsRequest.php @@ -13,7 +13,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryDraftsRequest.php b/src/GeneratedModels/QueryDraftsRequest.php index 753cbee..d7a71be 100644 --- a/src/GeneratedModels/QueryDraftsRequest.php +++ b/src/GeneratedModels/QueryDraftsRequest.php @@ -11,7 +11,7 @@ public function __construct( #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, // Array of sort parameters public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object public ?int $limit = null, public ?string $next = null, public ?string $prev = null, diff --git a/src/GeneratedModels/QueryFeedModerationTemplate.php b/src/GeneratedModels/QueryFeedModerationTemplate.php index 8ffc035..b9e400a 100644 --- a/src/GeneratedModels/QueryFeedModerationTemplate.php +++ b/src/GeneratedModels/QueryFeedModerationTemplate.php @@ -7,7 +7,7 @@ class QueryFeedModerationTemplate extends BaseModel { public function __construct( public ?string $name = null, // Name of the moderation template - public ?FeedsModerationTemplateConfigPayload $config = null, + public ?FeedsModerationTemplateConfigPayload $config = null, // Configuration for a feeds moderation template public ?\DateTime $createdAt = null, // When the template was created public ?\DateTime $updatedAt = null, // When the template was last updated ) { diff --git a/src/GeneratedModels/QueryFutureChannelBansPayload.php b/src/GeneratedModels/QueryFutureChannelBansPayload.php index 66b11e6..e9fa96d 100644 --- a/src/GeneratedModels/QueryFutureChannelBansPayload.php +++ b/src/GeneratedModels/QueryFutureChannelBansPayload.php @@ -9,9 +9,10 @@ public function __construct( public ?int $limit = null, // Number of records to return public ?int $offset = null, // Number of records to offset public ?bool $excludeExpiredBans = null, // Whether to exclude expired bans or not - public ?string $targetUserID = null, // Filter by the target user ID. For server-side requests only. + 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. public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryFutureChannelBansResponse.php b/src/GeneratedModels/QueryFutureChannelBansResponse.php index 1639474..21ba3da 100644 --- a/src/GeneratedModels/QueryFutureChannelBansResponse.php +++ b/src/GeneratedModels/QueryFutureChannelBansResponse.php @@ -9,6 +9,7 @@ public function __construct( /** @var array|null */ #[ArrayOf(FutureChannelBanResponse::class)] public ?array $bans = null, // List of found future channel bans + public ?int $total = null, // Total number of bans matching the query filter, computed at query time and capped at 100000. Only present when include_total is set on the request; omitted when computing the total timed out public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryLabelResultsRequest.php b/src/GeneratedModels/QueryLabelResultsRequest.php index cd43a2a..e25ac29 100644 --- a/src/GeneratedModels/QueryLabelResultsRequest.php +++ b/src/GeneratedModels/QueryLabelResultsRequest.php @@ -14,7 +14,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryMembersPayload.php b/src/GeneratedModels/QueryMembersPayload.php index cd5d933..f5ccf24 100644 --- a/src/GeneratedModels/QueryMembersPayload.php +++ b/src/GeneratedModels/QueryMembersPayload.php @@ -18,7 +18,7 @@ public function __construct( public ?int $limit = null, public ?int $offset = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryMessageFlagsPayload.php b/src/GeneratedModels/QueryMessageFlagsPayload.php index a25ca01..91b0b28 100644 --- a/src/GeneratedModels/QueryMessageFlagsPayload.php +++ b/src/GeneratedModels/QueryMessageFlagsPayload.php @@ -14,7 +14,7 @@ public function __construct( #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, // Array of sort parameters public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryModerationConfigsRequest.php b/src/GeneratedModels/QueryModerationConfigsRequest.php index 38904c3..cfb3d6e 100644 --- a/src/GeneratedModels/QueryModerationConfigsRequest.php +++ b/src/GeneratedModels/QueryModerationConfigsRequest.php @@ -14,7 +14,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryModerationFlagsRequest.php b/src/GeneratedModels/QueryModerationFlagsRequest.php index 9873f51..a3fbdfe 100644 --- a/src/GeneratedModels/QueryModerationFlagsRequest.php +++ b/src/GeneratedModels/QueryModerationFlagsRequest.php @@ -6,7 +6,7 @@ class QueryModerationFlagsRequest extends BaseModel { public function __construct( - public ?object $filter = null, + public ?object $filter = null, // Filter conditions for moderation flags /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, diff --git a/src/GeneratedModels/QueryModerationLogsRequest.php b/src/GeneratedModels/QueryModerationLogsRequest.php index e086dab..8aa0eb5 100644 --- a/src/GeneratedModels/QueryModerationLogsRequest.php +++ b/src/GeneratedModels/QueryModerationLogsRequest.php @@ -14,7 +14,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryModerationRulesRequest.php b/src/GeneratedModels/QueryModerationRulesRequest.php index 889cebc..5070b4a 100644 --- a/src/GeneratedModels/QueryModerationRulesRequest.php +++ b/src/GeneratedModels/QueryModerationRulesRequest.php @@ -14,7 +14,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryReactionsRequest.php b/src/GeneratedModels/QueryReactionsRequest.php index eeed349..decd149 100644 --- a/src/GeneratedModels/QueryReactionsRequest.php +++ b/src/GeneratedModels/QueryReactionsRequest.php @@ -11,7 +11,7 @@ public function __construct( #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, // Array of sort parameters public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object public ?int $limit = null, public ?string $next = null, public ?string $prev = null, diff --git a/src/GeneratedModels/QueryRemindersRequest.php b/src/GeneratedModels/QueryRemindersRequest.php index 80246b6..ac6b183 100644 --- a/src/GeneratedModels/QueryRemindersRequest.php +++ b/src/GeneratedModels/QueryRemindersRequest.php @@ -11,7 +11,7 @@ public function __construct( #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, // Array of sort parameters public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object public ?int $limit = null, public ?string $next = null, public ?string $prev = null, diff --git a/src/GeneratedModels/QueryReviewQueueRequest.php b/src/GeneratedModels/QueryReviewQueueRequest.php index 1631238..323ff8d 100644 --- a/src/GeneratedModels/QueryReviewQueueRequest.php +++ b/src/GeneratedModels/QueryReviewQueueRequest.php @@ -19,7 +19,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryThreadsRequest.php b/src/GeneratedModels/QueryThreadsRequest.php index 0ff1d8f..a46d5f5 100644 --- a/src/GeneratedModels/QueryThreadsRequest.php +++ b/src/GeneratedModels/QueryThreadsRequest.php @@ -17,7 +17,7 @@ public function __construct( public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/QueryUsersPayload.php b/src/GeneratedModels/QueryUsersPayload.php index a49f125..6db1ade 100644 --- a/src/GeneratedModels/QueryUsersPayload.php +++ b/src/GeneratedModels/QueryUsersPayload.php @@ -15,7 +15,7 @@ public function __construct( public ?int $limit = null, public ?int $offset = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/ReactionDeletedEvent.php b/src/GeneratedModels/ReactionDeletedEvent.php index c2b62fb..ae45f2a 100644 --- a/src/GeneratedModels/ReactionDeletedEvent.php +++ b/src/GeneratedModels/ReactionDeletedEvent.php @@ -11,7 +11,7 @@ class ReactionDeletedEvent extends BaseModel public function __construct( public ?ReactionResponse $reaction = null, public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message /** @var array|null */ #[ArrayOf(UserResponseCommonFields::class)] public ?array $threadParticipants = null, // The participants of the thread @@ -27,7 +27,7 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel containing the message public ?string $channelID = null, // The ID of the channel containing the message - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat ) { } diff --git a/src/GeneratedModels/ReactionGroupUserResponse.php b/src/GeneratedModels/ReactionGroupUserResponse.php index 950fccc..7fe35f2 100644 --- a/src/GeneratedModels/ReactionGroupUserResponse.php +++ b/src/GeneratedModels/ReactionGroupUserResponse.php @@ -10,7 +10,7 @@ class ReactionGroupUserResponse extends BaseModel { public function __construct( public ?string $userID = null, // The ID of the user who reacted. - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?\DateTime $createdAt = null, // The time when the user reacted. ) { } diff --git a/src/GeneratedModels/ReactionNewEvent.php b/src/GeneratedModels/ReactionNewEvent.php index 42b04b9..90c405a 100644 --- a/src/GeneratedModels/ReactionNewEvent.php +++ b/src/GeneratedModels/ReactionNewEvent.php @@ -11,7 +11,7 @@ class ReactionNewEvent extends BaseModel public function __construct( public ?ReactionResponse $reaction = null, public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message /** @var array|null */ #[ArrayOf(UserResponseCommonFields::class)] public ?array $threadParticipants = null, // The participants of the thread @@ -27,7 +27,7 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel containing the message public ?string $channelID = null, // The ID of the channel containing the message - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat ) { } diff --git a/src/GeneratedModels/ReactionRequest.php b/src/GeneratedModels/ReactionRequest.php index 4771445..0873027 100644 --- a/src/GeneratedModels/ReactionRequest.php +++ b/src/GeneratedModels/ReactionRequest.php @@ -15,7 +15,7 @@ public function __construct( public ?\DateTime $updatedAt = null, // Date/time of the last update public ?object $custom = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/ReactionResponse.php b/src/GeneratedModels/ReactionResponse.php index cc9a594..28397b6 100644 --- a/src/GeneratedModels/ReactionResponse.php +++ b/src/GeneratedModels/ReactionResponse.php @@ -8,7 +8,7 @@ class ReactionResponse extends BaseModel public function __construct( public ?string $messageID = null, // Message ID public ?string $userID = null, // User ID - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $type = null, // Type of reaction public ?int $score = null, // Score of the reaction public ?\DateTime $createdAt = null, // Date/time of creation diff --git a/src/GeneratedModels/ReactionUpdatedEvent.php b/src/GeneratedModels/ReactionUpdatedEvent.php index c916bfe..56e1efa 100644 --- a/src/GeneratedModels/ReactionUpdatedEvent.php +++ b/src/GeneratedModels/ReactionUpdatedEvent.php @@ -11,7 +11,7 @@ class ReactionUpdatedEvent extends BaseModel public function __construct( public ?ReactionResponse $reaction = null, public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "reaction.updated" in this case public ?\DateTime $createdAt = null, // Date/time of creation @@ -24,7 +24,7 @@ public function __construct( public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel containing the message public ?string $channelID = null, // The ID of the channel containing the message - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat ) { } diff --git a/src/GeneratedModels/ReactivateUserResponse.php b/src/GeneratedModels/ReactivateUserResponse.php index 6309cbe..7cc9d00 100644 --- a/src/GeneratedModels/ReactivateUserResponse.php +++ b/src/GeneratedModels/ReactivateUserResponse.php @@ -6,7 +6,7 @@ class ReactivateUserResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ReadStateResponse.php b/src/GeneratedModels/ReadStateResponse.php index 122959d..c0bfb2c 100644 --- a/src/GeneratedModels/ReadStateResponse.php +++ b/src/GeneratedModels/ReadStateResponse.php @@ -6,7 +6,7 @@ class ReadStateResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?\DateTime $lastRead = null, public ?int $unreadMessages = null, public ?string $lastReadMessageID = null, diff --git a/src/GeneratedModels/RejectFeedMemberInviteRequest.php b/src/GeneratedModels/RejectFeedMemberInviteRequest.php index d51a483..9bdedbc 100644 --- a/src/GeneratedModels/RejectFeedMemberInviteRequest.php +++ b/src/GeneratedModels/RejectFeedMemberInviteRequest.php @@ -7,7 +7,7 @@ class RejectFeedMemberInviteRequest extends BaseModel { public function __construct( public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/ReminderResponseData.php b/src/GeneratedModels/ReminderResponseData.php index 1a99448..f3a7f38 100644 --- a/src/GeneratedModels/ReminderResponseData.php +++ b/src/GeneratedModels/ReminderResponseData.php @@ -8,11 +8,11 @@ class ReminderResponseData extends BaseModel public function __construct( public ?\DateTime $remindAt = null, public ?string $channelCid = null, - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?string $messageID = null, - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?string $userID = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, ) { diff --git a/src/GeneratedModels/ResolveSipInboundRequest.php b/src/GeneratedModels/ResolveSipInboundRequest.php index 750aa9a..73a950d 100644 --- a/src/GeneratedModels/ResolveSipInboundRequest.php +++ b/src/GeneratedModels/ResolveSipInboundRequest.php @@ -11,7 +11,7 @@ class ResolveSipInboundRequest extends BaseModel public function __construct( public ?string $sipTrunkNumber = null, // SIP trunk number to resolve public ?string $sipCallerNumber = null, // SIP caller number - public ?SIPChallengeRequest $challenge = null, + public ?SIPChallengeRequest $challenge = null, // SIP digest challenge authentication data public ?string $trunkID = null, // Optional pre-authenticated trunk ID (from PreAuth no-auth flow) public ?array $sipHeaders = null, // Optional SIP headers as key-value pairs public ?string $routingNumber = null, // Optional routing number for routing number-based call routing (10 digits) diff --git a/src/GeneratedModels/ResolveSipInboundResponse.php b/src/GeneratedModels/ResolveSipInboundResponse.php index 77d05fb..92eb621 100644 --- a/src/GeneratedModels/ResolveSipInboundResponse.php +++ b/src/GeneratedModels/ResolveSipInboundResponse.php @@ -9,9 +9,9 @@ class ResolveSipInboundResponse extends BaseModel { public function __construct( - public ?SipInboundCredentials $credentials = null, - public ?SIPInboundRoutingRuleResponse $sipRoutingRule = null, - public ?SIPTrunkResponse $sipTrunk = null, + public ?SipInboundCredentials $credentials = null, // Credentials for SIP inbound call authentication + public ?SIPInboundRoutingRuleResponse $sipRoutingRule = null, // SIP Inbound Routing Rule response + public ?SIPTrunkResponse $sipTrunk = null, // SIP trunk information public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/RestoreActivityRequest.php b/src/GeneratedModels/RestoreActivityRequest.php index 3c5a773..57f6acc 100644 --- a/src/GeneratedModels/RestoreActivityRequest.php +++ b/src/GeneratedModels/RestoreActivityRequest.php @@ -7,7 +7,7 @@ class RestoreActivityRequest extends BaseModel { public function __construct( public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/RestoreCommentRequest.php b/src/GeneratedModels/RestoreCommentRequest.php index 249a3e9..a233ff3 100644 --- a/src/GeneratedModels/RestoreCommentRequest.php +++ b/src/GeneratedModels/RestoreCommentRequest.php @@ -7,7 +7,7 @@ class RestoreCommentRequest extends BaseModel { public function __construct( public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/ReviewQueueItemResponse.php b/src/GeneratedModels/ReviewQueueItemResponse.php index 31f8834..3df40a3 100644 --- a/src/GeneratedModels/ReviewQueueItemResponse.php +++ b/src/GeneratedModels/ReviewQueueItemResponse.php @@ -11,7 +11,7 @@ public function __construct( public ?\DateTime $updatedAt = null, // When the item was last updated public ?string $entityType = null, // Type of entity being reviewed public ?string $entityID = null, // ID of the entity being reviewed - public ?ModerationPayloadResponse $moderationPayload = null, + public ?ModerationPayloadResponse $moderationPayload = null, // Content payload for moderation public ?string $status = null, // Current status of the review public ?string $recommendedAction = null, // Suggested moderation action public ?\DateTime $completedAt = null, // When the review was completed @@ -27,7 +27,7 @@ public function __construct( public ?ModerationCallResponse $call = null, public ?EntityCreatorResponse $entityCreator = null, public ?string $entityCreatorID = null, // ID of who created the entity - public ?UserResponse $assignedTo = null, + public ?UserResponse $assignedTo = null, // User response object /** @var array|null */ #[ArrayOf(BanInfoResponse::class)] public ?array $bans = null, // Associated ban records diff --git a/src/GeneratedModels/RuleBuilderCondition.php b/src/GeneratedModels/RuleBuilderCondition.php index 43044f2..defc72a 100644 --- a/src/GeneratedModels/RuleBuilderCondition.php +++ b/src/GeneratedModels/RuleBuilderCondition.php @@ -17,8 +17,12 @@ public function __construct( public ?FlagCountRuleParameters $userFlagCountRuleParams = null, public ?FlagCountRuleParameters $contentFlagCountRuleParams = null, public ?UserIdenticalContentCountParameters $userIdenticalContentCountParams = null, + public ?FloodIdenticalRuleParameters $floodIdenticalParams = null, + public ?FloodSimilarRuleParameters $floodSimilarParams = null, public ?ContentCustomPropertyCountParameters $contentCustomPropertyCountParams = null, public ?ContentCustomPropertyParameters $contentCustomPropertyParams = null, + public ?IPContentCountRuleParameters $ipContentCountRuleParams = null, + public ?IPFlagCountRuleParameters $ipFlagCountRuleParams = null, public ?TextContentParameters $textContentParams = null, public ?ImageContentParameters $imageContentParams = null, public ?VideoContentParameters $videoContentParams = null, diff --git a/src/GeneratedModels/SFULocationResponse.php b/src/GeneratedModels/SFULocationResponse.php index 3c53a34..de40114 100644 --- a/src/GeneratedModels/SFULocationResponse.php +++ b/src/GeneratedModels/SFULocationResponse.php @@ -8,8 +8,8 @@ class SFULocationResponse extends BaseModel public function __construct( public ?string $id = null, public ?string $datacenter = null, - public ?LocationResponse $location = null, - public ?CoordinatesResponse $coordinates = null, + public ?LocationResponse $location = null, // Geographic location metadata + public ?CoordinatesResponse $coordinates = null, // Geographic coordinates public ?int $count = null, ) { } diff --git a/src/GeneratedModels/SIPInboundRoutingRuleRequest.php b/src/GeneratedModels/SIPInboundRoutingRuleRequest.php index d64722a..cf9a48c 100644 --- a/src/GeneratedModels/SIPInboundRoutingRuleRequest.php +++ b/src/GeneratedModels/SIPInboundRoutingRuleRequest.php @@ -13,11 +13,11 @@ public function __construct( public ?array $trunkIds = null, // List of SIP trunk IDs public ?array $calledNumbers = null, // List of called numbers public ?array $callerNumbers = null, // List of caller numbers (optional) - public ?SIPDirectRoutingRuleCallConfigsRequest $directRoutingConfigs = null, - public ?SIPInboundRoutingRulePinConfigsRequest $pinRoutingConfigs = null, - public ?SIPCallerConfigsRequest $callerConfigs = null, - public ?SIPCallConfigsRequest $callConfigs = null, - public ?SIPPinProtectionConfigsRequest $pinProtectionConfigs = null, + public ?SIPDirectRoutingRuleCallConfigsRequest $directRoutingConfigs = null, // Configuration for direct routing rule calls + public ?SIPInboundRoutingRulePinConfigsRequest $pinRoutingConfigs = null, // Configuration for PIN routing rule calls + public ?SIPCallerConfigsRequest $callerConfigs = null, // Configuration for SIP caller settings + public ?SIPCallConfigsRequest $callConfigs = null, // Configuration for SIP call settings + public ?SIPPinProtectionConfigsRequest $pinProtectionConfigs = null, // Configuration for PIN protection settings ) { } diff --git a/src/GeneratedModels/SIPInboundRoutingRuleResponse.php b/src/GeneratedModels/SIPInboundRoutingRuleResponse.php index 8e51e2f..d70e2e4 100644 --- a/src/GeneratedModels/SIPInboundRoutingRuleResponse.php +++ b/src/GeneratedModels/SIPInboundRoutingRuleResponse.php @@ -14,11 +14,11 @@ public function __construct( public ?array $trunkIds = null, // List of SIP trunk IDs public ?array $calledNumbers = null, // List of called numbers public ?array $callerNumbers = null, // List of caller numbers - public ?SIPDirectRoutingRuleCallConfigsResponse $directRoutingConfigs = null, - public ?SIPInboundRoutingRulePinConfigsResponse $pinRoutingConfigs = null, - public ?SIPCallerConfigsResponse $callerConfigs = null, - public ?SIPCallConfigsResponse $callConfigs = null, - public ?SIPPinProtectionConfigsResponse $pinProtectionConfigs = null, + public ?SIPDirectRoutingRuleCallConfigsResponse $directRoutingConfigs = null, // Direct routing rule call configuration response + public ?SIPInboundRoutingRulePinConfigsResponse $pinRoutingConfigs = null, // PIN routing rule call configuration response + public ?SIPCallerConfigsResponse $callerConfigs = null, // SIP caller configuration response + public ?SIPCallConfigsResponse $callConfigs = null, // SIP call configuration response + public ?SIPPinProtectionConfigsResponse $pinProtectionConfigs = null, // PIN protection configuration response public ?\DateTime $createdAt = null, // Creation timestamp public ?\DateTime $updatedAt = null, // Last update timestamp public ?string $duration = null, diff --git a/src/GeneratedModels/ScoreBands.php b/src/GeneratedModels/ScoreBands.php new file mode 100644 index 0000000..3add84c --- /dev/null +++ b/src/GeneratedModels/ScoreBands.php @@ -0,0 +1,17 @@ +|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, @@ -33,7 +33,7 @@ public function __construct( public ?int $replyCount = null, public ?int $deletedReplyCount = null, public ?string $quotedMessageID = null, - public ?MessageResponse $quotedMessage = null, + public ?MessageResponse $quotedMessage = null, // Represents any chat message /** @var array|null */ #[ArrayOf(UserResponse::class)] public ?array $threadParticipants = null, @@ -58,7 +58,7 @@ public function __construct( public ?bool $silent = null, public ?bool $pinned = null, public ?\DateTime $pinnedAt = null, - public ?UserResponse $pinnedBy = null, + public ?UserResponse $pinnedBy = null, // User response object public ?\DateTime $pinExpires = null, public ?\DateTime $messageTextUpdatedAt = null, public ?string $pollID = null, @@ -69,7 +69,7 @@ public function __construct( public ?ReminderResponseData $reminder = null, public ?SharedLocationResponseData $sharedLocation = null, public ?bool $deletedForMe = null, - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat ) { } diff --git a/src/GeneratedModels/Segments.php b/src/GeneratedModels/Segments.php new file mode 100644 index 0000000..d43379c --- /dev/null +++ b/src/GeneratedModels/Segments.php @@ -0,0 +1,30 @@ +|null */ + #[ArrayOf(DeliveryZoneSegment::class)] + public ?array $byDeliveryZone = null, + /** @var array|null */ + #[ArrayOf(BroadcastSegment::class)] + public ?array $bySdk = null, + /** @var array|null */ + #[ArrayOf(BroadcastSegment::class)] + public ?array $byOs = null, + /** @var array|null */ + #[ArrayOf(BroadcastSegment::class)] + public ?array $byBrowser = null, + /** @var array|null */ + #[ArrayOf(BroadcastSegment::class)] + public ?array $byCountry = null, + public ?string $byCountryReason = 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/SendCallEventRequest.php b/src/GeneratedModels/SendCallEventRequest.php index 3a95c74..d358111 100644 --- a/src/GeneratedModels/SendCallEventRequest.php +++ b/src/GeneratedModels/SendCallEventRequest.php @@ -10,7 +10,7 @@ class SendCallEventRequest extends BaseModel { public function __construct( public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/SendClosedCaptionRequest.php b/src/GeneratedModels/SendClosedCaptionRequest.php index 6f80a37..47d5113 100644 --- a/src/GeneratedModels/SendClosedCaptionRequest.php +++ b/src/GeneratedModels/SendClosedCaptionRequest.php @@ -7,7 +7,7 @@ class SendClosedCaptionRequest extends BaseModel { public function __construct( public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object public ?string $text = null, public ?string $speakerID = null, public ?\DateTime $startTime = null, diff --git a/src/GeneratedModels/SendMessageRequest.php b/src/GeneratedModels/SendMessageRequest.php index a049cd1..7ae34d4 100644 --- a/src/GeneratedModels/SendMessageRequest.php +++ b/src/GeneratedModels/SendMessageRequest.php @@ -6,13 +6,15 @@ class SendMessageRequest extends BaseModel { public function __construct( - public ?MessageRequest $message = null, + public ?MessageRequest $message = null, // Message data for creating or updating a message public ?bool $skipPush = null, public ?bool $skipEnrichUrl = null, public ?array $pendingMessageMetadata = null, public ?bool $pending = null, public ?bool $forceModeration = null, public ?bool $keepChannelHidden = null, + public ?bool $includeMentionedMembers = null, // When true, the response includes mentioned_members: for each mentioned user, whether that user is currently a channel member. Requires the ReadChannelMembers permission + public ?bool $includeChannelContext = null, // When true, the response includes channel_context: a slim channel object with cid, type, id and created_by ) { } diff --git a/src/GeneratedModels/SendMessageResponse.php b/src/GeneratedModels/SendMessageResponse.php index 1b5fa54..6825a67 100644 --- a/src/GeneratedModels/SendMessageResponse.php +++ b/src/GeneratedModels/SendMessageResponse.php @@ -6,9 +6,11 @@ class SendMessageResponse extends BaseModel { public function __construct( - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?array $pendingMessageMetadata = null, // Pending message metadata public ?string $duration = null, // Duration of the request in milliseconds + public ?array $mentionedMembers = null, // Map of mentioned user ID to whether that user is currently an active channel member. Only set when include_mentioned_members was requested; omitted when the message has no mentions or the membership lookup failed + public ?ChannelContextResponse $channelContext = null, // Slim channel object: identity plus creator ) { } diff --git a/src/GeneratedModels/SendReactionRequest.php b/src/GeneratedModels/SendReactionRequest.php index 316d465..b7dcc65 100644 --- a/src/GeneratedModels/SendReactionRequest.php +++ b/src/GeneratedModels/SendReactionRequest.php @@ -6,7 +6,7 @@ class SendReactionRequest extends BaseModel { public function __construct( - public ?ReactionRequest $reaction = null, + public ?ReactionRequest $reaction = null, // Represents user reaction to a message public ?bool $enforceUnique = null, // Whether to replace all existing user reactions public ?bool $skipPush = null, // Skips any mobile push notifications ) { diff --git a/src/GeneratedModels/SendReactionResponse.php b/src/GeneratedModels/SendReactionResponse.php index 4b87a3e..51a9aeb 100644 --- a/src/GeneratedModels/SendReactionResponse.php +++ b/src/GeneratedModels/SendReactionResponse.php @@ -9,7 +9,7 @@ class SendReactionResponse extends BaseModel { public function __construct( - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?ReactionResponse $reaction = null, public ?string $duration = null, // Duration of the request in milliseconds ) { diff --git a/src/GeneratedModels/ShareResponse.php b/src/GeneratedModels/ShareResponse.php index a24ebda..9c3ae88 100644 --- a/src/GeneratedModels/ShareResponse.php +++ b/src/GeneratedModels/ShareResponse.php @@ -6,7 +6,7 @@ class ShareResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $activityID = null, // ID of the sharing (child) activity public ?\DateTime $createdAt = null, // When the share occurred ) { diff --git a/src/GeneratedModels/SharedLocationResponse.php b/src/GeneratedModels/SharedLocationResponse.php index 9c3d3f3..096e608 100644 --- a/src/GeneratedModels/SharedLocationResponse.php +++ b/src/GeneratedModels/SharedLocationResponse.php @@ -15,8 +15,8 @@ public function __construct( public ?\DateTime $endAt = null, // Time when the live location expires public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $updatedAt = null, // Date/time of the last update - public ?MessageResponse $message = null, - public ?ChannelResponse $channel = null, + public ?MessageResponse $message = null, // Represents any chat message + public ?ChannelResponse $channel = null, // Represents channel in chat public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/SharedLocationResponseData.php b/src/GeneratedModels/SharedLocationResponseData.php index 14e9478..a65b180 100644 --- a/src/GeneratedModels/SharedLocationResponseData.php +++ b/src/GeneratedModels/SharedLocationResponseData.php @@ -15,8 +15,8 @@ public function __construct( public ?\DateTime $endAt = null, public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?MessageResponse $message = null, - public ?ChannelResponse $channel = null, + public ?MessageResponse $message = null, // Represents any chat message + public ?ChannelResponse $channel = null, // Represents channel in chat ) { } diff --git a/src/GeneratedModels/ShowChannelRequest.php b/src/GeneratedModels/ShowChannelRequest.php index 4663e20..5a40999 100644 --- a/src/GeneratedModels/ShowChannelRequest.php +++ b/src/GeneratedModels/ShowChannelRequest.php @@ -7,7 +7,7 @@ class ShowChannelRequest extends BaseModel { public function __construct( public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/SourceHealth.php b/src/GeneratedModels/SourceHealth.php new file mode 100644 index 0000000..a6aff6a --- /dev/null +++ b/src/GeneratedModels/SourceHealth.php @@ -0,0 +1,22 @@ +|null */ + #[ArrayOf(SourceInterruption::class)] + public ?array $interruptions = null, + public ?int $deadAirS = null, + /** @var array|null */ + #[ArrayOf(PublisherSession::class)] + public ?array $publisherSessions = 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/SourceInterruption.php b/src/GeneratedModels/SourceInterruption.php new file mode 100644 index 0000000..9a591a5 --- /dev/null +++ b/src/GeneratedModels/SourceInterruption.php @@ -0,0 +1,18 @@ +|null */ + #[ArrayOf(Incident::class)] + public ?array $deliveryIncidentWindows = null, + public ?array $edgeOutlierZones = null, + /** @var array|null */ + #[ArrayOf(TimeWindow::class)] + public ?array $sourceDropWindows = 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/TeamUsageStats.php b/src/GeneratedModels/TeamUsageStats.php index 4ab20d1..f7e4136 100644 --- a/src/GeneratedModels/TeamUsageStats.php +++ b/src/GeneratedModels/TeamUsageStats.php @@ -10,22 +10,22 @@ class TeamUsageStats extends BaseModel { public function __construct( public ?string $team = null, // Team identifier (empty string for users not assigned to any team) - public ?MetricStats $usersDaily = null, - public ?MetricStats $messagesDaily = null, - public ?MetricStats $translationsDaily = null, - public ?MetricStats $imageModerationsDaily = null, - public ?MetricStats $concurrentUsers = null, - public ?MetricStats $concurrentConnections = null, - public ?MetricStats $usersTotal = null, - public ?MetricStats $usersLast24Hours = null, - public ?MetricStats $usersLast30Days = null, - public ?MetricStats $usersMonthToDate = null, - public ?MetricStats $usersEngagedLast30Days = null, - public ?MetricStats $usersEngagedMonthToDate = null, - public ?MetricStats $messagesTotal = null, - public ?MetricStats $messagesLast24Hours = null, - public ?MetricStats $messagesLast30Days = null, - public ?MetricStats $messagesMonthToDate = null, + public ?MetricStats $usersDaily = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $messagesDaily = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $translationsDaily = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $imageModerationsDaily = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $concurrentUsers = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $concurrentConnections = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $usersTotal = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $usersLast24Hours = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $usersLast30Days = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $usersMonthToDate = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $usersEngagedLast30Days = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $usersEngagedMonthToDate = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $messagesTotal = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $messagesLast24Hours = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $messagesLast30Days = null, // Statistics for a single metric with optional daily breakdown + public ?MetricStats $messagesMonthToDate = null, // Statistics for a single metric with optional daily breakdown ) { } diff --git a/src/GeneratedModels/ThreadParticipant.php b/src/GeneratedModels/ThreadParticipant.php index 52fa1e3..6e6bb09 100644 --- a/src/GeneratedModels/ThreadParticipant.php +++ b/src/GeneratedModels/ThreadParticipant.php @@ -9,12 +9,11 @@ class ThreadParticipant extends BaseModel { public function __construct( - public ?int $appPk = null, public ?string $channelCid = null, public ?\DateTime $lastThreadMessageAt = null, public ?string $threadID = null, // Thead ID is unique string identifier of the thread public ?string $userID = null, // User ID is unique string identifier of the user - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $leftThreadAt = null, // Left Thread At is the time when the user left the thread public ?\DateTime $lastReadAt = null, diff --git a/src/GeneratedModels/ThreadResponse.php b/src/GeneratedModels/ThreadResponse.php index c9cfd62..be3d668 100644 --- a/src/GeneratedModels/ThreadResponse.php +++ b/src/GeneratedModels/ThreadResponse.php @@ -7,11 +7,11 @@ class ThreadResponse extends BaseModel { public function __construct( public ?string $channelCid = null, // Channel CID - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?string $parentMessageID = null, // Parent Message ID - public ?MessageResponse $parentMessage = null, + public ?MessageResponse $parentMessage = null, // Represents any chat message public ?string $createdByUserID = null, // Created By User ID - public ?UserResponse $createdBy = null, + public ?UserResponse $createdBy = null, // User response object public ?int $replyCount = null, // Reply Count public ?int $participantCount = null, // Participant Count public ?int $activeParticipantCount = null, // Active Participant Count diff --git a/src/GeneratedModels/ThreadStateResponse.php b/src/GeneratedModels/ThreadStateResponse.php index d67afb3..648cfe0 100644 --- a/src/GeneratedModels/ThreadStateResponse.php +++ b/src/GeneratedModels/ThreadStateResponse.php @@ -7,11 +7,11 @@ class ThreadStateResponse extends BaseModel { public function __construct( public ?string $channelCid = null, // Channel CID - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat public ?string $parentMessageID = null, // Parent Message ID - public ?MessageResponse $parentMessage = null, + public ?MessageResponse $parentMessage = null, // Represents any chat message public ?string $createdByUserID = null, // Created By User ID - public ?UserResponse $createdBy = null, + public ?UserResponse $createdBy = null, // User response object public ?int $replyCount = null, // Reply Count public ?int $participantCount = null, // Participant Count public ?int $activeParticipantCount = null, // Active Participant Count diff --git a/src/GeneratedModels/ThreadedCommentResponse.php b/src/GeneratedModels/ThreadedCommentResponse.php index 1ece6cb..460a12f 100644 --- a/src/GeneratedModels/ThreadedCommentResponse.php +++ b/src/GeneratedModels/ThreadedCommentResponse.php @@ -12,7 +12,7 @@ public function __construct( public ?string $id = null, public ?string $objectID = null, public ?string $objectType = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $text = null, public ?array $i18n = null, public ?object $custom = null, @@ -46,7 +46,7 @@ public function __construct( /** @var array|null */ #[ArrayOf(FeedsReactionResponse::class)] public ?array $ownReactions = null, - public ?RepliesMeta $meta = null, + public ?RepliesMeta $meta = null, // Cursor & depth information for a comment's direct replies. Mirrors Reddit's 'load more replies' semantics. /** @var array|null */ #[ArrayOf(ThreadedCommentResponse::class)] public ?array $replies = null, // Slice of nested comments (may be empty). diff --git a/src/GeneratedModels/TimeWindow.php b/src/GeneratedModels/TimeWindow.php new file mode 100644 index 0000000..442efda --- /dev/null +++ b/src/GeneratedModels/TimeWindow.php @@ -0,0 +1,16 @@ +|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, diff --git a/src/GeneratedModels/UpdateChannelPartialRequest.php b/src/GeneratedModels/UpdateChannelPartialRequest.php index 2aef32d..e754f4d 100644 --- a/src/GeneratedModels/UpdateChannelPartialRequest.php +++ b/src/GeneratedModels/UpdateChannelPartialRequest.php @@ -9,7 +9,7 @@ public function __construct( public ?object $set = null, public ?array $unset = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdateChannelPartialResponse.php b/src/GeneratedModels/UpdateChannelPartialResponse.php index 6e5b47e..62e0c51 100644 --- a/src/GeneratedModels/UpdateChannelPartialResponse.php +++ b/src/GeneratedModels/UpdateChannelPartialResponse.php @@ -6,7 +6,7 @@ class UpdateChannelPartialResponse extends BaseModel { public function __construct( - public ?ChannelResponse $channel = null, + public ?ChannelResponse $channel = null, // Represents channel in chat /** @var array|null */ #[ArrayOf(ChannelMemberResponse::class)] public ?array $members = null, // List of updated members diff --git a/src/GeneratedModels/UpdateChannelRequest.php b/src/GeneratedModels/UpdateChannelRequest.php index 6812c6a..010b69c 100644 --- a/src/GeneratedModels/UpdateChannelRequest.php +++ b/src/GeneratedModels/UpdateChannelRequest.php @@ -21,7 +21,7 @@ public function __construct( public ?int $cooldown = null, // Sets cool down period for the channel in seconds public ?bool $acceptInvite = null, // Set to `true` to accept the invite public ?bool $rejectInvite = null, // Set to `true` to reject the invite - public ?MessageRequest $message = null, + public ?MessageRequest $message = null, // Message data for creating or updating a message public ?bool $skipPush = null, // When `message` is set disables all push notifications for it public ?bool $hideHistory = null, // Set to `true` to hide channel's history when adding new members public ?\DateTime $hideHistoryBefore = null, // If set, hides channel's history before this time when adding new members. Takes precedence over `hide_history` when both are provided. Must be in RFC3339 format (e.g., "2024-01-01T10:00:00Z") and in the past. @@ -29,7 +29,7 @@ public function __construct( public ?array $removeFilterTags = null, // List of filter tags to remove from the channel public ?ChannelInputRequest $data = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdateChannelResponse.php b/src/GeneratedModels/UpdateChannelResponse.php index 28a7dff..cd0c37d 100644 --- a/src/GeneratedModels/UpdateChannelResponse.php +++ b/src/GeneratedModels/UpdateChannelResponse.php @@ -6,8 +6,8 @@ class UpdateChannelResponse extends BaseModel { public function __construct( - public ?ChannelResponse $channel = null, - public ?MessageResponse $message = null, + public ?ChannelResponse $channel = null, // Represents channel in chat + public ?MessageResponse $message = null, // Represents any chat message /** @var array|null */ #[ArrayOf(ChannelMemberResponse::class)] public ?array $members = null, // List of channel members diff --git a/src/GeneratedModels/UpdateChannelTypeRequest.php b/src/GeneratedModels/UpdateChannelTypeRequest.php index 89720ba..e69c015 100644 --- a/src/GeneratedModels/UpdateChannelTypeRequest.php +++ b/src/GeneratedModels/UpdateChannelTypeRequest.php @@ -40,7 +40,7 @@ public function __construct( #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, public ?array $allowedFlagReasons = null, - public ?Thresholds $automodThresholds = null, + public ?Thresholds $automodThresholds = null, // Sets thresholds for AI moderation public ?bool $skipLastMsgUpdateForSystemMsgs = null, public ?string $pushLevel = null, public ?ChatPreferences $chatPreferences = null, diff --git a/src/GeneratedModels/UpdateChannelTypeResponse.php b/src/GeneratedModels/UpdateChannelTypeResponse.php index 9efb54d..4fa22c1 100644 --- a/src/GeneratedModels/UpdateChannelTypeResponse.php +++ b/src/GeneratedModels/UpdateChannelTypeResponse.php @@ -39,7 +39,7 @@ public function __construct( #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, public ?array $allowedFlagReasons = null, - public ?Thresholds $automodThresholds = null, + public ?Thresholds $automodThresholds = null, // Sets thresholds for AI moderation public ?int $partitionSize = null, public ?string $partitionTtl = null, public ?bool $skipLastMsgUpdateForSystemMsgs = null, diff --git a/src/GeneratedModels/UpdateCollectionsRequest.php b/src/GeneratedModels/UpdateCollectionsRequest.php index 78fc2e5..a80f2a9 100644 --- a/src/GeneratedModels/UpdateCollectionsRequest.php +++ b/src/GeneratedModels/UpdateCollectionsRequest.php @@ -10,7 +10,7 @@ public function __construct( #[ArrayOf(UpdateCollectionRequest::class)] public ?array $collections = null, // List of collections to update (only custom data is updatable) public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdateCommandResponse.php b/src/GeneratedModels/UpdateCommandResponse.php index d7c535a..5b308c6 100644 --- a/src/GeneratedModels/UpdateCommandResponse.php +++ b/src/GeneratedModels/UpdateCommandResponse.php @@ -6,7 +6,7 @@ class UpdateCommandResponse extends BaseModel { public function __construct( - public ?Command $command = null, + public ?Command $command = null, // Represents custom chat command public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateCommentBookmarkRequest.php b/src/GeneratedModels/UpdateCommentBookmarkRequest.php index 8245d73..8df3b33 100644 --- a/src/GeneratedModels/UpdateCommentBookmarkRequest.php +++ b/src/GeneratedModels/UpdateCommentBookmarkRequest.php @@ -11,7 +11,7 @@ public function __construct( public ?AddFolderRequest $newFolder = null, public ?object $custom = null, // Custom data for the bookmark public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdateCommentPartialRequest.php b/src/GeneratedModels/UpdateCommentPartialRequest.php index 6747b16..800d754 100644 --- a/src/GeneratedModels/UpdateCommentPartialRequest.php +++ b/src/GeneratedModels/UpdateCommentPartialRequest.php @@ -15,7 +15,7 @@ public function __construct( public ?bool $copyCustomToNotification = null, // Whether to copy custom data to notification activities Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead public ?bool $forceModeration = null, // If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field. public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdateCommentRequest.php b/src/GeneratedModels/UpdateCommentRequest.php index 9cf72fe..a25d102 100644 --- a/src/GeneratedModels/UpdateCommentRequest.php +++ b/src/GeneratedModels/UpdateCommentRequest.php @@ -19,7 +19,7 @@ public function __construct( public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead public ?bool $forceModeration = null, // If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field. public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdateExternalStorageRequest.php b/src/GeneratedModels/UpdateExternalStorageRequest.php index 8393d91..678cc55 100644 --- a/src/GeneratedModels/UpdateExternalStorageRequest.php +++ b/src/GeneratedModels/UpdateExternalStorageRequest.php @@ -12,9 +12,9 @@ public function __construct( public ?string $storageType = null, // The type of storage to use public ?string $bucket = null, // The name of the bucket on the service provider public ?string $path = null, // The path prefix to use for storing files - public ?S3Request $awsS3 = null, + public ?S3Request $awsS3 = null, // Config for creating Amazon S3 storage. public ?string $gcsCredentials = null, - public ?AzureRequest $azureBlob = null, + public ?AzureRequest $azureBlob = null, // Config for creating Azure Blob Storage storage ) { } diff --git a/src/GeneratedModels/UpdateMessagePartialRequest.php b/src/GeneratedModels/UpdateMessagePartialRequest.php index a4cd6bf..1aeeefa 100644 --- a/src/GeneratedModels/UpdateMessagePartialRequest.php +++ b/src/GeneratedModels/UpdateMessagePartialRequest.php @@ -11,7 +11,7 @@ public function __construct( public ?object $set = null, // Sets new field values public ?array $unset = null, // Array of field names to unset public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdateMessagePartialResponse.php b/src/GeneratedModels/UpdateMessagePartialResponse.php index c508a21..588d8ed 100644 --- a/src/GeneratedModels/UpdateMessagePartialResponse.php +++ b/src/GeneratedModels/UpdateMessagePartialResponse.php @@ -6,7 +6,7 @@ class UpdateMessagePartialResponse extends BaseModel { public function __construct( - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?array $pendingMessageMetadata = null, // Pending message metadata public ?string $duration = null, // Duration of the request in milliseconds ) { diff --git a/src/GeneratedModels/UpdateMessageRequest.php b/src/GeneratedModels/UpdateMessageRequest.php index 14e1e58..dfdf091 100644 --- a/src/GeneratedModels/UpdateMessageRequest.php +++ b/src/GeneratedModels/UpdateMessageRequest.php @@ -6,7 +6,7 @@ class UpdateMessageRequest extends BaseModel { public function __construct( - public ?MessageRequest $message = null, + public ?MessageRequest $message = null, // Message data for creating or updating a message public ?bool $skipPush = null, public ?bool $skipEnrichUrl = null, // Skip enrich URL ) { diff --git a/src/GeneratedModels/UpdateMessageResponse.php b/src/GeneratedModels/UpdateMessageResponse.php index 047bc75..8c0e513 100644 --- a/src/GeneratedModels/UpdateMessageResponse.php +++ b/src/GeneratedModels/UpdateMessageResponse.php @@ -9,7 +9,7 @@ class UpdateMessageResponse extends BaseModel { public function __construct( - public ?MessageResponse $message = null, + public ?MessageResponse $message = null, // Represents any chat message public ?array $pendingMessageMetadata = null, public ?string $duration = null, // Duration of the request in milliseconds ) { diff --git a/src/GeneratedModels/UpdatePollOptionRequest.php b/src/GeneratedModels/UpdatePollOptionRequest.php index afee9db..2840163 100644 --- a/src/GeneratedModels/UpdatePollOptionRequest.php +++ b/src/GeneratedModels/UpdatePollOptionRequest.php @@ -8,9 +8,9 @@ class UpdatePollOptionRequest extends BaseModel public function __construct( public ?string $id = null, // Option ID public ?string $text = null, // Option text - public ?object $custom = null, + public ?object $custom = null, // Custom data for this object public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdatePollPartialRequest.php b/src/GeneratedModels/UpdatePollPartialRequest.php index 72f4402..c5b890f 100644 --- a/src/GeneratedModels/UpdatePollPartialRequest.php +++ b/src/GeneratedModels/UpdatePollPartialRequest.php @@ -9,7 +9,7 @@ public function __construct( public ?object $set = null, // Sets new field values public ?array $unset = null, // Array of field names to unset public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdatePollRequest.php b/src/GeneratedModels/UpdatePollRequest.php index fdc272c..4ba62cd 100644 --- a/src/GeneratedModels/UpdatePollRequest.php +++ b/src/GeneratedModels/UpdatePollRequest.php @@ -18,9 +18,9 @@ public function __construct( public ?bool $allowUserSuggestedOptions = null, // Allow user suggested options public ?bool $allowAnswers = null, // Allow answers public ?bool $isClosed = null, // Is closed - public ?object $custom = null, + public ?object $custom = null, // Custom data for this object public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdateQueueRequest.php b/src/GeneratedModels/UpdateQueueRequest.php index 1f8172a..f2421c2 100644 --- a/src/GeneratedModels/UpdateQueueRequest.php +++ b/src/GeneratedModels/UpdateQueueRequest.php @@ -11,7 +11,7 @@ public function __construct( public ?object $filters = null, public ?array $sort = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdateReminderRequest.php b/src/GeneratedModels/UpdateReminderRequest.php index 5d90762..36ea28f 100644 --- a/src/GeneratedModels/UpdateReminderRequest.php +++ b/src/GeneratedModels/UpdateReminderRequest.php @@ -8,7 +8,7 @@ class UpdateReminderRequest extends BaseModel public function __construct( public ?\DateTime $remindAt = null, public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpdateSIPInboundRoutingRuleRequest.php b/src/GeneratedModels/UpdateSIPInboundRoutingRuleRequest.php index 891efd1..59fce66 100644 --- a/src/GeneratedModels/UpdateSIPInboundRoutingRuleRequest.php +++ b/src/GeneratedModels/UpdateSIPInboundRoutingRuleRequest.php @@ -13,11 +13,11 @@ public function __construct( public ?array $trunkIds = null, // List of SIP trunk IDs public ?array $calledNumbers = null, // List of called numbers public ?array $callerNumbers = null, // List of caller numbers (optional) - public ?SIPDirectRoutingRuleCallConfigsRequest $directRoutingConfigs = null, - public ?SIPInboundRoutingRulePinConfigsRequest $pinRoutingConfigs = null, - public ?SIPCallerConfigsRequest $callerConfigs = null, - public ?SIPCallConfigsRequest $callConfigs = null, - public ?SIPPinProtectionConfigsRequest $pinProtectionConfigs = null, + public ?SIPDirectRoutingRuleCallConfigsRequest $directRoutingConfigs = null, // Configuration for direct routing rule calls + public ?SIPInboundRoutingRulePinConfigsRequest $pinRoutingConfigs = null, // Configuration for PIN routing rule calls + public ?SIPCallerConfigsRequest $callerConfigs = null, // Configuration for SIP caller settings + public ?SIPCallConfigsRequest $callConfigs = null, // Configuration for SIP call settings + public ?SIPPinProtectionConfigsRequest $pinProtectionConfigs = null, // Configuration for PIN protection settings ) { } diff --git a/src/GeneratedModels/UpdateSIPInboundRoutingRuleResponse.php b/src/GeneratedModels/UpdateSIPInboundRoutingRuleResponse.php index c6ff0a8..7a97214 100644 --- a/src/GeneratedModels/UpdateSIPInboundRoutingRuleResponse.php +++ b/src/GeneratedModels/UpdateSIPInboundRoutingRuleResponse.php @@ -9,7 +9,7 @@ class UpdateSIPInboundRoutingRuleResponse extends BaseModel { public function __construct( - public ?SIPInboundRoutingRuleResponse $sipInboundRoutingRule = null, + public ?SIPInboundRoutingRuleResponse $sipInboundRoutingRule = null, // SIP Inbound Routing Rule response public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateSIPTrunkResponse.php b/src/GeneratedModels/UpdateSIPTrunkResponse.php index eeafd11..fc38384 100644 --- a/src/GeneratedModels/UpdateSIPTrunkResponse.php +++ b/src/GeneratedModels/UpdateSIPTrunkResponse.php @@ -9,7 +9,7 @@ class UpdateSIPTrunkResponse extends BaseModel { public function __construct( - public ?SIPTrunkResponse $sipTrunk = null, + public ?SIPTrunkResponse $sipTrunk = null, // SIP trunk information public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateThreadPartialRequest.php b/src/GeneratedModels/UpdateThreadPartialRequest.php index fc87f58..b2131d0 100644 --- a/src/GeneratedModels/UpdateThreadPartialRequest.php +++ b/src/GeneratedModels/UpdateThreadPartialRequest.php @@ -7,7 +7,7 @@ class UpdateThreadPartialRequest extends BaseModel { public function __construct( public ?string $userID = null, - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object public ?object $set = null, // Sets new field values public ?array $unset = null, // Array of field names to unset ) { diff --git a/src/GeneratedModels/UpdatedCallPermissionsEvent.php b/src/GeneratedModels/UpdatedCallPermissionsEvent.php index 066118b..5896f69 100644 --- a/src/GeneratedModels/UpdatedCallPermissionsEvent.php +++ b/src/GeneratedModels/UpdatedCallPermissionsEvent.php @@ -12,7 +12,7 @@ public function __construct( public ?string $type = null, // The type of event: "call.permissions_updated" in this case public ?\DateTime $createdAt = null, public ?string $callCid = null, - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object /** @var array|null */ #[ArrayOf(OwnCapability::class)] public ?array $ownCapabilities = null, // The capabilities of the current user diff --git a/src/GeneratedModels/UpsertActionConfigRequest.php b/src/GeneratedModels/UpsertActionConfigRequest.php index e5b63cb..a38d608 100644 --- a/src/GeneratedModels/UpsertActionConfigRequest.php +++ b/src/GeneratedModels/UpsertActionConfigRequest.php @@ -15,7 +15,7 @@ public function __construct( public ?object $custom = null, // Action-specific parameters passed to the action handler public ?string $queueType = null, // Queue this config belongs to; null means the default queue public ?string $userID = null, // Optional user ID to associate with the audit log entry - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpsertActionConfigResponse.php b/src/GeneratedModels/UpsertActionConfigResponse.php index 62b275e..0bdfd16 100644 --- a/src/GeneratedModels/UpsertActionConfigResponse.php +++ b/src/GeneratedModels/UpsertActionConfigResponse.php @@ -6,7 +6,7 @@ class UpsertActionConfigResponse extends BaseModel { public function __construct( - public ?ModerationActionConfigResponse $actionConfig = null, + public ?ModerationActionConfigResponse $actionConfig = null, // Configuration for a moderation action public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpsertConfigRequest.php b/src/GeneratedModels/UpsertConfigRequest.php index 0e68dbd..63f7b00 100644 --- a/src/GeneratedModels/UpsertConfigRequest.php +++ b/src/GeneratedModels/UpsertConfigRequest.php @@ -26,7 +26,7 @@ public function __construct( public ?AIImageConfig $awsRekognitionConfig = null, public ?VideoCallRuleConfig $videoCallRuleConfig = null, public ?string $userID = null, // Optional user ID to associate with the audit log entry - public ?UserRequest $user = null, + public ?UserRequest $user = null, // User request object ) { } diff --git a/src/GeneratedModels/UpsertExternalStorageGCSRequest.php b/src/GeneratedModels/UpsertExternalStorageGCSRequest.php new file mode 100644 index 0000000..2540ff3 --- /dev/null +++ b/src/GeneratedModels/UpsertExternalStorageGCSRequest.php @@ -0,0 +1,17 @@ +|null */ #[ArrayOf(RuleBuilderCondition::class)] public ?array $conditions = null, // Flat list of conditions (legacy) diff --git a/src/GeneratedModels/UpsertModerationTemplateRequest.php b/src/GeneratedModels/UpsertModerationTemplateRequest.php index c733c88..9163171 100644 --- a/src/GeneratedModels/UpsertModerationTemplateRequest.php +++ b/src/GeneratedModels/UpsertModerationTemplateRequest.php @@ -7,7 +7,7 @@ class UpsertModerationTemplateRequest extends BaseModel { public function __construct( public ?string $name = null, // Name of the moderation template - public ?FeedsModerationTemplateConfigPayload $config = null, + public ?FeedsModerationTemplateConfigPayload $config = null, // Configuration for a feeds moderation template ) { } diff --git a/src/GeneratedModels/UpsertModerationTemplateResponse.php b/src/GeneratedModels/UpsertModerationTemplateResponse.php index 442e22b..24214dd 100644 --- a/src/GeneratedModels/UpsertModerationTemplateResponse.php +++ b/src/GeneratedModels/UpsertModerationTemplateResponse.php @@ -7,7 +7,7 @@ class UpsertModerationTemplateResponse extends BaseModel { public function __construct( public ?string $name = null, // Name of the moderation template - public ?FeedsModerationTemplateConfigPayload $config = null, + public ?FeedsModerationTemplateConfigPayload $config = null, // Configuration for a feeds moderation template public ?\DateTime $createdAt = null, // When the template was created public ?\DateTime $updatedAt = null, // When the template was last updated public ?string $duration = null, diff --git a/src/GeneratedModels/UserMuteResponse.php b/src/GeneratedModels/UserMuteResponse.php index 5275a08..defe69c 100644 --- a/src/GeneratedModels/UserMuteResponse.php +++ b/src/GeneratedModels/UserMuteResponse.php @@ -6,8 +6,8 @@ class UserMuteResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, - public ?UserResponse $target = null, + public ?UserResponse $user = null, // User response object + public ?UserResponse $target = null, // User response object public ?\DateTime $expires = null, public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, diff --git a/src/GeneratedModels/VideoReactionResponse.php b/src/GeneratedModels/VideoReactionResponse.php index 928b615..133f5c3 100644 --- a/src/GeneratedModels/VideoReactionResponse.php +++ b/src/GeneratedModels/VideoReactionResponse.php @@ -6,7 +6,7 @@ class VideoReactionResponse extends BaseModel { public function __construct( - public ?UserResponse $user = null, + public ?UserResponse $user = null, // User response object public ?string $type = null, public ?string $emojiCode = null, public ?object $custom = null, diff --git a/src/GeneratedModels/ViewerBehavior.php b/src/GeneratedModels/ViewerBehavior.php new file mode 100644 index 0000000..e3c6bef --- /dev/null +++ b/src/GeneratedModels/ViewerBehavior.php @@ -0,0 +1,22 @@ + true], )); $this->assertResponseSuccess($resp, 'freeze channel'); - self::assertTrue($resp->getData()->channel->frozen); + + // The channel returned by a partial update can lag the write it just applied, + // so read the channel back instead of trusting that response. + $stateResp = $this->getOrCreateChannel($type, $channelID, new GeneratedModels\ChannelGetOrCreateRequest()); + $this->assertResponseSuccess($stateResp, 'get channel after freeze'); + self::assertTrue($stateResp->getData()->channel->frozen); // Unfreeze $resp = $this->updateChannelPartial($type, $channelID, new GeneratedModels\UpdateChannelPartialRequest( set: (object) ['frozen' => false], )); $this->assertResponseSuccess($resp, 'unfreeze channel'); - self::assertFalse($resp->getData()->channel->frozen); + + $stateResp = $this->getOrCreateChannel($type, $channelID, new GeneratedModels\ChannelGetOrCreateRequest()); + $this->assertResponseSuccess($stateResp, 'get channel after unfreeze'); + self::assertFalse($stateResp->getData()->channel->frozen); } /** diff --git a/tests/WebhookTest.php b/tests/WebhookTest.php index 0b213c0..3d0ff02 100644 --- a/tests/WebhookTest.php +++ b/tests/WebhookTest.php @@ -221,6 +221,7 @@ public static function webhookEventProvider(): array 'message.unblocked' => ['message.unblocked', 'MessageUnblockedEvent'], 'message.undeleted' => ['message.undeleted', 'MessageUndeletedEvent'], 'message.updated' => ['message.updated', 'MessageUpdatedEvent'], + 'moderation.analysis.failed' => ['moderation.analysis.failed', 'ModerationAnalysisFailedEvent'], 'moderation.custom_action' => ['moderation.custom_action', 'ModerationCustomActionEvent'], 'moderation.flagged' => ['moderation.flagged', 'ModerationFlaggedEvent'], 'moderation.image_analysis.complete' => ['moderation.image_analysis.complete', 'ModerationImageAnalysisCompleteEvent'],