From 4564b863baac107d2ad9561c86a514a6d8b720f8 Mon Sep 17 00:00:00 2001 From: Yun Wang Date: Mon, 17 Aug 2026 13:19:37 +0200 Subject: [PATCH 1/2] feat: regenerate from chat v235.17.1 Adds the moderation policy test endpoints, the video daily digest endpoint, message-ID paging on get channel, CSV channel export, and the model fields that came with them. --- src/Generated/ChatTrait.php | 43 +++++++- src/Generated/CommonTrait.php | 34 +++---- src/Generated/FeedsTrait.php | 6 +- src/Generated/ModerationTrait.php | 97 ++++++++++++++++++- src/Generated/VideoTrait.php | 21 ++++ src/Generated/Webhook.php | 3 + src/GeneratedModels/AbsentMetric.php | 16 +++ .../AcceptFeedMemberInviteRequest.php | 2 +- src/GeneratedModels/ActionLogResponse.php | 4 +- .../ActivityFeedbackEventPayload.php | 2 +- .../ActivityFeedbackRequest.php | 2 +- src/GeneratedModels/ActivityPinResponse.php | 2 +- src/GeneratedModels/ActivityRequest.php | 3 + src/GeneratedModels/ActivityResponse.php | 2 +- src/GeneratedModels/AddActivityRequest.php | 3 + src/GeneratedModels/AddBookmarkRequest.php | 2 +- .../AddCommentBookmarkRequest.php | 2 +- .../AddCommentReactionRequest.php | 2 +- src/GeneratedModels/AddCommentRequest.php | 2 +- src/GeneratedModels/AddReactionRequest.php | 2 +- src/GeneratedModels/AnalyzeRequest.php | 2 +- src/GeneratedModels/AppResponseFields.php | 2 + src/GeneratedModels/AppealItemResponse.php | 2 +- src/GeneratedModels/AppealRequest.php | 2 +- src/GeneratedModels/Audience.php | 27 ++++++ .../AutomodDetailsResponse.php | 2 +- src/GeneratedModels/BanInfoResponse.php | 6 +- src/GeneratedModels/BanRequest.php | 2 +- src/GeneratedModels/BanResponse.php | 6 +- .../BatchQueryActivityReactionsRequest.php | 2 +- .../BatchQueryCommentReactionsRequest.php | 2 +- src/GeneratedModels/BlockListRule.php | 1 - src/GeneratedModels/BlockUsersRequest.php | 2 +- src/GeneratedModels/BlockedUserEvent.php | 4 +- src/GeneratedModels/BlockedUserResponse.php | 4 +- .../BookmarkFolderResponse.php | 2 +- src/GeneratedModels/BookmarkResponse.php | 2 +- src/GeneratedModels/BroadcastDailyRollup.php | 28 ++++++ src/GeneratedModels/BroadcastDigest.php | 24 +++++ src/GeneratedModels/BroadcastInfo.php | 23 +++++ src/GeneratedModels/BroadcastSegment.php | 21 ++++ .../BroadcastSettingsResponse.php | 4 +- .../BulkActionAppealsRequest.php | 12 +-- .../BulkDeleteActionConfigRequest.php | 2 +- .../BulkUpsertActionConfigRequest.php | 2 +- src/GeneratedModels/CallAcceptedEvent.php | 4 +- src/GeneratedModels/CallClosedCaption.php | 2 +- src/GeneratedModels/CallCreatedEvent.php | 2 +- src/GeneratedModels/CallDTMFEvent.php | 2 +- src/GeneratedModels/CallDeletedEvent.php | 2 +- src/GeneratedModels/CallEndedEvent.php | 4 +- .../CallFrameRecordingFailedEvent.php | 2 +- .../CallFrameRecordingStartedEvent.php | 2 +- .../CallFrameRecordingStoppedEvent.php | 2 +- .../CallHLSBroadcastingStartedEvent.php | 2 +- src/GeneratedModels/CallIngressResponse.php | 2 +- src/GeneratedModels/CallLiveStartedEvent.php | 2 +- src/GeneratedModels/CallMemberAddedEvent.php | 2 +- .../CallMemberRemovedEvent.php | 2 +- .../CallMemberUpdatedEvent.php | 2 +- .../CallMemberUpdatedPermissionEvent.php | 2 +- src/GeneratedModels/CallMissedEvent.php | 4 +- src/GeneratedModels/CallNotificationEvent.php | 4 +- .../CallParticipantResponse.php | 2 +- .../CallRecordingReadyEvent.php | 2 +- src/GeneratedModels/CallRejectedEvent.php | 4 +- src/GeneratedModels/CallRequest.php | 2 +- src/GeneratedModels/CallResponse.php | 4 +- src/GeneratedModels/CallRingEvent.php | 4 +- src/GeneratedModels/CallSessionEndedEvent.php | 2 +- .../CallSessionStartedEvent.php | 2 +- src/GeneratedModels/CallSettingsRequest.php | 1 + src/GeneratedModels/CallSettingsResponse.php | 5 +- .../CallStateResponseFields.php | 2 +- .../CallTranscriptionReadyEvent.php | 2 +- src/GeneratedModels/CallUpdatedEvent.php | 2 +- .../CallUserFeedbackSubmittedEvent.php | 2 +- src/GeneratedModels/CampaignResponse.php | 2 +- src/GeneratedModels/CastPollVoteRequest.php | 2 +- .../ChannelBatchUpdateRequest.php | 2 +- src/GeneratedModels/ChannelConfig.php | 2 +- src/GeneratedModels/ChannelConfigWithInfo.php | 2 +- .../ChannelContextResponse.php | 21 ++++ src/GeneratedModels/ChannelCreatedEvent.php | 2 +- src/GeneratedModels/ChannelDataUpdate.php | 2 +- src/GeneratedModels/ChannelDeletedEvent.php | 2 +- .../ChannelGetOrCreateRequest.php | 1 + src/GeneratedModels/ChannelHiddenEvent.php | 2 +- src/GeneratedModels/ChannelInput.php | 6 +- src/GeneratedModels/ChannelInputRequest.php | 4 +- .../ChannelMemberPartialResponse.php | 17 ++++ src/GeneratedModels/ChannelMemberRequest.php | 2 +- src/GeneratedModels/ChannelMemberResponse.php | 4 +- .../ChannelMessagesResponse.php | 2 +- src/GeneratedModels/ChannelMetadata.php | 23 +++++ src/GeneratedModels/ChannelMute.php | 4 +- src/GeneratedModels/ChannelResponse.php | 6 +- src/GeneratedModels/ChannelStateResponse.php | 2 +- .../ChannelStateResponseFields.php | 2 +- src/GeneratedModels/ChannelTruncatedEvent.php | 4 +- src/GeneratedModels/ChannelTypeConfig.php | 2 +- src/GeneratedModels/ChannelUpdatedEvent.php | 4 +- src/GeneratedModels/ChannelVisibleEvent.php | 2 +- src/GeneratedModels/ChatMessageResponse.php | 6 +- .../ChatReactionGroupUserResponse.php | 2 +- src/GeneratedModels/ChatReactionResponse.php | 2 +- .../ChatReminderResponseData.php | 2 +- src/GeneratedModels/CheckPushRequest.php | 2 +- src/GeneratedModels/CheckRequest.php | 2 +- src/GeneratedModels/ClientEvent.php | 1 + src/GeneratedModels/ClosedCaptionEvent.php | 2 +- src/GeneratedModels/CommentResponse.php | 2 +- src/GeneratedModels/ConcurrencyMinute.php | 19 ++++ src/GeneratedModels/Coverage.php | 19 ++++ .../CreateBlockListRequest.php | 3 +- .../CreateBlockListResponse.php | 2 +- .../CreateChannelTypeResponse.php | 2 +- .../CreateCollectionsRequest.php | 2 +- src/GeneratedModels/CreateCommandResponse.php | 2 +- src/GeneratedModels/CreateDeviceRequest.php | 2 +- .../CreateExternalStorageRequest.php | 4 +- src/GeneratedModels/CreateGuestRequest.php | 2 +- src/GeneratedModels/CreateGuestResponse.php | 2 +- .../CreateImportV2TaskRequest.php | 2 +- .../CreatePolicyTestSetRequest.php | 22 +++++ .../CreatePollOptionRequest.php | 4 +- src/GeneratedModels/CreatePollRequest.php | 4 +- src/GeneratedModels/CreateQueueRequest.php | 2 +- src/GeneratedModels/CreateReminderRequest.php | 2 +- .../CreateSIPTrunkResponse.php | 2 +- src/GeneratedModels/CustomCheckRequest.php | 4 +- src/GeneratedModels/CustomVideoEvent.php | 2 +- .../DailyDigestCallSessionSummary.php | 21 ++++ .../DeactivateUserResponse.php | 2 +- .../DeleteActivitiesRequest.php | 2 +- src/GeneratedModels/DeleteCallResponse.php | 2 +- src/GeneratedModels/DeleteChannelResponse.php | 2 +- src/GeneratedModels/DeleteMessageResponse.php | 2 +- src/GeneratedModels/DeleteQueueRequest.php | 2 +- .../DeleteReactionResponse.php | 2 +- .../DeleteUserMessagesRequestPayload.php | 23 +++++ src/GeneratedModels/DeliveryZoneSegment.php | 22 +++++ src/GeneratedModels/DraftResponse.php | 8 +- src/GeneratedModels/EncodingProfile.php | 29 ++++++ .../EncryptionSettingsRequest.php | 15 +++ .../EncryptionSettingsResponse.php | 18 ++++ src/GeneratedModels/EventRequest.php | 2 +- src/GeneratedModels/EventResponse.php | 2 +- src/GeneratedModels/ExportChannelsRequest.php | 2 + src/GeneratedModels/ExportUserResponse.php | 2 +- src/GeneratedModels/FeedMemberResponse.php | 2 +- src/GeneratedModels/FeedResponse.php | 2 +- .../FeedSuggestionResponse.php | 2 +- src/GeneratedModels/FeedsBookmarkResponse.php | 2 +- src/GeneratedModels/FeedsFeedResponse.php | 2 +- src/GeneratedModels/FeedsReactionResponse.php | 2 +- src/GeneratedModels/FeedsShareResponse.php | 2 +- .../FeedsV3ActivityResponse.php | 2 +- .../FeedsV3CommentResponse.php | 2 +- src/GeneratedModels/FilterConfigResponse.php | 1 + src/GeneratedModels/FlagRequest.php | 2 +- src/GeneratedModels/FlagResponse.php | 6 +- src/GeneratedModels/FlagUpdatedEvent.php | 6 +- src/GeneratedModels/FloodConfig.php | 1 + .../FloodIdenticalRuleParameters.php | 17 ++++ .../FloodSimilarRuleParameters.php | 18 ++++ .../FutureChannelBanResponse.php | 4 +- src/GeneratedModels/GetBlockListResponse.php | 2 +- src/GeneratedModels/GetCallReportResponse.php | 1 + src/GeneratedModels/GetCallResponse.php | 2 +- .../GetChannelTypeResponse.php | 2 +- .../GetDailyDigestResponse.php | 32 ++++++ .../GetExternalStorageGCSResponse.php | 17 ++++ .../GetExternalStorageResponse.php | 1 + .../GetFeedsRateLimitsResponse.php | 3 + src/GeneratedModels/GetMessageResponse.php | 2 +- .../GetOrCreateCallRequest.php | 2 +- .../GetOrCreateCallResponse.php | 2 +- .../GetOrCreateFeedRequest.php | 6 +- src/GeneratedModels/GetRateLimitsResponse.php | 3 + src/GeneratedModels/GoLiveResponse.php | 2 +- .../GroupedQueryChannelsRequest.php | 2 +- src/GeneratedModels/HideChannelRequest.php | 2 +- .../IPContentCountRuleParameters.php | 16 +++ .../IPFlagCountRuleParameters.php | 18 ++++ src/GeneratedModels/ImportV2TaskSettings.php | 1 - src/GeneratedModels/Incident.php | 18 ++++ src/GeneratedModels/Joins.php | 19 ++++ src/GeneratedModels/KickUserRequest.php | 2 +- src/GeneratedModels/KickedUserEvent.php | 4 +- src/GeneratedModels/MarkActivityRequest.php | 2 +- .../MarkChannelsReadRequest.php | 2 +- src/GeneratedModels/MarkReadRequest.php | 2 +- src/GeneratedModels/MarkReadResponseEvent.php | 2 +- src/GeneratedModels/MarkUnreadRequest.php | 2 +- src/GeneratedModels/MatchedContent.php | 1 + src/GeneratedModels/MemberAddedEvent.php | 2 +- src/GeneratedModels/MemberRemovedEvent.php | 2 +- src/GeneratedModels/MemberResponse.php | 2 +- src/GeneratedModels/MemberUpdatedEvent.php | 2 +- src/GeneratedModels/MessageActionRequest.php | 2 +- src/GeneratedModels/MessageActionResponse.php | 2 +- src/GeneratedModels/MessageDeletedEvent.php | 2 +- src/GeneratedModels/MessageFlagResponse.php | 8 +- src/GeneratedModels/MessageFlaggedEvent.php | 4 +- .../MessageModerationResult.php | 2 +- src/GeneratedModels/MessageNewEvent.php | 4 +- src/GeneratedModels/MessageOptions.php | 1 + src/GeneratedModels/MessageReadEvent.php | 2 +- src/GeneratedModels/MessageRequest.php | 2 +- src/GeneratedModels/MessageResponse.php | 8 +- src/GeneratedModels/MessageUnblockedEvent.php | 2 +- src/GeneratedModels/MessageUndeletedEvent.php | 2 +- src/GeneratedModels/MessageUpdatedEvent.php | 2 +- .../MessageWithChannelResponse.php | 10 +- src/GeneratedModels/MetricsPct.php | 19 ++++ .../ModerationAnalysisFailedEvent.php | 26 +++++ .../ModerationCallResponse.php | 2 +- .../ModerationCustomActionEvent.php | 2 +- .../ModerationFlagResponse.php | 4 +- .../ModerationMarkReviewedEvent.php | 2 +- src/GeneratedModels/ModerationPayload.php | 1 + .../ModerationPayloadResponse.php | 1 + src/GeneratedModels/MuteChannelRequest.php | 2 +- src/GeneratedModels/MuteRequest.php | 2 +- src/GeneratedModels/MuteUsersRequest.php | 2 +- .../NotificationMarkUnreadEvent.php | 2 +- .../NotificationThreadMessageNewEvent.php | 4 +- src/GeneratedModels/OwnBatchRequest.php | 2 +- src/GeneratedModels/PendingMessageEvent.php | 6 +- .../PendingMessageResponse.php | 6 +- src/GeneratedModels/Percentiles.php | 16 +++ .../PermissionRequestEvent.php | 2 +- src/GeneratedModels/PinActivityRequest.php | 2 +- src/GeneratedModels/PolicyTestLabelDrift.php | 16 +++ src/GeneratedModels/PolicyTestResult.php | 28 ++++++ src/GeneratedModels/PolicyTestRow.php | 19 ++++ src/GeneratedModels/PolicyTestRun.php | 28 ++++++ src/GeneratedModels/PolicyTestRunMetrics.php | 19 ++++ src/GeneratedModels/PolicyTestRunResponse.php | 19 ++++ src/GeneratedModels/PolicyTestSeedSpec.php | 16 +++ src/GeneratedModels/PolicyTestSet.php | 27 ++++++ .../PolicyTestSetListResponse.php | 18 ++++ src/GeneratedModels/PolicyTestSetResponse.php | 20 ++++ src/GeneratedModels/PolicyTestTotals.php | 19 ++++ src/GeneratedModels/PollResponseData.php | 2 +- src/GeneratedModels/PollVoteResponseData.php | 2 +- src/GeneratedModels/PoorByCause.php | 19 ++++ src/GeneratedModels/PoorTail.php | 20 ++++ src/GeneratedModels/PublisherSession.php | 26 +++++ src/GeneratedModels/Quality.php | 25 ++--- .../QueryActivitiesRequest.php | 2 +- .../QueryActivityReactionsRequest.php | 2 +- src/GeneratedModels/QueryAppealsRequest.php | 2 +- .../QueryBannedUsersPayload.php | 2 +- src/GeneratedModels/QueryBookmarksRequest.php | 2 +- .../QueryCallParticipantsResponse.php | 2 +- src/GeneratedModels/QueryCampaignsRequest.php | 2 +- src/GeneratedModels/QueryChannelsRequest.php | 3 +- .../QueryCollectionsRequest.php | 2 +- .../QueryCommentReactionsRequest.php | 2 +- src/GeneratedModels/QueryCommentsRequest.php | 2 +- src/GeneratedModels/QueryDraftsRequest.php | 2 +- .../QueryFeedModerationTemplate.php | 2 +- .../QueryFutureChannelBansPayload.php | 5 +- .../QueryFutureChannelBansResponse.php | 1 + .../QueryLabelResultsRequest.php | 2 +- src/GeneratedModels/QueryMembersPayload.php | 2 +- .../QueryMessageFlagsPayload.php | 2 +- .../QueryModerationConfigsRequest.php | 2 +- .../QueryModerationFlagsRequest.php | 2 +- .../QueryModerationLogsRequest.php | 2 +- .../QueryModerationRulesRequest.php | 2 +- src/GeneratedModels/QueryReactionsRequest.php | 2 +- src/GeneratedModels/QueryRemindersRequest.php | 2 +- .../QueryReviewQueueRequest.php | 2 +- src/GeneratedModels/QueryThreadsRequest.php | 2 +- src/GeneratedModels/QueryUsersPayload.php | 2 +- src/GeneratedModels/ReactionDeletedEvent.php | 4 +- .../ReactionGroupUserResponse.php | 2 +- src/GeneratedModels/ReactionNewEvent.php | 4 +- src/GeneratedModels/ReactionRequest.php | 2 +- src/GeneratedModels/ReactionResponse.php | 2 +- src/GeneratedModels/ReactionUpdatedEvent.php | 4 +- .../ReactivateUserResponse.php | 2 +- src/GeneratedModels/ReadStateResponse.php | 2 +- .../RejectFeedMemberInviteRequest.php | 2 +- src/GeneratedModels/ReminderResponseData.php | 6 +- .../ResolveSipInboundRequest.php | 2 +- .../ResolveSipInboundResponse.php | 6 +- .../RestoreActivityRequest.php | 2 +- src/GeneratedModels/RestoreCommentRequest.php | 2 +- .../ReviewQueueItemResponse.php | 4 +- src/GeneratedModels/RuleBuilderCondition.php | 4 + src/GeneratedModels/SFULocationResponse.php | 4 +- .../SIPInboundRoutingRuleRequest.php | 10 +- .../SIPInboundRoutingRuleResponse.php | 10 +- src/GeneratedModels/ScoreBands.php | 17 ++++ src/GeneratedModels/SearchResultMessage.php | 10 +- src/GeneratedModels/Segments.php | 30 ++++++ src/GeneratedModels/SendCallEventRequest.php | 2 +- .../SendClosedCaptionRequest.php | 2 +- src/GeneratedModels/SendMessageRequest.php | 4 +- src/GeneratedModels/SendMessageResponse.php | 4 +- src/GeneratedModels/SendReactionRequest.php | 2 +- src/GeneratedModels/SendReactionResponse.php | 2 +- src/GeneratedModels/ShareResponse.php | 2 +- .../SharedLocationResponse.php | 4 +- .../SharedLocationResponseData.php | 4 +- src/GeneratedModels/ShowChannelRequest.php | 2 +- src/GeneratedModels/SourceHealth.php | 22 +++++ src/GeneratedModels/SourceInterruption.php | 18 ++++ .../StartPolicyTestRunRequest.php | 14 +++ src/GeneratedModels/StopLiveResponse.php | 2 +- src/GeneratedModels/SubmitActionRequest.php | 35 +++---- src/GeneratedModels/Supporting.php | 21 ++++ src/GeneratedModels/TeamUsageStats.php | 32 +++--- src/GeneratedModels/ThreadParticipant.php | 3 +- src/GeneratedModels/ThreadResponse.php | 6 +- src/GeneratedModels/ThreadStateResponse.php | 6 +- .../ThreadedCommentResponse.php | 4 +- src/GeneratedModels/TimeWindow.php | 16 +++ src/GeneratedModels/TopBroadcast.php | 18 ++++ .../TrackActivityMetricsRequest.php | 2 +- .../TruncateChannelRequest.php | 4 +- .../TruncateChannelResponse.php | 4 +- .../UnbanActionRequestPayload.php | 1 + src/GeneratedModels/UnbanRequest.php | 2 +- src/GeneratedModels/UnblockUsersRequest.php | 2 +- src/GeneratedModels/UnblockedUserEvent.php | 2 +- .../UndeleteMessageResponse.php | 2 +- src/GeneratedModels/UnmuteChannelRequest.php | 2 +- src/GeneratedModels/UnmuteRequest.php | 2 +- .../UpdateActivityPartialRequest.php | 2 +- src/GeneratedModels/UpdateActivityRequest.php | 2 +- src/GeneratedModels/UpdateAppRequest.php | 2 + .../UpdateBlockListRequest.php | 3 +- .../UpdateBlockListResponse.php | 2 +- .../UpdateBookmarkFolderRequest.php | 2 +- src/GeneratedModels/UpdateBookmarkRequest.php | 2 +- src/GeneratedModels/UpdateCallResponse.php | 2 +- .../UpdateChannelPartialRequest.php | 2 +- .../UpdateChannelPartialResponse.php | 2 +- src/GeneratedModels/UpdateChannelRequest.php | 4 +- src/GeneratedModels/UpdateChannelResponse.php | 4 +- .../UpdateChannelTypeRequest.php | 2 +- .../UpdateChannelTypeResponse.php | 2 +- .../UpdateCollectionsRequest.php | 2 +- src/GeneratedModels/UpdateCommandResponse.php | 2 +- .../UpdateCommentBookmarkRequest.php | 2 +- .../UpdateCommentPartialRequest.php | 2 +- src/GeneratedModels/UpdateCommentRequest.php | 2 +- .../UpdateExternalStorageRequest.php | 4 +- .../UpdateMessagePartialRequest.php | 2 +- .../UpdateMessagePartialResponse.php | 2 +- src/GeneratedModels/UpdateMessageRequest.php | 2 +- src/GeneratedModels/UpdateMessageResponse.php | 2 +- .../UpdatePollOptionRequest.php | 4 +- .../UpdatePollPartialRequest.php | 2 +- src/GeneratedModels/UpdatePollRequest.php | 4 +- src/GeneratedModels/UpdateQueueRequest.php | 2 +- src/GeneratedModels/UpdateReminderRequest.php | 2 +- .../UpdateSIPInboundRoutingRuleRequest.php | 10 +- .../UpdateSIPInboundRoutingRuleResponse.php | 2 +- .../UpdateSIPTrunkResponse.php | 2 +- .../UpdateThreadPartialRequest.php | 2 +- .../UpdatedCallPermissionsEvent.php | 2 +- .../UpsertActionConfigRequest.php | 2 +- .../UpsertActionConfigResponse.php | 2 +- src/GeneratedModels/UpsertConfigRequest.php | 2 +- .../UpsertExternalStorageGCSRequest.php | 17 ++++ .../UpsertExternalStorageRequest.php | 1 + .../UpsertModerationRuleRequest.php | 4 +- .../UpsertModerationTemplateRequest.php | 2 +- .../UpsertModerationTemplateResponse.php | 2 +- src/GeneratedModels/UserMuteResponse.php | 4 +- src/GeneratedModels/VideoReactionResponse.php | 2 +- src/GeneratedModels/ViewerBehavior.php | 22 +++++ src/GeneratedModels/WSEvent.php | 8 +- tests/WebhookTest.php | 1 + 380 files changed, 1768 insertions(+), 476 deletions(-) create mode 100644 src/GeneratedModels/AbsentMetric.php create mode 100644 src/GeneratedModels/Audience.php create mode 100644 src/GeneratedModels/BroadcastDailyRollup.php create mode 100644 src/GeneratedModels/BroadcastDigest.php create mode 100644 src/GeneratedModels/BroadcastInfo.php create mode 100644 src/GeneratedModels/BroadcastSegment.php create mode 100644 src/GeneratedModels/ChannelContextResponse.php create mode 100644 src/GeneratedModels/ChannelMemberPartialResponse.php create mode 100644 src/GeneratedModels/ChannelMetadata.php create mode 100644 src/GeneratedModels/ConcurrencyMinute.php create mode 100644 src/GeneratedModels/Coverage.php create mode 100644 src/GeneratedModels/CreatePolicyTestSetRequest.php create mode 100644 src/GeneratedModels/DailyDigestCallSessionSummary.php create mode 100644 src/GeneratedModels/DeleteUserMessagesRequestPayload.php create mode 100644 src/GeneratedModels/DeliveryZoneSegment.php create mode 100644 src/GeneratedModels/EncodingProfile.php create mode 100644 src/GeneratedModels/EncryptionSettingsRequest.php create mode 100644 src/GeneratedModels/EncryptionSettingsResponse.php create mode 100644 src/GeneratedModels/FloodIdenticalRuleParameters.php create mode 100644 src/GeneratedModels/FloodSimilarRuleParameters.php create mode 100644 src/GeneratedModels/GetDailyDigestResponse.php create mode 100644 src/GeneratedModels/GetExternalStorageGCSResponse.php create mode 100644 src/GeneratedModels/IPContentCountRuleParameters.php create mode 100644 src/GeneratedModels/IPFlagCountRuleParameters.php create mode 100644 src/GeneratedModels/Incident.php create mode 100644 src/GeneratedModels/Joins.php create mode 100644 src/GeneratedModels/MetricsPct.php create mode 100644 src/GeneratedModels/ModerationAnalysisFailedEvent.php create mode 100644 src/GeneratedModels/Percentiles.php create mode 100644 src/GeneratedModels/PolicyTestLabelDrift.php create mode 100644 src/GeneratedModels/PolicyTestResult.php create mode 100644 src/GeneratedModels/PolicyTestRow.php create mode 100644 src/GeneratedModels/PolicyTestRun.php create mode 100644 src/GeneratedModels/PolicyTestRunMetrics.php create mode 100644 src/GeneratedModels/PolicyTestRunResponse.php create mode 100644 src/GeneratedModels/PolicyTestSeedSpec.php create mode 100644 src/GeneratedModels/PolicyTestSet.php create mode 100644 src/GeneratedModels/PolicyTestSetListResponse.php create mode 100644 src/GeneratedModels/PolicyTestSetResponse.php create mode 100644 src/GeneratedModels/PolicyTestTotals.php create mode 100644 src/GeneratedModels/PoorByCause.php create mode 100644 src/GeneratedModels/PoorTail.php create mode 100644 src/GeneratedModels/PublisherSession.php create mode 100644 src/GeneratedModels/ScoreBands.php create mode 100644 src/GeneratedModels/Segments.php create mode 100644 src/GeneratedModels/SourceHealth.php create mode 100644 src/GeneratedModels/SourceInterruption.php create mode 100644 src/GeneratedModels/StartPolicyTestRunRequest.php create mode 100644 src/GeneratedModels/Supporting.php create mode 100644 src/GeneratedModels/TimeWindow.php create mode 100644 src/GeneratedModels/TopBroadcast.php create mode 100644 src/GeneratedModels/UpsertExternalStorageGCSRequest.php create mode 100644 src/GeneratedModels/ViewerBehavior.php diff --git a/src/Generated/ChatTrait.php b/src/Generated/ChatTrait.php index 14769cad..9cd68bfd 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 7bf71281..4f621270 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 ef76daae..7a822598 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 0dfea8d5..dc23ed63 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 eadfec87..b300560f 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 25a49464..f72aa436 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 00000000..2f432030 --- /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 42cf6192..63047356 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 78ed6e64..3938b1aa 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 d5d76c8f..74dd5bd1 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 ac63e6b2..501d9939 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 fc070db1..73c064b9 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 59e5befc..0dd1708a 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 1402e5d1..5b9e0b56 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 6c43692f..0649eace 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 d4dedf26..8af75dd0 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 d7a8eef7..8e512d70 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 be4eac6f..030c18f3 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 00000000..d387c6e5 --- /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 190ebd01..6c042570 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 82e80501..14706c89 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 abd80687..9dedbf4e 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 0d4a04d0..49f7665e 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 29002a62..f8bc83a9 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 bfb4cae4..9bb61377 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 d6218290..c23cbbc7 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 0814f15b..598efd74 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 5aea7530..14d7d098 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 1f4a94b6..838da851 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 511e4de2..0943bb2b 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 3683af35..b6e33afb 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 00000000..b8bc2c3c --- /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 00000000..a6e4c892 --- /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 61340d01..f744e027 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 fccb505b..d2bdb584 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 8becba70..cd542355 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 c01fafdd..417d3afa 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 c01edcfa..31f76e9e 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 85ff0d17..20baeac7 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 3c17dd8d..a3cdba4e 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 22d37b96..67530fa4 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 a9d8a831..2d479058 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 0ba86b19..a6c3a49f 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 f2875fdc..1c9d0378 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 f9448296..2acac694 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 55bfdf02..750718ff 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 c9509d38..7dd334db 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 bb241f0a..386a6422 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 7b376c07..4f5cde01 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 7f321eab..e8ececd7 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 3e5d8537..7c575592 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 bdf5bc8f..351c7844 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 b8b73658..b85233e9 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 63de5d35..5558c718 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 fac36fc9..d22cba79 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 86c93159..9251fbc5 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 1a94b909..30289d2b 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 befe4b02..817a183e 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 a319c4df..e54dca1a 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 9db4bc08..2a5307d0 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 f23e7a11..9bb4cc90 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 3b919acf..b8cc9ae0 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 e8605a4d..4e265aa2 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 bbce5b9b..1923c3bf 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 66245711..9ee7ba9c 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 a283115c..084353dc 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 d27c3603..e4ce7b0c 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 00000000..2355ea18 --- /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 bcd1d371..0154b9d5 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 2044e931..6453c037 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 942d8f91..e1d83229 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 ab33d891..34925c8e 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 44b9142c..7db24d96 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 e41283ef..c4dfd2b3 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 91032de8..7b1268c6 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 00000000..b9a29095 --- /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 00000000..25d887bf --- /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 f8f9ac6c..7d0de616 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 4ea552bf..7408e46b 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 e7327456..25cf1bfc 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 275da872..c307f052 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 11e2c3d0..2c9a3770 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 003ecdb0..ab7d7c84 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 59c5111a..50fd9915 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 a88b2630..25e2b965 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 107b818b..9c28673e 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 21a066d0..81e184e7 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 33ec964d..2915c978 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 c74d6190..4964afb6 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 41deda6c..e451ad6b 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 b49cbdd8..a0061320 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 4c2d2785..61122d8b 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 00000000..69357fce --- /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 d161a970..13b7e948 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 be915252..0be2ced2 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 44954b1b..0d43ce81 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 c8a6e279..77dbb221 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 ec68916e..07462ec2 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 29f74346..139afcfd 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 992497a3..fd7c723a 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 670e1c35..b85335b1 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 410e37d1..c79c4189 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 c7956089..3647fbc6 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 00000000..8e0f2ccc --- /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 5927f5e6..48dec7df 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 d49d0b58..4c66d2ad 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 95e64b6e..fe558192 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 ca075757..2788cb92 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 ac969617..b9a7e714 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 437ffe4e..ab3052c2 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 ac262796..575359d0 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 00000000..b4f4a3ff --- /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 0077c534..05517ed8 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 dcf4b5fb..cc90038c 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 7246fd99..2317f31e 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 f1d33d8f..2968247b 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 9cd1713c..0db12e70 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 d8a86826..07c4eabd 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 dc4099ef..786fb422 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 580a73e0..0adb8fb2 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 455163d0..e6583d20 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 0a9de7a5..879b9296 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 76df961c..c7262adb 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 15b8c032..170f50b7 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 4b6d4a17..d992cad1 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 5cdc17e8..1abea11a 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 00000000..284f2744 --- /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 f3483b8c..704e3a84 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 caf3579e..719c9406 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 00000000..f764c89a --- /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 00000000..a4398aa1 --- /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 91d4b763..565ce51e 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 c6d144ea..5d85a5f7 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 5e9f8207..2ad57b1c 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 18ef0c73..963c65a6 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 cb0014d3..5a6e4b05 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 f0fb7d70..311c2429 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 a4c3570d..0dac47aa 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 5304c2e0..feb34cff 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 00000000..741c9699 --- /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 6cf34fba..9ee77c6f 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 380389a0..85c4c0eb 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 d9d4126e..a8abd682 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 be5e3011..3860c652 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 50c75936..0f36b2a7 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 c25945e3..a4cf3ee5 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 a40b0200..a2b9ecca 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 09ca42d5..b166ee57 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 5eda1697..ebdaab16 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 1083694d..99e34a90 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 4af4fbb0..ac2c4d8c 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 22e91bfb..927db160 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 0232d66b..25faa58f 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 02517ac9..8a3af397 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 14e1e47c..e13c5396 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 6dfc24e5..a50f86f1 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 9fbd442a..d2e2c949 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 c9a2a9de..4b9bda85 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 e8dac454..92942a43 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 00000000..98db5086 --- /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 489dac1a..6d119f3d 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 5a8bac4c..3f3bd5c8 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 58f6c638..1702432a 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 00000000..491c9a41 --- /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 00000000..7826ca68 --- /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 00000000..094a9555 --- /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 00000000..dccc2c13 --- /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 00000000..81c350bc --- /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 00000000..fef35cec --- /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 8a1047ab..ffa6f113 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 0f69db0c..15f5c4bc 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 24099374..83e7c6c7 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 3f835742..446ea429 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 7558fa1d..d115c7cf 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 202eae61..809bfe24 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 5f753060..c15cc0cd 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 eae2f8e8..73ab8441 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 c389317a..e69f75cc 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 efeaf7a2..30c520a8 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 06f9c1cf..e01679a3 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 753cbeee..d7a71be8 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 8ffc0358..b9e400a5 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 66b11e68..e9fa96dc 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 16394745..21ba3da8 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 cd43a2a9..e25ac29a 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 cd5d933e..f5ccf24c 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 a25ca01b..91b0b284 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 38904c38..cfb3d6e7 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 9873f519..a3fbdfef 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 e086dabe..8aa0eb59 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 889cebcc..5070b4a8 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 eeed349f..decd1491 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 80246b61..ac6b1834 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 1631238f..323ff8d8 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 0ff1d8f1..a46d5f5d 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 a49f125d..6db1ade3 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 c2b62fb3..ae45f2ad 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 950fccc3..7fe35f2f 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 42b04b99..90c405a4 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 47714459..08730279 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 cc9a5945..28397b6c 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 c916bfe6..56e1efa6 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 6309cbe3..7cc9d007 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 122959d8..c0bfb2cc 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 d51a483e..9bdedbc7 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 1a99448c..f3a7f381 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 750aa9a8..73a950d3 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 77d05fb4..92eb6211 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 3c5a773b..57f6acc6 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 249a3e90..a233ff3a 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 31f8834a..3df40a3a 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 43044f2e..defc72a3 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 3c53a34b..de40114c 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 d64722a6..cf9a48c9 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 8e51e2f8..d70e2e42 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 00000000..3add84c9 --- /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 00000000..d43379cf --- /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 3a95c74b..d3581112 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 6f80a37d..47d5113e 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 a049cd1a..7ae34d4d 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 1b5fa54f..6825a675 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 316d4653..b7dcc65d 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 4b87a3e7..51a9aeb4 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 a24ebda3..9c3ae889 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 9c3d3f3f..096e608f 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 14e94782..a65b180b 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 4663e203..5a409991 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 00000000..a6aff6ab --- /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 00000000..9a591a53 --- /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 4ab20d1e..f7e41369 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 52fa1e34..6e6bb09b 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 c9cfd628..be3d6681 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 d67afb30..648cfe09 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 1ece6cb4..460a12f3 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 00000000..442efda3 --- /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 2aef32dd..e754f4da 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 6e5b47e8..62e0c51b 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 6812c6a1..010b69ce 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 28a7dfff..cd0c37dd 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 89720ba5..e69c0157 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 9efb54d2..4fa22c17 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 78fc2e56..a80f2a97 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 d7c535af..5b308c66 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 8245d73c..8df3b334 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 6747b160..800d754d 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 9cf72fe5..a25d1023 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 8393d915..678cc555 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 a4cd6bfc..1aeeefa1 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 c508a216..588d8ed9 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 14e1e58c..dfdf0914 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 047bc751..8c0e5138 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 afee9dbb..28401634 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 72f44024..c5b890f2 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 fdc272cb..4ba62cde 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 1f8172a5..f2421c29 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 5d907624..36ea28f1 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 891efd18..59fce66e 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 c6ff0a89..7a972148 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 eeafd113..fc38384d 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 fc87f58f..b2131d03 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 066118b8..5896f69b 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 e5b63cbe..a38d608d 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 62b275ef..0bdfd162 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 0e68dbdf..63f7b00e 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 00000000..2540ff3a --- /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 c733c881..9163171f 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 442e22bc..24214dd1 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 5275a080..defe69cc 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 928b6154..133f5c35 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 00000000..e3c6bef8 --- /dev/null +++ b/src/GeneratedModels/ViewerBehavior.php @@ -0,0 +1,22 @@ + ['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'], From 4f0c6aba25038aa3886b2e88f3e733d59f3ac32f Mon Sep 17 00:00:00 2001 From: Yun Wang Date: Mon, 17 Aug 2026 13:35:06 +0200 Subject: [PATCH 2/2] test: read the channel back when asserting the freeze state The channel returned by a partial update can lag the write it just applied, so the freeze test failed on the value it had just set. --- tests/Integration/ChatChannelIntegrationTest.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/Integration/ChatChannelIntegrationTest.php b/tests/Integration/ChatChannelIntegrationTest.php index 2c3c0862..5c65e1b6 100644 --- a/tests/Integration/ChatChannelIntegrationTest.php +++ b/tests/Integration/ChatChannelIntegrationTest.php @@ -372,14 +372,22 @@ public function testFreezeUnfreezeChannel(): void set: (object) ['frozen' => 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); } /**