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
62 changes: 62 additions & 0 deletions src/Generated/ChatTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,68 @@ public function queryReminders(GeneratedModels\QueryRemindersRequest $requestDat
// Use the provided request data array directly
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\QueryRemindersResponse::class);
}
/**
* Returns all retention policies configured for the app. Server-side only.
*
* @return StreamResponse<GeneratedModels\GetRetentionPolicyResponse>
* @throws StreamException
*/
public function getRetentionPolicy(): StreamResponse {
$path = '/api/v2/chat/retention_policy';

$queryParams = [];
$requestData = null;
return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\GetRetentionPolicyResponse::class);
}
/**
* Creates or updates a retention policy for the app. Server-side only.
*
* @param GeneratedModels\SetRetentionPolicyRequest $requestData
* @return StreamResponse<GeneratedModels\SetRetentionPolicyResponse>
* @throws StreamException
*/
public function setRetentionPolicy(GeneratedModels\SetRetentionPolicyRequest $requestData): StreamResponse {
$path = '/api/v2/chat/retention_policy';

$queryParams = [];
// Use the provided request data array directly
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\SetRetentionPolicyResponse::class);
}
/**
* Removes a retention policy for the app. Server-side only.
*
* @param GeneratedModels\DeleteRetentionPolicyRequest $requestData
* @return StreamResponse<GeneratedModels\DeleteRetentionPolicyResponse>
* @throws StreamException
*/
public function deleteRetentionPolicy(GeneratedModels\DeleteRetentionPolicyRequest $requestData): StreamResponse {
$path = '/api/v2/chat/retention_policy/delete';

$queryParams = [];
// Use the provided request data array directly
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\DeleteRetentionPolicyResponse::class);
}
/**
* Returns paginated retention cleanup run history for the app. Server-side only.
*
* @param int $limit
* @param int $offset
* @return StreamResponse<GeneratedModels\GetRetentionPolicyRunsResponse>
* @throws StreamException
*/
public function getRetentionPolicyRuns(int $limit, int $offset): StreamResponse {
$path = '/api/v2/chat/retention_policy/runs';

$queryParams = [];
if ($limit !== null) {
$queryParams['limit'] = $limit;
}
if ($offset !== null) {
$queryParams['offset'] = $offset;
}
$requestData = null;
return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\GetRetentionPolicyRunsResponse::class);
}
/**
* Search messages across channels
*
Expand Down
14 changes: 14 additions & 0 deletions src/Generated/VideoTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,20 @@ public function getEdges(): StreamResponse {
$requestData = null;
return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\GetEdgesResponse::class);
}
/**
* Determine authentication requirements for an inbound SIP call before sending a digest challenge
*
* @param GeneratedModels\ResolveSipAuthRequest $requestData
* @return StreamResponse<GeneratedModels\ResolveSipAuthResponse>
* @throws StreamException
*/
public function resolveSipAuth(GeneratedModels\ResolveSipAuthRequest $requestData): StreamResponse {
$path = '/api/v2/video/sip/auth';

$queryParams = [];
// Use the provided request data array directly
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\ResolveSipAuthResponse::class);
}
/**
* List all SIP Inbound Routing Rules for the application
*
Expand Down
18 changes: 18 additions & 0 deletions src/GeneratedModels/AIImageLabelDefinition.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class AIImageLabelDefinition extends BaseModel
{
public function __construct(
public ?string $key = null,
public ?string $label = null,
public ?string $description = null,
public ?string $group = null,
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
2 changes: 1 addition & 1 deletion src/GeneratedModels/AWSRekognitionRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public function __construct(
public ?string $label = null,
public ?string $action = null,
public ?int $minConfidence = null,
public ?array $subclassifications = null,
public ?object $subclassifications = null,
) {
}

Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/AppResponseFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function __construct(
public ?bool $moderationVideoCallModerationEnabled = null,
public ?bool $moderationAudioCallModerationEnabled = null,
public ?string $moderationS3ImageAccessRoleArn = null,
public ?array $activityMetricsConfig = null,
) {
}

Expand Down
3 changes: 3 additions & 0 deletions src/GeneratedModels/CallEndedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ public function __construct(
public ?CallResponse $call = null,
public ?UserResponse $user = null,
public ?string $reason = null, // The reason why the call ended, if available
/** @var array<MemberResponse>|null */
#[ArrayOf(MemberResponse::class)]
public ?array $members = null, // The list of members in the call
) {
}

Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/ChannelConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function __construct(
public ?string $partitionTtl = null,
public ?bool $skipLastMsgUpdateForSystemMsgs = null,
public ?string $pushLevel = null,
public ?ChatPreferences $chatPreferences = null,
public ?\DateTime $createdAt = null,
public ?\DateTime $updatedAt = null,
public ?array $commands = null, // List of commands that channel supports
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/ChannelConfigWithInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function __construct(
public ?string $partitionTtl = null,
public ?bool $skipLastMsgUpdateForSystemMsgs = null,
public ?string $pushLevel = null,
public ?ChatPreferences $chatPreferences = null,
/** @var array<Command>|null */
#[ArrayOf(Command::class)]
public ?array $commands = null,
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/ChannelPushPreferencesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class ChannelPushPreferencesResponse extends BaseModel
{
public function __construct(
public ?string $chatLevel = null,
public ?ChatPreferencesResponse $chatPreferences = null,
public ?\DateTime $disabledUntil = null,
) {
}
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/ChannelTypeConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function __construct(
public ?string $partitionTtl = null,
public ?bool $skipLastMsgUpdateForSystemMsgs = null,
public ?string $pushLevel = null,
public ?ChatPreferences $chatPreferences = null,
/** @var array<Command>|null */
#[ArrayOf(Command::class)]
public ?array $commands = null,
Expand Down
22 changes: 22 additions & 0 deletions src/GeneratedModels/ChatPreferences.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class ChatPreferences extends BaseModel
{
public function __construct(
public ?string $defaultPreference = null,
public ?string $directMentions = null,
public ?string $roleMentions = null,
public ?string $groupMentions = null,
public ?string $threadReplies = null,
public ?string $hereMentions = null,
public ?string $channelMentions = null,
public ?string $distinctChannelMessages = null,
) {
}

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

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class ChatPreferencesInput extends BaseModel
{
public function __construct(
public ?string $defaultPreference = null,
public ?string $directMentions = null,
public ?string $roleMentions = null,
public ?string $groupMentions = null,
public ?string $threadReplies = null,
public ?string $hereMentions = null,
public ?string $channelMentions = null,
) {
}

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

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class ChatPreferencesResponse extends BaseModel
{
public function __construct(
public ?string $defaultPreference = null,
public ?string $directMentions = null,
public ?string $roleMentions = null,
public ?string $groupMentions = null,
public ?string $threadReplies = null,
public ?string $hereMentions = null,
public ?string $channelMentions = null,
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
1 change: 1 addition & 0 deletions src/GeneratedModels/CheckResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public function __construct(
public ?string $taskID = null, // ID of the running moderation task
public ?string $recommendedAction = null, // Suggested action based on moderation results
public ?ReviewQueueItemResponse $item = null,
public ?TriggeredRuleResponse $triggeredRule = null,
public ?string $duration = null,
) {
}
Expand Down
2 changes: 2 additions & 0 deletions src/GeneratedModels/ConfigOverridesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public function __construct(
public ?bool $userMessageReminders = null, // Enable/disable user message reminders
public ?bool $sharedLocations = null, // Enable/disable shared locations
public ?bool $countMessages = null, // Enable/disable message counting
public ?string $pushLevel = null,
public ?ChatPreferences $chatPreferences = null,
) {
}

Expand Down
3 changes: 3 additions & 0 deletions src/GeneratedModels/ConfigResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public function __construct(
public ?VideoCallRuleConfig $videoCallRuleConfig = null,
public ?array $supportedVideoCallHarmTypes = null,
public ?array $aiImageSubclassifications = null, // Available L2 subclassifications per L1 image moderation label, based on the active provider
/** @var array<AIImageLabelDefinition>|null */
#[ArrayOf(AIImageLabelDefinition::class)]
public ?array $aiImageLabelDefinitions = null, // Configurable image moderation label definitions for dashboard rendering
) {
}

Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/CreateChannelTypeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function __construct(
public ?string $partitionTtl = null, // Partition TTL
public ?bool $skipLastMsgUpdateForSystemMsgs = null,
public ?string $pushLevel = null, // Default push notification level for the channel type. One of: all, all_mentions, mentions, direct_mentions, none
public ?ChatPreferences $chatPreferences = null,
) {
}

Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/CreateChannelTypeResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function __construct(
public ?string $partitionTtl = null,
public ?bool $skipLastMsgUpdateForSystemMsgs = null,
public ?string $pushLevel = null,
public ?ChatPreferences $chatPreferences = null,
public ?\DateTime $createdAt = null,
public ?\DateTime $updatedAt = null,
public ?array $commands = null,
Expand Down
2 changes: 2 additions & 0 deletions src/GeneratedModels/CreateSIPTrunkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CreateSIPTrunkRequest extends BaseModel
public function __construct(
public ?string $name = null, // Name of the SIP trunk
public ?array $numbers = null, // Phone numbers associated with this SIP trunk
public ?string $password = null, // Optional password for SIP trunk authentication
public ?array $allowedIps = null, // Optional list of allowed IPv4/IPv6 addresses or CIDR blocks
) {
}

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

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class DeleteRetentionPolicyRequest extends BaseModel
{
public function __construct(
public ?string $policy = null,
) {
}

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

declare(strict_types=1);

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

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
1 change: 1 addition & 0 deletions src/GeneratedModels/FilterConfigResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class FilterConfigResponse extends BaseModel
public function __construct(
public ?array $llmLabels = null,
public ?array $aiTextLabels = null,
public ?array $configKeys = null,
) {
}

Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/GetChannelTypeResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function __construct(
public ?string $partitionTtl = null,
public ?bool $skipLastMsgUpdateForSystemMsgs = null,
public ?string $pushLevel = null,
public ?ChatPreferences $chatPreferences = null,
/** @var array<Command>|null */
#[ArrayOf(Command::class)]
public ?array $commands = null,
Expand Down
21 changes: 21 additions & 0 deletions src/GeneratedModels/GetRetentionPolicyResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
/**
* Basic response information
*/
class GetRetentionPolicyResponse extends BaseModel
{
public function __construct(
/** @var array<RetentionPolicy>|null */
#[ArrayOf(RetentionPolicy::class)]
public ?array $policies = null,
public ?string $duration = null, // Duration of the request in milliseconds
) {
}

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

declare(strict_types=1);

namespace GetStream\GeneratedModels;
/**
* Basic response information
*/
class GetRetentionPolicyRunsResponse extends BaseModel
{
public function __construct(
/** @var array<RetentionCleanupRun>|null */
#[ArrayOf(RetentionCleanupRun::class)]
public ?array $runs = null,
public ?string $duration = null, // Duration of the request in milliseconds
) {
}

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

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class PolicyConfig extends BaseModel
{
public function __construct(
public ?int $maxAgeHours = null,
) {
}

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