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
4 changes: 2 additions & 2 deletions .spec-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
spec: openapi-v241.36.0
generator: chat v241.36.0
spec: openapi-v241.37.0
generator: chat v241.37.0
1 change: 1 addition & 0 deletions src/GeneratedModels/AIVideoConfigRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public function __construct(
/** @var array<AWSRekognitionRule>|null */
#[ArrayOf(AWSRekognitionRule::class)]
public ?array $rules = null,
public ?KeyframeConfigRequest $keyframeConfig = null,
/** @var array<OCRRule>|null */
#[ArrayOf(OCRRule::class)]
public ?array $ocrRules = null,
Expand Down
1 change: 1 addition & 0 deletions src/GeneratedModels/AIVideoConfigResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public function __construct(
/** @var array<AWSRekognitionRule>|null */
#[ArrayOf(AWSRekognitionRule::class)]
public ?array $rules = null,
public ?KeyframeConfigResponse $keyframeConfig = null,
/** @var array<OCRRule>|null */
#[ArrayOf(OCRRule::class)]
public ?array $ocrRules = null,
Expand Down
17 changes: 17 additions & 0 deletions src/GeneratedModels/KeyframeConfigRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class KeyframeConfigRequest extends BaseModel
{
public function __construct(
public ?float $framesPerSecond = null, // Frames sampled per second of video for keyframe moderation. 0 or omitted uses 1.0; otherwise between 0.017 and 1.0. At most 100 frames are taken from a video, spread evenly over its length
public ?string $strategy = null, // How sampled frames are chosen for scoring. uniform (default) scores every sampled frame; scene_change scores a sampled frame only when the scene changed, it is the first frame, or 10 s passed since the last scored frame
public ?bool $earlyStop = null, // Stop scoring frames once one reaches the highest action the video rules can produce. The video's action is the same as scoring every frame, but its labels and per-frame results cover only the frames scored. Has no effect while a moderation rule has a video_content, video_rule or ocr_content condition, since those read the labels or text of every frame. Defaults to false
) {
}

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

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class KeyframeConfigResponse extends BaseModel
{
public function __construct(
public ?float $framesPerSecond = null, // Frames sampled per second of video for keyframe moderation. 0 or omitted uses 1.0; otherwise between 0.017 and 1.0. At most 100 frames are taken from a video, spread evenly over its length
public ?string $strategy = null, // How sampled frames are chosen for scoring. uniform (default) scores every sampled frame; scene_change scores a sampled frame only when the scene changed, it is the first frame, or 10 s passed since the last scored frame
public ?bool $earlyStop = null, // Stop scoring frames once one reaches the highest action the video rules can produce. The video's action is the same as scoring every frame, but its labels and per-frame results cover only the frames scored. Has no effect while a moderation rule has a video_content, video_rule or ocr_content condition, since those read the labels or text of every frame. Defaults to false
) {
}

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