You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public ?string$id = null, // Echo of `content_ids[label]` when supplied on the request; omitted otherwise.
public ?string$action = null, // Per-field action: keep | flag | remove.
/** @var array<Classification>|null */
#[ArrayOf(Classification::class)]
public ?array$classifications = null, // Flat list of detected Bodyguard text labels (e.g. INSULT, VULGARITY). Each entry carries `name` and `severity`.
public ?string$severity = null, // Aggregate severity across the field: LOW | MEDIUM | HIGH | CRITICAL.
public ?string$language = null, // Detected language code.
public ?string$error = null, // Set when moderation couldn't be determined for this field — action is absent.
/** @var array<DetectedURLResponse>|null */
#[ArrayOf(DetectedURLResponse::class)]
public ?array$detectedUrls = null, // URLs found in the text, as `{url, source}` objects with `source` = `text`. Independent of the action; omitted when none were found.
) {
}
// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.