Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 64 additions & 64 deletions src/Generated/ChatTrait.php

Large diffs are not rendered by default.

160 changes: 97 additions & 63 deletions src/Generated/CommonTrait.php

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions src/Generated/FeedMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ trait FeedMethods
/**
* Delete a single feed by its ID
*
* @param bool $hardDelete
* @param bool $purgeUserActivities
* @param ?bool $hardDelete
* @param ?bool $purgeUserActivities
* @return StreamResponse<GeneratedModels\DeleteFeedResponse>
* @throws StreamException
*/
public function deleteFeed(
bool $hardDelete, bool $purgeUserActivities, ): StreamResponse {
?bool $hardDelete = null, ?bool $purgeUserActivities = null): StreamResponse {
return $this->feedsV3Client->deleteFeed($this->feedGroup, $this->feedId,$hardDelete, $purgeUserActivities);
}
/**
* Create a single feed for a given feed group
*
* @param string $language
* @param bool $translateText
* @param GeneratedModels\GetOrCreateFeedRequest $requestData
* @param ?string $language
* @param ?bool $translateText
* @return StreamResponse<GeneratedModels\GetOrCreateFeedResponse>
* @throws StreamException
*/
public function getOrCreateFeed(
string $language, bool $translateText, GeneratedModels\GetOrCreateFeedRequest $requestData): StreamResponse {
return $this->feedsV3Client->getOrCreateFeed($this->feedGroup, $this->feedId,$language, $translateText, $requestData);
GeneratedModels\GetOrCreateFeedRequest $requestData, ?string $language = null, ?bool $translateText = null): StreamResponse {
return $this->feedsV3Client->getOrCreateFeed($this->feedGroup, $this->feedId, $requestData,$language, $translateText);
}
/**
* Update an existing feed
Expand Down Expand Up @@ -65,13 +65,13 @@ public function markActivity(
* Unpin an activity from a feed. This removes the pin, so the activity will no longer be displayed at the top of the feed.
*
* @param string $activityID
* @param bool $enrichOwnFields
* @param string $userID
* @param ?bool $enrichOwnFields
* @param ?string $userID
* @return StreamResponse<GeneratedModels\UnpinActivityResponse>
* @throws StreamException
*/
public function unpinActivity(
string $activityID, bool $enrichOwnFields, string $userID, ): StreamResponse {
string $activityID, ?bool $enrichOwnFields = null, ?string $userID = null): StreamResponse {
return $this->feedsV3Client->unpinActivity($this->feedGroup, $this->feedId, $activityID,$enrichOwnFields, $userID);
}
/**
Expand Down Expand Up @@ -144,19 +144,18 @@ public function rejectFeedMemberInvite(
/**
* Query pinned activities for a feed with filter query
*
* @param string $language
* @param bool $translateText
* @param GeneratedModels\QueryPinnedActivitiesRequest $requestData
* @param ?string $language
* @param ?bool $translateText
* @return StreamResponse<GeneratedModels\QueryPinnedActivitiesResponse>
* @throws StreamException
*/
public function queryPinnedActivities(
string $language, bool $translateText, GeneratedModels\QueryPinnedActivitiesRequest $requestData): StreamResponse {
return $this->feedsV3Client->queryPinnedActivities($this->feedGroup, $this->feedId,$language, $translateText, $requestData);
GeneratedModels\QueryPinnedActivitiesRequest $requestData, ?string $language = null, ?bool $translateText = null): StreamResponse {
return $this->feedsV3Client->queryPinnedActivities($this->feedGroup, $this->feedId, $requestData,$language, $translateText);
}
}


// Helper templates for parameter signatures and calls in php


224 changes: 112 additions & 112 deletions src/Generated/FeedsTrait.php

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions src/Generated/ModerationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ trait ModerationTrait
/**
* Returns moderation action configs grouped by entity type, sorted by order ascending. Supports fetching DB-configured actions, hardcoded defaults, or both.
*
* @param string $queueType
* @param string $entityType
* @param bool $excludeDefaults
* @param bool $onlyDefaults
* @param string $userID
* @param ?string $queueType
* @param ?string $entityType
* @param ?bool $excludeDefaults
* @param ?bool $onlyDefaults
* @param ?string $userID
* @return StreamResponse<GeneratedModels\GetActionConfigResponse>
* @throws StreamException
*/
public function getActionConfig(string $queueType, string $entityType, bool $excludeDefaults, bool $onlyDefaults, string $userID): StreamResponse {
public function getActionConfig(?string $queueType = null, ?string $entityType = null, ?bool $excludeDefaults = null, ?bool $onlyDefaults = null, ?string $userID = null): StreamResponse {
$path = '/api/v2/moderation/action_config';

$queryParams = [];
Expand Down Expand Up @@ -93,11 +93,11 @@ public function bulkDeleteActionConfig(GeneratedModels\BulkDeleteActionConfigReq
* Delete a specific moderation action config entry by its UUID.
*
* @param string $id
* @param string $userID
* @param ?string $userID
* @return StreamResponse<GeneratedModels\DeleteActionConfigResponse>
* @throws StreamException
*/
public function deleteActionConfig(string $id, string $userID): StreamResponse {
public function deleteActionConfig(string $id, ?string $userID = null): StreamResponse {
$path = '/api/v2/moderation/action_config/{id}';
$path = str_replace('{id}', (string) $id, $path);

Expand Down Expand Up @@ -281,12 +281,12 @@ public function upsertConfig(GeneratedModels\UpsertConfigRequest $requestData):
* Delete a specific moderation policy by its name
*
* @param string $key
* @param string $team
* @param string $userID
* @param ?string $team
* @param ?string $userID
* @return StreamResponse<GeneratedModels\DeleteModerationConfigResponse>
* @throws StreamException
*/
public function deleteConfig(string $key, string $team, string $userID): StreamResponse {
public function deleteConfig(string $key, ?string $team = null, ?string $userID = null): StreamResponse {
$path = '/api/v2/moderation/config/{key}';
$path = str_replace('{key}', (string) $key, $path);

Expand All @@ -304,11 +304,11 @@ public function deleteConfig(string $key, string $team, string $userID): StreamR
* Retrieve a specific moderation configuration by its key and team. This configuration contains settings for various moderation features like toxicity detection, AI analysis, and filtering rules.
*
* @param string $key
* @param string $team
* @param ?string $team
* @return StreamResponse<GeneratedModels\GetConfigResponse>
* @throws StreamException
*/
public function getConfig(string $key, string $team): StreamResponse {
public function getConfig(string $key, ?string $team = null): StreamResponse {
$path = '/api/v2/moderation/config/{key}';
$path = str_replace('{key}', (string) $key, $path);

Expand Down Expand Up @@ -488,11 +488,11 @@ public function upsertModerationRule(GeneratedModels\UpsertModerationRuleRequest
/**
* Delete an existing moderation rule
*
* @param string $userID
* @param ?string $userID
* @return StreamResponse<GeneratedModels\DeleteModerationRuleResponse>
* @throws StreamException
*/
public function deleteModerationRule(string $userID): StreamResponse {
public function deleteModerationRule(?string $userID = null): StreamResponse {
$path = '/api/v2/moderation/moderation_rule/{id}';

$queryParams = [];
Expand Down Expand Up @@ -571,11 +571,11 @@ public function createQueue(GeneratedModels\CreateQueueRequest $requestData): St
/**
*
* @param string $id
* @param string $userID
* @param ?string $userID
* @return StreamResponse<GeneratedModels\QueueResponse>
* @throws StreamException
*/
public function getQueue(string $id, string $userID): StreamResponse {
public function getQueue(string $id, ?string $userID = null): StreamResponse {
$path = '/api/v2/moderation/queues/{id}';
$path = str_replace('{id}', (string) $id, $path);

Expand Down Expand Up @@ -703,14 +703,14 @@ public function submitModerationFeedback(GeneratedModels\SubmitModerationFeedbac
/**
* Unban a user from a channel or globally.
*
* @param string $targetUserID
* @param string $channelCid
* @param string $createdBy
* @param GeneratedModels\UnbanRequest $requestData
* @param string $targetUserID
* @param ?string $channelCid
* @param ?string $createdBy
* @return StreamResponse<GeneratedModels\UnbanResponse>
* @throws StreamException
*/
public function unban(string $targetUserID, string $channelCid, string $createdBy, GeneratedModels\UnbanRequest $requestData): StreamResponse {
public function unban(GeneratedModels\UnbanRequest $requestData, string $targetUserID, ?string $channelCid = null, ?string $createdBy = null): StreamResponse {
$path = '/api/v2/moderation/unban';

$queryParams = [];
Expand Down
78 changes: 39 additions & 39 deletions src/Generated/VideoTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public function getActiveCallsStatus(): StreamResponse {
}
/**
*
* @param bool $full
* @param GeneratedModels\QueryUserFeedbackRequest $requestData
* @param ?bool $full
* @return StreamResponse<GeneratedModels\QueryUserFeedbackResponse>
* @throws StreamException
*/
public function queryUserFeedback(bool $full, GeneratedModels\QueryUserFeedbackRequest $requestData): StreamResponse {
public function queryUserFeedback(GeneratedModels\QueryUserFeedbackRequest $requestData, ?bool $full = null): StreamResponse {
$path = '/api/v2/video/call/feedback';

$queryParams = [];
Expand Down Expand Up @@ -75,14 +75,14 @@ public function queryCallStats(GeneratedModels\QueryCallStatsRequest $requestDat
*
* @param string $type
* @param string $id
* @param int $membersLimit
* @param bool $ring
* @param bool $notify
* @param bool $video
* @param ?int $membersLimit
* @param ?bool $ring
* @param ?bool $notify
* @param ?bool $video
* @return StreamResponse<GeneratedModels\GetCallResponse>
* @throws StreamException
*/
public function getCall(string $type, string $id, int $membersLimit, bool $ring, bool $notify, bool $video): StreamResponse {
public function getCall(string $type, string $id, ?int $membersLimit = null, ?bool $ring = null, ?bool $notify = null, ?bool $video = null): StreamResponse {
$path = '/api/v2/video/call/{type}/{id}';
$path = str_replace('{type}', (string) $type, $path);
$path = str_replace('{id}', (string) $id, $path);
Expand Down Expand Up @@ -330,12 +330,12 @@ public function muteUsers(string $type, string $id, GeneratedModels\MuteUsersReq
*
* @param string $id
* @param string $type
* @param int $limit
* @param GeneratedModels\QueryCallParticipantsRequest $requestData
* @param ?int $limit
* @return StreamResponse<GeneratedModels\QueryCallParticipantsResponse>
* @throws StreamException
*/
public function queryCallParticipants(string $id, string $type, int $limit, GeneratedModels\QueryCallParticipantsRequest $requestData): StreamResponse {
public function queryCallParticipants(string $id, string $type, GeneratedModels\QueryCallParticipantsRequest $requestData, ?int $limit = null): StreamResponse {
$path = '/api/v2/video/call/{type}/{id}/participants';
$path = str_replace('{id}', (string) $id, $path);
$path = str_replace('{type}', (string) $type, $path);
Expand Down Expand Up @@ -430,11 +430,11 @@ public function stopRecording(string $type, string $id, string $recordingType, G
*
* @param string $type
* @param string $id
* @param string $sessionID
* @param ?string $sessionID
* @return StreamResponse<GeneratedModels\GetCallReportResponse>
* @throws StreamException
*/
public function getCallReport(string $type, string $id, string $sessionID): StreamResponse {
public function getCallReport(string $type, string $id, ?string $sessionID = null): StreamResponse {
$path = '/api/v2/video/call/{type}/{id}/report';
$path = str_replace('{type}', (string) $type, $path);
$path = str_replace('{id}', (string) $id, $path);
Expand Down Expand Up @@ -528,12 +528,12 @@ public function stopRTMPBroadcast(string $type, string $id, string $name, Genera
* @param string $session
* @param string $user
* @param string $userSession
* @param \DateTime $since
* @param \DateTime $until
* @param ?\DateTime $since
* @param ?\DateTime $until
* @return StreamResponse<GeneratedModels\GetCallParticipantSessionMetricsResponse>
* @throws StreamException
*/
public function getCallParticipantSessionMetrics(string $type, string $id, string $session, string $user, string $userSession, \DateTime $since, \DateTime $until): StreamResponse {
public function getCallParticipantSessionMetrics(string $type, string $id, string $session, string $user, string $userSession, ?\DateTime $since = null, ?\DateTime $until = null): StreamResponse {
$path = '/api/v2/video/call/{type}/{id}/session/{session}/participant/{user}/{user_session}/details/track';
$path = str_replace('{type}', (string) $type, $path);
$path = str_replace('{id}', (string) $id, $path);
Expand All @@ -556,14 +556,14 @@ public function getCallParticipantSessionMetrics(string $type, string $id, strin
* @param string $type
* @param string $id
* @param string $session
* @param int $limit
* @param string $prev
* @param string $next
* @param object $filterConditions
* @param ?int $limit
* @param ?string $prev
* @param ?string $next
* @param ?object $filterConditions
* @return StreamResponse<GeneratedModels\QueryCallParticipantSessionsResponse>
* @throws StreamException
*/
public function queryCallParticipantSessions(string $type, string $id, string $session, int $limit, string $prev, string $next, object $filterConditions): StreamResponse {
public function queryCallParticipantSessions(string $type, string $id, string $session, ?int $limit = null, ?string $prev = null, ?string $next = null, ?object $filterConditions = null): StreamResponse {
$path = '/api/v2/video/call/{type}/{id}/session/{session}/participant_sessions';
$path = str_replace('{type}', (string) $type, $path);
$path = str_replace('{id}', (string) $id, $path);
Expand Down Expand Up @@ -904,15 +904,15 @@ public function queryCallSessionStats(GeneratedModels\QueryCallSessionStatsReque
* @param string $callType
* @param string $callID
* @param string $session
* @param \DateTime $startTime
* @param \DateTime $endTime
* @param bool $excludePublishers
* @param bool $excludeSubscribers
* @param bool $excludeSfus
* @param ?\DateTime $startTime
* @param ?\DateTime $endTime
* @param ?bool $excludePublishers
* @param ?bool $excludeSubscribers
* @param ?bool $excludeSfus
* @return StreamResponse<GeneratedModels\QueryCallStatsMapResponse>
* @throws StreamException
*/
public function getCallStatsMap(string $callType, string $callID, string $session, \DateTime $startTime, \DateTime $endTime, bool $excludePublishers, bool $excludeSubscribers, bool $excludeSfus): StreamResponse {
public function getCallStatsMap(string $callType, string $callID, string $session, ?\DateTime $startTime = null, ?\DateTime $endTime = null, ?bool $excludePublishers = null, ?bool $excludeSubscribers = null, ?bool $excludeSfus = null): StreamResponse {
$path = '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/map';
$path = str_replace('{call_type}', (string) $callType, $path);
$path = str_replace('{call_id}', (string) $callID, $path);
Expand Down Expand Up @@ -944,13 +944,13 @@ public function getCallStatsMap(string $callType, string $callID, string $sessio
* @param string $session
* @param string $user
* @param string $userSession
* @param string $since
* @param string $until
* @param int $maxPoints
* @param ?string $since
* @param ?string $until
* @param ?int $maxPoints
* @return StreamResponse<GeneratedModels\GetCallSessionParticipantStatsDetailsResponse>
* @throws StreamException
*/
public function getCallSessionParticipantStatsDetails(string $callType, string $callID, string $session, string $user, string $userSession, string $since, string $until, int $maxPoints): StreamResponse {
public function getCallSessionParticipantStatsDetails(string $callType, string $callID, string $session, string $user, string $userSession, ?string $since = null, ?string $until = null, ?int $maxPoints = null): StreamResponse {
$path = '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/participant/{user}/{user_session}/details';
$path = str_replace('{call_type}', (string) $callType, $path);
$path = str_replace('{call_id}', (string) $callID, $path);
Expand All @@ -976,15 +976,15 @@ public function getCallSessionParticipantStatsDetails(string $callType, string $
* @param string $callType
* @param string $callID
* @param string $session
* @param int $limit
* @param string $prev
* @param string $next
* @param array $sort
* @param object $filterConditions
* @param ?int $limit
* @param ?string $prev
* @param ?string $next
* @param ?array $sort
* @param ?object $filterConditions
* @return StreamResponse<GeneratedModels\QueryCallSessionParticipantStatsResponse>
* @throws StreamException
*/
public function queryCallSessionParticipantStats(string $callType, string $callID, string $session, int $limit, string $prev, string $next, array $sort, object $filterConditions): StreamResponse {
public function queryCallSessionParticipantStats(string $callType, string $callID, string $session, ?int $limit = null, ?string $prev = null, ?string $next = null, ?array $sort = null, ?object $filterConditions = null): StreamResponse {
$path = '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/participants';
$path = str_replace('{call_type}', (string) $callType, $path);
$path = str_replace('{call_id}', (string) $callID, $path);
Expand Down Expand Up @@ -1020,13 +1020,13 @@ public function queryCallSessionParticipantStats(string $callType, string $callI
* @param string $session
* @param string $user
* @param string $userSession
* @param string $startTime
* @param string $endTime
* @param array $severity
* @param ?string $startTime
* @param ?string $endTime
* @param ?array $severity
* @return StreamResponse<GeneratedModels\QueryCallSessionParticipantStatsTimelineResponse>
* @throws StreamException
*/
public function getCallSessionParticipantStatsTimeline(string $callType, string $callID, string $session, string $user, string $userSession, string $startTime, string $endTime, array $severity): StreamResponse {
public function getCallSessionParticipantStatsTimeline(string $callType, string $callID, string $session, string $user, string $userSession, ?string $startTime = null, ?string $endTime = null, ?array $severity = null): StreamResponse {
$path = '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/participants/{user}/{user_session}/timeline';
$path = str_replace('{call_type}', (string) $callType, $path);
$path = str_replace('{call_id}', (string) $callID, $path);
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/BlockListResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public function __construct(
public ?string $type = null, // Block list type. One of: regex, domain, domain_allowlist, email, email_allowlist, word
public ?array $words = null, // List of words to block
public ?string $team = null,
public ?string $ownerUserID = null,
public ?bool $isLeetCheckEnabled = null,
public ?bool $isPluralCheckEnabled = null,
public ?bool $isConfusableFoldingEnabled = null,
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/BlockListRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class BlockListRule extends BaseModel
public function __construct(
public ?string $name = null,
public ?string $team = null,
public ?bool $ownerScope = null,
public ?string $action = null,
) {
}
Expand Down
Loading
Loading